hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
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
130
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.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
92bb77748c5a27612f3a9ba60f9e990fb4105d93
1,691
py
Python
helpers/file_helper.py
aaron2708/pdf-tool-gui
d7410db9141beeccd51bb634003407fb6fbde129
[ "MIT" ]
null
null
null
helpers/file_helper.py
aaron2708/pdf-tool-gui
d7410db9141beeccd51bb634003407fb6fbde129
[ "MIT" ]
2
2021-09-08T02:14:05.000Z
2022-01-13T02:56:51.000Z
helpers/file_helper.py
aaron2708/pdf-tool-gui
d7410db9141beeccd51bb634003407fb6fbde129
[ "MIT" ]
null
null
null
import os DOCUMENT_PATH = os.path.expanduser("~") FILETYPE_ALL = ("All types", "*.*") FILETYPE_PDF = ("PDF File", "*.pdf") FILETYPE_CSV = ("CSV File", "*.csv") DIALOG_TITLE = "Select {} file" SAVE_DIALOG_TITLE = "Save as {} file"
24.507246
95
0.655825
import os from tkinter import filedialog, messagebox from dialogs.password_prompt import askpassword DOCUMENT_PATH = os.path.expanduser("~") FILETYPE_ALL = ("All types", "*.*") FILETYPE_PDF = ("PDF File", "*.pdf") FILETYPE_CSV = ("CSV File", "*.csv") DIALOG_TITLE = "Select {} file" SAVE_DIALOG_TITLE = "Save as {} fil...
0
0
0
0
0
1,225
0
47
183
a3ee1e57a36a339f0c24300056ca9134c4614df7
1,152
py
Python
megatron/model/fused_bias_dropout.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
1,871
2020-12-22T14:44:29.000Z
2022-03-31T14:21:40.000Z
megatron/model/fused_bias_dropout.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
300
2020-12-23T17:51:43.000Z
2022-03-30T17:34:42.000Z
megatron/model/fused_bias_dropout.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
235
2020-12-23T19:45:19.000Z
2022-03-31T20:33:47.000Z
import torch # flags required to enable jit fusion kernels torch._C._jit_set_profiling_mode(False) torch._C._jit_set_profiling_executor(False) torch._C._jit_override_can_fuse_on_cpu(True) torch._C._jit_override_can_fuse_on_gpu(True)
33.882353
113
0.763889
import torch import torch.nn.functional as F from typing import Optional from torch import Tensor # flags required to enable jit fusion kernels torch._C._jit_set_profiling_mode(False) torch._C._jit_set_profiling_executor(False) torch._C._jit_override_can_fuse_on_cpu(True) torch._C._jit_override_can_fuse_on_gpu(True) ...
0
335
0
0
0
402
0
19
158
a8f6e5df5472916192af057ac1f30d9af744c426
4,416
py
Python
src/zenml/cli/container_registry.py
svenaoki/zenml
b94dff83f0e7c8ab29e99d6b42a0c906a3512b63
[ "Apache-2.0" ]
565
2021-08-14T14:00:32.000Z
2022-03-31T12:58:08.000Z
src/zenml/cli/container_registry.py
svenaoki/zenml
b94dff83f0e7c8ab29e99d6b42a0c906a3512b63
[ "Apache-2.0" ]
159
2021-08-16T08:27:10.000Z
2022-03-31T14:07:30.000Z
src/zenml/cli/container_registry.py
svenaoki/zenml
b94dff83f0e7c8ab29e99d6b42a0c906a3512b63
[ "Apache-2.0" ]
64
2021-08-31T02:33:01.000Z
2022-03-31T12:58:12.000Z
# Copyright (c) ZenML GmbH 2021. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
31.769784
104
0.715806
# Copyright (c) ZenML GmbH 2021. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
3,505
0
0
0
0
0
41
251
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
0
0
0
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 """
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
292
0
0
0
0
25
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
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=...
0
0
0
0
0
2,502
0
83
133
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...
0
736
0
1,302
0
0
0
43
114
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
0
0
0
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
0
0
0
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.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='store', help='Enter URL to test', ...
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
0
0
0
0
26
22
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...
0
0
0
0
0
1,107
0
40
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 ...
0
0
0
5,432
0
0
0
20
91
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,310
0
0
0
0
0
133
135
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
0
0
0
0
0
0
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
0
0
0
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 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 = "" repeat = 2 next_shit = random_loop(shit) next_idiom = r...
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...
225
0
0
0
132
215
0
-24
113
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 itertools import pandas as pd from ab_utils import load_ab_data from utils import VALUES, get_max_value, format_value sns.set(color_codes=True) sns.set_palette('muted') args = get_program_args() data = [d for d in loa...
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') ...
0
0
0
0
0
108
0
4
67
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' 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')...
0
0
0
228
0
0
0
12
46
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 # pylint:disable=g-import-not-at-top if sys.version_info >= (3, 8): from typing import Protocol else: # pylint:enable=g-import-not-at-top # This file defines the canonical implementations of EdgeSetUpdate, # NodeSetUpdate, and ContextUpdate. However, users ar...
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...
0
18,149
0
2,388
0
660
0
213
478
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
# 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) # @staticmethod # def binary_constrain(m1, m2, vp1, vp2, constraint):...
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...
0
0
0
7,185
0
0
0
3
135
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
0
0
0
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 sys import logging import os os.environ['NO_PROXY'] = "nominatim.openstreetmap.org" logger = logging.getLogger(__name__) if __name__ == "__main__": main(sys.argv[1:])
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...
0
0
0
0
0
4,467
0
49
135
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 tools.utils as utils
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...
2
1,025
0
6,769
0
0
0
68
448
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
import pytest pytestmark = pytest.mark.asyncio
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", ...
0
1,086
1,586
0
0
0
0
112
204
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
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
0
0
1,271
0
0
0
16
68
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
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 joining data on the join_on c...
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 ...
0
0
0
0
0
305
0
-15
90
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 numpy as np import math import matplotlib.pyplot as plt n_boxes = 8 # def tile(X, rows, cols): """Tile images for display.""" tiling = np.zeros((rows * X.shape[1], cols * X.shape[2], X.shape[3]), dtype=X.dtype) for i in range(rows): for j in range(cols): idx = i * cols + j ...
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 ...
0
0
0
436
0
0
0
19
155
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
0
0
0
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
0
0
0
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
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
0
0
280
0
0
0
19
50
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
from tensorflow import keras 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 array of croped pictures 512*512 #output: a array of pi...
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): ...
0
0
0
0
0
2,186
0
-15
208
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
0
0
0
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 argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description="preprocess") parser.add_argument("--image_source", type=str, help="") parser.add_argument("--scale", type=int, help="1") parser.add_argument("--output", type=str, help="") parser.add_argument("--annotation"...
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...
192
0
0
0
0
2,225
0
-2
134
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 gdb.printing pp = gdb.printing.RegexpCollectionPrettyPrinter("LLVMSupport") pp.add_printer('llvm::SmallString', '^llvm::SmallString<.*>$', SmallStringPrinter) pp.add_printer('llvm::StringRef', '^llvm::StringRef$', StringRefPrinter) pp.add_printer('llvm::SmallVectorImpl', '...
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...
0
0
0
8,724
0
100
0
-11
252
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. # #...
0
14,177
0
1,763
0
15
0
138
201
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...
0
0
0
8,611
0
0
0
118
165
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 theano 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", {}))...
0
0
0
0
0
626
0
25
179
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 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: 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", ...
0
0
0
0
0
425
0
-12
45
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
""" Defines a dataclass for passing all configuration information between the worker classes """
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
509
0
0
0
0
0
16
89
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 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, "...
0
0
0
29,150
0
0
0
7
90
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."""
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...
2
0
0
5,608
0
0
0
48
256
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
0
0
0
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('...
78
0
0
0
0
0
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 ...
0
0
0
0
0
14,489
0
41
89
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. """ __author__ = ["Alex Dunn", "Shyue Ping Ong", "Anubhav Jain"] # Making and updatig documentation # Consistuent tasks
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...
0
1,422
0
0
0
0
0
-13
312
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
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=[ 'Licens...
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
0
0
0
0
-11
23
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 # Versions antlr_version = '4.8' file_dir = os.path.dirname(os.path.realpath(__file__)) zkay_version = _read_file(os.path.join(file_dir, 'zkay', 'VERSION')) zkay_libsnark_commit_hash = '4e3c7a53ec333f52fe27ff45ff836102bcdb8e28' packages = find_packages() ...
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'...
0
0
0
607
0
1,760
0
71
227
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 resotolib.proc log = resotolib.logger.getLogger("resoto." + __name__)
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...
0
1,674
0
1,641
0
0
0
195
309
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
# 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...
0
62
0
627
0
0
0
29
66
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
TESTING_PAGE_URL = "https://patternfly-docs-ouia.netlify.app/documentation/react/components/card"
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']" ...
0
149
0
0
0
43
0
30
113
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 sys import os from pathlib import PurePath import snet_sdk.generic_client_interceptor as generic_client_interceptor __version__ = "0.0.1" main_dir_path = PurePath(os.path.abspath(sys.modules['__main__'].__file__)).parent cur_dir = PurePath(os.path.realpath(__file__)).parent snet_sdk_defaults = { "li...
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...
0
0
0
22,025
0
0
0
77
446
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
0
0
0
0
56
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 import numpy.testing import unittest if __name__ == '__main__': unittest.main()
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...
0
0
0
6,245
0
0
0
61
135
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 requests REPOS_API = 'https://api.github.com/repos/' if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('repo', help='e.g. gittenburg/instant-issues') args = parser.parse_args() print(json.dumps(aggreg...
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,...
0
0
0
0
0
1,605
0
-2
89
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...
0
164
0
10,784
0
0
0
147
156
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
# 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
0
0
3,712
0
0
0
19
158
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...
0
0
0
0
0
516
0
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...
0
0
0
7,423
0
0
0
52
50
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
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', ...
10
0
0
3,254
0
0
0
32
90
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
0
0
0
0
13
22
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 # Source: https://www.blackjackinfo.com/dealer-outcome-probabilities/#TIDS17 dealer_prob = [[.3536, .3739, .3945, .4164, .4232, .2623, .2447, .2284, .2298, .1665], ...
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
0
0
0
0
18
23
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 ############################################################ # Utils ############################################################ # Idol ############################################################ # Event ######################################################...
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...
0
15,494
0
23,834
0
158
0
328
470
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 """ # CIF Customer Information file # It maaps between the Card info to the Bank information global CIF_number CIF_number={ "1001 0110 2002 0011":"9876543201...
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...
0
0
0
0
0
209
0
3
90
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
import logging 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...
0
202
0
2,392
0
0
0
115
156
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
0
0
0
0
-2
44
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
832
0
0
0
17
67
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
0
0
0
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 # # ...
0
0
0
1,260
0
0
0
16
46
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
from bai_kafka_utils.events import (FileSystemObject) HUGE_DATASET_GB = 100 EXPECTED_HUGE_VOLUME = 110 HUGE_DATASET_SIZE_BYTES = HUGE_DATASET_GB * 1024 ** 3 SCRIPTS = [FileSystemObject(dst="s3://exchange/script.tar")] ACTION_ID = "ACTION_ID" CLIENT_ID = "CLIENT_ID" DATASET_ID = "some_data" DATASET_S3_URI = "s3:...
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...
0
2,988
0
0
0
5,304
0
516
836
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 sys import numpy as np from mtuq import read, open_db from mtuq.event import Origin from mtuq.graphics import plot_data_greens2, plot_misfit_depth, plot_variance_reduction_lune #from mtuq.graphics.uq.hypocenter import _get_depths, _get_sources, _min_dataarray from mtuq.grid import DoubleCoupleGridRegular from ...
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 ...
0
0
0
0
0
415
0
29
90
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
0
0
0
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
0
0
0
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
0
0
0
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 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', fp, _he...
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
0
0
0
0
9
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 -*- 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.com', packages=[ ...
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
0
0
0
0
-23
45
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, ...
0
0
0
0
0
689
0
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
337
0
0
0
0
0
80
112
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 #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 #how many ...
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 ...
0
0
0
0
0
276
0
-10
99
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
0
0
0
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 DB, doc #from pyrevit import script as this_script #from scriptutils.userinput import CommandSwitchWindow #Change Selected Grid From 3D to 2D #selection = rpw.ui.Selection().elements #Grid=selection[0] #Grid= rpw.db.Element(Grid).parameters.all #print(Gri...
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 = ...
27
236
0
0
0
0
0
27
88
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 Union import numpy as np CoralAttribute = Union[float, list, tuple, np.ndarray]
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...
0
2,427
0
6,612
0
0
0
195
178
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
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
0
0
1,141
0
0
0
9
68
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, 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) ylab...
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
0
0
0
0
6
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 torch import torch.nn as nn import torch.optim as optim import numpy as np from functools import partial import data import metric def get_partial_sampler(mode, class_weights): """Creates the sampling partial function to apply to the training labels""" if mode is not None: sampler = partial( ...
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: ...
0
0
0
0
0
4,145
0
-29
294
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
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
0
0
2,073
0
0
0
30
68
78cc971de7aaf0971e41724761db2a4979e3f26e
2,248
py
Python
ranker.py
Aklaran/11411-Final-Project
d4f459b40b0adfe42c820c8614f64e115ddcefed
[ "MIT" ]
2
2019-11-05T21:00:16.000Z
2019-11-28T10:24:04.000Z
ranker.py
Aklaran/11411-Final-Project
d4f459b40b0adfe42c820c8614f64e115ddcefed
[ "MIT" ]
10
2019-10-06T17:32:13.000Z
2019-11-28T10:05:33.000Z
ranker.py
Aklaran/11411-Final-Project
d4f459b40b0adfe42c820c8614f64e115ddcefed
[ "MIT" ]
1
2019-10-31T19:25:21.000Z
2019-10-31T19:25:21.000Z
IDEAL_Q_LENGTH = 10 MAX_SCORE = 17
33.552239
93
0.606762
import string from utils import * IDEAL_Q_LENGTH = 10 MAX_SCORE = 17 def sortSecond(val): return val[1] class Ranker: ''' Holds the ranking data structure for how questions are scored and sorted The q_list becomes a max priority queue, with the max score at the front. Properties: q_list:...
0
0
0
2,115
0
17
0
-10
90
adb3fa1f62395ea649960ae27c16a0c4f6308688
678
py
Python
profiles/migrations/0003_profiles_for_existing_users.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
profiles/migrations/0003_profiles_for_existing_users.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
profiles/migrations/0003_profiles_for_existing_users.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
""" Create Profiles for existing Users """ from __future__ import unicode_literals def create_profiles(apps, schema_editor): """ Create Profiles for all users that do't have it """ Users = apps.get_model("auth", "User") Profile = apps.get_model("profiles", "Profile") for user in Users.object...
21.1875
51
0.669617
""" Create Profiles for existing Users """ from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models def create_profiles(apps, schema_editor): """ Create Profiles for all users that do't have it """ Users = apps.get_model("auth", "User") Pr...
0
0
0
163
0
0
0
30
68
b9e593578f911b147e0aa9611956dc2039e2b45f
711
py
Python
Python Programs/django_project/blog/get_request.py
mkpro118/github-slideshow
9e5dad667c81b90a3f7a63cb911e0ce41c0e5b8c
[ "MIT" ]
3
2021-06-13T20:21:08.000Z
2021-12-19T08:46:18.000Z
Python Programs/django_project/blog/get_request.py
mkpro118/mkpro118-repository
31670f03e529750720cdfb764bb2c3d3d6e91a04
[ "MIT" ]
3
2021-06-08T21:43:24.000Z
2021-06-09T07:56:31.000Z
Python Programs/django_project/blog/get_request.py
mkpro118/github-slideshow
9e5dad667c81b90a3f7a63cb911e0ce41c0e5b8c
[ "MIT" ]
2
2021-12-20T14:51:54.000Z
2022-03-19T02:29:56.000Z
_requests = {}
27.346154
70
0.699015
from threading import current_thread from django.utils.deprecation import MiddlewareMixin _requests = {} def get_request(): return _requests.get(current_thread().ident, None) class RequestMiddleware(MiddlewareMixin): def process_request(self, request): _requests[current_thread().i...
0
0
0
490
0
53
0
46
98
72750fe3b07b4b6c588f86e209faa589b8b1112c
2,815
py
Python
crawl_for_guazi/dataReader.py
hcffffff/secondhand-car-price-prediction
522b5fa7d1b3e61234766df9b61739211042bc8d
[ "CC0-1.0" ]
null
null
null
crawl_for_guazi/dataReader.py
hcffffff/secondhand-car-price-prediction
522b5fa7d1b3e61234766df9b61739211042bc8d
[ "CC0-1.0" ]
null
null
null
crawl_for_guazi/dataReader.py
hcffffff/secondhand-car-price-prediction
522b5fa7d1b3e61234766df9b61739211042bc8d
[ "CC0-1.0" ]
null
null
null
import json import pandas as pd import os def getDict(title, dict): ''' ''' for child in dict: if child['title'] == title: return child return None def readSingleCarFile(path): ''' allDatajson ''' with open(path) as f: car_dict = json.load(f) ...
47.711864
244
0.623446
import json import pandas as pd import os def getDict(title, dict): ''' 获取一个子列表,并返回该列表 ''' for child in dict: if child['title'] == title: return child return None def readSingleCarFile(path): ''' 读位于allData目录下的单个车辆信息json文件 ''' with open(path) as f: car...
390
0
0
0
0
0
0
0
0
cd6609433476115c7f383118c51cc74906243bd4
19
py
Python
src/bl_schedule/__init__.py
niebloomj/bl-schedule
a8c5d21d887d39260a8a2d850ebd64d72d4c2227
[ "MIT" ]
null
null
null
src/bl_schedule/__init__.py
niebloomj/bl-schedule
a8c5d21d887d39260a8a2d850ebd64d72d4c2227
[ "MIT" ]
19
2022-03-04T02:59:00.000Z
2022-03-28T03:35:39.000Z
src/bl_schedule/__init__.py
niebloomj/bl-schedule
a8c5d21d887d39260a8a2d850ebd64d72d4c2227
[ "MIT" ]
null
null
null
"""BL Schedule."""
9.5
18
0.526316
"""BL Schedule."""
0
0
0
0
0
0
0
0
0
b63d906a4974c18d8dfd527b2aad409746c00f6c
2,323
py
Python
datalab/context/commands/_projects.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
198
2016-07-14T19:47:52.000Z
2022-03-15T08:45:21.000Z
datalab/context/commands/_projects.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
534
2016-07-15T19:12:43.000Z
2022-03-11T23:11:39.000Z
datalab/context/commands/_projects.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
86
2016-07-13T17:39:05.000Z
2021-11-03T03:39:41.000Z
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
38.716667
99
0.722772
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
0
672
0
0
0
613
0
0
138
fc1f1a3ceee91538d48acfeecd775aa8980f93e8
6,275
py
Python
website/views.py
nahgil2614/country-management-system
a845e7f1c5216cb9e316c459e9843cf97b4f001c
[ "MIT" ]
null
null
null
website/views.py
nahgil2614/country-management-system
a845e7f1c5216cb9e316c459e9843cf97b4f001c
[ "MIT" ]
null
null
null
website/views.py
nahgil2614/country-management-system
a845e7f1c5216cb9e316c459e9843cf97b4f001c
[ "MIT" ]
1
2021-12-02T14:37:58.000Z
2021-12-02T14:37:58.000Z
from flask import Blueprint views = Blueprint('views', __name__)
48.269231
198
0.580398
from flask import Blueprint, render_template, request, flash, jsonify, redirect, url_for from flask_login import login_required, current_user from . import db, cursor, dbmysql import json import random from . import user_info views = Blueprint('views', __name__) @views.route('/', methods=['GET', 'POST']) @login_requi...
0
5,919
0
0
0
0
0
88
202
1f443840a7e9287bb448c92b7f3e3bc8652f23bb
3,916
py
Python
taint_analysis/helper.py
k-karakatsanis/BootStomp
954ddcdb7a286bd0d6e5be0522266be729baabe5
[ "BSD-2-Clause" ]
354
2017-08-16T08:19:07.000Z
2022-03-11T02:39:58.000Z
taint_analysis/helper.py
ethicalhackeragnidhra/BootStomp
77e4d090585ad1b28bf3ebb65b8eab33e785b78e
[ "BSD-2-Clause" ]
11
2017-08-17T03:36:11.000Z
2022-02-22T07:11:27.000Z
taint_analysis/helper.py
ethicalhackeragnidhra/BootStomp
77e4d090585ad1b28bf3ebb65b8eab33e785b78e
[ "BSD-2-Clause" ]
71
2017-08-16T06:54:36.000Z
2022-01-10T09:20:42.000Z
# Globals: risky but friendly peeps to speed up coding # A CFG constructed by angr CFGFast analysis cfg = '' # Count of methods discovered by auto-analysis methods_identified = 0 # A list of FuncInfo() structures holding information on # functions identified by auto-analysis functions_info = [] # The structure hold...
31.580645
135
0.712717
import operator from idaapi import * from idautils import * # Globals: risky but friendly peeps to speed up coding # A CFG constructed by angr CFGFast analysis cfg = '' # Count of methods discovered by auto-analysis methods_identified = 0 # A list of FuncInfo() structures holding information on # functions identified...
0
0
0
142
0
2,621
0
-6
223
a1bb7d528e1f9be8d3d7e6c5ad3dc47b03bba61c
2,079
py
Python
internalCheck/data_saver.py
dario617/RSE-Puppy-bot
f25df7364def0f58ce7abf9f646bb3acbf25b646
[ "MIT" ]
null
null
null
internalCheck/data_saver.py
dario617/RSE-Puppy-bot
f25df7364def0f58ce7abf9f646bb3acbf25b646
[ "MIT" ]
null
null
null
internalCheck/data_saver.py
dario617/RSE-Puppy-bot
f25df7364def0f58ce7abf9f646bb3acbf25b646
[ "MIT" ]
1
2019-11-27T15:43:00.000Z
2019-11-27T15:43:00.000Z
#coding: utf-8
34.081967
162
0.64406
#coding: utf-8 import json, pymysql, datetime, time import mysqlcredentials def month_to_number(month): m = { 'ene': 1, 'jan': 1, 'feb': 2, 'mar': 3, 'abr':4, 'apr':4, 'may':5, 'jun':6, 'jul':7, 'ago':8, 'aug':8, 'sep':9, 'oct':10, 'nov':11, 'dic':12, 'dec':12 } return m[month] def text_to_dict(text): try: ...
6
0
0
0
0
1,884
0
17
159
5843078ff0b838386067b41258a285cd41727b65
13,922
py
Python
server/main/models/metadata.py
somtirtharoy/edd
b69c42d6d3f383347054f2df76d4e577642b2021
[ "BSD-3-Clause-LBNL" ]
13
2016-11-15T07:33:40.000Z
2021-09-22T12:19:13.000Z
server/main/models/metadata.py
somtirtharoy/edd
b69c42d6d3f383347054f2df76d4e577642b2021
[ "BSD-3-Clause-LBNL" ]
40
2017-04-04T15:20:14.000Z
2022-03-31T04:34:37.000Z
server/main/models/metadata.py
somtirtharoy/edd
b69c42d6d3f383347054f2df76d4e577642b2021
[ "BSD-3-Clause-LBNL" ]
10
2017-09-21T07:27:01.000Z
2022-03-10T17:02:19.000Z
"""Models for handling metadata.""" import logging logger = logging.getLogger(__name__)
33.386091
88
0.58641
"""Models for handling metadata.""" import dataclasses import logging from django.db import models from django.db.models import F, Func from django.utils.translation import gettext_lazy as _ from edd.fields import VarCharField from .common import EDDSerialize logger = logging.getLogger(__name__) def __getattr__(...
0
1,200
0
11,974
0
326
0
77
251
60c5948b435621c10b46244e429ad6569eb151a6
467
py
Python
SikuliScripts/Settings.sikuli/Settings.py
JabRef-628298/jabref-4.2
ebf5ff3e1a22ec5881de001a1fbc9214d3c1348d
[ "MIT" ]
null
null
null
SikuliScripts/Settings.sikuli/Settings.py
JabRef-628298/jabref-4.2
ebf5ff3e1a22ec5881de001a1fbc9214d3c1348d
[ "MIT" ]
null
null
null
SikuliScripts/Settings.sikuli/Settings.py
JabRef-628298/jabref-4.2
ebf5ff3e1a22ec5881de001a1fbc9214d3c1348d
[ "MIT" ]
null
null
null
App.open("java -jar C:/JabRef-4.2-fat.jar") wait(30) click("1529632189350.png") wait(2) click("1529632296782.png") wait(2) click("1530899089323.png") wait(2) click("1530899105356.png") wait(2) click("1530899134798.png") wait(2) click("1530899120685.png") wait(2) click("1530899134798.png") wait(2) click("1530899165770.p...
16.678571
43
0.732334
App.open("java -jar C:/JabRef-4.2-fat.jar") wait(30) click("1529632189350.png") wait(2) click("1529632296782.png") wait(2) click("1530899089323.png") wait(2) click("1530899105356.png") wait(2) click("1530899134798.png") wait(2) click("1530899120685.png") wait(2) click("1530899134798.png") wait(2) click("1530899165770.p...
0
0
0
0
0
0
0
0
0
25a62d15e741772a1316fa861a4d7b911a81d427
4,125
py
Python
scripts/email_flags.py
lbouma/Cyclopath
d09d927a1e6f9e07924007fd39e8e807cd9c0f8c
[ "Apache-2.0" ]
15
2015-05-06T05:11:48.000Z
2021-12-03T14:56:58.000Z
scripts/email_flags.py
landonb/Cyclopath
d09d927a1e6f9e07924007fd39e8e807cd9c0f8c
[ "Apache-2.0" ]
null
null
null
scripts/email_flags.py
landonb/Cyclopath
d09d927a1e6f9e07924007fd39e8e807cd9c0f8c
[ "Apache-2.0" ]
8
2015-05-06T05:11:36.000Z
2020-11-04T05:11:22.000Z
#!/usr/bin/python # Copyright (c) 2006-2013 Regents of the University of Minnesota. # For licensing terms, see the file LICENSE. # Get and set email flags for a given user import sys # SYNC_ME: Search: Scripts: Load pyserver. import os import sys sys.path.insert(0, os.path.abspath('%s/util' % (os.pa...
31.730769
79
0.636848
#!/usr/bin/python # Copyright (c) 2006-2013 Regents of the University of Minnesota. # For licensing terms, see the file LICENSE. # Get and set email flags for a given user import optparse import sys # SYNC_ME: Search: Scripts: Load pyserver. import os import sys sys.path.insert(0, os.path.abspath('%s/util' ...
0
0
0
0
0
2,553
0
8
135
2df702486a72c56443e6a7b430b136b4d1ae7c3b
5,493
py
Python
pyKinectTools/algs/GeodesicSkeleton.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
33
2015-04-07T16:28:04.000Z
2021-11-22T00:28:43.000Z
pyKinectTools/algs/GeodesicSkeleton.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyKinectTools/algs/GeodesicSkeleton.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
13
2015-04-07T16:28:34.000Z
2021-04-26T08:04:36.000Z
import numpy as np import scipy.ndimage as nd import pyKinectTools.algs.Dijkstras as dgn # from pyKinectTools.utils.DepthUtils import * from copy import deepcopy from skimage.draw import circle def geodesic_extrema_MPI(im_pos, centroid=None, iterations=1, visualize=False, box=None): ''' im : im_pos (NxMx3) ''' if...
30.016393
119
0.697797
import numpy as np import scipy.ndimage as nd import pyKinectTools.algs.Dijkstras as dgn # from pyKinectTools.utils.DepthUtils import * from pyKinectTools.utils.DepthUtils import depthIm2PosIm from copy import deepcopy from skimage.draw import circle from IPython import embed from pylab import * def geodesic_extrema...
0
0
0
0
0
451
0
37
136
4a98389093d9400c70d6d47b1c383ddcaad7dbc3
21,031
py
Python
salt/states/pbm.py
mariusvw/saltstack---salt
26507afee323b567159795bb45c4b43f192dd4be
[ "Apache-2.0" ]
null
null
null
salt/states/pbm.py
mariusvw/saltstack---salt
26507afee323b567159795bb45c4b43f192dd4be
[ "Apache-2.0" ]
null
null
null
salt/states/pbm.py
mariusvw/saltstack---salt
26507afee323b567159795bb45c4b43f192dd4be
[ "Apache-2.0" ]
null
null
null
""" Manages VMware storage policies (called pbm because the vCenter endpoint is /pbm) Examples ======== Storage policy -------------- .. code-block:: python { "name": "salt_storage_policy" "description": "Managed by Salt. Random capability values.", "resource_type": "STORAGE", "s...
37.223009
89
0.491988
""" Manages VMware storage policies (called pbm because the vCenter endpoint is /pbm) Examples ======== Storage policy -------------- .. code-block:: python { "name": "salt_storage_policy" "description": "Managed by Salt. Random capability values.", "resource_type": "STORAGE", "s...
0
0
0
0
0
531
0
0
71
0be00f95c2aa2e9ca346775c283e68c0831e2d3f
548
py
Python
setup.py
btotharye/mattermost-wrapper-v4
955972e3cca401b4e115afd6eb5aaf37e487480b
[ "MIT" ]
1
2018-03-31T13:20:45.000Z
2018-03-31T13:20:45.000Z
setup.py
btotharye/mattermost-wrapper-v4
955972e3cca401b4e115afd6eb5aaf37e487480b
[ "MIT" ]
3
2019-10-17T07:59:31.000Z
2020-02-18T09:59:16.000Z
setup.py
btotharye/mattermost-wrapper-v4
955972e3cca401b4e115afd6eb5aaf37e487480b
[ "MIT" ]
null
null
null
# Always prefer setuptools over distutils from setuptools import setup setup( name="mattermostwrapper", packages=['mattermostwrapper'], version="2.2", author="Brian Hopkins", author_email="btotharye@gmail.com", url='https://github.com/btotharye/mattermostwrapper.git', download_url='https:...
24.909091
85
0.684307
# Always prefer setuptools over distutils from setuptools import setup setup( name="mattermostwrapper", packages=['mattermostwrapper'], version="2.2", author="Brian Hopkins", author_email="btotharye@gmail.com", url='https://github.com/btotharye/mattermostwrapper.git', download_url='https:...
0
0
0
0
0
0
0
0
0