hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7940074a7371928505748d90b9c862ee5b2d225e
82
py
Python
haystack/nodes/question_generator/__init__.py
mapapa/haystack
79fdda8a7cf393d774803608a4874f2a6e63cf6f
[ "Apache-2.0" ]
7
2022-01-22T18:58:54.000Z
2022-03-18T17:06:35.000Z
haystack/nodes/question_generator/__init__.py
mapapa/haystack
79fdda8a7cf393d774803608a4874f2a6e63cf6f
[ "Apache-2.0" ]
17
2021-12-08T18:00:58.000Z
2021-12-28T14:03:27.000Z
haystack/nodes/question_generator/__init__.py
mapapa/haystack
79fdda8a7cf393d774803608a4874f2a6e63cf6f
[ "Apache-2.0" ]
1
2022-01-05T15:24:36.000Z
2022-01-05T15:24:36.000Z
from haystack.nodes.question_generator.question_generator import QuestionGenerator
82
82
0.926829
0
0
0
0
0
0
0
0
0
0
79423433cdcc39041c7fd83b1754e656cc596c82
3,178
py
Python
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import uuid from django.conf import settings from django.contrib.gis.db import models from django.contrib.gis.geos import Point from django.contrib.postgres.fields import JSONField class Factory(models.Model): """Factories that are potential to be illegal.""" # List of fact_type & st...
30.854369
89
0.636249
3,101
0.935163
0
0
0
0
0
0
830
0.250302
7943f595c674438a1cfec4698c62343f1a8c742b
656
py
Python
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:38:16.000Z
2020-02-18T00:38:16.000Z
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
null
null
null
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:39:12.000Z
2020-02-18T00:39:12.000Z
import json as _json import datetime as _datetime def parse_timestamp(dataset, time_format="%Y-%m-%dT%H:%M:%S.000Z"): for d in dataset: d["timestamp"] = _datetime.datetime.strptime(d["timestamp"], time_format) return dataset def load_json(filename, time_format="%Y-%m-%dT%H:%M:%S.000Z"): dictionary ...
29.818182
81
0.660061
0
0
0
0
0
0
0
0
114
0.17378
79442688528877f19538302cd834c0bc231e8349
959
py
Python
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
leetcode/two_numbers_sum.py
clnFind/DayDayAlgorithm
5644a666a3d84547d8cf00031fc2e30273cc0e9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy class Solution(object): """ 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] """ def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ ...
21.795455
55
0.486966
742
0.761026
0
0
0
0
0
0
251
0.257436
794467ea5227d786240a4dc2c21fda99810bd1c3
1,162
py
Python
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
20
2017-04-25T21:07:24.000Z
2022-03-30T11:11:47.000Z
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
4
2016-04-06T01:19:27.000Z
2020-09-26T18:38:29.000Z
bpcs/bpcs_steg_decode.py
BburnN123/bpcs
f53caede7e202ce07b51890f028b9caf73a22937
[ "MIT" ]
12
2017-04-02T23:10:46.000Z
2022-03-21T03:43:55.000Z
import numpy as np from .logger import log from .array_grid import get_next_grid_dims from .act_on_image import ActOnImage from .array_message import write_conjugated_message_grids from .bpcs_steg import arr_bpcs_complexity def remove_message_from_vessel(arr, alpha, grid_size): messages = [] nfound, nkept, nl...
33.2
101
0.692771
129
0.111015
0
0
0
0
0
0
54
0.046472
7946dedb29967a5ff96a8d7cd312b2fd2bc51b15
6,859
py
Python
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
3
2020-12-07T04:07:04.000Z
2021-08-19T10:41:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2020-12-10T19:12:02.000Z
2020-12-10T19:12:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2021-04-14T14:32:39.000Z
2021-12-10T10:36:59.000Z
# # Exploration of the crash severity information in CAS data # # In this notebook, we will explore the severity of crashes, as it will be the # target of our predictive models. from pathlib import Path import numpy as np import pandas as pd import scipy.stats as st import matplotlib.pyplot as plt import seaborn as s...
30.896396
85
0.697478
0
0
0
0
0
0
0
0
3,987
0.581195
794737a97c176c9f701f94c89a9d3fa6ea1cba13
601
py
Python
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
python/cartpole1.py
lusing/mljs
4c708bb8e0759803ed94ead3e9cfadc3a97d6ed8
[ "MIT" ]
null
null
null
import gym def cartpole(): environment = gym.make('CartPole-v1') environment.reset() for i in range(1000): # environment.render() action = environment.action_space.sample() observation, reward, done, info = environment.step(action) print("Step {}:".format(i)) print("...
28.619048
66
0.577371
0
0
0
0
0
0
0
0
117
0.194676
794855d07b967464fa463b2ba9dd7683a00f2311
3,466
py
Python
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
6
2021-05-09T12:43:37.000Z
2021-12-07T01:56:02.000Z
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
null
null
null
kw3pan/pancakeswap/factory/core/pancakeswap_factory.py
kkristof200/py_web3_pancakeswap
ae9dc7021b7da2365ce675f29f89e103fe44d77f
[ "MIT" ]
null
null
null
# ------------------------------------------------------------ Imports ----------------------------------------------------------- # # System from typing import Optional # Pip from kw3 import WrappedContract, Web3 from kw3.constants import Constants as KW3Constants # Local from ._abi import pancakeswap_factory_abi ...
28.409836
132
0.467398
2,590
0.747259
0
0
0
0
0
0
940
0.271206
794b0eee657db516c725d2d35f15819da5d490ca
17,648
py
Python
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
functions_for_AirBnB.py
dalpengholic/Udacity_Boston-AirBNB-Data
ef918f4ddf8041a9f646e6fe786730f191746c2b
[ "MIT" ]
null
null
null
# The collection of functions for the Boston AirBnB dataset # import necessary libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from pandas.tseries.holiday import USFederalHolidayCalendar as calendar #To check holidays in the U.S import time import copy def load_b...
54.807453
501
0.716228
0
0
0
0
0
0
0
0
8,278
0.469062
794b69e64ae775672890ac0f8ee3c75b24418261
2,898
py
Python
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
16
2020-04-28T07:03:26.000Z
2022-03-05T14:26:40.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
14
2020-03-19T04:32:18.000Z
2021-03-05T23:54:47.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
3
2021-01-19T18:39:00.000Z
2022-02-14T23:51:07.000Z
from typing import List, Any from markdown import Markdown from markdown.extensions import Extension from markdown.blockprocessors import BlockProcessor import re import xml.etree.ElementTree as etree class InfoPanelExtension(Extension): """Markdown extension for rendering the Confluence info panel macro. Only s...
32.931818
103
0.596963
2,593
0.894755
0
0
0
0
0
0
807
0.278468
794c1314bf22e9986c1038e23ccfa6cf2ec03b66
5,096
py
Python
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
2
2020-06-27T11:44:19.000Z
2022-01-11T21:23:01.000Z
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
null
null
null
ppo.py
ajleite/basic-ppo
e9d823275dda3c376e3e0f7d66e8dfb815b434d8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright 2019 Abe Leite # Based on "Proximal Policy Optimization Algorithms", Schulman et al 2017 # For the benefit of my fellow CSCI-B 659 students # While I hope that this code is helpful I will not vouch for its total accuracy; # my primary aim here is to elucidate the ideas from the paper. i...
40.768
113
0.615385
2,331
0.457418
0
0
1,924
0.377551
0
0
670
0.131476
794c7683b545a543ae42b9c3d18137a15b824634
2,620
py
Python
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
youtube_dl/views.py
Shovon588/api_collection
f348ffa8dc5c4dc69ba4c2a7d145c71e8273e0a2
[ "MIT" ]
null
null
null
from pytube import YouTube from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from .serializers import YoutubeDLSerializer from .utils import make_time, make_size class YoutubeDL(APIView): serializer_class = YoutubeDLSerializer def post(se...
34.933333
111
0.500763
2,384
0.909924
0
0
0
0
0
0
282
0.107634
794d1639433e46b61c5a932940ac1015c7fa9ee0
593
py
Python
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
5
2019-06-01T13:16:00.000Z
2022-03-02T10:21:59.000Z
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
null
null
null
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
1
2019-06-01T13:19:18.000Z
2019-06-01T13:19:18.000Z
# -*- coding: utf-8 -*- # tomolab # Michele Scipioni # Harvard University, Martinos Center for Biomedical Imaging # University of Pisa __all__ = ['convert_listmode_dicom_to_interfile', 'import_interfile_projection', 'export_interfile_projection', 'import_h5f_projection', 'import_interfile_volume...
37.0625
105
0.812816
0
0
0
0
0
0
0
0
298
0.50253
794d44a2cc74842f8b8d00f81d2ce675f076304a
5,043
py
Python
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd import numpy as np from typing import Union, List from pathlib import Path from timeit import default_timer as timer from nntrainer import data as nn_data def _time_to_seconds(time_column): return pd.to_timedelta(time_column).dt.total_seconds() class HT100MBaseDataset: """...
37.917293
113
0.628594
4,748
0.941503
0
0
0
0
0
0
1,775
0.351973
794d94442dfccd9fb0860ed1722ed3107bbed462
1,244
py
Python
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
qiime_16s/combine_collapsed_otu_tables.py
lotrus28/TaboCom
b67d66e4c410375a9efa08c5e637301e78e9204b
[ "Apache-2.0" ]
null
null
null
import sys import re import pandas as pd def combine_otu_tables(path_to_files): with open(path_to_files) as a: filenames = a.read().splitlines() separated = {re.search(r'ERR\d+?(?=_)',x).group(0):pd.read_table(x, sep = '\t', index_col = 1, header = None,engine='python') for x in file...
30.341463
129
0.639871
0
0
0
0
0
0
0
0
139
0.111736
794e02a9abb8bfa43732422f20b7e7e3ffdaefeb
10,950
py
Python
bambinocampones/src/bambinocampones/website/migrations/0002_auto__add_field_galeria_foi_importante.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
null
null
null
bambinocampones/src/bambinocampones/website/migrations/0002_auto__add_field_galeria_foi_importante.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
1
2015-11-08T11:49:35.000Z
2015-11-08T11:49:43.000Z
bambinocampones/src/bambinocampones/website/migrations/0002_auto__add_field_galeria_foi_importante.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Galeria.foi_importante' db.add_column(u'websit...
69.303797
172
0.541918
10,776
0.98411
0
0
0
0
0
0
7,100
0.648402
794e90ebf4066373e9e80503d5223bdfcb0a3273
580
py
Python
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-04-04T07:34:14.000Z
2021-04-04T07:34:14.000Z
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
null
null
null
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-02-18T09:50:10.000Z
2021-02-18T09:50:10.000Z
import math import numpy as np from vector import Vector import segment as segment_lib class Point(Vector): def direction(self, segment): det = np.linalg.det([ segment.as_vector().as_array(), segment_lib.Segment(segment.p1, self).as_vector().as_array() ]) return 1 i...
25.217391
91
0.631034
490
0.844828
0
0
0
0
0
0
24
0.041379
794ebda12bc12785e1d67a516bc488f2cac0229b
424
py
Python
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
setup_s3_bucket.py
chambridge/aws-cost-mgmt-access
994d3ed62601469d2d68a67e6806a3601178328a
[ "MIT" ]
null
null
null
import os from cloud.aws_service import AwsService def main(): """Execute script.""" region = os.environ.get('REGION', 'us-east-1') s3_bucket = os.environ.get('S3_BUCKET', 'costmgmtacct1234') aws = AwsService() result = aws.create_bucket(s3_bucket, region) if result: print(f'S3 bucke...
22.315789
63
0.653302
0
0
0
0
0
0
0
0
147
0.346698
794f5243f54f0804ec162bec691a557c23883c30
773
py
Python
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
16
2022-02-11T14:49:04.000Z
2022-03-30T07:33:45.000Z
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
1
2022-02-16T15:23:50.000Z
2022-02-21T15:30:21.000Z
shared/charge_controller_tcp_driver/exemple_driver.py
EDF-Lab/EDF
3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9
[ "MIT" ]
1
2022-03-24T10:52:28.000Z
2022-03-24T10:52:28.000Z
import sys sys.path.append("..") import time from charge_controller_tcp_driver.charge_controller_tcp_client_helper import * if __name__ == '__main__': helper = ChargeControllerTCPClientHelper("169.254.43.3", 12500) time.sleep(3) helper.set_pwm(100) print("PWM:", helper.get_pwm()) #time.sleep(10)...
24.15625
78
0.648124
0
0
0
0
0
0
0
0
267
0.345408
794f8be8a7920197768cc08897059ca509f8735d
5,312
py
Python
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
83
2021-08-30T02:50:37.000Z
2022-02-22T09:37:36.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
2
2021-09-10T08:44:13.000Z
2022-01-23T17:33:35.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
6
2021-09-10T07:09:41.000Z
2021-11-07T14:31:33.000Z
import os from typing import Text import torch import unittest import torch.nn as nn import torch.optim as optim from allennlp.models import Model from allennlp.data.vocabulary import Vocabulary from zsl_kg.class_encoders.auto_gnn import AutoGNN from zsl_kg.example_encoders.text_encoder import TextEncoder from zsl_kg...
31.247059
77
0.573419
4,689
0.882718
0
0
0
0
0
0
600
0.112952
79509ae0de663c69b13b3aa40296a01c2a31c785
5,077
py
Python
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
chase/simulation.py
Motwg/WolfAndSheep-2019
d6c50660368661fddf88dc860caac7236a791beb
[ "MIT" ]
null
null
null
import csv import json import logging import math import random as ran def distance(point1, point2): logging.debug("Args: {0}".format(locals())) if type(point1) != type(point2): logging.warning("Types of given arguments are different: {0} != {1}".format(point1, point2)) logging.debug("Returns: {0}...
32.33758
104
0.554855
2,318
0.456569
0
0
554
0.10912
0
0
588
0.115816
79509e0da59087724c7ad32862f4a10871238e6b
4,518
py
Python
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
1
2022-02-20T22:05:26.000Z
2022-02-20T22:05:26.000Z
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
null
null
null
anchorgql/runlocal.py
vybenetwork/anchorgql
d8a8a3fa332e0076f20061689951645c0dae1642
[ "MIT" ]
null
null
null
import json import subprocess import asyncio from solana.rpc.async_api import AsyncClient from solana.publickey import PublicKey from anchorpy import Program, Provider, Wallet class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' F...
36.144
132
0.588092
226
0.050022
0
0
0
0
515
0.113988
1,828
0.404604
7950faaf8969b4bfd67614a72bff42f402a632e6
357
py
Python
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
270
2020-01-27T06:06:07.000Z
2020-06-21T00:28:18.000Z
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
158
2020-02-10T20:36:54.000Z
2020-06-26T17:12:54.000Z
bookwyrm/activitypub/image.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
15
2020-02-13T21:53:33.000Z
2020-06-17T16:52:46.000Z
""" an image, nothing fancy """ from dataclasses import dataclass from .base_activity import ActivityObject @dataclass(init=False) class Document(ActivityObject): """a document""" url: str name: str = "" type: str = "Document" id: str = None @dataclass(init=False) class Image(Document): """...
17
41
0.64986
197
0.551821
0
0
243
0.680672
0
0
80
0.22409
795109620dee96ad8eef48181ff1ae3077d016d2
477
py
Python
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
164
2017-11-24T13:07:04.000Z
2022-03-10T04:54:46.000Z
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
21
2018-09-29T10:27:10.000Z
2019-06-12T07:01:58.000Z
TradzQAI/tools/indicators/moving_average_convergence_divergence.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
49
2018-05-09T17:28:52.000Z
2022-02-27T04:50:45.000Z
from .catch_errors import check_for_period_error from .exponential_moving_average import exponential_moving_average as ema def moving_average_convergence_divergence(data, short_period, long_period): """ Moving Average Convergence Divergence. Formula: EMA(DATA, P1) - EMA(DATA, P2) """ check_for...
29.8125
75
0.761006
0
0
0
0
0
0
0
0
102
0.213836
795164e9b019d5e0233e60502428b4c2cb401ddf
4,647
py
Python
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
8
2018-11-18T00:37:25.000Z
2020-12-06T13:17:53.000Z
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
8
2017-08-21T10:07:58.000Z
2020-03-29T18:23:37.000Z
scripts/scrape_cgc.py
eklipse2009/ZX-Pokemaster
113bf2e242347b475cca9eadbae4f1b67f498466
[ "MIT" ]
1
2021-03-04T17:43:36.000Z
2021-03-04T17:43:36.000Z
import os import glob import shutil import zipfile from functions.game_name_functions import * if (os.getcwd().endswith('scripts')): os.chdir('..') from classes.scraper import * def scrape_csscgc(): # if os.path.exists('tosec\\CSSCGC Games'): # shutil.rmtree('tosec\\CSSCGC Games') s = Scraper() ...
49.967742
114
0.497095
0
0
0
0
0
0
0
0
658
0.141597
7951a7941dd6bc9bef1b322015def6a9a9e06453
328
py
Python
app/pit/forms.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
app/pit/forms.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
app/pit/forms.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
from django.forms import ModelForm from ..models import Pit class PitForm(ModelForm): class Meta: model = Pit fields = ['location'] def __init__(self, *args, **kwargs): super(ModelForm, self).__init__(*args, **kwargs) self.fields['location'].widget.attrs['class'] = 'form-co...
25.230769
70
0.631098
265
0.807927
0
0
0
0
0
0
41
0.125
7952609e9f72568f6207d4ca79537c3b28a117d4
203
py
Python
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
1
2022-01-20T18:48:46.000Z
2022-01-20T18:48:46.000Z
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
8
2020-10-05T15:27:07.000Z
2021-02-16T17:17:54.000Z
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
5
2020-10-05T18:11:44.000Z
2022-01-21T18:33:13.000Z
import pathlib TEMPLATES_DIR = pathlib.Path(__file__).resolve(strict=True).parent / 'conf' APP_TEMPLATES_DIR = TEMPLATES_DIR / 'app_template' PROJECT_TEMPLATES_DIR = TEMPLATES_DIR / 'project_template'
29
75
0.807882
0
0
0
0
0
0
0
0
38
0.187192
79526a360c29da4c2b5320e1dc30a9a350d4bff9
5,249
py
Python
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
4
2021-07-20T18:49:44.000Z
2021-10-15T00:58:12.000Z
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
null
null
null
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
2
2022-01-07T17:57:42.000Z
2022-01-13T21:00:20.000Z
# std from typing import Any, Dict, List, Optional, Union # external import pkg_resources import sqlalchemy from sqlalchemy.orm import aliased, Session # molar from molar.backend import schemas from molar.backend.database.utils import sqlalchemy_to_dict INFORMATION_QUERY = open( pkg_resources.resource_filename("...
30.34104
87
0.594589
0
0
0
0
0
0
0
0
351
0.06687
7952969e6d0b68c2f855a88488afaf384b30fc3f
2,377
py
Python
days/day_04/main.py
gkpotter/advent-of-code-2020
76ed77719a8f6396511dabce99d46995946edb01
[ "MIT" ]
null
null
null
days/day_04/main.py
gkpotter/advent-of-code-2020
76ed77719a8f6396511dabce99d46995946edb01
[ "MIT" ]
null
null
null
days/day_04/main.py
gkpotter/advent-of-code-2020
76ed77719a8f6396511dabce99d46995946edb01
[ "MIT" ]
null
null
null
import time import os def all_fields_present(passport): fields = ['byr','iyr','eyr','hgt','hcl','ecl','pid'] for field in fields: if field not in passport: return False return True def is_valid(passport): if not all_fields_present(passport): return False byr = passport['byr'] if not (is_year(byr) and i...
20.491379
76
0.641565
0
0
0
0
0
0
0
0
223
0.093816
795299febd0881f339bf75a4c01b525d81a4103e
1,089
py
Python
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
fa_management_server/models/role.py
Msms-NJ/fa_management_server
6787e35a5ac27c27c61fcaa0f508a78f4dc6e8f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Role models.""" from dataclasses import dataclass from array import array from .database import Column, Model, SurrogatePK, db, reference_col, relationship from sqlalchemy.dialects.postgresql import ARRAY @dataclass class Role(SurrogatePK, Model): """用户角色信息表""" __tablename__ = "role...
26.560976
81
0.673095
973
0.798195
0
0
984
0.807219
0
0
386
0.316653
79539f171b11d067d372dd7f773b3f28ca1c0d21
5,696
py
Python
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
null
null
null
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
null
null
null
caller.py
xopherw/algotrader
6daafe165d7eb4d5d34b2a7051e102f15bcb71dd
[ "MIT" ]
1
2022-01-19T14:49:42.000Z
2022-01-19T14:49:42.000Z
import requests, datetime as dt, numpy as np, pandas as pd, pytz from dateutil.relativedelta import relativedelta # Call for raw data (NASDAQ) def nsdq_data(ticker): try: today = dt.datetime.now(pytz.timezone('US/Eastern')).date() past = today - relativedelta(years= 5) price = current_pric...
34.107784
119
0.548631
0
0
0
0
0
0
0
0
1,823
0.320049
79540db7343cd37c04169f2c2a9534f0c0ea7d5c
1,187
py
Python
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
21
2018-01-05T09:24:49.000Z
2021-04-24T03:25:25.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
1
2019-11-11T18:34:53.000Z
2019-11-13T15:56:10.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
13
2018-01-05T10:26:47.000Z
2022-01-25T07:48:33.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm def draw_parabola(steps=50): x = np.linspace(-4, 4, steps) plt.plot(x, x ** 2) plt.axvline(x=0, color='b', linestyle='dashed') def draw_paraboloid(steps=50): fig = plt.figure(figsize=...
27.604651
118
0.57877
0
0
0
0
0
0
0
0
23
0.019377
79549336a4241631b02e785750cc140cfc8710c5
15,643
py
Python
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
from urllib import request import random import json # 摸你请求头 url = r'https://www.baidu.com/s?cl=3&tn=baidutop10&fr=top1000&wd=%E7%9F%B3%E7%94%B0%E7%BA%AF%E4%B8%80%E6%84%9F%E6%9F%93%E6%96%B0%E5%86%A0&rsv_idx=2&rsv_dl=fyb_n_homepage&hisfilter=1' # 代理列表 agent_list = [ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) ...
140.927928
6,714
0.915681
0
0
0
0
0
0
0
0
14,535
0.924795
7954a7bbe8ccac9a9d76513832ed91b4c1c715ad
3,075
py
Python
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import onegov.core import onegov.org from tests.shared import utils def test_view_permissions(): utils.assert_explicit_permissions(onegov.org, onegov.org.OrgApp) def test_notfound(client): notfound_page = client.get('/foobar', expect_errors=True) assert "Seite nicht gefunden" in notfound_page assert...
27.212389
74
0.67935
0
0
0
0
0
0
0
0
997
0.324017
795502273dc48fdf684fe2e0b8c17dbaab75cc3f
8,530
pyw
Python
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog from Solve_stages import * from Text_stages import * from Analysis_stages import * from Output import * root = tk.Tk() root.title("Cipher program") root.geometry("1500x500") root.state("zoomed") #apparently windows only def getOutputText(): text = "" for sta...
36.609442
149
0.710785
0
0
0
0
0
0
0
0
1,190
0.139426
7956dd9954a869adae25776f34d9cfad6f7f2ede
1,912
py
Python
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
mp/data/pytorch/domain_prediction_dataset_wrapper.py
MECLabTUDA/OOD-Gen
f85ea9106ae1425f18e34c9d82fa3ca4925d8d9e
[ "MIT" ]
null
null
null
from mp.data.pytorch.pytorch_dataset import PytorchDataset from mp.data.datasets.dataset import Instance import copy import torch class DomainPredictionDatasetWrapper(PytorchDataset): r"""Wraps a PytorchDataset to reuse its instances.x and replacing the labels""" def __init__(self, pytorch_ds, target_idx): ...
40.680851
97
0.671548
1,779
0.930439
0
0
0
0
0
0
791
0.413703
7956e8f8d0ec0fef2a695bd6195a66b5f1e4e0e9
420
py
Python
docs/python/attachments/animals.py
Benbinbin/blog-data
e98b6560253bb6a1aa35e08b4ba36d03194920d1
[ "MIT" ]
null
null
null
docs/python/attachments/animals.py
Benbinbin/blog-data
e98b6560253bb6a1aa35e08b4ba36d03194920d1
[ "MIT" ]
null
null
null
docs/python/attachments/animals.py
Benbinbin/blog-data
e98b6560253bb6a1aa35e08b4ba36d03194920d1
[ "MIT" ]
null
null
null
class Dog: def speak(self): print("Woof!") def __init__(self, name): self.name = name def hear(self, words): if self.name in words: self.speak() class Husky(Dog): origin = "Siberia" def speak(self): print("Awoo!") class Chihuahua(Dog): origin =...
14
30
0.538095
409
0.97381
0
0
0
0
0
0
45
0.107143
795999b8a086d2a92c7c0d0019a508d781dcdb36
4,889
py
Python
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
1
2021-07-15T07:05:18.000Z
2021-07-15T07:05:18.000Z
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
2
2021-07-15T06:12:47.000Z
2021-07-16T10:05:36.000Z
code/visualization/2020/04/0_0_compression_tucker_sparse_facto_select_lr.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
null
null
null
import pathlib import pandas as pd from palmnet.visualization.utils import get_palminized_model_and_df, get_df import matplotlib.pyplot as plt import numpy as np import logging import plotly.graph_objects as go import plotly.express as px from pprint import pprint as pprint mpl_logger = logging.getLogger('matplotlib'...
40.07377
178
0.607895
0
0
0
0
0
0
0
0
1,096
0.224177
795b1f096f5aa18037e59346d95e4b832947c2de
8,209
py
Python
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import cmath import numpy as np from scipy import integrate from .. import polarization from ...utils import instance from ...patch import jsonpickle class test_polarization(unittest.TestCase): def _equal_params(self, params1, params2): for k, v in params1.items()...
35.081197
83
0.575466
7,239
0.881837
453
0.055183
0
0
0
0
333
0.040565
795b834e229f484b2777e3dde64e6efd9b1ae8d7
1,166
py
Python
AlphaDDA1/Othello/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
11
2021-11-13T01:43:28.000Z
2021-12-19T06:40:34.000Z
AlphaZero/Othello66/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
null
null
null
AlphaZero/Othello66/ringbuffer.py
KazuhisaFujita/AlphaDDA
664742567883cf3e08c2c53b3bce3112b8cc0560
[ "MIT" ]
null
null
null
#--------------------------------------- #Since : 2019/04/24 #Update: 2019/07/25 # -*- coding: utf-8 -*- #--------------------------------------- import numpy as np class RingBuffer: def __init__(self, buf_size): self.size = buf_size self.buf = [] for i in range(self.size): self...
26.5
53
0.482847
999
0.856775
0
0
0
0
0
0
141
0.120926
795e54dfa1e363bb6a92f080ec47772f29a13da6
811
py
Python
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
""" ______ _ _ _____ _ _ _ | ____| | | (_) | __ \ | | /\ | | (_) | |__ __ _ ___| |_ __ _ _ __ _ | |__) |___ ___| |_ / \ __| |_ __ ___ _ _ __ | __/ _` / __| __/ _` | '_ \| | | _ // _ \/ __| __| / /...
45.055556
89
0.393342
0
0
0
0
0
0
0
0
594
0.732429
795f708e3eddaecd36d179568af03258f48e6ef1
8,202
py
Python
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
import itertools import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from scipy.stats import f from scipy.stats import norm class ANOVA: """Analyse DOE experiments using ANOVA. NB: n > 1 for the code to work, where n is the number of repeats. Model: y = y_average i....
42.278351
157
0.617045
7,814
0.952694
0
0
0
0
0
0
2,026
0.247013
795f95b9ee59eba0d720fd1de7316678421773f4
6,010
py
Python
datmo/core/entity/snapshot.py
datmo/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
331
2018-03-30T14:33:59.000Z
2022-01-10T19:43:32.000Z
datmo/core/entity/snapshot.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
274
2018-04-08T17:12:44.000Z
2020-07-29T02:45:22.000Z
datmo/core/entity/snapshot.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
28
2018-05-03T21:57:22.000Z
2020-12-31T04:18:42.000Z
import os from datetime import datetime from datmo.core.util.json_store import JSONStore from datmo.core.util.misc_functions import prettify_datetime, printable_object, format_table class Snapshot(): """Snapshot is an entity object to represent a version of the model. These snapshots are the building blocks ...
38.280255
95
0.621631
5,824
0.969052
0
0
0
0
0
0
3,275
0.544925
7961d1af5a2c494ba659aefe30c177aba0152b99
3,895
py
Python
ranking/train_LM.py
yzhhome/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
1
2021-12-21T10:50:21.000Z
2021-12-21T10:50:21.000Z
ranking/train_LM.py
kalanile/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
null
null
null
ranking/train_LM.py
kalanile/JDQA
68e1d0259d316b3577a1f2fafa773b50f1885762
[ "MIT" ]
1
2021-12-21T10:50:20.000Z
2021-12-21T10:50:20.000Z
''' @Author: dengzaiyong @Date: 2021-08-21 15:16:08 @LastEditTime: 2021-08-27 19:37:08 @LastEditors: dengzaiyong @Desciption: 训练tfidf, word2vec, fasttext语言模型 @FilePath: /JDQA/ranking/train_LM.py ''' import os from collections import defaultdict from gensim import models, corpora import config import pandas as pd impo...
32.458333
95
0.537869
3,564
0.877616
0
0
0
0
0
0
912
0.224575
7962461ca47687b7819e6dc00edee38793e1d6d0
4,680
py
Python
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
1
2022-03-09T23:46:32.000Z
2022-03-09T23:46:32.000Z
import uuid import datetime import pymysql from tool.Config import Config from tool.Logger import Logger class ImageDAO(object): def __init__(self, connect_pool): self.connect_pool = connect_pool async def userImageExist(self, user_id: str): selectResult = None async with self.conn...
37.142857
115
0.519444
4,570
0.976496
0
0
0
0
4,437
0.948077
715
0.152778
79627b9bf273d6f20eed09dec297c797623cc255
4,773
py
Python
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
1
2021-08-13T13:46:04.000Z
2021-08-13T13:46:04.000Z
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
null
null
null
tests/app/dao/test_inbound_shortnumbers_dao.py
GouvQC/notification-api
e865b8b92a9a45c7cee006f427dcf77d71b09d6d
[ "MIT" ]
1
2021-09-29T18:25:48.000Z
2021-09-29T18:25:48.000Z
import pytest from sqlalchemy.exc import IntegrityError from app.dao.inbound_shortnumbers_dao import ( dao_get_inbound_shortnumbers, dao_get_inbound_shortnumber_for_service, dao_get_available_inbound_shortnumbers, dao_set_inbound_shortnumber_to_service, dao_set_inbound_shortnumber_active_flag, ...
39.775
125
0.803059
0
0
0
0
516
0.108108
0
0
257
0.053845
7962e2d4ed65e0f87126ca65657b5d805b1ac6cf
2,363
py
Python
profiletool.py
SimpleProxy/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
1
2020-10-21T21:32:42.000Z
2020-10-21T21:32:42.000Z
profiletool.py
kelvesc/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
null
null
null
profiletool.py
kelvesc/myproject02
13d0c657e2e324af78467eb2edfae2d22669573f
[ "MIT" ]
null
null
null
#!/bin/python3 # -*- coding: utf-8 -*- # file name: profiletool.py # standart libraries from time import sleep from time import process_time_ns as timer_ns # to call the respective routines import subprocess as ps # local imports import pyfactorial as pyf import mathfactorial as mtf def _vector(): return range(...
22.084112
59
0.611934
0
0
0
0
0
0
0
0
678
0.286923
7964d5e0d6c5bbff30057dd541992a4595176f15
760
py
Python
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
# Author:Sunny Liu from django.shortcuts import HttpResponse from django.shortcuts import render from django.shortcuts import redirect from urmovie import models from django.views.decorators.csrf import csrf_exempt import hashlib,os """ 内容简介: 1.爬虫情况下,对电影封面的添加 """ @csrf_exempt def uploadImg(request): i...
24.516129
52
0.665789
0
0
0
0
480
0.601504
0
0
163
0.204261
7964ebe5d975dfd2d7d9cc2c69f05839abcd1197
2,983
py
Python
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
2
2021-05-12T13:36:46.000Z
2021-08-15T10:35:08.000Z
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
1
2021-12-28T12:49:49.000Z
2021-12-28T12:49:49.000Z
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torch.cuda.amp import custom_fwd class BatchReNorm2D(nn.Module): """Batch Re-Normalization Parameters num_features – C from an expected input of size (N, C, H, W) eps – a value added to the denominator for numerical stability. Default: 1e-5 momen...
41.430556
168
0.636272
2,796
0.934804
0
0
481
0.160816
0
0
1,082
0.361752
7965ee6a115e0d8899378fe759bfe0554e1bc195
1,657
py
Python
prymate/token/token.py
NightShade256/prymate
deeb81ab685854599d803719971e85ead6699a90
[ "MIT" ]
6
2020-06-22T14:54:55.000Z
2021-12-13T12:33:21.000Z
prymate/token/token.py
NightShade256/prymate
deeb81ab685854599d803719971e85ead6699a90
[ "MIT" ]
null
null
null
prymate/token/token.py
NightShade256/prymate
deeb81ab685854599d803719971e85ead6699a90
[ "MIT" ]
1
2020-10-11T18:31:57.000Z
2020-10-11T18:31:57.000Z
import enum __all__ = ["TokenType", "Token", "lookup_ident"] class TokenType(enum.Enum): """The enumeration for different types of tokens.""" ILLEGAL = "ILLEGAL" EOF = "EOF" # Identifiers and literals IDENT = "IDENT" INT = "INT" STRING = "STRING" # Operators ASSIGN = "=" PL...
19.045977
65
0.540133
1,167
0.704285
0
0
0
0
0
0
554
0.334339
7966f849a29e53c40e0aa168b93b3cd8e669d4ec
3,191
py
Python
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
from collections import deque as LL class VM_Manager: def __init__(self): self.s_size = 9 self.p_size = 9 self.w_size = 9 self.PM = [None] * 2**19 # PM[524288] self.D = [[None] * 2**10] * 2**9 # D[1024][512] self.free_frames = LL([i for i in range(2**10)]) ...
27.991228
62
0.531808
1,551
0.486055
0
0
0
0
0
0
133
0.04168
79671fc83f6656f30c6074c1b351a64eeeecad56
3,750
py
Python
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
8
2021-12-23T06:05:00.000Z
2021-12-26T05:39:00.000Z
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
null
null
null
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
2
2021-12-23T06:10:11.000Z
2021-12-23T07:24:28.000Z
import os from flask import session from src.utils.common.common_helper import load_project_encdoing, load_project_model, load_project_pca, \ load_project_scaler, read_config from loguru import logger from from_root import from_root from src.utils.databases.mysql_helper import MySqlHelper from src.preprocessing.pre...
43.604651
117
0.560533
0
0
0
0
0
0
0
0
739
0.197067
796742832becd9376d9f4aeeea9d21e1ba36ad8f
6,343
py
Python
admin/views.py
dob9601/CollaboDev
cb1c3e3c6106ec8b0db8b570204b7fd959e0284e
[ "MIT" ]
7
2018-01-22T23:21:42.000Z
2021-01-27T12:06:02.000Z
admin/views.py
ViesLink/CollaboDev
1ab51f4d5e58dd8610861095632e1cd7f91edc21
[ "MIT" ]
9
2018-03-05T23:54:12.000Z
2022-02-10T10:54:56.000Z
admin/views.py
ViesLink/CollaboDev
1ab51f4d5e58dd8610861095632e1cd7f91edc21
[ "MIT" ]
2
2020-09-30T01:27:27.000Z
2021-01-27T12:05:46.000Z
"""Views for admin app.""" import random import os import requests from django.shortcuts import render from django.contrib.auth.models import User from django.contrib.auth.decorators import user_passes_test from django.http import HttpResponseRedirect, JsonResponse from django.urls import reverse from djan...
31.715
80
0.610752
0
0
0
0
3,537
0.557623
0
0
1,465
0.230963
7967b563a3566c5502b7994c82c942466d518c87
2,035
py
Python
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-04T23:00:33.000Z
2020-08-10T02:45:43.000Z
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
4
2020-10-09T07:02:27.000Z
2022-02-28T04:43:01.000Z
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-01T10:10:57.000Z
2021-10-05T03:03:00.000Z
from spaceone.api.repository.v1 import schema_pb2, schema_pb2_grpc from spaceone.core.pygrpc import BaseAPI class Schema(BaseAPI, schema_pb2_grpc.SchemaServicer): pb2 = schema_pb2 pb2_grpc = schema_pb2_grpc def create(self, request, context): params, metadata = self.parse_request(request, contex...
46.25
116
0.704668
1,925
0.945946
0
0
0
0
0
0
166
0.081572
796832284ec5beb0d93e3de2098cee7d04cbed89
18,718
py
Python
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
from computer_communication_framework.base_connection import Connection import subprocess import re import datetime class BasePbs(Connection): """ This is meant to be a template to create a connection object for a standard PBS/TORQUE cluster. This inherits from the base_connect.Connection class in base_connecti...
76.713115
884
0.678865
18,600
0.993696
0
0
0
0
0
0
15,519
0.829095
796b67b9479d04170cd02e4d71dc7ae51ab5fc75
13,795
py
Python
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-12-01T03:30:34.000Z
2017-12-01T03:30:34.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-11-13T18:46:39.000Z
2017-11-13T18:46:39.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
null
null
null
import random import re import json from combat import * from travel import * from pdb import set_trace def load_words(path): with open(path, 'r') as f: for line in f: clean_line = line.strip() if clean_line and not clean_line[0] == "#": yield clean_line class Mark...
35.01269
174
0.58137
860
0.062341
202
0.014643
0
0
0
0
7,461
0.540848
796c208b5ef0105c3a346b49387aabac0584232a
5,937
py
Python
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
1
2020-01-25T08:55:41.000Z
2020-01-25T08:55:41.000Z
import csv import argparse import os class ReportSplitter: def __init__(self, values, columns, file, output_folder=None, verbose=False, case_insensitive=True, contains_value=False): self.values = values self.columns = columns self.file = file self.output_folder = o...
41.229167
120
0.561732
4,595
0.77396
0
0
0
0
0
0
1,255
0.211386
796dec29764e9116f7092158c4657486b2e11567
1,899
py
Python
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
51
2019-08-18T18:18:42.000Z
2022-02-09T07:44:42.000Z
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
28
2019-08-19T04:10:52.000Z
2020-12-09T16:39:26.000Z
go/guru.py
localhots/sublime-go
960e72dafdb6c69d78bb5cbd88052540342517b9
[ "MIT" ]
4
2019-11-12T20:39:54.000Z
2021-07-30T09:57:32.000Z
from . import decorators from . import exec from . import log import os.path as path import sublime import time import json @decorators.thread @decorators.trace def source(view): locate(view) def call(mode, filename, region): """ Call calls guru(1) with the given `<mode>` filename and point. """ file = "...
22.879518
68
0.636651
0
0
0
0
69
0.036335
0
0
421
0.221696
796e2d57bc64a8e281c2292d35bc9ea91f00edac
1,344
py
Python
tests/test_key.py
ksurdacki/cipher21
8dfdab32299cb8377435e5f57ec6a9aaf33891eb
[ "MIT" ]
2
2021-05-02T21:15:38.000Z
2021-05-03T07:45:09.000Z
tests/test_key.py
ksurdacki/cipher21
8dfdab32299cb8377435e5f57ec6a9aaf33891eb
[ "MIT" ]
null
null
null
tests/test_key.py
ksurdacki/cipher21
8dfdab32299cb8377435e5f57ec6a9aaf33891eb
[ "MIT" ]
null
null
null
from unittest import TestCase from random import Random from cipher21.key import Cipher21Key from cipher21.constants import KEY_LENGTH class AssessKeyTest(TestCase): def test_positive_cases(self): prng = Random() # For test repetitiveness purpose only. Use SystemRandom ordinarily. prng.seed(0xB...
37.333333
93
0.665923
1,205
0.896577
0
0
0
0
0
0
109
0.081101
796f8ea384a7f05b46370bc3b9473a2242391c4a
357
py
Python
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ class Solution: def removeDuplicates(self, s: str, k: int) -> str: res = '' for c in s: res += c if res[-k:] == c * k: res = res[:-k] return res s = Solution() print(s.re...
21
76
0.537815
214
0.59944
0
0
0
0
0
0
94
0.263305
7970c64577da21a05fff8a9ac2d82e4f99958f7a
4,520
py
Python
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
import os import json from maya import cmds import re def conform_path(path): return join_path(*split_path(path.replace('\\', '/'))) def join_path(*args): path = list() for arg in args: parts = split_path(arg) for part in parts: part = str(part) if part: ...
28.074534
112
0.606195
3,780
0.836283
0
0
2,201
0.486947
0
0
359
0.079425
797130522e525a58e85e7b3f848947aed4b21310
2,150
py
Python
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
from .resnet_backbone import resnet18 from torch import nn import torch import torch.nn.functional as F from detro.networks.components import BiFPN, Center_layer, Offset_layer, Reg_layer, Heatmap_layer from detro.networks.losslib import center_loss, distance_loss class FeatureFusionNetwork(nn.Module): def __init_...
33.59375
97
0.649767
1,415
0.65814
0
0
0
0
0
0
376
0.174884
79714648fe909d1ef23cf1429aeb6aaa8d22155b
2,938
py
Python
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
null
null
null
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
9
2021-03-19T00:17:56.000Z
2022-03-12T00:17:14.000Z
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
null
null
null
from django import forms from .models import MakerProfile,BuyerProfile,MstLang,MstSkill,Contact,Order,OrderMessage from register.models import User class UserForm(forms.ModelForm): class Meta: model = User fields = ('last_name', 'first_name') class MakerProfileForm(forms.ModelForm): clas...
29.676768
97
0.573179
2,826
0.943258
0
0
0
0
0
0
946
0.315754
7975367638974979532191242ae89eeddc64e809
4,418
py
Python
jacket/compute/opts.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/compute/opts.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/compute/opts.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
2
2016-08-10T02:21:49.000Z
2020-07-24T01:57:21.000Z
# 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 the Li...
40.53211
85
0.716614
0
0
0
0
0
0
0
0
699
0.158216
7975415464bdf9086363882be5e74bf46c4eaee1
5,362
py
Python
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
null
null
null
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
null
null
null
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
1
2022-01-11T04:26:48.000Z
2022-01-11T04:26:48.000Z
"""CSC110 final project, main module Descriptions =============================== This module contains all the functions we used to implement the simple linear regression model. Copyright and Usage Information =============================== All forms of distribution of this code, whether as given or with any chang...
31.356725
92
0.619172
0
0
0
0
0
0
0
0
2,476
0.461768
7978c918a22636965af6e68798263bf0533bd12f
292
py
Python
exceptions.py
gongchengshi/aws
d04d42739e026d2e99936dd046be05293e063e08
[ "MIT" ]
null
null
null
exceptions.py
gongchengshi/aws
d04d42739e026d2e99936dd046be05293e063e08
[ "MIT" ]
null
null
null
exceptions.py
gongchengshi/aws
d04d42739e026d2e99936dd046be05293e063e08
[ "MIT" ]
null
null
null
class AwsErrorCodes: SqsNonExistentQueue = 'AWS.SimpleQueueService.NonExistentQueue' class NonExistantSqsQueueException(Exception): def __init__(self, queue_name): self.queue_name = queue_name Exception.__init__(self, "SQS Queue '%s' no longer exists" % queue_name)
32.444444
80
0.75
288
0.986301
0
0
0
0
0
0
74
0.253425
797b83c4395d6b6acbe9c60dbd945372be2f9477
718
py
Python
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
2
2018-09-22T18:28:33.000Z
2021-08-28T17:44:30.000Z
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
null
null
null
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
1
2019-06-05T15:34:59.000Z
2019-06-05T15:34:59.000Z
from django.contrib import admin from django.urls import path, include from . import views from django.conf import settings app_name='recognition' urlpatterns = [ path('', views.Home.as_view(), name='home'), path('settings/', views.Home.as_view(), name='settings'), path('login/', views.UserLoginView.as_view()...
34.190476
86
0.71727
0
0
0
0
0
0
0
0
180
0.250696
797d78dc8a7e7f2b8677fa417daf060e2f5479f3
2,026
py
Python
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
7
2021-02-26T06:12:28.000Z
2022-03-27T17:06:41.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
21
2020-09-18T14:03:16.000Z
2022-02-14T10:48:40.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
5
2018-03-02T23:49:41.000Z
2020-04-17T05:35:19.000Z
"""Validate consistency of versions and dependencies. Validates consistency of setup.json and * environment.yml * version in aiida_lammps/__init__.py """ import json import os import sys import click FILENAME_SETUP_JSON = "setup.json" SCRIPT_PATH = os.path.split(os.path.realpath(__file__))[0] ROOT_DIR = os.path.j...
28.138889
118
0.661895
0
0
0
0
1,294
0.638697
0
0
877
0.432873
797dc34e814424ff0892e6ac9838f4607837049a
7,062
py
Python
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
import json import os import time from configparser import ConfigParser import discord from discord.ext import tasks, commands from dotenv import load_dotenv from datetime import datetime load_dotenv() TOKEN = os.getenv('TOKEN') CONFIG_FILE = 'config.ini' # Config config_parser = ConfigParser() config_parser.read(CO...
33.15493
125
0.717927
0
0
0
0
5,754
0.814783
5,008
0.709148
1,634
0.231379
797e4e1803afd3fcc981a76ff3c6d7fb99ce8aa0
7,462
py
Python
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
import numpy as np import itdbase from itdbase import Cell import itin from copy import deepcopy as cp import cPickle as pick # from tsase.optimize import MDMin from ase.optimize.fire import FIRE # from ase.optimize import BFGS from ase import * from ase.io import read, write import os import sys import numpy as np fr...
28.158491
79
0.597829
0
0
0
0
0
0
0
0
1,331
0.17837
797e80a621441acbd16bae2574af1c39fbbbbfb6
1,113
py
Python
ckanext/issues/commands.py
rhabbachi/ckanext-issues
d8c3dde8372e88dd5dc173023df34c90034ca777
[ "MIT" ]
8
2016-06-16T20:45:54.000Z
2020-09-24T12:06:15.000Z
ckanext/issues/commands.py
rhabbachi/ckanext-issues
d8c3dde8372e88dd5dc173023df34c90034ca777
[ "MIT" ]
50
2015-03-25T16:59:11.000Z
2016-01-10T21:35:26.000Z
ckanext/issues/commands.py
rhabbachi/ckanext-issues
d8c3dde8372e88dd5dc173023df34c90034ca777
[ "MIT" ]
11
2016-09-14T13:34:53.000Z
2020-08-28T05:48:58.000Z
from ckan.lib.cli import CkanCommand import logging import sys class Issues(CkanCommand): """ Usage: paster issues init_db - Creates the database table issues needs to run paster issues upgrade_db - Does any database migrations required (idempotent) """ summary...
25.883721
69
0.57053
1,046
0.939802
0
0
0
0
0
0
423
0.380054
797ef4080003e9940cfa950023fe499ebb5260ea
510
py
Python
wprevents/base/views.py
arroway/wprevents
5ed14c0e85c1a6463a0e72c94836fae81fbe3fda
[ "BSD-3-Clause" ]
1
2015-02-07T10:04:48.000Z
2015-02-07T10:04:48.000Z
wprevents/base/views.py
yvan-sraka/wprevents
03f95150fe7c09338c3a17e00a4b85febef87789
[ "BSD-3-Clause" ]
6
2015-02-07T10:08:38.000Z
2021-06-06T13:17:24.000Z
wprevents/base/views.py
yvan-sraka/wprevents
03f95150fe7c09338c3a17e00a4b85febef87789
[ "BSD-3-Clause" ]
4
2015-01-20T19:48:31.000Z
2017-04-08T22:10:52.000Z
from django.http import HttpResponseServerError from django.shortcuts import render from django.template import RequestContext from django.template.loader import get_template def login(request): return render(request, 'login.html') def error404(request): t = get_template('404.html') res = HttpResponseServerEr...
22.173913
66
0.782353
0
0
0
0
0
0
0
0
32
0.062745
798152a21d0084126235c34a6bada661f5af6a43
1,984
py
Python
symmetricom_raspberrypi_clock.py
wkumari/symmetricom-nd4-python
08ff7dc56f52667ad885817a3afbb97c879d5f48
[ "Apache-2.0" ]
null
null
null
symmetricom_raspberrypi_clock.py
wkumari/symmetricom-nd4-python
08ff7dc56f52667ad885817a3afbb97c879d5f48
[ "Apache-2.0" ]
null
null
null
symmetricom_raspberrypi_clock.py
wkumari/symmetricom-nd4-python
08ff7dc56f52667ad885817a3afbb97c879d5f48
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017 Warren Kumari """ This small program uses a Raspberry Pi Zero W to drive the display portion of a Symmetricom ND-4 display. This replaces the processor board of the ND-4, and powers the Pi from the internal ND-4 power supply. The original processor board simply drives a MAX7...
32
116
0.697077
0
0
0
0
0
0
0
0
1,362
0.686492
7981d5f5623d46312039f8e4c8cb2b8fbffad125
4,730
py
Python
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # James Sandford, copyright BBC 2020 # # 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 l...
33.785714
79
0.65074
3,910
0.826638
0
0
2,714
0.573784
0
0
696
0.147146
7982421d07b8b666fc8fc840123a2f47aa6edf14
860
py
Python
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
59
2022-01-19T21:35:57.000Z
2022-03-30T21:35:27.000Z
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
import importlib client_hints_ua_list = importlib.import_module("client-hints.resources.clienthintslist").client_hints_ua_list def main(request, response): """ Simple handler that sets a response header based on which client hint request headers were received. """ response.headers.append(b"Access-Contro...
35.833333
109
0.731395
0
0
0
0
0
0
0
0
274
0.318605
79836d938d077f9ed2ab86fd140347063a4e8fc0
8,892
py
Python
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
2
2021-09-18T14:21:24.000Z
2021-12-20T03:39:13.000Z
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
null
null
null
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
1
2021-09-12T07:02:23.000Z
2021-09-12T07:02:23.000Z
import os import json import numpy as np class Vocab(object): def __init__(self): self.word_to_id = dict() self.count = list() self.words = list() self.to_lower = False # add character information self.chars = list() # ['a', 'b', 'c', 'd', ...] ...
36.743802
109
0.501012
8,836
0.993702
0
0
0
0
0
0
805
0.090531
7983823b3cdf770a3c86d666eba52cc7de43379b
2,749
py
Python
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
15
2018-10-19T05:48:17.000Z
2022-02-14T20:34:16.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
1
2020-04-22T22:55:39.000Z
2020-04-22T22:55:39.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
9
2018-11-13T12:37:55.000Z
2021-11-22T11:11:52.000Z
# ==BEGIN LICENSE== # # MIT License # # Copyright (c) 2018 SRI Lab, ETH Zurich # # 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 right...
33.938272
87
0.75773
0
0
0
0
0
0
0
0
1,221
0.444162
79847f99b109a82c82b372de1f58d473f2ed39a1
2,611
py
Python
psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
16
2017-11-09T17:10:56.000Z
2022-03-09T23:03:10.000Z
psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
6
2017-12-12T19:30:05.000Z
2020-07-09T00:28:33.000Z
psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
25
2017-09-18T20:02:43.000Z
2022-03-27T22:27:42.000Z
####!/usr/bin/env python #---------------------------- """ :py:class:`DCConfigParameters` - class supporting configuration parameters for application ========================================================================================== See: * :py:class:`DCStore` * :py:class:`DCType` * :py:class:`DCRan...
32.6375
124
0.579088
1,242
0.47568
0
0
0
0
0
0
1,599
0.612409
798a3cc03589f18c700fa6bcef79b697f3535128
22,751
py
Python
limonero/models.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
1
2018-01-01T20:35:43.000Z
2018-01-01T20:35:43.000Z
limonero/models.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
37
2017-02-24T17:07:25.000Z
2021-09-02T14:49:19.000Z
limonero/models.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
2
2019-11-05T13:45:45.000Z
2020-11-13T22:02:37.000Z
import datetime import json from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Column, Integer, String, Boolean, ForeignKey, Float, \ Enum, DateTime, Numeric, Text, Unicode, UnicodeText from sqlalchemy import event from sqlalchemy.dialects.mysql import LONGTEXT from sqlalchemy.sql import func from sqlal...
33.213139
107
0.594611
21,631
0.950771
0
0
1,615
0.070986
0
0
4,463
0.196167
798d2621ee7b1e2db86f8b2f4ca02a4a32de49fa
398
py
Python
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
""" Przemienia liczbę na wartość binarną i zwraca sumę jedynek występującą w wartości binarnej Example: The binary representation of 1234 is 10011010010, so the function should return 5 in this case """ def countBits(n): # szybsza metoda # return bin(n).count("1") final = 0 for x in str(bin(n)): ...
26.533333
103
0.660804
0
0
0
0
0
0
0
0
256
0.628993
798d7fd532e84917e31256f8642a90e8a7bd3c0f
2,392
py
Python
cognite/transformations_cli/commands/deploy/transformation_types.py
cognitedata/transformations-cli
7466cd8dcb30829793e0026d0b2eae62c3df5f6b
[ "Apache-2.0" ]
1
2022-02-01T09:54:52.000Z
2022-02-01T09:54:52.000Z
cognite/transformations_cli/commands/deploy/transformation_types.py
cognitedata/transformations-cli
7466cd8dcb30829793e0026d0b2eae62c3df5f6b
[ "Apache-2.0" ]
19
2021-11-12T13:21:17.000Z
2022-03-28T14:34:00.000Z
cognite/transformations_cli/commands/deploy/transformation_types.py
cognitedata/transformations-cli
7466cd8dcb30829793e0026d0b2eae62c3df5f6b
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import List, Optional, Union class DestinationType(Enum): assets = "assets" timeseries = "timeseries" asset_hierarchy = "asset_hierarchy" events = "events" datapoints = "datapoints" string_datapoints = "string_datapoint...
23.45098
133
0.701923
2,195
0.917642
0
0
1,379
0.576505
0
0
550
0.229933
798f90e5f4234e1706d47ac52ae151b26363ed30
105
py
Python
autoapi/__init__.py
lhfriedman/sphinx-autoapi
efe815c1df16a616b40b44cb679fda4a4eb7895a
[ "MIT" ]
null
null
null
autoapi/__init__.py
lhfriedman/sphinx-autoapi
efe815c1df16a616b40b44cb679fda4a4eb7895a
[ "MIT" ]
1
2020-07-31T01:19:04.000Z
2020-07-31T01:19:04.000Z
autoapi/__init__.py
lhfriedman/sphinx-autoapi
efe815c1df16a616b40b44cb679fda4a4eb7895a
[ "MIT" ]
null
null
null
""" Sphinx AutoAPI """ from .extension import setup from ._version import __version__, __version_info__
15
51
0.780952
0
0
0
0
0
0
0
0
22
0.209524
798fc2e845f5bf9a57d8e39d930d847c7c266425
1,851
py
Python
org/openbaton/v2/events.py
openbaton/openbaton-cli
4d2f894c0b6d821fa41e03caca880467de90d8fe
[ "Apache-2.0" ]
2
2017-07-24T11:33:27.000Z
2020-05-09T00:21:49.000Z
org/openbaton/v2/events.py
openbaton/openbaton-cli
4d2f894c0b6d821fa41e03caca880467de90d8fe
[ "Apache-2.0" ]
5
2017-06-09T14:28:50.000Z
2018-07-05T10:46:40.000Z
org/openbaton/v2/events.py
openbaton/openbaton-cli
4d2f894c0b6d821fa41e03caca880467de90d8fe
[ "Apache-2.0" ]
2
2017-06-09T13:27:27.000Z
2017-07-18T21:01:59.000Z
import logging from org.openbaton.v2.cmd import BaseObCmd from org.openbaton.v2.utils import get_result_to_list, get_result_to_show, parse_path_or_json, result_to_str class Events(BaseObCmd): """Command to manage event endpoints: it is possible to: * show details of a specific event endpoint passing an ...
39.382979
114
0.611021
1,680
0.907618
0
0
0
0
0
0
477
0.257699
7990148f4b787430b9e80ecbae6f2daea018109e
6,390
py
Python
tests/bugs/gh_5995_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/gh_5995_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/gh_5995_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.gh_5995 # title: Connection to server may hang when working with encrypted databases over non-TCP protocol [CORE5730] # decription: # https://github.com/FirebirdSQL/firebird/issues/5995 # # Test implemented only to be run ...
38.035714
140
0.596557
0
0
0
0
150
0.023474
0
0
5,894
0.922379
7990913dfb319b60a3a689bb4ec8e33cb489297d
10,799
py
Python
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
1
2018-12-06T21:51:22.000Z
2018-12-06T21:51:22.000Z
from mednickdb_pyapi.mednickdb_pyapi import MednickAPI import pytest import time import pandas as pd import pprint pp = pprint.PrettyPrinter(indent=4) server_address = 'http://saclab.ss.uci.edu:8000' file_update_time = 2 data_update_time = 10 data_upload_working = False def dict_issubset(superset, subset, show_di...
43.720648
215
0.682471
0
0
0
0
8,499
0.787017
0
0
3,311
0.306602
79941e8098ddb85ae7adb492cd1a81eb3262f856
4,078
py
Python
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
6
2021-01-15T13:31:37.000Z
2021-12-06T13:44:39.000Z
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
null
null
null
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
null
null
null
import requests from .enums import TransactionStatus from .exceptions import InvalidPaymentException, SslcommerzAPIException from .services import PayloadSchema, is_verify_sign_valid DEFAULT_CONFIG = { "base_url": "https://sandbox.sslcommerz.com", "session_url": "/gwprocess/v4/api.php", "validation_url":...
37.072727
88
0.601766
3,636
0.891614
0
0
0
0
0
0
674
0.165277
7994462d7302f56ae3248adc4074cec0dff871a2
1,636
py
Python
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
2
2015-07-13T09:08:53.000Z
2017-05-22T07:56:29.000Z
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
null
null
null
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
null
null
null
import abc import re from .exceptions import FileSuffixError from .stack import LineCounter, IndentStack class ConverterBase(metaclass=abc.ABCMeta): def __init__(self, src: str): self.src = src self.code_blocks @property def code_blocks(self): ''' Aggregate code block in...
27.728814
64
0.525672
1,527
0.933374
0
0
1,395
0.852689
0
0
165
0.100856
7994c8744e38290defb02afb422aa332b6ee9f48
541
py
Python
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
# import the necessary packages import numpy as np import argparse import cv2 im = cv2.imread('/var/www/test/test.jpg') cv2.imshow("im", im) imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) ret,thresh = cv2.threshold(imgray,127,255,0) cv2.imshow("Thresh", thresh) (cnts, _) = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN...
31.823529
83
0.744917
0
0
0
0
0
0
0
0
157
0.290203
79954f94e96d2ea0202820bdc5e93050e74cbb64
810
py
Python
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
2
2021-11-11T15:19:30.000Z
2022-02-07T22:52:07.000Z
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 783682226c9b Revises: b882b9ab026c Create Date: 2019-10-19 10:07:14.923441 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "783682226c9b" down_revision = "b882b9ab026c" branch_labels = None depends_on = None def upgrade(): # #...
25.3125
110
0.693827
0
0
0
0
0
0
0
0
418
0.516049
7996085f7d2fbdd5bdf9904904104dd2b1da88ab
645
py
Python
backend/pages/migrations/0002_add_streamfield_option.py
nicoepp/the-prayer-walk
6c8217c33f399cfe46dc23075e13ca9464079cae
[ "MIT" ]
null
null
null
backend/pages/migrations/0002_add_streamfield_option.py
nicoepp/the-prayer-walk
6c8217c33f399cfe46dc23075e13ca9464079cae
[ "MIT" ]
null
null
null
backend/pages/migrations/0002_add_streamfield_option.py
nicoepp/the-prayer-walk
6c8217c33f399cfe46dc23075e13ca9464079cae
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-02-04 05:25 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('pages', '0001_add_homepage'), ] operations = [ migrations.AlterField( model_name='...
30.714286
271
0.669767
506
0.784496
0
0
0
0
0
0
132
0.204651
79973a1e08549411e3704f4e9cd2dd372854a94e
2,800
py
Python
pysnmp/HPN-ICF-FCOE-MODE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HPN-ICF-FCOE-MODE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HPN-ICF-FCOE-MODE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HPN-ICF-FCOE-MODE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-FCOE-MODE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:26:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
112
477
0.777143
0
0
0
0
0
0
0
0
1,030
0.367857
799b0a8db84df97948487d6c7aed90ab475e0d53
1,212
py
Python
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
import argparse import pandas as pd from config_builder import build_config from utils.helpers import load_ymal def app_dep_graph(yml): nodes = [] source = [] target = [] print(yml) for svc_name, service in yml["services"].items(): print(service) nodes.append(svc_name) for...
28.857143
77
0.632013
0
0
0
0
0
0
0
0
223
0.183993
799b58e5ba21ca4170d1a2c3abadcfc25ef8f189
1,896
py
Python
app/core/tests/test_admin.py
wanqian622/recipe-app-api
040eade8c6636347b6928b6deef7dfc3eaebc6f4
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
wanqian622/recipe-app-api
040eade8c6636347b6928b6deef7dfc3eaebc6f4
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
wanqian622/recipe-app-api
040eade8c6636347b6928b6deef7dfc3eaebc6f4
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model # generate url for our django admin page from django.urls import reverse # allow us to make test requests to our app class AdminSiteTests(TestCase): # the set up test is a function run before every test that we run def set...
37.92
70
0.647152
1,688
0.890295
0
0
0
0
0
0
779
0.410865
799b9f43022008e2e03ab6f0fb315d88d195a221
348
py
Python
by-session/class-921/week2/poly.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/class-921/week2/poly.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/class-921/week2/poly.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
import turtle def circle(): while turtle.heading() < 359: turtle.forward(1) turtle.left(1) turtle.left(1) def poly(r, teta): n = 360 / teta while n > 0: n = n - 1 turtle.forward(r) turtle.left(teta) n = 10 while n > 0: n = n - 1 poly(10, 30) turtle....
14.5
33
0.522989
0
0
0
0
0
0
0
0
0
0
799c75fdf25b724115e60255f1f09d6eec4d851d
4,187
py
Python
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
8
2016-10-14T14:32:00.000Z
2022-01-14T16:04:07.000Z
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
42
2016-11-11T12:24:54.000Z
2021-07-12T03:29:18.000Z
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
7
2017-03-13T09:21:08.000Z
2018-01-08T06:40:22.000Z
from ckan.plugins import toolkit from ckan.lib.i18n import get_lang import ckan.lib.i18n as i18n from ckan.common import config, c import ckan.logic as logic import ckan.lib.base as base import ckan.model as model from ckan.model.package import Package from ckan.lib.dictization.model_dictize import group_list_dictize ...
27.366013
119
0.64557
0
0
0
0
0
0
0
0
587
0.140196
799d1aa404d567219c68dbf1a4e8d983c39bc395
389
py
Python
helpers/cast_heal.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
2
2018-01-05T08:09:37.000Z
2018-01-05T20:39:18.000Z
helpers/cast_heal.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
null
null
null
helpers/cast_heal.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
null
null
null
# function that heals the player import variables as var from helpers.message import message def cast_heal(): # heal the player if var.player.fighter.hp == var.player.fighter.max_hp: message('You are already at full health.', 'red') return 'cancelled' message('Your wounds start to feel bet...
27.785714
64
0.701799
0
0
0
0
0
0
0
0
147
0.377892
79a1df3d282563da1e1751edcf4f307e4b4ca364
8,794
py
Python
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
1
2022-02-15T23:43:22.000Z
2022-02-15T23:43:22.000Z
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
null
null
null
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
3
2020-03-21T12:45:22.000Z
2020-10-06T18:30:47.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns all from viabel import all_bounds from viabel.vb import black_box_klvi, black_box_chivi, adagrad_optimize from utils import Timer from psis import psislw ## Display bounds information ## def print_bounds(results): print('Bounds on...') ...
41.677725
90
0.61053
0
0
0
0
0
0
0
0
1,054
0.119854
79a273cc97d15a6de92f6c405beb9d31e30fa60e
6,269
py
Python
network_filters.py
luos/nova-latency-scheduler
8e83539ce1dfd080ba86e4e71a2b999e56a91ec8
[ "MIT" ]
1
2017-03-28T19:02:23.000Z
2017-03-28T19:02:23.000Z
network_filters.py
luos/nova-latency-scheduler
8e83539ce1dfd080ba86e4e71a2b999e56a91ec8
[ "MIT" ]
null
null
null
network_filters.py
luos/nova-latency-scheduler
8e83539ce1dfd080ba86e4e71a2b999e56a91ec8
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from collections import namedtuple from nova.objects.request_spec import RequestSpec from nova.scheduler.host_manager import HostState from oslo_log import log as logging import nova.conf from nova.scheduler.filters import BaseHostFilter from latency_meter.server import start_...
29.7109
113
0.590206
5,641
0.899825
0
0
146
0.023289
0
0
890
0.141968
79a4a7145c7782f4c24c78c13d10feef5db3850e
2,456
py
Python
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
1
2021-06-10T23:13:04.000Z
2021-06-10T23:13:04.000Z
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
import logging import traceback from django.core.exceptions import ValidationError from django.core.files.base import ContentFile from django.db import transaction from django_rq import job from . import email from .r10_spreadsheet_converter import Region10SpreadsheetConverter from contracts.loaders.region_10 import R...
29.95122
79
0.735342
0
0
0
0
2,000
0.814332
0
0
462
0.188111
79a5279be723e7987fc33c8f7184b26de97782d2
1,525
py
Python
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
8
2019-12-04T21:58:35.000Z
2021-12-15T02:29:49.000Z
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
import itertools from django.conf import settings from django.dispatch import receiver from django.core.signals import setting_changed from api import models _USER_UNREAD_GRACE_INTERVAL = None _USER_UNREAD_GRACE_MIN_COUNT = None @receiver(setting_changed) def _load_global_settings(*args, **kwargs): global _US...
31.122449
120
0.773115
0
0
634
0.415738
292
0.191475
0
0
14
0.00918