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
b8cbdf21fb37924f7d67a1b4ea5a61f589e22f36
301
py
Python
dataType.py
SWLBot/electronic-blackboard
8c149919c65a36d0d15fed09f1242a3e7d66c728
[ "Apache-2.0" ]
2
2017-08-29T02:46:22.000Z
2017-09-08T17:16:59.000Z
dataType.py
SWLBot/electronic-blackboard
8c149919c65a36d0d15fed09f1242a3e7d66c728
[ "Apache-2.0" ]
103
2017-03-02T12:51:57.000Z
2018-04-11T11:46:01.000Z
dataType.py
SWLBot/electronic-blackboard
8c149919c65a36d0d15fed09f1242a3e7d66c728
[ "Apache-2.0" ]
12
2017-04-14T02:42:38.000Z
2017-08-29T02:46:22.000Z
class DataType: def __init__(self, type_id=None, type_name=None, type_dir=None): if not (type_id and type_name and type_dir): raise ValueError("Missing arguement for DataType") self.type_id = type_id self.type_name = type_name self.type_dir = type_dir
33.444444
68
0.667774
0b4a6ca0658f46385446747ea4872a882ee41424
38,370
py
Python
cms/tests/test_cache.py
devyntk/django-cms
f889a30e94f268394ae9abf32c032239d0a9be55
[ "BSD-3-Clause" ]
5,659
2015-01-01T02:42:30.000Z
2020-10-07T02:38:29.000Z
cms/tests/test_cache.py
devyntk/django-cms
f889a30e94f268394ae9abf32c032239d0a9be55
[ "BSD-3-Clause" ]
3,264
2015-01-02T10:11:48.000Z
2020-10-08T13:15:07.000Z
cms/tests/test_cache.py
devyntk/django-cms
f889a30e94f268394ae9abf32c032239d0a9be55
[ "BSD-3-Clause" ]
2,132
2015-01-01T11:28:21.000Z
2020-10-06T09:09:11.000Z
import time from django.conf import settings from django.template import Context from sekizai.context import SekizaiContext from cms.api import add_plugin, create_page, create_title from cms.cache import _get_cache_version, invalidate_cms_page_cache from cms.cache.placeholder import ( _get_placeholder_cache_key,...
44.461182
157
0.634454
58f122dfaac48ac475ce17fa824162918989cc0b
1,944
py
Python
tests/inferfaces_tests/test_misc.py
jmolinski/traktpy
e6ff22acaf273b7b45070a4f8938c210fe4d63d7
[ "MIT" ]
null
null
null
tests/inferfaces_tests/test_misc.py
jmolinski/traktpy
e6ff22acaf273b7b45070a4f8938c210fe4d63d7
[ "MIT" ]
1
2019-04-13T10:15:48.000Z
2019-04-13T10:15:48.000Z
tests/inferfaces_tests/test_misc.py
jmolinski/traktpy
e6ff22acaf273b7b45070a4f8938c210fe4d63d7
[ "MIT" ]
null
null
null
import pytest from tests.test_data.certifications import CERTIFICATIONS from tests.test_data.countries import COUNTRIES from tests.test_data.genres import GENRES from tests.test_data.languages import LANGUAGES from tests.test_data.lists import TRENDING_LISTS from tests.test_data.networks import NETWORKS from tests.util...
32.949153
84
0.721193
e9bba821d98eb0fc08d3dede3c1b79aabf62a3e7
7,197
py
Python
docusign_esign/models/connect_failure_result.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
58
2017-10-18T23:06:57.000Z
2021-04-15T23:14:58.000Z
docusign_esign/models/connect_failure_result.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
49
2017-10-27T05:54:09.000Z
2021-04-29T22:06:17.000Z
docusign_esign/models/connect_failure_result.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
49
2017-09-16T07:23:41.000Z
2021-05-07T20:21:20.000Z
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.gi...
30.888412
202
0.603724
0872e03ff5f0a9a2901f41108fb862367088ebee
1,158
py
Python
examples/like_and_follow_your_last_media_likers.py
Pacu2/instabot
f27a95c0821f44f63a616c848ba3564f8eee6107
[ "Apache-2.0" ]
null
null
null
examples/like_and_follow_your_last_media_likers.py
Pacu2/instabot
f27a95c0821f44f63a616c848ba3564f8eee6107
[ "Apache-2.0" ]
null
null
null
examples/like_and_follow_your_last_media_likers.py
Pacu2/instabot
f27a95c0821f44f63a616c848ba3564f8eee6107
[ "Apache-2.0" ]
null
null
null
""" instabot example Workflow: Like and follow likers of last medias from your timeline feed. """ import sys import os import time import random from tqdm import tqdm import argparse sys.path.append(os.path.join(sys.path[0], '../')) from instabot import Bot def like_and_follow(bot, user_id, nlikes=...
24.125
71
0.721934
07883e81cd1e5bf5758f07e5a5d6e9c841e3ce6d
213
py
Python
extensions/.stubs/pycadsys/pycad/runtime/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
1
2020-03-25T03:27:24.000Z
2020-03-25T03:27:24.000Z
extensions/.stubs/pycadsys/pycad/runtime/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
extensions/.stubs/pycadsys/pycad/runtime/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
__all__ = [ 'upopen', 'cs', 'dbdict', 'dbtrans', 'serializable', 'utils', 'edx', 'gex'] from pycad.runtime.wraps import dbtrans, upopen, cs, dbdict, serializable from pycad.runtime import utils, edx, gex
35.5
73
0.676056
27f1d0152d91b30341d1fa77824cd64f6a11267e
600
py
Python
Desktop/cs61a/hw/hw01/quiz/quiz01.py
cpvb13/cal-hack-5-proj
13e31fff3f56b57030c34147b04cef1d6309c62b
[ "MIT" ]
null
null
null
Desktop/cs61a/hw/hw01/quiz/quiz01.py
cpvb13/cal-hack-5-proj
13e31fff3f56b57030c34147b04cef1d6309c62b
[ "MIT" ]
null
null
null
Desktop/cs61a/hw/hw01/quiz/quiz01.py
cpvb13/cal-hack-5-proj
13e31fff3f56b57030c34147b04cef1d6309c62b
[ "MIT" ]
null
null
null
def multiple(a, b): """Return the smallest number n that is a multiple of both a and b. >>> multiple(3, 4) 12 >>> multiple(14, 21) 42 """ "*** YOUR CODE HERE ***" def unique_digits(n): """Return the number of unique digits in positive integer n >>> unique_digits(8675309) # All are...
21.428571
71
0.551667
646416ca7364a767ed72fe492a7b5e12219fb3d0
8,270
py
Python
src/ppv/util/paths.py
jcbird/ppv
d550f4fff9cb0309d43b0d51e1406355ee0231be
[ "BSD-3-Clause" ]
1
2020-10-09T08:19:35.000Z
2020-10-09T08:19:35.000Z
src/ppv/util/paths.py
jcbird/ppv
d550f4fff9cb0309d43b0d51e1406355ee0231be
[ "BSD-3-Clause" ]
19
2020-09-25T23:33:53.000Z
2021-03-12T22:28:16.000Z
src/ppv/util/paths.py
jcbird/ppv
d550f4fff9cb0309d43b0d51e1406355ee0231be
[ "BSD-3-Clause" ]
null
null
null
""" Utility module """ from .. import config from pathlib import Path import os import fnmatch def platePlans_par(): return config.plate_dir / 'platePlans.par' def plate_plans(): return config.plate_dir / 'platePlans_sdss5.fits' def platenum_as_str(platenum): """String representation of platenumber wit...
25.68323
77
0.648126
19f393c4f2b7298941041ecb402ab9f6a2d2b33f
8,717
py
Python
ase20_supplementary/webui/serving.py
skanav/cst_transform
361a23293cf0359af7a7d17cf465483ffe4e7545
[ "Apache-2.0" ]
null
null
null
ase20_supplementary/webui/serving.py
skanav/cst_transform
361a23293cf0359af7a7d17cf465483ffe4e7545
[ "Apache-2.0" ]
null
null
null
ase20_supplementary/webui/serving.py
skanav/cst_transform
361a23293cf0359af7a7d17cf465483ffe4e7545
[ "Apache-2.0" ]
1
2021-07-02T16:04:14.000Z
2021-07-02T16:04:14.000Z
import argparse from flask import Flask, abort, request from flask_restful import Resource, Api import os import uuid import traceback import threading import json from glob import glob from pycparser import c_ast from pycparserext import ext_c_generator from pycparser import preprocess_file from pycparse...
26.256024
104
0.572215
2c0caca1c8507c6e5b2e7ce5684865299b53df38
839
py
Python
2017/February/3_countcross/countcross.test.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2017/February/3_countcross/countcross.test.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2017/February/3_countcross/countcross.test.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
import unittest from countcross import main class countcrossTest(unittest.TestCase): testDataFolder = 'test' def do_test(self, testNumber): testFile = self.testDataFolder + "/" + str(testNumber) main(testFile + ".in", testFile + "_actual.out") # compare the result expectedOut = open(testFile +...
27.064516
58
0.68534
c06712a98e099d9cfc8cd115af0cd122c4c16d1a
12,209
py
Python
sympy/matrices/tests/test_determinant.py
MartinThoma/sympy
009d0031bec7222ffa472e52148a2b4e441cd3a5
[ "BSD-3-Clause" ]
2
2021-01-09T23:11:25.000Z
2021-01-11T15:04:22.000Z
sympy/matrices/tests/test_determinant.py
MartinThoma/sympy
009d0031bec7222ffa472e52148a2b4e441cd3a5
[ "BSD-3-Clause" ]
2
2020-08-18T15:21:59.000Z
2020-08-18T19:35:29.000Z
sympy/matrices/tests/test_determinant.py
MartinThoma/sympy
009d0031bec7222ffa472e52148a2b4e441cd3a5
[ "BSD-3-Clause" ]
3
2021-02-16T16:40:49.000Z
2022-03-07T18:28:41.000Z
import random from sympy.core.numbers import I from sympy import symbols, Symbol, Rational, sqrt, Poly from sympy.matrices import Matrix, eye, ones from sympy.abc import x, y, z from sympy.testing.pytest import raises from sympy.matrices.matrices import MatrixDeterminant from sympy.matrices.common import NonSquareMatri...
32.470745
89
0.458432
2265cb4d9b031e7d410699140db2a2977246a01e
20,885
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/_local_network_gateways_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/_local_network_gateways_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/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/_local_network_gateways_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 ...
50.083933
209
0.672923
ba59a35fcf5cbd8dd552456ec3539477c5db1fca
8,197
py
Python
genomics_data_index/storage/MaskedGenomicRegions.py
apetkau/genomics-data-index
d0cc119fd57b8cbd701affb1c84450cf7832fa01
[ "Apache-2.0" ]
12
2021-05-03T20:56:05.000Z
2022-01-04T14:52:19.000Z
genomics_data_index/storage/MaskedGenomicRegions.py
apetkau/thesis-index
6c96e9ed75d8e661437effe62a939727a0b473fc
[ "Apache-2.0" ]
30
2021-04-26T23:03:40.000Z
2022-02-25T18:41:14.000Z
genomics_data_index/storage/MaskedGenomicRegions.py
apetkau/genomics-data-index
d0cc119fd57b8cbd701affb1c84450cf7832fa01
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import tempfile from pathlib import Path from typing import List, Set, Dict, Generator, Tuple import pandas as pd from Bio import SeqIO from Bio.SeqRecord import SeqRecord from pybedtools import BedTool from genomics_data_index.storage.model import NUCLEOTIDE_UNKNOWN, NUCLEOTIDE_UN...
40.37931
120
0.615957
f319327e463b8600d62a3f1b55574af07a738ba9
5,337
py
Python
tests/scene_saver_test.py
NextCenturyCorporation/mcs-scene-generator
e0a6ee778359cadd2de682a5006581b7a6134431
[ "Apache-2.0" ]
4
2021-02-04T03:57:52.000Z
2022-02-08T18:19:58.000Z
tests/scene_saver_test.py
NextCenturyCorporation/mcs-scene-generator
e0a6ee778359cadd2de682a5006581b7a6134431
[ "Apache-2.0" ]
68
2021-05-06T08:52:46.000Z
2022-03-23T16:46:03.000Z
tests/scene_saver_test.py
NextCenturyCorporation/mcs-scene-generator
e0a6ee778359cadd2de682a5006581b7a6134431
[ "Apache-2.0" ]
1
2021-02-04T03:21:57.000Z
2021-02-04T03:21:57.000Z
import copy from generator.scene_saver import ( _strip_debug_data, _strip_debug_misleading_data, _strip_debug_object_data, find_next_filename, ) def create_test_object(): return { 'id': 'thing1', 'type': 'thing_1', 'debug': { 'info': ['a', 'b', 'c', 'd'], ...
25.293839
78
0.439198
fbe8cbab388d492ae114589d5d8ce0a2c25b2190
1,340
py
Python
examples/markov/markov_rw_norm.py
Bhumbra/probayes
e5ac193076e4188b9b38c0e18466223ab4d041f7
[ "BSD-3-Clause" ]
null
null
null
examples/markov/markov_rw_norm.py
Bhumbra/probayes
e5ac193076e4188b9b38c0e18466223ab4d041f7
[ "BSD-3-Clause" ]
null
null
null
examples/markov/markov_rw_norm.py
Bhumbra/probayes
e5ac193076e4188b9b38c0e18466223ab4d041f7
[ "BSD-3-Clause" ]
null
null
null
""" Example of a Markov chain random walk simulation using a continuous transition function. """ import probayes as pb import numpy as np import scipy.stats from pylab import *; ion() n_steps = 10000 set_lims = [-np.pi, np.pi] def tran(succ, pred): loc = -np.sin(pred) scale = 1. + 0.5 * np.cos(pred) return sci...
24.814815
60
0.643284
e7ea0166e283b9b2f8f32e3c803d848cb86c79ec
790
py
Python
synoptic/__init__.py
gitter-badger/SynopticPy
05d1c1d5b69f0efa22d87a3e2c3e1896c2c37ca6
[ "MIT" ]
12
2021-03-13T19:18:35.000Z
2022-03-28T13:14:59.000Z
synoptic/__init__.py
gitter-badger/SynopticPy
05d1c1d5b69f0efa22d87a3e2c3e1896c2c37ca6
[ "MIT" ]
4
2020-09-20T00:52:20.000Z
2022-03-30T19:31:40.000Z
synoptic/__init__.py
gitter-badger/SynopticPy
05d1c1d5b69f0efa22d87a3e2c3e1896c2c37ca6
[ "MIT" ]
6
2021-01-10T13:21:11.000Z
2022-03-25T02:01:17.000Z
## Brian Blaylock ## September 11, 2020 """ ============ Synoptic API ============ Retrieve and plot mesonet data from thousands of stations via the Synoptic Data Mesonet API: https://developers.synopticdata.com/mesonet/. Usage ----- There are two recommended ways to import these functions. ``` python # Method 1: I...
20.25641
79
0.717722
1a0a486e00668d8922398d5e5f728ce3f3b5c956
3,340
py
Python
dbInterface.py
ddsnowboard/SimpleDBInterface
8d409e768b11b4b4d70ebf26bebe92289bb33511
[ "MIT" ]
null
null
null
dbInterface.py
ddsnowboard/SimpleDBInterface
8d409e768b11b4b4d70ebf26bebe92289bb33511
[ "MIT" ]
null
null
null
dbInterface.py
ddsnowboard/SimpleDBInterface
8d409e768b11b4b4d70ebf26bebe92289bb33511
[ "MIT" ]
null
null
null
import ENV # Uncomment this when you start on the postgres layer # import psycopg2 import sqlite3 #TODO: Replace every pragma table_info() call with getColumns() class Database: class Table: def __init__(self, connection, name): self.connection = connection self.name = name ...
49.850746
179
0.562575
3f7ea909693fa33e535d768a45760d7f75a7e5ce
22,675
py
Python
leaderboard/Face-Pose-Net/utils/pose_utils.py
showkeyjar/beauty
7c944cf896c899d9e23b2e50e293103bb03fe6cd
[ "MulanPSL-1.0" ]
1
2022-01-29T12:32:38.000Z
2022-01-29T12:32:38.000Z
leaderboard/Face-Pose-Net/utils/pose_utils.py
showkeyjar/beauty
7c944cf896c899d9e23b2e50e293103bb03fe6cd
[ "MulanPSL-1.0" ]
null
null
null
leaderboard/Face-Pose-Net/utils/pose_utils.py
showkeyjar/beauty
7c944cf896c899d9e23b2e50e293103bb03fe6cd
[ "MulanPSL-1.0" ]
null
null
null
import sys import os import numpy as np import cv2 import math from math import cos, sin, atan2, asin import fileinput ## Index to remap landmarks in case we flip an image ...
31.981664
201
0.536626
1f3d6155472165e884a6535f66840d083c8da433
650
py
Python
symposion/proposals/migrations/0002_proposalsection_anonymous.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
null
null
null
symposion/proposals/migrations/0002_proposalsection_anonymous.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
5
2015-07-16T19:46:00.000Z
2018-03-11T05:58:48.000Z
symposion/proposals/migrations/0002_proposalsection_anonymous.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
1
2017-01-27T21:18:26.000Z
2017-01-27T21:18:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2017-08-11 21:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('symposion_proposals', '0001_initial'), ] operations = [ migrations.AddField(...
30.952381
239
0.675385
42cc2fc9fdf4440ec030c057168ec9e9d41f17ab
1,060
py
Python
August Leetcode/Reorder List.py
parikshitgupta1/leetcode
eba6c11740dc7597204af127c0f4c2163376294f
[ "MIT" ]
null
null
null
August Leetcode/Reorder List.py
parikshitgupta1/leetcode
eba6c11740dc7597204af127c0f4c2163376294f
[ "MIT" ]
null
null
null
August Leetcode/Reorder List.py
parikshitgupta1/leetcode
eba6c11740dc7597204af127c0f4c2163376294f
[ "MIT" ]
null
null
null
class Solution: def reorderList(self, head: ListNode) -> None: """ Do not return anything, modify head in-place instead. :type head: ListNode :rtype: void Do not return anything, modify head in-place instead. """ if not head or not head.next: return ...
27.894737
74
0.486792
95caf1d2fecd4b241b754224abd99a0f6bed3009
5,504
py
Python
rest_api/samples/JSON_demos/6D2P.py
Hitachi-Data-Systems/ivy
07a77c271cad7f682d7fbff497bf74a76ecd5378
[ "Apache-2.0" ]
6
2016-09-12T16:23:53.000Z
2021-12-16T23:08:34.000Z
rest_api/samples/JSON_demos/6D2P.py
Hitachi-Data-Systems/ivy
07a77c271cad7f682d7fbff497bf74a76ecd5378
[ "Apache-2.0" ]
null
null
null
rest_api/samples/JSON_demos/6D2P.py
Hitachi-Data-Systems/ivy
07a77c271cad7f682d7fbff497bf74a76ecd5378
[ "Apache-2.0" ]
null
null
null
import ivyrest ivy = ivyrest.IvyObj("localhost") host_list = ["sun159"] select_list = [ {'serial_number' : '83011441' } ] ivy.set_output_folder_root(".") print(ivy.test_folder()) ivy.set_test_name("6D2P") summary_filename = ivy.test_folder() + "/all/" + ivy.test_name() + ".all=all.summary.csv" lun_filename = ivy.te...
39.035461
190
0.697311
fa789d41f455e0df69a210aba89da0bb04ccdd0d
1,525
py
Python
ImageDenoising/lib/model.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
5
2019-06-20T09:54:04.000Z
2021-06-15T04:22:49.000Z
ImageDenoising/lib/model.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
null
null
null
ImageDenoising/lib/model.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
1
2019-04-19T04:52:34.000Z
2019-04-19T04:52:34.000Z
from tensorflow.keras.utils import Sequence from tensorflow.keras import optimizers as optim from network import DenoisingNetwork from utils.callback import CustomCallback class DenoisingModel(object): def __init__(self, mode: str): self.klass = DenoisingNetwork self.model = self.klass(mode) ...
31.122449
92
0.572459
db300953a077196b1f33f8f1e858abcc65d681f4
1,406
py
Python
webvpn.py
bin2021125/auto-daily-health-report
63b4809e97f595ba5b17bec80cee0f32c0b717d8
[ "MIT" ]
null
null
null
webvpn.py
bin2021125/auto-daily-health-report
63b4809e97f595ba5b17bec80cee0f32c0b717d8
[ "MIT" ]
null
null
null
webvpn.py
bin2021125/auto-daily-health-report
63b4809e97f595ba5b17bec80cee0f32c0b717d8
[ "MIT" ]
null
null
null
import requests import json import sys from bs4 import BeautifulSoup # request with webvpn.xmu.edu.cn def with_webvpn(session, header, vpn_username, vpn_password): try: login_page = session.get("https://webvpn.xmu.edu.cn/login", headers=header).text soup = Beautif...
29.914894
75
0.527738
f03948bc77d8b1fd40835385a00bbc894db43cfc
895
py
Python
rl_quad/rl_scripts/train/quadcopter-stable-baselines-ddpg.py
vivekagra/Biplane-Quadrotor
afe69216494842f5bfe16cbcc0cdcc6ef0de7769
[ "BSD-3-Clause" ]
null
null
null
rl_quad/rl_scripts/train/quadcopter-stable-baselines-ddpg.py
vivekagra/Biplane-Quadrotor
afe69216494842f5bfe16cbcc0cdcc6ef0de7769
[ "BSD-3-Clause" ]
null
null
null
rl_quad/rl_scripts/train/quadcopter-stable-baselines-ddpg.py
vivekagra/Biplane-Quadrotor
afe69216494842f5bfe16cbcc0cdcc6ef0de7769
[ "BSD-3-Clause" ]
null
null
null
import gym import time import numpy as np, pandas as pd import matplotlib.pyplot as plt from stable_baselines.ddpg.policies import MlpPolicy from stable_baselines.common.noise import NormalActionNoise, OrnsteinUhlenbeckActionNoise, AdaptiveParamNoiseSpec from stable_baselines import DDPG from rl_quad.environment.conti...
34.423077
154
0.820112
653f3d126c9950c17fb6dd172757205541017a4a
164
py
Python
solutions/python3/1009.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/1009.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/1009.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def bitwiseComplement(self, N: int, M = 0, m = 0) -> int: return N ^ M if M and M >= N else self.bitwiseComplement(N, M + 2 ** m, m + 1)
54.666667
86
0.579268
f02927b79773fed353148dec47bddd43b4a71d8a
2,541
py
Python
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Astropy/astropy-1.1.2/astropy/coordinates/builtin_frames/galactic.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Astropy/astropy-1.1.2/astropy/coordinates/builtin_frames/galactic.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Astropy/astropy-1.1.2/astropy/coordinates/builtin_frames/galactic.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, unicode_literals, division, print_function) from ... import units as u from ..angles import Angle from ..representation import SphericalRepresentation from ..basefram...
39.703125
83
0.679654
d56b0eb15af312264b478aff3c44536a57ec3342
5,489
py
Python
evaluation/crate/run_docker_images.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/crate/run_docker_images.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/crate/run_docker_images.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
import sys # package need to be installed, pip install docker import docker import time import yaml import os import random import subprocess import signal import urllib2 import shutil import xlwt # package need to be installed, pip install crate from crate import client as crate_client auto = False private_registry...
30.494444
100
0.51248
1d213260204545351f2fed943f7184a06462d29c
2,279
py
Python
src/oscar/apps/customer/history.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
4,639
2015-01-01T00:42:33.000Z
2022-03-29T18:32:12.000Z
src/oscar/apps/customer/history.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,215
2015-01-02T22:32:51.000Z
2022-03-29T12:16:23.000Z
src/oscar/apps/customer/history.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,187
2015-01-02T06:33:31.000Z
2022-03-31T15:32:36.000Z
import json from django.conf import settings from oscar.core.loading import get_model Product = get_model('catalogue', 'Product') class CustomerHistoryManager: cookie_name = settings.OSCAR_RECENTLY_VIEWED_COOKIE_NAME cookie_kwargs = { 'max_age': settings.OSCAR_RECENTLY_VIEWED_COOKIE_LIFETIME, ...
30.797297
93
0.604212
59556a383894f6a2011e4a187e43d1f8cf87eb82
1,721
py
Python
configs/body/upernet_swin_tiny2.py
SeHwanJoo/mmsegmentation_body
31c4bf27c3dc0a84bfbb06a0c017c5908c17f0ac
[ "Apache-2.0" ]
null
null
null
configs/body/upernet_swin_tiny2.py
SeHwanJoo/mmsegmentation_body
31c4bf27c3dc0a84bfbb06a0c017c5908c17f0ac
[ "Apache-2.0" ]
null
null
null
configs/body/upernet_swin_tiny2.py
SeHwanJoo/mmsegmentation_body
31c4bf27c3dc0a84bfbb06a0c017c5908c17f0ac
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/upernet_swin_BN.py', 'dataset2.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_20k.py' ] model = dict( pretrained=\ 'https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_base_patch4_window12_384_22k.pth', # noqa backbone=dict( ...
27.31746
119
0.63161
96aad07299bbb955fe17721e65da58e2c54b0b95
496
py
Python
scripts/csv2shapefile.py
rmsare-lanl/dengue-example
0737e344d501473c9fb0fc1eec219141f9d59fd7
[ "MIT" ]
null
null
null
scripts/csv2shapefile.py
rmsare-lanl/dengue-example
0737e344d501473c9fb0fc1eec219141f9d59fd7
[ "MIT" ]
null
null
null
scripts/csv2shapefile.py
rmsare-lanl/dengue-example
0737e344d501473c9fb0fc1eec219141f9d59fd7
[ "MIT" ]
null
null
null
""" Convert a CSV with Lat, Lon coordinates to an ESRI Shapefile """ import geopandas as gpd import pandas as pd from shapely.geometry import Point def csv_to_shapefile(in_filename): out_filename = in_filename.replace('.csv', '.shp') df = pd.read_csv(in_filename) crs = {'init': 'epsg:4326'} geometry ...
29.176471
67
0.71371
cb6789a21a72bd9b8261cd38227d77083ee6c1b5
5,606
py
Python
pulser/tests/test_waveforms.py
Yash-10/Pulser
afd16e0789b2621f00f6661df6d33ff27c44ac94
[ "Apache-2.0" ]
null
null
null
pulser/tests/test_waveforms.py
Yash-10/Pulser
afd16e0789b2621f00f6661df6d33ff27c44ac94
[ "Apache-2.0" ]
null
null
null
pulser/tests/test_waveforms.py
Yash-10/Pulser
afd16e0789b2621f00f6661df6d33ff27c44ac94
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pulser Development Team # # 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 i...
30.802198
79
0.68944
739804a3c26e85545f3b83f84e92dfcdbf55bd9c
625
py
Python
python_modules/libraries/dagster-azure/dagster_azure/adls2/__init__.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-10T23:03:37.000Z
2020-08-10T23:03:37.000Z
python_modules/libraries/dagster-azure/dagster_azure/adls2/__init__.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-azure/dagster_azure/adls2/__init__.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-20T14:20:31.000Z
2020-08-20T14:20:31.000Z
from .fake_adls2_resource import FakeADLS2Resource, FakeADLS2ServiceClient from .file_cache import ADLS2FileCache, adls2_file_cache from .file_manager import ADLS2FileHandle, ADLS2FileManager from .intermediate_store import ADLS2IntermediateStore from .object_store import ADLS2ObjectStore from .resources import adls2_f...
39.0625
74
0.864
26963202e053536d16d24c99db962ce723a01a85
10,666
py
Python
butler/block_service/block_service.py
constantinpape/butler
b831457624f6f9c88a4f5905c78487eda5d274bb
[ "MIT" ]
null
null
null
butler/block_service/block_service.py
constantinpape/butler
b831457624f6f9c88a4f5905c78487eda5d274bb
[ "MIT" ]
null
null
null
butler/block_service/block_service.py
constantinpape/butler
b831457624f6f9c88a4f5905c78487eda5d274bb
[ "MIT" ]
null
null
null
import os import json import threading import time from collections import deque from ..base import BaseRequestHandler, BaseService, BaseClient class BlockRequestHandler(BaseRequestHandler): """ BlockRequestHandler """ def format_request(self, request): """ Format the request: single ...
41.992126
122
0.6036
ac6feb5caf955768b4843cdc8f59dabcf7873c56
398
py
Python
sktimeline/views/__init__.py
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
2
2016-06-14T17:02:42.000Z
2016-10-24T14:49:25.000Z
sktimeline/views/__init__.py
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
3
2016-06-27T13:20:53.000Z
2017-03-18T14:21:27.000Z
sktimeline/views/__init__.py
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
2
2016-06-14T17:03:05.000Z
2016-09-01T14:18:44.000Z
from sktimeline import * def login_required(f): @wraps(f) def wrap(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login") return redirect(url_for('login_page')) return wrap def page_not_found(): return ren...
19.9
50
0.625628
df3897fa9f1ae6fb255558c609f8d4e5c08a562e
4,288
py
Python
model/modules/shared_conv.py
LiXiaoli921/FOTS.PyTorch
9319dc767217e3efea6a2ee3403d92c344418154
[ "MIT" ]
1
2019-02-11T11:25:38.000Z
2019-02-11T11:25:38.000Z
model/modules/shared_conv.py
huizhang0110/FOTS.PyTorch
8661f8847ad63356d15c86ae9c183766e4ff6885
[ "MIT" ]
null
null
null
model/modules/shared_conv.py
huizhang0110/FOTS.PyTorch
8661f8847ad63356d15c86ae9c183766e4ff6885
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F import torch import math SPEEDUP_SCALE = 512 class SharedConv(nn.Module): ''' sharded convolutional layers ''' def __init__(self, bbNet: nn.Module): super(SharedConv, self).__init__() self.backbone = bbNet self.backbone.ev...
27.844156
107
0.565532
d4027717b6cf3557f730f3390681ca6bc8eb59b5
13,747
py
Python
GCSs_filtering_and_overlapping.py
sutormin94/TopoI_Topo-Seq_1
78f03bc3a6e2249b6f47fe838c2ba7d8d761b596
[ "MIT" ]
null
null
null
GCSs_filtering_and_overlapping.py
sutormin94/TopoI_Topo-Seq_1
78f03bc3a6e2249b6f47fe838c2ba7d8d761b596
[ "MIT" ]
null
null
null
GCSs_filtering_and_overlapping.py
sutormin94/TopoI_Topo-Seq_1
78f03bc3a6e2249b6f47fe838c2ba7d8d761b596
[ "MIT" ]
null
null
null
############################################### ##Dmitry Sutormin, 2018## ##Topo-Seq analysis## #The script takes raw GCSs data, returns only trusted GCSs, #computes GCSs shared between different conditions, #draws Venn diagrams of the sets overlappings, #writes GCSs sets. ##########################################...
40.671598
229
0.690623
c0ed8fe87c9d603b23082c844620fd772181f7f0
5,061
py
Python
src/tests/kremlin/book/conf.py
TakuKitamura/verimqtt-c
30109f66df126e5860f2329ce2ad3cfb7f12d9da
[ "MIT" ]
340
2016-07-21T23:24:48.000Z
2022-02-16T22:23:01.000Z
src/tests/kremlin/book/conf.py
TakuKitamura/verimqtt-c
30109f66df126e5860f2329ce2ad3cfb7f12d9da
[ "MIT" ]
208
2016-09-06T20:07:49.000Z
2022-03-03T20:22:22.000Z
src/tests/kremlin/book/conf.py
TakuKitamura/verimqtt-c
30109f66df126e5860f2329ce2ad3cfb7f12d9da
[ "MIT" ]
53
2016-08-18T14:08:36.000Z
2022-02-25T21:55:50.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
31.04908
86
0.657578
f557cbeae5f90e13811b4c4df356e8bbaa299ab5
1,896
py
Python
SCIENTIFIC EXPEDITION/TheHiddenWord.py
kei-academic/CheckiO
9f4c1fa44704f302ce95f5d9e20c4fa0beda06c3
[ "MIT" ]
1
2021-12-26T21:52:02.000Z
2021-12-26T21:52:02.000Z
SCIENTIFIC EXPEDITION/TheHiddenWord.py
kei-academic/CheckiO
9f4c1fa44704f302ce95f5d9e20c4fa0beda06c3
[ "MIT" ]
null
null
null
SCIENTIFIC EXPEDITION/TheHiddenWord.py
kei-academic/CheckiO
9f4c1fa44704f302ce95f5d9e20c4fa0beda06c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import itertools as it def checkio(text, word): horizontal = text.lower().replace(' ', '').split('\n') for i, row in enumerate(horizontal, 1): index = row.find(word) if index >= 0: return [i, index+1, i, index+len(word)] vertical = [''.join(line) for lin...
37.92
90
0.584916
f3c4136186a40555bb52f8e9a0c412298bb2ba06
874
py
Python
libraries/botbuilder-ai/botbuilder/ai/qna/models/query_results.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
388
2019-05-07T15:53:21.000Z
2022-03-28T20:29:46.000Z
libraries/botbuilder-ai/botbuilder/ai/qna/models/query_results.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
1,286
2019-05-07T23:38:19.000Z
2022-03-31T10:44:16.000Z
libraries/botbuilder-ai/botbuilder/ai/qna/models/query_results.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
168
2019-05-14T20:23:25.000Z
2022-03-16T06:49:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List from msrest.serialization import Model from .query_result import QueryResult class QueryResults(Model): """ Contains answers for a user query. """ _attribute_map = { "answers": {"key...
28.193548
88
0.643021
49c43a54b67120af551a701e0f40b42e7cf48bd1
8,694
py
Python
mysite/timesheets/views.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
null
null
null
mysite/timesheets/views.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
1
2019-06-11T21:23:49.000Z
2019-06-11T21:23:49.000Z
mysite/timesheets/views.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
null
null
null
"""Django views for the Timesheet application""" import calendar import datetime from django.db.models import Sum from django.http import HttpResponse from django.shortcuts import get_object_or_404, render from django.template import loader from .models import Task, Employee, App, Defect, Adhoc, Timesheet, Timesheet...
33.438462
114
0.648263
6b8afe151f0f02460b0b1ff56cfca93582383b11
8,120
py
Python
python/jittor/pool.py
cjld/jittor
2015d06c73bfc8aa4e1d06150bf30b463c9fce94
[ "Apache-2.0" ]
null
null
null
python/jittor/pool.py
cjld/jittor
2015d06c73bfc8aa4e1d06150bf30b463c9fce94
[ "Apache-2.0" ]
null
null
null
python/jittor/pool.py
cjld/jittor
2015d06c73bfc8aa4e1d06150bf30b463c9fce94
[ "Apache-2.0" ]
null
null
null
# *************************************************************** # Copyright (c) 2020 Jittor. Authors: # Guowei Yang <471184555@qq.com> # Wenyang Zhou <576825820@qq.com> # Meng-Hao Guo <guomenghao1997@gmail.com> # Dun Liang <randonlang@gmail.com>. # # All Rights Reserved. # This file is subject to the ...
49.212121
127
0.375246
db1687b254fa5fa0c598f9a066a51763170649b9
1,688
py
Python
106/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
106/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
106/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
text = """ The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although p...
33.098039
69
0.694313
d0b4874cf0754f0ec01d7e169a9e35e1a525775c
4,976
py
Python
openapi-python-client/openapi_client/models/incident_statistics_result_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/incident_statistics_result_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/incident_statistics_result_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration clas...
32.953642
230
0.628215
fa4cd739670d5163f60f9a9c4f0b0dc64b511ff2
11,471
py
Python
Bengali.AI Handwritten Grapheme Classification/image_augmentation/HengCherKeng.py
nixingyang/Kaggle-Face-Verification
b5f9908f4c23dc78b3e6b647c7add8f2b0d84663
[ "MIT" ]
null
null
null
Bengali.AI Handwritten Grapheme Classification/image_augmentation/HengCherKeng.py
nixingyang/Kaggle-Face-Verification
b5f9908f4c23dc78b3e6b647c7add8f2b0d84663
[ "MIT" ]
null
null
null
Bengali.AI Handwritten Grapheme Classification/image_augmentation/HengCherKeng.py
nixingyang/Kaggle-Face-Verification
b5f9908f4c23dc78b3e6b647c7add8f2b0d84663
[ "MIT" ]
5
2016-09-05T03:13:32.000Z
2018-11-29T07:55:23.000Z
import random import cv2 import numpy as np from albumentations import ImageOnlyTransform def do_identity(image): return image def do_random_projective(image, magnitude=0.5): mag = np.random.uniform(-1, 1) * 0.5 * magnitude height, width = image.shape[:2] x0, y0 = 0, 0 x1, y1 = 1, 0 x2, y2...
28.6775
100
0.522884
714c71f2b1480ca24cc48adbb06f3c52d5ce7e90
4,327
py
Python
dateparser/data/date_translation_data/ee.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/ee.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/ee.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
info = { "name": "ee", "date_order": "MDY", "january": [ "dzove", "dzv" ], "february": [ "dzd", "dzodze" ], "march": [ "ted", "tedoxe" ], "april": [ "afɔ", "afɔfĩe" ], "may": [ "dam", "dama" ]...
18.491453
42
0.279871
1fcf0c05e74151f9105c5622e46dc1fe367ea395
191
py
Python
build/lib/biosamples_beta/biosample.py
Kerruba/biosamples_py_api
eac77ace86582d87f5be6273fbfd3b464cdd94e4
[ "MIT" ]
null
null
null
build/lib/biosamples_beta/biosample.py
Kerruba/biosamples_py_api
eac77ace86582d87f5be6273fbfd3b464cdd94e4
[ "MIT" ]
null
null
null
build/lib/biosamples_beta/biosample.py
Kerruba/biosamples_py_api
eac77ace86582d87f5be6273fbfd3b464cdd94e4
[ "MIT" ]
null
null
null
from .biosamples_api import * class BioSample: type = "sample" def __init__(self, doc): self._doc = doc self.relations = [] def get(self, prop_name): return self._doc[prop_name]
14.692308
29
0.691099
dffbd8e299ff2d37f3b68614b49a434a1fd65069
2,322
py
Python
MNIST_framework/main.py
vanessadamario/data_efficiency
fc702d2241d737591163697332e3de1d0a0ed085
[ "MIT" ]
null
null
null
MNIST_framework/main.py
vanessadamario/data_efficiency
fc702d2241d737591163697332e3de1d0a0ed085
[ "MIT" ]
null
null
null
MNIST_framework/main.py
vanessadamario/data_efficiency
fc702d2241d737591163697332e3de1d0a0ed085
[ "MIT" ]
1
2021-12-27T00:46:35.000Z
2021-12-27T00:46:35.000Z
import os import argparse from os.path import join from runs import experiments os.environ['CUDA_VISIBLE_DEVICES'] = "0" parser = argparse.ArgumentParser() parser.add_argument('--experiment_index', type=int, required=True) parser.add_argument('--offset_index', type=int, required=False) parser.add_argument('--host_f...
29.025
78
0.741171
87e1126533e9fb7bb9570e0cd3ba569357d5086f
7,632
py
Python
app/core/migrations/0001_initial.py
fxavier/xbusness
10e6455243a8b66775df6f3a11eec6e8a8bea3f7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
fxavier/xbusness
10e6455243a8b66775df6f3a11eec6e8a8bea3f7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
fxavier/xbusness
10e6455243a8b66775df6f3a11eec6e8a8bea3f7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-26 15:24 from decimal import Decimal from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swap...
50.543046
188
0.585561
33e09919ed33f236d5e18c91bd9ca3e3deaa7b77
3,530
py
Python
rplugin/python3/floobits/floocommon/msg.py
Joe-Davidson1802/floobits-neovim
983b853a4e24537f337c4653c708428f65113162
[ "Apache-2.0" ]
null
null
null
rplugin/python3/floobits/floocommon/msg.py
Joe-Davidson1802/floobits-neovim
983b853a4e24537f337c4653c708428f65113162
[ "Apache-2.0" ]
null
null
null
rplugin/python3/floobits/floocommon/msg.py
Joe-Davidson1802/floobits-neovim
983b853a4e24537f337c4653c708428f65113162
[ "Apache-2.0" ]
null
null
null
import os import time from . import shared as G assert G str = str from .exc_fmt import str_e python2 = False LOG_LEVELS = { 'DEBUG': 1, 'MSG': 2, 'WARN': 3, 'ERROR': 4, } LOG_LEVELS_REVERSE = { 1: 'DEBUG', 2: 'MSG', 3: 'WARN', 4: 'ERROR', } LOG_LEVEL = LOG_LEVELS['MSG'] LOG_FILE = o...
24.859155
121
0.600567
5ddc7ff624356449f24ebaf08397f3debdf5eb14
33,425
py
Python
src/oci/apigateway/gateway_client.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-09-10T22:09:45.000Z
2021-12-24T17:00:07.000Z
src/oci/apigateway/gateway_client.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/apigateway/gateway_client.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
49.082232
261
0.652536
719995a44b5e5c1b11ba33d14d966a075bdd5c5a
190
py
Python
src/swem.py
Lain-progressivehouse/probspace-youtube
04740862fb28fb9a38131554369d6c54eb560fc5
[ "MIT" ]
5
2020-06-29T04:32:07.000Z
2021-02-08T03:54:29.000Z
src/swem.py
Lain-progressivehouse/probspace-youtube
04740862fb28fb9a38131554369d6c54eb560fc5
[ "MIT" ]
null
null
null
src/swem.py
Lain-progressivehouse/probspace-youtube
04740862fb28fb9a38131554369d6c54eb560fc5
[ "MIT" ]
null
null
null
import gensim import MeCab mecab = MeCab.Tagger("-Owakati") def get_word_list(document): document = document.lower() return list(filter("".__ne__, mecab.parse(document).split()))
19
65
0.715789
735b485484e2fdb118b8c6105ed416ac294d5d48
14,821
py
Python
src/network.py
viswanathgs/dist-dqn
c7e407b1ef6f06c17fb784f3e119cdf20dd4824a
[ "MIT" ]
206
2016-07-14T18:46:29.000Z
2021-11-08T12:51:56.000Z
src/network.py
binderwang/dist-dqn
c7e407b1ef6f06c17fb784f3e119cdf20dd4824a
[ "MIT" ]
1
2021-05-25T03:14:16.000Z
2021-05-25T03:14:16.000Z
src/network.py
binderwang/dist-dqn
c7e407b1ef6f06c17fb784f3e119cdf20dd4824a
[ "MIT" ]
29
2016-07-14T20:02:37.000Z
2021-12-04T15:38:26.000Z
from functools import partial from six.moves import zip import tensorflow as tf # Base-class for the Deep Q-Network architecture. Constructs the TensorFlow # graph with layers, weights, biases, loss-function, optimizer, etc. for # a network of given type. Currently, a simple network with two hidden layers, # and a co...
34.872941
90
0.669995
6447222e3a168244d1e6769edf7da90216838d2d
5,845
py
Python
image_downloader.py
guzdy/tumblr_crawler
c584c7078983c97f62c64ea33c3f9150bb0580b9
[ "MIT" ]
2
2017-10-15T10:58:14.000Z
2017-12-08T14:11:31.000Z
image_downloader.py
guzdy/tumblr_crawler
c584c7078983c97f62c64ea33c3f9150bb0580b9
[ "MIT" ]
null
null
null
image_downloader.py
guzdy/tumblr_crawler
c584c7078983c97f62c64ea33c3f9150bb0580b9
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -×- coding: utf-8 -*- import asyncio from concurrent import futures import json import requests import os import multiprocessing import re import datetime from requests.packages.urllib3.exceptions import InsecureRequestWarning # 禁用安全请求警告 requests.packages.urllib3.disable_warnings(InsecureRequ...
35.858896
89
0.545081
9c05086429ddfdaf77ab6525bb8ba742e095a115
1,172
py
Python
test/functional/p2p_mempool.py
daface45/cerebralcoin
0ea3caf2b22113c31c8fd3672f9dc6fa092ffd29
[ "MIT" ]
1
2021-10-07T01:18:40.000Z
2021-10-07T01:18:40.000Z
test/functional/p2p_mempool.py
daface45/cerebralcoin
0ea3caf2b22113c31c8fd3672f9dc6fa092ffd29
[ "MIT" ]
null
null
null
test/functional/p2p_mempool.py
daface45/cerebralcoin
0ea3caf2b22113c31c8fd3672f9dc6fa092ffd29
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Cerebralcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test p2p mempool message. Test that nodes are disconnected if they send mempool messages when blo...
33.485714
73
0.739761
6f53d980bcef0c32e35b658122d5b47219b95909
1,151
py
Python
rmgpy/reduction/test_data/minimal/input.py
keceli/RMG-Py
17c7870195a4feb6e8bf8974292f9bcdca1a1d9d
[ "MIT" ]
7
2017-10-04T16:04:14.000Z
2021-03-27T21:54:41.000Z
rmgpy/reduction/test_data/minimal/input.py
speth/RMG-Py
1d2c2b684580396e984459d9347628a5ceb80e2e
[ "MIT" ]
72
2016-06-06T18:18:49.000Z
2019-11-17T03:21:10.000Z
rmgpy/reduction/test_data/minimal/input.py
speth/RMG-Py
1d2c2b684580396e984459d9347628a5ceb80e2e
[ "MIT" ]
6
2017-10-04T15:37:05.000Z
2021-12-29T06:50:16.000Z
# Data sources database( thermoLibraries = ['primaryThermoLibrary'], reactionLibraries = [], seedMechanisms = [], kineticsDepositories = ['training'], kineticsFamilies = 'default', kineticsEstimator = 'rate rules', ) # List of species species( label='ethane', reactive=True, structur...
18.564516
47
0.60556
dd08eebb3e8ed2db59c65066c76b131892021def
328
py
Python
tests/t_sync_attachment.py
cjr0707/CrawlUtils
723f0b8ef2a617ff0ca1b51e35a5ded43ab76ff0
[ "MIT" ]
1
2021-03-11T03:00:10.000Z
2021-03-11T03:00:10.000Z
tests/t_sync_attachment.py
cjr0707/CrawlUtils
723f0b8ef2a617ff0ca1b51e35a5ded43ab76ff0
[ "MIT" ]
null
null
null
tests/t_sync_attachment.py
cjr0707/CrawlUtils
723f0b8ef2a617ff0ca1b51e35a5ded43ab76ff0
[ "MIT" ]
null
null
null
from crawl_utils.file import extract_attachment url = 'http://www.xinjiang.gov.cn/xinjiang/fgwjx/202009/d9bafda1ba5541db8d8d499934c20208.shtml' with open('./htmls/attachment/sync_attachment.html') as f: html = f.read() attachment_list = extract_attachment(html, url, attachment_format_list=['txt']) print(attachmen...
36.444444
95
0.795732
40c669b92d7526d1052de3743c908902beb57f6f
535
py
Python
Udemy/100 Days of Code - The Complete Python Pro Bootcamp for 2022/Day_33_Project - ISS Overhead Notifier/test.py
douglasadones/Cursos-Online
53e9af499da8567db4d17cb25fbe1db9b2f0585e
[ "MIT" ]
1
2021-12-22T13:06:25.000Z
2021-12-22T13:06:25.000Z
Udemy/100 Days of Code - The Complete Python Pro Bootcamp for 2022/Day_33_Project - ISS Overhead Notifier/test.py
douglasadones/Cursos-Online
53e9af499da8567db4d17cb25fbe1db9b2f0585e
[ "MIT" ]
null
null
null
Udemy/100 Days of Code - The Complete Python Pro Bootcamp for 2022/Day_33_Project - ISS Overhead Notifier/test.py
douglasadones/Cursos-Online
53e9af499da8567db4d17cb25fbe1db9b2f0585e
[ "MIT" ]
null
null
null
import requests MY_LAT = -2.919150 # Sua latitude MY_LONG = -41.752270 # Sua longitude parametros = { "lat": MY_LAT, "lng": MY_LONG, "formatted": 0, } response = requests.get(url="https://api.sunrise-sunset.org/json", params=parametros) response.raise_for_status() data = response.json() nascer_do_sol = in...
38.214286
109
0.678505
4c42cfdba72def18bc91dc6070e57fea78642354
1,596
py
Python
pyflac/__init__.py
sonos/pyFLAC
3c27540b465b5915050459ebdfb6eedc0fc6291a
[ "Apache-2.0" ]
85
2021-04-23T07:00:06.000Z
2022-02-20T18:41:52.000Z
pyflac/__init__.py
sonos/pyFLAC
3c27540b465b5915050459ebdfb6eedc0fc6291a
[ "Apache-2.0" ]
6
2021-04-22T20:46:03.000Z
2022-03-30T11:04:15.000Z
pyflac/__init__.py
sonos/pyFLAC
3c27540b465b5915050459ebdfb6eedc0fc6291a
[ "Apache-2.0" ]
5
2021-04-24T10:01:33.000Z
2022-02-07T06:15:07.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # pyFLAC # # Copyright (c) 2011-2021, Sonos, Inc. # All rights reserved. # # ------------------------------------------------------------------------------ __title__ = 'pyFLAC' __version__ = '2.0.0' __all__ =...
25.741935
101
0.537594
b10afae7301ac4ee28b31d6f09da4f1a0569e574
16,979
py
Python
chia/full_node/mempool_check_conditions.py
Albertjan90/chia-blockchain
24b4533e7dd225c065c234eeaea25f06118a088b
[ "Apache-2.0" ]
1
2021-06-30T00:03:41.000Z
2021-06-30T00:03:41.000Z
chia/full_node/mempool_check_conditions.py
Albertjan90/chia-blockchain
24b4533e7dd225c065c234eeaea25f06118a088b
[ "Apache-2.0" ]
null
null
null
chia/full_node/mempool_check_conditions.py
Albertjan90/chia-blockchain
24b4533e7dd225c065c234eeaea25f06118a088b
[ "Apache-2.0" ]
null
null
null
import logging import time from typing import Tuple, Dict, List, Optional, Set from clvm import SExp from chia.consensus.cost_calculator import NPCResult from chia.consensus.condition_costs import ConditionCost from chia.full_node.generator import create_generator_args, setup_generator_args from chia.types.blockchain_...
41.412195
113
0.714648
59aad9a907f683f0e4a08ea320aced8d098f2743
1,224
py
Python
apps/feedback/migrations/0001_initial.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
null
null
null
apps/feedback/migrations/0001_initial.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
6
2020-06-07T15:18:58.000Z
2021-09-22T19:07:33.000Z
apps/feedback/migrations/0001_initial.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2019-12-26 22:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('merchant', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
36
152
0.55719
42561360bb9a9dab9af61fab721366ea472c7a0e
8,769
py
Python
core/test.py
lindagaw/Eos
a125aca20007fbc55c4a5ae0c7baeb85a1375e1a
[ "MIT" ]
null
null
null
core/test.py
lindagaw/Eos
a125aca20007fbc55c4a5ae0c7baeb85a1375e1a
[ "MIT" ]
null
null
null
core/test.py
lindagaw/Eos
a125aca20007fbc55c4a5ae0c7baeb85a1375e1a
[ "MIT" ]
null
null
null
"""Test script to classify target data.""" import torch import torch.nn as nn from utils import make_variable from sklearn.metrics import accuracy_score import numpy as np from scipy.spatial import distance import os def get_distribution(src_encoder, tgt_encoder, src_classifier, tgt_classifier, critic, data_loader,...
38.126087
125
0.662105
6ba20480d585d17cdd307f57e280affca5373a1d
1,498
py
Python
model.py
christianversloot/keras-multilayer-perceptron
b3be50f78a682749934d183164ffe0e1a438fbe4
[ "CC0-1.0" ]
2
2020-04-15T03:33:49.000Z
2020-10-20T13:12:17.000Z
model.py
christianversloot/keras-multilayer-perceptron
b3be50f78a682749934d183164ffe0e1a438fbe4
[ "CC0-1.0" ]
null
null
null
model.py
christianversloot/keras-multilayer-perceptron
b3be50f78a682749934d183164ffe0e1a438fbe4
[ "CC0-1.0" ]
2
2020-09-13T08:43:21.000Z
2021-03-28T19:56:10.000Z
# Imports import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense from keras.utils import to_categorical # Configuration options feature_vector_length = 784 num_classes = 60000 # Load the data (X_train, Y_train), (X_test, Y_test) = mnist.load_data() # Reshape ...
32.565217
87
0.774366
2b6f4333f9330b87feb36a78deaac64cbbe0e9d3
1,773
py
Python
mbdiff/tests/conftest.py
PiotrZakrzewski/macrobase-diff
b496826e06e6f6cd4bc19741d4a1875c75b8666b
[ "Apache-2.0" ]
1
2022-03-05T19:24:39.000Z
2022-03-05T19:24:39.000Z
mbdiff/tests/conftest.py
PiotrZakrzewski/macrobase-diff
b496826e06e6f6cd4bc19741d4a1875c75b8666b
[ "Apache-2.0" ]
10
2020-11-21T09:24:29.000Z
2020-12-03T07:54:43.000Z
mbdiff/tests/conftest.py
PiotrZakrzewski/macrobase-diff
b496826e06e6f6cd4bc19741d4a1875c75b8666b
[ "Apache-2.0" ]
null
null
null
import pytest from pandas import DataFrame, Series FIXTURE_DF_LEN = 10 @pytest.fixture def int_column(): return Series([x for x in range(FIXTURE_DF_LEN)]) @pytest.fixture def float_column(): return Series([x * 1.1 for x in range(FIXTURE_DF_LEN)]) @pytest.fixture def cat_col_all_same(): return Series(...
21.888889
82
0.605189
9f477cbe62aede88783edb60a9464aeace69fc16
1,811
py
Python
third_party/webrtc/src/chromium/src/tools/perf/page_sets/simple_mobile_sites.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
27
2016-04-27T01:02:03.000Z
2021-12-13T08:53:19.000Z
third_party/webrtc/src/chromium/src/tools/perf/page_sets/simple_mobile_sites.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
2
2017-03-09T09:00:50.000Z
2017-09-21T15:48:20.000Z
third_party/webrtc/src/chromium/src/tools/perf/page_sets/simple_mobile_sites.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
17
2016-04-27T02:06:39.000Z
2019-12-18T08:07:00.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import page as page_module from telemetry.page import shared_page_state from telemetry import story class SimplePage(page_module.Page): ...
32.927273
80
0.731088
508997daceee8a42337af3245778d3e329a2c938
835
py
Python
ChalkBoard(practice)/Python/MiniProjs/PDF/PDF.py
NathanKinney/Gardyloo
eb08805f21bd530135fabda4a866d15eb781fc5f
[ "MIT" ]
1
2018-06-26T23:05:09.000Z
2018-06-26T23:05:09.000Z
ChalkBoard(practice)/Python/MiniProjs/PDF/PDF.py
NathanKinney/Gardyloo
eb08805f21bd530135fabda4a866d15eb781fc5f
[ "MIT" ]
null
null
null
ChalkBoard(practice)/Python/MiniProjs/PDF/PDF.py
NathanKinney/Gardyloo
eb08805f21bd530135fabda4a866d15eb781fc5f
[ "MIT" ]
null
null
null
import PyPDF2 # opening and reading pdf # f = open('Working_Business_Proposal.pdf', 'rb') # pdf_reader = PyPDF2.PdfFileReader(f) # # pdf_reader.numPages # # page_one = pdf_reader.getPage(0) # page_one_text = page_one.extractText() #appending to pdf # f = open('Working_Business_Proposal.pdf', 'rb') # pdf_reader = P...
20.875
49
0.728144
2636f29aed57ecd50ccf3f441748703dfe1135b2
810
py
Python
tests/test_html.py
easydatapy/easytxt
9c2a424d3e39c50722c5b543b96c1450181f94e4
[ "BSD-3-Clause" ]
4
2020-08-25T17:39:04.000Z
2020-08-31T20:14:37.000Z
tests/test_html.py
sitegroove/easytxt
9c2a424d3e39c50722c5b543b96c1450181f94e4
[ "BSD-3-Clause" ]
null
null
null
tests/test_html.py
sitegroove/easytxt
9c2a424d3e39c50722c5b543b96c1450181f94e4
[ "BSD-3-Clause" ]
null
null
null
from easytxt import html def test_to_text(): test_html_texts = [("<p>Some sentence</p>", ["Some sentence"])] for text_html_tuple in test_html_texts: html_text, expected_text = text_html_tuple assert html.to_sentences(html_text) == expected_text def test_validate(): test_valid_html_text...
27.931034
67
0.683951
e6e790e8e1c6d5c4ad6399218a3ec86d9bddcab5
3,521
py
Python
utils.py
songaal/rltrader
4aac8085dda1a58fbf30a313f2a4608398c971a3
[ "MIT" ]
2
2020-06-13T07:18:10.000Z
2020-11-03T03:46:40.000Z
utils.py
songaal/rltrader
4aac8085dda1a58fbf30a313f2a4608398c971a3
[ "MIT" ]
null
null
null
utils.py
songaal/rltrader
4aac8085dda1a58fbf30a313f2a4608398c971a3
[ "MIT" ]
1
2020-05-16T08:41:29.000Z
2020-05-16T08:41:29.000Z
# import csv # from datetime import datetime, timedelta # import json # import logging # # import os # import tempfile # import timeit # # import re # import requests # # logging.basicConfig(format='[%(asctime)s %(levelname)s] (%(filename)s:%(lineno)d) %(message)s', # level=os.environ.get('LOGLEVEL'...
36.298969
110
0.552684
bcb84af53807142b1d27366708cd4bbacf5def88
7,790
py
Python
docs/conf.py
django-functest/django-functest
51cd027301ee5e62134a27bb1da727814055c02e
[ "BSD-3-Clause" ]
71
2016-01-29T14:08:13.000Z
2022-03-11T16:24:00.000Z
docs/conf.py
django-functest/django-functest
51cd027301ee5e62134a27bb1da727814055c02e
[ "BSD-3-Clause" ]
17
2016-02-13T19:48:54.000Z
2021-12-15T16:34:40.000Z
docs/conf.py
django-functest/django-functest
51cd027301ee5e62134a27bb1da727814055c02e
[ "BSD-3-Clause" ]
8
2016-02-03T15:08:45.000Z
2020-11-11T11:33:35.000Z
# -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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 file. # # ...
31.538462
80
0.714506
9cd5a5f3427c2dd3f6c62af97097c62c09bb4093
79,013
py
Python
py/vtproto/query_pb2.py
AndyDiamondstein/vitess
295c300cd22c109f8be7a454c03c96c6b8e3b55c
[ "BSD-3-Clause" ]
1
2021-03-14T10:04:18.000Z
2021-03-14T10:04:18.000Z
py/vtproto/query_pb2.py
AndyDiamondstein/vitess
295c300cd22c109f8be7a454c03c96c6b8e3b55c
[ "BSD-3-Clause" ]
null
null
null
py/vtproto/query_pb2.py
AndyDiamondstein/vitess
295c300cd22c109f8be7a454c03c96c6b8e3b55c
[ "BSD-3-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: query.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _mes...
37.787183
8,052
0.742688
6e9e544b5c45a235cce6d9f62de8e958ead99d2c
4,345
bzl
Python
apple/internal/linking_support.bzl
mccorkill1/rules_apple
8562971108c11931618a220731c335e9fab9fb49
[ "Apache-2.0" ]
null
null
null
apple/internal/linking_support.bzl
mccorkill1/rules_apple
8562971108c11931618a220731c335e9fab9fb49
[ "Apache-2.0" ]
1
2021-02-23T17:44:22.000Z
2021-02-23T17:44:22.000Z
apple/internal/linking_support.bzl
mccorkill1/rules_apple
8562971108c11931618a220731c335e9fab9fb49
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Bazel Authors. 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 applicable la...
40.607477
95
0.718067
67529a10f7cf465815eed1d8d54a731ae6998c9e
4,332
py
Python
scorecard/tests/indicators/test_current_ratio.py
Code4SA/municipal-data-api
8b213b702245bc2ff1bab4bd160c4cd3b604d54f
[ "MIT" ]
null
null
null
scorecard/tests/indicators/test_current_ratio.py
Code4SA/municipal-data-api
8b213b702245bc2ff1bab4bd160c4cd3b604d54f
[ "MIT" ]
null
null
null
scorecard/tests/indicators/test_current_ratio.py
Code4SA/municipal-data-api
8b213b702245bc2ff1bab4bd160c4cd3b604d54f
[ "MIT" ]
null
null
null
from ...profile_data import ApiData from ...profile_data.indicators import ( CurrentRatio, ) from . import ( import_data, _IndicatorTestCase, ) from .resources import ( GeographyResource, FinancialPositionFactsV2Resource, BsheetFactsV1Resource, ) class TestCurrentRatio(_IndicatorTestCase): ...
35.508197
91
0.356648
e9b815d6bf292226f9035ec12ccd57117cbe8e2a
6,519
py
Python
mars/tensor/base/isin.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
mars/tensor/base/isin.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
mars/tensor/base/isin.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding 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-...
35.237838
98
0.637828
7b8c3c5ee7d94a1ce748c6d074633b503a9492ce
727
py
Python
Spaceship/message_types/msg_sensors.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
1
2020-06-07T00:14:42.000Z
2020-06-07T00:14:42.000Z
Spaceship/message_types/msg_sensors.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
null
null
null
Spaceship/message_types/msg_sensors.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
1
2019-06-24T22:10:48.000Z
2019-06-24T22:10:48.000Z
""" msg_sensors - messages type for output of sensors part of mavsim_python - Beard & McLain, PUP, 2012 - Last update: 2/16/2019 - RWB """ class msg_sensors: def __init__(self): self.gyro_x = 0 # gyro_x self.gyro_y = 0 # gyro_y self.gyro_z = 0 # gyro_z se...
29.08
55
0.576341
b1362f54215aa607bc641842ffb47ab337afb0d5
1,179
py
Python
esphome/components/sntp/time.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/sntp/time.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/sntp/time.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
from esphome.components import time as time_ import esphome.config_validation as cv import esphome.codegen as cg from esphome.core import CORE from esphome.const import CONF_ID, CONF_SERVERS DEPENDENCIES = ["network"] sntp_ns = cg.esphome_ns.namespace("sntp") SNTPComponent = sntp_ns.class_("SNTPComponent", time_.Real...
31.026316
83
0.71162
6e6093b5c0d1d438c1cd76caaf1d63937e638aed
650
py
Python
startupservice/src/__init__.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
2
2020-09-02T18:25:39.000Z
2020-09-02T18:39:07.000Z
startupservice/src/__init__.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
null
null
null
startupservice/src/__init__.py
Mariusz1970/enigma2-plugins-1
126d31d075c156f32b09d4321ebe1a17f93a5bd6
[ "OLDAP-2.3" ]
11
2015-02-26T20:59:14.000Z
2021-09-20T08:23:03.000Z
# -*- coding: utf-8 -*- from Components.Language import language from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_LANGUAGE import os, gettext PluginLanguageDomain = "StartUpService" PluginLanguagePath = "SystemPlugins/StartUpService/locale" def localeInit(): gettext.bindtextdomain(PluginLanguageDo...
32.5
97
0.8
e47c2df134cdb3056c0ff664f6070f677b1c7477
144
py
Python
tests/test_relascope.py
Submissions/relascope
6bc9cfac99ab5d15bc62ed4538195d59da6893cb
[ "MIT" ]
null
null
null
tests/test_relascope.py
Submissions/relascope
6bc9cfac99ab5d15bc62ed4538195d59da6893cb
[ "MIT" ]
null
null
null
tests/test_relascope.py
Submissions/relascope
6bc9cfac99ab5d15bc62ed4538195d59da6893cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_relascope ---------------------------------- Tests for `relascope` module. """ # TODO
12
34
0.458333
01d1f680f2f1e82106f35bc936c819a48b7bdf2d
630
py
Python
setup.py
swd543/reconstruct-document
8f366ec4f7a90d6499f3bb97a4522cbde9f8b7d0
[ "MIT" ]
5
2019-01-16T10:49:06.000Z
2019-02-06T08:40:45.000Z
setup.py
swd543/reconstruct-document
8f366ec4f7a90d6499f3bb97a4522cbde9f8b7d0
[ "MIT" ]
null
null
null
setup.py
swd543/reconstruct-document
8f366ec4f7a90d6499f3bb97a4522cbde9f8b7d0
[ "MIT" ]
1
2019-11-19T22:59:27.000Z
2019-11-19T22:59:27.000Z
import re import os from setuptools import setup version = '1.0.0' description = '' with open('README.md', 'rb') as file: description = file.read().decode('utf-8') setup(name='reconstruct_document', version=version, description='Command line document reconstruction utility.', long_description=descr...
24.230769
100
0.696825
ffbd0fcf2d80f2dc158054f84e018c1e068da28c
90,563
py
Python
Lib/test/test_functools.py
kolyshkin/cpython
8c349565e8a442e17f1a954d1a9996847749d778
[ "CNRI-Python-GPL-Compatible" ]
3
2019-04-23T11:06:38.000Z
2021-03-03T12:17:16.000Z
Lib/test/test_functools.py
kolyshkin/cpython
8c349565e8a442e17f1a954d1a9996847749d778
[ "CNRI-Python-GPL-Compatible" ]
2
2019-04-23T15:32:51.000Z
2019-05-10T20:32:32.000Z
Lib/test/test_functools.py
kolyshkin/cpython
8c349565e8a442e17f1a954d1a9996847749d778
[ "CNRI-Python-GPL-Compatible" ]
1
2021-02-20T14:09:54.000Z
2021-02-20T14:09:54.000Z
import abc import builtins import collections import collections.abc import copy from itertools import permutations import pickle from random import choice import sys from test import support import threading import time import typing import unittest import unittest.mock from weakref import proxy import contextlib imp...
36.356082
122
0.558109
f2bc01f4f5d5295bef9e7d33ce0bc1cc2b24095f
347
py
Python
pomdp_grid_world/__init__.py
NishanthVAnand/new_env_gym
6ed044e8ab9b64fb3e6b3def432609833730a60a
[ "MIT" ]
null
null
null
pomdp_grid_world/__init__.py
NishanthVAnand/new_env_gym
6ed044e8ab9b64fb3e6b3def432609833730a60a
[ "MIT" ]
null
null
null
pomdp_grid_world/__init__.py
NishanthVAnand/new_env_gym
6ed044e8ab9b64fb3e6b3def432609833730a60a
[ "MIT" ]
null
null
null
from gym.envs.registration import register register( id='pomdpGridWorld-v0', entry_point='pomdp_grid_world.envs:gridWorld', kwargs={'map_name' : '4x4'}, max_episode_steps=100, ) register( id='pomdpGridWorld-v1', entry_point='pomdp_grid_world.envs:gridWorld', kwargs={'map_name' : '8x8'}, ...
23.133333
50
0.700288
fbb3e83ba35c53521e5e30a19c591bc7449383be
1,471
py
Python
tests/st/networks/models/resnet50/src/config.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/st/networks/models/resnet50/src/config.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/st/networks/models/resnet50/src/config.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# 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...
30.645833
78
0.64446
b1f340bdc93c878ec3660a2e30338a976c3fbc02
435
py
Python
scripts/buildschema.py
ksritharan/tectle
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
1
2021-03-04T14:58:05.000Z
2021-03-04T14:58:05.000Z
scripts/buildschema.py
ksritharan/tectle
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
8
2021-02-26T02:32:59.000Z
2021-05-28T02:22:07.000Z
scripts/buildschema.py
ksritharan/business-automation
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
null
null
null
from tectle.buildschema import * def main(): num_printers = 1 num_fake_receipts = 5 max_num_items = 2 max_quantity = 2 conn = get_connection(DB_DEBUG_FILE) cur = conn.cursor() build_schema(cur) create_test_data(cur, num_printers, num_fake_receipts, max_num_items, max_quantity) #fetc...
24.166667
87
0.698851
4bb95ea10ad3ea32f5fae9d5322fd14fbbe4ff7e
308
py
Python
tweetme2/urls.py
abbasKareem/twitter2me
2fe867de5571d6be20b45b29d6ffe352b158a428
[ "MIT" ]
null
null
null
tweetme2/urls.py
abbasKareem/twitter2me
2fe867de5571d6be20b45b29d6ffe352b158a428
[ "MIT" ]
null
null
null
tweetme2/urls.py
abbasKareem/twitter2me
2fe867de5571d6be20b45b29d6ffe352b158a428
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from tweets.views import home_view, tweet_detail_view, tweet_list_view urlpatterns = [ path('admin/', admin.site.urls), path('', home_view), path('tweets/', tweet_list_view), path('tweets/<int:tweet_id>', tweet_detail_view), ]
23.692308
70
0.724026
689b29be4464c8318990d372609ee814c0092b66
790
py
Python
crowdsourcing/serializers/dynamic.py
ramcn/sept20
e6f6e238d0561ebf3353158161f1b20052e8b08b
[ "MIT" ]
1
2016-02-29T01:26:42.000Z
2016-02-29T01:26:42.000Z
crowdsourcing/serializers/dynamic.py
ramcn/sept20
e6f6e238d0561ebf3353158161f1b20052e8b08b
[ "MIT" ]
16
2015-08-10T18:28:18.000Z
2022-03-11T23:12:48.000Z
crowdsourcing/serializers/dynamic.py
Milstein/crowdsource-platform
60427e440373824c26c7daf8cf5f421b9c7ebbb5
[ "MIT" ]
null
null
null
from rest_framework import serializers class DynamicFieldsModelSerializer(serializers.ModelSerializer): """ A ModelSerializer that takes an additional `fields` argument that controls which fields should be displayed. """ def __init__(self, *args, **kwargs): # Don't pass the 'fields' arg up ...
39.5
78
0.659494
0969ede2795a61a6eb8c66bc87f9b3935c04990e
779
py
Python
proteus/default_so.py
cekees/proteus
11d8749e04f0950f090d1a406243539a868be642
[ "MIT" ]
null
null
null
proteus/default_so.py
cekees/proteus
11d8749e04f0950f090d1a406243539a868be642
[ "MIT" ]
1
2020-12-19T03:29:35.000Z
2020-12-19T03:29:35.000Z
proteus/default_so.py
cekees/proteus
11d8749e04f0950f090d1a406243539a868be642
[ "MIT" ]
null
null
null
""" The default values for so-files describing split operator formulations """ from __future__ import absolute_import try: from importlib import reload except: pass from .SplitOperator import * name = None pnList = [] systemStepControllerType = Sequential_MinModelStep systemStepExact = True useOneMesh = T...
16.934783
72
0.776637
388dbf0d23f71bad048078d94153282152e52601
12,515
py
Python
tests/generate_go_ethereum_fixture.py
EdNoepel/web3.py
008f1343621ee951330db23b3e691aeead1e55e3
[ "MIT" ]
null
null
null
tests/generate_go_ethereum_fixture.py
EdNoepel/web3.py
008f1343621ee951330db23b3e691aeead1e55e3
[ "MIT" ]
null
null
null
tests/generate_go_ethereum_fixture.py
EdNoepel/web3.py
008f1343621ee951330db23b3e691aeead1e55e3
[ "MIT" ]
null
null
null
import contextlib import json import os import pprint import shutil import signal import socket import subprocess import sys import tempfile import time from eth_utils.curried import ( apply_formatter_if, is_bytes, is_checksum_address, is_dict, is_same_address, remove_0x_prefix, to_hex, ...
30.52439
522
0.668158
4a8e5d0ea810e3b71db0f5d05ac4b74a20720daf
35,881
py
Python
dairy_erp/dairy_erp/doctype/farmer_payment_cycle_report/farmer_payment_cycle_report.py
shrikant9867/Dairy_project_Daiyerp
635d34115f0eb2081b6835a190eda4971dbfb99f
[ "MIT" ]
null
null
null
dairy_erp/dairy_erp/doctype/farmer_payment_cycle_report/farmer_payment_cycle_report.py
shrikant9867/Dairy_project_Daiyerp
635d34115f0eb2081b6835a190eda4971dbfb99f
[ "MIT" ]
null
null
null
dairy_erp/dairy_erp/doctype/farmer_payment_cycle_report/farmer_payment_cycle_report.py
shrikant9867/Dairy_project_Daiyerp
635d34115f0eb2081b6835a190eda4971dbfb99f
[ "MIT" ]
2
2020-01-19T13:27:57.000Z
2021-12-28T20:32:56.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018, Stellapps Technologies Private Ltd. # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from dairy_erp.dairy_utils import make_dairy_log, make_journal_entry ...
45.942382
219
0.707868
a37cedb51c712ddf53c24677c91bb6fa641080c4
129
py
Python
demo2/demo2_app/models.py
mpasternak/pytest-django-pytest-splinter-test
843577e05a91545e4ff1d687b3fd56f25e0e22d3
[ "Unlicense" ]
null
null
null
demo2/demo2_app/models.py
mpasternak/pytest-django-pytest-splinter-test
843577e05a91545e4ff1d687b3fd56f25e0e22d3
[ "Unlicense" ]
null
null
null
demo2/demo2_app/models.py
mpasternak/pytest-django-pytest-splinter-test
843577e05a91545e4ff1d687b3fd56f25e0e22d3
[ "Unlicense" ]
null
null
null
from django.db import models # Create your models here. class Foobar(models.Model): name = models.CharField(max_length=50)
18.428571
42
0.751938
35c2486e81e8227147642c32fe3906948d4f32da
30,715
py
Python
examples/contrib/run_vcr.py
splionar/transformers
2f457ddc32e44bd40752406ebabdd6ee9c9d64bc
[ "Apache-2.0" ]
null
null
null
examples/contrib/run_vcr.py
splionar/transformers
2f457ddc32e44bd40752406ebabdd6ee9c9d64bc
[ "Apache-2.0" ]
null
null
null
examples/contrib/run_vcr.py
splionar/transformers
2f457ddc32e44bd40752406ebabdd6ee9c9d64bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
41.675712
150
0.64545
e89ec95113747d4758af5a178b6d6954b4db0d5f
5,156
py
Python
project/openaid/management/commands/import_financial_data.py
DeppSRL/open-aid
84130761c00600a8523f4f28467d70ad974859cd
[ "BSD-3-Clause" ]
null
null
null
project/openaid/management/commands/import_financial_data.py
DeppSRL/open-aid
84130761c00600a8523f4f28467d70ad974859cd
[ "BSD-3-Clause" ]
null
null
null
project/openaid/management/commands/import_financial_data.py
DeppSRL/open-aid
84130761c00600a8523f4f28467d70ad974859cd
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 __author__ = 'stefano' import logging from optparse import make_option from pprint import pprint from django.core.exceptions import ObjectDoesNotExist from openpyxl import load_workbook from django.core.management.base import BaseCommand from openaid.projects.models import Initiative class Command(Base...
37.911765
122
0.621024
e53872ac53b7b774f4bf8de44c8ef9c4dcd42117
107,870
py
Python
nova/network/neutronv2/api.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
nova/network/neutronv2/api.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
nova/network/neutronv2/api.py
larsbutler/nova
fb190f30a911658d8b0c4deaf43cbb8c9e35b672
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # All Rights Reserved # Copyright (c) 2012 NEC Corporation # # 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/lic...
46.455642
79
0.593353
85de88bfcfa5efe6812675a9361115bf5fe04aa6
127
py
Python
setup.py
ceavelasquezpi/neuralnilm
184b2301333e49828d29064c59496f82c89dcbad
[ "Apache-2.0" ]
135
2015-08-14T14:38:36.000Z
2022-03-02T10:29:49.000Z
setup.py
ceavelasquezpi/neuralnilm
184b2301333e49828d29064c59496f82c89dcbad
[ "Apache-2.0" ]
12
2016-03-21T12:12:25.000Z
2019-12-07T06:05:26.000Z
setup.py
ceavelasquezpi/neuralnilm
184b2301333e49828d29064c59496f82c89dcbad
[ "Apache-2.0" ]
82
2015-09-24T01:02:39.000Z
2022-01-18T16:05:20.000Z
from setuptools import setup, find_packages setup( name='NeuralNILM', version='0.0.1', packages=find_packages() )
15.875
43
0.692913
ba4e201a27118e20ab85bfcaab0bc21037d3aaac
3,149
py
Python
Tests/Plot/LamWind/test_Slot_26_plot.py
helene-t/pyleecan
8362de9b0e32b346051b38192e07f3a6974ea9aa
[ "Apache-2.0" ]
2
2019-06-08T15:04:39.000Z
2020-09-07T13:32:22.000Z
Tests/Plot/LamWind/test_Slot_26_plot.py
lyhehehe/pyleecan
421e9a843bf30d796415c77dc934546adffd1cd7
[ "Apache-2.0" ]
null
null
null
Tests/Plot/LamWind/test_Slot_26_plot.py
lyhehehe/pyleecan
421e9a843bf30d796415c77dc934546adffd1cd7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from os.path import join import matplotlib.pyplot as plt from numpy import array, pi, zeros from pyleecan.Classes.Frame import Frame from pyleecan.Classes.LamSlotWind import LamSlotWind from pyleecan.Classes.LamSquirrelCage import LamSquirrelCage from pyleecan.Classes.MachineDFIM import Machin...
34.228261
88
0.703715
7ce0a469c6c6642fb6ed03ab573445ff6d4da0d9
19,676
py
Python
mega_core/config/defaults.py
djiajunustc/mega.pytorch
96a640e8dc270091de38bf350c05b7378c2911d7
[ "BSD-2-Clause" ]
null
null
null
mega_core/config/defaults.py
djiajunustc/mega.pytorch
96a640e8dc270091de38bf350c05b7378c2911d7
[ "BSD-2-Clause" ]
null
null
null
mega_core/config/defaults.py
djiajunustc/mega.pytorch
96a640e8dc270091de38bf350c05b7378c2911d7
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os from yacs.config import CfgNode as CN # ----------------------------------------------------------------------------- # Convention about Training / Test specific parameters # ------------------------------------------------------------...
36.437037
83
0.649726
7ac406d933e95a9581fd7a7f6b5a7320d001109d
180,984
py
Python
number_generator_code_part.py
haojiang2020/Number-Generator
9941b28333961f291ea954a71690871b4e0fc2db
[ "BSD-3-Clause" ]
null
null
null
number_generator_code_part.py
haojiang2020/Number-Generator
9941b28333961f291ea954a71690871b4e0fc2db
[ "BSD-3-Clause" ]
null
null
null
number_generator_code_part.py
haojiang2020/Number-Generator
9941b28333961f291ea954a71690871b4e0fc2db
[ "BSD-3-Clause" ]
null
null
null
# number generator & identifier # This Python file is the core part of number generating # # When generating a new mixed number with member number, please run 'number_mix_generate' and then 'number_member_generate' # # when generating a new organization number, please run 'number_organization_generate' # # when generat...
53.656685
162
0.39414
6a1c87730c97358337e72b4d48ee0060dc4cf823
1,557
py
Python
src/modules/podcast.py
StaticallyTypedRice/PodcastDownloader
b2d5bc2a5b22ba5b2dc537fdafc588aedd67bcb5
[ "MIT" ]
2
2019-08-07T09:23:26.000Z
2020-02-29T05:06:58.000Z
src/modules/podcast.py
StaticallyTypedRice/PodcastDownloader
b2d5bc2a5b22ba5b2dc537fdafc588aedd67bcb5
[ "MIT" ]
null
null
null
src/modules/podcast.py
StaticallyTypedRice/PodcastDownloader
b2d5bc2a5b22ba5b2dc537fdafc588aedd67bcb5
[ "MIT" ]
1
2019-03-26T10:00:49.000Z
2019-03-26T10:00:49.000Z
from xml.etree.ElementTree import Element from modules.xml import get_unique_xml_element class Episode(object): '''The podcast episode object.''' def __init__(self, item: Element): '''Create an Episode object from an RSS item. An example RSS file: <rss xmlns:it...
34.6
94
0.524727
f541fd930354f3199934f23879f56e14f1542103
36,466
py
Python
pirates/leveleditor/worldData/interior_shanty_blacksmith.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/leveleditor/worldData/interior_shanty_blacksmith.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/leveleditor/worldData/interior_shanty_blacksmith.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Objects': {'1156270917.73dzlu0': {'Type': 'Building Interior','Name': '','Instanced': True,'Objects': {'1165366099.89kmuller': {'Type': 'Barrel','DisableCollision': True,'Hpr': VBase3(15.46, 0.0, 0.0),'Pos': Point3(17.533, -10.644, 0.0),'Scale'...
12,155.333333
36,285
0.68472
7efcb74350aeaaae8e9f87d5e3d2ab9f09ac7a72
1,249
py
Python
metalfi/src/data/dataset.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
2
2019-12-05T07:57:14.000Z
2019-12-05T13:02:08.000Z
metalfi/src/data/dataset.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
31
2019-12-05T15:14:47.000Z
2020-12-04T14:37:46.000Z
metalfi/src/data/dataset.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
1
2020-12-04T13:40:11.000Z
2020-12-04T13:40:11.000Z
import time from metalfi.src.data.meta.metafeatures import MetaFeatures class Dataset: def __init__(self, data_frame, target): self.__data_frame = data_frame self.__target = target def getDataFrame(self): return self.__data_frame def getTarget(self): return self.__targe...
28.386364
120
0.628503
5a65f19c4856a706feb9cc4181d7ff71f59dd80b
662
py
Python
act/plotting/__init__.py
michaeltg12/ACT
c801ac7ac2762bdc73e1d419bc7c266512d55903
[ "BSD-3-Clause" ]
null
null
null
act/plotting/__init__.py
michaeltg12/ACT
c801ac7ac2762bdc73e1d419bc7c266512d55903
[ "BSD-3-Clause" ]
null
null
null
act/plotting/__init__.py
michaeltg12/ACT
c801ac7ac2762bdc73e1d419bc7c266512d55903
[ "BSD-3-Clause" ]
null
null
null
""" =========================== act.plotting (act.plotting) =========================== .. currentmodule:: act.plotting This module contains procedures for plotting ARM datasets. .. autosummary:: :toctree: generated/ common.parse_ax common.parse_ax_fig common.get_date_format """ from .TimeSeriesDis...
24.518519
58
0.743202
059e8953ec124def6fd5eaccddc7b9dd09f5b990
13,923
py
Python
log_casp_inh/model_364.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_inh/model_364.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_inh/model_364.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('C6A', ['C8pro']) Monomer('BaxA', ['BaxM', 'BaxA_1', 'BaxA_2', 'SmacM']) Monomer('Ligand', ['Receptor']) Monomer('C6pro', ['C3A']) Monome...
85.417178
598
0.808518
e88a974cef3bec036afd0508fecc288575bec87e
18,474
py
Python
jax/experimental/jax2tf/tests/primitive_harness.py
kosklain/jax
1d61cfff48ce43402cb52940a4fdeb50a2603d9b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/experimental/jax2tf/tests/primitive_harness.py
kosklain/jax
1d61cfff48ce43402cb52940a4fdeb50a2603d9b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/experimental/jax2tf/tests/primitive_harness.py
kosklain/jax
1d61cfff48ce43402cb52940a4fdeb50a2603d9b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.988636
129
0.624986