hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
de9034004ba5236fceead2c3312b67e085347c69
3,618
py
Python
endgame.py
Kunalmighty/BlueJaysGame
76936cea8a57542bf7ea3d546f851f9f9771931f
[ "MIT" ]
null
null
null
endgame.py
Kunalmighty/BlueJaysGame
76936cea8a57542bf7ea3d546f851f9f9771931f
[ "MIT" ]
null
null
null
endgame.py
Kunalmighty/BlueJaysGame
76936cea8a57542bf7ea3d546f851f9f9771931f
[ "MIT" ]
null
null
null
""" Add-a-new-high-score state modularization. """ import pygame import globes import state import score as S class EndGame(state.State): """ #EmbraceTheS's interface for adding a new high score. """ BACKGROUND = None LETTERS = None UNDERSCORE = None def __init__(self, score): state.St...
38.489362
79
0.543947
e6443b3eb68fbce816ca05ca608d83ced761f01a
5,640
py
Python
scripts/driver.py
ChongMingWei/lab0-c
d1f570e2d064a05fcb1cc0e27ef6c5eb77994f7c
[ "BSD-2-Clause" ]
null
null
null
scripts/driver.py
ChongMingWei/lab0-c
d1f570e2d064a05fcb1cc0e27ef6c5eb77994f7c
[ "BSD-2-Clause" ]
null
null
null
scripts/driver.py
ChongMingWei/lab0-c
d1f570e2d064a05fcb1cc0e27ef6c5eb77994f7c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import subprocess import sys import getopt # Driver program for C programming exercise class Tracer: traceDirectory = "./traces" qtest = "./qtest" command = qtest verbLevel = 0 autograde = False useValgrind = False colored = F...
28.77551
89
0.484574
dd8ac6e2c97482748246c3f629fc02d81ca4269e
8,306
py
Python
tests/test_ts_states.py
gityoav/pyg-timeseries
27859b912d6e9e9a74c172711907d5456ec3076b
[ "Apache-2.0" ]
null
null
null
tests/test_ts_states.py
gityoav/pyg-timeseries
27859b912d6e9e9a74c172711907d5456ec3076b
[ "Apache-2.0" ]
null
null
null
tests/test_ts_states.py
gityoav/pyg-timeseries
27859b912d6e9e9a74c172711907d5456ec3076b
[ "Apache-2.0" ]
null
null
null
import pandas as pd; import numpy as np from pyg_base import drange, eq from pyg_timeseries import cumprod, cumprod_, cumsum, cumsum_, diff, diff_, ewma, ewma_, ewmcor, ewmcor_,\ ewmvar, ewmvar_, ewmrms, ewmrms_, ewmskew, ewmskew_, ewmstd, ewmstd_, \ expanding_max, expanding_max_, expanding_mean, expanding_mean...
49.736527
281
0.62196
b902205b419ed25158e00b113cebab58afbd8ff1
2,211
py
Python
BasicOperations/01_01_PyQt4/QTreeWithTable.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
1
2018-07-02T13:54:49.000Z
2018-07-02T13:54:49.000Z
BasicOperations/01_01_PyQt4/QTreeWithTable.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
null
null
null
BasicOperations/01_01_PyQt4/QTreeWithTable.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
3
2016-05-28T15:13:02.000Z
2021-04-10T06:04:25.000Z
from PyQt4 import QtGui import sys class mainWindow(QtGui.QDialog): """""" def __init__(self): """Constructor""" super(mainWindow,self).__init__() self.treeWidget = QtGui.QTreeWidget() self.treeWidget.setColumnCount(3) self.treeWidget.setHeaderLabels(['Items','Name','Deta...
37.474576
85
0.606965
980ed7326607e3f9914a0d7a42048908bcbd74f3
81
py
Python
google-cloud-sdk/platform/bq/third_party/pyasn1/type/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
google-cloud-sdk/platform/bq/third_party/pyasn1/type/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
google-cloud-sdk/platform/bq/third_party/pyasn1/type/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
#!/usr/bin/env python # This file is necessary to make this directory a package.
27
58
0.753086
692d85a063447b579d13914d39974efb1729e22f
251
py
Python
Scripts/Bibliotecas/Mod 2.py
Vinicius-de-Souza-Reis-Lima/Python
2009e9f5be10a1cf4e506a7f9f17c6b90a30c7c7
[ "MIT" ]
null
null
null
Scripts/Bibliotecas/Mod 2.py
Vinicius-de-Souza-Reis-Lima/Python
2009e9f5be10a1cf4e506a7f9f17c6b90a30c7c7
[ "MIT" ]
null
null
null
Scripts/Bibliotecas/Mod 2.py
Vinicius-de-Souza-Reis-Lima/Python
2009e9f5be10a1cf4e506a7f9f17c6b90a30c7c7
[ "MIT" ]
null
null
null
from math import hypot co = float(input('Qual o valor do cateto oposto? ')) ca = float(input('Qual o valor do cateto adjacente? ')) hy = hypot(co, ca) print('O triângulo com cateto oposto {} e adjacente {}, tem hipotenusa {:.2f}.'.format(co, ca, hy))
41.833333
99
0.685259
8d6130729a851af4251ebf1ea8a71e21a4adce5a
193
py
Python
ic_crawler/gsgj_phone/gsgj_phone/util/md5_handle.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
ic_crawler/gsgj_phone/gsgj_phone/util/md5_handle.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
ic_crawler/gsgj_phone/gsgj_phone/util/md5_handle.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import hashlib def get_md5_value(key): value = None try: value = hashlib.md5(key).hexdigest() except Exception, e: print e return value
16.083333
44
0.590674
7c5b6e9703e7cd8da72515a82ad17bca2546ed45
9,425
py
Python
gpv2/image_featurizer/image_featurizer.py
michalsr/gpv2
00a22b311dbaeefb04e1df676eb6ae3373d8d4b5
[ "Apache-2.0" ]
13
2022-02-03T00:25:35.000Z
2022-03-20T02:36:05.000Z
gpv2/image_featurizer/image_featurizer.py
michalsr/gpv2
00a22b311dbaeefb04e1df676eb6ae3373d8d4b5
[ "Apache-2.0" ]
null
null
null
gpv2/image_featurizer/image_featurizer.py
michalsr/gpv2
00a22b311dbaeefb04e1df676eb6ae3373d8d4b5
[ "Apache-2.0" ]
3
2022-01-14T19:15:38.000Z
2022-02-11T14:12:52.000Z
import logging from contextlib import ExitStack from os.path import join, exists from typing import List, Dict, Any, Tuple, Optional, NewType, Union import logging from typing import List, Dict, Any, Tuple, Optional import h5py import numpy as np import torch import torchvision from allennlp.common import Registrable...
34.778598
106
0.697825
a0bc937f75b0275a7b3b9499fad08de4ad38745b
24,466
py
Python
test/functional/interface_zmq.py
beloiual/bitcoin
53b5d7d91925a54b17f444bb1c52310fe9e4e797
[ "MIT" ]
1
2020-10-09T12:14:36.000Z
2020-10-09T12:14:36.000Z
test/functional/interface_zmq.py
beloiual/bitcoin
53b5d7d91925a54b17f444bb1c52310fe9e4e797
[ "MIT" ]
18
2020-10-31T01:04:18.000Z
2020-11-03T19:25:27.000Z
test/functional/interface_zmq.py
beloiual/bitcoin
53b5d7d91925a54b17f444bb1c52310fe9e4e797
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ZMQ notification interface.""" import struct from test_framework.address import ADDRESS_BCRT1...
45.730841
159
0.626093
2b944b679a7a2ab8e14f86256b4a13a0495104f6
3,736
py
Python
espresso/tools/asr_prep_json.py
ifnspaml/espresso
5911b69b20a6aa3cff4f0e1ba3db94ee759b52c5
[ "MIT" ]
null
null
null
espresso/tools/asr_prep_json.py
ifnspaml/espresso
5911b69b20a6aa3cff4f0e1ba3db94ee759b52c5
[ "MIT" ]
null
null
null
espresso/tools/asr_prep_json.py
ifnspaml/espresso
5911b69b20a6aa3cff4f0e1ba3db94ee759b52c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Yiming Wang # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import json import logging import sys from collections import OrderedDict logging.basicConfig( format="%(asctime)s | %(le...
41.977528
124
0.608137
c94f92407f5b3afa3787bdd72e3ccc70a13ce1cd
518
py
Python
equipment/framework/tests/Helpers/PrintIfHelperTest.py
didacelgueta/equipment
12cd86bfe4b70bce3e2578e3ec79fc4c0f76c322
[ "MIT" ]
1
2022-03-02T11:32:10.000Z
2022-03-02T11:32:10.000Z
equipment/framework/tests/Helpers/PrintIfHelperTest.py
didacelgueta/equipment
12cd86bfe4b70bce3e2578e3ec79fc4c0f76c322
[ "MIT" ]
35
2022-03-02T14:33:49.000Z
2022-03-30T08:14:26.000Z
equipment/framework/tests/Helpers/PrintIfHelperTest.py
didacelgueta/equipment
12cd86bfe4b70bce3e2578e3ec79fc4c0f76c322
[ "MIT" ]
1
2022-03-24T11:52:01.000Z
2022-03-24T11:52:01.000Z
import unittest from unittest.mock import patch from equipment.framework.tests.TestCase import TestCase from equipment.framework.helpers import print_if class PrintIfHelperTest(TestCase): @patch('builtins.print') def test_true(self, mock_print): print_if(True, 'foo') mock_print.assert_called_w...
24.666667
55
0.716216
a4a4f2264ce244f745d20fc59ffae5c44272ac6b
5,423
py
Python
tests/test_replication.py
jorge-sanchez-2020/cognite-replicator
eb79ac00063c37996218bd8a8ca1a691fdceab7f
[ "Apache-2.0" ]
null
null
null
tests/test_replication.py
jorge-sanchez-2020/cognite-replicator
eb79ac00063c37996218bd8a8ca1a691fdceab7f
[ "Apache-2.0" ]
null
null
null
tests/test_replication.py
jorge-sanchez-2020/cognite-replicator
eb79ac00063c37996218bd8a8ca1a691fdceab7f
[ "Apache-2.0" ]
null
null
null
from cognite.client.data_classes import Asset, Event, TimeSeries from cognite.replicator.replication import ( existing_mapping, filter_objects, find_objects_to_delete_if_not_in_src, find_objects_to_delete_not_replicated_in_dst, make_id_object_map, make_objects_batch, remove_replication_metad...
40.470149
120
0.696109
f638ea91d4f51c395c31c4ff58e6cfe965800a17
892
py
Python
var/spack/repos/builtin/packages/spherepack/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/spherepack/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/spherepack/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Spherepack(Package): """SPHEREPACK - A Package for Modeling Geophysical Processes""" ...
37.166667
93
0.700673
7b80010c8136519be29e883fe6cbb0afe1a352db
4,885
py
Python
cirq-core/cirq/work/collector_test.py
LLcat1217/Cirq
b88069f7b01457e592ad69d6b413642ef11a56b8
[ "Apache-2.0" ]
3,326
2018-07-18T23:17:21.000Z
2022-03-29T22:28:24.000Z
cirq-core/cirq/work/collector_test.py
bradyb/Cirq
610b0d4ea3a7862169610797266734c844ddcc1f
[ "Apache-2.0" ]
3,443
2018-07-18T21:07:28.000Z
2022-03-31T20:23:21.000Z
cirq-core/cirq/work/collector_test.py
bradyb/Cirq
610b0d4ea3a7862169610797266734c844ddcc1f
[ "Apache-2.0" ]
865
2018-07-18T23:30:24.000Z
2022-03-30T11:43:23.000Z
# Copyright 2019 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.231293
99
0.649335
acbb9ec0706ee41019730827df9f4c4d4d48cc56
8,656
py
Python
python/gstgva/util.py
morkovka1337/gst-video-analytics
b06a6c58ecd1f0b63019d7d757ec471d224a8090
[ "MIT" ]
1
2020-12-01T10:49:35.000Z
2020-12-01T10:49:35.000Z
python/gstgva/util.py
morkovka1337/gst-video-analytics
b06a6c58ecd1f0b63019d7d757ec471d224a8090
[ "MIT" ]
null
null
null
python/gstgva/util.py
morkovka1337/gst-video-analytics
b06a6c58ecd1f0b63019d7d757ec471d224a8090
[ "MIT" ]
1
2019-11-14T16:40:54.000Z
2019-11-14T16:40:54.000Z
# ============================================================================== # Copyright (C) 2018-2020 Intel Corporation # # SPDX-License-Identifier: MIT # ============================================================================== import ctypes from contextlib import contextmanager # libgstreamer libgst = cty...
39.167421
115
0.762823
ce9a6163b78d06893ae80f652ce9c09d864ff91e
659
py
Python
sympy/tensor/array/tests/test_ndim_array_conversions.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/tensor/array/tests/test_ndim_array_conversions.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/tensor/array/tests/test_ndim_array_conversions.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
from sympy.tensor.array import ( ImmutableDenseNDimArray, ImmutableSparseNDimArray, MutableDenseNDimArray, MutableSparseNDimArray, ) from sympy.abc import x, y, z def test_NDim_array_conv(): MD = MutableDenseNDimArray([x, y, z]) MS = MutableSparseNDimArray([x, y, z]) ID = ImmutableDenseNDi...
24.407407
44
0.664643
09fab14de248d2051e636ef821dfc399ad4d7fa7
548
py
Python
app/request.py
derrokip34/Blog
ec6d6acb0c69ea42a8ea99c6836d943ad7417984
[ "MIT" ]
null
null
null
app/request.py
derrokip34/Blog
ec6d6acb0c69ea42a8ea99c6836d943ad7417984
[ "MIT" ]
null
null
null
app/request.py
derrokip34/Blog
ec6d6acb0c69ea42a8ea99c6836d943ad7417984
[ "MIT" ]
null
null
null
import urllib.request,json from .models import Quote quotes_url = 'http://quotes.stormconsultancy.co.uk/random.json' def get_quotes(): with urllib.request.urlopen(quotes_url) as url: quotes_data = url.read() quotes_response = json.loads(quotes_data) quote_object = None if quotes_...
27.4
63
0.656934
813bd2241eaa039ddb26fa5855499d9de303e62a
2,321
py
Python
tbxforms/widgets.py
jams2/tbxforms
d88aabb428a5e74d67fe877eb1e74bf9d9550c9f
[ "BSD-2-Clause" ]
1
2022-02-03T13:59:43.000Z
2022-02-03T13:59:43.000Z
tbxforms/widgets.py
jams2/tbxforms
d88aabb428a5e74d67fe877eb1e74bf9d9550c9f
[ "BSD-2-Clause" ]
1
2021-09-07T14:41:03.000Z
2021-09-07T14:41:03.000Z
tbxforms/widgets.py
jams2/tbxforms
d88aabb428a5e74d67fe877eb1e74bf9d9550c9f
[ "BSD-2-Clause" ]
1
2021-09-07T14:07:40.000Z
2021-09-07T14:07:40.000Z
from django import forms from django.utils.translation import ugettext_lazy as _ class DateInputWidget(forms.MultiWidget): """ A DateInputWidget defines the styling of the set of fields for displaying the value for a DateInputField. A custom widget was needed for two reasons. First the CSS classes ne...
35.166667
97
0.551486
51da09e509654100516be8549e6da40c74072e39
1,310
py
Python
util/n64/find_code_length.py
paulsapps/splat
e312b86f36982dfddc4b00f082d7066f0b259938
[ "MIT" ]
31
2021-01-23T01:21:40.000Z
2022-03-19T03:56:42.000Z
util/n64/find_code_length.py
paulsapps/splat
e312b86f36982dfddc4b00f082d7066f0b259938
[ "MIT" ]
44
2021-02-03T15:10:37.000Z
2022-03-03T08:29:47.000Z
util/n64/find_code_length.py
paulsapps/splat
e312b86f36982dfddc4b00f082d7066f0b259938
[ "MIT" ]
10
2021-03-16T19:37:24.000Z
2022-03-03T15:09:48.000Z
#! /usr/bin/python3 from capstone import * from capstone import Cs, CS_ARCH_MIPS, CS_MODE_MIPS64, CS_MODE_BIG_ENDIAN from capstone.mips import * import argparse md = Cs(CS_ARCH_MIPS, CS_MODE_MIPS64 + CS_MODE_BIG_ENDIAN) parser = argparse.ArgumentParser(description="Given a rom and start offset, find where the code...
27.291667
102
0.675573
f72ac2161ec154a6fbc2d4c0db4116346291b457
9,690
py
Python
homeassistant/components/zha/core/discovery.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
2
2021-09-13T21:44:02.000Z
2021-12-17T21:20:51.000Z
homeassistant/components/zha/core/discovery.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
5
2021-02-08T20:55:25.000Z
2022-03-12T00:51:18.000Z
homeassistant/components/zha/core/discovery.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
2
2020-11-04T07:40:01.000Z
2021-09-13T21:44:03.000Z
"""Device discovery functions for Zigbee Home Automation.""" from collections import Counter import logging from typing import Callable, List, Tuple from homeassistant import const as ha_const from homeassistant.core import callback from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, asyn...
36.022305
88
0.637771
41c8b06a8d34d35e1d652a0da73c2c5ded3b9bd7
170
py
Python
katas/beta/flatten_me.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/beta/flatten_me.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/beta/flatten_me.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
def flatten_me(lst): result = [] for a in lst: try: result.extend(a) except TypeError: result.append(a) return result
18.888889
28
0.511765
cdbc8b30b33df138e6fda49806c5028526a0e11b
1,114
py
Python
src/lstm_models/sine_curve_fitting.py
mfkiwl/ConvLSTM-Computer-Vision-for-Structural-Health-Monitoring-SHM-and-NonDestructive-Testing-NDT
551f6afd2f4207a4a6a717cabc13fe51f31eb410
[ "MIT" ]
17
2020-02-25T05:41:41.000Z
2022-03-25T06:48:30.000Z
src/lstm_models/sine_curve_fitting.py
SubChange/ConvLSTM-Computer-Vision-for-Structural-Health-Monitoring-SHM-and-NonDestructive-Testing-NDT
0f00291fd7d20d3472709f2941adba722b35f8d5
[ "MIT" ]
1
2021-01-13T06:07:02.000Z
2021-01-13T06:07:02.000Z
src/lstm_models/sine_curve_fitting.py
SubChange/ConvLSTM-Computer-Vision-for-Structural-Health-Monitoring-SHM-and-NonDestructive-Testing-NDT
0f00291fd7d20d3472709f2941adba722b35f8d5
[ "MIT" ]
5
2020-11-22T12:58:23.000Z
2021-06-16T14:20:10.000Z
import numpy as np import matplotlib.pyplot as plt def sine_func(x_i): y = np.sin(2*np.pi*x_i) return y def gen_toy_sine_curve_dataset(N, std, periods=1): """ :param N: Number of data points/samples :param std: Standard deviation for (white/Gaussian) noise input :return: 2-tuple (x_vector, y_train) """ y_vec...
27.170732
131
0.70377
8df25bf53add782f90ae03d3bcb25ce0f2ae10f3
1,700
py
Python
pyscf/dft/uks_symm.py
tmash/pyscf
89c101c1c963e8247808635c61cd165bffab42d6
[ "Apache-2.0" ]
1
2020-01-05T13:50:50.000Z
2020-01-05T13:50:50.000Z
pyscf/dft/uks_symm.py
tmash/pyscf
89c101c1c963e8247808635c61cd165bffab42d6
[ "Apache-2.0" ]
null
null
null
pyscf/dft/uks_symm.py
tmash/pyscf
89c101c1c963e8247808635c61cd165bffab42d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
26.153846
74
0.686471
d0b2460f436befcd9684c1a5d46413d97fe5880c
1,734
py
Python
google-cloud-gke_hub-v1beta1/synth.py
trambui09/google-cloud-ruby
9c5f5fc27cbfbb4c4fc55d1171f450d1af3226aa
[ "Apache-2.0" ]
null
null
null
google-cloud-gke_hub-v1beta1/synth.py
trambui09/google-cloud-ruby
9c5f5fc27cbfbb4c4fc55d1171f450d1af3226aa
[ "Apache-2.0" ]
null
null
null
google-cloud-gke_hub-v1beta1/synth.py
trambui09/google-cloud-ruby
9c5f5fc27cbfbb4c4fc55d1171f450d1af3226aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.325581
252
0.731257
c4336db71ed6b5e453b20b0f5c7d3b20992dd3df
9,284
py
Python
tests/unit/test_static.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
1
2018-06-11T23:29:13.000Z
2018-06-11T23:29:13.000Z
tests/unit/test_static.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
8
2019-12-26T16:45:00.000Z
2022-03-21T22:17:13.000Z
tests/unit/test_static.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
1
2019-08-26T06:52:55.000Z
2019-08-26T06:52:55.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
33.039146
79
0.61816
5c8884d745934429b58fd771f9a3c6b214e44f31
1,791
py
Python
src/random_forest.py
jackred/CW2_GERMAN_SIGN
988a99d6012ae95bec778a91785c76a2ca40ba87
[ "MIT" ]
null
null
null
src/random_forest.py
jackred/CW2_GERMAN_SIGN
988a99d6012ae95bec778a91785c76a2ca40ba87
[ "MIT" ]
null
null
null
src/random_forest.py
jackred/CW2_GERMAN_SIGN
988a99d6012ae95bec778a91785c76a2ca40ba87
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestClassifier from sklearn import metrics from helper import pre_processed_data_all, pre_processed_label_all, \ print_result, tree_to_png, run_function, extract_measures, \ plot_experiment from arg import rForest_args import numpy as np import random def random_forest(dat...
34.442308
75
0.677275
ef8b5f35df60d0c3752d886bc6c755cb0ec51d4b
873
py
Python
Chapter_05/chap05_prog_02_Sympy_SolEquation.py
rojassergio/Prealgebra-via-Python-Programming
8d1cdf103af2a39f6ae7bba76e9a6a0182eb39d3
[ "MIT" ]
1
2018-06-19T11:54:15.000Z
2018-06-19T11:54:15.000Z
Chapter_05/chap05_prog_02_Sympy_SolEquation.py
rojassergio/Prealgebra-via-Python-Programming
8d1cdf103af2a39f6ae7bba76e9a6a0182eb39d3
[ "MIT" ]
null
null
null
Chapter_05/chap05_prog_02_Sympy_SolEquation.py
rojassergio/Prealgebra-via-Python-Programming
8d1cdf103af2a39f6ae7bba76e9a6a0182eb39d3
[ "MIT" ]
3
2020-03-02T22:31:18.000Z
2021-04-05T05:06:39.000Z
""" Content under Creative Commons Attribution license CC-BY 4.0, code under MIT license (c)2018 Sergio Rojas (srojas@usb.ve) http://en.wikipedia.org/wiki/MIT_License http://creativecommons.org/licenses/by/4.0/ Created on april, 2018 Last Modified on: may 15, 2018 This program finds the solution of the equation ...
26.454545
76
0.682703
c8aaf5d4cb0d5d45d3c88aaa84cae48d7485987b
5,103
py
Python
00-lesson-1/fakelib/nr_cube.py
tonybutzer/hauge
7cee4c8edda9a2a5a11e69425516c7c47bb21cbf
[ "MIT" ]
null
null
null
00-lesson-1/fakelib/nr_cube.py
tonybutzer/hauge
7cee4c8edda9a2a5a11e69425516c7c47bb21cbf
[ "MIT" ]
null
null
null
00-lesson-1/fakelib/nr_cube.py
tonybutzer/hauge
7cee4c8edda9a2a5a11e69425516c7c47bb21cbf
[ "MIT" ]
null
null
null
import requests import pandas as pd import geopandas import xarray as xr from ks_cool_stac import ks_filter_stacquery, ks_filter_ascending, ks_convert_llurl from fm_map import Fmap from xra_func import load_all_bands_from_df_as_array_of_dataarrays def get_bbox_from_geojson(geojson_file): url = geojson_file gdf = g...
32.711538
142
0.630805
fd15ff916ae18f9aa8f92a32111ea4889beb19e3
11,730
py
Python
python/tvm/target/target.py
retamia/tvm
5d25dc54d874bf2ddf0e8cf34c4748e9e2656fd8
[ "Apache-2.0" ]
5
2020-06-19T03:22:24.000Z
2021-03-17T22:16:48.000Z
python/tvm/target/target.py
retamia/tvm
5d25dc54d874bf2ddf0e8cf34c4748e9e2656fd8
[ "Apache-2.0" ]
2
2020-07-08T12:34:59.000Z
2020-07-11T15:54:47.000Z
python/tvm/target/target.py
retamia/tvm
5d25dc54d874bf2ddf0e8cf34c4748e9e2656fd8
[ "Apache-2.0" ]
2
2019-08-24T00:06:36.000Z
2022-03-03T02:07:27.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.702703
90
0.597698
da533b686d2f9670220338fb2699e5fb4e88711c
1,911
py
Python
create-rss.py
barentsen/wwcpsx-rss
f872cc4d054c1441941cb194c1828e8ca724a021
[ "MIT" ]
null
null
null
create-rss.py
barentsen/wwcpsx-rss
f872cc4d054c1441941cb194c1828e8ca724a021
[ "MIT" ]
null
null
null
create-rss.py
barentsen/wwcpsx-rss
f872cc4d054c1441941cb194c1828e8ca724a021
[ "MIT" ]
null
null
null
"""Creates an RSS feed for the CPSX Western Worlds podcast. Crafted with ♥ for Jon Kissi and Raymond Francis. """ try: from urllib import request # Python 3 except ImportError: import urllib2 as request # Legacy Python import re from feedgen import feed PODCAST_URL = "http://cpsx.uwo.ca/outreach/western_wo...
39
87
0.610675
4757118cf4fa15f2912d20431e30d6ac139689aa
251
bzl
Python
scala/private/phases/phase_unused_deps_checker.bzl
psilospore/rules_scala-rebloopy
69327c55e8095882e59e5c0fe948cb31693b4e6f
[ "Apache-2.0" ]
null
null
null
scala/private/phases/phase_unused_deps_checker.bzl
psilospore/rules_scala-rebloopy
69327c55e8095882e59e5c0fe948cb31693b4e6f
[ "Apache-2.0" ]
null
null
null
scala/private/phases/phase_unused_deps_checker.bzl
psilospore/rules_scala-rebloopy
69327c55e8095882e59e5c0fe948cb31693b4e6f
[ "Apache-2.0" ]
null
null
null
# # PHASE: unused deps checker # # DOCUMENT THIS # load( "@io_bazel_rules_scala//scala/private:rule_impls.bzl", "get_unused_dependency_checker_mode", ) def phase_unused_deps_checker(ctx, p): return get_unused_dependency_checker_mode(ctx)
19.307692
58
0.76494
eb15c36608d7202ded4e94cc6d8dc46888d90f87
2,219
py
Python
utils/inferenceutils.py
n-fallahinia/finger-detection
ebc3a5165b34156fa8f2abb44fde5d48b5405f95
[ "Apache-2.0" ]
1
2021-02-22T00:22:05.000Z
2021-02-22T00:22:05.000Z
utils/inferenceutils.py
n-fallahinia/finger-detection
ebc3a5165b34156fa8f2abb44fde5d48b5405f95
[ "Apache-2.0" ]
null
null
null
utils/inferenceutils.py
n-fallahinia/finger-detection
ebc3a5165b34156fa8f2abb44fde5d48b5405f95
[ "Apache-2.0" ]
null
null
null
import io import os import scipy.misc import numpy as np import six import time import glob from IPython.display import display from six import BytesIO import matplotlib import matplotlib.pyplot as plt from PIL import Image, ImageDraw, ImageFont import tensorflow as tf from object_detection.utils import ops as utils...
35.222222
78
0.733213
98e53f83bbb14a8417eeffbcddd1b5e63cf64c2d
11,032
py
Python
anchorecli/cli/system.py
ayanes/anchore-cli
b052f447cdb46193dca43683f47ecf0c768867fa
[ "Apache-2.0" ]
1
2019-07-19T22:14:18.000Z
2019-07-19T22:14:18.000Z
anchorecli/cli/system.py
kumarchatla/anchore-cli
0cab3cc203c7295663b20981559e68b7283bc84a
[ "Apache-2.0" ]
null
null
null
anchorecli/cli/system.py
kumarchatla/anchore-cli
0cab3cc203c7295663b20981559e68b7283bc84a
[ "Apache-2.0" ]
null
null
null
import sys import os import re import json import time import click import logging import anchorecli.clients.apiexternal import anchorecli.cli.utils config = {} _logger = logging.getLogger(__name__) @click.group(name='system', short_help='System operations') @click.pass_context @click.pass_obj def system(ctx_config,...
42.75969
302
0.599257
3d9f384e7faebac7214c387ca7b50522bb90d573
379
py
Python
exercises/ex083.py
mouraa0/python-exercises
78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1
[ "MIT" ]
null
null
null
exercises/ex083.py
mouraa0/python-exercises
78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1
[ "MIT" ]
null
null
null
exercises/ex083.py
mouraa0/python-exercises
78ecf1cb0d1dfd7dfbdd05574cce5cd6a5cba0f1
[ "MIT" ]
null
null
null
def ex083(): expressao = input('Digite a expressão:\n') paren_a = 0 paren_f = 0 for i in expressao: if i == '(': paren_a += 1 elif i == ')': paren_f += 1 if paren_a == paren_f: resultado = 'VÁLIDA' else: resultado = 'INVÁLIDA' ...
18.047619
46
0.48285
94f527b5cfd92465aaafba3507c26bc165b4b400
920
py
Python
saleor/api/table/serializers.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
1
2018-05-03T06:17:02.000Z
2018-05-03T06:17:02.000Z
saleor/api/table/serializers.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
8
2018-05-07T16:42:35.000Z
2022-02-26T03:31:56.000Z
saleor/api/table/serializers.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
# table rest api serializers from rest_framework import serializers from django.contrib.auth import get_user_model from ...table.models import Table from ...orders.models import Orders User = get_user_model() class TableListSerializer(serializers.ModelSerializer): orders_url = serializers.HyperlinkedIdentityFiel...
30.666667
93
0.66413
3689b04ca987e1b2607af3fdf7572b633f2b232d
1,836
py
Python
Manteia/ActiveLearning.py
ym001/Manteia
e6ed466617933047aecf3071dec1d8bef9b0eeaa
[ "MIT" ]
4
2020-04-19T15:57:56.000Z
2021-07-03T09:13:32.000Z
Manteia/ActiveLearning.py
ym001/Manteia
e6ed466617933047aecf3071dec1d8bef9b0eeaa
[ "MIT" ]
null
null
null
Manteia/ActiveLearning.py
ym001/Manteia
e6ed466617933047aecf3071dec1d8bef9b0eeaa
[ "MIT" ]
null
null
null
""" .. module:: ActiveLearning :platform: Unix, Windows :synopsis: A useful module indeed. .. moduleauthor:: Yves Mercadier <manteia.ym001@gmail.com> """ import numpy as np import math from operator import itemgetter import random class RandomSampling(): """ A random sampling query strategy baseline. """ ...
23.844156
91
0.737473
48807de5934006f3864512d03b687c30b4c45081
24,064
py
Python
appqos/tests/test_power.py
zzhou612/intel-cmt-cat
c351ffa565df56f5057c40ace46436bf3e776101
[ "BSD-3-Clause" ]
397
2017-11-30T17:11:14.000Z
2022-03-31T22:55:32.000Z
appqos/tests/test_power.py
zzhou612/intel-cmt-cat
c351ffa565df56f5057c40ace46436bf3e776101
[ "BSD-3-Clause" ]
150
2017-10-30T10:49:33.000Z
2022-03-30T21:34:41.000Z
appqos/tests/test_power.py
zzhou612/intel-cmt-cat
c351ffa565df56f5057c40ace46436bf3e776101
[ "BSD-3-Clause" ]
132
2017-11-03T11:29:49.000Z
2022-03-21T10:55:10.000Z
################################################################################ # BSD LICENSE # # Copyright(c) 2019-2021 Intel Corporation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # *...
44.316759
142
0.630111
5ae419168f1d56a51d1a97e5a29d05ce165fce67
5,786
py
Python
megengine_release/layers/det/rcnn.py
megvii-research/ICD
a97e0ecd9b69dbc0e3c2b8168c1d72ea79c6641b
[ "Apache-2.0" ]
32
2021-11-09T11:19:21.000Z
2022-03-21T17:37:32.000Z
layers/det/rcnn.py
Senwang98/ICD
fdda393088fa31ac6dc9ddbd7ec3e7008ea32ff4
[ "Apache-2.0" ]
3
2022-02-28T08:51:13.000Z
2022-03-30T09:16:41.000Z
layers/det/rcnn.py
Senwang98/ICD
fdda393088fa31ac6dc9ddbd7ec3e7008ea32ff4
[ "Apache-2.0" ]
4
2021-11-11T11:59:05.000Z
2022-03-30T03:26:41.000Z
# -*- coding:utf-8 -*- # This repo is licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTIE...
41.035461
88
0.605773
fb0b423673a0aa120104de8c8bc50c513a85886d
13,185
py
Python
src/m1.py
hickshj/05a-Debugging
d37ce18683b716ca7031df50f230a63118354bc6
[ "MIT" ]
null
null
null
src/m1.py
hickshj/05a-Debugging
d37ce18683b716ca7031df50f230a63118354bc6
[ "MIT" ]
null
null
null
src/m1.py
hickshj/05a-Debugging
d37ce18683b716ca7031df50f230a63118354bc6
[ "MIT" ]
null
null
null
""" This module lets you practice DEBUGGING when RUN-TIME EXCEPTIONS occur. Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, their colleagues and Hunter Hicks. """ # Done: 1. PUT YOUR NAME IN THE ABOVE LINE. import rosegraphics as rg #################################################...
36.932773
75
0.564581
e9898ff70e1e0b55fc4a5abed8f8020ff117de4f
2,394
py
Python
pydantic/__init__.py
MihanixA/pydantic
91278419f913a596d4bf567d8d16126112f24236
[ "MIT" ]
null
null
null
pydantic/__init__.py
MihanixA/pydantic
91278419f913a596d4bf567d8d16126112f24236
[ "MIT" ]
null
null
null
pydantic/__init__.py
MihanixA/pydantic
91278419f913a596d4bf567d8d16126112f24236
[ "MIT" ]
null
null
null
# flake8: noqa from . import dataclasses from .annotated_types import create_model_from_namedtuple, create_model_from_typeddict from .class_validators import root_validator, validator from .decorator import validate_arguments from .env_settings import BaseSettings from .error_wrappers import ValidationError from .error...
21.185841
95
0.641604
37b20d9d82fd1bc715d92148c21099399ce06378
1,951
py
Python
glance/api/versions.py
rcbops/glance-buildpackage
13e52178fb25d6062db6c7fad9df122d279320ab
[ "Apache-2.0" ]
2
2015-09-30T09:43:37.000Z
2017-06-26T14:36:21.000Z
glance/api/versions.py
rcbops/glance-buildpackage
13e52178fb25d6062db6c7fad9df122d279320ab
[ "Apache-2.0" ]
null
null
null
glance/api/versions.py
rcbops/glance-buildpackage
13e52178fb25d6062db6c7fad9df122d279320ab
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/...
28.275362
78
0.561763
20716025f37ee6382edb7694747e38be848056a9
5,932
py
Python
gans1dset.py
AgamChopra/WGAN-GP
cbe15f4d2ef2ebaef477524103cbda0741098186
[ "MIT" ]
null
null
null
gans1dset.py
AgamChopra/WGAN-GP
cbe15f4d2ef2ebaef477524103cbda0741098186
[ "MIT" ]
null
null
null
gans1dset.py
AgamChopra/WGAN-GP
cbe15f4d2ef2ebaef477524103cbda0741098186
[ "MIT" ]
null
null
null
import cv2 import numpy as np import torch from matplotlib import pyplot as plt import random import sys sys.path.append(r"E:\ML\Dog-Cat-GANs\Dataset") def load_human_bw(): human_list = [] for i in range(1,5233): img = cv2.imread('E:\ML\Dog-Cat-GANs\Dataset\human\humans (%d).jpg'%(i+1))[:,:,0:1] ...
25.90393
93
0.623399
0a0b686edb06d4d7689c9c4e1aba04e3e934a913
2,622
py
Python
arxiv/taxonomy/__init__.py
cul-it/arxiv-base
a5beadf44c24f72e21313299bfafc1ffb9d28ac7
[ "MIT" ]
23
2019-01-10T22:01:18.000Z
2022-02-02T10:28:25.000Z
arxiv/taxonomy/__init__.py
arXiv/arxiv-base
b59490abc1656c240025e19af86d6a246926914a
[ "MIT" ]
57
2018-12-17T16:45:38.000Z
2021-12-14T14:20:58.000Z
arxiv/taxonomy/__init__.py
cul-it/arxiv-base-ui
a5beadf44c24f72e21313299bfafc1ffb9d28ac7
[ "MIT" ]
5
2019-01-10T22:01:28.000Z
2021-11-05T12:25:31.000Z
""" arXiv group, archive and category definitions. arXiv categories are arranged in a hierarchy where there are archives (astro-ph, cs, math, etc.) that contain subject classes (astro-ph has subject classes CO, GA, etc.). We now use the term category to refer to any archive or archive.subject_class that one can submit...
30.847059
78
0.680397
b185c73c34565575bf0482e43bc5ea66833b9c38
5,165
py
Python
libs/cocos/camera.py
HieuLsw/blobjob.editor
c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
libs/cocos/camera.py
HieuLsw/blobjob.editor
c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
libs/cocos/camera.py
HieuLsw/blobjob.editor
c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ---------------------------------------------------------------------------- # cocos2d # Copyright (c) 2008 Daniel Moisset, Ricardo Quesada, Rayentray Tappa, Lucio Torre # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follow...
35.376712
108
0.634656
1a029e645bdfde79841cafd73fd76849b96ca744
1,330
py
Python
tests/anat/script/kancolle/expedition.py
coppelia517/orlov
d7ed6c061432b99ab2b75e0262db293e444fe6be
[ "MIT" ]
null
null
null
tests/anat/script/kancolle/expedition.py
coppelia517/orlov
d7ed6c061432b99ab2b75e0262db293e444fe6be
[ "MIT" ]
null
null
null
tests/anat/script/kancolle/expedition.py
coppelia517/orlov
d7ed6c061432b99ab2b75e0262db293e444fe6be
[ "MIT" ]
null
null
null
""" Script base for orlov anat package. """ import logging import pytest # pylint: disable=E0401 from anat.script.kancolle.testcase_kancolle import KancolleNormal logger = logging.getLogger(__name__) @pytest.mark.usefixtures('conftests_fixture', 'orlov_fixture', 'anat_fixture') # pylint: disable=E1101, C...
30.227273
79
0.583459
151b09250a4e4f1b076b36f5ed79fbf81db6bc18
18,473
py
Python
src/asyncio_helpers/_version.py
sci-bots/asyncio-helpers
3eab1250275e1a0f35369e6a7775f81d4ce3640f
[ "BSD-3-Clause" ]
null
null
null
src/asyncio_helpers/_version.py
sci-bots/asyncio-helpers
3eab1250275e1a0f35369e6a7775f81d4ce3640f
[ "BSD-3-Clause" ]
3
2018-09-12T17:51:54.000Z
2019-04-25T17:28:00.000Z
src/asyncio_helpers/_version.py
sci-bots/asyncio-helpers
3eab1250275e1a0f35369e6a7775f81d4ce3640f
[ "BSD-3-Clause" ]
1
2021-06-03T22:26:41.000Z
2021-06-03T22:26:41.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.456814
79
0.584908
824ea88d2339e16be8b4e188c393e8359e5c8bd2
1,131
py
Python
GATHER_PYv2.py
rgupta9/RANT
d49882e71a6f04e71e9796320007dc78a346e5bd
[ "MIT" ]
3
2021-02-24T21:01:40.000Z
2021-09-14T00:35:48.000Z
GATHER_PYv2.py
rgupta9/RANT
d49882e71a6f04e71e9796320007dc78a346e5bd
[ "MIT" ]
null
null
null
GATHER_PYv2.py
rgupta9/RANT
d49882e71a6f04e71e9796320007dc78a346e5bd
[ "MIT" ]
2
2021-04-19T00:33:34.000Z
2021-08-29T15:24:35.000Z
#! /usr/bin/python # OLD PYTHON VERSION 2.7 - NO LONGER MAINTAINED import os, sys, getpass from netmiko import ConnectHandler from netmiko.ssh_exception import NetMikoTimeoutException from paramiko.ssh_exception import SSHException platform = 'arista_eos' username = raw_input('Username? ') passy = getpass.getpass() ...
22.62
91
0.693192
e9bc9337d31a7766061c591c2af09510b4c7a9b0
7,861
py
Python
poincarefm_rank.py
heygrain/HFM
0bc5c0a44bdbad72febc53c6839df116b8fe433f
[ "MIT" ]
2
2020-06-19T01:58:12.000Z
2020-07-29T11:50:11.000Z
poincarefm_rank.py
heygrain/HFM
0bc5c0a44bdbad72febc53c6839df116b8fe433f
[ "MIT" ]
1
2021-10-03T22:13:00.000Z
2021-10-03T22:13:00.000Z
poincarefm_rank.py
heygrain/HFM
0bc5c0a44bdbad72febc53c6839df116b8fe433f
[ "MIT" ]
2
2020-12-03T00:19:02.000Z
2021-10-03T22:13:02.000Z
import torch from torch import optim import argparse import os import time from datetime import datetime from model import PoincareFM from model.loss import bpr_loss from model.metric import AUC from utils.utils import load_data, batcher, construct_features, set_random_seed, save_results, hit_eval def train(model, d...
43.916201
141
0.641013
9d23cb542a375f41b8e202cbcdc5a791703636ab
22,476
py
Python
Distances_Study/Comparison_Between_Networks.py
Serdobe/Probabilistic_Graphlets
ce4aca495751970089490b745069dbf6113e9f56
[ "Apache-2.0" ]
1
2021-01-04T08:41:59.000Z
2021-01-04T08:41:59.000Z
Distances_Study/Comparison_Between_Networks.py
Serdobe/Probabilistic_Graphlets
ce4aca495751970089490b745069dbf6113e9f56
[ "Apache-2.0" ]
null
null
null
Distances_Study/Comparison_Between_Networks.py
Serdobe/Probabilistic_Graphlets
ce4aca495751970089490b745069dbf6113e9f56
[ "Apache-2.0" ]
null
null
null
''' This Script is for the last part of the protocol. Here we get the final correlation Matrices and calculate the distances. With this distances we can perform a lot of different analyses ''' from itertools import product from scipy.spatial.distance import pdist, squareform from sklearn.metrics import precision_reca...
36.487013
253
0.605846
c8c0d1d80efe59d08a0c155e2586094ee7c5118a
2,904
py
Python
pyloxi/loxi/of13/util.py
floodlight/loxigen-artifacts
1822ec984cb6da342bbaa381677071cbbe53cee6
[ "Apache-2.0" ]
1
2017-06-01T09:41:07.000Z
2017-06-01T09:41:07.000Z
pyloxi/loxi/of13/util.py
floodlight/loxigen-artifacts
1822ec984cb6da342bbaa381677071cbbe53cee6
[ "Apache-2.0" ]
2
2017-07-03T08:50:56.000Z
2018-03-12T16:16:19.000Z
pyloxi/loxi/of14/util.py
floodlight/loxigen-artifacts
1822ec984cb6da342bbaa381677071cbbe53cee6
[ "Apache-2.0" ]
20
2015-02-16T15:23:04.000Z
2022-03-15T20:06:10.000Z
# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University # Copyright (c) 2011, 2012 Open Networking Foundation # Copyright (c) 2012, 2013 Big Switch Networks, Inc. # See the file LICENSE.pyloxi which should have been included in the source distribution # Automatically generated by LOXI from t...
24.403361
91
0.583333
376f0c416e67a80bc8909f11fa5a3d1c2a41d63c
27,516
py
Python
tests/cupy_tests/creation_tests/test_from_data.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
null
null
null
tests/cupy_tests/creation_tests/test_from_data.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
null
null
null
tests/cupy_tests/creation_tests/test_from_data.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
null
null
null
import tempfile import unittest import pytest import cupy from cupy import cuda from cupy import testing import numpy class TestFromData(unittest.TestCase): @testing.for_orders('CFAK') @testing.for_all_dtypes() @testing.numpy_cupy_array_equal() def test_array(self, xp, dtype, order): return...
37.953103
79
0.619603
c23a5bcb3ebed2dcfabb49a4f25e69837a6efeaa
17,771
py
Python
libraries/gui/tab_quiver.py
loslab/hware
85771404a9a75982e3196bfe2acc26ecb30350e8
[ "BSD-3-Clause" ]
3
2019-01-23T13:11:51.000Z
2022-03-16T22:44:52.000Z
libraries/gui/tab_quiver.py
loslab/hware
85771404a9a75982e3196bfe2acc26ecb30350e8
[ "BSD-3-Clause" ]
1
2022-03-06T15:16:40.000Z
2022-03-11T20:27:10.000Z
libraries/gui/tab_quiver.py
loslab/hware
85771404a9a75982e3196bfe2acc26ecb30350e8
[ "BSD-3-Clause" ]
6
2019-01-23T13:12:00.000Z
2022-03-19T13:15:45.000Z
import sys from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas import matplotlib.pyplot as plt from PyQt5.QtWidgets import (QWidget, QGridLayout,QPushButton, QApplication) from PyQt5 import QtCore from PyQt5.QtWidgets import (QLabel, QLineEdit, QGridLayout, QComboBox, QTextEdit,QSizePo...
48.02973
301
0.670643
fddae63d2f96384c2c2c0d53a64ecd4ad8c9a4c8
2,025
py
Python
ludwig/data/dataframe/modin.py
dantreiman/ludwig
daeffd21f9eef524afb2037763abd07a93228c2a
[ "Apache-2.0" ]
7,739
2019-02-11T14:06:31.000Z
2020-12-16T18:30:29.000Z
ludwig/data/dataframe/modin.py
dantreiman/ludwig
daeffd21f9eef524afb2037763abd07a93228c2a
[ "Apache-2.0" ]
769
2019-02-11T16:13:20.000Z
2020-12-16T17:26:11.000Z
ludwig/data/dataframe/modin.py
dantreiman/ludwig
daeffd21f9eef524afb2037763abd07a93228c2a
[ "Apache-2.0" ]
975
2019-02-11T15:55:54.000Z
2020-12-14T21:45:39.000Z
#! /usr/bin/env python # Copyright (c) 2022 Predibase, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
26.298701
80
0.652346
f08ca06a07e69c6e68f6891baa43317a399765d3
465
py
Python
subscription/migrations/0012_auto_20200603_1405.py
BuildForSDG/dijiElimu
514a90d6f0480516aa209891224cf9dfe6be1607
[ "MIT" ]
null
null
null
subscription/migrations/0012_auto_20200603_1405.py
BuildForSDG/dijiElimu
514a90d6f0480516aa209891224cf9dfe6be1607
[ "MIT" ]
20
2020-05-12T12:11:01.000Z
2022-03-12T00:33:12.000Z
subscription/migrations/0012_auto_20200603_1405.py
BuildForSDG/dijiElimu
514a90d6f0480516aa209891224cf9dfe6be1607
[ "MIT" ]
4
2020-05-06T03:57:04.000Z
2020-05-20T06:30:28.000Z
# Generated by Django 3.0.6 on 2020-06-03 14:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('subscription', '0011_auto_20200603_1304'), ] operations = [ migrations.RemoveField( model_name='subscription', name='subscri...
21.136364
52
0.591398
5c07d1c66d8bb22472b2bc26c85d0702f272fcd1
3,377
py
Python
app/main/views.py
candycrushpro/Pitches
9224e9ecc11ab673d8478b5bcd7cec3ed6116013
[ "MIT" ]
null
null
null
app/main/views.py
candycrushpro/Pitches
9224e9ecc11ab673d8478b5bcd7cec3ed6116013
[ "MIT" ]
null
null
null
app/main/views.py
candycrushpro/Pitches
9224e9ecc11ab673d8478b5bcd7cec3ed6116013
[ "MIT" ]
2
2019-07-02T10:36:41.000Z
2019-09-21T13:53:49.000Z
from flask import render_template,request,redirect,url_for, abort from . import main from ..models import User, Pitch, Category, Vote, Comment from flask_login import login_required, current_user from .forms import UpdateProfile, PitchForm, CommentForm, CategoryForm from .. import db, photos #Views @main.route('/') de...
29.112069
99
0.66716
1259f27d2880e8183704da490a9cf5f53f82d1bf
1,521
py
Python
bifrost/registry.py
snek-shipyard/wagtai-bifrost
2a32467c922110aff5b79edaf84f38ee9f684369
[ "Unlicense", "MIT" ]
null
null
null
bifrost/registry.py
snek-shipyard/wagtai-bifrost
2a32467c922110aff5b79edaf84f38ee9f684369
[ "Unlicense", "MIT" ]
3
2021-01-17T17:58:01.000Z
2021-02-19T09:15:15.000Z
bifrost/registry.py
snek-shipyard/wagtail-bifrost
2a32467c922110aff5b79edaf84f38ee9f684369
[ "MIT", "Unlicense" ]
1
2021-04-27T12:46:09.000Z
2021-04-27T12:46:09.000Z
class RegistryItem(dict): @property def types(self) -> tuple: return tuple(self.values()) class Registry: apps = [] queries = [] mutations = [] subscriptions = [] pages = RegistryItem() documents = RegistryItem() images = RegistryItem() snippets = RegistryItem() str...
24.532258
59
0.608153
cdf329a03e5f44f791a544ec582d1c2894188c79
21,924
py
Python
tests/__init__.py
DarioLodeiros/doodba
5f2d5a0c475f6877b6bfffd850a3470ee9955e30
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
DarioLodeiros/doodba
5f2d5a0c475f6877b6bfffd850a3470ee9955e30
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
DarioLodeiros/doodba
5f2d5a0c475f6877b6bfffd850a3470ee9955e30
[ "Apache-2.0" ]
1
2022-01-02T00:46:47.000Z
2022-01-02T00:46:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Run tests for this base image. Each test must be a valid docker-compose.yaml file with a ``odoo`` service. """ import logging import unittest from itertools import product from os import environ from os.path import dirname, join from subprocess import Popen logging.ba...
41.522727
114
0.456623
45c9abb029acf9285f5483fb5099b72633903410
730
py
Python
test/aio/test_shutdown_event.py
jayvdb/i3ipc-python
dc2144418499eebbc1aa08f224fbcdfd76670d62
[ "BSD-3-Clause" ]
null
null
null
test/aio/test_shutdown_event.py
jayvdb/i3ipc-python
dc2144418499eebbc1aa08f224fbcdfd76670d62
[ "BSD-3-Clause" ]
null
null
null
test/aio/test_shutdown_event.py
jayvdb/i3ipc-python
dc2144418499eebbc1aa08f224fbcdfd76670d62
[ "BSD-3-Clause" ]
null
null
null
from .ipctest import IpcTest import pytest import asyncio class TestShutdownEvent(IpcTest): events = [] def restart_func(self, i3): asyncio.ensure_future(i3.command('restart')) def on_shutdown(self, i3, e): self.events.append(e) if len(self.events) == 1: i3._loop.ca...
25.172414
59
0.621918
77a0e594663bf536c69ff41ab5b192020d45bf9d
9,480
py
Python
tornado/test/log_test.py
bgerrity/tornado
208672f3bf6cbb7e37f54c356e02a71ca29f1e02
[ "Apache-2.0" ]
15,056
2015-01-01T03:08:16.000Z
2022-03-31T14:44:56.000Z
tornado/test/log_test.py
bgerrity/tornado
208672f3bf6cbb7e37f54c356e02a71ca29f1e02
[ "Apache-2.0" ]
1,645
2015-01-05T08:15:32.000Z
2022-03-24T20:30:10.000Z
tornado/test/log_test.py
bgerrity/tornado
208672f3bf6cbb7e37f54c356e02a71ca29f1e02
[ "Apache-2.0" ]
5,098
2015-01-02T15:43:36.000Z
2022-03-30T06:04:43.000Z
# # Copyright 2012 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.536585
87
0.633017
56e6569552ee7c0481a269938dd7e39f713278e7
6,278
py
Python
src/deepymod/training/sparsity_scheduler.py
remykusters/DeePyMoD
c53ce939c5e6a5f0207b042d8d42bc0197d66073
[ "MIT" ]
null
null
null
src/deepymod/training/sparsity_scheduler.py
remykusters/DeePyMoD
c53ce939c5e6a5f0207b042d8d42bc0197d66073
[ "MIT" ]
null
null
null
src/deepymod/training/sparsity_scheduler.py
remykusters/DeePyMoD
c53ce939c5e6a5f0207b042d8d42bc0197d66073
[ "MIT" ]
null
null
null
""" Contains classes that schedule when the sparsity mask should be applied """ import torch import numpy as np class Periodic: """Periodically applies sparsity every periodicity iterations after initial_epoch. """ def __init__(self, periodicity=50, initial_iteration=1000): """Periodically ap...
42.707483
126
0.651959
59269461d9f3658566fe51f42861ecdc66716467
8,586
py
Python
sympy/polys/orderings.py
MartinThoma/sympy
009d0031bec7222ffa472e52148a2b4e441cd3a5
[ "BSD-3-Clause" ]
2
2019-05-18T22:36:49.000Z
2019-05-24T05:56:16.000Z
sympy/polys/orderings.py
mmelotti/sympy
bea29026d27cc50c2e6a5501b6a70a9629ed3e18
[ "BSD-3-Clause" ]
1
2020-04-22T12:45:26.000Z
2020-04-22T12:45:26.000Z
sympy/polys/orderings.py
mmelotti/sympy
bea29026d27cc50c2e6a5501b6a70a9629ed3e18
[ "BSD-3-Clause" ]
3
2021-02-16T16:40:49.000Z
2022-03-07T18:28:41.000Z
"""Definitions of monomial orderings. """ from __future__ import print_function, division from typing import Optional __all__ = ["lex", "grlex", "grevlex", "ilex", "igrlex", "igrevlex"] from sympy.core import Symbol from sympy.core.compatibility import iterable class MonomialOrder(object): """Base class for mo...
29.709343
109
0.62765
0453a5736615075a9d61b6d2228b0f13ff961d60
1,367
py
Python
debug/compare_map/run_fpsl_cvxpy.py
gfarnadi/FairPSL
1d262b070beb3d622676cd226c4dfd8f1a8ad7d9
[ "MIT" ]
null
null
null
debug/compare_map/run_fpsl_cvxpy.py
gfarnadi/FairPSL
1d262b070beb3d622676cd226c4dfd8f1a8ad7d9
[ "MIT" ]
null
null
null
debug/compare_map/run_fpsl_cvxpy.py
gfarnadi/FairPSL
1d262b070beb3d622676cd226c4dfd8f1a8ad7d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys SCRIPTDIR = os.path.dirname(__file__) ENGINDIR = os.path.join(SCRIPTDIR, '..', '..', 'engines') sys.path.append(os.path.abspath(ENGINDIR)) from fpsl_cvxpy import map_inference PROBLEMDIR = os.path.join(SCRIPTDIR, '..', '..', 'problems', 'paper_review') sys.path.append(os.path.abs...
32.547619
76
0.627652
b7510eabf69066f2fa55df9786d8dcfd4b2f55d2
482
py
Python
data/scripts/templates/object/building/corellia/shared_skyscraper_corellia_style_04.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/building/corellia/shared_skyscraper_corellia_style_04.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/building/corellia/shared_skyscraper_corellia_style_04.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Building() result.template = "object/building/corellia/shared_skyscraper_corellia_style_04.iff" result.attribute_...
28.352941
85
0.746888
0d48752e6d0551c8d7b4615e5780d619892af268
7,040
py
Python
tests/test_preprocessing.py
stas00/Megatron-DeepSpeed
48dcee4a4dc07da855c35d3c563f8c2eec14c737
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
stas00/Megatron-DeepSpeed
48dcee4a4dc07da855c35d3c563f8c2eec14c737
[ "MIT" ]
1
2021-08-08T01:48:54.000Z
2021-08-08T16:43:31.000Z
tests/test_preprocessing.py
stas00/Megatron-DeepSpeed
48dcee4a4dc07da855c35d3c563f8c2eec14c737
[ "MIT" ]
null
null
null
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.446809
208
0.613778
04f897ef9f317ce64fd61c2face3de2711041567
11,513
py
Python
docs/source/conf.py
normarivano/aiida-wannier90
9c672178195bb40dafcd3eca3e4b5004b49526d7
[ "MIT" ]
null
null
null
docs/source/conf.py
normarivano/aiida-wannier90
9c672178195bb40dafcd3eca3e4b5004b49526d7
[ "MIT" ]
null
null
null
docs/source/conf.py
normarivano/aiida-wannier90
9c672178195bb40dafcd3eca3e4b5004b49526d7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # aiida-wannier90 documentation build configuration file, created by # sphinx-quickstart on Fri Oct 10 02:14:52 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fil...
34.163205
140
0.715365
7039b77b8baafd0af311ef808f880c223ea3f4b2
2,982
py
Python
lang/zsh.py
codecat555/codecat555-fidgetingbits_knausj_talon
62f9be0459e6631c99d58eee97054ddd970cc5f3
[ "MIT" ]
1
2020-12-30T00:18:18.000Z
2020-12-30T00:18:18.000Z
lang/zsh.py
codecat555/codecat555-fidgetingbits_knausj_talon
62f9be0459e6631c99d58eee97054ddd970cc5f3
[ "MIT" ]
null
null
null
lang/zsh.py
codecat555/codecat555-fidgetingbits_knausj_talon
62f9be0459e6631c99d58eee97054ddd970cc5f3
[ "MIT" ]
null
null
null
from talon import Context, actions ctx = Context() ctx.matches = r""" # this is largely based on bash.talon. any problems you find that aren't # explicitly in zsh functionality you may want to see if they also exist there mode: user.zsh mode: command and code.language: zsh """ @ctx.action_class("user") class UserAc...
25.706897
78
0.65057
a892012c3fcc015e665d249161c3e79bc4338ec3
45,763
py
Python
Lib/email/message.py
pelotoncycle/cpython-fork
1ab99a0e912aac9c3f16555f23284d7e381f2f69
[ "PSF-2.0" ]
486
2016-05-28T18:51:54.000Z
2022-03-20T17:30:31.000Z
Lib/email/message.py
sky-skynet/Python3
b816507f56ee14b730b7ab52a61eb17f9eb9d815
[ "PSF-2.0" ]
40
2016-05-29T00:24:56.000Z
2020-07-13T11:56:58.000Z
Lib/email/message.py
sky-skynet/Python3
b816507f56ee14b730b7ab52a61eb17f9eb9d815
[ "PSF-2.0" ]
74
2015-05-29T17:18:53.000Z
2022-01-15T14:06:44.000Z
# Copyright (C) 2001-2007 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Basic message object for the email package object model.""" __all__ = ['Message'] import re import uu import quopri import warnings from io import BytesIO, StringIO # Intrapackage imports from email import...
39.93281
96
0.595175
79f8bcaf051114c727cc12c20c5ac07e97607674
97,244
py
Python
scipy/interpolate/interpolate.py
isuruf/scipy
a767030252ba3f7c8e2924847dffa7024171657b
[ "BSD-3-Clause" ]
null
null
null
scipy/interpolate/interpolate.py
isuruf/scipy
a767030252ba3f7c8e2924847dffa7024171657b
[ "BSD-3-Clause" ]
null
null
null
scipy/interpolate/interpolate.py
isuruf/scipy
a767030252ba3f7c8e2924847dffa7024171657b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function, absolute_import __all__ = ['interp1d', 'interp2d', 'lagrange', 'PPoly', 'BPoly', 'NdPPoly', 'RegularGridInterpolator', 'interpn'] import itertools import warnings import functools import operator import numpy as np from numpy import (array, transpose, searc...
35.790946
112
0.554841
29fd118ccaf1a1d136f9695e39f0e23b6427e873
624
py
Python
saleor/dashboard/group/forms.py
nobism/saleor
a199bee5ef8cb2ecd1d7fd4bcc708f3b4903aa2d
[ "BSD-3-Clause" ]
3
2018-06-14T22:52:38.000Z
2019-01-24T03:48:46.000Z
saleor/dashboard/group/forms.py
nobism/saleor
a199bee5ef8cb2ecd1d7fd4bcc708f3b4903aa2d
[ "BSD-3-Clause" ]
1
2022-02-13T22:52:38.000Z
2022-02-13T22:52:38.000Z
saleor/dashboard/group/forms.py
nobism/saleor
a199bee5ef8cb2ecd1d7fd4bcc708f3b4903aa2d
[ "BSD-3-Clause" ]
1
2021-12-02T18:49:31.000Z
2021-12-02T18:49:31.000Z
from django import forms from django.contrib.auth.models import Group from django.utils.translation import pgettext_lazy from ...core.permissions import get_permissions from ..forms import PermissionMultipleChoiceField class GroupPermissionsForm(forms.ModelForm): class Meta: model = Group fields ...
31.2
71
0.711538
c7e570417af6b904b6c822405240c86b3f716e8e
873
py
Python
nlp/readabilityIndex.py
numankh/HypeBeastDashboard
8b30fe2cb972a603b6ce1d84004b418d52471a7e
[ "MIT" ]
null
null
null
nlp/readabilityIndex.py
numankh/HypeBeastDashboard
8b30fe2cb972a603b6ce1d84004b418d52471a7e
[ "MIT" ]
null
null
null
nlp/readabilityIndex.py
numankh/HypeBeastDashboard
8b30fe2cb972a603b6ce1d84004b418d52471a7e
[ "MIT" ]
null
null
null
# import spacy from textstat.textstat import textstatistics,legacy_round import textstat import en_core_web_sm # While the maximum score is 121.22, there is no limit on how low the score can be. A negative score is valid. def flesch_reading_ease_score(text): return textstat.flesch_reading_ease(text) # Average of all...
48.5
239
0.802978
3b7e9c1083f6138386c2c8fbd2a6932567b8b0ff
3,832
py
Python
torchgeometry/losses/depth_smooth.py
tina300399/torchgeometry
48d8026f0a5f3d4ac5567b7b2738390892b3cc8d
[ "Apache-2.0" ]
null
null
null
torchgeometry/losses/depth_smooth.py
tina300399/torchgeometry
48d8026f0a5f3d4ac5567b7b2738390892b3cc8d
[ "Apache-2.0" ]
null
null
null
torchgeometry/losses/depth_smooth.py
tina300399/torchgeometry
48d8026f0a5f3d4ac5567b7b2738390892b3cc8d
[ "Apache-2.0" ]
1
2019-10-04T05:05:28.000Z
2019-10-04T05:05:28.000Z
import torch import torch.nn as nn import torch.nn.functional as F # Based on # https://github.com/tensorflow/models/blob/master/research/struct2depth/model.py#L625-L641 class InverseDepthSmoothnessLoss(nn.Module): r"""Criterion that computes image-aware inverse depth smoothness loss. .. math:: \te...
37.203883
91
0.5762
8ab5b498065e1ffa4e16c5237e8d8d2e09e0744f
4,853
py
Python
mrdomino/__init__.py
knighton/mapreduce
3349fe2da0d01400b464aebb6ee239fb962d8def
[ "MIT" ]
1
2015-07-28T18:22:30.000Z
2015-07-28T18:22:30.000Z
mrdomino/__init__.py
knighton/mapreduce
3349fe2da0d01400b464aebb6ee239fb962d8def
[ "MIT" ]
null
null
null
mrdomino/__init__.py
knighton/mapreduce
3349fe2da0d01400b464aebb6ee239fb962d8def
[ "MIT" ]
null
null
null
import os import sys import imp import logging from pkg_resources import resource_filename from tempfile import mkdtemp from abc import abstractmethod from mrdomino import util from mrdomino.util import MRCounter class protocol(object): JSONProtocol = 0 JSONValueProtocol = 1 PickleProtocol = 2 # uns...
31.512987
75
0.667422
280df66de612622bafcfeec906a80b6745aacaa1
1,143
py
Python
.tox/scenario/lib/python2.7/site-packages/tempest_lib/tests/fake_auth_provider.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/tempest_lib/tests/fake_auth_provider.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/tempest_lib/tests/fake_auth_provider.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2014 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
33.617647
79
0.705162
0f939937a7aba24f5d25e7c0d16fcdb0eb6cbf97
81,825
py
Python
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/operations/_share_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/operations/_share_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/operations/_share_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
54.26061
172
0.667705
2421ae44c8410ae22db7694240c9dabfe98997c4
3,452
py
Python
profiles_project/settings.py
JasonK1561/profiles-rest-api
5cdf148d55c5610c944e48abd203885e92d4b741
[ "MIT" ]
null
null
null
profiles_project/settings.py
JasonK1561/profiles-rest-api
5cdf148d55c5610c944e48abd203885e92d4b741
[ "MIT" ]
null
null
null
profiles_project/settings.py
JasonK1561/profiles-rest-api
5cdf148d55c5610c944e48abd203885e92d4b741
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2.5. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ imp...
27.181102
102
0.705678
4ebfbc4fee1e04634408737c452de9e17245d0c3
14,570
py
Python
net/views.py
dehu4ka/lna
f5ee176bdb5c7507b76fba5ae651ce333b71c3db
[ "MIT" ]
null
null
null
net/views.py
dehu4ka/lna
f5ee176bdb5c7507b76fba5ae651ce333b71c3db
[ "MIT" ]
null
null
null
net/views.py
dehu4ka/lna
f5ee176bdb5c7507b76fba5ae651ce333b71c3db
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect from django.shortcuts import render from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse_lazy from django.views.generic import TemplateView, ListView, FormView, DetailView from django.core.exceptions import PermissionDenied from net.model...
38.853333
118
0.617708
cd8cd449f9002a31a3a3cc9560cb46e6985bc0e0
16,366
py
Python
airflow/providers/microsoft/azure/operators/azure_container_instances.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
airflow/providers/microsoft/azure/operators/azure_container_instances.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
airflow/providers/microsoft/azure/operators/azure_container_instances.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
41.856777
110
0.611878
17fa338fad14d58a178996bfaadf00950f6e5981
1,463
py
Python
pytorch/models/classifier.py
cmonserr/Why_Difficulty
7b34cc3556a1b99ac67cb155fba8d0837c9b7b10
[ "MIT" ]
1
2022-02-04T11:33:41.000Z
2022-02-04T11:33:41.000Z
pytorch/models/classifier.py
dcastf01/creating_adversarial_images
01564f7b4ff9f19021986e57f5bfad827213c8a6
[ "MIT" ]
null
null
null
pytorch/models/classifier.py
dcastf01/creating_adversarial_images
01564f7b4ff9f19021986e57f5bfad827213c8a6
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch import nn import pytorch_pfn_extras as ppe class Classifier(nn.Module): """two class classfication""" def __init__(self, predictor, lossfun=cross_entropy_with_logits): super().__init__() self.predictor = predictor self.lossfun = l...
32.511111
78
0.574846
76782e70811ce5cd512d3c5a760a4bb0182a0071
1,568
py
Python
qcdb/driver/pe.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
qcdb/driver/pe.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
qcdb/driver/pe.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
import collections from qcelemental.util import which, which_import from .. import data_dir from ..molecule import Molecule from ..moptions.read_options2 import RottenOptions, load_qcdb_defaults from ..intf_psi4.options import load_cfour_defaults_from_psi4, load_psi4_defaults from ..intf_nwchem.options import load_nw...
26.133333
83
0.753189
f0c9f4eb3806365595409e4a7d10933f90de563f
2,105
py
Python
utility/testSiO-SiO2-quant-2.py
jrminter/dtsa2scripts
a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b
[ "MIT" ]
2
2018-04-19T12:25:29.000Z
2018-11-24T12:55:46.000Z
utility/testSiO-SiO2-quant-2.py
jrminter/dtsa2Scripts
a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b
[ "MIT" ]
null
null
null
utility/testSiO-SiO2-quant-2.py
jrminter/dtsa2Scripts
a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 # testSiO-SiO2-quant-2.py # This version reads from disk # 2018-10-16 import sys import os import time import shutil # import dtsa2 as dt2 import dtsa2.mcSimulate3 as mc3 import dtsa2.jmGen as jmg gitDir = os.environ['GIT_HOME'] relPrj = "/dtsa2Scripts/util...
24.764706
68
0.664133
be4e026862513dc237b901b17602e6e32314c79b
964
py
Python
disturbance/migrations/0155_auto_20200911_0941.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
1
2020-06-30T04:47:42.000Z
2020-06-30T04:47:42.000Z
disturbance/migrations/0155_auto_20200911_0941.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/migrations/0155_auto_20200911_0941.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-09-11 01:41 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('disturbance', '0154_apiarysiteonapproval_wkb_geometry'), ] operations = [ migration...
25.368421
66
0.574689
bbc00859eedabe8a5a3bec12b998c0e13fd445c5
996
py
Python
app/recipe/serializers.py
aldhiramdans/recipe-app-api
2c9f0902372a5eb23c4a19c06611379e7540ed73
[ "MIT" ]
null
null
null
app/recipe/serializers.py
aldhiramdans/recipe-app-api
2c9f0902372a5eb23c4a19c06611379e7540ed73
[ "MIT" ]
null
null
null
app/recipe/serializers.py
aldhiramdans/recipe-app-api
2c9f0902372a5eb23c4a19c06611379e7540ed73
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Ingridient, Recipe class TagSerializer(serializers.ModelSerializer): """Serializer for tag objects""" class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class IngridientSerializer(serializer...
24.9
69
0.62751
f9c5d6842160a4443aded597030343e05bf1470b
7,896
py
Python
submit_muti.py
Complicateddd/Complicateddd-ROITransformer
2adfbf98892d569c460d100c6e2169c5fa3a9b82
[ "Apache-2.0" ]
null
null
null
submit_muti.py
Complicateddd/Complicateddd-ROITransformer
2adfbf98892d569c460d100c6e2169c5fa3a9b82
[ "Apache-2.0" ]
null
null
null
submit_muti.py
Complicateddd/Complicateddd-ROITransformer
2adfbf98892d569c460d100c6e2169c5fa3a9b82
[ "Apache-2.0" ]
1
2021-12-17T12:49:06.000Z
2021-12-17T12:49:06.000Z
from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections,inference_detector_2 from mmdet.apis import draw_poly_detections_2,init_detector_2 import mmcv from mmcv import Config from mmdet.datasets import get_dataset import cv2 import os import numpy as np from tqdm import tqdm import D...
38.144928
146
0.566489
2d9c15f50f03bd7aa918736bbdf996baf98a9275
88,401
py
Python
google/cloud/bigquery/table.py
quentin-sommer/python-bigquery
1312093855b1b6bd81c5f6e9e358151cfbd366b8
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/table.py
quentin-sommer/python-bigquery
1312093855b1b6bd81c5f6e9e358151cfbd366b8
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/table.py
quentin-sommer/python-bigquery
1312093855b1b6bd81c5f6e9e358151cfbd366b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.431263
109
0.621181
a3e234ecd6e035d8e93540b9bbc4c39277986474
4,829
py
Python
doc/conf.py
thefab/mfcom-1
f6a209edb22a782dfb0cf63cc0f62433b1b6e961
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
thefab/mfcom-1
f6a209edb22a782dfb0cf63cc0f62433b1b6e961
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
thefab/mfcom-1
f6a209edb22a782dfb0cf63cc0f62433b1b6e961
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import sphinx_rtd_theme # sys.path.insert(0, os.path.abspath('.')) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. # # needs_sphinx = '1.0' # Add any Sphinx extension module names he...
29.993789
78
0.674881
ff91304d7511f7521e26f81283629ce1d723360d
30,598
py
Python
test/test_frames.py
to-bee/hyperframe
554fcad68beffae57dc8335ed5e02c177bfd6000
[ "MIT" ]
30
2015-09-21T09:31:15.000Z
2022-01-23T18:31:34.000Z
test/test_frames.py
to-bee/hyperframe
554fcad68beffae57dc8335ed5e02c177bfd6000
[ "MIT" ]
50
2015-07-20T07:52:27.000Z
2021-06-06T14:55:16.000Z
test/test_frames.py
to-bee/hyperframe
554fcad68beffae57dc8335ed5e02c177bfd6000
[ "MIT" ]
25
2015-09-17T15:54:37.000Z
2022-03-18T21:24:13.000Z
# -*- coding: utf-8 -*- from hyperframe.frame import ( Frame, Flags, DataFrame, PriorityFrame, RstStreamFrame, SettingsFrame, PushPromiseFrame, PingFrame, GoAwayFrame, WindowUpdateFrame, HeadersFrame, ContinuationFrame, AltSvcFrame, ExtensionFrame ) from hyperframe.exceptions import ( UnknownFrameError,...
32.865736
109
0.605432
7607ab6b187fb9c402bb8a8d57b9520d45c84a4f
161
py
Python
ejercicioA/empresa.py
Germiprogramer/EJERCICIOS-DE-AGREGACI-N-Y-COMPOSICI-N-DE-POO
0bead93f86801614c3aa3c2ed29a5559da90990c
[ "Apache-2.0" ]
null
null
null
ejercicioA/empresa.py
Germiprogramer/EJERCICIOS-DE-AGREGACI-N-Y-COMPOSICI-N-DE-POO
0bead93f86801614c3aa3c2ed29a5559da90990c
[ "Apache-2.0" ]
null
null
null
ejercicioA/empresa.py
Germiprogramer/EJERCICIOS-DE-AGREGACI-N-Y-COMPOSICI-N-DE-POO
0bead93f86801614c3aa3c2ed29a5559da90990c
[ "Apache-2.0" ]
null
null
null
class Empresa: def __init__(self, nombre, edificio, empleado): self.nombre = nombre self.edificio = edificio self.empleado = empleado
32.2
51
0.652174
c7c6d5acf77500a56a683ebd5472777799bb3d6d
375
py
Python
citrination_client/views/descriptors/__init__.py
nequalszero/python-citrination-client
634796717692af35e6b406a7014fc82ad6baaa34
[ "Apache-2.0" ]
20
2016-06-15T18:40:50.000Z
2022-03-21T11:59:13.000Z
citrination_client/views/descriptors/__init__.py
nequalszero/python-citrination-client
634796717692af35e6b406a7014fc82ad6baaa34
[ "Apache-2.0" ]
91
2015-12-23T18:13:43.000Z
2020-07-21T21:33:13.000Z
citrination_client/views/descriptors/__init__.py
nequalszero/python-citrination-client
634796717692af35e6b406a7014fc82ad6baaa34
[ "Apache-2.0" ]
18
2016-07-19T15:33:18.000Z
2022-03-02T19:42:24.000Z
from .alloy_composition_descriptor import AlloyCompositionDescriptor from .categorical_descriptor import CategoricalDescriptor from .inorganic_descriptor import InorganicDescriptor from .int_descriptor import IntDescriptor from .organic_descriptor import OrganicDescriptor from .real_descriptor import RealDescriptor fro...
46.875
68
0.906667
b01619e603894f790f3b16487e33e2d2ac3f6c8f
15,858
py
Python
bin/sam_stats.py
KyleLevi/BAM_Scripts
71805b57ee81cb3bd4e30f96a6236d8d8e148df7
[ "MIT" ]
null
null
null
bin/sam_stats.py
KyleLevi/BAM_Scripts
71805b57ee81cb3bd4e30f96a6236d8d8e148df7
[ "MIT" ]
2
2020-01-23T14:58:03.000Z
2020-01-23T15:02:14.000Z
bin/sam_stats.py
KyleLevi/BAM_Scripts
71805b57ee81cb3bd4e30f96a6236d8d8e148df7
[ "MIT" ]
1
2020-01-23T14:54:14.000Z
2020-01-23T14:54:14.000Z
import sys import os import argparse import subprocess import pysam class Sam_Reader: def __init__(self, file_or_folder, **kwargs): """ Initialize with the path to a file or a folder. If a file is :param file_or_folder: """ convert = kwargs.get('convert', True)...
45.700288
176
0.557573
1e4dac23cccfffdbb98022a4ce00a319028c7687
567
py
Python
djangoui/user/signals.py
ceexon/django-frontend
1aa72b8cdc119acd50922c1978c7abaa47d9b1ed
[ "MIT" ]
null
null
null
djangoui/user/signals.py
ceexon/django-frontend
1aa72b8cdc119acd50922c1978c7abaa47d9b1ed
[ "MIT" ]
8
2021-04-08T19:21:53.000Z
2022-03-11T23:50:51.000Z
djangoui/user/signals.py
kburudi/django-frontend
1aa72b8cdc119acd50922c1978c7abaa47d9b1ed
[ "MIT" ]
null
null
null
"""Signals for user actions.""" from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from .models import Profile @receiver(post_save, sender=User) def create_user_profile(sender, instance, created, **kwargs): """Create user profile on sav...
28.35
61
0.738977
e745e2d717cffe48514128f36b80c5317775087e
654
py
Python
bbtools/callvariants/wrapper.py
avilab/vs-wrappers
65524b3566969da7909e0d08c423b6eecadea039
[ "MIT" ]
1
2021-04-25T08:20:14.000Z
2021-04-25T08:20:14.000Z
bbtools/callvariants/wrapper.py
avilab/vs-wrappers
65524b3566969da7909e0d08c423b6eecadea039
[ "MIT" ]
2
2018-12-28T08:40:03.000Z
2019-02-22T13:28:34.000Z
bbtools/callvariants/wrapper.py
avilab/vs-wrappers
65524b3566969da7909e0d08c423b6eecadea039
[ "MIT" ]
null
null
null
__author__ = "Taavi Päll" __copyright__ = "Copyright 2021, Taavi Päll" __email__ = "tapa741@gmail.com" __license__ = "MIT" from snakemake.shell import shell from snakemake_wrapper_utils.java import get_java_opts java_opts = get_java_opts(snakemake) def parseIO(d): return " ".join([("in" if k == "input" else k)...
21.8
84
0.697248
235e2a8ac6171d94793c40231b2df3f800d482b5
2,026
py
Python
compile.py
honzajavorek/blackbeard
1252de7f2a7cbf74b432002509087c09f54c84b4
[ "ISC" ]
null
null
null
compile.py
honzajavorek/blackbeard
1252de7f2a7cbf74b432002509087c09f54c84b4
[ "ISC" ]
null
null
null
compile.py
honzajavorek/blackbeard
1252de7f2a7cbf74b432002509087c09f54c84b4
[ "ISC" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Compile script.""" import datetime import urllib2 import re import os VERSION = datetime.datetime.now().strftime('ver%Y-%m-%d') DIR = os.path.dirname(os.path.realpath(__file__)) SRC_DIR = DIR + '/src' RELEASE_FILE = DIR + '/releases/blackbeard_%s.html' % VERSION HTM...
25.325
121
0.628332
4fa844d981324956dfa9181a56aa2b99d8d1f781
2,738
py
Python
src/tools/generate-eclipse.py
cucosion/polyglot
66a491da6393411c7ee1b8ef1d4780136b139da2
[ "BSD-3-Clause" ]
489
2016-06-21T21:28:06.000Z
2022-03-17T20:26:27.000Z
src/tools/generate-eclipse.py
cucosion/polyglot
66a491da6393411c7ee1b8ef1d4780136b139da2
[ "BSD-3-Clause" ]
65
2016-06-25T11:22:13.000Z
2022-02-12T08:34:17.000Z
src/tools/generate-eclipse.py
cucosion/polyglot
66a491da6393411c7ee1b8ef1d4780136b139da2
[ "BSD-3-Clause" ]
66
2016-06-11T12:38:50.000Z
2022-02-24T12:35:11.000Z
#! /usr/bin/env python import os import subprocess from xml.etree.ElementTree import Element, SubElement, tostring LIBRARY_JAR_ROOT = os.path.join('bazel-genfiles', 'external') BUILD_EVERYTHING_COMMAND = ['bazel', 'build', 'src/...'] PROTO_JAR_ROOT = os.path.join('bazel-bin', 'src', 'main', 'proto') def main(): ...
32.211765
83
0.661432
b326366651cb460514022a4b83da46c0a9d4ac52
2,581
py
Python
homework_fall2019/hw1/cs285/infrastructure/tf_utils.py
grandintegrator/cs285-deeprlcourse-fa19-hw
4abd57eb9da8978b576300b69865e52862e4eaab
[ "MIT" ]
1
2021-04-05T11:40:10.000Z
2021-04-05T11:40:10.000Z
homework_fall2019/hw1/cs285/infrastructure/tf_utils.py
grandintegrator/cs285-deeprlcourse-fa19-hw
4abd57eb9da8978b576300b69865e52862e4eaab
[ "MIT" ]
null
null
null
homework_fall2019/hw1/cs285/infrastructure/tf_utils.py
grandintegrator/cs285-deeprlcourse-fa19-hw
4abd57eb9da8978b576300b69865e52862e4eaab
[ "MIT" ]
null
null
null
import tensorflow as tf import os ############################################ ############################################ def build_mlp(input_placeholder, output_size, scope, n_layers, size, activation=tf.tanh, output_activation=None): """ Builds a feedforward neural network arguments: ...
35.847222
119
0.565285
8d07a8e9bb8de79ea6d75ec3ebf698d1eaf3a1ea
9,102
py
Python
model_zoo/official/cv/mobilenetv3/train.py
kungfu-team/mindspore-bert
71501cf52ae01db9d6a73fb64bcfe68a6509dc32
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
model_zoo/official/cv/mobilenetv3/train.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
model_zoo/official/cv/mobilenetv3/train.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.921053
118
0.642826
a104852d056ed351485d21e914439c76be9d8086
7,132
py
Python
seditor.py
vxsl/picotui
768eac16883bb682715dcd7b9fa490317d32df2d
[ "MIT" ]
null
null
null
seditor.py
vxsl/picotui
768eac16883bb682715dcd7b9fa490317d32df2d
[ "MIT" ]
null
null
null
seditor.py
vxsl/picotui
768eac16883bb682715dcd7b9fa490317d32df2d
[ "MIT" ]
null
null
null
# # Very simple VT100 terminal text editor widget # Copyright (c) 2015 Paul Sokolovsky # Distributed under MIT License # import sys import os from picotui.defs import VIM_KEYMAP KEY_UP = 1 KEY_DOWN = 2 KEY_LEFT = 3 KEY_RIGHT = 4 KEY_HOME = 5 KEY_END = 6 KEY_PGUP = 7 KEY_PGDN = 8 KEY_QUIT = 9 KEY_ENTER = 10 KEY_BACKS...
27.32567
74
0.482894
19d71bb43a705e60847a82435c92abb4e384e7f0
1,125
py
Python
beacon/beacon/migrations/0001_initial.py
gEndelf/beacon
53b0e47bf136f10fca2a2b3a399ac6e473fdb840
[ "MIT" ]
null
null
null
beacon/beacon/migrations/0001_initial.py
gEndelf/beacon
53b0e47bf136f10fca2a2b3a399ac6e473fdb840
[ "MIT" ]
null
null
null
beacon/beacon/migrations/0001_initial.py
gEndelf/beacon
53b0e47bf136f10fca2a2b3a399ac6e473fdb840
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Repo', fields=[ ('id', models.AutoField(verbose...
34.090909
146
0.557333
7f06d325a6051521c2dd45b4ccd738c6f6dff4c7
30,318
py
Python
miper/api/xmlutil.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
1
2016-01-13T04:23:20.000Z
2016-01-13T04:23:20.000Z
miper/api/xmlutil.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
1
2015-12-17T09:58:04.000Z
2016-08-01T15:23:27.000Z
miper/api/xmlutil.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
31.385093
78
0.594663
5a9246987c5fd1244b0fe91b4b2e14856bc33a4e
178
py
Python
allennlp/common/testing/__init__.py
annaproxy/udify-metalearning
55206a3aac0aba74a3615a36192d03b6467cfd6f
[ "MIT" ]
65
2020-11-13T05:36:29.000Z
2022-03-26T22:45:46.000Z
allennlp/common/testing/__init__.py
annaproxy/udify-metalearning
55206a3aac0aba74a3615a36192d03b6467cfd6f
[ "MIT" ]
11
2021-05-26T16:22:17.000Z
2022-03-02T04:03:18.000Z
allennlp/common/testing/__init__.py
annaproxy/udify-metalearning
55206a3aac0aba74a3615a36192d03b6467cfd6f
[ "MIT" ]
10
2019-12-06T11:32:37.000Z
2022-01-06T15:39:09.000Z
""" Utilities and helpers for writing tests. """ from allennlp.common.testing.test_case import AllenNlpTestCase from allennlp.common.testing.model_test_case import ModelTestCase
29.666667
65
0.837079
743d69e389a72fce9401caa823ba6554fa6e06af
4,724
py
Python
classify/model.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
3
2017-09-06T07:10:05.000Z
2019-08-01T03:27:39.000Z
classify/model.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
2
2018-01-25T14:46:40.000Z
2018-01-25T14:53:13.000Z
classify/model.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @author: gallupliu @contact: gallup-liu@hotmail.com @version: 1.0 @license: Apache Licence @file: model.py @time: 2018/3/5 22:26 """ import tensorflow as tf import numpy as np class TextCNN(object): """ A CNN for text classification. Uses an embedding layer, followed by a convo...
41.078261
112
0.606689