hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
3f9037fd96db6cdae69dc8cda91e8f54402e6cbd
578
py
Python
closed/Neuchips/code/dlrm-99/Server/python/utils_neuchips_preproc.py
wom-ai/inference_results_v1.0
af4bfffd5b6c4815f305a272cb42ae6de09f44e1
[ "Apache-2.0" ]
19
2020-10-26T17:37:22.000Z
2022-01-20T09:32:38.000Z
closed/Neuchips/code/dlrm-99/Server/python/utils_neuchips_preproc.py
wom-ai/inference_results_v1.0
af4bfffd5b6c4815f305a272cb42ae6de09f44e1
[ "Apache-2.0" ]
24
2021-07-19T01:09:35.000Z
2022-03-17T11:44:02.000Z
closed/Neuchips/code/dlrm-99/Server/python/utils_neuchips_preproc.py
wom-ai/inference_results_v1.0
af4bfffd5b6c4815f305a272cb42ae6de09f44e1
[ "Apache-2.0" ]
19
2020-10-21T19:15:17.000Z
2022-01-04T08:32:08.000Z
import torch import numpy as np
24.083333
103
0.626298
import torch import numpy as np def quant_pow2_unsigned_s(x, q_frac): return torch.clamp(torch.floor(x.to(torch.float64) * pow(2, q_frac) + 0.5), 0, 255).to(torch.uint8) def hw_s(s): zerox16 = np.zeros(16, dtype=np.uint8) res = [] s_t = s.T for inf in s_t: for i in range(26): ...
499
0
46
a5f280f0a2f1e4ce42d4714d7b4d2dc890ad1932
2,189
py
Python
ndnu-connect-backend/accounts/backends.py
NDNUSeniorProj2020/ndnu-connect
28ec7e7dce3677a2a58a8cf79518873bcbf41521
[ "MIT" ]
2
2020-02-12T03:33:55.000Z
2020-02-12T03:37:54.000Z
ndnu-connect-backend/accounts/backends.py
NDNUSeniorProj2020/ndnu-connect
28ec7e7dce3677a2a58a8cf79518873bcbf41521
[ "MIT" ]
41
2020-01-22T04:53:28.000Z
2021-09-22T18:33:34.000Z
ndnu-connect-backend/accounts/backends.py
NDNUSeniorProj2020/ndnu-connect
28ec7e7dce3677a2a58a8cf79518873bcbf41521
[ "MIT" ]
2
2020-02-12T03:07:06.000Z
2020-02-12T22:24:29.000Z
import jwt from django.conf import settings from rest_framework import authentication, exceptions from .models import User
36.483333
106
0.678849
import jwt from django.conf import settings from rest_framework import authentication, exceptions from .models import User class JWTAuthentication(authentication.BaseAuthentication): authentication_header_prefix = 'Token' # Authenticate method will always be called regardless of whether the endpoint requir...
1,609
431
23
7f58e7dc96a6cfba5be04fb11126d756bbcd3b3e
4,543
py
Python
dataprocessing/crosswalk.py
zstumgoren/census
a7b6d4e7d4c9b526a2d4ae18d2e255ffa8f8866a
[ "MIT" ]
1
2019-02-13T09:18:00.000Z
2019-02-13T09:18:00.000Z
dataprocessing/crosswalk.py
zstumgoren/census
a7b6d4e7d4c9b526a2d4ae18d2e255ffa8f8866a
[ "MIT" ]
null
null
null
dataprocessing/crosswalk.py
zstumgoren/census
a7b6d4e7d4c9b526a2d4ae18d2e255ffa8f8866a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import csv import sys from pymongo import Connection, objectid import config import utils connection = Connection() db = connection[config.CENSUS_DB] collection = db[config.GEOGRAPHIES_COLLECTION] collection_2000 = db[config.GEOGRAPHIES_2000_COLLECTION] row_count = 0 inserts = 0 KEY_MAPPINGS...
31.992958
124
0.568567
#!/usr/bin/env python import csv import sys from pymongo import Connection, objectid import config import utils connection = Connection() db = connection[config.CENSUS_DB] collection = db[config.GEOGRAPHIES_COLLECTION] collection_2000 = db[config.GEOGRAPHIES_2000_COLLECTION] row_count = 0 inserts = 0 KEY_MAPPINGS...
0
0
0
bbf6c18531f58eb0ea6acdc10b1c5f58cf78a092
500
py
Python
ontraportlib/models/charge_now_25_enum.py
LifePosts/ontraport
fb4834e89b897dce3475c89c7e6c34bf8756880e
[ "MIT" ]
null
null
null
ontraportlib/models/charge_now_25_enum.py
LifePosts/ontraport
fb4834e89b897dce3475c89c7e6c34bf8756880e
[ "MIT" ]
null
null
null
ontraportlib/models/charge_now_25_enum.py
LifePosts/ontraport
fb4834e89b897dce3475c89c7e6c34bf8756880e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ontraportlib.models.charge_now_25_enum This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ) on 11/14/2017 """ class ChargeNow25Enum(object): """Implementation of the 'ChargeNow25' enum. TODO: type enum description here. Attrib...
20
97
0.628
# -*- coding: utf-8 -*- """ ontraportlib.models.charge_now_25_enum This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ) on 11/14/2017 """ class ChargeNow25Enum(object): """Implementation of the 'ChargeNow25' enum. TODO: type enum description here. Attrib...
0
0
0
76f6ab198a54ade5d30e3d5ccd75f0c1f8c3ed47
2,759
py
Python
examples/airline_crashes/ac_single_factor_ib.py
brettelliot/event-study
cffc6a80dbc4b33e68e863488428996af51cc991
[ "MIT" ]
2
2019-10-20T15:53:20.000Z
2020-05-30T22:17:20.000Z
examples/airline_crashes/ac_single_factor_ib.py
brettelliot/event-study
cffc6a80dbc4b33e68e863488428996af51cc991
[ "MIT" ]
2
2021-03-31T18:50:01.000Z
2021-06-01T22:11:55.000Z
examples/airline_crashes/ac_single_factor_ib.py
brettelliot/event-study
cffc6a80dbc4b33e68e863488428996af51cc991
[ "MIT" ]
1
2021-07-18T05:22:45.000Z
2021-07-18T05:22:45.000Z
import datetime import logging from eventstudy.eventstudy import * from eventstudy.ibdatareader import IBDataReader from examples.airline_crashes.ac_event_matrix import AirlineCrashEventMatrix if __name__ == "__main__": main()
37.794521
102
0.664371
import datetime import logging from eventstudy.eventstudy import * from eventstudy.ibdatareader import IBDataReader from examples.airline_crashes.ac_event_matrix import AirlineCrashEventMatrix def main(): # Logging logging.basicConfig( #level=logging.INFO, level=logging.DEBUG, format=...
2,502
0
23
c575215cac238da5237ac450484549dd85bc910a
3,956
py
Python
river/metrics/confusion.py
fox-ds/river
9ce947ebfc012ec7059de0a09c765b2da7fc1d25
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/metrics/confusion.py
fox-ds/river
9ce947ebfc012ec7059de0a09c765b2da7fc1d25
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/metrics/confusion.py
fox-ds/river
9ce947ebfc012ec7059de0a09c765b2da7fc1d25
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import functools from collections import defaultdict from river import utils class ConfusionMatrix: """Confusion Matrix for binary and multi-class classification. Parameters ---------- classes The initial set of classes. This is optional and serves only for displaying purposes. Examples...
30.430769
94
0.633468
import functools from collections import defaultdict from river import utils class ConfusionMatrix: """Confusion Matrix for binary and multi-class classification. Parameters ---------- classes The initial set of classes. This is optional and serves only for displaying purposes. Examples...
1,983
0
400
5b15e3b14d88901209451c906cbab4680a21f3b3
2,841
py
Python
peekingduck/pipeline/nodes/draw/blur_bbox.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
1
2021-12-02T05:15:58.000Z
2021-12-02T05:15:58.000Z
peekingduck/pipeline/nodes/draw/blur_bbox.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
peekingduck/pipeline/nodes/draw/blur_bbox.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 AI Singapore # # 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...
32.655172
88
0.649419
# Copyright 2022 AI Singapore # # 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...
180
0
27
0af04f5266ddc3788a9fc4e25c5457e0db9a6dfb
875
py
Python
VibroSim_Simulator/open_via_helper.py
VibroSim/VibroSim_Simulator
a12dacd7d8fe47074a17d3ae74420786faaf3016
[ "MIT" ]
null
null
null
VibroSim_Simulator/open_via_helper.py
VibroSim/VibroSim_Simulator
a12dacd7d8fe47074a17d3ae74420786faaf3016
[ "MIT" ]
null
null
null
VibroSim_Simulator/open_via_helper.py
VibroSim/VibroSim_Simulator
a12dacd7d8fe47074a17d3ae74420786faaf3016
[ "MIT" ]
null
null
null
import subprocess import os import platform def open_via_helper(filepath): """Open a file via the system viewer for the specified file. Returns a handle to a cleanup function. You should call handle() before exiting.""" if hasattr(os,"startfile"): # On Windows the os module has a "startfile" ...
39.772727
90
0.683429
import subprocess import os import platform def open_via_helper(filepath): """Open a file via the system viewer for the specified file. Returns a handle to a cleanup function. You should call handle() before exiting.""" if hasattr(os,"startfile"): # On Windows the os module has a "startfile" ...
0
0
0
be39c906c491b80507ee72c5eaad74e08afb025f
674
py
Python
draw_DAG_.py
YanShulinjj/Sample-Compiler
09fcdc4fbdda5f5a05a7dd0d75ebf9c71cd7de58
[ "MIT" ]
49
2020-05-26T07:20:19.000Z
2022-02-03T12:49:27.000Z
draw_DAG_.py
YanShulinjj/Sample-Compiler
09fcdc4fbdda5f5a05a7dd0d75ebf9c71cd7de58
[ "MIT" ]
2
2020-05-26T19:12:14.000Z
2021-07-19T12:34:46.000Z
draw_DAG_.py
YanShulinjj/Sample-Compiler
09fcdc4fbdda5f5a05a7dd0d75ebf9c71cd7de58
[ "MIT" ]
7
2020-06-17T11:17:17.000Z
2021-11-23T06:14:23.000Z
from graphviz import Digraph def draw(codes): ''' :param codes: :return: ''' dot = Digraph(comment='The Round Table', filename='visible', format='png', strict=False) idx = 1 for code in codes: s = code['sign'] + '|' + ''.join(code['affi_sign']) dot.node(str(idx)...
28.083333
93
0.495549
from graphviz import Digraph def draw(codes): ''' :param codes: :return: ''' dot = Digraph(comment='The Round Table', filename='visible', format='png', strict=False) idx = 1 for code in codes: s = code['sign'] + '|' + ''.join(code['affi_sign']) dot.node(str(idx)...
0
0
0
1be014f31364509ab3288ad9340c4db367a66cee
301
py
Python
bindsnet_master/bindsnet/encoding/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
6
2021-06-01T03:43:35.000Z
2022-02-11T10:41:06.000Z
bindsnet_master/bindsnet/encoding/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
1
2022-03-31T03:22:14.000Z
2022-03-31T03:22:14.000Z
bindsnet_master/bindsnet/encoding/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
3
2021-10-30T02:30:40.000Z
2021-11-16T04:23:12.000Z
from .encodings import single, repeat, bernoulli, poisson, rank_order from .loaders import bernoulli_loader, poisson_loader, rank_order_loader from .encoders import ( Encoder, NullEncoder, SingleEncoder, RepeatEncoder, BernoulliEncoder, PoissonEncoder, RankOrderEncoder, )
25.083333
72
0.760797
from .encodings import single, repeat, bernoulli, poisson, rank_order from .loaders import bernoulli_loader, poisson_loader, rank_order_loader from .encoders import ( Encoder, NullEncoder, SingleEncoder, RepeatEncoder, BernoulliEncoder, PoissonEncoder, RankOrderEncoder, )
0
0
0
bcedc23f8741e1bafb03e8528a2eddd99bee4c3a
2,611
py
Python
wog/tests/e2e.py
Tomer9000/WOG
07dcbec2b6869a687e6f48fbf83f1b7732ad403b
[ "MIT" ]
null
null
null
wog/tests/e2e.py
Tomer9000/WOG
07dcbec2b6869a687e6f48fbf83f1b7732ad403b
[ "MIT" ]
null
null
null
wog/tests/e2e.py
Tomer9000/WOG
07dcbec2b6869a687e6f48fbf83f1b7732ad403b
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import WebDriverException import os import sys import argparse # adding optional args, url of wog's score and driver of selenium-chrome parser = argparse.ArgumentParser() parser.add_argument('--url', action='...
39.560606
87
0.69054
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import WebDriverException import os import sys import argparse # adding optional args, url of wog's score and driver of selenium-chrome parser = argparse.ArgumentParser() parser.add_argument('--url', action='...
0
0
0
19d63e0b5e37625008ec3145a219355eacbceec0
5,323
py
Python
ampel-plot-browse/ampel/plot/util/clipboard.py
AmpelProject/Ampel-plots
fc5fd49e13c8a4c6626a7113a49b8a3e54e7c7fe
[ "BSD-3-Clause" ]
null
null
null
ampel-plot-browse/ampel/plot/util/clipboard.py
AmpelProject/Ampel-plots
fc5fd49e13c8a4c6626a7113a49b8a3e54e7c7fe
[ "BSD-3-Clause" ]
null
null
null
ampel-plot-browse/ampel/plot/util/clipboard.py
AmpelProject/Ampel-plots
fc5fd49e13c8a4c6626a7113a49b8a3e54e7c7fe
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : Ampel-plot/ampel-plot-browse/ampel/plot/util/clipboard.py # License : BSD-3-Clause # Author : vb <vbrinnel@physik.hu-berlin.de> # Date : 16.11.2021 # Last Modified Date: 22.11.2021 # Last Modified By : vb <vbrinnel@ph...
26.748744
93
0.671238
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : Ampel-plot/ampel-plot-browse/ampel/plot/util/clipboard.py # License : BSD-3-Clause # Author : vb <vbrinnel@physik.hu-berlin.de> # Date : 16.11.2021 # Last Modified Date: 22.11.2021 # Last Modified By : vb <vbrinnel@ph...
1,107
0
114
0ab07fc8a56399bbe55d261ea9c07039280fad0d
13,587
py
Python
pycrypto/lib/Crypto/PublicKey/ElGamal.py
netlabcode/PyExpose
9026b065b704d05251b54b60bdb9921361ffb7c3
[ "MIT" ]
null
null
null
pycrypto/lib/Crypto/PublicKey/ElGamal.py
netlabcode/PyExpose
9026b065b704d05251b54b60bdb9921361ffb7c3
[ "MIT" ]
null
null
null
pycrypto/lib/Crypto/PublicKey/ElGamal.py
netlabcode/PyExpose
9026b065b704d05251b54b60bdb9921361ffb7c3
[ "MIT" ]
null
null
null
# # ElGamal.py : ElGamal encryption/decryption and signatures # # Part of the Python Cryptography Toolkit # # Originally written by: A.M. Kuchling # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication ...
35.475196
89
0.626702
# # ElGamal.py : ElGamal encryption/decryption and signatures # # Part of the Python Cryptography Toolkit # # Originally written by: A.M. Kuchling # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication ...
1,440
12
239
712dc840f2193ccb0709eec51f0b1850588dd67d
5,155
py
Python
gapid_tests/command_buffer_tests/BeginAndEndCommandBuffer_test/BeginAndEndCommandBuffer_test.py
RenfengLiu/vulkan_test_applications
04359b7184ad94659810213ff63ae71296426182
[ "Apache-2.0" ]
55
2017-06-20T13:54:31.000Z
2022-02-08T23:58:11.000Z
gapid_tests/command_buffer_tests/BeginAndEndCommandBuffer_test/BeginAndEndCommandBuffer_test.py
RenfengLiu/vulkan_test_applications
04359b7184ad94659810213ff63ae71296426182
[ "Apache-2.0" ]
53
2017-06-15T19:23:07.000Z
2022-03-30T19:56:30.000Z
gapid_tests/command_buffer_tests/BeginAndEndCommandBuffer_test/BeginAndEndCommandBuffer_test.py
RenfengLiu/vulkan_test_applications
04359b7184ad94659810213ff63ae71296426182
[ "Apache-2.0" ]
42
2017-06-15T19:05:40.000Z
2022-03-30T14:15:25.000Z
# Copyright 2017 Google 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 applicable law or agreed to in writing, ...
45.219298
80
0.70999
# Copyright 2017 Google 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 applicable law or agreed to in writing, ...
0
4,220
44
f326a0a054df3f181055e13c0d44350fe1fd6ef5
1,460
py
Python
POC/players.py
pmfrank/TextAdventure
6512bc532e2056dd3578841756033a21df33e2bd
[ "MIT" ]
null
null
null
POC/players.py
pmfrank/TextAdventure
6512bc532e2056dd3578841756033a21df33e2bd
[ "MIT" ]
null
null
null
POC/players.py
pmfrank/TextAdventure
6512bc532e2056dd3578841756033a21df33e2bd
[ "MIT" ]
null
null
null
from classes import Player abilities = { 'strength': 16, 'dexterity': 14, 'constitution': 14, 'intelligence': 10, 'wisdom': 12, 'charisma': 10, 'armorclass': 16, 'hitpoints':28, 'maxhitpoints': 28, 'hitdice': '3d10', 'speed': 30, 'language': ['Common','Orc','Deep Speech'...
34.761905
142
0.579452
from classes import Player abilities = { 'strength': 16, 'dexterity': 14, 'constitution': 14, 'intelligence': 10, 'wisdom': 12, 'charisma': 10, 'armorclass': 16, 'hitpoints':28, 'maxhitpoints': 28, 'hitdice': '3d10', 'speed': 30, 'language': ['Common','Orc','Deep Speech'...
0
0
0
6664ebcdb7130ef9b986f802d96c108997ced77c
176
py
Python
database/temp.py
xod442/argus
e13bf4be756b9084a554754e33b61cf2098a2887
[ "Apache-2.0" ]
null
null
null
database/temp.py
xod442/argus
e13bf4be756b9084a554754e33b61cf2098a2887
[ "Apache-2.0" ]
null
null
null
database/temp.py
xod442/argus
e13bf4be756b9084a554754e33b61cf2098a2887
[ "Apache-2.0" ]
null
null
null
from mongoengine import signals from flask import url_for import os from application import db
19.555556
53
0.778409
from mongoengine import signals from flask import url_for import os from application import db class Temp(db.Document): sa = db.StringField(db_field="sa", required=True)
0
57
23
1d347dc91fa90f9aa8aad70f978797713ce2e7f7
442
py
Python
ch_2/ball_table1.py
ProhardONE/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
51
2016-04-05T16:56:11.000Z
2022-02-08T00:08:47.000Z
ch_2/ball_table1.py
zhangxiao921207/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
null
null
null
ch_2/ball_table1.py
zhangxiao921207/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
47
2016-05-02T07:51:37.000Z
2022-02-08T01:28:15.000Z
# Exercise 2.6 # Author: Noah Waterfield Price v0 = 1 g = 9.81 n = 11 dt = 2 * v0 / g / (n - 1) print '%6s %6s' % ('t', 'y') for i in range(0, n): t = i * dt y = v0 * t - 0.5 * g * t ** 2 print '%6.3f %6.3f' % (t, y) """ Sample run: python ball_table1.py t y 0.000 0.000 0.020 0.018 0.041 ...
14.258065
33
0.5
# Exercise 2.6 # Author: Noah Waterfield Price v0 = 1 g = 9.81 n = 11 dt = 2 * v0 / g / (n - 1) print '%6s %6s' % ('t', 'y') for i in range(0, n): t = i * dt y = v0 * t - 0.5 * g * t ** 2 print '%6.3f %6.3f' % (t, y) """ Sample run: python ball_table1.py t y 0.000 0.000 0.020 0.018 0.041 ...
0
0
0
2ac55460793d69f49b37e33cd7c4747b83c65209
2,213
py
Python
bullshit_generator.py
KururuSouchou/BullshitGenerator
9841b414dd2fd865acb9bde8ce9a28e46ad59768
[ "MIT" ]
null
null
null
bullshit_generator.py
KururuSouchou/BullshitGenerator
9841b414dd2fd865acb9bde8ce9a28e46ad59768
[ "MIT" ]
null
null
null
bullshit_generator.py
KururuSouchou/BullshitGenerator
9841b414dd2fd865acb9bde8ce9a28e46ad59768
[ "MIT" ]
null
null
null
import os import re import random import readJSON from docx import Document data = readJSON.read_json("data.json") idiom = data["famous"] # a 代表前面垫话,b代表后面垫话 before = data["before"] # 在名人名言前面弄点废话 after = data['after'] # 在名人名言后面弄点废话 shit_start = data['bosh_start'] shit = data['bosh'] # 代表文章主要废话来源 title = "废话" rep...
23.542553
55
0.508812
import os import re import random import readJSON from docx import Document data = readJSON.read_json("data.json") idiom = data["famous"] # a 代表前面垫话,b代表后面垫话 before = data["before"] # 在名人名言前面弄点废话 after = data['after'] # 在名人名言后面弄点废话 shit_start = data['bosh_start'] shit = data['bosh'] # 代表文章主要废话来源 title = "废话" rep...
347
0
69
257b7d04b650e97f3d4195a76a296c550b45db47
1,496
py
Python
py/ab_response_time_by_value.py
sambacha/0x-api-simbot
5cf1a9b6988c541e5ee21c65e931228976f89e65
[ "Apache-2.0" ]
null
null
null
py/ab_response_time_by_value.py
sambacha/0x-api-simbot
5cf1a9b6988c541e5ee21c65e931228976f89e65
[ "Apache-2.0" ]
null
null
null
py/ab_response_time_by_value.py
sambacha/0x-api-simbot
5cf1a9b6988c541e5ee21c65e931228976f89e65
[ "Apache-2.0" ]
null
null
null
import matplotlib.ticker as ticker from matplotlib import pyplot as plt import seaborn as sns import json import argparse import itertools import pandas as pd from ab_utils import load_ab_data from utils import VALUES, is_successful_swap, get_max_value, format_value sns.set(color_codes=True) sns.set_palette('muted') ...
27.2
105
0.655749
import matplotlib.ticker as ticker from matplotlib import pyplot as plt import seaborn as sns import json import argparse import itertools import pandas as pd from ab_utils import load_ab_data from utils import VALUES, is_successful_swap, get_max_value, format_value sns.set(color_codes=True) sns.set_palette('muted') ...
108
0
23
ca6e127b34486b1fde939d71dcd9e8af2f3a4daa
322
py
Python
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
null
null
null
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
2
2015-08-06T14:08:39.000Z
2015-09-29T09:47:26.000Z
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
null
null
null
__author__ = 'avraham' from xmlrpclib import ServerProxy port = 9876
24.769231
84
0.652174
__author__ = 'avraham' from xmlrpclib import ServerProxy port = 9876 class Client(ServerProxy): def __init__(self, ip='127.0.0.1'): ServerProxy.__init__(self, ('http://{}:{}'.format(ip, port))) def get_methods(self): return [x for x in self.system.listMethods() if not x.startswith('sys')...
170
5
76
9c5651ea4589d75f1781f72b2673087c9d40ac08
4,982
py
Python
src/mapper.py
Mo5mami/trash-detection
48bc9edc7f270d0d839917ccfb836512ec75c7bf
[ "MIT" ]
4
2021-05-01T17:08:15.000Z
2021-05-05T13:13:13.000Z
src/mapper.py
Mo5mami/trash-detection
48bc9edc7f270d0d839917ccfb836512ec75c7bf
[ "MIT" ]
null
null
null
src/mapper.py
Mo5mami/trash-detection
48bc9edc7f270d0d839917ccfb836512ec75c7bf
[ "MIT" ]
null
null
null
import detectron2 from detectron2.data import transforms as T from detectron2.data import detection_utils as utils import torch import numpy as np import cv2 import copy from .augment import get_transforms class PersonalMapper (detectron2.data.DatasetMapper): """ Define a detectron2 personal mapper in orde...
41.516667
100
0.626455
import detectron2 from detectron2.data import transforms as T from detectron2.data import detection_utils as utils import torch import numpy as np import cv2 import copy from .augment import get_transforms class PersonalMapper (detectron2.data.DatasetMapper): """ Define a detectron2 personal mapper in orde...
0
0
0
3d866a1d099f7860ea218b9ff88866e156df5340
23,363
py
Python
tensorflow_gnn/graph/keras/layers/graph_update.py
AnotherGroupChat/gnn
e9437aa75babbe9c2786a9c46b38e3fc83570346
[ "Apache-2.0" ]
null
null
null
tensorflow_gnn/graph/keras/layers/graph_update.py
AnotherGroupChat/gnn
e9437aa75babbe9c2786a9c46b38e3fc83570346
[ "Apache-2.0" ]
null
null
null
tensorflow_gnn/graph/keras/layers/graph_update.py
AnotherGroupChat/gnn
e9437aa75babbe9c2786a9c46b38e3fc83570346
[ "Apache-2.0" ]
null
null
null
"""The GraphUpdate layer and its pieces.""" import sys from typing import Any, Callable, Mapping, Optional, Sequence import tensorflow as tf from tensorflow_gnn.graph import graph_constants as const from tensorflow_gnn.graph import graph_tensor as gt from tensorflow_gnn.graph import graph_tensor_ops as ops from tens...
44.500952
80
0.699953
"""The GraphUpdate layer and its pieces.""" import sys from typing import Any, Callable, Mapping, Optional, Sequence import tensorflow as tf from tensorflow_gnn.graph import graph_constants as const from tensorflow_gnn.graph import graph_tensor as gt from tensorflow_gnn.graph import graph_tensor_ops as ops from tens...
11,062
0
417
9c690e5d82db09ff607d3845276ad44ec0651198
8,364
py
Python
Deprecated/GGP/translator/src/Model2.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
Deprecated/GGP/translator/src/Model2.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
null
null
null
Deprecated/GGP/translator/src/Model2.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
null
null
null
from PositionIndex import PositionIndex from GDL import * import pdb # def unary_constrain(self, vp): # # remove all models that have different values for all the positions one variable appears in # for g in self.__grounds[:]: # values = vp.get_values(g) # if not values.uniform(): # self.__grounds.remove(g) ...
28.841379
95
0.68209
from PositionIndex import PositionIndex from GDL import * import pdb class Model: def __init__(self): self.__grounds = set() def __iter__(self): return iter(self.__grounds) def __eq__(self, other): if not isinstance(other, Model): return False return self.__grounds == other.__grounds def add_groun...
5,669
898
503
baf1ab437d0ab34ea135596d9c18fcf453e08fbc
96
py
Python
venv/lib/python3.8/site-packages/setuptools/_distutils/extension.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/setuptools/_distutils/extension.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/setuptools/_distutils/extension.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/6d/36/f7/4340a87af18a62fe5d5f596cfbe2e7f2d941d3e5043ac8bd070ce567eb
96
96
0.895833
/home/runner/.cache/pip/pool/6d/36/f7/4340a87af18a62fe5d5f596cfbe2e7f2d941d3e5043ac8bd070ce567eb
0
0
0
36f0ae6421a5f9d051ceb945cc367c70267eb9d3
4,892
py
Python
scripts/crawling.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
8
2018-03-09T16:44:38.000Z
2021-04-07T11:33:30.000Z
scripts/crawling.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
4
2020-03-24T15:34:54.000Z
2021-06-01T21:54:33.000Z
scripts/crawling.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
1
2020-05-13T14:30:55.000Z
2020-05-13T14:30:55.000Z
# Authors: Gianni Barlacchi <gianni.barlacchi@gmail.com> import argparse import sys import logging import os from geol.utils import utils from geol.geometry.squaregrid import SquareGrid from geol.crawler import foursquare_crawler os.environ['NO_PROXY'] = "nominatim.openstreetmap.org" logger = logging.getLogger(__nam...
34.695035
128
0.525552
# Authors: Gianni Barlacchi <gianni.barlacchi@gmail.com> import argparse import sys import logging import os from geol.utils import utils from geol.geometry.squaregrid import SquareGrid from geol.crawler import foursquare_crawler os.environ['NO_PROXY'] = "nominatim.openstreetmap.org" logger = logging.getLogger(__nam...
4,467
0
46
80141a239c99405c618c1cb2c29bfcc8199940dc
8,362
py
Python
processor/predict.py
Sindreedelange/st-gcn
918daf84dd68e87f6608c0945a6ddd39c56dcace
[ "BSD-2-Clause" ]
2
2019-03-19T14:51:27.000Z
2020-12-09T09:14:34.000Z
processor/predict.py
Sindreedelange/st-gcn
918daf84dd68e87f6608c0945a6ddd39c56dcace
[ "BSD-2-Clause" ]
null
null
null
processor/predict.py
Sindreedelange/st-gcn
918daf84dd68e87f6608c0945a6ddd39c56dcace
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os import argparse import json import shutil import numpy as np import torch import skvideo.io import pandas as pd import time from .io import IO import tools import tools.utils as utils import matplotlib.pyplot as plt import subprocess from tools.utils.file_util import verify_director...
37.666667
146
0.628917
#!/usr/bin/env python import os import argparse import json import shutil import numpy as np import torch import skvideo.io import pandas as pd import time from .io import IO import tools import tools.utils as utils import matplotlib.pyplot as plt import subprocess from tools.utils.file_util import verify_director...
7,656
0
57
c83bd1cfa2401f2f6cef311e351e668b97e7ea07
3,042
py
Python
tests/test_blooms.py
AIGeneratedUsername/cashews
c4af2807053956f75662966a23e0af024c1a64a9
[ "MIT" ]
null
null
null
tests/test_blooms.py
AIGeneratedUsername/cashews
c4af2807053956f75662966a23e0af024c1a64a9
[ "MIT" ]
null
null
null
tests/test_blooms.py
AIGeneratedUsername/cashews
c4af2807053956f75662966a23e0af024c1a64a9
[ "MIT" ]
null
null
null
from unittest.mock import Mock import pytest from cashews.backends.memory import Memory from cashews.decorators.bloom import _counting_bloom as counting_bloom from cashews.decorators.bloom import bloom, dual_bloom pytestmark = pytest.mark.asyncio @pytest.fixture( name="backend", params=[ "memory", ...
23.221374
86
0.628863
from unittest.mock import Mock import pytest from cashews.backends.memory import Memory from cashews.decorators.bloom import _counting_bloom as counting_bloom from cashews.decorators.bloom import bloom, dual_bloom pytestmark = pytest.mark.asyncio @pytest.fixture( name="backend", params=[ "memory", ...
2,475
0
114
7bec6e5cfb643401bdd13431f7b9f8e3242f900e
1,420
py
Python
cpro/migrations/0003_auto_20160918_0506.py
FlockyChou/CinderellaProducers
fdfa25a20ed21712caf6294fe3ada3cfdcd5832a
[ "Apache-2.0" ]
null
null
null
cpro/migrations/0003_auto_20160918_0506.py
FlockyChou/CinderellaProducers
fdfa25a20ed21712caf6294fe3ada3cfdcd5832a
[ "Apache-2.0" ]
null
null
null
cpro/migrations/0003_auto_20160918_0506.py
FlockyChou/CinderellaProducers
fdfa25a20ed21712caf6294fe3ada3cfdcd5832a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import cpro.models
30.869565
146
0.580986
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import cpro.models class Migration(migrations.Migration): dependencies = [ ('cpro', '0002_auto_20160916_2110'), ] operations = [ migrations.AddField( model_name='card', ...
0
1,271
23
f856687d34a8bf822cc6303cebec55837d1cb34d
2,018
py
Python
othello/gis/util.py
ulaval-rs/othello
d62c55986a778443f43a639a980a3be36767f661
[ "BSD-3-Clause" ]
null
null
null
othello/gis/util.py
ulaval-rs/othello
d62c55986a778443f43a639a980a3be36767f661
[ "BSD-3-Clause" ]
8
2021-07-07T14:06:40.000Z
2021-07-27T00:03:23.000Z
othello/gis/util.py
ulaval-rs/othello
d62c55986a778443f43a639a980a3be36767f661
[ "BSD-3-Clause" ]
null
null
null
import copy import functools from typing import Dict, List import pandas from geopandas import GeoDataFrame from othello.gis import io def add_weighted_columns_to_dataframe(df: GeoDataFrame, criteria_information: List[Dict], join_on: str) -> GeoDataFrame: """Add the weighted criteria to the 'df' dataframe by ...
34.20339
125
0.705154
import copy import functools from typing import Dict, List import pandas from geopandas import GeoDataFrame from othello.gis import io def find_common_columns(dfs: List[GeoDataFrame]) -> List[str]: common_columns = functools.reduce(lambda c1, c2: set(c1).intersection(set(c2)), dfs) return common_columns ...
305
0
46
6f766d1e47a144705d787da7c645764eadc2434c
2,531
py
Python
pywick/datasets/TensorDataset.py
achaiah/pywick
9d663faf0c1660a9b8359a6472c164f658dfc8cb
[ "MIT" ]
408
2019-05-16T16:12:41.000Z
2022-03-26T17:27:12.000Z
pywick/datasets/TensorDataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
13
2019-05-17T05:47:06.000Z
2021-06-21T19:02:30.000Z
pywick/datasets/TensorDataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
42
2019-05-16T19:57:12.000Z
2022-03-06T15:23:18.000Z
from .BaseDataset import BaseDataset from .data_utils import _process_array_argument, _return_first_element_of_list, _process_transform_argument, _process_co_transform_argument, _pass_through class TensorDataset(BaseDataset): """ Dataset class for loading in-memory data. :param inputs: (numpy array) ...
42.183333
154
0.688266
from .BaseDataset import BaseDataset from .data_utils import _process_array_argument, _return_first_element_of_list, _process_transform_argument, _process_co_transform_argument, _pass_through class TensorDataset(BaseDataset): """ Dataset class for loading in-memory data. :param inputs: (numpy array) ...
1,127
0
26
d35b808e48812ed2e6f7a33e751faa29bc10a8a4
3,839
py
Python
uncertify/utils/xiaoran/batches.py
matthaeusheer/uncertify
dfc2df16fb07ee8d7d17906827e0f0c8b2747532
[ "MIT" ]
1
2021-07-09T00:06:55.000Z
2021-07-09T00:06:55.000Z
uncertify/utils/xiaoran/batches.py
matthaeusheer/uncertify
dfc2df16fb07ee8d7d17906827e0f0c8b2747532
[ "MIT" ]
1
2021-04-29T21:55:32.000Z
2021-04-29T21:55:32.000Z
uncertify/utils/xiaoran/batches.py
matthaeusheer/uncertify
dfc2df16fb07ee8d7d17906827e0f0c8b2747532
[ "MIT" ]
null
null
null
import PIL.Image from multiprocessing.pool import ThreadPool from uncertify.utils.xiaoran.IndexFlow_camcan import * import numpy as np import pickle import os import cv2 import math import matplotlib.pyplot as plt n_boxes = 8 class BufferedWrapper(object): """Fetch next batch asynchronuously to avoid bottleneck ...
27.818841
122
0.586872
import PIL.Image from multiprocessing.pool import ThreadPool from uncertify.utils.xiaoran.IndexFlow_camcan import * import numpy as np import pickle import os import cv2 import math import matplotlib.pyplot as plt n_boxes = 8 class BufferedWrapper(object): """Fetch next batch asynchronuously to avoid bottleneck ...
258
0
81
0d7f690f62c8ec341a9c9ef7fa6b692d9f199005
2,223
py
Python
ECE351_Lab7.py
carlkid1499/ECE351
1afb3cb8ac4697361c539f0ba17f62eab1ee489d
[ "MIT" ]
null
null
null
ECE351_Lab7.py
carlkid1499/ECE351
1afb3cb8ac4697361c539f0ba17f62eab1ee489d
[ "MIT" ]
null
null
null
ECE351_Lab7.py
carlkid1499/ECE351
1afb3cb8ac4697361c539f0ba17f62eab1ee489d
[ "MIT" ]
1
2022-03-30T03:53:51.000Z
2022-03-30T03:53:51.000Z
############################################# # # # Carlos Santos # # ECE 351-51 # # Lab 7 # # 03/10/2020 # # ...
20.583333
62
0.51507
############################################# # # # Carlos Santos # # ECE 351-51 # # Lab 7 # # 03/10/2020 # # ...
0
0
0
fa307ae5dca9c820635f65fb78c725eacb2eff35
638
py
Python
Section 3 - Strings/Str Ops - slicing.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
10
2020-02-14T14:28:15.000Z
2022-02-02T18:44:11.000Z
Section 3 - Strings/Str Ops - slicing.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
null
null
null
Section 3 - Strings/Str Ops - slicing.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
8
2020-03-25T09:27:42.000Z
2021-11-03T15:24:38.000Z
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: A program to demonstrate basic string slicing # Initialise the string pangram = "The quick brown fox jumps over the lazy dog!" # 0123456789012345678901234567890123...
31.9
58
0.702194
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: A program to demonstrate basic string slicing # Initialise the string pangram = "The quick brown fox jumps over the lazy dog!" # 0123456789012345678901234567890123...
0
0
0
f46e4e709f9e483fa711c834de710f3fc87aecb8
400
py
Python
coding/web/migrations/0004_auto_20210105_2344.py
Ankan-nath/Coderz-Ensemble
d36e8c1b5f2db0c3844f120cedcc9db5865d1943
[ "Apache-2.0" ]
null
null
null
coding/web/migrations/0004_auto_20210105_2344.py
Ankan-nath/Coderz-Ensemble
d36e8c1b5f2db0c3844f120cedcc9db5865d1943
[ "Apache-2.0" ]
null
null
null
coding/web/migrations/0004_auto_20210105_2344.py
Ankan-nath/Coderz-Ensemble
d36e8c1b5f2db0c3844f120cedcc9db5865d1943
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-05 18:14 from django.db import migrations, models
21.052632
52
0.5675
# Generated by Django 3.1.4 on 2021-01-05 18:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0003_auto_20210105_2325'), ] operations = [ migrations.AlterField( model_name='signup', name='e...
0
280
25
fb7f95cbe0807f586bd0a264104255715983d365
3,045
py
Python
internal_process.py
Antonoir1/Quantification_of_cell_proliferation
a2ec2b950f01dca66a49e3dc1b07eda596f4eb28
[ "MIT" ]
null
null
null
internal_process.py
Antonoir1/Quantification_of_cell_proliferation
a2ec2b950f01dca66a49e3dc1b07eda596f4eb28
[ "MIT" ]
8
2020-09-25T21:06:38.000Z
2022-02-10T01:22:38.000Z
internal_process.py
Antonoir1/Quantification_of_cell_proliferation
a2ec2b950f01dca66a49e3dc1b07eda596f4eb28
[ "MIT" ]
null
null
null
import os import numpy as np from tensorflow import keras from PIL import Image try: M=keras.models.load_model("./models/Unet_1_16.h5") C=keras.models.load_model("./models/compteur2.h5") except: pass #input: a picture #return a list of 512*512*1 array croped from the picture X and Y #input: a ar...
23.423077
74
0.629228
import os import numpy as np from tensorflow import keras from PIL import Image try: M=keras.models.load_model("./models/Unet_1_16.h5") C=keras.models.load_model("./models/compteur2.h5") except: pass #input: a picture #return a list of 512*512*1 array croped from the picture X and Y def cutter(img): ...
2,186
0
139
382f306e0b7c25b29d19a1bd1a124f6a13b0282e
108
py
Python
templog.py
hakbo/cellar_ventilation
ccda078982142610bff383014f8fe121a69deabd
[ "Unlicense" ]
1
2018-03-31T15:26:06.000Z
2018-03-31T15:26:06.000Z
templog.py
hakbo/cellar_ventilation
ccda078982142610bff383014f8fe121a69deabd
[ "Unlicense" ]
null
null
null
templog.py
hakbo/cellar_ventilation
ccda078982142610bff383014f8fe121a69deabd
[ "Unlicense" ]
null
null
null
import mail import plotten plotten.temp() files=['templog.txt', 'templog.png'] mail.send_attachment(files)
15.428571
36
0.768519
import mail import plotten plotten.temp() files=['templog.txt', 'templog.png'] mail.send_attachment(files)
0
0
0
d4fba619b6c9528838f391a83c80b5d7d71abd87
2,907
py
Python
preprocess/preprocess.py
bokutotu/yolov1
4686c37543c0eb74831a19e8f51196ba36a5b38f
[ "MIT" ]
null
null
null
preprocess/preprocess.py
bokutotu/yolov1
4686c37543c0eb74831a19e8f51196ba36a5b38f
[ "MIT" ]
null
null
null
preprocess/preprocess.py
bokutotu/yolov1
4686c37543c0eb74831a19e8f51196ba36a5b38f
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image import pandas as pd import argparse from pathlib import Path if __name__ == "__main__": parser = argparse.ArgumentParser(description="preprocess") parser.add_argument("--image_source", type=str, help="画像ファイルのディレクトリ") parser.add_argument("--scale", type=int, help...
35.024096
103
0.610251
import numpy as np from PIL import Image import pandas as pd import argparse from pathlib import Path def remove_JA(inp): return inp.replace("下2000um", "").replace("丁E000um", "").replace("改③", "").replace("丁", "") def main(args): # 出力ディレクトリを作る Path(args.output).mkdir(parents=True, exist_ok=True) ou...
2,300
0
46
0a95b751b69658a19906647185031b72c0a7a88d
9,869
py
Python
third-party/llvm/llvm-src/utils/gdb-scripts/prettyprinters.py
CaptainSharf/chapel
0659db4128ee8e324f2a987d4f48666961db513b
[ "ECL-2.0", "Apache-2.0" ]
158
2016-07-21T10:45:05.000Z
2022-03-25T00:56:20.000Z
third-party/llvm/llvm-src/utils/gdb-scripts/prettyprinters.py
CaptainSharf/chapel
0659db4128ee8e324f2a987d4f48666961db513b
[ "ECL-2.0", "Apache-2.0" ]
59
2019-02-26T18:57:27.000Z
2020-08-04T20:49:55.000Z
third-party/llvm/llvm-src/utils/gdb-scripts/prettyprinters.py
CaptainSharf/chapel
0659db4128ee8e324f2a987d4f48666961db513b
[ "ECL-2.0", "Apache-2.0" ]
62
2016-08-29T17:28:11.000Z
2021-12-29T17:55:58.000Z
from __future__ import print_function import sys import gdb.printing class SmallStringPrinter: """Print an llvm::SmallString object.""" class StringRefPrinter: """Print an llvm::StringRef object.""" class SmallVectorPrinter(Iterator): """Print an llvm::SmallVector object.""" class ArrayRefPrinter: """Print...
30.088415
144
0.652852
from __future__ import print_function import sys import gdb.printing class Iterator: def __iter__(self): return self if sys.version_info.major == 2: def next(self): return self.__next__() def children(self): return self def escape_bytes(val, l): return '"' + val.string(encoding='Latin...
4,342
405
746
aaf46ad305f0e74c44698dfa137d8e28fb3c455a
17,946
py
Python
deepvariant/allele_frequency_test.py
serge2016/deepvariant
07dc4bedd0d124fff6386dcfa5fd88c6b200362c
[ "BSD-3-Clause" ]
2,553
2017-12-04T15:10:17.000Z
2022-03-24T09:05:14.000Z
deepvariant/allele_frequency_test.py
serge2016/deepvariant
07dc4bedd0d124fff6386dcfa5fd88c6b200362c
[ "BSD-3-Clause" ]
501
2017-12-04T18:34:33.000Z
2022-03-31T13:30:50.000Z
deepvariant/allele_frequency_test.py
serge2016/deepvariant
07dc4bedd0d124fff6386dcfa5fd88c6b200362c
[ "BSD-3-Clause" ]
730
2017-12-04T18:53:46.000Z
2022-03-29T03:33:11.000Z
# Copyright 2020 Google LLC. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
37.940803
80
0.574
# Copyright 2020 Google LLC. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
3,986
11,969
46
8e1bb337049b78705e9ce5b7e957b0572b1ef6c7
9,297
py
Python
mri_works/NodeEditor/python/addOptions.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
2
2020-08-20T21:00:53.000Z
2021-08-16T15:28:51.000Z
mri_works/NodeEditor/python/addOptions.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
3
2020-09-24T06:50:43.000Z
2020-12-15T11:02:04.000Z
mri_works/NodeEditor/python/addOptions.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
1
2020-08-20T21:00:59.000Z
2020-08-20T21:00:59.000Z
########################################################################## # mriWorks - Copyright (C) IRMAGE/INSERM, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # https://cecill.info/licences/Licence_CeCILL_V2-en.html # for detai...
35.215909
130
0.464128
########################################################################## # mriWorks - Copyright (C) IRMAGE/INSERM, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # https://cecill.info/licences/Licence_CeCILL_V2-en.html # for detai...
8,375
4
257
9aecd89d20db4b8b35f34794e5a024f0611e77f8
873
py
Python
u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/paired_conv_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/paired_conv_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/paired_conv_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import nose.tools as nt import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn from treeano.sandbox.nodes import paired_conv fX = theano.config.floatX
27.28125
63
0.62543
import nose.tools as nt import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn from treeano.sandbox.nodes import paired_conv fX = theano.config.floatX def test_paired_conv_2d_with_bias_node_serialization(): tn.check_serialization(paired_conv.PairedConvNode("a", {}))...
626
0
46
9ac220505a028cddec3c8410e9c8097c9df3e5aa
913
py
Python
avatar_decorator_bot/config.py
al42and/avatar-decorator-bot
4248622f9dacf04bfa318983b5ac4d24dd463915
[ "Unlicense" ]
3
2017-09-29T15:11:47.000Z
2020-02-15T16:15:45.000Z
avatar_decorator_bot/config.py
al42and/avatar-decorator-bot
4248622f9dacf04bfa318983b5ac4d24dd463915
[ "Unlicense" ]
12
2019-11-23T05:06:37.000Z
2021-09-08T07:17:42.000Z
avatar_decorator_bot/config.py
al42and/avatar-decorator-bot
4248622f9dacf04bfa318983b5ac4d24dd463915
[ "Unlicense" ]
null
null
null
import configparser import os try: config = configparser.ConfigParser() config.read('bot.ini') common = config['Common'] except (IOError, KeyError): common = {} TOKEN = _get('TOKEN', common) DATABASE_URL = _get('DATABASE_URL', common) USE_WEBHOOK = _get('USE_WEBHOOK', common, True) if USE_WEBHOOK: ...
29.451613
85
0.629792
import configparser import os def _get(name, config_file_data, default=None): val = os.environ.get(name, config_file_data.get(name, default)) if isinstance(default, bool) and not isinstance(val, bool): val = val.lower() in ("yes", ...
425
0
23
ead6ad5f6102e67596ea926559393655a06e6dab
4,999
py
Python
tests/test_records.py
Nardberjean/fcgiproto
6dd4cc23661d84a4aaf9aa208202a44710ff60a5
[ "MIT" ]
13
2016-10-25T18:03:45.000Z
2022-03-22T01:21:40.000Z
tests/test_records.py
Nardberjean/fcgiproto
6dd4cc23661d84a4aaf9aa208202a44710ff60a5
[ "MIT" ]
2
2020-03-24T21:02:36.000Z
2020-03-25T11:18:50.000Z
tests/test_records.py
Nardberjean/fcgiproto
6dd4cc23661d84a4aaf9aa208202a44710ff60a5
[ "MIT" ]
3
2018-01-14T05:57:51.000Z
2020-03-24T20:57:52.000Z
import pytest from fcgiproto.records import ( encode_name_value_pairs, decode_name_value_pairs, decode_record, FCGIStdin, FCGIBeginRequest, FCGIEndRequest, FCGIUnknownType, FCGIStdout, FCGIGetValues, FCGIGetValuesResult, FCGIAbortRequest) from fcgiproto.exceptions import ProtocolError @pytest...
36.224638
97
0.686137
import pytest from fcgiproto.records import ( encode_name_value_pairs, decode_name_value_pairs, decode_record, FCGIStdin, FCGIBeginRequest, FCGIEndRequest, FCGIUnknownType, FCGIStdout, FCGIGetValues, FCGIGetValuesResult, FCGIAbortRequest) from fcgiproto.exceptions import ProtocolError def test_encode_sim...
3,020
0
434
4c416dc3417c99bb355811285d02e4f525bba97d
713
py
Python
gphotos/Settings.py
pheel/gphotos-sync
f982837c6a8dff8bece8e5f80c2386077459e6dc
[ "MIT" ]
1,390
2017-09-02T07:38:47.000Z
2022-03-31T13:09:23.000Z
gphotos/Settings.py
pheel/gphotos-sync
f982837c6a8dff8bece8e5f80c2386077459e6dc
[ "MIT" ]
322
2017-08-04T22:18:12.000Z
2022-03-13T14:45:02.000Z
gphotos/Settings.py
pheel/gphotos-sync
f982837c6a8dff8bece8e5f80c2386077459e6dc
[ "MIT" ]
130
2017-12-27T22:56:02.000Z
2022-03-27T07:15:13.000Z
from datetime import datetime from pathlib import Path from attr import dataclass """ Defines a dataclass for passing all configuration information between the worker classes """ @dataclass
17.825
69
0.720898
from datetime import datetime from pathlib import Path from attr import dataclass """ Defines a dataclass for passing all configuration information between the worker classes """ @dataclass class Settings: start_date: datetime end_date: datetime use_start_date: bool photos_path: Path use_flat_pa...
0
498
22
92ebf5220ce604e38791c6ae92c75e406db7cbd0
29,305
py
Python
sandbox/grist/test_display_cols.py
nataliemisasi/grist-core
52d3f6320339b23ed0155009f45ff7121d90e3b8
[ "Apache-2.0" ]
2,667
2020-10-30T16:25:06.000Z
2022-03-31T15:27:37.000Z
sandbox/grist/test_display_cols.py
AizatHawari/grist-core
0482c8377125e0a2afaf32e51b1c75fb64265760
[ "Apache-2.0" ]
137
2020-12-04T08:14:09.000Z
2022-03-31T22:36:13.000Z
sandbox/grist/test_display_cols.py
AizatHawari/grist-core
0482c8377125e0a2afaf32e51b1c75fb64265760
[ "Apache-2.0" ]
103
2020-10-30T15:17:51.000Z
2022-03-28T17:02:04.000Z
import logger import testutil import test_engine from test_engine import Table, Column log = logger.Logger(__name__, logger.INFO)
48.679402
401
0.556356
import logger import testutil import test_engine from test_engine import Table, Column log = logger.Logger(__name__, logger.INFO) class TestUserActions(test_engine.EngineTestCase): ref_sample = testutil.parse_test_sample({ # pylint: disable=line-too-long "SCHEMA": [ [1, "Television", [ [21, "...
28,388
762
23
c8b1765600a3b7d9caff69d029f7cd3d9d867e40
418
py
Python
tukey/content/models.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
tukey/content/models.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
tukey/content/models.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
from django.db import models
41.8
60
0.744019
from django.db import models class Page(models.Model): slug = models.CharField(max_length=500,primary_key=True) title = models.CharField(max_length=500, blank=True) nav_name = models.CharField(max_length=500, blank=True) nav_order = models.IntegerField() img = models.CharField(max_length=500, blank...
0
367
23
1c12316fb2aa32e7222037342c9b1c1666d9ac15
5,975
py
Python
CD/cd2021-guiao-3-98597_97484/src/middleware.py
pedromonteiro01/2semestre
25db062a2a1214c7b905d4e11ea7f5f74cd8f826
[ "MIT" ]
null
null
null
CD/cd2021-guiao-3-98597_97484/src/middleware.py
pedromonteiro01/2semestre
25db062a2a1214c7b905d4e11ea7f5f74cd8f826
[ "MIT" ]
null
null
null
CD/cd2021-guiao-3-98597_97484/src/middleware.py
pedromonteiro01/2semestre
25db062a2a1214c7b905d4e11ea7f5f74cd8f826
[ "MIT" ]
null
null
null
"""Middleware to communicate with PubSub Message Broker.""" from collections.abc import Callable from enum import Enum from queue import LifoQueue, Empty from typing import Any import socket, json, pickle import xml.etree.ElementTree as ET class MiddlewareType(Enum): """Middleware Type.""" CONSUMER = 1 P...
37.816456
128
0.603849
"""Middleware to communicate with PubSub Message Broker.""" from collections.abc import Callable from enum import Enum from queue import LifoQueue, Empty from typing import Any import socket, json, pickle import xml.etree.ElementTree as ET class MiddlewareType(Enum): """Middleware Type.""" CONSUMER = 1 P...
3,213
0
414
b1ca43b9911c2256b0f197a6d77aee5fee76dea5
417
py
Python
delete_articles.py
chucknado/ZMT
d701c54e58c188db4bf4650d52aecae1106fed01
[ "MIT" ]
1
2020-01-25T16:12:14.000Z
2020-01-25T16:12:14.000Z
delete_articles.py
chucknado/ZMT
d701c54e58c188db4bf4650d52aecae1106fed01
[ "MIT" ]
null
null
null
delete_articles.py
chucknado/ZMT
d701c54e58c188db4bf4650d52aecae1106fed01
[ "MIT" ]
1
2020-07-19T02:13:01.000Z
2020-07-19T02:13:01.000Z
from helpers import read_data, get_settings import api settings = get_settings() src_root = settings['src_root'] locale = settings['locale'] article_map = read_data('article_map') for src_article in article_map: print('Archiving {}...'.format(src_article)) # DELETE / api / v2 / help_center / articles / {id}...
26.0625
61
0.71223
from helpers import read_data, get_settings import api settings = get_settings() src_root = settings['src_root'] locale = settings['locale'] article_map = read_data('article_map') for src_article in article_map: print('Archiving {}...'.format(src_article)) # DELETE / api / v2 / help_center / articles / {id}...
0
0
0
48280604391718f76eb3204a7c91fd63c9e6a1ff
504
py
Python
main.py
CHKZL/DD_KaoRou
e721c1c1b7e302caf5ada09bc8c1d83cac865943
[ "MIT" ]
1
2020-04-30T11:08:55.000Z
2020-04-30T11:08:55.000Z
main.py
CHKZL/DD_KaoRou
e721c1c1b7e302caf5ada09bc8c1d83cac865943
[ "MIT" ]
null
null
null
main.py
CHKZL/DD_KaoRou
e721c1c1b7e302caf5ada09bc8c1d83cac865943
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from PySide2.QtWidgets import QApplication from PySide2.QtGui import QFont from utils.main_ui import MainWindow if __name__ == '__main__': qss = '' try: with open('utils/qdark.qss', 'r') as f: qss = f.read() except: print('...
22.909091
48
0.636905
#!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from PySide2.QtWidgets import QApplication from PySide2.QtGui import QFont from utils.main_ui import MainWindow if __name__ == '__main__': qss = '' try: with open('utils/qdark.qss', 'r') as f: qss = f.read() except: print('...
0
0
0
dfc18fc2efb2de770eff185c6b648b10c011e1f6
17,890
py
Python
sipify.py
lamondlab/sipify
0e2f345ddc9514666d067fc32851882ffb22944a
[ "Apache-2.0" ]
4
2018-03-02T10:53:04.000Z
2019-01-25T07:56:13.000Z
sipify.py
lamondlab/sipify
0e2f345ddc9514666d067fc32851882ffb22944a
[ "Apache-2.0" ]
1
2018-05-08T11:12:14.000Z
2021-07-13T09:29:12.000Z
sipify.py
lamondlab/sipify
0e2f345ddc9514666d067fc32851882ffb22944a
[ "Apache-2.0" ]
1
2018-05-11T05:14:00.000Z
2018-05-11T05:14:00.000Z
# =========================================================================== # # Filename: sipify.py # # Copyright (c) 2015 Lamond Lab # # 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 ...
36.435845
125
0.571828
# =========================================================================== # # Filename: sipify.py # # Copyright (c) 2015 Lamond Lab # # 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 ...
14,489
0
23
965818b57c52e58896832e266a19f8e8524120f8
1,891
py
Python
tasks.py
Qi-max/automatminer
a366709798c5886350f5b71cc7d06f474122c2f3
[ "BSD-3-Clause-LBNL" ]
1
2020-11-07T06:20:21.000Z
2020-11-07T06:20:21.000Z
tasks.py
Qi-max/automatminer
a366709798c5886350f5b71cc7d06f474122c2f3
[ "BSD-3-Clause-LBNL" ]
null
null
null
tasks.py
Qi-max/automatminer
a366709798c5886350f5b71cc7d06f474122c2f3
[ "BSD-3-Clause-LBNL" ]
null
null
null
"""Deployment file to facilitate releases. """ import os import json import webbrowser import requests from invoke import task from automatminer import __version__ from monty.os import cd __author__ = ["Alex Dunn", "Shyue Ping Ong", "Anubhav Jain"] # Making and updatig documentation @task @task # Consistuent tas...
23.345679
82
0.639344
"""Deployment file to facilitate releases. """ import os import json import webbrowser import requests from invoke import task from automatminer import __version__ from monty.os import cd __author__ = ["Alex Dunn", "Shyue Ping Ong", "Anubhav Jain"] # Making and updatig documentation @task def make_doc(ctx): wi...
1,218
0
132
9a7698fd724a875edd0d34229f9ace992278f639
2,686
py
Python
rdr_service/services/hpro_consent.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/services/hpro_consent.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/services/hpro_consent.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
import logging from datetime import datetime from rdr_service import config from rdr_service.dao.hpro_consent_dao import HealthProConsentDao from rdr_service.storage import GoogleCloudStorageProvider class HealthProConsentFile: """ Service used for transferring Consent records from RDR to HealthPro cons...
32.361446
120
0.639241
import logging from datetime import datetime from rdr_service import config from rdr_service.dao.hpro_consent_dao import HealthProConsentDao from rdr_service.storage import GoogleCloudStorageProvider class HealthProConsentFile: """ Service used for transferring Consent records from RDR to HealthPro cons...
2,182
0
161
d75e5707d83437a26536e877e0136723f456b01e
728
py
Python
pypy/module/cpyext/test/test_pystrhex.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/module/cpyext/test/test_pystrhex.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/module/cpyext/test/test_pystrhex.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
34.666667
75
0.516484
from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase class AppTestPyStrHex(AppTestCpythonExtensionBase): def test_simple(self): module = self.import_extension('strhex', [ ("new", "METH_NOARGS", """ static char a[] = { (char)255, 0, 65 }; ...
573
30
49
2c55b684f0a0e13a34d3fe2cd8ffaab7ef5ba012
872
py
Python
rocinante/middleware.py
fskanokano/Rocinante
5b62a230f760928d07f342b4cb64f0feade1832c
[ "Apache-2.0" ]
7
2021-02-10T10:49:46.000Z
2021-07-27T13:18:43.000Z
rocinante/middleware.py
fskanokano/Rocinante
5b62a230f760928d07f342b4cb64f0feade1832c
[ "Apache-2.0" ]
null
null
null
rocinante/middleware.py
fskanokano/Rocinante
5b62a230f760928d07f342b4cb64f0feade1832c
[ "Apache-2.0" ]
2
2021-02-11T01:45:02.000Z
2021-02-11T01:47:37.000Z
from typing import Optional, Callable from functools import wraps from .request import Request from .response import Response
30.068966
101
0.677752
from typing import Optional, Callable from functools import wraps from .request import Request from .response import Response class Middleware(object): def __call__(self, func: Callable) -> Callable: @wraps(func) def wrapper(endpoint, request: Request, **params) -> Optional[Response]: ...
636
4
104
70642d3b2720bfd7ffd187ecfd43c660e3e85079
756
py
Python
setup.py
pyvec/tikatko
693898de4b22e1caab49be74cd2857cb9f71a3e6
[ "MIT" ]
null
null
null
setup.py
pyvec/tikatko
693898de4b22e1caab49be74cd2857cb9f71a3e6
[ "MIT" ]
1
2017-02-02T18:24:58.000Z
2017-02-02T18:24:58.000Z
setup.py
pyvec/tikatko
693898de4b22e1caab49be74cd2857cb9f71a3e6
[ "MIT" ]
null
null
null
import sys from setuptools import setup setup_args = dict( name='tikatko', version='0.1', py_modules=['tikatko'], description="""A lightning talk timer""", author='Petr Viktorin', author_email='encukou@gmail.com', install_requires=['gillcup_graphics==0.2.0-alpha.1'], classifiers=[ ...
26.068966
68
0.615079
import sys from setuptools import setup setup_args = dict( name='tikatko', version='0.1', py_modules=['tikatko'], description="""A lightning talk timer""", author='Petr Viktorin', author_email='encukou@gmail.com', install_requires=['gillcup_graphics==0.2.0-alpha.1'], classifiers=[ ...
0
0
0
cf73f9a89604536e7086c44599af6e8a932f3996
690
py
Python
wagtailrelevancy/models.py
takeflight/wagtail-relevancy
3f4a9a57ccc19a8c829d67ee0088066b6c8bfc99
[ "BSD-3-Clause" ]
6
2016-01-11T03:34:51.000Z
2016-08-09T12:01:49.000Z
wagtailrelevancy/models.py
takeflight/wagtail-relevancy
3f4a9a57ccc19a8c829d67ee0088066b6c8bfc99
[ "BSD-3-Clause" ]
null
null
null
wagtailrelevancy/models.py
takeflight/wagtail-relevancy
3f4a9a57ccc19a8c829d67ee0088066b6c8bfc99
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.db import models from django.utils.translation import ugettext as _ from wagtail.wagtailcore.models import Page as WagtailPage
34.5
80
0.74058
from django.conf import settings from django.db import models from django.utils.translation import ugettext as _ from wagtail.wagtailcore.models import Page as WagtailPage class Reminder(models.Model): due_to_be_sent_at = models.DateTimeField(blank=True, null=True) reminder_interval = models.PositiveIntegerFi...
78
416
23
02775b7fe834016794ec3f24ae3bdb016fa9db8e
20,768
py
Python
src/conductor/client/http/models/task_def.py
conductor-sdk/conductor-python
b3e4e0ae196f9963316a829fe42d9e7e01a390e2
[ "Apache-2.0" ]
3
2022-03-10T18:24:46.000Z
2022-03-22T20:49:30.000Z
src/conductor/client/http/models/task_def.py
conductor-sdk/conductor-python
b3e4e0ae196f9963316a829fe42d9e7e01a390e2
[ "Apache-2.0" ]
6
2022-03-08T17:48:28.000Z
2022-03-30T00:39:22.000Z
src/conductor/client/http/models/task_def.py
conductor-sdk/conductor-python
b3e4e0ae196f9963316a829fe42d9e7e01a390e2
[ "Apache-2.0" ]
null
null
null
import pprint import re # noqa: F401 import six class TaskDef(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value ...
30.318248
538
0.624278
import pprint import re # noqa: F401 import six class TaskDef(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value ...
0
0
0
1ededdbb4232b58a81762f4b7481fee80a241184
4,295
py
Python
setup.py
nibau/zkay
da04760088767e05214aac2d2beee4cbf8ed77f6
[ "MIT" ]
null
null
null
setup.py
nibau/zkay
da04760088767e05214aac2d2beee4cbf8ed77f6
[ "MIT" ]
null
null
null
setup.py
nibau/zkay
da04760088767e05214aac2d2beee4cbf8ed77f6
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages from setuptools.command.sdist import sdist from setuptools.command.install import install from setuptools.command.develop import develop # Versions antlr_version = '4.8' file_dir = os.path.dirname(os.path.realpath(__file__)) zkay_version = _read_file(os.path.joi...
35.791667
315
0.685215
import os from setuptools import setup, find_packages from setuptools.command.sdist import sdist from setuptools.command.install import install from setuptools.command.develop import develop def _read_file(path: str) -> str: with open(path) as f: return f.read().strip() # Versions antlr_version = '4.8'...
2,269
20
239
c5b5933f20417b873032fb5c6784c603f9cdf72d
3,923
py
Python
plugins/k8s/resoto_plugin_k8s/__init__.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
126
2022-01-13T18:22:03.000Z
2022-03-31T11:03:14.000Z
plugins/k8s/resoto_plugin_k8s/__init__.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
110
2022-01-13T22:27:55.000Z
2022-03-30T22:26:50.000Z
plugins/k8s/resoto_plugin_k8s/__init__.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
8
2022-01-15T10:28:16.000Z
2022-03-30T16:38:21.000Z
import resotolib.logger import multiprocessing import resotolib.proc from concurrent import futures from typing import Optional, Dict from resotolib.baseplugin import BaseCollectorPlugin from resotolib.args import ArgumentParser from argparse import Namespace from resotolib.config import Config, RunningConfig from reso...
34.716814
86
0.621208
import resotolib.logger import multiprocessing import resotolib.proc from concurrent import futures from typing import Optional, Dict from resotolib.baseplugin import BaseCollectorPlugin from resotolib.args import ArgumentParser from argparse import Namespace from resotolib.config import Config, RunningConfig from reso...
1,565
1,750
23
803e8f4b59a5f615a3a7860eefff88bdaf73c3b8
818
py
Python
pascal_token_builders.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
pascal_token_builders.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
pascal_token_builders.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
from codestat_token import Token from token_builders import TokenBuilder # token reader for brace comment
18.177778
47
0.618582
from codestat_token import Token from token_builders import TokenBuilder # token reader for brace comment class BraceCommentTokenBuilder(TokenBuilder): @staticmethod def __escape_z__(): Token.__escape_z__() return 'Escape ?Z' def __init__(self): self.text = '' def get_tokens(self): if self.t...
523
166
22
dc56cc7559fe20b46dbca171076b36a3d5279bdb
436
py
Python
testing/ouia/test_card_ouia.py
Mishrasubha/widgetastic.patternfly4
78da52759b1b17b4884391dcb8bd865af663722e
[ "Apache-2.0" ]
3
2019-11-16T05:20:54.000Z
2022-02-22T22:10:35.000Z
testing/ouia/test_card_ouia.py
Mishrasubha/widgetastic.patternfly4
78da52759b1b17b4884391dcb8bd865af663722e
[ "Apache-2.0" ]
66
2019-07-09T06:43:00.000Z
2022-03-29T08:52:57.000Z
testing/ouia/test_card_ouia.py
Mishrasubha/widgetastic.patternfly4
78da52759b1b17b4884391dcb8bd865af663722e
[ "Apache-2.0" ]
24
2019-06-24T08:21:46.000Z
2022-02-23T02:57:01.000Z
import pytest from widgetastic.widget import View from widgetastic_patternfly4.ouia import Card TESTING_PAGE_URL = "https://patternfly-docs-ouia.netlify.app/documentation/react/components/card" @pytest.fixture
21.8
97
0.731651
import pytest from widgetastic.widget import View from widgetastic_patternfly4.ouia import Card TESTING_PAGE_URL = "https://patternfly-docs-ouia.netlify.app/documentation/react/components/card" @pytest.fixture def view(browser): class TestView(View): ROOT = ".//div[@id='ws-react-c-card-basic']" ...
176
0
45
47baefccd0313aa191ccdebd61683aee48b5bcb8
23,204
py
Python
snet_sdk/__init__.py
w1kke/snet-sdk-python
4259c9c6c11a685775812bd66e9c8e1d298f3fd9
[ "MIT" ]
8
2019-02-08T11:05:21.000Z
2019-09-08T23:21:01.000Z
snet_sdk/__init__.py
w1kke/snet-sdk-python
4259c9c6c11a685775812bd66e9c8e1d298f3fd9
[ "MIT" ]
15
2019-02-08T10:42:30.000Z
2019-08-07T23:07:39.000Z
snet_sdk/__init__.py
w1kke/snet-sdk-python
4259c9c6c11a685775812bd66e9c8e1d298f3fd9
[ "MIT" ]
8
2019-02-08T10:49:52.000Z
2021-06-29T08:20:28.000Z
import operator from functools import reduce import sys import os import importlib import json import base64 from pathlib import PurePath, Path from urllib.parse import urljoin import ecdsa import hashlib import grpc import collections import web3 from web3.gas_strategies.rpc import rpc_gas_price_strategy from eth_ac...
48.645702
555
0.681779
import operator from functools import reduce import sys import os import importlib import json import base64 from pathlib import PurePath, Path from urllib.parse import urljoin import ecdsa import hashlib import grpc import collections import web3 from web3.gas_strategies.rpc import rpc_gas_price_strategy from eth_ac...
20,911
197
664
1911b87ba1c46862e2f1c72d0082bcf3c9dc8764
4,378
py
Python
vmanager_apps/VMgr_LatencyMote.py
rgrr/smartmeshsdk
a95f3e4d9e2254d59d326428fef8c77319cd4373
[ "BSD-3-Clause" ]
29
2015-02-17T14:22:14.000Z
2021-02-19T06:01:10.000Z
vmanager_apps/VMgr_LatencyMote.py
rgrr/smartmeshsdk
a95f3e4d9e2254d59d326428fef8c77319cd4373
[ "BSD-3-Clause" ]
17
2017-02-10T09:43:13.000Z
2017-09-09T05:46:49.000Z
vmanager_apps/VMgr_LatencyMote.py
rgrr/smartmeshsdk
a95f3e4d9e2254d59d326428fef8c77319cd4373
[ "BSD-3-Clause" ]
35
2015-07-10T18:58:15.000Z
2022-03-20T08:56:25.000Z
#!/usr/bin/env python ''' This script subscribes to data notifications from a desired mote and reports the latency statistics. ''' #============================ adjust path ===================================== import sys import os if __name__ == "__main__": here = sys.path[0] sys.path.insert(0, o...
31.956204
131
0.563728
#!/usr/bin/env python ''' This script subscribes to data notifications from a desired mote and reports the latency statistics. ''' #============================ adjust path ===================================== import sys import os if __name__ == "__main__": here = sys.path[0] sys.path.insert(0, o...
0
0
0
fc73aa46205184742557ace33f3d677140e75d26
6,625
py
Python
piemmer/test/test_viewer.py
HWChang/emmer
9d1ca071bd9f8d0e1ed49910de33a865d82df4c2
[ "BSD-3-Clause" ]
2
2021-06-11T09:51:39.000Z
2021-06-13T16:32:55.000Z
piemmer/test/test_viewer.py
HWChang/emmer
9d1ca071bd9f8d0e1ed49910de33a865d82df4c2
[ "BSD-3-Clause" ]
null
null
null
piemmer/test/test_viewer.py
HWChang/emmer
9d1ca071bd9f8d0e1ed49910de33a865d82df4c2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Usage: # go one level above emmer/ # python3 -m emmer.test.test_viewer from ..main.basic.math import NonDesityMatrix from ..posthoc.visual.viewer import Projection from pandas.util.testing import assert_frame_equal import numpy.testing import unittest import pandas import numpy if __name_...
48.713235
152
0.552755
#!/usr/bin/env python3 # Usage: # go one level above emmer/ # python3 -m emmer.test.test_viewer from ..main.basic.math import NonDesityMatrix from ..posthoc.visual.viewer import Projection from pandas.util.testing import assert_frame_equal import numpy.testing import unittest import pandas import numpy class TestP...
6,199
19
50
fd0645bea75b98ec90049b8de5477980b8e14b41
2,077
py
Python
aggregate_github_issues.py
instant-issues/action
44397ab4efa5c4b0c200e4e3d9928762a6a27de7
[ "MIT" ]
null
null
null
aggregate_github_issues.py
instant-issues/action
44397ab4efa5c4b0c200e4e3d9928762a6a27de7
[ "MIT" ]
2
2020-07-16T16:36:09.000Z
2020-07-17T13:43:39.000Z
aggregate_github_issues.py
instant-issues/action
44397ab4efa5c4b0c200e4e3d9928762a6a27de7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import json import os import sys from collections import defaultdict import itertools import requests REPOS_API = 'https://api.github.com/repos/' if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('repo', help='e.g. gittenburg/instant-issu...
31.953846
115
0.603274
#!/usr/bin/env python3 import argparse import json import os import sys from collections import defaultdict import itertools import requests REPOS_API = 'https://api.github.com/repos/' def aggregate_issues(repo, token, session): issues = [] pulls = [] page = 1 label_counts = defaultdict(lambda: [0,...
1,605
0
23
918c25d4b43c9c31b2f0fbd0d683cd527710f006
1,528
py
Python
gui/submit/fileinfo/maya2.py
plinecom/JobManager
ce2c85fa740d5dce2d582e694bb3adc9176101d7
[ "MIT" ]
null
null
null
gui/submit/fileinfo/maya2.py
plinecom/JobManager
ce2c85fa740d5dce2d582e694bb3adc9176101d7
[ "MIT" ]
null
null
null
gui/submit/fileinfo/maya2.py
plinecom/JobManager
ce2c85fa740d5dce2d582e694bb3adc9176101d7
[ "MIT" ]
null
null
null
from PyQt4 import QtGui, QtCore
31.183673
106
0.670157
from PyQt4 import QtGui, QtCore class MayaPanel(QtGui.QWidget): def __init__(self, job_list, parent=None): QtGui.QWidget.__init__(self, parent) self._jobList = job_list self.init_ui() def init_ui(self): height = 0 layout = QtGui.QGridLayout() self.jobname_labe...
1,354
10
131
dbc68c91d6b6589265611507bb131bfbfc69e8b3
12,833
py
Python
phonopy/unfolding/core.py
ttadano/phonopy
8c03955b2636b22b86e9324f5afcfa36396fa988
[ "BSD-3-Clause" ]
1
2021-04-16T07:51:16.000Z
2021-04-16T07:51:16.000Z
phonopy/unfolding/core.py
ttadano/phonopy
8c03955b2636b22b86e9324f5afcfa36396fa988
[ "BSD-3-Clause" ]
null
null
null
phonopy/unfolding/core.py
ttadano/phonopy
8c03955b2636b22b86e9324f5afcfa36396fa988
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2015 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notic...
37.197101
87
0.623237
# Copyright (C) 2015 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notic...
1,580
0
348
1a4f46a1ffa38f0d4c6d592b217450f78faa0d79
3,904
py
Python
loginRegister/models.py
SatwikRudra/Caramelit_DJango
b564f285d2ae1e967f08a7aad24b04cb01e33fe4
[ "MIT" ]
1
2021-08-06T08:36:57.000Z
2021-08-06T08:36:57.000Z
loginRegister/models.py
SatwikRudra/Caramelit_DJango
b564f285d2ae1e967f08a7aad24b04cb01e33fe4
[ "MIT" ]
6
2021-03-19T11:29:05.000Z
2022-02-10T12:09:43.000Z
loginRegister/models.py
SatwikRudra/Caramelit_DJango
b564f285d2ae1e967f08a7aad24b04cb01e33fe4
[ "MIT" ]
2
2020-06-08T05:20:14.000Z
2020-07-11T12:13:12.000Z
from django.db import models from django.utils import timezone # Student user
48.197531
72
0.750256
from django.db import models from django.utils import timezone # Student user class studentUser(models.Model): student_id = models.AutoField(primary_key=True) first_name = models.CharField(max_length=100) last_name = models.CharField(max_length=100) email = models.EmailField(max_length=100, unique=True...
0
3,712
114
c4d6f7ecbfc8bb37edc93d815f696b075fdcbe95
878
py
Python
rosalindLibrary/programs/subs.py
aevear/RosalindProject
494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2
[ "MIT" ]
1
2021-01-20T02:00:21.000Z
2021-01-20T02:00:21.000Z
rosalindLibrary/programs/subs.py
aevear/RosalindProject
494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2
[ "MIT" ]
null
null
null
rosalindLibrary/programs/subs.py
aevear/RosalindProject
494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Subs #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Fin #-------------------------------------------------------------...
36.583333
93
0.394077
#------------------------------------------------------------------------------- # Subs #------------------------------------------------------------------------------- def runSubs(inputFile): fi = open(inputFile, 'r') #reads in the file that list the before/after file names sourceString = fi.readline() #reads...
516
0
23
aa24cc2f41d4c3c1971989ef4d9fbbb6a9e1cc83
8,018
py
Python
venv/lib/python3.8/site-packages/azureml/_restclient/models/aks_service_create_request.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/aks_service_create_request.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/aks_service_create_request.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 2.3.3...
57.683453
576
0.700923
# 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 2.3.3...
1,663
0
29
f331c9f780d22d473f3c9b5be162d3cb4fcaf04c
3,430
py
Python
labeler/migrations/0001_initial.py
wt3c/lyra-mprjlabeler
2cdbad6719b0e7e81e6e96dd6bf3063741022224
[ "MIT" ]
5
2018-03-12T20:16:50.000Z
2020-08-11T11:40:54.000Z
labeler/migrations/0001_initial.py
wt3c/lyra-mprjlabeler
2cdbad6719b0e7e81e6e96dd6bf3063741022224
[ "MIT" ]
19
2019-01-09T17:54:01.000Z
2021-06-10T17:29:34.000Z
labeler/migrations/0001_initial.py
SamambaMan/mprjlabeler
72efcfcb01654e5e34a0022b9797404c85155529
[ "MIT" ]
1
2022-03-11T21:01:24.000Z
2022-03-11T21:01:24.000Z
# Generated by Django 2.0.2 on 2018-02-19 12:53 from django.db import migrations, models import django.db.models.deletion import yamlfield.fields
47.638889
586
0.559767
# Generated by Django 2.0.2 on 2018-02-19 12:53 from django.db import migrations, models import django.db.models.deletion import yamlfield.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Campanha', ...
0
3,264
23
c670b9e6cd76c2eb55adbabc4071e0037f38f583
2,104
py
Python
python/raspbarry/examples/BC20_Serial/BC20_Serial.py
DFRobot/DFRobot_BC20_Gravity
c9aed2ad61965d4602eec21d76bf3a54343ae7e0
[ "MIT" ]
null
null
null
python/raspbarry/examples/BC20_Serial/BC20_Serial.py
DFRobot/DFRobot_BC20_Gravity
c9aed2ad61965d4602eec21d76bf3a54343ae7e0
[ "MIT" ]
null
null
null
python/raspbarry/examples/BC20_Serial/BC20_Serial.py
DFRobot/DFRobot_BC20_Gravity
c9aed2ad61965d4602eec21d76bf3a54343ae7e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* '''! @file BC20_Serial.py @brief Send AT commands to the BC20 module via USB Serial @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) @license The MIT License (MIT) @author [PengKaixing](kaixing.peng@dfrobot.com) @version V1.0.0 @date 2019-07-16 @u...
27.324675
94
0.643536
# -*- coding: utf-8 -* '''! @file BC20_Serial.py @brief Send AT commands to the BC20 module via USB Serial @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) @license The MIT License (MIT) @author [PengKaixing](kaixing.peng@dfrobot.com) @version V1.0.0 @date 2019-07-16 @u...
0
0
0
d2fea60ab7a02164cc63764f1d55b3afadcdce99
2,673
py
Python
main.py
zabatani/blackjack
bbf6235e86bf8a0ecc9083b52f5ca973a1be8b15
[ "Apache-2.0" ]
null
null
null
main.py
zabatani/blackjack
bbf6235e86bf8a0ecc9083b52f5ca973a1be8b15
[ "Apache-2.0" ]
null
null
null
main.py
zabatani/blackjack
bbf6235e86bf8a0ecc9083b52f5ca973a1be8b15
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from collections import defaultdict import matplotlib.pyplot as plt import seaborn as sns import numpy as np from mpl_toolkits.mplot3d import axes3d # Source: https://www.blackjackinfo.com/dealer-outcome-probabilities/#TIDS17 dealer_prob = [[.3536, .3739, .3945, .4164, .4232,...
29.054348
134
0.597082
from collections import namedtuple from collections import defaultdict import matplotlib.pyplot as plt import seaborn as sns import numpy as np from mpl_toolkits.mplot3d import axes3d # Source: https://www.blackjackinfo.com/dealer-outcome-probabilities/#TIDS17 dealer_prob = [[.3536, .3739, .3945, .4164, .4232,...
0
0
0
a0204cf5a2fc866972b9d75c6f4eb79696cfa67a
40,843
py
Python
cpro/models.py
FlockyChou/CinderellaProducers
fdfa25a20ed21712caf6294fe3ada3cfdcd5832a
[ "Apache-2.0" ]
null
null
null
cpro/models.py
FlockyChou/CinderellaProducers
fdfa25a20ed21712caf6294fe3ada3cfdcd5832a
[ "Apache-2.0" ]
null
null
null
cpro/models.py
FlockyChou/CinderellaProducers
fdfa25a20ed21712caf6294fe3ada3cfdcd5832a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division import datetime, os from django.utils import timezone from django.utils.translation import ugettext_lazy as _, string_concat from django.conf import settings as django_settings from django.utils.deconstruct import deconstructible from django.core.validators import...
49.747868
282
0.686801
# -*- coding: utf-8 -*- from __future__ import division import datetime, os from django.utils import timezone from django.utils.translation import ugettext_lazy as _, string_concat from django.conf import settings as django_settings from django.utils.deconstruct import deconstructible from django.core.validators import...
20,336
19,080
236
24832f61a8a0ef6be315bd9b5b58d84dcc6dde5b
1,856
py
Python
Tps_test.py
IB-NET-Internet-Banking-Network/Entire-Network
8214f06bd7afb59b1b0792e68343e2cf599464a6
[ "BSD-3-Clause" ]
1
2021-05-22T03:58:34.000Z
2021-05-22T03:58:34.000Z
Tps_test.py
IB-NET-Internet-Banking-Network/Entire-Network
8214f06bd7afb59b1b0792e68343e2cf599464a6
[ "BSD-3-Clause" ]
null
null
null
Tps_test.py
IB-NET-Internet-Banking-Network/Entire-Network
8214f06bd7afb59b1b0792e68343e2cf599464a6
[ "BSD-3-Clause" ]
null
null
null
""" Author :- Manas Kumar mishra Task :- Test for Series connection. This is not a part of the network. it is for Testing algos Begin DATE :- 01- APRIL- 2021 """ from socket import* from random import randint # CIF Customer Information file # It maaps between the Card info to the Bank information global CIF_number CI...
20.622222
94
0.698276
""" Author :- Manas Kumar mishra Task :- Test for Series connection. This is not a part of the network. it is for Testing algos Begin DATE :- 01- APRIL- 2021 """ from socket import* from random import randint # CIF Customer Information file # It maaps between the Card info to the Bank information global CIF_number CI...
209
0
45
3d6a8ca10eeb102dbec4995489229a0c07f17ccd
50
py
Python
yo_fluq_ds/_queries/query_helpers/__init__.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
16
2019-09-26T09:05:42.000Z
2021-02-04T01:39:09.000Z
yo_fluq_ds/_queries/query_helpers/__init__.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-10-23T19:01:23.000Z
2020-06-11T09:08:45.000Z
yo_fluq_ds/_queries/query_helpers/__init__.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-09-26T09:05:50.000Z
2019-10-23T18:46:11.000Z
from .combinatorics import * from .files import *
16.666667
28
0.76
from .combinatorics import * from .files import *
0
0
0
5ee9ee737c375562eff09a41ab30498684058a0c
2,916
py
Python
Trakttv.bundle/Contents/Libraries/Shared/plugin/models/m_plex/credential.py
disrupted/Trakttv.bundle
24712216c71f3b22fd58cb5dd89dad5bb798ed60
[ "RSA-MD" ]
1,346
2015-01-01T14:52:24.000Z
2022-03-28T12:50:48.000Z
Trakttv.bundle/Contents/Libraries/Shared/plugin/models/m_plex/credential.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
474
2015-01-01T10:27:46.000Z
2022-03-21T12:26:16.000Z
Trakttv.bundle/Contents/Libraries/Shared/plugin/models/m_plex/credential.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
from plugin.core.environment import Environment from plugin.models.m_plex.account import PlexAccount from plugin.models.core import db from exception_wrappers.libraries.playhouse.apsw_ext import * from xml.etree import ElementTree import logging import requests log = logging.getLogger(__name__)
26.509091
106
0.618313
from plugin.core.environment import Environment from plugin.models.m_plex.account import PlexAccount from plugin.models.core import db from exception_wrappers.libraries.playhouse.apsw_ext import * from xml.etree import ElementTree import logging import requests log = logging.getLogger(__name__) class PlexBasicCrede...
2,138
456
23
6fea66893926be4585078d66a6a46fbf424291c0
8,154
py
Python
src/demos/python/sensor/demo_SEN_Gator.py
lucasw/chrono
e79d8c761c718ecb4c796725cff37026f357da8c
[ "BSD-3-Clause" ]
null
null
null
src/demos/python/sensor/demo_SEN_Gator.py
lucasw/chrono
e79d8c761c718ecb4c796725cff37026f357da8c
[ "BSD-3-Clause" ]
null
null
null
src/demos/python/sensor/demo_SEN_Gator.py
lucasw/chrono
e79d8c761c718ecb4c796725cff37026f357da8c
[ "BSD-3-Clause" ]
null
null
null
# ============================================================================= # PROJECT CHRONO - http://projectchrono.org # # Copyright (c) 2014 projectchrono.org # All right reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distri...
32.746988
118
0.674025
# ============================================================================= # PROJECT CHRONO - http://projectchrono.org # # Copyright (c) 2014 projectchrono.org # All right reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distri...
0
0
0
a7ae1ddccfe5bee9e728862667b3ff806d597f62
2,242
py
Python
tests/test_error.py
dotzero/tilda-api-python
0ab984e0236cbfb676b0fbddc1ab37202d92e0a8
[ "MIT" ]
11
2016-07-27T19:35:59.000Z
2022-02-16T21:06:01.000Z
tests/test_error.py
dotzero/tilda-api-python
0ab984e0236cbfb676b0fbddc1ab37202d92e0a8
[ "MIT" ]
null
null
null
tests/test_error.py
dotzero/tilda-api-python
0ab984e0236cbfb676b0fbddc1ab37202d92e0a8
[ "MIT" ]
5
2018-03-02T15:53:28.000Z
2020-10-07T16:03:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 dotzero <mail@dotzero.ru> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitat...
34.492308
79
0.68198
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 dotzero <mail@dotzero.ru> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitat...
0
0
0
8ebedf9e57ab05cd84d0c9904ff61580278d3f04
2,478
py
Python
ts_emergency/plotting.py
health-data-science-OR/ts-emergency
86c40c15b09504f4638937fbdce65c2991735cd6
[ "MIT" ]
null
null
null
ts_emergency/plotting.py
health-data-science-OR/ts-emergency
86c40c15b09504f4638937fbdce65c2991735cd6
[ "MIT" ]
null
null
null
ts_emergency/plotting.py
health-data-science-OR/ts-emergency
86c40c15b09504f4638937fbdce65c2991735cd6
[ "MIT" ]
1
2021-11-18T18:16:09.000Z
2021-11-18T18:16:09.000Z
import matplotlib.pyplot as plt DEFAULT_LABEL_FS = 12 DEFAULT_AXIS_FS = 12 DEFAULT_FIGSIZE = (12,8) def plot_single_ed(wide_df, hosp_id, figsize=(12,3), fontsize=DEFAULT_LABEL_FS, line_width=2): ''' Plot a single ED's data Assumes data are passed in wide format. Params: --...
27.533333
81
0.596449
import matplotlib.pyplot as plt DEFAULT_LABEL_FS = 12 DEFAULT_AXIS_FS = 12 DEFAULT_FIGSIZE = (12,8) def plot_single_ed(wide_df, hosp_id, figsize=(12,3), fontsize=DEFAULT_LABEL_FS, line_width=2): ''' Plot a single ED's data Assumes data are passed in wide format. Params: --...
0
0
0
8234cdcb3f25378b8d7894083c222407171af1d5
4,106
py
Python
author/command.py
TrixterFilm/jobtronaut
e8a750282ee84ff014f91f9f0763d81a1446d656
[ "BSD-3-Clause" ]
4
2020-05-06T17:42:05.000Z
2022-03-07T03:58:53.000Z
author/command.py
TrixterFilm/jobtronaut
e8a750282ee84ff014f91f9f0763d81a1446d656
[ "BSD-3-Clause" ]
24
2020-05-07T20:34:30.000Z
2021-12-01T17:35:46.000Z
author/command.py
TrixterFilm/jobtronaut
e8a750282ee84ff014f91f9f0763d81a1446d656
[ "BSD-3-Clause" ]
2
2020-05-06T17:41:17.000Z
2020-05-06T17:41:31.000Z
# ###################################################################################################################### # Copyright 2020 TRIXTER GmbH # # ...
68.433333
120
0.472479
# ###################################################################################################################### # Copyright 2020 TRIXTER GmbH # # ...
1,200
0
26
46ae75053042c2a830fda5878e73ba1a36d832ac
1,749
py
Python
Cool-Tech/cogs/fun.py
Sengolda/Cool-Tech
05f397443b477ac6cf2b5b7585ce4de65a627690
[ "Apache-2.0" ]
2
2021-04-08T14:35:37.000Z
2021-08-20T16:49:12.000Z
Cool-Tech/cogs/fun.py
Sengolda/Cool-Tech
05f397443b477ac6cf2b5b7585ce4de65a627690
[ "Apache-2.0" ]
1
2021-12-21T13:09:48.000Z
2021-12-21T13:09:48.000Z
Cool-Tech/cogs/fun.py
Sengolda/Cool-Tech
05f397443b477ac6cf2b5b7585ce4de65a627690
[ "Apache-2.0" ]
1
2021-04-08T14:37:07.000Z
2021-04-08T14:37:07.000Z
import discord from discord.ext import commands import os import random @commands.command(aliases = ['8ball'])
27.328125
93
0.547742
import discord from discord.ext import commands import os import random class fun(commands.Cog): def __init__(self, client): self.client = client @commands.command() async def beers(self, ctx, member : discord.Member): await ctx.send("BEER TIME") await ctx.send(f"{ctx.author.ment...
1,275
287
72
7ee7c18944839ea5bdb1c1ee5b204187b4440166
10,206
py
Python
sm-executor/tests/sm_executor/test_sm_execution_engine.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
sm-executor/tests/sm_executor/test_sm_execution_engine.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
sm-executor/tests/sm_executor/test_sm_execution_engine.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
import datetime import addict import boto3 import botocore import pytest from bai_kafka_utils.events import ( FetcherBenchmarkEvent, FetcherPayload, FileSystemObject, DownloadableContent, ContentSizeInfo, FetchedType, BenchmarkDoc, BenchmarkJob, ) from bai_kafka_utils.executors.descript...
33.352941
119
0.741329
import datetime import addict import boto3 import botocore import pytest from bai_kafka_utils.events import ( FetcherBenchmarkEvent, FetcherPayload, FileSystemObject, DownloadableContent, ContentSizeInfo, FetchedType, BenchmarkDoc, BenchmarkJob, ) from bai_kafka_utils.executors.descript...
8,014
0
472
5aac4a581178d63bc54c5f094694c50444feafc7
9,801
py
Python
run_mtuq.py
ammcpherson/mtuq
aecfb732ea459e0236c082db5b765bf7bda9950a
[ "BSD-2-Clause" ]
null
null
null
run_mtuq.py
ammcpherson/mtuq
aecfb732ea459e0236c082db5b765bf7bda9950a
[ "BSD-2-Clause" ]
null
null
null
run_mtuq.py
ammcpherson/mtuq
aecfb732ea459e0236c082db5b765bf7bda9950a
[ "BSD-2-Clause" ]
null
null
null
import os import sys import numpy as np from mtuq import read, open_db, download_greens_tensors from mtuq.event import Origin from mtuq.graphics import plot_data_greens2, plot_misfit_depth, plot_misfit_dc, plot_variance_reduction_lune #from mtuq.graphics.uq.hypocenter import _get_depths, _get_sources, _min_dataarray ...
28.574344
141
0.687583
import os import sys import numpy as np from mtuq import read, open_db, download_greens_tensors from mtuq.event import Origin from mtuq.graphics import plot_data_greens2, plot_misfit_depth, plot_misfit_dc, plot_variance_reduction_lune #from mtuq.graphics.uq.hypocenter import _get_depths, _get_sources, _min_dataarray ...
415
0
68
92ac801847239b99eadbc5e85e395ee590f4d588
901
py
Python
ckanext-googleanalytics/setup.py
devgateway/dcdj-ckan
a0a09b62432860b95287e24f096ef819401f52fc
[ "Apache-2.0" ]
null
null
null
ckanext-googleanalytics/setup.py
devgateway/dcdj-ckan
a0a09b62432860b95287e24f096ef819401f52fc
[ "Apache-2.0" ]
null
null
null
ckanext-googleanalytics/setup.py
devgateway/dcdj-ckan
a0a09b62432860b95287e24f096ef819401f52fc
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages version = '0.1' setup( name='ckanext-googleanalytics', version=version, description="Add GA tracking and reporting to CKAN instance", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', au...
25.742857
90
0.72919
from setuptools import setup, find_packages version = '0.1' setup( name='ckanext-googleanalytics', version=version, description="Add GA tracking and reporting to CKAN instance", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', au...
0
0
0
7e4a845a63cf509616dfdb8b0e306b32e0d4ca99
688
py
Python
src/genie/libs/parser/iosxe/tests/ShowL2fibBridgedomainAddressUnicast/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowL2fibBridgedomainAddressUnicast/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowL2fibBridgedomainAddressUnicast/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
# Copyright (c) 2021 by Cisco Systems, Inc. # All rights reserved. expected_output = { 'mac_addr': 'ffff.ffff.fffd', 'reference_count': 1, 'epoch': 0, 'producer': 'L2FIB', 'flags': ['None'], 'adjacency': { 'type':'olist', 'desc': 'Olist: 3, Ports:...
24.571429
43
0.37936
# Copyright (c) 2021 by Cisco Systems, Inc. # All rights reserved. expected_output = { 'mac_addr': 'ffff.ffff.fffd', 'reference_count': 1, 'epoch': 0, 'producer': 'L2FIB', 'flags': ['None'], 'adjacency': { 'type':'olist', 'desc': 'Olist: 3, Ports:...
0
0
0
395264e09aac8ceaf78ee0f56392d9a1ee2aa163
2,145
py
Python
GSForge/plots/gem/_gene_mass.py
SystemsGenetics/GEMprospector
7c5c7f5003a4b12feffe8d94325da96d53cc17f6
[ "BSD-3-Clause" ]
2
2020-05-31T03:56:47.000Z
2021-07-10T12:44:23.000Z
GSForge/plots/gem/_gene_mass.py
SystemsGenetics/GEMprospector
7c5c7f5003a4b12feffe8d94325da96d53cc17f6
[ "BSD-3-Clause" ]
6
2020-06-22T20:06:15.000Z
2021-08-23T23:04:58.000Z
GSForge/plots/gem/_gene_mass.py
SystemsGenetics/GEMprospector
7c5c7f5003a4b12feffe8d94325da96d53cc17f6
[ "BSD-3-Clause" ]
2
2020-01-12T04:36:34.000Z
2020-01-17T21:20:24.000Z
# import itertools # # import numpy as np # # import holoviews as hv # # # def _create_paths(count_array: np.ndarray): # """ # Returns an iterable containing coordinates for a single path, where the genes are integer-indexed # along the x-axis, and the mass of the gene (length * counts), is along the y-axis...
29.791667
103
0.652681
# import itertools # # import numpy as np # # import holoviews as hv # # # def _create_paths(count_array: np.ndarray): # """ # Returns an iterable containing coordinates for a single path, where the genes are integer-indexed # along the x-axis, and the mass of the gene (length * counts), is along the y-axis...
0
0
0
d3d50b2879a867cd82d4268cd644f74611f12c66
1,605
py
Python
tests/__init__.py
michilu/python-amazon-product-api
ecf9cef5f03c68bcf1df237b5e6136543d682e2d
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
michilu/python-amazon-product-api
ecf9cef5f03c68bcf1df237b5e6136543d682e2d
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
michilu/python-amazon-product-api
ecf9cef5f03c68bcf1df237b5e6136543d682e2d
[ "BSD-3-Clause" ]
null
null
null
import imp import os.path from amazonproduct import HOSTS from amazonproduct.processors import objectify, etree, minidom from amazonproduct.utils import load_config _here = os.path.abspath(os.path.dirname(__file__)) try: fp, path, desc = imp.find_module('config', [_here]) _config = imp.load_module('config'...
25.47619
78
0.705296
import imp import os.path from amazonproduct import HOSTS from amazonproduct.processors import objectify, etree, minidom from amazonproduct.utils import load_config _here = os.path.abspath(os.path.dirname(__file__)) try: fp, path, desc = imp.find_module('config', [_here]) _config = imp.load_module('config'...
0
0
0
389c146553e23892c99d51a3a8b59706b7766911
512
py
Python
setup.py
rahulvgmail/TripMapR
d2dc4770fc87fdefda3fe9effdcd4683a8abebaa
[ "BSD-3-Clause" ]
null
null
null
setup.py
rahulvgmail/TripMapR
d2dc4770fc87fdefda3fe9effdcd4683a8abebaa
[ "BSD-3-Clause" ]
null
null
null
setup.py
rahulvgmail/TripMapR
d2dc4770fc87fdefda3fe9effdcd4683a8abebaa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup import TripMapR version = TripMapR.__version__ setup( name='TripMapR', version=version, author="Rahul Verma", author_email='rahulv@gmail....
16.516129
36
0.642578
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup import TripMapR version = TripMapR.__version__ setup( name='TripMapR', version=version, author="Rahul Verma", author_email='rahulv@gmail....
0
0
0
bc6ec49032ddd680ebbaa82972b03aba6c9ec595
5,626
py
Python
testsuite/oiiotool-xform/run.py
KelSolaar/oiio
c970073e2e8f482ce611a6ebb2aab1a714d68d61
[ "BSD-3-Clause" ]
3
2018-03-09T15:45:40.000Z
2019-03-22T16:25:55.000Z
testsuite/oiiotool-xform/run.py
KelSolaar/oiio
c970073e2e8f482ce611a6ebb2aab1a714d68d61
[ "BSD-3-Clause" ]
null
null
null
testsuite/oiiotool-xform/run.py
KelSolaar/oiio
c970073e2e8f482ce611a6ebb2aab1a714d68d61
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #import OpenImageIO as oiio import shutil ## This testsuite entry tests oiiotool features related to image ## transformations (moving pixels around and resampling). # helper function # Create some test images we need # No need to do this every time, we stashed it in src #make_test_pattern1 ("...
43.276923
116
0.645574
#!/usr/bin/env python #import OpenImageIO as oiio import shutil ## This testsuite entry tests oiiotool features related to image ## transformations (moving pixels around and resampling). # helper function def make_test_pattern1 (filename, xres=288, yres=216) : buf = oiio.ImageBuf (oiio.ImageSpec (xres, yres, 3, ...
689
0
22
03ebe754e7761876047da6f4715ac1d008a9c6d8
1,976
py
Python
src/pretix/helpers/escapejson.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
1,248
2015-04-24T13:32:06.000Z
2022-03-29T07:01:36.000Z
src/pretix/helpers/escapejson.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
2,113
2015-02-18T18:58:16.000Z
2022-03-31T11:12:32.000Z
src/pretix/helpers/escapejson.py
fabm3n/pretix
520fb620888d5c434665a6a4a33cb2ab22dd42c7
[ "Apache-2.0" ]
453
2015-05-13T09:29:06.000Z
2022-03-24T13:39:16.000Z
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
38
118
0.722166
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
0
0
0
12efe9760c2a5be4b20c55916a279beb6133821c
2,065
py
Python
src/qwopga.py
5outh/autoqwop
7805cd4d7886f262b7b7b48781eddaa158c60c5d
[ "MIT" ]
1
2015-03-12T07:47:26.000Z
2015-03-12T07:47:26.000Z
src/qwopga.py
5outh/autoqwop
7805cd4d7886f262b7b7b48781eddaa158c60c5d
[ "MIT" ]
null
null
null
src/qwopga.py
5outh/autoqwop
7805cd4d7886f262b7b7b48781eddaa158c60c5d
[ "MIT" ]
null
null
null
from deap import base from deap import creator from deap import tools import random import math #Luke Grantham #python 3 compatible #variables IND_SIZE = 5 #number of key presses POP_SIZE = 1 #number of individuals T_SIZE = 3 #tournament size generations = 1000 #number of generations selb = 1 ...
32.265625
94
0.725908
from deap import base from deap import creator from deap import tools import random import math #Luke Grantham #python 3 compatible #variables IND_SIZE = 5 #number of key presses POP_SIZE = 1 #number of individuals T_SIZE = 3 #tournament size generations = 1000 #number of generations selb = 1 ...
276
0
77
af32bcdb23ad80a9a2670ffcdac6f1888f4665e3
972
py
Python
service/__init__.py
Stafil0/vkbot
910d78f3556fe86e560c55146243dbb25fed18c1
[ "MIT" ]
null
null
null
service/__init__.py
Stafil0/vkbot
910d78f3556fe86e560c55146243dbb25fed18c1
[ "MIT" ]
null
null
null
service/__init__.py
Stafil0/vkbot
910d78f3556fe86e560c55146243dbb25fed18c1
[ "MIT" ]
null
null
null
import os import importlib from service import config from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_DATABASE_URI'] = config.connection_string \ if not config.get_boolean_param('debug') \ else co...
38.88
105
0.740741
import os import importlib from service import config from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_DATABASE_URI'] = config.connection_string \ if not config.get_boolean_param('debug') \ else co...
0
0
0
ad344d1d7eaed73cd9e5372b8626147657b81289
937
py
Python
MyExtenstion.extension/Gaochao.tab/Gaochao.panel/Annotation_Modify.pulldown/Grid_BubbleReverse.pushbutton/script.py
gaochaowyq/MyPyRevitExtentision
0c8b134744550889dd95b2709299b2ef5a0cea6a
[ "MIT" ]
null
null
null
MyExtenstion.extension/Gaochao.tab/Gaochao.panel/Annotation_Modify.pulldown/Grid_BubbleReverse.pushbutton/script.py
gaochaowyq/MyPyRevitExtentision
0c8b134744550889dd95b2709299b2ef5a0cea6a
[ "MIT" ]
null
null
null
MyExtenstion.extension/Gaochao.tab/Gaochao.panel/Annotation_Modify.pulldown/Grid_BubbleReverse.pushbutton/script.py
gaochaowyq/MyPyRevitExtentision
0c8b134744550889dd95b2709299b2ef5a0cea6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __doc__="返回选择物体的类型" import rpw from rpw import revit, DB, UI,db,doc from System.Collections.Generic import List import json #from pyrevit import script as this_script #from scriptutils.userinput import CommandSwitchWindow import subprocess as sp #Change Selected Grid From 3D to 2D #selection = ...
22.309524
57
0.784418
# -*- coding: utf-8 -*- __doc__="返回选择物体的类型" import rpw from rpw import revit, DB, UI,db,doc from System.Collections.Generic import List import json #from pyrevit import script as this_script #from scriptutils.userinput import CommandSwitchWindow import subprocess as sp #Change Selected Grid From 3D to 2D #selection = ...
189
0
22
0450b85ca8aadde45199829feaf59d432f566451
9,514
py
Python
src/biota_models/coral/model/coral_model.py
Deltares/NBSDynamics
4710da529d85b588ea249f6e2b4f4cac132bb34f
[ "MIT" ]
2
2022-01-14T05:02:04.000Z
2022-03-02T10:42:59.000Z
src/biota_models/coral/model/coral_model.py
Deltares/NBSDynamics
4710da529d85b588ea249f6e2b4f4cac132bb34f
[ "MIT" ]
35
2021-11-01T08:59:02.000Z
2021-11-19T16:47:17.000Z
src/biota_models/coral/model/coral_model.py
Deltares/NBSDynamics
4710da529d85b588ea249f6e2b4f4cac132bb34f
[ "MIT" ]
1
2022-03-16T07:11:00.000Z
2022-03-16T07:11:00.000Z
from typing import Dict, Optional, Union import numpy as np from pydantic import validator from src.biota_models.coral.model.coral_constants import CoralConstants from src.biota_models.coral.model.coral_only import CoralOnly from src.core import RESHAPE from src.core.base_model import ExtraModel from src.core.biota.b...
33.5
115
0.583246
from typing import Dict, Optional, Union import numpy as np from pydantic import validator from src.biota_models.coral.model.coral_constants import CoralConstants from src.biota_models.coral.model.coral_only import CoralOnly from src.core import RESHAPE from src.core.base_model import ExtraModel from src.core.biota.b...
232
0
57
b5fccace462a2c5cbcfc6040c011b816bb6cb399
1,267
py
Python
backend/accounts/migrations/0001_initial.py
mokshdoshi007/Slot-Booking-System
f179e71df821a0392f7c1cbadb5d53aa8aa8b0f1
[ "MIT" ]
8
2020-06-28T03:38:40.000Z
2021-05-25T13:56:27.000Z
backend/accounts/migrations/0001_initial.py
mokshdoshi007/Slot-Booking-System
f179e71df821a0392f7c1cbadb5d53aa8aa8b0f1
[ "MIT" ]
5
2021-03-30T13:56:40.000Z
2021-09-22T19:28:14.000Z
backend/accounts/migrations/0001_initial.py
mokshdoshi007/Slot-Booking-System
f179e71df821a0392f7c1cbadb5d53aa8aa8b0f1
[ "MIT" ]
4
2020-07-03T09:13:47.000Z
2021-05-25T13:56:36.000Z
# Generated by Django 3.0.7 on 2020-07-01 06:13 from django.db import migrations, models import uuid
38.393939
141
0.579321
# Generated by Django 3.0.7 on 2020-07-01 06:13 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', mo...
0
1,141
23
ac9acfa2f238b2151fd6e4aaf55b41ba7d116a71
366
py
Python
progmod/plot/simple.py
NadderudVGS/ProgMod-Pakka
d359f24ac1417890e6c639f46f8c9b3931a925cf
[ "MIT" ]
1
2020-07-15T14:29:40.000Z
2020-07-15T14:29:40.000Z
progmod/plot/simple.py
NadderudVGS/ProgMod-Pakka
d359f24ac1417890e6c639f46f8c9b3931a925cf
[ "MIT" ]
5
2020-02-13T18:09:30.000Z
2020-06-09T08:29:37.000Z
progmod/plot/simple.py
NadderudVGS/ProgMod-Pakka
d359f24ac1417890e6c639f46f8c9b3931a925cf
[ "MIT" ]
null
null
null
from pylab import linspace, xlabel, ylabel, plot, show, grid def simple(funkjson, start=float, slutt=float, x_label="x", y_label="y"): ''' Lager enkel graf av funksjonen din. Passer fint for alle type grafer ''' x = linspace(start, slutt, 1001) y = funkjson(x) xlabel(x_label) ...
20.333333
73
0.614754
from pylab import linspace, xlabel, ylabel, plot, show, grid def simple(funkjson, start=float, slutt=float, x_label="x", y_label="y"): ''' Lager enkel graf av funksjonen din. Passer fint for alle type grafer ''' x = linspace(start, slutt, 1001) y = funkjson(x) xlabel(x_label) ...
0
0
0
9726850919f290a85a153dc67204f6f0af6a867f
6,874
py
Python
utils/utils.py
davidtvs/kaggle-hpaic
546a98eb2b1591955ada731ab170084bad0e65bf
[ "MIT" ]
4
2019-11-30T13:11:21.000Z
2021-04-18T01:45:34.000Z
utils/utils.py
davidtvs/kaggle-hpaic
546a98eb2b1591955ada731ab170084bad0e65bf
[ "MIT" ]
9
2020-03-24T16:37:02.000Z
2022-03-11T23:37:41.000Z
utils/utils.py
davidtvs/kaggle-hpaic
546a98eb2b1591955ada731ab170084bad0e65bf
[ "MIT" ]
1
2019-02-26T03:30:47.000Z
2019-02-26T03:30:47.000Z
import os from copy import deepcopy import json import torch import torch.nn as nn import torch.optim as optim import numpy as np import pandas as pd from functools import partial import data import model import metric def get_partial_sampler(mode, class_weights): """Creates the sampling partial function to app...
32.578199
85
0.664242
import os from copy import deepcopy import json import torch import torch.nn as nn import torch.optim as optim import numpy as np import pandas as pd from functools import partial import data import model import metric def save_json(data, filepath, indent=4, sort_keys=False): with open(filepath, "w") as outfile: ...
4,145
0
184
5d140ac9a8cd34bc38974d27b76d7c50cb13355c
2,220
py
Python
dataset/migrations/0001_initial.py
tandembank/data-science.dataset-labeller
75e1ce7751c08ac60544e89a796f1b83b9c126f3
[ "MIT" ]
4
2018-11-23T17:18:32.000Z
2021-12-11T13:14:47.000Z
dataset/migrations/0001_initial.py
tandembank/data-science.dataset-labeller
75e1ce7751c08ac60544e89a796f1b83b9c126f3
[ "MIT" ]
5
2019-01-03T13:10:45.000Z
2019-01-23T10:16:09.000Z
dataset/migrations/0001_initial.py
tandembank/data-science.dataset-labeller
75e1ce7751c08ac60544e89a796f1b83b9c126f3
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-16 08:29 from django.conf import settings from django.db import migrations, models
38.947368
122
0.569369
# Generated by Django 2.1.2 on 2018-10-16 08:29 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Cr...
0
2,073
23
ad764e2bb39a4093c14e25db9bd5e7aebc420a88
1,479
py
Python
lib/utils/imutils.py
giussepi/semantic-segmentation-codebase
163b0edfa30a8e1147b532a737d0784ea09f4fc2
[ "MIT" ]
37
2021-01-12T06:37:23.000Z
2022-03-23T08:14:09.000Z
lib/utils/imutils.py
giussepi/semantic-segmentation-codebase
163b0edfa30a8e1147b532a737d0784ea09f4fc2
[ "MIT" ]
8
2021-01-17T07:53:24.000Z
2021-11-16T08:55:48.000Z
lib/utils/imutils.py
giussepi/semantic-segmentation-codebase
163b0edfa30a8e1147b532a737d0784ea09f4fc2
[ "MIT" ]
6
2021-03-14T11:09:30.000Z
2021-08-24T11:40:53.000Z
import numpy as np import cv2
25.5
88
0.605139
import numpy as np import cv2 def pseudo_erode(label, num, t=1): label_onehot = onehot(label, num) k = np.ones((15,15),np.uint8) e = cv2.erode(label_onehot, k, t) m = (e != label_onehot) m = np.max(m, axis=2) label[m] = 255 return label def onehot(label, num): num = int(num) m = label.astype(np.int32) one...
1,332
0
115