hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
75022887b6f82317b30d98bb409f69f029c65114
486
py
Python
tests/frameworks/fast/test_fast_template.py
Jhsmit/awesome-panel-extensions
41eba7cf84caa911be4ed0df2a96e16fc1e70263
[ "CC-BY-4.0" ]
3
2020-07-16T07:28:45.000Z
2020-07-17T12:53:56.000Z
tests/frameworks/fast/test_fast_template.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
tests/frameworks/fast/test_fast_template.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
# pylint: disable=redefined-outer-name,protected-access # pylint: disable=missing-function-docstring,missing-module-docstring,missing-class-docstring import panel as pn from panel import Template from awesome_panel_extensions.frameworks.fast import FastTemplate
27
93
0.753086
7502dff8f0fd39e9a5e925ef11b5e1b9ca9564a0
2,371
py
Python
doc2json/jats2json/pmc_utils/back_tag_utils.py
josephcc/s2orc-doc2json
8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d
[ "Apache-2.0" ]
132
2021-02-15T18:16:12.000Z
2022-03-29T04:47:17.000Z
doc2json/jats2json/pmc_utils/back_tag_utils.py
josephcc/s2orc-doc2json
8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d
[ "Apache-2.0" ]
6
2021-02-21T09:52:11.000Z
2022-02-01T17:45:43.000Z
doc2json/jats2json/pmc_utils/back_tag_utils.py
josephcc/s2orc-doc2json
8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d
[ "Apache-2.0" ]
18
2021-02-15T18:18:05.000Z
2022-03-11T19:37:47.000Z
from typing import Dict, List def parse_authors(authors_tag) -> List: """The PMC XML has a slightly different format than authors listed in front tag.""" if not authors_tag: return [] authors = [] for name_tag in authors_tag.find_all('name', recursive=False): surname = nam...
42.339286
122
0.564319
750381121aa3cf7a3891c547ae46158207b13b45
968
py
Python
machomachomangler/tests/test_destruct.py
dsteinmo/probewheel
458cfaf319d793cae496cb902220b31697fb3c41
[ "MIT" ]
null
null
null
machomachomangler/tests/test_destruct.py
dsteinmo/probewheel
458cfaf319d793cae496cb902220b31697fb3c41
[ "MIT" ]
null
null
null
machomachomangler/tests/test_destruct.py
dsteinmo/probewheel
458cfaf319d793cae496cb902220b31697fb3c41
[ "MIT" ]
null
null
null
import pytest from ..destruct import StructType _fields = [ ("I", "magic"), ("c", "byte"), ] TEST = StructType("TEST", _fields) TEST_BE = StructType("TEST_BE", _fields, endian=">")
26.162162
68
0.627066
75049038ef408868d10288b82c85095dff68131e
1,178
py
Python
baseline_configs/one_phase/one_phase_rgb_ppo.py
zju-zry/jueshaRearrangement.
3499c917e613f9c347e5aa95b4f3186d68db7363
[ "Apache-2.0" ]
37
2020-10-12T19:08:11.000Z
2022-02-13T07:09:53.000Z
baseline_configs/one_phase/one_phase_rgb_ppo.py
zju-zry/jueshaRearrangement.
3499c917e613f9c347e5aa95b4f3186d68db7363
[ "Apache-2.0" ]
24
2021-02-25T21:37:34.000Z
2022-03-21T06:25:52.000Z
baseline_configs/one_phase/one_phase_rgb_ppo.py
zju-zry/jueshaRearrangement.
3499c917e613f9c347e5aa95b4f3186d68db7363
[ "Apache-2.0" ]
12
2021-02-18T06:15:33.000Z
2022-03-03T15:18:19.000Z
from typing import Dict, Any from allenact.algorithms.onpolicy_sync.losses import PPO from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig from allenact.utils.experiment_utils import LinearDecay, PipelineStage from baseline_configs.one_phase.one_phase_rgb_base import ( OnePhaseRGBBaseExperimentConfig...
29.45
87
0.663837
75054ce723fd893b6681ad004d075813a927586a
2,593
py
Python
gachianalyzer/analysis_organizer.py
mitsu-ksgr/splatoon2-gachianalyzer
9d964f514c85b626bc8e604a0bf3a2598ac91765
[ "MIT" ]
null
null
null
gachianalyzer/analysis_organizer.py
mitsu-ksgr/splatoon2-gachianalyzer
9d964f514c85b626bc8e604a0bf3a2598ac91765
[ "MIT" ]
1
2019-07-15T16:54:57.000Z
2019-07-15T18:41:39.000Z
gachianalyzer/analysis_organizer.py
mitsu-ksgr/splatoon2-gachianalyzer
9d964f514c85b626bc8e604a0bf3a2598ac91765
[ "MIT" ]
null
null
null
import cv2 from .video_analyzer import VideoAnalyzer
30.505882
81
0.482838
75079e3853a4f1c859f848cdaeaff5686ff6bb5e
934
py
Python
setup.py
sfable/malias
6a5f6dc17eb42b6579e7981696427cf9deae56fb
[ "MIT" ]
null
null
null
setup.py
sfable/malias
6a5f6dc17eb42b6579e7981696427cf9deae56fb
[ "MIT" ]
null
null
null
setup.py
sfable/malias
6a5f6dc17eb42b6579e7981696427cf9deae56fb
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from malias import __version__ setup( name = "malias", version = __version__, author = 'Stuart Fable', author_email = 'stuart.fable@gmail.com', license = 'MIT', keywords = 'malias system alias', description = '', url = 'https://github.com/sfa...
30.129032
73
0.611349
75083e4350e39196ba53d1e4dfa29f5cc91a501b
1,149
py
Python
libs/strategies.py
jonowens/mr_si_boller_strategy
53d02e62514442e285a002975536bb264d6c1e3c
[ "MIT" ]
null
null
null
libs/strategies.py
jonowens/mr_si_boller_strategy
53d02e62514442e285a002975536bb264d6c1e3c
[ "MIT" ]
null
null
null
libs/strategies.py
jonowens/mr_si_boller_strategy
53d02e62514442e285a002975536bb264d6c1e3c
[ "MIT" ]
null
null
null
# Strategies for trading # Import necessary libraries import pandas as pd from stockstats import StockDataFrame as Sdf def test_macd_strategy(stock_df, stock_symbol): ''' Tests MACD Strategy Args: stock_df (df): Asset dataframe containing ticker symbol key and column headings: 'open', 'close',...
30.236842
80
0.614447
750918e8872a1b7a4b9376e1b5490cc0edf34be0
210
py
Python
hjhj.py
jatinchaudhary/python_dump
5f7d63237fcb96a66bc3c4151599c7849f0f2735
[ "bzip2-1.0.6" ]
null
null
null
hjhj.py
jatinchaudhary/python_dump
5f7d63237fcb96a66bc3c4151599c7849f0f2735
[ "bzip2-1.0.6" ]
null
null
null
hjhj.py
jatinchaudhary/python_dump
5f7d63237fcb96a66bc3c4151599c7849f0f2735
[ "bzip2-1.0.6" ]
null
null
null
a=int(input()) b=int(input()) c=int(input()) if(a>b and a>c): print("number 1 is greatest") elif(b>a and b>c): print("number 2 is greatest") else: print("number 3 is greatest")
15
34
0.557143
7509211755a7245800dfbd3042066dfd9b209c87
288
py
Python
answers/x_2_6.py
ofl/kuku
76eefc0d3d859051473ee0d5f48b5d42d17d05a6
[ "MIT" ]
null
null
null
answers/x_2_6.py
ofl/kuku
76eefc0d3d859051473ee0d5f48b5d42d17d05a6
[ "MIT" ]
4
2021-09-23T03:19:52.000Z
2021-11-13T10:38:21.000Z
answers/x_2_6.py
ofl/kuku
76eefc0d3d859051473ee0d5f48b5d42d17d05a6
[ "MIT" ]
null
null
null
# x_2_6 # # abcd # print(type('')) print(type(10)) print(type(12.3)) a = type('777') # => str b = type(10 + 3.5) # => float c = type(14 / 7) # => float d = type(10_000_000) # => int # print(a) # print(b) # print(c) # print(d)
15.157895
43
0.541667
750a3aa09148f31ca78defa66da3c665dedc7552
695
py
Python
Python with functions/W11-12/week 12/Activities/fruit.py
marcosamos/Python-tasks-and-proyects
00426323647639016a407c40af1fd00f35ea2229
[ "MIT" ]
null
null
null
Python with functions/W11-12/week 12/Activities/fruit.py
marcosamos/Python-tasks-and-proyects
00426323647639016a407c40af1fd00f35ea2229
[ "MIT" ]
null
null
null
Python with functions/W11-12/week 12/Activities/fruit.py
marcosamos/Python-tasks-and-proyects
00426323647639016a407c40af1fd00f35ea2229
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
24.821429
53
0.635971
750b3b2ba41e96337a40f45d5e335eb02fee0e87
779
py
Python
deepcode_go_to_file_and_ignore.py
TheSecEng/sublime-plugin
8e43a175c7a282eb280e25ce73ddf2350a9adce7
[ "MIT" ]
null
null
null
deepcode_go_to_file_and_ignore.py
TheSecEng/sublime-plugin
8e43a175c7a282eb280e25ce73ddf2350a9adce7
[ "MIT" ]
null
null
null
deepcode_go_to_file_and_ignore.py
TheSecEng/sublime-plugin
8e43a175c7a282eb280e25ce73ddf2350a9adce7
[ "MIT" ]
null
null
null
import sublime import sublime_plugin
31.16
81
0.607189
750bab79259e61720a722f8d803d015d29bbc248
8,817
py
Python
src/generate_training_data.py
thesukantadey/OpeNPDN
116ce3c4ba82d326f04041606008baf3049b12b0
[ "BSD-3-Clause" ]
13
2019-11-17T04:03:26.000Z
2021-09-02T13:56:00.000Z
src/generate_training_data.py
thesukantadey/OpeNPDN
116ce3c4ba82d326f04041606008baf3049b12b0
[ "BSD-3-Clause" ]
3
2020-07-02T14:51:08.000Z
2022-02-04T07:46:41.000Z
src/generate_training_data.py
thesukantadey/OpeNPDN
116ce3c4ba82d326f04041606008baf3049b12b0
[ "BSD-3-Clause" ]
12
2019-12-28T17:48:16.000Z
2022-01-02T13:08:35.000Z
#BSD 3-Clause License # #Copyright (c) 2019, The Regents of the University of Minnesota # #All rights reserved. # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are met: # #* Redistributions of source code must retain the above cop...
45.683938
88
0.589543
750cd8982da9405f375e4b29225621151e43efde
7,859
py
Python
otcextensions/sdk/cce/v3/cluster_node.py
kucerakk/python-otcextensions
d74d6aaa6dcf7c46d2c5fbe3676656baaf8e81d6
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/cce/v3/cluster_node.py
kucerakk/python-otcextensions
d74d6aaa6dcf7c46d2c5fbe3676656baaf8e81d6
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/cce/v3/cluster_node.py
kucerakk/python-otcextensions
d74d6aaa6dcf7c46d2c5fbe3676656baaf8e81d6
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.150485
78
0.600204
750de47d7f0a435cfabb43c7f53caeaa653c6db4
6,437
py
Python
ceilometer/agent.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
ceilometer/agent.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
ceilometer/agent.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Julien Danjou # Copyright 2014 Red Hat, Inc # # Authors: Julien Danjou <julien@danjou.info> # Eoghan Glynn <eglynn@redhat.com> # # 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...
36.782857
78
0.632282
750e393db3ff6b81b70b29c6cc402c893928186d
11,366
py
Python
tests/legacy/test_pypi.py
hickford/warehouse
87d3403b3e09d1213177133744f20430fca030ca
[ "Apache-2.0" ]
1
2019-01-31T02:44:40.000Z
2019-01-31T02:44:40.000Z
tests/legacy/test_pypi.py
hickford/warehouse
87d3403b3e09d1213177133744f20430fca030ca
[ "Apache-2.0" ]
1
2016-09-14T00:57:23.000Z
2016-09-14T00:57:23.000Z
tests/legacy/test_pypi.py
hickford/warehouse
87d3403b3e09d1213177133744f20430fca030ca
[ "Apache-2.0" ]
1
2020-11-05T09:46:12.000Z
2020-11-05T09:46:12.000Z
# Copyright 2013 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
31.572222
78
0.570649
75141fdc0d4a4c71c0178c6ccd7f200961cef89d
8,204
py
Python
analysis/gfp/seqtools.py
johli/genesis
5424c1888d4330e505ad87412e7f1cc5dd828888
[ "MIT" ]
12
2020-02-02T14:29:15.000Z
2021-09-12T08:05:43.000Z
analysis/gfp/seqtools.py
johli/genesis
5424c1888d4330e505ad87412e7f1cc5dd828888
[ "MIT" ]
1
2022-01-04T08:04:00.000Z
2022-01-10T08:49:04.000Z
analysis/gfp/seqtools.py
johli/genesis
5424c1888d4330e505ad87412e7f1cc5dd828888
[ "MIT" ]
3
2020-03-10T22:24:05.000Z
2021-05-05T13:23:01.000Z
import numpy as np
44.345946
112
0.384203
7515cac7e4d1ef43edd544d3910c5a6a20ce7a6c
98
py
Python
python/eet/__init__.py
SidaZh/EET
6414faa734abfdb666556304ca3df5b7f5e54c38
[ "Apache-2.0" ]
null
null
null
python/eet/__init__.py
SidaZh/EET
6414faa734abfdb666556304ca3df5b7f5e54c38
[ "Apache-2.0" ]
null
null
null
python/eet/__init__.py
SidaZh/EET
6414faa734abfdb666556304ca3df5b7f5e54c38
[ "Apache-2.0" ]
null
null
null
from .fairseq import * from .transformers import * from .utils import * from .pipelines import *
16.333333
27
0.744898
7517c166337bb5a829a1b931762f8f58fa31c7b9
4,743
py
Python
examples/client_example.py
christian-oudard/AIOPyFix
cb9e9372075e6119c0ef363d2095b3b6fddafcf3
[ "CC0-1.0" ]
null
null
null
examples/client_example.py
christian-oudard/AIOPyFix
cb9e9372075e6119c0ef363d2095b3b6fddafcf3
[ "CC0-1.0" ]
null
null
null
examples/client_example.py
christian-oudard/AIOPyFix
cb9e9372075e6119c0ef363d2095b3b6fddafcf3
[ "CC0-1.0" ]
null
null
null
import asyncio from enum import Enum import logging import random from aiopyfix.connection import ConnectionState, MessageDirection from aiopyfix.client_connection import FIXClient from aiopyfix.engine import FIXEngine from aiopyfix.message import FIXMessage if __name__ == '__main__': logging.basicConfig(level=...
48.896907
117
0.685853
7518f8a86bdcb8318519e5f88ff22d6bb07f2c4c
1,236
py
Python
quantize-gym/gym/envs/robotics/fetch/pick_and_place.py
YunchuZhang/Visually-Grounded-Library-of-Behaviors-for-Generalizing-Manipulation-Across-Objects-Configurations-
896afda942dfc04e4aaad2ee751c32df1eb17913
[ "MIT" ]
1
2022-03-14T22:25:17.000Z
2022-03-14T22:25:17.000Z
quantize-gym/gym/envs/robotics/fetch/pick_and_place.py
YunchuZhang/Visually-Grounded-Library-of-Behaviors
896afda942dfc04e4aaad2ee751c32df1eb17913
[ "MIT" ]
null
null
null
quantize-gym/gym/envs/robotics/fetch/pick_and_place.py
YunchuZhang/Visually-Grounded-Library-of-Behaviors
896afda942dfc04e4aaad2ee751c32df1eb17913
[ "MIT" ]
null
null
null
import os from gym import utils from gym.envs.robotics import fetch_env # Ensure we get the path separator correct on windows MODEL_XML_PATH = os.path.join('fetch', 'pick_and_place.xml')
41.2
111
0.666667
751a5509067e9ef3020f185d496e96ee2816760b
1,272
py
Python
logic_inference_dataset/generate_sample_data.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
logic_inference_dataset/generate_sample_data.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
logic_inference_dataset/generate_sample_data.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
27.652174
74
0.680031
751cf1f93872f6c6b2d86dc97e766003d090960e
5,414
py
Python
UQ/UQtutorial.py
ISR3D/ISR3D
e4f31a2bddbedb8e2743e088ee24f865bc97ec30
[ "BSD-3-Clause" ]
null
null
null
UQ/UQtutorial.py
ISR3D/ISR3D
e4f31a2bddbedb8e2743e088ee24f865bc97ec30
[ "BSD-3-Clause" ]
null
null
null
UQ/UQtutorial.py
ISR3D/ISR3D
e4f31a2bddbedb8e2743e088ee24f865bc97ec30
[ "BSD-3-Clause" ]
null
null
null
import subprocess lib_list = ['numpy','ymmsl','sobol_seq','csv','seaborn','zenodo_get'] for lib_name in lib_list: try: import lib_name except ImportError: if lib_name == 'csv': print(lib_name,' Module not installed') subprocess.run(['pip','install','python-csv']) else: print(lib_name,' Module not inst...
36.581081
115
0.648689
751dc8bcc74a49ad7a489ad38470f4ef64fc97a5
12,715
py
Python
launch/test/launch/test_logging.py
pal-robotics-forks/launch
9a0a01924cd88f832c5a50903553ddcec6ef648d
[ "Apache-2.0" ]
null
null
null
launch/test/launch/test_logging.py
pal-robotics-forks/launch
9a0a01924cd88f832c5a50903553ddcec6ef648d
[ "Apache-2.0" ]
null
null
null
launch/test/launch/test_logging.py
pal-robotics-forks/launch
9a0a01924cd88f832c5a50903553ddcec6ef648d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
39.243827
98
0.683366
751f0dac6fc587c1fb5bfe7b2c73eb70a7dff82d
690
py
Python
code/C10/pkg/mysql.py
DataScienceCoding/Python-Web-Crawler
7348f20b09fc89263ac4a7109b3890c64b687265
[ "MIT" ]
2
2020-12-17T06:33:48.000Z
2020-12-26T01:21:13.000Z
code/C10/pkg/mysql.py
DataScienceCoding/Python-Web-Crawler
7348f20b09fc89263ac4a7109b3890c64b687265
[ "MIT" ]
null
null
null
code/C10/pkg/mysql.py
DataScienceCoding/Python-Web-Crawler
7348f20b09fc89263ac4a7109b3890c64b687265
[ "MIT" ]
null
null
null
import pymysql from conf.cfg import Conf
28.75
67
0.484058
751f12c2fc158ec39592f00d7e74f388ca110773
12,621
py
Python
matrixprofile/io/protobuf/protobuf_utils.py
MORE-EU/matrixprofile
7c598385f7723f337d7bf7d3f90cffb690c6b0df
[ "Apache-2.0" ]
262
2020-02-28T20:42:27.000Z
2022-03-30T14:02:28.000Z
matrixprofile/io/protobuf/protobuf_utils.py
MORE-EU/matrixprofile
7c598385f7723f337d7bf7d3f90cffb690c6b0df
[ "Apache-2.0" ]
79
2020-03-01T01:42:14.000Z
2022-03-30T07:15:48.000Z
matrixprofile/io/protobuf/protobuf_utils.py
MORE-EU/matrixprofile
7c598385f7723f337d7bf7d3f90cffb690c6b0df
[ "Apache-2.0" ]
56
2020-03-03T14:56:27.000Z
2022-03-22T07:18:42.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals range = getattr(__builtins__, 'xrange', range) # end of py2 compatability boilerplate import numpy as np from matrixprofile import core from ma...
26.459119
78
0.614056
751f7bec046094aa0251500c529606eae0d8aaaa
62
py
Python
projects/thesis/continuous/custom/evaluation/__init__.py
cpark90/rrrcnn
ba66cc391265be76fa3896b66459ff7241b47972
[ "Apache-2.0" ]
null
null
null
projects/thesis/continuous/custom/evaluation/__init__.py
cpark90/rrrcnn
ba66cc391265be76fa3896b66459ff7241b47972
[ "Apache-2.0" ]
null
null
null
projects/thesis/continuous/custom/evaluation/__init__.py
cpark90/rrrcnn
ba66cc391265be76fa3896b66459ff7241b47972
[ "Apache-2.0" ]
null
null
null
from .classification_evaluation import ClassificationEvaluator
62
62
0.935484
75216809d842cd4da667e46bd80746c5bf9a0d5c
4,196
py
Python
swamp/wrappers/phenixcc.py
rigdenlab/SWAMP
3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e
[ "BSD-3-Clause" ]
2
2020-02-15T11:06:34.000Z
2020-04-10T08:48:49.000Z
swamp/wrappers/phenixcc.py
rigdenlab/SWAMP
3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e
[ "BSD-3-Clause" ]
15
2020-02-04T10:56:07.000Z
2021-02-12T09:11:03.000Z
swamp/wrappers/phenixcc.py
rigdenlab/SWAMP
3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e
[ "BSD-3-Clause" ]
4
2020-02-04T13:25:09.000Z
2022-03-23T13:44:17.000Z
import os import shutil from pyjob import cexec from swamp.wrappers.wrapper import Wrapper from swamp.parsers import PhenixParser def _clean_files(self): """Remove annoying files""" try: shutil.rmtree(os.path.join(self.workdir, "temp_dir")) os.remove(os.path.join(self.work...
36.486957
120
0.656816
75217fe93a80109a6e221e14b5e96a11ae8b35fe
89
py
Python
api/src/app/settings.py
mdcg/fastapi-processes-microservices
cfa2309e0cb6b811525925cfa447c6f6dff37b3a
[ "MIT" ]
null
null
null
api/src/app/settings.py
mdcg/fastapi-processes-microservices
cfa2309e0cb6b811525925cfa447c6f6dff37b3a
[ "MIT" ]
null
null
null
api/src/app/settings.py
mdcg/fastapi-processes-microservices
cfa2309e0cb6b811525925cfa447c6f6dff37b3a
[ "MIT" ]
null
null
null
from decouple import config MEDIA_PATH = config("MEDIA_PATH", "/home/mdcg/Documents/")
17.8
58
0.752809
75218be058245f88ba545a6dbbbb4d1e406ae82c
658
py
Python
HookMandrill2Mongo.py
krisfremen/hookmandrill2mongo
2533ba8ec3e7d38ecccd0529c1f2e86175233156
[ "MIT" ]
null
null
null
HookMandrill2Mongo.py
krisfremen/hookmandrill2mongo
2533ba8ec3e7d38ecccd0529c1f2e86175233156
[ "MIT" ]
null
null
null
HookMandrill2Mongo.py
krisfremen/hookmandrill2mongo
2533ba8ec3e7d38ecccd0529c1f2e86175233156
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from flask import * from pymongo import MongoClient application = app = Flask(__name__) dbhost = "localhost" dbname = "webhooks" dbcoll = "mandrill" if __name__ == '__main__': app.debug = True app.run(host="0.0.0.0")
25.307692
70
0.642857
7521abe9ff6b8eb7fdbe61e78df34e69a3c17afc
1,493
py
Python
dc_interactions/payloads.py
merlinfuchs/discord-interactions
922f40e6294e6f86ee2bd38b5cc7594ba9e16a57
[ "MIT" ]
1
2021-01-08T18:22:59.000Z
2021-01-08T18:22:59.000Z
dc_interactions/payloads.py
merlinfuchs/discord-interactions
922f40e6294e6f86ee2bd38b5cc7594ba9e16a57
[ "MIT" ]
null
null
null
dc_interactions/payloads.py
merlinfuchs/discord-interactions
922f40e6294e6f86ee2bd38b5cc7594ba9e16a57
[ "MIT" ]
1
2021-03-22T01:41:57.000Z
2021-03-22T01:41:57.000Z
from enum import IntEnum __all__ = ( "InteractionType", "InteractionPayload", "CommandInteractionData", "CommandInteractionDataOption", )
28.169811
89
0.625586
75226d063cbc9f7c130c7e84b92141262adc03ae
293
py
Python
prepoint/__init__.py
edose/prepoint
1239ea3962cc33c4d640bb4ba8b1b00e032b74d4
[ "MIT" ]
null
null
null
prepoint/__init__.py
edose/prepoint
1239ea3962cc33c4d640bb4ba8b1b00e032b74d4
[ "MIT" ]
null
null
null
prepoint/__init__.py
edose/prepoint
1239ea3962cc33c4d640bb4ba8b1b00e032b74d4
[ "MIT" ]
null
null
null
__author__ = "Eric Dose :: New Mexico Mira Project, Albuquerque" # PyInstaller (__init__.py file should be in place as peer to .py file to run): # in Windows Command Prompt (E. Dose dev PC): # cd c:\Dev\prepoint\prepoint # C:\Programs\Miniconda\Scripts\pyinstaller app.spec
36.625
79
0.699659
75233bda5c1d82d7661f64415b9128860bbf01e0
1,811
py
Python
module1-web-application-development-with-flask/web_app/app.py
brucebra000/DS-Unit-3-Sprint-3-Productization-and-Cloud
79517add84597ea8ee03020a610febd990125a77
[ "MIT" ]
null
null
null
module1-web-application-development-with-flask/web_app/app.py
brucebra000/DS-Unit-3-Sprint-3-Productization-and-Cloud
79517add84597ea8ee03020a610febd990125a77
[ "MIT" ]
null
null
null
module1-web-application-development-with-flask/web_app/app.py
brucebra000/DS-Unit-3-Sprint-3-Productization-and-Cloud
79517add84597ea8ee03020a610febd990125a77
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request, render_template from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate app = Flask(__name__) app.config['CUSTOM_VAR'] = 5 app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///web_app.db' db = SQLAlchemy(app) migrate = Migrate(app, db) #Routing
24.808219
65
0.651022
75235861d739f4f133107a3c37b9a2690bd13959
1,741
pyde
Python
mode/examples/Topics/Simulate/Spring/Spring.pyde
katnino/processing.py
ff6450a6606908a014ce795340c06c8f6d90023d
[ "Apache-2.0" ]
4
2016-08-09T14:14:36.000Z
2021-12-10T07:51:35.000Z
mode/examples/Topics/Simulate/Spring/Spring.pyde
katnino/processing.py
ff6450a6606908a014ce795340c06c8f6d90023d
[ "Apache-2.0" ]
null
null
null
mode/examples/Topics/Simulate/Spring/Spring.pyde
katnino/processing.py
ff6450a6606908a014ce795340c06c8f6d90023d
[ "Apache-2.0" ]
null
null
null
""" Spring. Click, drag, and release the horizontal bar to start the spring. """ # Spring drawing constants for top bar springHeight = 32 # Height left = 0 # Left position right = 0 # Right position max = 200 # Maximum Y value min = 100 # Minimum Y value over = False # If mouse over move = False ...
21.7625
68
0.570362
7523a0d4955311eb3320311b8ea38e93f8cc74e7
10,255
py
Python
ldbcache.py
Exahilosys/ldbcache
7fd21b94eac1eaf007952d0e2811adb88cfb2328
[ "MIT" ]
null
null
null
ldbcache.py
Exahilosys/ldbcache
7fd21b94eac1eaf007952d0e2811adb88cfb2328
[ "MIT" ]
null
null
null
ldbcache.py
Exahilosys/ldbcache
7fd21b94eac1eaf007952d0e2811adb88cfb2328
[ "MIT" ]
null
null
null
import pathing import collections import itertools import copy __all__ = ('Tree', 'Cache', 'Entry', 'EntryCache', 'RowCache', 'BulkRowCache', 'AlikeBulkRowCache') def _create(value): """ Create or return an entry from the value. """ return value if isinstance(value, Entry) else Entry...
19.721154
80
0.518381
7523dddeccce7c26beff51912adb1dd4fceff950
11,210
py
Python
logging_automation.py
aws-samples/aws-centeralized-logging-with-datadog
f1fb778664915b645a0fec5c56a34654ac761233
[ "MIT-0" ]
3
2020-02-05T03:52:33.000Z
2021-10-30T01:41:04.000Z
logging_automation.py
aws-samples/aws-centeralized-logging-with-datadog
f1fb778664915b645a0fec5c56a34654ac761233
[ "MIT-0" ]
null
null
null
logging_automation.py
aws-samples/aws-centeralized-logging-with-datadog
f1fb778664915b645a0fec5c56a34654ac761233
[ "MIT-0" ]
6
2018-09-06T05:48:07.000Z
2021-10-30T01:40:56.000Z
# Copyright 2008-2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # http://aws.amazon.com/apache2.0/ # or in the "license" file accompanying...
46.322314
268
0.632739
7523e5848177e8777c98952e7fd199b4781b9cbb
1,329
py
Python
setup.py
merwok-forks/shortuuid
4da632a986c3a43f75c7df64f27a90bbf7ff8039
[ "BSD-3-Clause" ]
null
null
null
setup.py
merwok-forks/shortuuid
4da632a986c3a43f75c7df64f27a90bbf7ff8039
[ "BSD-3-Clause" ]
null
null
null
setup.py
merwok-forks/shortuuid
4da632a986c3a43f75c7df64f27a90bbf7ff8039
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "2.5", "Requires Python v2.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Program...
31.642857
86
0.676448
75256c2774647f7511c9c5789e9a1b6ac39eb890
661
py
Python
scripts/tweakstatus.py
willingc/pc-bot
8a8ba6bc4c1fbb4bd3dbc740509bf30b3077b06c
[ "BSD-3-Clause" ]
5
2015-05-29T04:18:15.000Z
2020-07-01T00:28:27.000Z
scripts/tweakstatus.py
alex/pc-bot
ff6d9fcb16363c447e9abff1079708f945f795e9
[ "BSD-3-Clause" ]
1
2022-02-11T03:48:57.000Z
2022-02-11T03:48:57.000Z
scripts/tweakstatus.py
willingc/pc-bot
8a8ba6bc4c1fbb4bd3dbc740509bf30b3077b06c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Manually tweak a talk's status, leaving a note about why. """ import sys import argparse import pycon_bot.mongo from pycon_bot.models import TalkProposal, Note p = argparse.ArgumentParser() p.add_argument('talk_id', type=int) p.add_argument('new_status', choices=[c[0] for c in TalkProposal.S...
25.423077
75
0.733737
7525706ad54bd4b2a9f0d23e9ee500de4af64324
5,034
py
Python
src/javactl/setting/java_setting.py
mogproject/javactl
4f933f434695938d0ce5ab02d1b28fec983645b1
[ "Apache-2.0" ]
5
2015-12-12T06:45:52.000Z
2018-07-31T14:47:23.000Z
src/javactl/setting/java_setting.py
mogproject/javactl
4f933f434695938d0ce5ab02d1b28fec983645b1
[ "Apache-2.0" ]
18
2015-09-13T13:50:28.000Z
2019-04-13T08:00:58.000Z
src/javactl/setting/java_setting.py
mogproject/javactl
4f933f434695938d0ce5ab02d1b28fec983645b1
[ "Apache-2.0" ]
4
2016-03-14T08:43:25.000Z
2019-04-12T08:10:07.000Z
from __future__ import division, print_function, absolute_import, unicode_literals import os from mog_commons.case_class import CaseClass from mog_commons.functional import omap, oget
42.302521
132
0.53973
7525a7d9252dd56445bf00805d482a8fadc93bb8
405
py
Python
test/test_solidsnake.py
mattcoding4days/MetalGear
964ca2f7b031d5787b00a3d9ff92a9d79371646d
[ "BSD-2-Clause" ]
1
2020-05-24T17:57:53.000Z
2020-05-24T17:57:53.000Z
test/test_solidsnake.py
mattcoding4days/MetalGear
964ca2f7b031d5787b00a3d9ff92a9d79371646d
[ "BSD-2-Clause" ]
null
null
null
test/test_solidsnake.py
mattcoding4days/MetalGear
964ca2f7b031d5787b00a3d9ff92a9d79371646d
[ "BSD-2-Clause" ]
null
null
null
""" Test code for the MetalGear package Test solidsnake.py """ import unittest from MetalGear.solidsnake import Snake if __name__ == '__main__': unittest.main()
22.5
66
0.708642
7529f8e53ff7f49c5aec1728ca3a0893d882a584
4,339
py
Python
prebuilder/systems/cmake.py
prebuilder/prebuilder.py
e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc
[ "Unlicense" ]
4
2019-11-10T19:53:00.000Z
2020-11-03T00:35:25.000Z
prebuilder/systems/cmake.py
prebuilder/prebuilder.py
e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc
[ "Unlicense" ]
null
null
null
prebuilder/systems/cmake.py
prebuilder/prebuilder.py
e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc
[ "Unlicense" ]
1
2019-11-15T08:49:49.000Z
2019-11-15T08:49:49.000Z
__all__ = ("CMakeBS", "CMake") import typing import sys from pathlib import Path import re import shlex from pprint import pprint import os from collections import OrderedDict, defaultdict from .ninja import NinjaBS from ..core.Package import VersionedPackageRef, Package, PackageMetadata, PackageInstalledFiles, getPa...
37.730435
255
0.751786
752aada457244d235edd0e7ad9d6e9af88e5c545
3,640
py
Python
apache_manager/interactive.py
xolox/python-apache-manager
83fafc4455a3ddb6f2254993ef5a80e45339249e
[ "MIT" ]
8
2018-05-16T02:34:32.000Z
2020-12-03T03:44:37.000Z
apache_manager/interactive.py
xolox/python-apache-manager
83fafc4455a3ddb6f2254993ef5a80e45339249e
[ "MIT" ]
2
2018-11-18T15:04:59.000Z
2021-05-26T15:32:47.000Z
apache_manager/interactive.py
xolox/python-apache-manager
83fafc4455a3ddb6f2254993ef5a80e45339249e
[ "MIT" ]
2
2017-02-20T07:45:08.000Z
2017-06-11T16:52:56.000Z
# Monitor and control Apache web server workers from Python. # # Author: Peter Odding <peter@peterodding.com> # Last Change: November 27, 2019 # URL: https://apache-manager.readthedocs.io """ A ``top`` like interactive viewer for Apache web server metrics. The :mod:`~apache_manager.interactive` module implements a ``...
37.525773
96
0.672527
752bc94bdb813f33b60a4fa6280c58bed1b2d03d
1,803
py
Python
src/translation.py
Wlodarski/DR-Altimeter
b831a2ce4f05d89fcadba5bab623a39d6527264e
[ "MIT" ]
null
null
null
src/translation.py
Wlodarski/DR-Altimeter
b831a2ce4f05d89fcadba5bab623a39d6527264e
[ "MIT" ]
6
2020-03-28T18:56:47.000Z
2020-04-06T13:09:55.000Z
src/translation.py
Wlodarski/DR-Altimeter
b831a2ce4f05d89fcadba5bab623a39d6527264e
[ "MIT" ]
null
null
null
#! python3 """ MIT License Copyright (c) 2020 Walter Wlodarski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
34.673077
101
0.742651
752d3e4ee7475225bb08bd56270853593c9c7737
676
py
Python
config/urls.py
stkrizh/otus-django-hasker
9692b8060a789b0b66b4cf3591a78e32c8a10380
[ "MIT" ]
null
null
null
config/urls.py
stkrizh/otus-django-hasker
9692b8060a789b0b66b4cf3591a78e32c8a10380
[ "MIT" ]
10
2020-06-05T22:56:30.000Z
2022-02-10T08:54:18.000Z
config/urls.py
stkrizh/otus-django-hasker
9692b8060a789b0b66b4cf3591a78e32c8a10380
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from users.views import LogIn, LogOut, Settings, SignUp urlpatterns = [ path(f"{settings.ADMIN_URL}/", admin.site.urls), path("", include("questions.urls")), ...
32.190476
80
0.704142
752f075e4bec9e1141a182be3804295aa84221ba
1,444
py
Python
project_folder/project_code/feature_selection/infogain.py
Nvouk/Titanic_Survival_Classifier
9b5c17a78c873315441a2ec1cb554ba02860b7af
[ "Unlicense" ]
null
null
null
project_folder/project_code/feature_selection/infogain.py
Nvouk/Titanic_Survival_Classifier
9b5c17a78c873315441a2ec1cb554ba02860b7af
[ "Unlicense" ]
null
null
null
project_folder/project_code/feature_selection/infogain.py
Nvouk/Titanic_Survival_Classifier
9b5c17a78c873315441a2ec1cb554ba02860b7af
[ "Unlicense" ]
null
null
null
from numpy import * from math import log # x: features, y: classes
36.1
99
0.567175
752f4072c4e2f6e85f05845d2b09cee5ab59bc91
864
py
Python
wiki_stocks/get_wiki_sp.py
SamMonk/data-bot
2311870e993c5c2d1de617d31b3f7a6641da2a9b
[ "MIT" ]
null
null
null
wiki_stocks/get_wiki_sp.py
SamMonk/data-bot
2311870e993c5c2d1de617d31b3f7a6641da2a9b
[ "MIT" ]
5
2021-03-31T20:06:34.000Z
2022-03-12T00:58:22.000Z
wiki_stocks/get_wiki_sp.py
SamMonk/data-bot
2311870e993c5c2d1de617d31b3f7a6641da2a9b
[ "MIT" ]
null
null
null
import bs4 as bs import json import requests #save_sp500_tickers()
36
105
0.62037
752f44cd9c7f05513515a5513eb3cb736aef39b7
2,309
py
Python
day/day14part2.py
swemoney/adventofcode2020
94c3c032e68b182881dc545771a79fd884b7cf93
[ "MIT" ]
1
2020-12-07T13:18:09.000Z
2020-12-07T13:18:09.000Z
day/day14part2.py
swemoney/adventofcode2020
94c3c032e68b182881dc545771a79fd884b7cf93
[ "MIT" ]
null
null
null
day/day14part2.py
swemoney/adventofcode2020
94c3c032e68b182881dc545771a79fd884b7cf93
[ "MIT" ]
null
null
null
from functools import cached_property from puzzle import Puzzle # pylint: disable=import-error from itertools import product from enum import Enum import re BIT_LENGTH = 36
33.955882
116
0.637072
752fa3c7ccd9fe1e1943f250e56533c498e879e8
353
py
Python
pysaxon/__init__.py
ajelenak/pysaxon
fb0b1f79f67454284f2f5f4d10fdd2af7ef24b35
[ "CC0-1.0" ]
31
2016-05-31T14:49:25.000Z
2022-03-11T15:57:46.000Z
pysaxon/__init__.py
ajelenak/pysaxon
fb0b1f79f67454284f2f5f4d10fdd2af7ef24b35
[ "CC0-1.0" ]
3
2017-10-17T09:20:19.000Z
2020-04-18T14:51:53.000Z
pysaxon/__init__.py
ajelenak/pysaxon
fb0b1f79f67454284f2f5f4d10fdd2af7ef24b35
[ "CC0-1.0" ]
7
2017-01-16T13:06:56.000Z
2022-01-19T02:06:45.000Z
from .version import version as __version__ # Delay importing extension modules till after they are built... try: from .sxn import * from . import xdm # This SaxonProcessor object is used only to control creation and # destruction of the Saxon/C Java VM... _sp_init = SaxonProcessor(False, init=Tru...
25.214286
69
0.72238
753208be193d95d4fcfd451b6fb663e48dc739a0
3,047
py
Python
socialnews/news/users.py
agiliq/django-socialnews
aa4a1a4a0e3279e6c7999071648ba37c71df9d15
[ "BSD-3-Clause" ]
30
2015-01-18T16:34:03.000Z
2021-05-23T20:05:54.000Z
socialnews/news/users.py
agiliq/django-socialnews
aa4a1a4a0e3279e6c7999071648ba37c71df9d15
[ "BSD-3-Clause" ]
null
null
null
socialnews/news/users.py
agiliq/django-socialnews
aa4a1a4a0e3279e6c7999071648ba37c71df9d15
[ "BSD-3-Clause" ]
11
2015-02-21T10:45:41.000Z
2021-01-24T21:08:20.000Z
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from helpers import * from django.core import serializers import bforms import exceptions from django.conf import settings ...
42.319444
113
0.739744
75329e3c7ac7214627f20aba5ddcea8e9e8d1a46
4,375
py
Python
examples/SIRV_.py
JennyCCDD/epidemix
30816ada8f376afc59782ee7504373546179fa61
[ "BSD-2-Clause" ]
7
2020-11-19T02:08:20.000Z
2020-12-16T02:35:31.000Z
examples/SIRV_.py
JennyCCDD/epidemix
30816ada8f376afc59782ee7504373546179fa61
[ "BSD-2-Clause" ]
null
null
null
examples/SIRV_.py
JennyCCDD/epidemix
30816ada8f376afc59782ee7504373546179fa61
[ "BSD-2-Clause" ]
1
2021-01-07T14:36:02.000Z
2021-01-07T14:36:02.000Z
######################################################################## ''' Author: Kuo Chun-Lin Email : guojl19@mails.tsinghua.edu.cn ''' ######################################################################## import numpy as np import pandas as pd import networkx as nx import matplotlib.pyplot as plt from tqdm...
36.157025
85
0.501943
75345d261ba7d82143221ae7318f3540237cbfce
1,164
py
Python
programs/views.py
MAPC/masshealth
3045c453e10dde952f459d81db886c64134b1268
[ "BSD-3-Clause" ]
null
null
null
programs/views.py
MAPC/masshealth
3045c453e10dde952f459d81db886c64134b1268
[ "BSD-3-Clause" ]
null
null
null
programs/views.py
MAPC/masshealth
3045c453e10dde952f459d81db886c64134b1268
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse from django.utils import simplejson from django.template.defaultfilters import truncatewords from models import Program def all_geojson(request): """ Return a GeoJSON representation of all Programs with title, description and image-url properties. """ try: p...
36.375
158
0.713058
75346a22ba08754ec10918d7f2f8e9f83a4fe87b
3,197
py
Python
tests/test_utils.py
Kirembu/qpanel
6853dd7b7776d4a2ee84fbcdaa735d6eed0d1aea
[ "MIT" ]
null
null
null
tests/test_utils.py
Kirembu/qpanel
6853dd7b7776d4a2ee84fbcdaa735d6eed0d1aea
[ "MIT" ]
null
null
null
tests/test_utils.py
Kirembu/qpanel
6853dd7b7776d4a2ee84fbcdaa735d6eed0d1aea
[ "MIT" ]
1
2019-10-06T19:31:38.000Z
2019-10-06T19:31:38.000Z
import unittest from qpanel.utils import clean_str_to_div_id, underscore_to_camelcase, \ timedelta_from_field_dict from qpanel.convert import convert_time_when_param import time import datetime # runs the unit tests if __name__ == '__main__': unittest.main()
34.010638
74
0.550829
75359098ea0c39566da775b5f14fdb222f3c9684
4,580
py
Python
overtime/tests/algorithms/centrality/test_closeness.py
overtime3/overtime
ed3ae6877894f4d2c9f8473a885698e1622be3bd
[ "MIT" ]
9
2020-10-15T13:53:36.000Z
2022-03-08T12:08:09.000Z
overtime/tests/algorithms/centrality/test_closeness.py
overtime3/overtime
ed3ae6877894f4d2c9f8473a885698e1622be3bd
[ "MIT" ]
6
2021-02-07T15:43:12.000Z
2021-04-24T04:03:39.000Z
overtime/tests/algorithms/centrality/test_closeness.py
overtime3/overtime
ed3ae6877894f4d2c9f8473a885698e1622be3bd
[ "MIT" ]
7
2020-10-15T13:55:12.000Z
2022-03-12T03:54:02.000Z
import unittest from overtime.components.graphs import TemporalGraph from overtime.algorithms.centrality.closeness import *
55.853659
120
0.577293
7535dab30ffe66be529e1d721b95b5fcf3fa87e7
4,165
py
Python
game/00-chess-engine/chess_subprocess.py
lix2k3/renpy-chess
4ac418224cc6a2367e59515904fc644acc889db3
[ "MIT" ]
1
2021-08-24T07:56:24.000Z
2021-08-24T07:56:24.000Z
game/00-chess-engine/chess_subprocess.py
lix2k3/renpy-chess
4ac418224cc6a2367e59515904fc644acc889db3
[ "MIT" ]
null
null
null
game/00-chess-engine/chess_subprocess.py
lix2k3/renpy-chess
4ac418224cc6a2367e59515904fc644acc889db3
[ "MIT" ]
null
null
null
import sys import subprocess import_dir = sys.argv[1] sys.path.append(import_dir) # https://python-chess.readthedocs.io/en/v0.23.10/ import chess import chess.uci if __name__ == '__main__': main()
29.75
94
0.59952
753714fde4dcb095bb0ba9d29727df72d0c345bc
2,639
py
Python
python/data.py
DanGuo1223/mzClustering
7d884c3ae3e6c2d03f37c564529f5e50221e88ee
[ "MIT" ]
null
null
null
python/data.py
DanGuo1223/mzClustering
7d884c3ae3e6c2d03f37c564529f5e50221e88ee
[ "MIT" ]
null
null
null
python/data.py
DanGuo1223/mzClustering
7d884c3ae3e6c2d03f37c564529f5e50221e88ee
[ "MIT" ]
null
null
null
import sys import numpy as np from sklearn.cluster import KMeans from sklearn import manifold from time import time from matplotlib import offsetbox import matplotlib.pyplot as plt import seaborn as sns #### plot embedding ## Data loader np.set_printoptions(threshold=sys.maxsize) # Option mode = 'Training' num_cluster...
29.988636
89
0.632058
7537d9ff6f54603cb0471062e3b58878836382b5
4,362
py
Python
moe/optimal_learning/python/interfaces/domain_interface.py
misokg/Cornell-MOE
1547d6b168b7fc70857d522baa0d5d45c41d3cdf
[ "Apache-2.0" ]
218
2017-10-14T03:54:00.000Z
2022-03-25T14:48:38.000Z
moe/optimal_learning/python/interfaces/domain_interface.py
Tracy3370/Cornell-MOE
df299d1be882d2af9796d7a68b3f9505cac7a53e
[ "Apache-2.0" ]
45
2017-09-27T14:33:31.000Z
2020-12-16T09:32:50.000Z
moe/optimal_learning/python/interfaces/domain_interface.py
Tracy3370/Cornell-MOE
df299d1be882d2af9796d7a68b3f9505cac7a53e
[ "Apache-2.0" ]
63
2017-09-25T14:23:57.000Z
2022-03-17T01:41:42.000Z
# -*- coding: utf-8 -*- """Interface for a domain: in/out test, random point generation, and update limiting (for constrained optimization).""" from builtins import object from abc import ABCMeta, abstractmethod, abstractproperty from future.utils import with_metaclass
40.388889
123
0.684319
7539ce8921d3225bf80008bbe5aba7640173e66f
554
py
Python
research/datasets/tests/test_datasets.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
1
2021-01-25T00:09:32.000Z
2021-01-25T00:09:32.000Z
research/datasets/tests/test_datasets.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
null
null
null
research/datasets/tests/test_datasets.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
null
null
null
from urllib.request import urlopen import multiprocessing.dummy as mp from multiprocessing import cpu_count import ssl from .._base import FETCH_URLS ssl._create_default_https_context = ssl._create_unverified_context def test_urls(): """Test whether URLS are working.""" urls = [ url for subl...
24.086957
87
0.693141
753a37676c204c0ac6bedd0d6d49be01a6ac16e3
1,347
py
Python
jdcloud_sdk/services/vod/models/MediaClip.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/vod/models/MediaClip.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/vod/models/MediaClip.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
35.447368
118
0.706756
753d85f68b37d30eae599c1964f08dd71bec7759
592
py
Python
babylispregex.py
phoughton/baby_lisp
0f21f4c3ba38377f6fc414f50207ec6fee655ea9
[ "MIT" ]
null
null
null
babylispregex.py
phoughton/baby_lisp
0f21f4c3ba38377f6fc414f50207ec6fee655ea9
[ "MIT" ]
null
null
null
babylispregex.py
phoughton/baby_lisp
0f21f4c3ba38377f6fc414f50207ec6fee655ea9
[ "MIT" ]
null
null
null
import re # $ babyLisp((add 1 2)) # $ 3 # $ babyLisp((multiply 4 (add 2 3))) # $ 20 assert baby_lisp("(add 1 2)") == 3 assert baby_lisp("(multiply 4 (add 2 3))") == 20 assert baby_lisp("(multiply (add (subtract 2 1) (multiply 5 1)) (add 2 3))") == 30
18.5
82
0.567568
753e238d11dcef3e0069b4e553a40395bf220dd3
421
py
Python
python3/contains_duplicate_3.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
1
2020-10-08T09:17:40.000Z
2020-10-08T09:17:40.000Z
python3/contains_duplicate_3.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
python3/contains_duplicate_3.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
""" Space : O(1) Time : O(n**2) """
26.3125
85
0.503563
753f4b0a72fb6a598355d9cd10551930431e1d41
5,024
py
Python
LIBRAY_MANAGEMENT/f_passwd.py
ShriyasnhAgarwl/Hacktoberfest
5e8adf77a833f7b99dbddff92716e05641dac857
[ "MIT" ]
null
null
null
LIBRAY_MANAGEMENT/f_passwd.py
ShriyasnhAgarwl/Hacktoberfest
5e8adf77a833f7b99dbddff92716e05641dac857
[ "MIT" ]
null
null
null
LIBRAY_MANAGEMENT/f_passwd.py
ShriyasnhAgarwl/Hacktoberfest
5e8adf77a833f7b99dbddff92716e05641dac857
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import ttk from tkinter import messagebox import sqlite3 from sqlite3 import Error #creating window Fp().mainloop()
50.24
250
0.488256
753fe1a1faf722bc2fb2591309f0654b5a03e396
3,615
py
Python
data_preprocessing/preprocessing_text.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
data_preprocessing/preprocessing_text.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
data_preprocessing/preprocessing_text.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
""" Created by Florian Fricke. """ from ekphrasis.classes.preprocessor import TextPreProcessor from ekphrasis.classes.tokenizer import SocialTokenizer from ekphrasis.dicts.emoticons import emoticons from textblob_de.lemmatizers import PatternParserLemmatizer from tqdm import tqdm from nltk.corpus import stopwords from...
40.166667
116
0.569018
7540ff40645b92068ec7fcaab55701834909aa30
672
py
Python
scripts/make_agg_intervals.py
mitchute/Open-GHX
7a88872c36200c620cfd07994119cfb243a998c9
[ "MIT" ]
4
2017-10-09T21:08:44.000Z
2020-11-18T11:09:56.000Z
scripts/make_agg_intervals.py
mitchute/Open-GHX
7a88872c36200c620cfd07994119cfb243a998c9
[ "MIT" ]
1
2017-08-18T01:44:13.000Z
2017-08-18T02:23:21.000Z
scripts/make_agg_intervals.py
mitchute/Open-GHX
7a88872c36200c620cfd07994119cfb243a998c9
[ "MIT" ]
3
2016-09-08T14:57:21.000Z
2021-06-29T08:42:08.000Z
print(make_interval(12, 2, 10, 10, 10))
26.88
78
0.486607
754141d0382990aaa59611b96bf00b6df7082919
8,455
py
Python
rsssql.py
su-sanzhou/rss-from-web
e4ad4f9de0b5f9eef82ac3464d9d7ceb70d649b4
[ "MIT" ]
11
2020-02-09T15:16:40.000Z
2021-12-24T16:29:43.000Z
rsssql.py
su-sanzhou/rss-from-web
e4ad4f9de0b5f9eef82ac3464d9d7ceb70d649b4
[ "MIT" ]
4
2019-12-25T16:39:26.000Z
2021-03-27T10:01:49.000Z
rsssql.py
su-sanzhou/rss-from-web
e4ad4f9de0b5f9eef82ac3464d9d7ceb70d649b4
[ "MIT" ]
null
null
null
import config from selectsql import SelectSql
34.651639
84
0.515553
7541451076c8624e5930edf9291dc62703e20a8d
2,492
py
Python
tests/test_widget.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
24
2018-09-07T10:40:07.000Z
2022-02-01T21:18:00.000Z
tests/test_widget.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
26
2018-09-04T16:32:46.000Z
2018-10-08T09:11:50.000Z
tests/test_widget.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
3
2018-09-17T12:56:16.000Z
2019-12-03T06:30:34.000Z
import numpy as np import pytest from ipywidgets.embed import embed_snippet from cornerstone_widget import CornerstoneWidget, CornerstoneToolbarWidget from cornerstone_widget.cs_widget import encode_numpy_b64 from cornerstone_widget.utils import _virtual_click_button
31.948718
78
0.696228
754420bf10ce818718b6b91f9f308e99e3df1a1e
423
py
Python
RecoPPS/Local/python/ctppsDiamondLocalReconstruction_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoPPS/Local/python/ctppsDiamondLocalReconstruction_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoPPS/Local/python/ctppsDiamondLocalReconstruction_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # reco hit production from RecoPPS.Local.ctppsDiamondRecHits_cfi import ctppsDiamondRecHits # local track fitting from RecoPPS.Local.ctppsDiamondLocalTracks_cfi import ctppsDiamondLocalTracks ctppsDiamondLocalReconstructionTask = cms.Task( ctppsDiamondRecHits, ctppsDi...
30.214286
83
0.865248
7544963ba7d28d1172e33eda501c69199e904e17
86
py
Python
g3_metaconfig/__init__.py
BigGreenDelta/g3-metaconfig
5a75b63986fa42e70cdc7863b1d7436e20e1c4f9
[ "MIT" ]
null
null
null
g3_metaconfig/__init__.py
BigGreenDelta/g3-metaconfig
5a75b63986fa42e70cdc7863b1d7436e20e1c4f9
[ "MIT" ]
2
2022-01-17T08:51:38.000Z
2022-02-24T21:42:36.000Z
g3_metaconfig/__init__.py
BigGreenDelta/g3-metaconfig
5a75b63986fa42e70cdc7863b1d7436e20e1c4f9
[ "MIT" ]
null
null
null
from .metaclass import G3ConfigMeta, Config, ArgParserConfig from .param import Param
28.666667
60
0.837209
754677d813bc13607d3f5c2d3ce3b5f14525c78c
689
py
Python
tests/run_all_tests.py
philbucher/communication-tests
65ae430072e502465bfa3df56c8836cf3a061c29
[ "BSD-3-Clause" ]
null
null
null
tests/run_all_tests.py
philbucher/communication-tests
65ae430072e502465bfa3df56c8836cf3a061c29
[ "BSD-3-Clause" ]
null
null
null
tests/run_all_tests.py
philbucher/communication-tests
65ae430072e502465bfa3df56c8836cf3a061c29
[ "BSD-3-Clause" ]
null
null
null
import unittest import os, sys import communication_tests if communication_tests.MPI.Rank() == 0: communication_tests.CompilerInfo() print() communication_tests.MPI.Barrier() is_slave_process = (("--tests-slave" in sys.argv[1:]) or (communication_tests.MPI.Rank() == 1)) if is_slave_process: from base_co...
34.45
107
0.769231
7546c38999fd0ace1e9a5683705fcf28277bdcad
10,407
py
Python
bell.py
SWERecker/wf-auto
1f7706c2f51aebdefe8791e50a1a894523882baf
[ "MIT" ]
null
null
null
bell.py
SWERecker/wf-auto
1f7706c2f51aebdefe8791e50a1a894523882baf
[ "MIT" ]
null
null
null
bell.py
SWERecker/wf-auto
1f7706c2f51aebdefe8791e50a1a894523882baf
[ "MIT" ]
null
null
null
import os import sys import time import warnings from time import sleep import cv2 from image_similarity_measures.quality_metrics import fsim from wf_auto import * from wf_auto.util import Debug warnings.filterwarnings('ignore') ref_folder = os.path.join(os.path.abspath(os.path.dirname(__file__)), "re...
46.253333
118
0.462381
754799f86978c3050ac87143e4f1594fb357ed37
7,095
py
Python
clustering_capitals.py
BL-Labs/poetryhunt
cce687c46d0855f2960a9f944cadf28d16fbaba2
[ "MIT" ]
null
null
null
clustering_capitals.py
BL-Labs/poetryhunt
cce687c46d0855f2960a9f944cadf28d16fbaba2
[ "MIT" ]
null
null
null
clustering_capitals.py
BL-Labs/poetryhunt
cce687c46d0855f2960a9f944cadf28d16fbaba2
[ "MIT" ]
null
null
null
from newspaperaccess import NewspaperArchive from sklearn.feature_extraction import DictVectorizer from sklearn.cluster import KMeans import os import sqlite3 CL_CACHE_FOLDER = "/datastore/cluster_cache_dbs" if __name__ == "__main__": n = NewspaperArchive() dataset, transform, id_list = create_cluster_dataset(n...
37.146597
119
0.582523
7547a91dafab9c7b229fe925a2917befdb556f92
158
py
Python
argentum-api/api/tests/utils/utils.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
1
2019-10-07T09:47:08.000Z
2019-10-07T09:47:08.000Z
argentum-api/api/tests/utils/utils.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
null
null
null
argentum-api/api/tests/utils/utils.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
null
null
null
import datetime
26.333333
88
0.734177
75480369bf7b93d4d8d97e9b33d6e4258ac7f12f
2,625
py
Python
day16/solve-16a.py
ggchappell/AdventOfCode2020
d79a40eb667dad33ec34d4715176dfe03b38816b
[ "MIT" ]
null
null
null
day16/solve-16a.py
ggchappell/AdventOfCode2020
d79a40eb667dad33ec34d4715176dfe03b38816b
[ "MIT" ]
null
null
null
day16/solve-16a.py
ggchappell/AdventOfCode2020
d79a40eb667dad33ec34d4715176dfe03b38816b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Advent of Code 2020 # Glenn G. Chappell import sys # .stdin import re # .search # ====================================================================== # HELPER FUNCTIONS # ====================================================================== # check_valid_ticket - re...
25.735294
72
0.566476
7548e64006c12b84e95b327958f7a42ffbcf5097
2,658
py
Python
code/syn.py
ron-rivest/audit-lab
b8f1478035db04afa2c5e5349b9666fd8df5976e
[ "MIT" ]
3
2018-09-12T03:06:28.000Z
2019-05-04T06:45:54.000Z
code/syn.py
YAXINLEI/audit-lab
b8f1478035db04afa2c5e5349b9666fd8df5976e
[ "MIT" ]
11
2017-09-19T18:23:02.000Z
2018-07-06T19:08:49.000Z
code/syn.py
YAXINLEI/audit-lab
b8f1478035db04afa2c5e5349b9666fd8df5976e
[ "MIT" ]
23
2017-09-05T17:09:59.000Z
2019-12-15T19:55:53.000Z
# syn.py # Ronald L. Rivest (with Karim Husayn Karimi) # August 3, 2017 # python3 """ Routines to generate a synthetic test election dataset for OpenAuditTool.py. Calls data generation routines in syn1.py for elections "of type 1", and calls routines in syn2.py for elections "of type 2". """ import numpy as np imp...
26.316832
82
0.623401
754958a9d123ff339cd26e0e2295e31acd2b6baa
4,911
py
Python
src/imagenet/imagenet_train_darknet.py
wenxichen/tensorflow_yolo2
f040d9932816d8b2f8d7a67231060f0beea821d4
[ "MIT" ]
25
2017-05-15T08:44:26.000Z
2019-09-05T05:23:59.000Z
src/imagenet/imagenet_train_darknet.py
wenxichen/tensorflow_yolo2
f040d9932816d8b2f8d7a67231060f0beea821d4
[ "MIT" ]
5
2017-05-16T07:18:47.000Z
2018-02-14T08:22:56.000Z
src/imagenet/imagenet_train_darknet.py
wenxichen/tensorflow_yolo2
f040d9932816d8b2f8d7a67231060f0beea821d4
[ "MIT" ]
10
2017-07-03T13:27:27.000Z
2018-11-21T13:10:16.000Z
"""Train ILSVRC2017 Data using homemade scripts.""" import cv2 import os import math import tensorflow as tf from multiprocessing import Process, Queue import os import sys FILE_DIR = os.path.dirname(__file__) sys.path.append(FILE_DIR + '/../') import config as cfg from img_dataset.ilsvrc2017_cls_multithread import ...
34.342657
103
0.707799
754b6ed304a3a91854108f6ce34b4157cf24597b
6,519
py
Python
pycalc/MAVProxy/modules/lib/ANUGA/redfearn.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
pycalc/MAVProxy/modules/lib/ANUGA/redfearn.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
8
2021-01-28T19:26:22.000Z
2022-03-24T18:07:24.000Z
pycalc/MAVProxy/modules/lib/ANUGA/redfearn.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
""" This module adapted ANUGA https://anuga.anu.edu.au/ ------------ Implementation of Redfearn's formula to compute UTM projections from latitude and longitude Based in part on spreadsheet www.icsm.gov.au/gda/gdatm/redfearn.xls downloaded from INTERGOVERNMENTAL COMMITTEE ON SURVEYING & MAPPING (ICSM) http://www.ics...
26.717213
91
0.595644
754d89e883dc7be548805f3db911539c49829b0b
2,107
py
Python
scikit/sk_random_forest_pca.py
abondar24/deepLearnPython
9325cd18458f66f9d90ebd044fb4c8b2c6d8abc0
[ "Apache-2.0" ]
1
2018-03-28T02:30:12.000Z
2018-03-28T02:30:12.000Z
scikit/sk_random_forest_pca.py
abondar24/deepLearnPython
9325cd18458f66f9d90ebd044fb4c8b2c6d8abc0
[ "Apache-2.0" ]
null
null
null
scikit/sk_random_forest_pca.py
abondar24/deepLearnPython
9325cd18458f66f9d90ebd044fb4c8b2c6d8abc0
[ "Apache-2.0" ]
2
2017-03-03T14:49:00.000Z
2018-03-28T02:30:16.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap from sklearn.cross_validation import train_test_split from sklearn.linear_model import LogisticRegression from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler wine = ...
33.983871
107
0.676792
7550b253d74cbd404e4a92a149749a7cdd341199
15,189
py
Python
Merge_CROME_LCM_PHI.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
1
2021-03-31T00:35:00.000Z
2021-03-31T00:35:00.000Z
Merge_CROME_LCM_PHI.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
null
null
null
Merge_CROME_LCM_PHI.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
2
2020-01-30T09:40:36.000Z
2021-04-16T09:36:40.000Z
# Starts from OS Mastermap base map and: # 1. Assigns CEH Landcover map (LCM) definition of either Arable or Improved grassland to agricultural land polygons # 2. Assigns Rural Payments Agency CROME Crop map data (input must be dissolved by land use code and joined to description # and simplified description (Arable, I...
57.752852
140
0.662651
7551dd7a08f30ce3108b03fcbbf5b83d7533a27d
908
py
Python
core/migrations/0002_auto_20220209_1251.py
mazdakdev/video-compressor
17e9f9f3f70f41b953a4c84ec6b1370f9faa97e3
[ "MIT" ]
3
2022-02-11T12:09:29.000Z
2022-02-12T19:13:17.000Z
core/migrations/0002_auto_20220209_1251.py
mazdakdev/Video-compressor
17e9f9f3f70f41b953a4c84ec6b1370f9faa97e3
[ "MIT" ]
null
null
null
core/migrations/0002_auto_20220209_1251.py
mazdakdev/Video-compressor
17e9f9f3f70f41b953a4c84ec6b1370f9faa97e3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2022-02-09 12:51 import django.core.validators from django.db import migrations, models
30.266667
162
0.60793
7552246fcee85fec14281ac041843d581b43d518
1,353
py
Python
pdf417gen/compaction/optimizations.py
hgulino/pdf417-py
3df2376a2bc2ee1497a0bb401b5eb735789eee85
[ "MIT" ]
null
null
null
pdf417gen/compaction/optimizations.py
hgulino/pdf417-py
3df2376a2bc2ee1497a0bb401b5eb735789eee85
[ "MIT" ]
null
null
null
pdf417gen/compaction/optimizations.py
hgulino/pdf417-py
3df2376a2bc2ee1497a0bb401b5eb735789eee85
[ "MIT" ]
null
null
null
from itertools import chain, groupby from pdf417gen.compaction.numeric import compact_numbers from pdf417gen.compaction.text import compact_text from pdf417gen.util import iterate_prev_next
34.692308
77
0.702882
75522ca8fbe7cd45f4d322e2008582dbf31ff13b
533
py
Python
setup_guide/translation.py
uktrade/invest
15b84c511839b46e81608fca9762d2df3f6df16c
[ "MIT" ]
1
2019-01-18T03:50:46.000Z
2019-01-18T03:50:46.000Z
setup_guide/translation.py
uktrade/invest
15b84c511839b46e81608fca9762d2df3f6df16c
[ "MIT" ]
50
2018-01-24T18:04:08.000Z
2019-01-03T03:30:30.000Z
setup_guide/translation.py
uktrade/invest
15b84c511839b46e81608fca9762d2df3f6df16c
[ "MIT" ]
2
2018-02-12T15:20:52.000Z
2019-01-18T03:51:52.000Z
from .models import SetupGuidePage, SetupGuideLandingPage from modeltranslation.translator import TranslationOptions from modeltranslation.decorators import register
23.173913
59
0.712946
75525d4ac55cdb988499eb7c554fb6564e18cfa9
3,447
py
Python
src/utils/grid_fuse.py
sisl/MultiAgentVariationalOcclusionInference
c46ef5dc99a6ca7a59937dbd4bf1d3f86d0eb757
[ "Apache-2.0" ]
6
2021-09-07T18:40:24.000Z
2022-03-15T06:16:07.000Z
src/utils/grid_fuse.py
sisl/MultiAgentVariationalOcclusionInference
c46ef5dc99a6ca7a59937dbd4bf1d3f86d0eb757
[ "Apache-2.0" ]
2
2021-12-03T05:18:09.000Z
2021-12-17T09:54:08.000Z
src/utils/grid_fuse.py
sisl/MultiAgentVariationalOcclusionInference
c46ef5dc99a6ca7a59937dbd4bf1d3f86d0eb757
[ "Apache-2.0" ]
3
2021-12-15T03:19:48.000Z
2022-03-31T18:05:39.000Z
# Code to transform the driver sensor OGMs to the ego vehicle's OGM frame of reference. import matplotlib.pyplot as plt import numpy as np import math import copy from utils.grid_utils import global_grid import time from scipy.spatial import cKDTree import pdb
45.355263
137
0.656803
7553bc03ca96627edd28fe306335836754dd8d8f
1,236
py
Python
emailhub/management/commands/emailhub.py
h3/django-emailhub
a618256096b3faa55479c46b6313861cfd898a9f
[ "MIT" ]
null
null
null
emailhub/management/commands/emailhub.py
h3/django-emailhub
a618256096b3faa55479c46b6313861cfd898a9f
[ "MIT" ]
null
null
null
emailhub/management/commands/emailhub.py
h3/django-emailhub
a618256096b3faa55479c46b6313861cfd898a9f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging from django.core.management.base import BaseCommand from emailhub.utils.email import send_unsent_emails log = logging.getLogger('emailhub')
25.22449
51
0.563916
75542a1318d360a9da0eafc7a95d7f84e675efef
639
py
Python
geo2sql/converter.py
budbee/geo2sql
0e7e1f0c1983bb6965d3b3ac3fb06314128e110a
[ "MIT" ]
null
null
null
geo2sql/converter.py
budbee/geo2sql
0e7e1f0c1983bb6965d3b3ac3fb06314128e110a
[ "MIT" ]
null
null
null
geo2sql/converter.py
budbee/geo2sql
0e7e1f0c1983bb6965d3b3ac3fb06314128e110a
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import json
29.045455
84
0.596244
7554f9acad191edf71d5e0947b588d081ddd4ae3
32
py
Python
augmenty/lang/ru/__init__.py
koaning/augmenty
13dbdbb5fd56b36c97678ae48d1e0d869987f6dd
[ "MIT" ]
null
null
null
augmenty/lang/ru/__init__.py
koaning/augmenty
13dbdbb5fd56b36c97678ae48d1e0d869987f6dd
[ "MIT" ]
1
2022-03-12T02:25:00.000Z
2022-03-12T02:26:01.000Z
augmenty/lang/ru/__init__.py
HishamKhdair/augmenty
a65a7beac410f53706bb7838026f2bac9b89d544
[ "MIT" ]
null
null
null
from .keyboard import create_ru
16
31
0.84375
7555fe5b77c17002f43ce21bf18e6218385b475c
675
py
Python
swepc.python/swepc/test/lakeatrest.py
hertzsprung/seamless-wave-uq
10a9b2e18d11cf3f4e711a90523f85758e5fb531
[ "MIT" ]
null
null
null
swepc.python/swepc/test/lakeatrest.py
hertzsprung/seamless-wave-uq
10a9b2e18d11cf3f4e711a90523f85758e5fb531
[ "MIT" ]
null
null
null
swepc.python/swepc/test/lakeatrest.py
hertzsprung/seamless-wave-uq
10a9b2e18d11cf3f4e711a90523f85758e5fb531
[ "MIT" ]
null
null
null
import swepc
32.142857
66
0.57037
75564ca95e8bf6b16deb4a7f6f2da20bce562a30
167
py
Python
osi_django_app/OSI/admin.py
godslayer201/open-source-list
5c708249a9a52603f26e3ad2f0b4a0ebd586b495
[ "MIT" ]
2
2020-09-16T14:10:03.000Z
2020-09-22T21:35:08.000Z
osi_django_app/OSI/admin.py
godslayer201/open-source-list
5c708249a9a52603f26e3ad2f0b4a0ebd586b495
[ "MIT" ]
null
null
null
osi_django_app/OSI/admin.py
godslayer201/open-source-list
5c708249a9a52603f26e3ad2f0b4a0ebd586b495
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import soc, osc, univ_soc_woc admin.site.register(soc) admin.site.register(osc) admin.site.register(univ_soc_woc)
23.857143
43
0.784431
7558d1c4c68c7402a2a152b6cc1f7bb1febec611
16,716
py
Python
Phase_1/O-27-DaYan.py
yapanliu/ashrae-ob-database
8c23e3ab5e8ed5589962e067a50c8940d2d31521
[ "MIT" ]
null
null
null
Phase_1/O-27-DaYan.py
yapanliu/ashrae-ob-database
8c23e3ab5e8ed5589962e067a50c8940d2d31521
[ "MIT" ]
null
null
null
Phase_1/O-27-DaYan.py
yapanliu/ashrae-ob-database
8c23e3ab5e8ed5589962e067a50c8940d2d31521
[ "MIT" ]
null
null
null
''' This code will clean the OB datasets and combine all the cleaned data into one Dataset name: O-27-Da Yan semi-automate code, needs some hands work. LOL But God is so good to me. 1. 9 different buildings in this dataset, and each building has different rooms 3. each room has different window, door, ac, indoor, out...
42.642857
148
0.71973
7558d464af2c0903cb1ca1c124d0a67287c52fa3
13,195
py
Python
stacker/deploy.py
elliottgorrell/stacker
6a8f2518dd04606255107937820bf3c249efd839
[ "MIT" ]
null
null
null
stacker/deploy.py
elliottgorrell/stacker
6a8f2518dd04606255107937820bf3c249efd839
[ "MIT" ]
null
null
null
stacker/deploy.py
elliottgorrell/stacker
6a8f2518dd04606255107937820bf3c249efd839
[ "MIT" ]
null
null
null
__author__ = "Steve Mactaggart && Elliott Gorrell" import base64 import json import re import sys import traceback from datetime import datetime import boto3 import botocore import yaml from cf_helper import secure_print from cf_helper.utils import DeployException, CloudFormationUtil, STSUtil
42.702265
182
0.551648
755c0cb0df35cafe122bc9046c0e5faf80eebb71
739
py
Python
Projects/consultants/urls.py
jjfleet/Capstone
f81e21f0641ed0b75e06161198fca52805acb2e4
[ "Apache-2.0" ]
2
2018-07-23T05:44:50.000Z
2018-09-10T09:12:36.000Z
Projects/consultants/urls.py
jjmassey/Capstone
f81e21f0641ed0b75e06161198fca52805acb2e4
[ "Apache-2.0" ]
14
2018-09-10T10:42:39.000Z
2018-10-24T00:04:36.000Z
Projects/consultants/urls.py
jjfleet/Capstone
f81e21f0641ed0b75e06161198fca52805acb2e4
[ "Apache-2.0" ]
2
2018-09-10T06:34:31.000Z
2018-09-17T06:05:23.000Z
from django.urls import path from . views import ConsultantCreateView, UserConsultantPageView, ConsultantDetailView, ConsultantPageView, ConsultantDeleteView from . import views as consultant_views urlpatterns = [ path('', ConsultantPageView.as_view(), name='consultants-home'), path('<int:pk>/', ConsultantDet...
52.785714
129
0.760487
755e59a676f096d694c1bce55708827fd57f1854
68
py
Python
api/qr/__init__.py
TailorDev/pauling
3f616a24d3bdf6fc24308ba0ec0177c374a70707
[ "MIT" ]
7
2017-10-04T18:30:24.000Z
2018-03-08T12:41:09.000Z
api/qr/__init__.py
sarvesh107/pauling
3f616a24d3bdf6fc24308ba0ec0177c374a70707
[ "MIT" ]
27
2017-10-06T22:54:09.000Z
2018-03-08T12:37:28.000Z
api/qr/__init__.py
sarvesh107/pauling
3f616a24d3bdf6fc24308ba0ec0177c374a70707
[ "MIT" ]
3
2017-10-04T19:01:27.000Z
2020-10-01T02:42:26.000Z
from .svg import make_svg # noqa from .png import make_png # noqa
22.666667
33
0.735294
755ea89e8a5dc718280f982f7451bc3f1aae7a5f
349
py
Python
euler/73.py
stauntonknight/algorithm
39dbe6dc952ab7db3a469e1ca785003a4660fedb
[ "CNRI-Python" ]
null
null
null
euler/73.py
stauntonknight/algorithm
39dbe6dc952ab7db3a469e1ca785003a4660fedb
[ "CNRI-Python" ]
null
null
null
euler/73.py
stauntonknight/algorithm
39dbe6dc952ab7db3a469e1ca785003a4660fedb
[ "CNRI-Python" ]
null
null
null
import fractions num = 1 den = 1 count = 0 sum = 0 while den <= 12000: count = 0 min_num = int((den + 0.0) / 3 + 1) max_num = den/2 if den % 2 == 0: max_num -= 1 while min_num <= max_num: if fractions.gcd(min_num, den) == 1: count += 1 min_num += 1 sum += c...
16.619048
44
0.495702
755eb82e590516aaf0f14f5bbeadef6765c9002e
2,698
py
Python
attic/gui/core/indicator.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2015-11-04T16:37:39.000Z
2015-11-04T16:37:39.000Z
attic/gui/core/indicator.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
null
null
null
attic/gui/core/indicator.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2020-03-05T02:50:43.000Z
2020-03-05T02:50:43.000Z
from enum import Enum from typing import Optional import pkg_resources from gi.repository import Gtk from gi.repository import Pango cssprovider = Gtk.CssProvider() cssprovider.load_from_path(pkg_resources.resource_filename('cct', 'resource/css/indicatorcolors.css'))
35.5
102
0.662713
f3290a43c48894b4555f25b583136c942a6ca761
13,539
py
Python
ext/ANTsPyNet/antspynet/architectures/create_densenet_model.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
2
2021-11-16T10:00:33.000Z
2021-12-13T02:57:40.000Z
ext/ANTsPyNet/antspynet/architectures/create_densenet_model.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
null
null
null
ext/ANTsPyNet/antspynet/architectures/create_densenet_model.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
1
2021-12-13T02:57:27.000Z
2021-12-13T02:57:27.000Z
import tensorflow as tf import tensorflow.keras.backend as K from tensorflow.keras.models import Model from tensorflow.keras.layers import (Input, Dropout, BatchNormalization, Activation, Dense, Concatenate, Conv2D, Conv2DTranspose, GlobalAve...
37.818436
104
0.602482
f32a9558031ac36d2759219a73cf75600bfb9cb5
5,030
py
Python
scripts/demo.py
beizhengren/pytorch-deeplab-xception
8dc3107104f4d25ec74ea29ba72af360f192afc1
[ "MIT" ]
null
null
null
scripts/demo.py
beizhengren/pytorch-deeplab-xception
8dc3107104f4d25ec74ea29ba72af360f192afc1
[ "MIT" ]
null
null
null
scripts/demo.py
beizhengren/pytorch-deeplab-xception
8dc3107104f4d25ec74ea29ba72af360f192afc1
[ "MIT" ]
null
null
null
# # demo.py # import argparse import os import numpy as np import logging import sys import os.path from PIL import Image from modeling.deeplab import * from dataloaders import custom_transforms as tr from PIL import Image from torchvision import transforms from dataloaders.utils import * from torchvision.utils im...
40.894309
122
0.606958
f32b46652a7f91d104e0559c972e6f7e2d96e56c
4,862
py
Python
codeMania-python-matplotlib/tut8.py
JayramMardi/codeMania
2327bef1d2a25aacdf4e39dccf2d2e77191a0f35
[ "Apache-2.0" ]
null
null
null
codeMania-python-matplotlib/tut8.py
JayramMardi/codeMania
2327bef1d2a25aacdf4e39dccf2d2e77191a0f35
[ "Apache-2.0" ]
null
null
null
codeMania-python-matplotlib/tut8.py
JayramMardi/codeMania
2327bef1d2a25aacdf4e39dccf2d2e77191a0f35
[ "Apache-2.0" ]
1
2022-01-02T14:58:38.000Z
2022-01-02T14:58:38.000Z
# chapter Matplotlib Plotting ''' The plot() function is used to draw points (markers) in a diagram. By default, the plot() function draws a line from point to point. The function takes parameters for specifying points in the diagram. Parameter 1 is an array containing the points on the x-axis. Paramet...
20.090909
139
0.633278
f32c53cc845f82e4bd29dd3cc7b2266b7a8d4e51
73
py
Python
GoogleColab/InteligenciaAnalitica/Ex5/trainbase.py
AlexandroLuis/ComputerScience
273c3f6797737d98ffdf00ae870ceafa3aba59d1
[ "MIT" ]
2
2021-02-06T21:48:24.000Z
2022-03-21T00:16:17.000Z
GoogleColab/InteligenciaAnalitica/Ex5/trainbase.py
AlexandroLuis/ComputerScience
273c3f6797737d98ffdf00ae870ceafa3aba59d1
[ "MIT" ]
null
null
null
GoogleColab/InteligenciaAnalitica/Ex5/trainbase.py
AlexandroLuis/ComputerScience
273c3f6797737d98ffdf00ae870ceafa3aba59d1
[ "MIT" ]
1
2022-02-10T20:59:23.000Z
2022-02-10T20:59:23.000Z
dataset = pd.read_csv('Corona_NLP_train.csv',encoding='iso8859') dataset
24.333333
64
0.794521
f3310c16bf2027ed954517e88ece42b1d7f94326
3,189
py
Python
text/opencv_dnn_detect.py
kingemma/invoice
b381ffcd4b798434ea74cb4463eb5cff276ded3a
[ "MIT" ]
1,017
2019-08-02T04:18:35.000Z
2022-03-29T08:18:03.000Z
text/opencv_dnn_detect.py
kingemma/invoice
b381ffcd4b798434ea74cb4463eb5cff276ded3a
[ "MIT" ]
47
2019-08-08T08:36:48.000Z
2022-03-08T07:00:29.000Z
text/opencv_dnn_detect.py
kingemma/invoice
b381ffcd4b798434ea74cb4463eb5cff276ded3a
[ "MIT" ]
300
2019-08-03T03:06:30.000Z
2022-03-31T02:20:11.000Z
from config import yoloCfg,yoloWeights,opencvFlag from config import AngleModelPb,AngleModelPbtxt from config import IMGSIZE from PIL import Image import numpy as np import cv2 if opencvFlag=='keras': ##tfGPU import tensorflow as tf from tensorflow.python.platform import gfile config = tf.ConfigProto(a...
30.371429
105
0.580433
f331a08e601c32af4b162497007126ab54f3aaaf
3,071
py
Python
rhapsody/lib/RAudiostream.py
anarchiae/rhapsody5
bd4c4f008d9d3df17ef400ce8895d3da913f6b39
[ "MIT" ]
null
null
null
rhapsody/lib/RAudiostream.py
anarchiae/rhapsody5
bd4c4f008d9d3df17ef400ce8895d3da913f6b39
[ "MIT" ]
null
null
null
rhapsody/lib/RAudiostream.py
anarchiae/rhapsody5
bd4c4f008d9d3df17ef400ce8895d3da913f6b39
[ "MIT" ]
null
null
null
import threading import vlc import alsaaudio import time import requests import lib.RMonitoring as rmonitoring
40.407895
151
0.661674
f3336022271959da6f3feefe377eea05c0033d68
2,981
py
Python
src/pages/mainPage.py
mvoitko/Habrahabr-tests
0b909178ba09b31dbd02c73f8b34f191746a27c2
[ "MIT" ]
null
null
null
src/pages/mainPage.py
mvoitko/Habrahabr-tests
0b909178ba09b31dbd02c73f8b34f191746a27c2
[ "MIT" ]
null
null
null
src/pages/mainPage.py
mvoitko/Habrahabr-tests
0b909178ba09b31dbd02c73f8b34f191746a27c2
[ "MIT" ]
null
null
null
""" Created on Oct 28, 2016 @author: mvoitko """ import re import time import locale from datetime import datetime from selenium import webdriver from selenium.common.exceptions import * from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.sup...
35.488095
94
0.667226
f33413864f878b6fed6b830e414836e3dbceb13e
2,673
py
Python
tools/_lib/utils.py
zhongxinghong/Botzone-Tank2
17fd00a57405ddd2f2bace58bab27800080b1fc7
[ "MIT" ]
11
2019-06-01T11:17:55.000Z
2021-06-03T00:47:24.000Z
tools/_lib/utils.py
zhongxinghong/Botzone-Tank2
17fd00a57405ddd2f2bace58bab27800080b1fc7
[ "MIT" ]
1
2021-03-31T19:17:52.000Z
2021-03-31T19:17:52.000Z
tools/_lib/utils.py
zhongxinghong/Botzone-Tank2
17fd00a57405ddd2f2bace58bab27800080b1fc7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Administrator # @Date: 2019-04-25 06:10:39 # @Last Modified by: Administrator # @Last Modified time: 2019-05-21 15:30:34 __all__ = [ "mkdir", "get_abspath", "read_file", "json_load", "json_dump", "b", "u", "Singleton", "CachedProperty", ...
21.384
111
0.59596
f3354311e1e2a11ade0a61af2606d322f880e6a1
4,884
py
Python
main.py
notafrancescodavid/Job-Shop-Scheduling-Problem---Hierarchical-Parallel-and-easy-to-use-Genetic-Algorithm
a2083cfc2385b6a5a59b8bed6a4fb4180c3eb2ac
[ "MIT" ]
null
null
null
main.py
notafrancescodavid/Job-Shop-Scheduling-Problem---Hierarchical-Parallel-and-easy-to-use-Genetic-Algorithm
a2083cfc2385b6a5a59b8bed6a4fb4180c3eb2ac
[ "MIT" ]
null
null
null
main.py
notafrancescodavid/Job-Shop-Scheduling-Problem---Hierarchical-Parallel-and-easy-to-use-Genetic-Algorithm
a2083cfc2385b6a5a59b8bed6a4fb4180c3eb2ac
[ "MIT" ]
null
null
null
#from tree_GA import TreeGA import os import time import json import pandas as pd import sys import matplotlib.pyplot as plt import matplotlib.patches as mpatches from treeGA import TreeGA if __name__ == '__main__': start_time = time.time() fileInstanceName = sys.argv[1] populationNumber = int(sys.argv[...
34.885714
314
0.63923
f335630c98f006cde2b540a21572bf9a60f94dc4
2,595
py
Python
mainsite/migrations/0001_initial.py
MuratovER/IMO
90efd087917159dc5b8aab3c8946003496e54418
[ "MIT" ]
null
null
null
mainsite/migrations/0001_initial.py
MuratovER/IMO
90efd087917159dc5b8aab3c8946003496e54418
[ "MIT" ]
null
null
null
mainsite/migrations/0001_initial.py
MuratovER/IMO
90efd087917159dc5b8aab3c8946003496e54418
[ "MIT" ]
1
2022-03-31T21:19:14.000Z
2022-03-31T21:19:14.000Z
# Generated by Django 4.0.3 on 2022-05-07 11:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
45.526316
148
0.589595