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
4f1cf3c0ae52adf3586dbd9ace2922b02750dbca
347
py
Python
ABC/abc051-abc100/abc057/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ABC/abc051-abc100/abc057/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ABC/abc051-abc100/abc057/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
'''input 23 2 1 9 12 21 ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem A if __name__ == '__main__': current_hour, add_hour = list(map(int, input().split())) contest_hour = current_hour + add_hour if contest_hour < 24: print(contest_hour) else: ...
15.086957
61
0.576369
'''input 23 2 1 9 12 21 ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem A if __name__ == '__main__': current_hour, add_hour = list(map(int, input().split())) contest_hour = current_hour + add_hour if contest_hour < 24: print(contest_hour) else: ...
0
0
0
0
0
0
0
0
0
a0af9bffe8473b6c0d6be526c0dc67a6cfca8472
1,296
py
Python
Number of Islands.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Number of Islands.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Number of Islands.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water. Example 1: Input: 11110 11010 11000 00000 Output: 1 Exa...
23.563636
256
0.471451
''' Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water. Example 1: Input: 11110 11010 11000 00000 Output: 1 Exa...
0
0
0
877
0
0
0
0
23
b9a37f549a9f2cd296ab398602fda182177dac33
24,050
py
Python
original-paas/copy_to_container/www/spdpaas/src/app/features/customizedHandle.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
original-paas/copy_to_container/www/spdpaas/src/app/features/customizedHandle.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
original-paas/copy_to_container/www/spdpaas/src/app/features/customizedHandle.py
yishan1331/docker-practice
91a1a434cbffc33790678af5e09de310386812d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #Department Module Description """ ============================================================================== created : 03/20/2017 Last update: 02/08/2021 Developer: Wei-Chun Chang Lite Version 2 @Yishan08212019 API version 1.0 Filename: customizedHandle.py Description: basically, all...
38.235294
142
0.57052
# -*- coding: utf-8 -*- #Department Module Description """ ============================================================================== created : 03/20/2017 Last update: 02/08/2021 Developer: Wei-Chun Chang Lite Version 2 @Yishan08212019 API version 1.0 Filename: customizedHandle.py Description: basically, all...
1,872
17,246
0
1,257
182
1,201
0
16
347
6b3efd1aae05ddf74ce1988978831f8593a45457
9,521
py
Python
kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/storage/zfs/zfs_delegate_admin.py
jkroepke/homelab
ffdd849e39b52972870f5552e734fd74cb1254a1
[ "Apache-2.0" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/storage/zfs/zfs_delegate_admin.py
jkroepke/kubernetes-the-hard-way
70fd096a04addec0777744c9731a4e3fbdc40c8f
[ "Apache-2.0" ]
null
null
null
kubernetes-the-hard-way/system/collections/ansible_collections/community/general/plugins/modules/storage/zfs/zfs_delegate_admin.py
jkroepke/kubernetes-the-hard-way
70fd096a04addec0777744c9731a4e3fbdc40c8f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Nate Coraor <nate@coraor.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: zfs_delega...
35.928302
152
0.595106
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Nate Coraor <nate@coraor.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: zfs_delega...
0
1,166
0
3,773
0
969
0
39
92
c37c17386d62d65f5ba6388fde11f69c4d3ea317
590
py
Python
1 - Fundamentos Python/Aula14.py
elton-souza/IGTI-Python
2633dd70af8403a6ab52f8f97ee53063dbb0ef77
[ "MIT" ]
null
null
null
1 - Fundamentos Python/Aula14.py
elton-souza/IGTI-Python
2633dd70af8403a6ab52f8f97ee53063dbb0ef77
[ "MIT" ]
null
null
null
1 - Fundamentos Python/Aula14.py
elton-souza/IGTI-Python
2633dd70af8403a6ab52f8f97ee53063dbb0ef77
[ "MIT" ]
null
null
null
#Funes '''' =========================================== def equacao_reta(x): y_x = 2 * x + 1 return y_x x = float(input("Entre com o valor a ser calculado para y(x) = 2x+1: ")) resultado = equacao_reta(x) print("O resultado encontrado foi Y = %.0f" %resultado) ============================================ ''' ...
24.583333
72
0.540678
#Funções '''' =========================================== def equacao_reta(x): y_x = 2 * x + 1 return y_x x = float(input("Entre com o valor a ser calculado para y(x) = 2x+1: ")) resultado = equacao_reta(x) print("O resultado encontrado foi Y = %.0f" %resultado) ============================================ ''...
4
0
0
0
0
34
0
0
22
c40c41135506377f0f359d5c0a330b5d9eec0701
4,699
py
Python
src/lib/utils/convert_to_unity_json.py
gngdb/ROMP
a940af92e266530f4fe65807ab5920f0b4246511
[ "Apache-2.0" ]
null
null
null
src/lib/utils/convert_to_unity_json.py
gngdb/ROMP
a940af92e266530f4fe65807ab5920f0b4246511
[ "Apache-2.0" ]
null
null
null
src/lib/utils/convert_to_unity_json.py
gngdb/ROMP
a940af92e266530f4fe65807ab5920f0b4246511
[ "Apache-2.0" ]
null
null
null
# Imports # noinspection PyPep8Naming # This class converts AMASS SMPLH .npz body animation files into Unity-readable .json files. # See AMASSConverterExamples file for an example on how to use this class. if __name__ == "__main__": main()
35.870229
118
0.633326
# Imports import numpy as np import os import json import sys # noinspection PyPep8Naming from scipy.spatial.transform import Rotation # This class converts AMASS SMPLH .npz body animation files into Unity-readable .json files. # See AMASSConverterExamples file for an example on how to use this class. class AMASSData...
0
255
0
3,786
0
268
0
-13
155
b79dfb2731620c5e4b9d0314f5a7523683aeb4e4
577
py
Python
modules/tests/test_strtodate.py
OpenSO2/so2eval
0bc896360f8021e930bdadc707540220fe6b0f9e
[ "MIT" ]
null
null
null
modules/tests/test_strtodate.py
OpenSO2/so2eval
0bc896360f8021e930bdadc707540220fe6b0f9e
[ "MIT" ]
null
null
null
modules/tests/test_strtodate.py
OpenSO2/so2eval
0bc896360f8021e930bdadc707540220fe6b0f9e
[ "MIT" ]
null
null
null
# coding: utf-8 import sys import os sys.path.insert(1, os.path.join(sys.path[0], '..'))
28.85
137
0.667244
# coding: utf-8 import sys import os sys.path.insert(1, os.path.join(sys.path[0], '..')) from strtodate import strtodate def test_strtodate(): pattern = ".*(?P<year>\w{4})_(?P<month>\w{2})_(?P<day>\w{2})-(?P<hour>\w{2})_(?P<minute>\w{2})_(?P<second>\w{2})_(?P<millisecond>\w{3})" string = "testing_2017_06_08-12_19_4...
0
0
0
0
0
432
0
10
45
4ab81df6dbe52b14c06f999571d26610f09615e1
9,696
py
Python
src/command_modules/azure-cli-network/azure/cli/command_modules/network/mgmt_lb/lib/operations/lb_operations.py
enterstudio/azure-cli
b0504c3b634e17f1afc944a9572864a40da6bc18
[ "MIT" ]
2
2020-07-22T18:53:05.000Z
2021-09-11T05:52:33.000Z
src/command_modules/azure-cli-network/azure/cli/command_modules/network/mgmt_lb/lib/operations/lb_operations.py
enterstudio/azure-cli
b0504c3b634e17f1afc944a9572864a40da6bc18
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-network/azure/cli/command_modules/network/mgmt_lb/lib/operations/lb_operations.py
enterstudio/azure-cli
b0504c3b634e17f1afc944a9572864a40da6bc18
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
52.129032
694
0.680693
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
0
0
0
8,791
0
0
0
83
112
d68f9630a99eb9518e8240ecbf2ea45e3960cb5d
111
py
Python
Beginner/URI_2753.py
rbshadow/Python_URI
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
[ "MIT" ]
3
2016-10-24T13:26:45.000Z
2020-10-12T17:44:00.000Z
Beginner/URI_2753.py
rbshadow/Python_URI
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
[ "MIT" ]
null
null
null
Beginner/URI_2753.py
rbshadow/Python_URI
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
[ "MIT" ]
null
null
null
if __name__ == '__main__': math()
13.875
29
0.504505
def math(): for i in range(97, 123): print(i, 'e', chr(i)) if __name__ == '__main__': math()
0
0
0
0
0
49
0
0
22
53f161c236da9d5618f68b4dac2da82c740c07d7
4,081
py
Python
LWCProto.py
fmolinagomez/LightWeightCardPrototyping
f2d64e36fd01f0101f33da577bdbeb55959df740
[ "MIT" ]
2
2021-11-02T13:42:16.000Z
2021-11-03T12:23:03.000Z
LWCProto.py
fmolinagomez/LightWeightCardPrototyping
f2d64e36fd01f0101f33da577bdbeb55959df740
[ "MIT" ]
null
null
null
LWCProto.py
fmolinagomez/LightWeightCardPrototyping
f2d64e36fd01f0101f33da577bdbeb55959df740
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import csv import os import numpy as np import cairo import argparse import layout from draw_card import drawCard from card_model import CardModel from card_model import CardDeck def extant_file(x): """ 'Type' for argparse - checks that file exists but does not open. """ if...
33.178862
143
0.668464
#! /usr/bin/env python3 import csv import json import os import pathlib import sys import numpy as np import cairo import argparse import layout from draw_card import drawCard from card_model import CardModel from card_model import CardDeck def extant_file(x): """ 'Type' for argparse - checks that file ex...
0
0
0
0
0
0
0
-28
66
10688525c6f04116af3dec2bf611c1965388a673
926
gyp
Python
OpenGL/app/examples/examples.gyp
legendlee1314/GLmacia
67ef41c83404ae0346c522b0045454826c30b8bd
[ "MIT" ]
null
null
null
OpenGL/app/examples/examples.gyp
legendlee1314/GLmacia
67ef41c83404ae0346c522b0045454826c30b8bd
[ "MIT" ]
null
null
null
OpenGL/app/examples/examples.gyp
legendlee1314/GLmacia
67ef41c83404ae0346c522b0045454826c30b8bd
[ "MIT" ]
null
null
null
{ 'variables': { 'project_name': 'examples', 'current_dir': '<(DEPTH)', }, 'targets': [ { 'target_name': 'basic_sample', 'type': 'executable', 'dependencies': [ '<(current_dir)/src/macia.gyp:macia', ], 'sources': [ 'basic_sample.cc', ], 'includ...
19.291667
45
0.449244
{ 'variables': { 'project_name': 'examples', 'current_dir': '<(DEPTH)', }, 'targets': [ { 'target_name': 'basic_sample', 'type': 'executable', 'dependencies': [ '<(current_dir)/src/macia.gyp:macia', ], 'sources': [ 'basic_sample.cc', ], 'includ...
0
0
0
0
0
0
0
0
0
95f29f2a630d78c09ee7af58af38a85efc9c3ba3
4,287
py
Python
AiComponent/Python/main.py
paychex/fredonia-paychex-ansible
05fda7c349953144606cf57e6765493a7dbaf356
[ "Apache-2.0" ]
1
2019-10-28T15:33:07.000Z
2019-10-28T15:33:07.000Z
AiComponent/Python/main.py
paychex/fredonia-paychex-ansible
05fda7c349953144606cf57e6765493a7dbaf356
[ "Apache-2.0" ]
null
null
null
AiComponent/Python/main.py
paychex/fredonia-paychex-ansible
05fda7c349953144606cf57e6765493a7dbaf356
[ "Apache-2.0" ]
null
null
null
from azure.cognitiveservices.language.luis.authoring import LUISAuthoringClient from msrest.authentication import CognitiveServicesCredentials authoring_key = "bde233f61f5e4e3fa48ff5a11b0f304c" region = "westus" endpoint = "https://{}.api.cognitive.microsoft.com".format(region) # Instatiating a LUIS client client...
44.195876
116
0.608817
from azure.cognitiveservices.language.luis.authoring import LUISAuthoringClient from msrest.authentication import CognitiveServicesCredentials import datetime, json, os, time authoring_key = "bde233f61f5e4e3fa48ff5a11b0f304c" region = "westus" endpoint = "https://{}.api.cognitive.microsoft.com".format(region) # ...
0
0
0
0
0
3,735
0
10
138
ac906e10a55ee0d9f5ea232d8f09bdca379f1df2
4,164
py
Python
tests/core/test_minmax.py
siliconcompiler/siliconcompiler
6aa2b53441608f228bd520b68c0324fc9cf96377
[ "Apache-2.0" ]
424
2021-12-04T15:45:12.000Z
2022-03-31T20:27:55.000Z
tests/core/test_minmax.py
siliconcompiler/siliconcompiler
6aa2b53441608f228bd520b68c0324fc9cf96377
[ "Apache-2.0" ]
105
2021-12-03T21:25:29.000Z
2022-03-31T22:36:59.000Z
tests/core/test_minmax.py
siliconcompiler/siliconcompiler
6aa2b53441608f228bd520b68c0324fc9cf96377
[ "Apache-2.0" ]
38
2021-12-04T21:26:20.000Z
2022-03-21T02:39:29.000Z
# Copyright 2020 Silicon Compiler Authors. All Rights Reserved. ################################## def test_minimum(chip): '''API test for min/max() methods ''' flow = chip.get('option', 'flow') N = len(chip.getkeys('flowgraph', flow , 'syn')) chip.write_flowgraph('minmax.png') chip.write_mani...
29.118881
98
0.564601
# Copyright 2020 Silicon Compiler Authors. All Rights Reserved. import siliconcompiler import pytest @pytest.fixture def chip(): # Create instance of Chip class chip = siliconcompiler.Chip('oh_add') #sequence flowpipe = ['import', 'syn', 'synmin'] tools = { ...
0
1,580
0
0
0
1,898
0
-7
182
ae23de335349edc7d34e6f29097dd0de8db7fbef
5,314
py
Python
Code/run.py
codedecde/WordEmbeddings
84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9
[ "MIT" ]
2
2018-09-19T01:37:31.000Z
2019-09-22T02:45:09.000Z
Code/run.py
codedecde/WordEmbeddings
84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9
[ "MIT" ]
null
null
null
Code/run.py
codedecde/WordEmbeddings
84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9
[ "MIT" ]
null
null
null
import torch.utils.data as ut import torch import cPickle as cp import numpy as np from utils import Progbar, getdata from model import Word2vec from torch.autograd import Variable import torch.optim as optim use_cuda = torch.cuda.is_available() data = filter(lambda x: len(x) > 1, open(TEXT).read().split(' ')) word2i...
34.732026
131
0.640196
import torch.utils.data as ut import torch import cPickle as cp import numpy as np from utils import Progbar, getdata from model import Word2vec from torch.autograd import Variable import torch.optim as optim from constants import * use_cuda = torch.cuda.is_available() data = filter(lambda x: len(x) > 1, open(TEXT).r...
0
0
0
1,451
0
296
0
2
68
647b67367c0e63e28881482b5c1f510ab1372ef4
6,264
py
Python
core/predictor.py
huynhnhathao/hum_to_find
a0d7ec4bab1a7e2f7175956ff2721e23e2448840
[ "MIT" ]
1
2021-12-22T07:30:18.000Z
2021-12-22T07:30:18.000Z
core/predictor.py
huynhnhathao/hum_to_find
a0d7ec4bab1a7e2f7175956ff2721e23e2448840
[ "MIT" ]
null
null
null
core/predictor.py
huynhnhathao/hum_to_find
a0d7ec4bab1a7e2f7175956ff2721e23e2448840
[ "MIT" ]
1
2022-01-28T02:36:17.000Z
2022-01-28T02:36:17.000Z
from typing import Dict, List import pickle import numpy as np def predict_song(neighbors: Dict[str, List[int]]) -> Dict[str, List[int]]: """predict the ranks of song ids for each hum given its retrieved song neighbors The most importance job is choose the first place song The rules are, given o...
39.898089
114
0.552203
from typing import Dict, List import pickle import numpy as np def predict_song(neighbors: Dict[str, List[int]]) -> Dict[str, List[int]]: """predict the ranks of song ids for each hum given its retrieved song neighbors The most importance job is choose the first place song The rules are, given o...
0
0
0
0
0
0
0
0
0
06eed4751ad15e78692e64926dfd2741664949ce
583
py
Python
utils/model_utils.py
jayleicn/moment_detr
a5d0fa0f0b9ab005cf277327da0cb81ac1455194
[ "MIT" ]
90
2021-07-20T19:44:36.000Z
2022-03-30T06:53:07.000Z
utils/model_utils.py
synchrony10/moment_detr
e93f63ff64d702a446a59350e0cd7bdcc417361c
[ "MIT" ]
12
2021-08-03T03:14:00.000Z
2022-03-24T13:03:27.000Z
utils/model_utils.py
synchrony10/moment_detr
e93f63ff64d702a446a59350e0cd7bdcc417361c
[ "MIT" ]
15
2021-07-21T06:13:58.000Z
2022-03-13T02:10:27.000Z
def count_parameters(model, verbose=True): """Count number of parameters in PyTorch model, References: https://discuss.pytorch.org/t/how-do-i-check-the-number-of-parameters-of-a-model/4325/7. from utils.utils import count_parameters count_parameters(model) import sys sys.exit(1) """ n_a...
36.4375
104
0.689537
def count_parameters(model, verbose=True): """Count number of parameters in PyTorch model, References: https://discuss.pytorch.org/t/how-do-i-check-the-number-of-parameters-of-a-model/4325/7. from utils.utils import count_parameters count_parameters(model) import sys sys.exit(1) """ n_a...
0
0
0
0
0
0
0
0
0
923c97b76b64e523bffcff87a6d47e5eb6f80a73
2,247
py
Python
httpolice/exchange.py
bmwiedemann/httpolice
4da2bde3d14a24b0623ee45ae10afd192d6fa771
[ "MIT" ]
1
2019-04-10T12:46:13.000Z
2019-04-10T12:46:13.000Z
httpolice/exchange.py
bmwiedemann/httpolice
4da2bde3d14a24b0623ee45ae10afd192d6fa771
[ "MIT" ]
null
null
null
httpolice/exchange.py
bmwiedemann/httpolice
4da2bde3d14a24b0623ee45ae10afd192d6fa771
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- from httpolice import request, response from httpolice.known import st def complaint_box(*args, **kwargs): """Create an empty exchange that only carries a single notice. This is used (for example, in :mod:`httpolice.framing1`) to report notices that do not correspond to any par...
30.364865
77
0.621273
# -*- coding: utf-8; -*- from httpolice import request, response from httpolice.blackboard import Blackboard from httpolice.known import st class Exchange(Blackboard): # Note that an exchange is a :class:`Blackboard`, # so notices can be reported directly on it. # See :func:`complaint_box`. self_na...
0
177
0
1,076
0
0
0
22
45
331c20c552c40b6bdb2cf47c04c503e2ded9cf8f
2,024
py
Python
python/haarClassifiers/trainHaarCascade.py
NunoDuarte/openCVdevelop
43204a903a3c96758332a86c7d6b10c285d6ed37
[ "MIT" ]
null
null
null
python/haarClassifiers/trainHaarCascade.py
NunoDuarte/openCVdevelop
43204a903a3c96758332a86c7d6b10c285d6ed37
[ "MIT" ]
null
null
null
python/haarClassifiers/trainHaarCascade.py
NunoDuarte/openCVdevelop
43204a903a3c96758332a86c7d6b10c285d6ed37
[ "MIT" ]
null
null
null
create_pos_n_neg()
33.180328
99
0.528656
import urllib import cv2 import numpy as np import os def store_raw_images(): neg_images_link = 'http://image-net.org/api/text/imagenet.synset.geturls?wnid=n07942152' #neg_images_link = 'http://image-net.org/api/text/imagenet.synset.geturls?wnid=n00523513' neg_images_urls = urllib.urlopen(neg_images_link)...
0
0
0
0
0
1,881
0
-34
157
40d75528c0577bc7d64f4d85d7514f0c5d3b052f
1,819
py
Python
play/EraPostgresProvision/scripts/Substrate_Era_PostgreSQL_DB_Action___pre_create___Task__2GetProfileIDs.py
halsayed/calm
46c93ac2b02227663f0184d149f62d142b2638cc
[ "MIT" ]
null
null
null
play/EraPostgresProvision/scripts/Substrate_Era_PostgreSQL_DB_Action___pre_create___Task__2GetProfileIDs.py
halsayed/calm
46c93ac2b02227663f0184d149f62d142b2638cc
[ "MIT" ]
null
null
null
play/EraPostgresProvision/scripts/Substrate_Era_PostgreSQL_DB_Action___pre_create___Task__2GetProfileIDs.py
halsayed/calm
46c93ac2b02227663f0184d149f62d142b2638cc
[ "MIT" ]
1
2021-11-16T10:28:42.000Z
2021-11-16T10:28:42.000Z
# Set creds and headers era_user = '@@{era_creds.username}@@' era_pass = '@@{era_creds.secret}@@' headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} # Get Software Profile ID url = "https://@@{era_ip}@@:8443/era/v0.8/profiles?type=Software&name=@@{software_profile}@@" resp = urlreq(url, v...
45.475
109
0.706432
# Set creds and headers era_user = '@@{era_creds.username}@@' era_pass = '@@{era_creds.secret}@@' headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} # Get Software Profile ID url = "https://@@{era_ip}@@:8443/era/v0.8/profiles?type=Software&name=@@{software_profile}@@" resp = urlreq(url, v...
0
0
0
0
0
0
0
0
0
effc868ba3985263b54f27c9ba1dafa032b3a960
351
py
Python
services/shortto.py
joshthecoder/shorty-python
35687d010683944d75e3f0dce7799903296172c5
[ "MIT" ]
11
2015-05-29T04:58:28.000Z
2020-05-31T17:07:52.000Z
services/shortto.py
joshthecoder/shorty-python
35687d010683944d75e3f0dce7799903296172c5
[ "MIT" ]
null
null
null
services/shortto.py
joshthecoder/shorty-python
35687d010683944d75e3f0dce7799903296172c5
[ "MIT" ]
2
2015-03-10T06:22:31.000Z
2018-06-18T18:20:59.000Z
## Shorty ## Copyright 2009 Joshua Roesslein ## See LICENSE ## @url short.to
21.9375
65
0.60114
## Shorty ## Copyright 2009 Joshua Roesslein ## See LICENSE ## @url short.to class Shortto(Service): def shrink(self, bigurl): resp = request('http://short.to/s.txt', {'url': bigurl}) return resp.read() def expand(self, tinyurl): resp = request('http://long.to/do.txt', {'url': tinyurl...
0
0
0
250
0
0
0
0
22
d545d30c9fd67772bfbdc34fdd46ac0419574c8a
19,748
py
Python
ws/test_web_services.py
OpenTreeOfLife/otcetera
2b5ff724094f768df9bc37b9f0ffb319abd03a20
[ "BSD-2-Clause", "MIT" ]
4
2015-04-29T09:23:12.000Z
2020-11-30T07:43:07.000Z
ws/test_web_services.py
OpenTreeOfLife/otcetera
2b5ff724094f768df9bc37b9f0ffb319abd03a20
[ "BSD-2-Clause", "MIT" ]
70
2015-03-19T08:19:40.000Z
2022-03-21T19:06:18.000Z
ws/test_web_services.py
OpenTreeOfLife/otcetera
2b5ff724094f768df9bc37b9f0ffb319abd03a20
[ "BSD-2-Clause", "MIT" ]
3
2015-07-03T19:21:20.000Z
2015-12-02T13:24:53.000Z
#!/usr/bin/env python import requests import time import logging try: from Queue import Queue except: from threading import Thread _LOG = logging.getLogger(__name__) _LOG.setLevel(logging.DEBUG) _lh = logging.StreamHandler() _lh.setFormatter(logging.Formatter("[%(asctime)s] %(filename)s (%(lineno)3d): %(levelname) ...
42.377682
239
0.577172
#!/usr/bin/env python import subprocess import requests import json import time import logging try: from Queue import Queue except: from queue import Queue from threading import Thread, RLock _LOG = logging.getLogger(__name__) _LOG.setLevel(logging.DEBUG) _lh = logging.StreamHandler() _lh.setFormatter(logging.F...
0
295
0
4,434
0
6,837
0
-13
301
76e4e379bdb364fc335472dd11b27d14c6dc3696
1,572
py
Python
coinds/cassandra/poll_coins.py
skwongg/coins
fe9840cdee6bdf10854d5312e6fc52154c081dfc
[ "MIT" ]
1
2018-03-06T01:59:57.000Z
2018-03-06T01:59:57.000Z
coinds/cassandra/poll_coins.py
skwongg/coins
fe9840cdee6bdf10854d5312e6fc52154c081dfc
[ "MIT" ]
2
2020-06-05T17:07:09.000Z
2021-06-10T18:10:16.000Z
coinds/cassandra/poll_coins.py
skwongg/coins
fe9840cdee6bdf10854d5312e6fc52154c081dfc
[ "MIT" ]
null
null
null
from cassandra.cluster import Cluster from cassandra.cqlengine import connection from cassandra.cqlengine.management import sync_table from coins import Coin CQLENG_ALLOW_SCHEMA_MANAGEMENT='CQLENG_ALLOW_SCHEMA_MANAGEMENT' cluster=Cluster() connection.setup(['127.0.0.1'], "cassy", protocol_version=3) class CoinPrice a...
46.235294
615
0.771628
from cassandra.cluster import Cluster from cassandra.cqlengine import connection from cassandra.cqlengine.management import sync_table from coins import Coin CQLENG_ALLOW_SCHEMA_MANAGEMENT='CQLENG_ALLOW_SCHEMA_MANAGEMENT' cluster=Cluster() connection.setup(['127.0.0.1'], "cassy", protocol_version=3) class CoinPrice a...
12
0
0
0
0
0
0
0
0
b1edd974dc7790b129ef197cf1042e0dc3dc1c81
3,695
py
Python
genestack_client/data_flow_editor.py
genestack/python-client
083eb0508dc99c7575ba7f115595f2535f007583
[ "MIT" ]
2
2017-08-30T22:32:59.000Z
2021-07-20T10:08:23.000Z
genestack_client/data_flow_editor.py
genestack/python-client
083eb0508dc99c7575ba7f115595f2535f007583
[ "MIT" ]
58
2015-10-19T08:36:00.000Z
2020-12-07T13:48:17.000Z
genestack_client/data_flow_editor.py
genestack/python-client
083eb0508dc99c7575ba7f115595f2535f007583
[ "MIT" ]
6
2015-10-21T21:43:45.000Z
2021-01-06T20:33:53.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future import standard_library standard_library.install_aliases()
39.308511
118
0.661434
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future import standard_library standard_library.install_aliases() from builtins import * from genestack_client import Application, FilesUtil,...
0
0
0
3,321
0
0
0
61
67
299fd36aab0da8b10d2e00a4a1f71ae4cf849959
12,847
py
Python
examples/defcon27-quals-speedrun-002/exploit_0.py
SQLab/CRAXplusplus
0cef3434c37eea73e72e0e75332c8d67e73741cd
[ "MIT" ]
15
2022-01-04T16:58:52.000Z
2022-03-28T18:01:55.000Z
examples/defcon27-quals-speedrun-002/exploit_0.py
aesophor/CRAXplusplus
caacbeb4fadb5452ac3bf2faf5aff33580d19cca
[ "MIT" ]
7
2022-01-04T13:07:18.000Z
2022-03-24T14:38:13.000Z
examples/defcon27-quals-speedrun-002/exploit_0.py
SQLab/CRAXplusplus
0cef3434c37eea73e72e0e75332c8d67e73741cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 context.update(arch = 'amd64', os = 'linux', log_level = 'info') target = ELF('./target', checksec=False) libc_2_24_so = ELF('./libc-2.24.so', checksec=False) __libc_csu_init = 0x400840 __libc_csu_init_call_target = 0x400e48 __libc_csu_init_gadget1 = 0x400896 __libc_csu_init_gadget2 = 0x400880 ...
120.065421
9,006
0.732856
#!/usr/bin/env python3 from pwn import * context.update(arch = 'amd64', os = 'linux', log_level = 'info') target = ELF('./target', checksec=False) libc_2_24_so = ELF('./libc-2.24.so', checksec=False) __libc_csu_init = 0x400840 __libc_csu_init_call_target = 0x400e48 __libc_csu_init_gadget1 = 0x400896 __libc_csu_init_g...
0
0
0
0
0
0
0
-4
22
802a3bd1834812a7a38a6c8b32a5bf8db0b48403
879
py
Python
tests/test_docs.py
regebro/passwordmetrics
47f5c6eaad3b3f503094fdb456befa8bcb8a1b19
[ "MIT" ]
6
2015-04-29T17:07:55.000Z
2021-08-06T14:28:20.000Z
tests/test_docs.py
regebro/passwordmetrics
47f5c6eaad3b3f503094fdb456befa8bcb8a1b19
[ "MIT" ]
null
null
null
tests/test_docs.py
regebro/passwordmetrics
47f5c6eaad3b3f503094fdb456befa8bcb8a1b19
[ "MIT" ]
1
2017-12-23T06:36:26.000Z
2017-12-23T06:36:26.000Z
import sys import re import doctest import manuel.doctest import manuel.codeblock import manuel.testing import unittest if sys.version_info[0] < 3: # Just don't do them under Python 3. # Sigh. if __name__ == '__main__': unittest.TextTestRunner().run(additional_tests())
30.310345
83
0.613197
import sys import re import doctest import manuel.doctest import manuel.codeblock import manuel.testing import unittest if sys.version_info[0] < 3: # Just don't do them under Python 3. # Sigh. class CustomChecker(doctest.OutputChecker): def check_output(self, want, got, optionflags): ...
0
0
0
567
0
0
0
0
27
71336ba4933f2a37f7f3b0fdded458adb63b6c1d
1,238
py
Python
final_flask/run_ml.py
madbee99/Final_Project
154edb302b6b4494b277e732f72efd1163589c3e
[ "MIT" ]
null
null
null
final_flask/run_ml.py
madbee99/Final_Project
154edb302b6b4494b277e732f72efd1163589c3e
[ "MIT" ]
null
null
null
final_flask/run_ml.py
madbee99/Final_Project
154edb302b6b4494b277e732f72efd1163589c3e
[ "MIT" ]
null
null
null
#data from: https://www.kaggle.com/malapatiravi/graduate-school-admission-data/home
34.388889
95
0.753635
import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import psycopg2 from sqlalchemy import create_engine from config import db_password #data from: https://www.kaggle.com/malapatiravi/graduate-scho...
0
0
0
0
0
865
0
104
177
289c138c6b453a9bc534345857c55549ca620b34
2,781
py
Python
Code/other/my-epstein/civil_violence/server.py
joekroese/math-of-revolution
c831ea3d5f6c56c3861522f71ec47e1a22f9ff2c
[ "MIT" ]
2
2019-12-07T18:16:46.000Z
2020-06-16T10:54:20.000Z
Code/other/my-epstein/civil_violence/server.py
joekroese/math-of-revolution
c831ea3d5f6c56c3861522f71ec47e1a22f9ff2c
[ "MIT" ]
null
null
null
Code/other/my-epstein/civil_violence/server.py
joekroese/math-of-revolution
c831ea3d5f6c56c3861522f71ec47e1a22f9ff2c
[ "MIT" ]
null
null
null
from mesa.visualization.ModularVisualization import ModularServer from mesa.visualization.modules import CanvasGrid from mesa.visualization.UserParam import UserSettableParameter from mesa.visualization.modules import ChartModule from .model import CivilViolenceModel COP_COLOR = "Black" AGENT_QUIET_COLOR = "Blue" AG...
40.304348
108
0.57749
from mesa.visualization.ModularVisualization import ModularServer from mesa.visualization.modules import CanvasGrid from mesa.visualization.UserParam import UserSettableParameter from mesa.visualization.modules import ChartModule from .model import CivilViolenceModel from .agent import Citizen, Cop COP_COLOR = "Blac...
0
0
0
0
0
619
0
10
45
f1f3adb057037033ad40b0b8a142e4de788ee12b
1,724
py
Python
classes/utility.py
aryanmsr/Drone_Delivery
ca682faa4396030fb948e1f289f541bac6e2cf27
[ "MIT" ]
1
2021-09-10T22:36:04.000Z
2021-09-10T22:36:04.000Z
classes/utility.py
aryanmsr/Drone_Delivery
ca682faa4396030fb948e1f289f541bac6e2cf27
[ "MIT" ]
null
null
null
classes/utility.py
aryanmsr/Drone_Delivery
ca682faa4396030fb948e1f289f541bac6e2cf27
[ "MIT" ]
1
2021-03-09T17:17:13.000Z
2021-03-09T17:17:13.000Z
# class Utility: # # def __init__(self): # self.Data = Dataframes() # self.df_orders = self.Data.get_df_orders() # self.grid_rows = self.Data.grid_row # self.grid_cols = self.Data.grid_col # self.df_wrhs = self.Data.get_df_wareouses() # def calc_distance(self, xa, ya, xb, ...
30.245614
82
0.534223
import math from classes.dataframes import * import numpy as np # class Utility: # # def __init__(self): # self.Data = Dataframes() # self.df_orders = self.Data.get_df_orders() # self.grid_rows = self.Data.grid_row # self.grid_cols = self.Data.grid_col # self.df_wrhs = self...
0
0
0
0
0
1,222
0
-2
112
ec6d03f3c81832af35ad4292ffbea309d914297d
1,312
py
Python
models/actors.py
wanderindev/udacity-casting-agency
a123ff26ffc565bfff4f4f829ae7613a6ccb366d
[ "MIT" ]
1
2021-01-10T19:34:24.000Z
2021-01-10T19:34:24.000Z
models/actors.py
wanderindev/udacity-casting-agency
a123ff26ffc565bfff4f4f829ae7613a6ccb366d
[ "MIT" ]
1
2021-04-30T21:07:42.000Z
2021-04-30T21:07:42.000Z
models/actors.py
wanderindev/udacity-casting-agency
a123ff26ffc565bfff4f4f829ae7613a6ccb366d
[ "MIT" ]
null
null
null
from typing import Dict, List, Union from sqlalchemy.dialects.postgresql import ENUM ActorJSON = Dict[str, Union[int, str, List[str]]] gender_enum = ENUM("Male", "Female", name="gender")
29.818182
62
0.623476
from typing import Dict, List, Union from sqlalchemy.dialects.postgresql import ENUM from db import db from models.model_mixin import ModelMixin ActorJSON = Dict[str, Union[int, str, List[str]]] gender_enum = ENUM("Male", "Female", name="gender") class ActorModel(db.Model, ModelMixin): """SQLAlchemy ...
0
291
0
737
0
0
0
16
71
a31eed23d55b6f7f1f91bb159c2db44ee1f8820c
2,535
py
Python
wgs/geno2hierfst.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
null
null
null
wgs/geno2hierfst.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
null
null
null
wgs/geno2hierfst.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
2
2018-09-19T00:52:15.000Z
2021-05-14T23:04:47.000Z
#!/usr/bin/env spcli # this command runs hierarchical FST comparison
28.483146
91
0.584615
#!/usr/bin/env spcli # this command runs hierarchical FST comparison from seqpy import cout, cerr from seqpy.cmds import arg_parser from seqpy.core.bioio import tabparser import itertools import allel def init_argparser(p=None): p = tabparser.init_argparser() p.add_argument('--hierfile', required=True, hel...
0
0
0
0
0
2,257
0
22
181
8c203230e3e1b5e416eb97d5dc3c5303073b202d
3,636
py
Python
src/preprocess/vipcup_data_split.py
cmlab-mira/MedicalPro
3918c95197fd24406ce2117cc7ff9ce21bb8c620
[ "MIT" ]
6
2020-02-01T07:19:32.000Z
2021-05-10T13:55:49.000Z
src/preprocess/vipcup_data_split.py
cmlab-mira/MedicalPro
3918c95197fd24406ce2117cc7ff9ce21bb8c620
[ "MIT" ]
1
2020-06-21T08:33:35.000Z
2020-06-21T08:33:35.000Z
src/preprocess/vipcup_data_split.py
cmlab-mira/MedicalPro
3918c95197fd24406ce2117cc7ff9ce21bb8c620
[ "MIT" ]
1
2020-11-11T06:24:12.000Z
2020-11-11T06:24:12.000Z
import logging if __name__ == "__main__": logging.basicConfig(format='%(asctime)s | %(name)-4s | %(levelname)-4s | %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S') args = _parse_args() main(args)
42.776471
121
0.657866
import argparse import csv import logging import random import numpy as np import nibabel as nib from pathlib import Path def main(args): # Randomly split the data into k folds. patient_dirs = sorted(dir_ for dir_ in (args.resampled_data_dir / 'training').iterdir() if dir_.is_dir()) # Testing fold, which...
0
0
0
0
0
3,233
0
-25
178
85c4bda8994ba1d1ab30006d431cffaa6357194c
5,887
py
Python
exercises/super_ugly_number.py
David-Jianguang-Ran/LeetCodePracticeHelper
e76a25704eb41980b8d949ee1046a35a6a6ef0f6
[ "MIT" ]
null
null
null
exercises/super_ugly_number.py
David-Jianguang-Ran/LeetCodePracticeHelper
e76a25704eb41980b8d949ee1046a35a6a6ef0f6
[ "MIT" ]
null
null
null
exercises/super_ugly_number.py
David-Jianguang-Ran/LeetCodePracticeHelper
e76a25704eb41980b8d949ee1046a35a6a6ef0f6
[ "MIT" ]
null
null
null
# instanciate your Problem class and run prob = Problem() prob.run()
36.79375
147
0.515543
from base import LeetCodeProblem class Problem(LeetCodeProblem): # for behaviours other than exact match between solution output and expected output # see # Testers in README.md """ https://leetcode.com/problems/super-ugly-number/ # first attempt: ## invariant since all prime factor of SU...
0
180
0
5,579
0
0
0
11
45
7ea446547a306d0562fe342d35ffc735e55db031
873
py
Python
python/graphscope/nx/tests/algorithms/forward/operators/test_all.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
1,521
2020-10-28T03:20:24.000Z
2022-03-31T12:42:51.000Z
python/graphscope/nx/tests/algorithms/forward/operators/test_all.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
850
2020-12-15T03:17:32.000Z
2022-03-31T11:40:13.000Z
python/graphscope/nx/tests/algorithms/forward/operators/test_all.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
180
2020-11-10T03:43:21.000Z
2022-03-28T11:13:31.000Z
import networkx.algorithms.operators.tests.test_all import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.operators.tests.test_all, decorators=pytest.mark.usefixtures("graphscope_session"))
22.973684
81
0.776632
import networkx.algorithms.operators.tests.test_all import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.operators.tests.test_all, decorators=pytest.mark.usefixtures("graphscope_session")) @pytest.mark.skip(reason="not suppo...
0
446
0
0
0
0
0
0
138
a218acf09f6d2a9040b321e06c6de2132b281baa
2,260
py
Python
src/preprocess.py
Smashh712/chainRec
128a0b4e9c1728930aaab55f364d681410483fbe
[ "Apache-2.0" ]
50
2018-09-22T12:09:30.000Z
2021-05-15T13:14:44.000Z
src/preprocess.py
AkkyPali/chainRec
23badc2a1bb735f6f0a366dcb2c0735f5961b7d6
[ "Apache-2.0" ]
3
2018-11-23T09:10:02.000Z
2019-07-31T07:08:22.000Z
src/preprocess.py
AkkyPali/chainRec
23badc2a1bb735f6f0a366dcb2c0735f5961b7d6
[ "Apache-2.0" ]
18
2018-09-28T04:09:02.000Z
2021-10-04T18:16:54.000Z
import os DATA_DIR = "../data/" if not os.path.exists(DATA_DIR): os.makedirs(DATA_DIR)
35.873016
130
0.516814
import numpy as np import pandas as pd import gzip import sys from collections import Counter import os DATA_DIR = "../data/" if not os.path.exists(DATA_DIR): os.makedirs(DATA_DIR) def process_yoochoose(): print("loading yoochoose data ... ") sys.stdout.flush() data_buy = pd.read_csv...
0
0
0
0
0
2,042
0
-16
137
b48167b67139ec28d4ec463e0cfd1adfa33938a1
1,307
py
Python
multyqubit.py
kaitodeesu/project2021
1b6a850f7c7aaced7173e424c0eca21e8349f071
[ "MIT" ]
null
null
null
multyqubit.py
kaitodeesu/project2021
1b6a850f7c7aaced7173e424c0eca21e8349f071
[ "MIT" ]
null
null
null
multyqubit.py
kaitodeesu/project2021
1b6a850f7c7aaced7173e424c0eca21e8349f071
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[17]: import numpy as np from numpy import linalg as LA dimension=2 # v=randomnumber(dimension) e=np.zeros((dimension,dimension),dtype='float64')# u=getu(dimension) print(u) for c in range(0,dimension): e[c]=u[c]/LA.norm(u[c],2)#ord=2 print(e) # In[18]: ...
13.904255
69
0.589135
#!/usr/bin/env python # coding: utf-8 # In[17]: import numpy as np from numpy import linalg as LA dimension=2 #次元を指定する def randomnumber(dimension): #ランダムな行列の生成 return np.random.random((dimension,dimension)) def gram(a,b): #規格化 return ((np.dot(a,b)/np.dot(a,a))*a) def hermatite(a): #複素共役 return...
205
0
0
0
0
371
0
0
92
1259747036f2db45257e6dc9bb60b6e03de0137a
4,759
py
Python
messenger/utils/response/response.py
functioncall/rescue-habit
98c9d3f2feff0ed100523f9822865a139f6f7648
[ "MIT" ]
null
null
null
messenger/utils/response/response.py
functioncall/rescue-habit
98c9d3f2feff0ed100523f9822865a139f6f7648
[ "MIT" ]
null
null
null
messenger/utils/response/response.py
functioncall/rescue-habit
98c9d3f2feff0ed100523f9822865a139f6f7648
[ "MIT" ]
null
null
null
from django_project import settings def value_validator(variables, values): """ 1. Checks if "values" is of type <dict> 2. Checks if all variables are present in the values <dict> :param variables: <list> :param values: <dict> :raise: InvalidTemplateValues, IncompleteTemplateValues :return...
34.737226
120
0.602858
import json import os import random import requests from django_project import settings from django.http import HttpResponse, JsonResponse from messenger.utils.response.ResponseTypes.QuickReplyResponse import QuickReplyResponse from messenger.utils.response.ResponseTypes.TextResponse import TextResponse from django.c...
0
0
0
3,863
0
0
0
126
201
2802007a914ccea0529db32e456238e601b7bb66
4,238
py
Python
tests/test_web_ui.py
underground-lab/zelezobeton
5afd96c3123b3d8accca107c6e60a3f6fdecdf27
[ "MIT" ]
2
2022-01-10T11:46:46.000Z
2022-01-11T08:32:54.000Z
tests/test_web_ui.py
underground-lab/zelezobeton
5afd96c3123b3d8accca107c6e60a3f6fdecdf27
[ "MIT" ]
1
2022-01-13T09:16:25.000Z
2022-01-14T08:39:12.000Z
tests/test_web_ui.py
underground-lab/zelezobeton
5afd96c3123b3d8accca107c6e60a3f6fdecdf27
[ "MIT" ]
null
null
null
# coding: utf-8 import os from urllib.request import urlopen URL = 'http://localhost:8000/' HEADLESS = not os.getenv('NO_HEADLESS') try: with urlopen(URL): SERVER_RUNNING = True except OSError: SERVER_RUNNING = False
37.175439
85
0.717084
# coding: utf-8 import os from urllib.request import urlopen import pytest from selenium.webdriver import Firefox, ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.firefox.options import Options from selenium.webdriver.support.expected_conditions import staleness_of from selenium.webdr...
44
3,636
0
0
0
0
0
164
179
6e64305e1e82509bdea2615d39ca0bdc7b96d09d
1,653
py
Python
new_date_extract.py
Arwain/Undergraduate-Research---Twitter-Sentiment-Analysis
32429604b18ec8c96473836b1cf36bddfad2fe4e
[ "MIT" ]
null
null
null
new_date_extract.py
Arwain/Undergraduate-Research---Twitter-Sentiment-Analysis
32429604b18ec8c96473836b1cf36bddfad2fe4e
[ "MIT" ]
null
null
null
new_date_extract.py
Arwain/Undergraduate-Research---Twitter-Sentiment-Analysis
32429604b18ec8c96473836b1cf36bddfad2fe4e
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from datetime import datetime, time import re import pickle df = pd.read_csv("bitcoin_auto.csv", dtype={"COMPOUND": float}) df = df.drop_duplicates() # print(df.head()) df.info() # tm.sleep(120) # Handle missing data # df['COMPOUND'] = df['COMPOUND'...
24.671642
85
0.640653
import pandas as pd from sklearn.cluster import KMeans import numpy as np import matplotlib.pyplot as plt from datetime import datetime, date, time, timedelta import re import pickle import time as tm df = pd.read_csv("bitcoin_auto.csv", dtype={"COMPOUND": float}) df = df.drop_duplicates() # print(df.he...
0
0
0
0
0
0
0
23
69
2c6a9976f7657424840a5d3cbdfa941b9489f0c1
3,523
py
Python
modules/status.py
NightKey/Server-monitoring-discord-bot
69444953e2c7abd957cbfe7f0e3943f6fbf4b6b4
[ "Unlicense" ]
2
2020-02-24T02:15:30.000Z
2022-03-30T05:26:18.000Z
modules/status.py
NightKey/Server-monitoring-discord-bot
69444953e2c7abd957cbfe7f0e3943f6fbf4b6b4
[ "Unlicense" ]
null
null
null
modules/status.py
NightKey/Server-monitoring-discord-bot
69444953e2c7abd957cbfe7f0e3943f6fbf4b6b4
[ "Unlicense" ]
null
null
null
from typing import Dict, Union from modules import bar from datetime import timedelta import psutil valid_fstypes = ["ntfs", "ext4", "ext3"] def get_pc_status() -> Union[Dict[str, str], Dict[str, dict], Dict[str, str]]: """With the help of the psutil module, scanns the PC for information about all the drives, the ...
37.478723
165
0.599773
from typing import Collection, Dict, Union from modules import bar from datetime import timedelta import psutil valid_fstypes = ["ntfs", "ext4", "ext3"] def get_temp() -> float: if not hasattr(psutil, "sensors_temperatures"): return None temps = psutil.sensors_temperatures() if not temps: r...
6
0
0
0
0
674
0
12
69
3b99b9dd6b06bd5c78b691884ff6d652212f2f36
659
py
Python
wush/common/files.py
wxnacy/wush
30620144f7a6fb676d210dd9463b77894f956b38
[ "MIT" ]
null
null
null
wush/common/files.py
wxnacy/wush
30620144f7a6fb676d210dd9463b77894f956b38
[ "MIT" ]
null
null
null
wush/common/files.py
wxnacy/wush
30620144f7a6fb676d210dd9463b77894f956b38
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: wxnacy@gmail.com """ """
20.59375
47
0.544765
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: wxnacy@gmail.com """ """ import os import json import yaml class FileUtils: @classmethod def read_dict(cls, filepath): """ 读取字典数据 :param str filepath: 文件地址 """ with open(filepath, 'r') as f: if filepat...
51
454
0
-5
0
0
0
-32
144
4606bcc51ea2eb49e447b7dd4c5dcabff35dcc25
225
py
Python
Practice/PythonApplication/LeetCode/Facebook/1108.py
kushalbhola/MyStuff
3f1064866487e489af41f8662a875b9954d5d8b0
[ "Apache-2.0" ]
null
null
null
Practice/PythonApplication/LeetCode/Facebook/1108.py
kushalbhola/MyStuff
3f1064866487e489af41f8662a875b9954d5d8b0
[ "Apache-2.0" ]
1
2020-04-29T23:00:26.000Z
2020-04-29T23:00:26.000Z
Practice/PythonApplication/LeetCode/Facebook/1108.py
kushalbhola/MyStuff
3f1064866487e489af41f8662a875b9954d5d8b0
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
9.782609
37
0.573333
import sys def main(): input ="1.1.1.1" output = defangIPaddr(input) print(output) def defangIPaddr(input): input = input.replace('.', '[.]') return input if __name__ == '__main__': main()
0
0
0
0
0
120
0
-11
67
80bde51cbf5dacd747cbe696168d2b9360cef562
1,337
py
Python
Build Docker/code/main.py
AlexTheGeek/color-loop-hue
67266628c72cb48e6397596e1f98b46d8674f669
[ "MIT" ]
2
2021-01-01T10:40:26.000Z
2021-02-20T09:39:22.000Z
Build Docker/code/main.py
AlexTheGeek/color-loop-hue
67266628c72cb48e6397596e1f98b46d8674f669
[ "MIT" ]
null
null
null
Build Docker/code/main.py
AlexTheGeek/color-loop-hue
67266628c72cb48e6397596e1f98b46d8674f669
[ "MIT" ]
null
null
null
#!/bin/python3 #Alexis Brunet alias AlexTheGeek #################### ## HUE COLOR LOOP ## #################### import os from os.path import join, dirname from dotenv import load_dotenv from flask import Flask app = Flask(__name__) STARTING = '{"on":true,"bri":254,"xy":[0.3523,0.144],"effect":"colorloop"}' ENDING = '{...
27.854167
87
0.598355
#!/bin/python3 #Alexis Brunet alias AlexTheGeek #################### ## HUE COLOR LOOP ## #################### import time import os import requests from os.path import join, dirname from dotenv import load_dotenv from flask import Flask, render_template, request app = Flask(__name__) STARTING = '{"on":true,"bri":254...
0
500
0
0
0
170
0
10
91
4e6123c1786b27aaf1d63c5382e320ef1dfeaffe
381
py
Python
django_extauth/admin.py
aiakos/aiakos
a591e7ef13ab9e8e14b4d3569d43fce694c4150a
[ "BSD-2-Clause", "MIT" ]
4
2017-04-28T19:09:17.000Z
2018-07-03T04:43:54.000Z
django_extauth/admin.py
aiakos/aiakos
a591e7ef13ab9e8e14b4d3569d43fce694c4150a
[ "BSD-2-Clause", "MIT" ]
2
2020-06-05T17:46:47.000Z
2021-06-10T17:22:58.000Z
django_extauth/admin.py
aiakos/aiakos
a591e7ef13ab9e8e14b4d3569d43fce694c4150a
[ "BSD-2-Clause", "MIT" ]
2
2017-08-14T07:15:14.000Z
2019-03-04T14:02:05.000Z
from django.contrib import admin admin.site.register(IdentityProvider, IdentityProviderAdmin) admin.site.register(ExternalIdentity, ExternalIdentityAdmin)
25.4
60
0.787402
from django.contrib import admin from .models import * class IdentityProviderAdmin(admin.ModelAdmin): list_display = ('domain', 'name', 'client_id', 'protocol') admin.site.register(IdentityProvider, IdentityProviderAdmin) class ExternalIdentityAdmin(admin.ModelAdmin): list_display = ('user', 'provider', 'sub') ...
0
0
0
154
0
0
0
0
69
cc3464107c1563f46ae7232b9d85ad3af834a0f0
625
py
Python
webhooks/observium/setup.py
x3me/alerta-contrib
215bf1cffa6362a90edb6350a6dea37db6b18ab8
[ "MIT" ]
null
null
null
webhooks/observium/setup.py
x3me/alerta-contrib
215bf1cffa6362a90edb6350a6dea37db6b18ab8
[ "MIT" ]
null
null
null
webhooks/observium/setup.py
x3me/alerta-contrib
215bf1cffa6362a90edb6350a6dea37db6b18ab8
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages version = '0.0.5' setup( name="alerta-observium", version=version, description='Alerta webhook for Obseervium NMS', url='https://github.com/alerta/alerta-contrib', license='MIT', author='Iskren Hadzhinedev', author_email='iskren.hadzhinedev@x3me....
24.038462
59
0.6576
from setuptools import setup, find_packages version = '0.0.5' setup( name="alerta-observium", version=version, description='Alerta webhook for Obseervium NMS', url='https://github.com/alerta/alerta-contrib', license='MIT', author='Iskren Hadzhinedev', author_email='iskren.hadzhinedev@x3me....
0
0
0
0
0
0
0
0
0
db99afef5980354d5007694954a2c0c2e199a476
45,026
py
Python
src/vmware/azext_vmware/custom.py
Mossaka/azure-cli-extensions
f75f5d39d3b621fcbcdd50eddf378f3a49535ab0
[ "MIT" ]
null
null
null
src/vmware/azext_vmware/custom.py
Mossaka/azure-cli-extensions
f75f5d39d3b621fcbcdd50eddf378f3a49535ab0
[ "MIT" ]
null
null
null
src/vmware/azext_vmware/custom.py
Mossaka/azure-cli-extensions
f75f5d39d3b621fcbcdd50eddf378f3a49535ab0
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
71.469841
789
0.848043
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
0
0
0
0
0
39,345
0
47
2,736
6b40f9b7d58392a2be162f00d5852bd1e08b2a0e
3,784
py
Python
homeassistant/components/splunk/__init__.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/splunk/__init__.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/splunk/__init__.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Support to send data to a Splunk instance.""" import logging import voluptuous as vol from homeassistant.const import (CONF_HOST, CONF_NAME, CONF_PORT, CONF_SSL, CONF_TOKEN, CONF_VERIFY_SSL) import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entityfilter import FILTER_SCHEMA _LOGGER = ...
29.333333
88
0.636892
"""Support to send data to a Splunk instance.""" import asyncio from http import HTTPStatus import json import logging import time from aiohttp import ClientConnectionError, ClientResponseError from hass_splunk import SplunkPayloadError, hass_splunk import voluptuous as vol from homeassistant.const import ( CONF_...
0
0
2,241
0
0
0
0
220
222
a924a3b3fa825a585783593415bcffef891d3164
1,915
py
Python
2021_2022/Training_2/RSA_Dream/Cripto_9.py
0awawa0/DonNU_CTF
7ff693fdba4609298f5556ea583fe604980d76e3
[ "MIT" ]
null
null
null
2021_2022/Training_2/RSA_Dream/Cripto_9.py
0awawa0/DonNU_CTF
7ff693fdba4609298f5556ea583fe604980d76e3
[ "MIT" ]
null
null
null
2021_2022/Training_2/RSA_Dream/Cripto_9.py
0awawa0/DonNU_CTF
7ff693fdba4609298f5556ea583fe604980d76e3
[ "MIT" ]
null
null
null
alf=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",".",",",":","?"] zam=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36] p=17 q=11 file=open('text.txt',encoding='utf-8') st1=list(file.read()) file.close(...
19.947917
154
0.399478
import random def gcd(a,b): #расширенный x, lasty=0,0 y, lastx=1,1 n=a m=b while m!=0: q=n//m r=n%m n=m m=r x, lastx = lastx-q*x, x y, lasty = lasty-q*y, y return n def gcdost(a,b): #расширенный x, lasty=0,0 y, lastx=1,1 ...
110
0
0
0
0
1,333
0
-8
146
771784edcc7f5296f6cfcf7f2749b285b3a3b2d4
2,522
py
Python
accounts/tests.py
Panda4817/MySousChef
64c3967566b3834d578406884ee6b4a3807b21f8
[ "MIT" ]
1
2021-02-25T17:54:28.000Z
2021-02-25T17:54:28.000Z
accounts/tests.py
Panda4817/MySousChef
64c3967566b3834d578406884ee6b4a3807b21f8
[ "MIT" ]
null
null
null
accounts/tests.py
Panda4817/MySousChef
64c3967566b3834d578406884ee6b4a3807b21f8
[ "MIT" ]
null
null
null
# Create your tests here.
37.641791
72
0.646709
from django.test import TestCase, Client from .models import Profile from django.contrib.auth.models import User import unittest from .forms import SignUpForm from .signals import show_login_message, show_logout_message from django.contrib.auth.signals import user_logged_out, user_logged_in from django.contrib i...
0
0
0
2,000
0
0
0
238
253
ad5dd51fc7ed9905b46da578dce076efe35092ef
5,679
py
Python
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
7
2022-01-24T16:27:06.000Z
2022-02-25T10:18:49.000Z
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
29
2022-01-20T15:45:38.000Z
2022-03-31T09:39:25.000Z
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
7
2022-01-20T07:11:15.000Z
2022-03-09T14:50:17.000Z
# (C) 2022 GoodData Corporation from __future__ import annotations BIGQUERY_TYPE = "BIGQUERY" LAYOUT_DATA_SOURCES_DIR = "data_sources"
42.699248
113
0.728649
# (C) 2022 GoodData Corporation from __future__ import annotations from pathlib import Path from typing import Any, List, Optional, Type import attr from gooddata_metadata_client.model.declarative_data_source import DeclarativeDataSource from gooddata_metadata_client.model.declarative_data_sources import Declarative...
0
4,742
0
0
0
0
0
508
291
ce36ea79006e4c6ff0cb9ffe5a3b3419b733b588
1,321
py
Python
src/aggregation_manager/norm_clipping.py
anishacharya/BGMD
03dee098217d2b9a209fea5759e2e0a2237390a5
[ "MIT" ]
5
2022-01-21T06:21:51.000Z
2022-02-11T23:00:57.000Z
src/aggregation_manager/norm_clipping.py
anishacharya/BGMD
03dee098217d2b9a209fea5759e2e0a2237390a5
[ "MIT" ]
null
null
null
src/aggregation_manager/norm_clipping.py
anishacharya/BGMD
03dee098217d2b9a209fea5759e2e0a2237390a5
[ "MIT" ]
null
null
null
# Copyright (c) Anish Acharya. # Licensed under the MIT License """ Ghosh et.al. Communication-Efficient and Byzantine-Robust Distributed Learning with Error Feedback """
32.219512
98
0.632097
# Copyright (c) Anish Acharya. # Licensed under the MIT License import numpy as np from .base_gar import GAR from typing import List """ Ghosh et.al. Communication-Efficient and Byzantine-Robust Distributed Learning with Error Feedback """ class NormClipping(GAR): def __init__(self, aggregation_config): ...
0
0
0
1,055
0
0
0
3
90
fd042e0095f353ffb4caebc0a7ea0f6645226317
1,157
py
Python
src/saas/bkuser_shell/config_center/constants.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/constants.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/constants.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
1
2021-12-31T06:48:41.000Z
2021-12-31T06:48:41.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making -(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. Yo...
39.896552
115
0.71478
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
60
0
0
300
0
0
0
66
67
688b529ea69dada848d8352c8c56bb04fd013fa4
3,164
py
Python
S4/S4 Library/simulation/objects/components/stereo_component.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/objects/components/stereo_component.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/objects/components/stereo_component.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from snippets import define_snippet (_, TunableStereoComponentSnippet) = define_snippet('stereo_component', StereoComponent.TunableFactory())
117.185185
1,759
0.708597
from objects.components import Component, types, ComponentPriority from objects.components.state import TunableStateTypeReference, TunableStateValueReference from sims4.tuning.tunable import HasTunableFactory, AutoFactoryInit, TunableList, TunableReference, Tunable import services import sims4.resources from snippets i...
0
0
0
2,694
0
0
0
195
133
603ff613688cffe6ba5669264455c110de9a9652
1,274
py
Python
programs/koinos-types/koinos_reflect/baseparser.py
joticajulian/koinos-types
7d01248437d063deb780af03057737e4937f82d1
[ "MIT" ]
10
2021-02-10T20:57:08.000Z
2021-03-17T00:09:15.000Z
programs/koinos-types/koinos_reflect/baseparser.py
joticajulian/koinos-types
7d01248437d063deb780af03057737e4937f82d1
[ "MIT" ]
82
2021-02-08T22:59:24.000Z
2021-10-01T17:40:07.000Z
programs/koinos-types/koinos_reflect/baseparser.py
joticajulian/koinos-types
7d01248437d063deb780af03057737e4937f82d1
[ "MIT" ]
3
2021-02-11T04:29:39.000Z
2021-04-17T22:56:34.000Z
# Parser of .base files # Syntax is semicolon separated list of qualified types
23.163636
64
0.605965
from .lexer import Lexer from dataclasses_json import dataclass_json from dataclasses import dataclass, field from typing import List, Tuple, Union # Parser of .base files # Syntax is semicolon separated list of qualified types @dataclass_json @dataclass class BasefileType: name: List[str] doc: str @datac...
0
125
0
790
0
35
0
60
183
9ab9dde5ff068e3fbee8407c86a3718d396063cf
2,372
py
Python
tests/correctness/targets/CppCompilationWithTargetDeps/Input/root.xpybuild.py
xpybuild/xpybuild
c71a73e47414871c8192381d0356ab62f5a58127
[ "Apache-2.0" ]
9
2017-02-06T16:45:46.000Z
2021-12-05T09:42:58.000Z
tests/correctness/targets/CppCompilationWithTargetDeps/Input/root.xpybuild.py
xpybuild/xpybuild
c71a73e47414871c8192381d0356ab62f5a58127
[ "Apache-2.0" ]
15
2019-01-11T19:39:34.000Z
2022-01-08T11:11:35.000Z
tests/correctness/targets/CppCompilationWithTargetDeps/Input/root.xpybuild.py
xpybuild/xpybuild
c71a73e47414871c8192381d0356ab62f5a58127
[ "Apache-2.0" ]
5
2017-02-06T16:51:17.000Z
2020-12-02T17:36:30.000Z
# # Copyright (c) 2013 - 2017, 2019 Software AG, Darmstadt, Germany and/or its licensors # # 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...
33.885714
125
0.718381
# # Copyright (c) 2013 - 2017, 2019 Software AG, Darmstadt, Germany and/or its licensors # # 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...
0
0
0
0
0
0
0
89
111
a1a87cc46f9c970e2f28007cb3e1126704e78b89
3,842
py
Python
twirps/classes/tweet.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
3
2015-05-08T16:19:40.000Z
2016-05-03T07:54:04.000Z
twirps/classes/tweet.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
null
null
null
twirps/classes/tweet.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import logging LOGGER = logging.getLogger(__name__)
35.247706
118
0.61114
from __future__ import unicode_literals import logging LOGGER = logging.getLogger(__name__) class Tweet(object): def __init__(self, tweet, source): self.tweet_id = 0 self.user_id = 0 self.handle = '' self.mentions = [] self.content = '' self.is_retweet = False ...
0
0
0
3,718
0
0
0
0
23
e6443063857f8fb51ef5d2e6135b5f0c53f6f899
200
py
Python
code/tools/idl/header.py
antonand03/hello-my-friend
fb4e225a75aea3007a391ccc4dcda3eda65c2142
[ "MIT" ]
5,411
2017-04-14T08:57:56.000Z
2022-03-30T19:35:15.000Z
code/tools/idl/header.py
antonand03/hello-my-friend
fb4e225a75aea3007a391ccc4dcda3eda65c2142
[ "MIT" ]
802
2017-04-21T14:18:36.000Z
2022-03-31T21:20:48.000Z
code/tools/idl/header.py
antonand03/hello-my-friend
fb4e225a75aea3007a391ccc4dcda3eda65c2142
[ "MIT" ]
2,011
2017-04-14T09:44:15.000Z
2022-03-31T15:40:39.000Z
# add dependency directory to the Python path import site import os.path site.addsitedir(os.path.join(os.path.dirname(__file__), 'deps')) # call header.py from xpidl import header header.main()
20
64
0.755
# add dependency directory to the Python path import site import os.path site.addsitedir(os.path.join(os.path.dirname(__file__), 'deps')) # call header.py from xpidl import header header.main()
0
0
0
0
0
0
0
0
0
6a1501d572a47250fb79ebd30d23104a3301cddd
8,925
py
Python
not_mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
not_mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
not_mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
# imports from __future__ import print_function import imageio import numpy as np import os import sys np.random.seed(NUMPY_SEED) last_percent_reported = None def download_progress_hook(count, blockSize, totalSize): """A hook to report the progress of a download. This is mostly intended for users with slow...
38.469828
99
0.662073
# imports from __future__ import print_function from IPython.display import display, Image from six.moves import cPickle as pickle from six.moves.urllib.request import urlretrieve from sklearn.linear_model import LogisticRegression import imageio import matplotlib.pyplot as plt import numpy as np import os import sys i...
0
0
0
0
0
6,077
0
199
383
b6e2e662897fd5cdcc07c0f014fc63ad8afe8445
69
py
Python
pyex_pkg/pyex_pkg/module2.py
uiuc-bioinf-club/cheetSheets
537f85debfb3d98cd718963721b87a255913161b
[ "MIT" ]
null
null
null
pyex_pkg/pyex_pkg/module2.py
uiuc-bioinf-club/cheetSheets
537f85debfb3d98cd718963721b87a255913161b
[ "MIT" ]
null
null
null
pyex_pkg/pyex_pkg/module2.py
uiuc-bioinf-club/cheetSheets
537f85debfb3d98cd718963721b87a255913161b
[ "MIT" ]
2
2019-02-18T23:18:31.000Z
2021-07-21T19:23:58.000Z
from module1 import func1 print("imported module2") print(func1(2))
13.8
25
0.768116
from module1 import func1 print("imported module2") print(func1(2))
0
0
0
0
0
0
0
0
0
249ce9f8a32de5d0f4e4b2826835c85645008e06
3,910
py
Python
predict.py
johirbuet/Image-Classifier
9cfd78696940ebc40725f15d18133d0db6102035
[ "MIT" ]
null
null
null
predict.py
johirbuet/Image-Classifier
9cfd78696940ebc40725f15d18133d0db6102035
[ "MIT" ]
null
null
null
predict.py
johirbuet/Image-Classifier
9cfd78696940ebc40725f15d18133d0db6102035
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
31.28
87
0.61509
import argparse import json import torch from torch import nn from torch.autograd import Variable from torchvision import models from collections import OrderedDict from PIL import Image import numpy as np import numbers def load_checkpoint(path): checkpoint = torch.load(path) arch = checkpoint['arch'] hi...
0
0
0
0
0
3,530
0
1
335
32ae876b42b6bb362bf46f31ffcb82c4faec760d
10,325
py
Python
devp2p/peer.py
vaporyproject/pydevp2p
084d58bd98e1573ccce82fbb766ff06fb6831fe4
[ "MIT" ]
null
null
null
devp2p/peer.py
vaporyproject/pydevp2p
084d58bd98e1573ccce82fbb766ff06fb6831fe4
[ "MIT" ]
null
null
null
devp2p/peer.py
vaporyproject/pydevp2p
084d58bd98e1573ccce82fbb766ff06fb6831fe4
[ "MIT" ]
null
null
null
import gevent import slogging log = slogging.get_logger('p2p.peer')
39.408397
99
0.613462
import time import gevent import operator from collections import OrderedDict from protocol import BaseProtocol from p2p_protocol import P2PProtocol from service import WiredService import multiplexer from muxsession import MultiplexedSession from crypto import ECIESDecryptionError import slogging import gevent.socket ...
0
480
0
9,421
0
0
0
66
288
6050b5f4ff89903ef691871454833dc5d07ce689
5,340
py
Python
opentelemetry-api/src/opentelemetry/propagate/__init__.py
toumorokoshi/opentelemetry-python
03c6b7391d16236ad5d4e48b0cb0bff786c2e583
[ "Apache-2.0" ]
1
2021-02-26T02:37:54.000Z
2021-02-26T02:37:54.000Z
opentelemetry-api/src/opentelemetry/propagate/__init__.py
jini-lee/opentelemetry-python
99128b35d1a9cf2ecb04097c6a87d320a552a3e4
[ "Apache-2.0" ]
1
2020-11-18T17:44:08.000Z
2020-11-18T17:46:17.000Z
opentelemetry-api/src/opentelemetry/propagate/__init__.py
jini-lee/opentelemetry-python
99128b35d1a9cf2ecb04097c6a87d320a552a3e4
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry Authors # # 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 ...
34.451613
116
0.720412
# Copyright The OpenTelemetry Authors # # 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 ...
0
0
0
0
0
239
0
0
46
1043a523f50f48d4196a7df72c983eb7845b8ba5
4,272
py
Python
src/pyjen/plugins/buildblocker.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
5
2017-12-14T13:39:04.000Z
2020-07-06T09:46:02.000Z
src/pyjen/plugins/buildblocker.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
119
2016-09-13T01:39:31.000Z
2020-08-31T03:06:19.000Z
src/pyjen/plugins/buildblocker.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
3
2015-03-17T18:49:22.000Z
2019-07-03T14:10:27.000Z
"""Interfaces for interacting with Build Blockers job property plugin""" import xml.etree.ElementTree as ElementTree PluginClass = BuildBlockerProperty if __name__ == "__main__": # pragma: no cover pass
33.904762
80
0.630852
"""Interfaces for interacting with Build Blockers job property plugin""" import xml.etree.ElementTree as ElementTree from pyjen.utils.xml_plugin import XMLPlugin class BuildBlockerProperty(XMLPlugin): """Wrapper for Build Blocker job properties https://wiki.jenkins-ci.org/display/JENKINS/Build+Blocker+Plugin...
0
3,086
0
905
0
0
0
23
45
57f9052e1cbafb791fa47203f832f9c3230b7a65
22,764
py
Python
mailchimp_marketing_asyncio/models/campaign.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/campaign.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/campaign.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
1
2022-03-09T14:52:22.000Z
2022-03-09T14:52:22.000Z
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """
31.013624
441
0.61158
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import...
0
14,429
0
7,947
0
0
0
-31
105
93b134cbc992e9743aaef355e11e242ce5dafd4f
4,389
py
Python
bicks/mathtool.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
null
null
null
bicks/mathtool.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
null
null
null
bicks/mathtool.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
3
2021-07-28T09:51:58.000Z
2021-07-30T16:37:26.000Z
def dichotomy(f, a, b, epsilon=1.0e-5): """Tradional dichotomy to find a root of a function """ fa = f(a) while True: c = (a + b) / 2.0 if (b - a) <= epsilon: return c fc = f(c) if fc * fa < 0: b = c else: fa = fc a...
25.369942
92
0.437229
import numpy as np def dichotomy(f, a, b, epsilon=1.0e-5): """Tradional dichotomy to find a root of a function """ fa = f(a) while True: c = (a + b) / 2.0 if (b - a) <= epsilon: return c fc = f(c) if fc * fa < 0: b = c else: fa...
0
76
0
0
0
3,370
0
-3
206
6bfaf0bbaf4dbb45c5506ffcaa6481da16b4e9c0
48
py
Python
adet/utils/__init__.py
gist-ailab/uoais
fb42d9a96cd54daad61c956d8d9d65dd0ebef4c7
[ "BSD-2-Clause" ]
52
2021-09-26T05:06:01.000Z
2022-03-27T07:48:19.000Z
adet/utils/__init__.py
gist-ailab/uoais
fb42d9a96cd54daad61c956d8d9d65dd0ebef4c7
[ "BSD-2-Clause" ]
5
2021-10-12T00:39:45.000Z
2022-03-24T08:59:57.000Z
adet/utils/__init__.py
gist-ailab/uoais
fb42d9a96cd54daad61c956d8d9d65dd0ebef4c7
[ "BSD-2-Clause" ]
9
2021-09-27T11:59:31.000Z
2022-03-23T07:49:15.000Z
# from .post_process import detector_postprocess
48
48
0.875
# from .post_process import detector_postprocess
0
0
0
0
0
0
0
0
0
c9865590a677790e0075a322e7d3bd02271fcc17
3,828
py
Python
utils_class.py
nanocad-lab/geo
2eb324b07c7c92b84a123f3a158723a2e3a77730
[ "MIT" ]
1
2021-09-19T14:32:21.000Z
2021-09-19T14:32:21.000Z
utils_class.py
nanocad-lab/geo
2eb324b07c7c92b84a123f3a158723a2e3a77730
[ "MIT" ]
null
null
null
utils_class.py
nanocad-lab/geo
2eb324b07c7c92b84a123f3a158723a2e3a77730
[ "MIT" ]
null
null
null
import torch.nn as nn ''' Custom layers for SC '''
41.16129
265
0.637147
import torch import torch.nn as nn import torch.nn.functional as F import utils_functional ''' Custom layers for SC ''' class Conv2d_Add_Partial(nn.Conv2d): ''' SC Conv2d using partial binary add ''' def __init__(self, *kargs, **kwargs): super(Conv2d_Add_Partial, self).__init__(*kargs, **kwar...
0
0
0
3,634
0
0
0
3
140
d62a105eab4d7fcf7ae14ec1fe61bbdad0b4e98e
3,305
py
Python
corals-api.py
DevEliran/deep-sea-api
3562840f9d0fd0f4bb2edc89804f8709bb37d92d
[ "MIT" ]
null
null
null
corals-api.py
DevEliran/deep-sea-api
3562840f9d0fd0f4bb2edc89804f8709bb37d92d
[ "MIT" ]
null
null
null
corals-api.py
DevEliran/deep-sea-api
3562840f9d0fd0f4bb2edc89804f8709bb37d92d
[ "MIT" ]
null
null
null
from fastapi import FastAPI from database import CoralDatabase app = FastAPI() db = CoralDatabase()
32.722772
121
0.659002
from fastapi import FastAPI, Path, status from pydantic import BaseModel from fastapi.responses import JSONResponse from starlette.status import ( HTTP_200_OK, HTTP_404_NOT_FOUND, HTTP_409_CONFLICT ) from database import CoralDatabase, get_coral_by_catalog_number_db, \ get_coral_by_category_db, add_coral_t...
0
2,484
0
223
0
0
0
240
249
35544107af096841bd233ad45b9e4391ff8f3e32
178
py
Python
{{ cookiecutter.repo_name }}/{{cookiecutter.project_slug}}/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/{{cookiecutter.project_slug}}/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/{{cookiecutter.project_slug}}/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
"""Global configuration used across all subsystems.""" import os __version__ = os.getenv("PKG_VERSION", "0.0.0") epilog = "/ with from South Dakota 2018 Jake Brinkmann"
22.25
61
0.702247
"""Global configuration used across all subsystems.""" import os __version__ = os.getenv("PKG_VERSION", "0.0.0") epilog = "‹/› with ♥ from South Dakota © 2018 Jake Brinkmann"
11
0
0
0
0
0
0
0
0
7fc20f8bcaf00f7d5d6c15cebba383ee4e7d8652
3,583
py
Python
influxalchemy/query.py
GerasimovRM/influxalchemy
c6527dc99f18f58da0d2f6602759be40f24d4b44
[ "MIT" ]
42
2016-08-16T11:36:10.000Z
2022-02-14T15:50:53.000Z
influxalchemy/query.py
GerasimovRM/influxalchemy
c6527dc99f18f58da0d2f6602759be40f24d4b44
[ "MIT" ]
10
2017-02-01T16:16:06.000Z
2022-01-21T23:25:22.000Z
influxalchemy/query.py
GerasimovRM/influxalchemy
c6527dc99f18f58da0d2f6602759be40f24d4b44
[ "MIT" ]
6
2016-10-26T13:10:21.000Z
2021-02-19T10:27:07.000Z
""" InfluxDB Query Object. """
27.775194
75
0.521909
""" InfluxDB Query Object. """ import functools from influxalchemy import meta class InfluxDBQuery: """ InfluxDB Query object. entities (tuple): Query entities client (InfluxAlchemy): InfluxAlchemy instance expressions (tuple): Query filters groupby (str): ...
0
1,069
0
2,410
0
0
0
4
68
e08eefad4432b67364fe41a8cc2b8d494cbdbd9c
17,559
py
Python
src/utils.py
kylejbrown17/PythonRoadways
438400c046db7ee52182de2fbea77f1b1b57de61
[ "MIT" ]
null
null
null
src/utils.py
kylejbrown17/PythonRoadways
438400c046db7ee52182de2fbea77f1b1b57de61
[ "MIT" ]
null
null
null
src/utils.py
kylejbrown17/PythonRoadways
438400c046db7ee52182de2fbea77f1b1b57de61
[ "MIT" ]
null
null
null
import numpy as np from scipy import interpolate from copy import copy def NormalVectorToLineSegment(linepts, pt): """ linepts = np.array([[x1,x2],[y1,y2]]) pt.shape = (2,N) # can be single pt or multiple pts """ if pt.ndim == 1: pt = np.expand_dims(pt,1) base_pt = np.expand_dims(linept...
36.12963
122
0.605957
import numpy as np from scipy import interpolate import ezdxf import h5py from copy import copy from Roadways import * class SplineCurve: def __init__(self,id=None,pts=None,keys=None,tck=None,u=None): self.id = id self.pts = pts self.keys = keys self.tck = tck # spline coefficients ...
0
0
0
361
0
7,496
0
-18
411
eace333492baab89237ac78a14843235cda31067
316
py
Python
lab_session/selection_sort.py
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
09c17e42c2e173a6ab10339f08fbc1505db8ea56
[ "MIT" ]
1
2021-05-13T13:10:42.000Z
2021-05-13T13:10:42.000Z
lab_session/selection_sort.py
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
09c17e42c2e173a6ab10339f08fbc1505db8ea56
[ "MIT" ]
null
null
null
lab_session/selection_sort.py
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
09c17e42c2e173a6ab10339f08fbc1505db8ea56
[ "MIT" ]
null
null
null
values = [6, 5, 3, 1, 8, 7, 2, 4] print (values) values = selection_sort(values)
18.588235
46
0.594937
def selection_sort(value): n = len(value) for i in range(n-1): loc = i for j in range(i+1, n): if value[j] < value[loc]: loc = j if loc != i: value[i], value[loc] = value[loc], value[i] print(value) return value values = [6, 5, 3, 1, 8, 7, 2, 4] print (values) values = selection_sort(values)
0
0
0
0
0
212
0
0
22
46b5d19814074de733b953d95c57c5868b1bb95b
7,026
py
Python
cve-2020-8597-pptpd/pptp_poc.py
reidmefirst/PoC-Exploits
3b8f845774a9a6474fed86264443779a8f85e71a
[ "BSD-3-Clause" ]
3
2020-06-02T14:39:17.000Z
2021-04-23T16:34:08.000Z
cve-2020-8597-pptpd/pptp_poc.py
reidmefirst/PoC-Exploits
3b8f845774a9a6474fed86264443779a8f85e71a
[ "BSD-3-Clause" ]
null
null
null
cve-2020-8597-pptpd/pptp_poc.py
reidmefirst/PoC-Exploits
3b8f845774a9a6474fed86264443779a8f85e71a
[ "BSD-3-Clause" ]
1
2020-06-12T17:39:21.000Z
2020-06-12T17:39:21.000Z
#!/usr/bin/python3 import socket import sys import signal import os conf_ack_received = False conf_ack_sent = False debug = False if os.environ.get("DEBUG"): debug = True if len(sys.argv) < 2: print("Usage %s PPTP_Server to test for CVE-2020-8597" %(sys.argv[0])); sys.exit(0) dst =...
42.325301
212
0.609735
#!/usr/bin/python3 from scapy.all import * import socket import sys import signal import os conf_ack_received = False conf_ack_sent = False debug = False if os.environ.get("DEBUG"): debug = True def pkt_callback(pkt): global gre_stream, server_conf_request, call_reply, conf_ack_received, conf_ack_sen...
0
0
0
0
0
3,009
0
2
93
b7423732828a1ec172d11cc4ed16d8387b7ac8e6
676
py
Python
speech_to_text.py
TheMatildaProject/auditory-cortex
72edf7e90fad238ce3705f0ce8307ce946fc50c1
[ "MIT" ]
null
null
null
speech_to_text.py
TheMatildaProject/auditory-cortex
72edf7e90fad238ce3705f0ce8307ce946fc50c1
[ "MIT" ]
null
null
null
speech_to_text.py
TheMatildaProject/auditory-cortex
72edf7e90fad238ce3705f0ce8307ce946fc50c1
[ "MIT" ]
null
null
null
#import speech_recognition as sr import io
28.166667
51
0.64497
#import speech_recognition as sr import wave import io import io, os from google.auth import environment_vars from google.cloud import speech class SpeechToText(object): def __init__(self, audio): self._audio = audio self._speech_client = speech.Client() def getFromGoogle(self): with ...
0
0
0
512
0
0
0
11
111
a851d9c85ce569c52aa4249c5fc22470cd0186ca
559
py
Python
cafeapp/migrations/0019_auto_20211208_1241.py
giranezafiacre/fabcafe-api
d4cd3e6b291c5b071c8c70c5deaac06f0182a664
[ "MIT" ]
null
null
null
cafeapp/migrations/0019_auto_20211208_1241.py
giranezafiacre/fabcafe-api
d4cd3e6b291c5b071c8c70c5deaac06f0182a664
[ "MIT" ]
null
null
null
cafeapp/migrations/0019_auto_20211208_1241.py
giranezafiacre/fabcafe-api
d4cd3e6b291c5b071c8c70c5deaac06f0182a664
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-08 10:41
23.291667
99
0.592129
# Generated by Django 3.2.9 on 2021-12-08 10:41 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cafeapp', '0018_auto_20211208_1228'), ] operations = [ migrations.RemoveField( model_name='user', na...
0
0
0
429
0
0
0
13
68
b95fa9041a7cb8d7c72117a7a576a5a8c358e96d
4,006
py
Python
src/python/interpret/glassbox/ebm/utils.py
benediktwagner/interpret
a80e42fbaad7c25f4447b6f81137c53714eed710
[ "MIT" ]
2
2019-05-19T04:48:52.000Z
2019-05-25T14:50:48.000Z
src/python/interpret/glassbox/ebm/utils.py
benediktwagner/interpret
a80e42fbaad7c25f4447b6f81137c53714eed710
[ "MIT" ]
null
null
null
src/python/interpret/glassbox/ebm/utils.py
benediktwagner/interpret
a80e42fbaad7c25f4447b6f81137c53714eed710
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license # TODO: Test EBMUtils import logging log = logging.getLogger(__name__) # TODO: Clean up
32.306452
84
0.628308
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license # TODO: Test EBMUtils from sklearn.utils.extmath import softmax import numpy as np import logging log = logging.getLogger(__name__) # TODO: Clean up class EBMUtils: @staticmethod def gen_attributes(col_types, col_n_bins...
0
3,506
0
-6
0
0
0
17
309
c980129dfcca46c379ea366aa1fa15eee1b01ac4
187
py
Python
rdm/project_management/__init__.py
dheater/rdm
3e16b808cdcaa7860767fe99cd66997adc803c35
[ "MIT" ]
76
2018-05-09T09:53:18.000Z
2022-03-21T11:55:18.000Z
rdm/project_management/__init__.py
dheater/rdm
3e16b808cdcaa7860767fe99cd66997adc803c35
[ "MIT" ]
68
2018-03-24T10:03:09.000Z
2022-01-19T20:52:36.000Z
rdm/project_management/__init__.py
dheater/rdm
3e16b808cdcaa7860767fe99cd66997adc803c35
[ "MIT" ]
24
2018-06-21T19:52:58.000Z
2022-03-29T13:15:15.000Z
from .base import BaseBackend from .github import GitHubIssueBackend, GitHubPullRequestBackend __all__ = [ 'BaseBackend', 'GitHubIssueBackend', 'GitHubPullRequestBackend', ]
20.777778
64
0.764706
from .base import BaseBackend from .github import GitHubIssueBackend, GitHubPullRequestBackend __all__ = [ 'BaseBackend', 'GitHubIssueBackend', 'GitHubPullRequestBackend', ]
0
0
0
0
0
0
0
0
0
311d97d31b1653b39c0e6b386a057ec53766cdaa
6,030
py
Python
tests/executor/test_mysos_task_runner.py
programwithebay/ApacheMysos
f4f7e459a51e957eeeef989b3ecdaac29393fa45
[ "Apache-2.0" ]
1
2017-02-15T05:37:59.000Z
2017-02-15T05:37:59.000Z
tests/executor/test_mysos_task_runner.py
benley/mysos
9c19f28eb7926002005e276ef8cabf24c7fe2edd
[ "Apache-2.0" ]
null
null
null
tests/executor/test_mysos_task_runner.py
benley/mysos
9c19f28eb7926002005e276ef8cabf24c7fe2edd
[ "Apache-2.0" ]
null
null
null
import os if 'MYSOS_DEBUG' in os.environ: from twitter.common import log from twitter.common.log.options import LogOptions LogOptions.set_stderr_log_level('google:DEBUG') LogOptions.set_simple(True) log.init('mysos_tests')
28.990385
89
0.702819
import os import signal import unittest from mysos.common.cluster import ClusterManager from mysos.common.testing import Fake from mysos.executor.noop_installer import NoopPackageInstaller from mysos.executor.mysos_task_runner import MysosTaskRunner from mysos.executor.task_runner import TaskError from mysos.executor....
0
0
0
5,062
0
0
0
353
378
a19e61972ecebe175f1b7437fdeac191ee97b06e
8,437
py
Python
scripts/object_recognition.py
SerenaXue/3D-Perception-Target-Identification
df1dfa8a2132c6fa90a9e8def636b65d9344ba9d
[ "MIT" ]
null
null
null
scripts/object_recognition.py
SerenaXue/3D-Perception-Target-Identification
df1dfa8a2132c6fa90a9e8def636b65d9344ba9d
[ "MIT" ]
null
null
null
scripts/object_recognition.py
SerenaXue/3D-Perception-Target-Identification
df1dfa8a2132c6fa90a9e8def636b65d9344ba9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sklearn.preprocessing import LabelEncoder import pickle from visualization_msgs.msg import Marker from sensor_stick.msg import DetectedObjectsArray # Voxel Grid filter # PassThrough filter # RANSAC plane segmentation # Extract inliers/outliers # Outlier Removal Filter # Euclidean Clust...
37.834081
106
0.733555
#!/usr/bin/env python import numpy as np import sklearn from sklearn.preprocessing import LabelEncoder import pickle from sensor_stick.srv import GetNormals from sensor_stick.features import compute_color_histograms from sensor_stick.features import compute_normal_histograms from visualization_msgs.msg import Marker...
0
0
0
0
0
6,167
0
139
356
131e860e18ee61e01c595fad8941bfb4fb5deb07
546
py
Python
examples/joinable_queue.py
cloudbutton/cloudbutton
1062693a6767badc6369a026e2b8ad011f27efbb
[ "Apache-2.0" ]
7
2020-05-28T11:54:12.000Z
2020-09-26T13:16:45.000Z
examples/joinable_queue.py
cloudbutton/cloudbutton
1062693a6767badc6369a026e2b8ad011f27efbb
[ "Apache-2.0" ]
3
2020-06-18T14:07:27.000Z
2020-06-18T14:07:28.000Z
examples/joinable_queue.py
cloudbutton/cloudbutton
1062693a6767badc6369a026e2b8ad011f27efbb
[ "Apache-2.0" ]
5
2020-04-29T09:29:52.000Z
2020-09-22T13:42:55.000Z
from cloudbutton.multiprocessing import Process, JoinableQueue if __name__ == '__main__': q = JoinableQueue() p = Process(target=worker, args=(q,)) p.start() for x in range(10): q.put(x) # uncomment to hang on the q.join #q.put(11) q.join() q.put(-1) # end loop p.join(...
16.545455
62
0.532967
from cloudbutton.multiprocessing import Process, JoinableQueue def worker(q): working = True while working: x = q.get() # Do work that may fail assert x < 10 # Confirm task q.task_done() if x == -1: working = False if __name__ == '__main__': ...
0
0
0
0
0
201
0
0
23
04c390e7857fb3752b53b9c2903420309b83a2b5
12,045
py
Python
src/pyoram/storage/block_storage_file.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
24
2016-04-14T14:27:37.000Z
2022-03-13T13:53:18.000Z
src/pyoram/storage/block_storage_file.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
4
2016-03-14T04:40:23.000Z
2016-06-01T04:37:18.000Z
src/pyoram/storage/block_storage_file.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
4
2016-03-16T23:53:24.000Z
2020-05-27T19:27:37.000Z
__all__ = ('BlockStorageFile',) import logging from pyoram.storage.block_storage import BlockStorageTypeFactory log = logging.getLogger("pyoram") BlockStorageTypeFactory.register_device("file", BlockStorageFile)
35.955224
92
0.532337
__all__ = ('BlockStorageFile',) import os import struct import logging import errno from multiprocessing.pool import ThreadPool import pyoram from pyoram.storage.block_storage import \ (BlockStorageInterface, BlockStorageTypeFactory) import tqdm import six from six.moves import xrange log = logging.getLogg...
0
4,137
0
7,462
0
0
0
7
225
81fad6a313131369b06b9a12a0f5f95247a51169
951
py
Python
goutham_assignment/Company/views.py
xWaterBottlex/kutumb-assignment
c5deb51342394dc7e2c996a24cdf5e2662ded796
[ "MIT" ]
null
null
null
goutham_assignment/Company/views.py
xWaterBottlex/kutumb-assignment
c5deb51342394dc7e2c996a24cdf5e2662ded796
[ "MIT" ]
3
2021-06-08T21:41:51.000Z
2022-01-13T02:49:13.000Z
goutham_assignment/Company/views.py
GouthamDoddi/kutumb-assignment
c5deb51342394dc7e2c996a24cdf5e2662ded796
[ "MIT" ]
null
null
null
from django.apps import apps Company = apps.get_model('Company', 'Company')
28.818182
58
0.660358
from django.contrib.auth.mixins import LoginRequiredMixin from django.apps import apps from django.views.generic import DetailView, CreateView from django.http import HttpResponse, HttpRequest, request from django.core.signals import request_finished from django.dispatch import receiver Company = apps.get_model('Compa...
0
0
0
567
0
0
0
149
156
c54051df8e2aea44fdfe329ae2ee54ce18aa91a8
2,223
py
Python
generate_payout_data_script.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
33
2016-09-23T15:05:24.000Z
2021-08-30T11:13:35.000Z
generate_payout_data_script.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
4
2016-12-14T03:41:55.000Z
2020-05-27T20:27:55.000Z
generate_payout_data_script.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
12
2016-08-20T10:40:21.000Z
2022-01-03T09:47:01.000Z
import os import withpool text = file_contents() database = meta_math_database(text,n=None, remember_proof_steps=True) print() lm = LanguageModel(database) saved_interface = None # import import build_payout_data_set as pd pd.initialize_interface(lm, 'searcher') valp = lm.validation_propositions testp = lm.test_...
24.977528
89
0.689159
import time from tree_parser import * from data_utils5 import * import os import withpool text = file_contents() database = meta_math_database(text,n=None, remember_proof_steps=True) print() lm = LanguageModel(database) saved_interface = None # import import build_payout_data_set as pd pd.initialize_interface(lm, ...
0
0
0
0
0
114
0
-2
89
8a1bf4a8337112febfa3b668351586f40df2a744
6,427
py
Python
tests/test_sync_tx_legacy.py
fantix/edgedb-python
2d8deaec503a206555f97f3f71952462e3483629
[ "Apache-2.0" ]
null
null
null
tests/test_sync_tx_legacy.py
fantix/edgedb-python
2d8deaec503a206555f97f3f71952462e3483629
[ "Apache-2.0" ]
null
null
null
tests/test_sync_tx_legacy.py
fantix/edgedb-python
2d8deaec503a206555f97f3f71952462e3483629
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB authors. # # 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...
32.135
77
0.525751
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB authors. # # 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...
0
0
0
5,672
0
0
0
5
69
a76c710880e5cbafaca952cb802c9f15bd1e9aa8
4,297
py
Python
condense/torch/agent.py
SirBubbls/condense
e28f008477fe75c24b43cc853b2dc6d923f01813
[ "MIT" ]
null
null
null
condense/torch/agent.py
SirBubbls/condense
e28f008477fe75c24b43cc853b2dc6d923f01813
[ "MIT" ]
null
null
null
condense/torch/agent.py
SirBubbls/condense
e28f008477fe75c24b43cc853b2dc6d923f01813
[ "MIT" ]
null
null
null
"""This file contains the implementation for basic pruning operations on arbitrary torch modules.""" import torch import torch.nn as nn def calc_parameter_sparsity(p): """Calculates the sparsity percentage of a torch parameter. Args: p: torch parameter Returns: sparsity percentage (as float) with r...
37.692982
110
0.643938
"""This file contains the implementation for basic pruning operations on arbitrary torch modules.""" import torch import torch.nn as nn import copy from condense.optimizer.sparsity_functions import Constant def calc_parameter_sparsity(p): """Calculates the sparsity percentage of a torch parameter. Args: ...
0
0
0
3,524
0
0
0
27
67
15236d3fea42976c8c2bc779f41faee3462af1ff
2,715
py
Python
magenta/models/polyphonic_rnn/polyphonic_rnn_train.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
magenta/models/polyphonic_rnn/polyphonic_rnn_train.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
magenta/models/polyphonic_rnn/polyphonic_rnn_train.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
# 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 ag...
31.206897
79
0.73186
# 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 ag...
0
0
0
0
0
1,287
0
60
182
78621a8e86299831efb7f131bdc74604edf548df
1,297
py
Python
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_gui.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_gui.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_gui.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-chavier_gui.py,v 1.1 2020/03/11 20:17:12 wiz Exp $ Convert to python3 syntax. --- chavier/gui.py.orig 2011-08-08 19:23:18.000000000 +0000 +++ chavier/gui.py - print 'CHART STATE' - print '-' * 70 - print 'surface: %d x %d' % (alloc.width, alloc.height) - print 'area :', ...
34.131579
65
0.573631
$NetBSD: patch-chavier_gui.py,v 1.1 2020/03/11 20:17:12 wiz Exp $ Convert to python3 syntax. --- chavier/gui.py.orig 2011-08-08 19:23:18.000000000 +0000 +++ chavier/gui.py @@ -523,18 +523,18 @@ class GUI(object): alloc = self.drawing_area.get_allocation() - print 'CHART STATE' - print '-' *...
0
0
0
51
0
56
0
0
73
36ee0bbc01ea7f98c4fe146f9be1433586cda037
1,884
py
Python
ci/push/schedule_push.py
marcalbaladejo/CumulusCI
f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5
[ "BSD-3-Clause" ]
1
2018-01-31T11:56:03.000Z
2018-01-31T11:56:03.000Z
ci/push/schedule_push.py
marcalbaladejo/CumulusCI
f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5
[ "BSD-3-Clause" ]
null
null
null
ci/push/schedule_push.py
marcalbaladejo/CumulusCI
f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5
[ "BSD-3-Clause" ]
1
2016-07-20T12:15:38.000Z
2016-07-20T12:15:38.000Z
import os import sys import csv import time from push_api import SalesforcePushApi # Force UTF8 output reload(sys) sys.setdefaultencoding('UTF8') if __name__ == '__main__': try: username = os.environ.get('SF_USERNAME') password = os.environ.get('SF_PASSWORD') serverurl = os.enviro...
33.642857
113
0.639597
import os import sys import csv import time from push_api import SalesforcePushApi # Force UTF8 output reload(sys) sys.setdefaultencoding('UTF8') if __name__ == '__main__': try: username = os.environ.get('SF_USERNAME') password = os.environ.get('SF_PASSWORD') serverurl = os.enviro...
0
0
0
0
0
0
0
0
0
e1f3eb9090ef74e2bd15baffc14d784859c6b703
187
py
Python
network/models/random.py
matejker/network
e2a3f5cb4e351fb682aa1736813cc74bca55c169
[ "MIT" ]
1
2020-12-16T18:33:59.000Z
2020-12-16T18:33:59.000Z
network/models/random.py
matejker/network
e2a3f5cb4e351fb682aa1736813cc74bca55c169
[ "MIT" ]
4
2020-06-17T08:14:23.000Z
2020-06-18T22:31:47.000Z
network/models/random.py
matejker/network
e2a3f5cb4e351fb682aa1736813cc74bca55c169
[ "MIT" ]
1
2021-05-30T22:55:27.000Z
2021-05-30T22:55:27.000Z
# from network.models.exceptions import * # from network.network import Network # from network.models.tools import random_choice # from itertools import combinations # import numpy as np
31.166667
48
0.807487
# from network.models.exceptions import * # from network.network import Network # from network.models.tools import random_choice # from itertools import combinations # import numpy as np
0
0
0
0
0
0
0
0
0
105056080a2b5617ca7317b4dea241a923e78797
35
py
Python
Tests/Runnable1/r_pyclass_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
5
2019-05-26T20:48:36.000Z
2021-07-09T01:38:38.000Z
Tests/Runnable1/r_pyclass_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
null
null
null
Tests/Runnable1/r_pyclass_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
1
2022-02-10T07:14:58.000Z
2022-02-10T07:14:58.000Z
import r_pyclass r_pyclass.order()
11.666667
17
0.828571
import r_pyclass r_pyclass.order()
0
0
0
0
0
0
0
0
0
f208c87d20c028b36a883e09891dfc58b7c86336
27,334
py
Python
PixelGUI.py
ZachJW34/PixelGUI319k
f76c5a7bf6909662b609b7c8bf626a94bff980ad
[ "MIT" ]
1
2021-07-27T19:12:14.000Z
2021-07-27T19:12:14.000Z
PixelGUI.py
ZachJW34/PixelGUI319k
f76c5a7bf6909662b609b7c8bf626a94bff980ad
[ "MIT" ]
null
null
null
PixelGUI.py
ZachJW34/PixelGUI319k
f76c5a7bf6909662b609b7c8bf626a94bff980ad
[ "MIT" ]
null
null
null
#Developed by Zachary Williams import sys root = Tk() z = mainclass(root) root.mainloop() sys.exit()
52.870406
181
0.57412
#Developed by Zachary Williams from tkinter import * from functools import partial from PIL import Image import sys from sys import platform class mainclass(object): colorfillvar = 0 gridwidth = 8 gridheight = 8 griddim = gridwidth * gridheight colors = [] basecolor = "red" ...
0
0
0
27,087
0
0
0
11
119
5b5b793fca0e9766cab8b5858b8f208bb7985336
99
py
Python
3088.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
6
2021-04-13T00:33:43.000Z
2022-02-10T10:23:59.000Z
3088.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
null
null
null
3088.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
3
2021-03-23T18:42:24.000Z
2022-02-10T10:24:07.000Z
while True: try: e = input() except: break print(e.replace(' .', '.').replace(' ,', ','))
19.8
49
0.494949
while True: try: e = input() except: break print(e.replace(' .', '.').replace(' ,', ','))
0
0
0
0
0
0
0
0
0
ab980aaa6de7f8762e60114a8a45d13eb831478f
5,985
py
Python
Unlearning/pretrain.py
cleverhans-lab/unrolling-sgd
49e001f9cc77b61d65eac3bf26888b5183b73bef
[ "MIT" ]
3
2022-03-21T13:16:56.000Z
2022-03-22T07:55:10.000Z
Unlearning/pretrain.py
cleverhans-lab/unrolling-sgd
49e001f9cc77b61d65eac3bf26888b5183b73bef
[ "MIT" ]
null
null
null
Unlearning/pretrain.py
cleverhans-lab/unrolling-sgd
49e001f9cc77b61d65eac3bf26888b5183b73bef
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import os import argparse ##################################################################### ################### Some Loss functions things ##########...
40.167785
156
0.661988
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import os import argparse from ResNet_CIFAR10 import * from VGG_model import * #########################################...
0
0
0
0
0
1,412
0
19
135
3687dfbc45547dd943f334c95d56f3afef1bae2d
8,256
py
Python
pgsqltoolsservice/workspace/workspace_service.py
sergb213/pgtoolsservice
6296a207e7443fe4ebd5c91d837c033ee7886cab
[ "MIT" ]
null
null
null
pgsqltoolsservice/workspace/workspace_service.py
sergb213/pgtoolsservice
6296a207e7443fe4ebd5c91d837c033ee7886cab
[ "MIT" ]
null
null
null
pgsqltoolsservice/workspace/workspace_service.py
sergb213/pgtoolsservice
6296a207e7443fe4ebd5c91d837c033ee7886cab
[ "MIT" ]
1
2020-07-30T11:46:44.000Z
2020-07-30T11:46:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.149733
118
0.652737
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
0
167
0
7,046
0
0
0
507
190
21b26de6d2b9d84edfee3500275c6ffa369001c4
2,322
py
Python
lenskit/data/matrix.py
keener101/lkpy
7c71e8bd1f367d6a1bf57b36b129e025e2ba374d
[ "MIT" ]
210
2018-06-09T19:39:19.000Z
2022-03-19T15:14:23.000Z
lenskit/data/matrix.py
keener101/lkpy
7c71e8bd1f367d6a1bf57b36b129e025e2ba374d
[ "MIT" ]
301
2018-06-14T22:03:24.000Z
2022-03-11T23:05:57.000Z
lenskit/data/matrix.py
keener101/lkpy
7c71e8bd1f367d6a1bf57b36b129e025e2ba374d
[ "MIT" ]
57
2018-09-25T00:34:38.000Z
2022-02-21T10:09:56.000Z
""" Data manipulation routines. """ from collections import namedtuple import logging import scipy.sparse as sps import numpy as np import pandas as pd from csr import CSR _log = logging.getLogger(__name__) RatingMatrix = namedtuple('RatingMatrix', ['matrix', 'users', 'items']) RatingMatrix.__doc__ = """ A rating m...
31.378378
83
0.646856
""" Data manipulation routines. """ from collections import namedtuple import logging import scipy.sparse as sps import numpy as np import pandas as pd from csr import CSR _log = logging.getLogger(__name__) RatingMatrix = namedtuple('RatingMatrix', ['matrix', 'users', 'items']) RatingMatrix.__doc__ = """ A rating m...
0
0
0
0
0
0
0
0
0
a68ba59292f9e55761ad77efab34d937b8208857
6,218
py
Python
agent/src/clacks/agent/plugins/posix/filters.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
2
2015-01-26T07:15:19.000Z
2015-11-09T13:42:11.000Z
agent/src/clacks/agent/plugins/posix/filters.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
agent/src/clacks/agent/plugins/posix/filters.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
# This file is part of the clacks framework. # # http://clacks-project.org # # Copyright: # (C) 2010-2012 GONICUS GmbH, Germany, http://www.gonicus.de # # License: # GPL-2: http://www.gnu.org/licenses/gpl-2.0.html # # See the LICENSE file in the project's top-level directory for details. from clacks.common.error imp...
35.942197
107
0.600193
# This file is part of the clacks framework. # # http://clacks-project.org # # Copyright: # (C) 2010-2012 GONICUS GmbH, Germany, http://www.gonicus.de # # License: # GPL-2: http://www.gnu.org/licenses/gpl-2.0.html # # See the LICENSE file in the project's top-level directory for details. from clacks.agent.objects.f...
0
1,006
0
4,283
0
0
0
82
160
26aa104e94d0d68739f234e5b0e9ad3e892fb26d
1,724
py
Python
blender_script.py
B0und/bad_apple_cube
cd3b69d4ccc0ae36626176a425018eb56c92a528
[ "MIT" ]
null
null
null
blender_script.py
B0und/bad_apple_cube
cd3b69d4ccc0ae36626176a425018eb56c92a528
[ "MIT" ]
null
null
null
blender_script.py
B0und/bad_apple_cube
cd3b69d4ccc0ae36626176a425018eb56c92a528
[ "MIT" ]
null
null
null
import bpy import numpy as np import glob # Global consts WIDTH = 160 HEIGHT = 120 PROJECT_PATH = "/PATH/TO/bad_apple_blender_cube" FRAME_COUNT = len(glob.glob(f'{PROJECT_PATH}/frames/*.jpg')) # Prepare particle system cube = bpy.data.objects["Cube"] degp = bpy.context.evaluated_depsgraph_get() particle_systems = cu...
30.245614
68
0.774362
import bpy import numpy as np import glob # Global consts WIDTH = 160 HEIGHT = 120 PROJECT_PATH = "/PATH/TO/bad_apple_blender_cube" FRAME_COUNT = len(glob.glob(f'{PROJECT_PATH}/frames/*.jpg')) # Prepare particle system cube = bpy.data.objects["Cube"] degp = bpy.context.evaluated_depsgraph_get() particle_systems = cu...
0
0
0
0
0
0
0
0
0
03b416a08b5dc25b0e21740642be9908f184d5ba
2,163
py
Python
discord_interactions/flask_ext/utils.py
LiBa001/discord-interactions.py
7f19e1b33dfdf2fd9d0a95a164fba8820a031bba
[ "MIT" ]
19
2021-01-07T23:57:20.000Z
2022-01-23T19:49:46.000Z
discord_interactions/flask_ext/utils.py
LiBa001/discord-interactions-wrapper
7f19e1b33dfdf2fd9d0a95a164fba8820a031bba
[ "MIT" ]
4
2021-01-09T01:18:31.000Z
2021-06-11T22:39:45.000Z
discord_interactions/flask_ext/utils.py
LiBa001/discord-interactions-wrapper
7f19e1b33dfdf2fd9d0a95a164fba8820a031bba
[ "MIT" ]
2
2021-05-21T01:08:19.000Z
2021-09-25T03:12:44.000Z
#!/usr/bin/env python """ MIT License Original work Copyright (c) 2020 Ian Webster Modified work Copyright (c) 2020-2021 Linus Bartsch 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 res...
37.293103
88
0.714286
#!/usr/bin/env python """ MIT License Original work Copyright (c) 2020 Ian Webster Modified work Copyright (c) 2020-2021 Linus Bartsch 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 res...
0
701
0
0
0
123
0
83
90
a2d3c862606cac3220edb171c369ca9b33ceab18
1,856
py
Python
practice/troubleshooting/compare_problem.py
jhabboubi/GoogleAutomation
eb2c79f5ff5e5d600de83f406f24e6d79e0d8fda
[ "MIT" ]
null
null
null
practice/troubleshooting/compare_problem.py
jhabboubi/GoogleAutomation
eb2c79f5ff5e5d600de83f406f24e6d79e0d8fda
[ "MIT" ]
null
null
null
practice/troubleshooting/compare_problem.py
jhabboubi/GoogleAutomation
eb2c79f5ff5e5d600de83f406f24e6d79e0d8fda
[ "MIT" ]
null
null
null
""" The datetime module supplies classes for manipulating dates and times, and contains many types, objects, and methods. You've seen some of them used in the dow function, which returns the day of the week for a specific date. We'll use them again in the next_date function, which takes the date_string parameter in the...
45.268293
154
0.755927
""" The datetime module supplies classes for manipulating dates and times, and contains many types, objects, and methods. You've seen some of them used in the dow function, which returns the day of the week for a specific date. We'll use them again in the next_date function, which takes the date_string parameter in the...
0
0
0
0
0
615
0
-6
69
1a36054e4b7418274e99314f78d19465e2792514
18,963
py
Python
pairwise_classification/one_part_exp.py
dreamysx/lorelei
e17b13309ab57920690c843b92eab0178190ec20
[ "MIT" ]
null
null
null
pairwise_classification/one_part_exp.py
dreamysx/lorelei
e17b13309ab57920690c843b92eab0178190ec20
[ "MIT" ]
null
null
null
pairwise_classification/one_part_exp.py
dreamysx/lorelei
e17b13309ab57920690c843b92eab0178190ec20
[ "MIT" ]
null
null
null
from __future__ import division import json import numpy as np import matplotlib.pyplot as plt import time import random from sklearn.linear_model import LogisticRegressionCV from sklearn.ensemble import RandomForestClassifier as RFC import pandas as pd import operator from sklearn.metrics import roc_curve, precision_r...
43.393593
186
0.590729
from __future__ import division import json import numpy as np import matplotlib.pyplot as plt import time import random from sklearn.linear_model import LogisticRegressionCV from sklearn.ensemble import RandomForestClassifier as RFC import pandas as pd import operator from sklearn.metrics import roc_curve, precision_r...
0
0
0
0
0
12,621
0
0
112
38652c248a4584e2b2780ee78dd51e86e74e2328
7,639
py
Python
project/projectapp.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
2
2019-04-20T03:45:51.000Z
2019-04-27T05:52:10.000Z
project/projectapp.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
3
2019-04-21T18:57:32.000Z
2019-04-28T15:14:02.000Z
project/projectapp.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
4
2019-04-23T00:32:21.000Z
2019-04-29T22:29:00.000Z
# app.py import json from flask import Flask from flask import jsonify from flask import request from apymongodb import APymongodb SECRET_KEY = "Secret Key" #app = Flask(__name__) #app.config.from_object(__name__) # create flask instance app=create_app() app = Flask(__name__) app.config.from_object(__name__) mongod...
32.785408
129
0.615002
# app.py import pprint import json import bson import jwt import pymongo import mongomock import requests from flask import Flask from flask import jsonify from flask import request from flask import Response from flask import abort from flask import json,jsonify, make_response,session from flask import render_templa...
0
4,549
0
0
0
1,457
0
15
517