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
5e9d51222054c4d9f5cea79d0046024a1b6003ba
28,600
py
Python
gerryopt/compile.py
pjrule/gerryopt
c9b5abca3b27caa39c9f86f904e1207eafc8751c
[ "MIT" ]
null
null
null
gerryopt/compile.py
pjrule/gerryopt
c9b5abca3b27caa39c9f86f904e1207eafc8751c
[ "MIT" ]
null
null
null
gerryopt/compile.py
pjrule/gerryopt
c9b5abca3b27caa39c9f86f904e1207eafc8751c
[ "MIT" ]
1
2022-01-12T20:54:09.000Z
2022-01-12T20:54:09.000Z
"""Compiler/transpiler for the GerryOpt DSL.""" import ast import json import inspect from copy import deepcopy from textwrap import dedent from dataclasses import dataclass, field, is_dataclass, asdict from enum import Enum from itertools import product from typing import (Callable, Iterable, Sequence, Set, Dict, List...
36.294416
94
0.620629
5e9f6762a15db846cc32799b17cfd011720d5591
3,122
py
Python
tdi/dev_support/DevHelp.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
tdi/dev_support/DevHelp.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
tdi/dev_support/DevHelp.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2017, Massachusetts Institute of Technology 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 copyright notice, this # list o...
43.361111
80
0.606342
5e9f9dc3d6e213db9657bb6eb351051a106357c9
6,805
py
Python
ncbi_single_use_genome.py
marco-mariotti/ncbi_single_use_genome
976da1dc195955c344119e222cc731453797d893
[ "MIT" ]
null
null
null
ncbi_single_use_genome.py
marco-mariotti/ncbi_single_use_genome
976da1dc195955c344119e222cc731453797d893
[ "MIT" ]
null
null
null
ncbi_single_use_genome.py
marco-mariotti/ncbi_single_use_genome
976da1dc195955c344119e222cc731453797d893
[ "MIT" ]
null
null
null
#! /usr/bin/env -S python3 -u import os, shutil, sys, glob, traceback from easyterm import * help_msg="""This program downloads one specific NCBI assembly, executes certains operations, then cleans up data ### Input/Output: -a genome NCBI accession -o folder to download to ### Actions: -c bash command ...
31.799065
112
0.638648
5ea0d191ed54273a061ed7e8a50245385460de2f
224
py
Python
World_1/002Usingformat.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_1/002Usingformat.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_1/002Usingformat.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
nome = input('Digite seu nome: ') name = input('Type your name: ') print(' um prazer te conhecer, {}{}{}!'.format('\033[1;36m', nome, '\033[m')) print('It is nice to meet you, {}{}{}!'.format('\033[4;30m', name, '\033[m'))
44.8
78
0.584821
5ea112ef558fca9073cce1f7c0ebf8ece1f28a9a
2,289
py
Python
Module_06/tests/sauce_lab/test_checkout_details.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_06/tests/sauce_lab/test_checkout_details.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_06/tests/sauce_lab/test_checkout_details.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
"""Test cases for inventory item""" import pytest from Module_06.src.elements.inventory_item import InventoryItem from Module_06.src.pages.login import LoginPage from Module_06.tests.common.test_base import TestBase from Module_06.src.pages.checkout_details import CheckoutDetailsPage from Module_06.src.pages.checkout_...
36.333333
83
0.706859
5ea1b42b0e5d60db5690353440e0919475138e12
2,217
py
Python
tests/test_cuda_graph_helpers.py
hpi-epic/gpucsl
f461c47ce17105f7cf25aa65d39cb671021f07e4
[ "MIT" ]
5
2022-03-22T14:56:05.000Z
2022-03-26T18:41:58.000Z
tests/test_cuda_graph_helpers.py
hpi-epic/gpucsl
f461c47ce17105f7cf25aa65d39cb671021f07e4
[ "MIT" ]
12
2022-03-26T10:39:04.000Z
2022-03-31T20:43:54.000Z
tests/test_cuda_graph_helpers.py
hpi-epic/gpucsl
f461c47ce17105f7cf25aa65d39cb671021f07e4
[ "MIT" ]
null
null
null
import cupy as cp import numpy as np import pandas as pd import itertools import math import networkx as nx from gpucsl.pc.kernel_management import get_module function_names = [ "compact<6,6>", ] module = get_module("helpers/graph_helpers.cu", function_names, ("-D", "PYTHON_TEST"))
24.097826
86
0.519621
5ea267b7599a251894f7be39dbaec041e355e0b1
4,583
py
Python
capsul/engine/module/python.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
5
2018-10-31T10:16:53.000Z
2022-03-11T08:11:32.000Z
capsul/engine/module/python.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
78
2018-10-30T17:04:38.000Z
2022-03-17T17:39:41.000Z
capsul/engine/module/python.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
11
2019-01-21T10:05:08.000Z
2022-02-22T17:02:22.000Z
# -*- coding: utf-8 -*- ''' Python configuration module for CAPSUL This config module allows the customization of python executable and python path in process execution. It can (as every config module) assign specific config values for different environments (computing resources, typically). Python configuration is s...
47.247423
362
0.669867
5ea28c59393a6e808bc7631cfe435d3d54ff90cc
3,600
py
Python
face.py/DetectFace.py
DNSKT/python
081e439e9e9f2e9b58ace5ff0cba93b8c46d5e36
[ "MIT" ]
4
2021-10-02T02:14:06.000Z
2022-01-13T01:54:16.000Z
face.py/DetectFace.py
DNSKT/python
081e439e9e9f2e9b58ace5ff0cba93b8c46d5e36
[ "MIT" ]
null
null
null
face.py/DetectFace.py
DNSKT/python
081e439e9e9f2e9b58ace5ff0cba93b8c46d5e36
[ "MIT" ]
null
null
null
import asyncio import io import glob import os import sys import time import uuid import requests from urllib.parse import urlparse from io import BytesIO # To install this module, run: # python -m pip install Pillow from PIL import Image, ImageDraw from azure.cognitiveservices.vision.face import FaceClien...
48.648649
133
0.755833
5ea2f5c49120331dea159521e5e8c35ca8b6be45
2,741
py
Python
examples/tesselation.py
2dx/moderngl
5f932560a535469626d79d22e4205f400e18f328
[ "MIT" ]
916
2019-03-11T19:15:20.000Z
2022-03-31T19:22:16.000Z
examples/tesselation.py
2dx/moderngl
5f932560a535469626d79d22e4205f400e18f328
[ "MIT" ]
218
2019-03-11T06:05:52.000Z
2022-03-30T16:59:22.000Z
examples/tesselation.py
2dx/moderngl
5f932560a535469626d79d22e4205f400e18f328
[ "MIT" ]
110
2019-04-06T18:32:24.000Z
2022-03-21T20:30:47.000Z
#!/usr/bin/env python3 '''Simple example of using tesselation to render a cubic Bzier curve''' import numpy as np import moderngl from ported._example import Example if __name__ == '__main__': Tessellation.run()
28.552083
85
0.511127
5ea4c56b19379cf79c7f01fa78cbab208ced0a25
326
py
Python
setup.py
rahul0705/smv
01a4545be55f9355c8cc1d28918a8ab24d4a02e1
[ "MIT" ]
null
null
null
setup.py
rahul0705/smv
01a4545be55f9355c8cc1d28918a8ab24d4a02e1
[ "MIT" ]
null
null
null
setup.py
rahul0705/smv
01a4545be55f9355c8cc1d28918a8ab24d4a02e1
[ "MIT" ]
null
null
null
""" author: Rahul Mohandas """ import setuptools setuptools.setup( name="smv", version="0.1", packages=setuptools.find_packages(exclude=["tests"]), author="Rahul Mohandas", author_email="rahul@rahulmohandas.com", description="It's like scp but for moving", license="MIT", test_suite="tes...
20.375
57
0.671779
5ea4f8d3a7d608af36cb9f970a681dca5774ff4b
905
py
Python
py/ssm_report/charts.py
acorg/ssm-report
bddc33cb167f6ca766c56747529828807bebd803
[ "MIT" ]
null
null
null
py/ssm_report/charts.py
acorg/ssm-report
bddc33cb167f6ca766c56747529828807bebd803
[ "MIT" ]
null
null
null
py/ssm_report/charts.py
acorg/ssm-report
bddc33cb167f6ca766c56747529828807bebd803
[ "MIT" ]
null
null
null
import logging; module_logger = logging.getLogger(__name__) from pathlib import Path # ---------------------------------------------------------------------- # ====================================================================== ### Local Variables: ### eval: (if (fboundp 'eu-rename-buffer) (eu-rename-buffer)) ### ...
41.136364
123
0.554696
5ea524e0a2aaf6646e0647b7e3b3bb487ad9b0d6
14,650
py
Python
sciunit/base.py
russelljjarvis/sciun
f8f6ede84299dc700afe94b07ae4e98f87a19116
[ "MIT" ]
1
2020-05-28T00:35:23.000Z
2020-05-28T00:35:23.000Z
sciunit/base.py
ChihweiLHBird/sciunit
f5669d165fa505c3a17ac17af3d3c78aafd44ae2
[ "MIT" ]
1
2020-12-29T04:28:57.000Z
2020-12-29T04:28:57.000Z
sciunit/base.py
russelljjarvis/sciunit
f8f6ede84299dc700afe94b07ae4e98f87a19116
[ "MIT" ]
null
null
null
"""The base class for many SciUnit objects.""" import sys PLATFORM = sys.platform PYTHON_MAJOR_VERSION = sys.version_info.major if PYTHON_MAJOR_VERSION < 3: # Python 2 raise Exception('Only Python 3 is supported') import json, git, pickle, hashlib import numpy as np import pandas as pd from pathlib import Path...
34.551887
138
0.553925
5ea72399ea15c71aa2c24c3a7b572b15a149a2ff
741
py
Python
arpym/tools/regularized_payoff.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2021-04-10T13:24:30.000Z
2022-03-26T08:20:42.000Z
arpym/tools/regularized_payoff.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
null
null
null
arpym/tools/regularized_payoff.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2019-08-13T22:02:17.000Z
2022-02-09T17:49:12.000Z
# -*- coding: utf-8 -*-" from numpy import pi, exp, sqrt from scipy.special import erf def regularized_payoff(x, k_strk, h, method): """For details, see here: Parameters ---------- x : array, shape (j_,) k : scalar method: string h: scalar Returns ------- ...
22.454545
73
0.45749
5eab19f2aca9d090175ce4ce170870b18995458b
623
py
Python
functions/solution/functions_numstr_human.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
1
2019-01-02T15:04:08.000Z
2019-01-02T15:04:08.000Z
functions/solution/functions_numstr_human.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
functions/solution/functions_numstr_human.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
from typing import Union NUMBER_DICT = { '0': 'zero', '1': 'one', '2': 'two', '3': 'three', '4': 'four', '5': 'five', '6': 'six', '7': 'seven', '8': 'eight', '9': 'nine', '.': 'and', } def number_to_str(number: Union[int, float]) -> str: """ >>> number_to_str(1969)...
18.878788
54
0.548957
5eacda4c41904fde53e82605bee0dcf17f4ef068
5,343
py
Python
cJobObject.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
7
2017-10-09T14:32:22.000Z
2021-01-30T07:25:50.000Z
cJobObject.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
2
2017-12-12T02:53:18.000Z
2019-02-19T09:23:18.000Z
cJobObject.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
1
2017-12-12T02:42:18.000Z
2017-12-12T02:42:18.000Z
from mWindowsSDK import *; from .fbIsValidHandle import fbIsValidHandle; from .fbLastErrorIs import fbLastErrorIs; from .fohOpenForProcessIdAndDesiredAccess import fohOpenForProcessIdAndDesiredAccess; from .fsGetPythonISA import fsGetPythonISA; from .fThrowLastError import fThrowLastError; from .oSystemInfo import oSys...
49.934579
164
0.763242
5ead8819552a60d1c0e97dd3a85e065b78457769
9,746
py
Python
core/views/directions.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
2
2020-03-02T17:29:14.000Z
2020-05-28T13:19:49.000Z
core/views/directions.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
88
2020-02-17T09:46:57.000Z
2022-03-12T00:24:32.000Z
core/views/directions.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
1
2020-04-17T15:56:51.000Z
2020-04-17T15:56:51.000Z
import dataclasses import datetime import json import os import tempfile from core.excel.directions import DirectionsExcel from django.conf import settings from django.contrib import messages from django.contrib.auth.mixins import PermissionRequiredMixin from django.core.files import File from django.shortcuts import ...
35.184116
120
0.635543
5eae8ac7a005dd1b0f71911185c7c5a0a7158078
361
py
Python
problem/10000~19999/17206/17206.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/10000~19999/17206/17206.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/10000~19999/17206/17206.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
t=int(input()) if not (1 <= t <= 100000): exit(-1) dp=[0]*100001 dp[3]=3 for i in range(4,100001): if i%3==0 or i%7==0: dp[i]=i dp[i]+=dp[i-1] query=[*map(int,input().split())] if len(query)!=t: exit(-1) for i in query: if not (10 <= int(i) <= 80000): exit(-1) print(dp[int(i)]) succ=False try: input(...
19
44
0.565097
5eae8d82dc5183916e03e85619c769e8bdd57923
21,108
py
Python
quantarhei/qm/liouvillespace/heom.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
14
2016-10-16T13:26:05.000Z
2021-11-09T11:40:52.000Z
quantarhei/qm/liouvillespace/heom.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
61
2016-09-19T10:45:56.000Z
2021-11-10T13:53:06.000Z
quantarhei/qm/liouvillespace/heom.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
21
2016-08-30T09:09:28.000Z
2022-03-30T03:16:35.000Z
# -*- coding: utf-8 -*- """ Representation of Hierarchical Equations of Motion """ import numpy from ... import REAL, COMPLEX from ..propagators.dmevolution import DensityMatrixEvolution from ..hilbertspace.operators import ReducedDensityMatrix from ..hilbertspace.operators import UnityOperator from ...core.units...
30.724891
93
0.45054
5eaeca45e629aa19975f979a92e385f19c770edc
17,980
py
Python
pyOSA/_OSA_Jupyter.py
gregmoille/InstrumentControl
4cc8477e36f7c4ad4bf4f54036fdd8dd985b4133
[ "MIT" ]
3
2018-05-02T20:14:15.000Z
2020-10-18T03:57:09.000Z
pyOSA/.ipynb_checkpoints/_OSA_Jupyter-checkpoint.py
gregmoille/InstrumentControl
4cc8477e36f7c4ad4bf4f54036fdd8dd985b4133
[ "MIT" ]
1
2019-05-23T15:21:08.000Z
2019-05-23T15:21:08.000Z
pyOSA/.ipynb_checkpoints/_OSA_Jupyter-checkpoint.py
gregmoille/InstrumentControl
4cc8477e36f7c4ad4bf4f54036fdd8dd985b4133
[ "MIT" ]
2
2019-05-16T20:36:25.000Z
2020-09-22T18:26:49.000Z
import numpy as np import threading import os import plotly.graph_objects as go import pandas as pd import sys import re from scipy import constants as cts from IPython.display import display, HTML import time work_dir = os.path.join(os.path.dirname(__file__), '../') work_dir = os.path.abspath(work_dir) path = os.path...
35.745527
136
0.469689
5eafe280d36c9d0913ae120c305742245a644cb5
5,036
py
Python
tests/timelog.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
2
2015-04-03T14:15:48.000Z
2019-08-06T07:09:58.000Z
tests/timelog.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
null
null
null
tests/timelog.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
1
2022-01-11T13:02:46.000Z
2022-01-11T13:02:46.000Z
import time import profile from vclib.ccvs import rcsparse import viewvc try: import tparse except ImportError: tparse = None
27.977778
77
0.616958
5eb100dbb0d696d5a60712b084844f646f003f84
1,206
py
Python
mysite/ct/migrations/0016_auto_20150626_0301.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
8
2015-06-02T15:34:44.000Z
2019-03-21T12:27:30.000Z
mysite/ct/migrations/0016_auto_20150626_0301.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
761
2015-01-07T05:13:08.000Z
2022-02-10T10:23:37.000Z
mysite/ct/migrations/0016_auto_20150626_0301.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
12
2015-01-28T20:09:36.000Z
2018-03-20T13:32:11.000Z
from django.db import models, migrations
40.2
521
0.584577
5eb103b20a3f39de88460c4a6decebedc719548b
51
py
Python
src/pipeline/__init__.py
euranova/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
6
2021-09-17T02:09:29.000Z
2022-03-20T04:15:15.000Z
src/pipeline/__init__.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
null
null
null
src/pipeline/__init__.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
4
2021-06-29T22:57:18.000Z
2022-03-09T09:19:17.000Z
""" Contains the pipeline used to test models. """
25.5
50
0.686275
5eb119a3037c25e9d68b817c1a432c5bb93a20a4
1,954
py
Python
import_result.py
IsobelMarguarethe/Bilby-GWTC-1-Analysis-and-Verification
8829096f69f2dcd9ccd628e018c855179ecf0b49
[ "MIT" ]
6
2020-05-13T02:00:41.000Z
2021-03-06T09:30:38.000Z
import_result.py
IsobelMarguarethe/Bilby-GWTC-1-Analysis-and-Verification
8829096f69f2dcd9ccd628e018c855179ecf0b49
[ "MIT" ]
null
null
null
import_result.py
IsobelMarguarethe/Bilby-GWTC-1-Analysis-and-Verification
8829096f69f2dcd9ccd628e018c855179ecf0b49
[ "MIT" ]
4
2020-05-13T02:06:48.000Z
2022-02-03T00:42:18.000Z
#!/usr/bin/env python """ Script to convert a result into the standard format of this directory """ import argparse import bilby import numpy as np # Set a random seed so the resampling is reproducible np.random.seed(1234) parser = argparse.ArgumentParser() parser.add_argument('result', help="The result file to imp...
36.867925
77
0.707779
5eb3c2e37e129386b93102ad60b647ab6808cb94
18,653
py
Python
bauer_bsm/bsm/client.py
alkradhazar/test1
addb391d9e8bac8a7d8ed8a5310fb695ce15eaf6
[ "Apache-2.0" ]
7
2020-07-07T07:43:41.000Z
2022-01-21T22:31:33.000Z
bauer_bsm/bsm/client.py
alkradhazar/test1
addb391d9e8bac8a7d8ed8a5310fb695ce15eaf6
[ "Apache-2.0" ]
2
2021-02-28T22:06:54.000Z
2021-09-29T09:47:45.000Z
bauer_bsm/bsm/client.py
alkradhazar/test1
addb391d9e8bac8a7d8ed8a5310fb695ce15eaf6
[ "Apache-2.0" ]
2
2021-09-24T03:49:19.000Z
2022-03-02T12:53:00.000Z
# BSM Python library and command line tool # # Copyright (C) 2020 chargeIT mobility GmbH # # SPDX-License-Identifier: Apache-2.0 from . import config from . import md from . import util as butil from ..crypto import util as cutil from ..sunspec.core import client as sclient from ..sunspec.core import suns from ..suns...
34.800373
134
0.633785
5eb3c974fa92731f0fdca10f3d676b0f6e0ffd2f
5,664
py
Python
users/models.py
pnwclw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
1
2020-07-18T11:20:29.000Z
2020-07-18T11:20:29.000Z
users/models.py
panwaclaw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
8
2020-05-24T14:08:12.000Z
2021-09-08T02:03:52.000Z
users/models.py
pnwclw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
1
2020-05-24T12:24:40.000Z
2020-05-24T12:24:40.000Z
from django.contrib.auth.models import AbstractUser from django.db import models from django.utils import timezone from django.utils.translation import ugettext as _ from simple_history.models import HistoricalRecords from phonenumber_field.modelfields import PhoneNumberField from internals.models import School, Univ...
38.27027
159
0.69827
5eb46db6b4f0d64982209cc3ae42fc847fe7c287
84
py
Python
google_play_scraper/constants/google_play.py
mrommel/google-play-scraper
3bfcef87bc754192162841bc057919762b8bf548
[ "MIT" ]
null
null
null
google_play_scraper/constants/google_play.py
mrommel/google-play-scraper
3bfcef87bc754192162841bc057919762b8bf548
[ "MIT" ]
null
null
null
google_play_scraper/constants/google_play.py
mrommel/google-play-scraper
3bfcef87bc754192162841bc057919762b8bf548
[ "MIT" ]
null
null
null
from enum import Enum
12
22
0.654762
5eb4a2f00f9d8a891e52f77fa6e0a7cf21d67a41
1,282
py
Python
pystruct/utils/graph.py
dugu9sword/pystruct
07c1e02c62d138f79c2114b8c14ca7e2b65540b4
[ "BSD-2-Clause" ]
null
null
null
pystruct/utils/graph.py
dugu9sword/pystruct
07c1e02c62d138f79c2114b8c14ca7e2b65540b4
[ "BSD-2-Clause" ]
null
null
null
pystruct/utils/graph.py
dugu9sword/pystruct
07c1e02c62d138f79c2114b8c14ca7e2b65540b4
[ "BSD-2-Clause" ]
null
null
null
import numpy as np def generate_binary_edges(length, window): """ [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (0, 2), (1, 3), (2, 4), (3, 5)] """ edges = [] for w in range(1, window + 1): for i in range(length - w): edges.append((i, i + w)) return edges
32.871795
80
0.556942
5eb5c4c0903c665a41afc0516f248dfc593530f7
1,939
py
Python
Muscollo/Tests/plot_inverse_dynamics.py
chrisdembia/opensim-moco
ff67eaeae4d3f1a02d3a0dec78347a70802692d7
[ "Apache-2.0" ]
2
2020-05-16T11:13:13.000Z
2020-11-17T09:20:39.000Z
Muscollo/Tests/plot_inverse_dynamics.py
chrisdembia/opensim-moco
ff67eaeae4d3f1a02d3a0dec78347a70802692d7
[ "Apache-2.0" ]
null
null
null
Muscollo/Tests/plot_inverse_dynamics.py
chrisdembia/opensim-moco
ff67eaeae4d3f1a02d3a0dec78347a70802692d7
[ "Apache-2.0" ]
1
2020-07-23T22:24:26.000Z
2020-07-23T22:24:26.000Z
# -------------------------------------------------------------------------- # # OpenSim Muscollo: plot_inverse_dynamics.py # # -------------------------------------------------------------------------- # # Copyright (c) 2017 Stanford University and the Authors # # ...
49.717949
78
0.489943
5eb5ffe69b5c83729920cda7555dd6bc8ad0aa83
6,485
py
Python
xd/xview3/vessel_length/dataset/__init__.py
smly/xview3-kohei-solution
f6933ff437240c6c07fd61c3bd4290b639d17531
[ "MIT" ]
2
2022-01-14T08:00:34.000Z
2022-01-17T12:42:44.000Z
xd/xview3/vessel_length/dataset/__init__.py
smly/xview3-kohei-solution
f6933ff437240c6c07fd61c3bd4290b639d17531
[ "MIT" ]
null
null
null
xd/xview3/vessel_length/dataset/__init__.py
smly/xview3-kohei-solution
f6933ff437240c6c07fd61c3bd4290b639d17531
[ "MIT" ]
1
2022-01-31T21:25:21.000Z
2022-01-31T21:25:21.000Z
from dataclasses import dataclass from pathlib import Path import cv2 import numpy as np import pandas as pd import torch from omegaconf import DictConfig from torch.utils.data import DataLoader, Dataset from xd.utils.configs import dynamic_load def get_dataloaders(args, conf): ds = XView3VesselLengthDataset(...
33.086735
89
0.59522
5eb6ed393de918f8c3120b183de9a52d1c9d90da
216
py
Python
master/scripts/paths.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
4
2020-12-24T11:51:28.000Z
2022-02-08T09:02:38.000Z
master/scripts/paths.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
1
2021-11-16T02:54:35.000Z
2021-11-16T02:54:35.000Z
master/scripts/paths.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
null
null
null
""" Define the environment paths """ #Path variables TEMPLATE_PATH = "/home/scom/documents/opu_surveillance_system/monitoring/master/" STATIC_PATH = "/home/scom/documents/opu_surveillance_system/monitoring/static/"
27
81
0.805556
5eb703c2f5ca89811146d4e9b20de24a3405a5d5
3,181
py
Python
tests/strategies/test_local_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
tests/strategies/test_local_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
tests/strategies/test_local_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
from flask.globals import request import pytest from flask import Flask from typing import Dict from customs import Customs from customs.exceptions import UnauthorizedException from customs.strategies import LocalStrategy
30.586538
77
0.688463
5eb7f47546bca179adc2ac8b071991f097ead1c9
3,105
py
Python
package/spack-omega-h/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-omega-h/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-omega-h/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
41.959459
78
0.644767
5eb834e28210f09f415768f60fec78d4bb5c4bb0
984
py
Python
core/data.py
mohamadnosratian/Pricer
a19fddc526add55385abd9569c0d3bdbd0cb79c4
[ "MIT" ]
null
null
null
core/data.py
mohamadnosratian/Pricer
a19fddc526add55385abd9569c0d3bdbd0cb79c4
[ "MIT" ]
1
2020-11-29T15:26:47.000Z
2020-11-29T15:26:47.000Z
core/data.py
mohamadnosratian/Pricer
a19fddc526add55385abd9569c0d3bdbd0cb79c4
[ "MIT" ]
null
null
null
import TmConv import time
24.6
88
0.505081
5eb8db949bc6779860bde61b3f9a676998243338
8,002
py
Python
src/sage/categories/super_modules.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/categories/super_modules.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/categories/super_modules.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
r""" Super modules """ #***************************************************************************** # Copyright (C) 2015 Travis Scrimshaw <tscrim at ucdavis.edu> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ #*********************************...
35.40708
93
0.567733
5eb917289cf2645c455634d8b05490fcdaf7e3cd
2,616
py
Python
emissor/processing/api.py
cltl/GMRCAnnotation
cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839
[ "MIT" ]
null
null
null
emissor/processing/api.py
cltl/GMRCAnnotation
cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839
[ "MIT" ]
18
2021-01-12T15:18:07.000Z
2021-03-23T12:30:57.000Z
emissor/processing/api.py
cltl/EMISSOR
68504c859c36b1b65b2c0002d065028b3d5b5d08
[ "MIT" ]
null
null
null
from abc import ABC from typing import Iterable, Any, Tuple, Mapping from emissor.persistence import ScenarioStorage from emissor.persistence.persistence import ScenarioController from emissor.representation.scenario import Signal, Modality def __exit__(self, exc_type, exc_val, exc_tb): pass def sc...
24.679245
106
0.675076
5eb921e1f305cdd4c49679c44d5fbbbb4958bfcf
336
py
Python
pseudocode/scratch_code.py
AndrewBeers/DifferentialPrivacy_For_Quotes
db63d9b9d533f37b9f2c546ffef1d4dd883cd3cb
[ "MIT" ]
null
null
null
pseudocode/scratch_code.py
AndrewBeers/DifferentialPrivacy_For_Quotes
db63d9b9d533f37b9f2c546ffef1d4dd883cd3cb
[ "MIT" ]
2
2021-09-08T01:38:38.000Z
2022-01-13T02:11:04.000Z
pseudocode/scratch_code.py
AndrewBeers/DifferentialPrivacy_For_Quotes
db63d9b9d533f37b9f2c546ffef1d4dd883cd3cb
[ "MIT" ]
null
null
null
from colour import Color from pprint import pprint if __name__ == '__main__': test_function()
16
42
0.627976
5eb9b284f901406c6cbd4aa345e318f7d639ee36
2,779
py
Python
src/ros_libav/common.py
ORANKWON/ros_libav
d8d1417d0dd422db717de593718df240316b77ed
[ "MIT" ]
null
null
null
src/ros_libav/common.py
ORANKWON/ros_libav
d8d1417d0dd422db717de593718df240316b77ed
[ "MIT" ]
null
null
null
src/ros_libav/common.py
ORANKWON/ros_libav
d8d1417d0dd422db717de593718df240316b77ed
[ "MIT" ]
1
2019-03-02T04:41:36.000Z
2019-03-02T04:41:36.000Z
# @Author: Jose Rojas # @Date: 2018-07-10T08:20:17-07:00 # @Email: jrojas@redlinesolutions.co # @Project: ros-libav-node # @Last modified by: jrojas # @Last modified time: 2018-07-13T17:26:29-07:00 # @License: MIT License # @Copyright: Copyright @ 2018, Jose Rojas import rospy import av import av.filter
28.357143
88
0.570349
5eba6763e45275c05c6ea71d177bcb0b20fdb6c3
266
py
Python
zeri_di_funzioni/stima_ordine.py
Ro0t-set/metodi-numerici
d586bce78f94f1aa6736218c9123064a57cb87ec
[ "MIT" ]
5
2021-05-21T12:22:18.000Z
2021-07-02T16:48:32.000Z
zeri_di_funzioni/stima_ordine.py
AlePioggia/metodi-numerici
a231f4a857074d811eb230b1114545f05fabe65f
[ "MIT" ]
null
null
null
zeri_di_funzioni/stima_ordine.py
AlePioggia/metodi-numerici
a231f4a857074d811eb230b1114545f05fabe65f
[ "MIT" ]
2
2021-06-22T10:20:58.000Z
2021-07-02T19:58:24.000Z
# -*- coding: utf-8 -*- """ Metodo per la stima dell'ordine """ import numpy as np
33.25
118
0.62406
5eba75a29b860145b0023e5e394f13be95f75dca
539
py
Python
src/game_objects/projectiles/projectile.py
ozcer/Project-Ooze
28eb84995f4fa283366e3f04edb7e393d5281ac5
[ "MIT" ]
1
2018-10-10T02:11:50.000Z
2018-10-10T02:11:50.000Z
src/game_objects/projectiles/projectile.py
ozcer/Project-Ooze
28eb84995f4fa283366e3f04edb7e393d5281ac5
[ "MIT" ]
29
2018-03-16T05:07:18.000Z
2018-04-03T03:58:32.000Z
src/game_objects/projectiles/projectile.py
ozcer/FlaPy-Bird
28eb84995f4fa283366e3f04edb7e393d5281ac5
[ "MIT" ]
1
2018-03-18T00:27:12.000Z
2018-03-18T00:27:12.000Z
import pygame from src.game_objects.dynamic import Dynamic from src.game_objects.foes.foe import Foe
21.56
53
0.612245
5ebac3e5f4a5272b4168613de726fdb25fcb20e1
1,773
py
Python
API/app/getLatLng.py
EdmundoSanchezM/Trobify
08733546737cd8baf2537eb00dcf37b1f6445a8f
[ "MIT" ]
null
null
null
API/app/getLatLng.py
EdmundoSanchezM/Trobify
08733546737cd8baf2537eb00dcf37b1f6445a8f
[ "MIT" ]
null
null
null
API/app/getLatLng.py
EdmundoSanchezM/Trobify
08733546737cd8baf2537eb00dcf37b1f6445a8f
[ "MIT" ]
null
null
null
import requests import urllib.parse from bs4 import BeautifulSoup from geopy.geocoders import Nominatim addr = getAddress ("https://century21mexico.com/propiedad/402980_casa-en-venta-en-bosque-de-echegaray-naucalpan-estado-de-mexico-mexico") print (addr) print (addr[1][0])
30.568966
137
0.598985
5ebb524fc20cdce67043f7ce16122bebdb4e6bf2
390
py
Python
python/echoserver.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
7
2016-01-03T19:42:07.000Z
2018-10-23T14:03:12.000Z
python/echoserver.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
null
null
null
python/echoserver.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
1
2018-03-09T08:52:01.000Z
2018-03-09T08:52:01.000Z
#!/usr/bin/env python import socket import sys if len(sys.argv) == 2: port = int(sys.argv[1]) else: print('Usage: ./echoserver.py <port>') sys.exit(1) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('127.0.0.1', port)) s.listen(1) while 1: client, address = s.accept() data = client...
17.727273
53
0.623077
5ebb91cb5e4e0255ed257a4d8c5da3f46959b083
1,416
py
Python
Py Apple Dynamics V7.3 SRC/PA-Dynamics V7.3/PA_ATTITUDE.py
musen142/py-apple-dynamics
95f831ecf9c9167e9709c63deabc989eda6bf669
[ "Apache-2.0" ]
1
2022-01-18T11:47:29.000Z
2022-01-18T11:47:29.000Z
Py Apple Dynamics V7.3 SRC/PA-Dynamics V7.3/PA_ATTITUDE.py
musen142/py-apple-dynamics
95f831ecf9c9167e9709c63deabc989eda6bf669
[ "Apache-2.0" ]
null
null
null
Py Apple Dynamics V7.3 SRC/PA-Dynamics V7.3/PA_ATTITUDE.py
musen142/py-apple-dynamics
95f831ecf9c9167e9709c63deabc989eda6bf669
[ "Apache-2.0" ]
null
null
null
from math import sin,cos,pi
32.930233
109
0.47952
5ebc7941277bb454426f173139c1ec78075f5c4f
7,477
py
Python
src/tau_clients/parsers.py
vmware-samples/tau-clients
d7d07885dec9a1e44a5acf76ee62a33064629ab0
[ "BSD-2-Clause" ]
2
2021-07-27T12:02:28.000Z
2021-12-30T13:47:23.000Z
src/tau_clients/parsers.py
vmware-samples/tau-clients
d7d07885dec9a1e44a5acf76ee62a33064629ab0
[ "BSD-2-Clause" ]
4
2021-07-27T12:03:05.000Z
2022-02-11T13:55:05.000Z
src/tau_clients/parsers.py
vmware-samples/tau-clients
d7d07885dec9a1e44a5acf76ee62a33064629ab0
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2021 VMware, Inc. # SPDX-License-Identifier: BSD-2 import ipaddress from typing import Any from typing import Dict from typing import Optional from urllib import parse import tau_clients try: import pymisp except ImportError: raise ImportError("This module requires 'pymisp' to be installed.") from...
41.77095
97
0.57269
5ebca2415c32be73b3b846d60b82069b036022ff
12,398
py
Python
HSI_Data_Preparation.py
fjpsxh/CNN_HSIC_MRF
83f3202b512e3cdee1d0555593a55c6d0d6aa4fb
[ "MIT" ]
56
2017-05-07T18:08:35.000Z
2021-08-31T08:57:56.000Z
HSI_Data_Preparation.py
zoeyingz/CNN_HSIC_MRF
83f3202b512e3cdee1d0555593a55c6d0d6aa4fb
[ "MIT" ]
2
2018-05-25T11:14:47.000Z
2018-06-14T06:12:27.000Z
HSI_Data_Preparation.py
zoeyingz/CNN_HSIC_MRF
83f3202b512e3cdee1d0555593a55c6d0d6aa4fb
[ "MIT" ]
22
2017-10-25T02:32:20.000Z
2021-08-31T08:58:01.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 18 16:21:13 2017 @author: Xiangyong Cao This code is modified based on https://github.com/KGPML/Hyperspectral """ import scipy.io import numpy as np from random import shuffle import random import scipy.ndimage from skimage.util import pad import os import time import pan...
40.917492
118
0.660106
5ebd6ec4df2b4d6b96a69a2fe794a4cefe53fc90
1,253
py
Python
fedml_api/model/linear/har/encoders.py
ziqi-zhang/FedML
83cfc1245609c50f21d13be5f180f67576c57735
[ "Apache-2.0" ]
null
null
null
fedml_api/model/linear/har/encoders.py
ziqi-zhang/FedML
83cfc1245609c50f21d13be5f180f67576c57735
[ "Apache-2.0" ]
null
null
null
fedml_api/model/linear/har/encoders.py
ziqi-zhang/FedML
83cfc1245609c50f21d13be5f180f67576c57735
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from pdb import set_trace as st
26.659574
72
0.584198
5ebf381a379c6a121f8f5413969634f97d6a2668
263
py
Python
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
from .regra import Regra
23.909091
77
0.65019
5ebfcba39af614fbdd7ab0a691121807d8fb70ac
4,075
py
Python
src/python/pants/backend/core/tasks/scm_publish.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
11
2015-01-20T01:39:41.000Z
2019-08-08T07:27:44.000Z
src/python/pants/backend/core/tasks/scm_publish.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
1
2016-03-15T20:35:18.000Z
2016-03-15T20:35:18.000Z
src/python/pants/backend/core/tasks/scm_publish.py
fakeNetflix/square-repo-pants
28a018c7f47900aec4f576c81a52e0e4b41d9fec
[ "Apache-2.0" ]
5
2015-03-30T02:46:53.000Z
2018-03-08T20:10:43.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals) from abc import abst...
29.316547
99
0.659387
5ec056e8a3fe7a1dd0d7eedbbca11575fb19f604
122
py
Python
abc/abc204/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc204/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc204/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) A = list(map(int, input().split())) ans = 0 for a in A: if a > 10: ans += a - 10 print(ans)
13.555556
35
0.491803
5ec20deb24c94cf9ee316404a6b77dc4dd8b8ff6
842
py
Python
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
from django.db import models
24.764706
62
0.627078
5ec2acbce4a69ac08d74be58cb9979e47b281c7d
412
py
Python
pytalk/obsolete/message.py
henryz2004/pytalk
76d84985ddb1e049cc4db2d5d11b52c49927164e
[ "MIT" ]
3
2018-02-27T00:47:38.000Z
2021-06-04T20:50:13.000Z
pytalk/obsolete/message.py
henryz2004/pytalk
76d84985ddb1e049cc4db2d5d11b52c49927164e
[ "MIT" ]
null
null
null
pytalk/obsolete/message.py
henryz2004/pytalk
76d84985ddb1e049cc4db2d5d11b52c49927164e
[ "MIT" ]
null
null
null
from pynet import socket_utility
22.888889
97
0.650485
5ec47955f1ecf4b81bd290a76d77ba6d233be01c
1,181
py
Python
backend/keplerapi/api/migrations/0010_auto_20200627_2003.py
ADSPI/kepler
db45471e3428eea93579e48f130f255a1f5974c4
[ "MIT" ]
2
2020-02-16T15:23:21.000Z
2020-03-07T12:39:56.000Z
backend/keplerapi/api/migrations/0010_auto_20200627_2003.py
creativepisystem/kepler
307708666a1913fbb369a57b5fca04b20209929d
[ "MIT" ]
null
null
null
backend/keplerapi/api/migrations/0010_auto_20200627_2003.py
creativepisystem/kepler
307708666a1913fbb369a57b5fca04b20209929d
[ "MIT" ]
1
2020-05-13T00:07:18.000Z
2020-05-13T00:07:18.000Z
# Generated by Django 3.0.3 on 2020-06-27 20:03 from django.db import migrations, models
28.804878
132
0.54022
5ec50ef5996e125d5eaf7ab56c50549bb75fe8e9
1,184
py
Python
Scripts/ReverseSearch/social_media.py
balswyan/senior-capstone-fall-2018
8740614f0db917bfdc5131095fe566a92b806e73
[ "MIT" ]
1
2020-03-03T01:01:41.000Z
2020-03-03T01:01:41.000Z
Scripts/ReverseSearch/social_media.py
balswyan/senior-capstone-fall-2018
8740614f0db917bfdc5131095fe566a92b806e73
[ "MIT" ]
null
null
null
Scripts/ReverseSearch/social_media.py
balswyan/senior-capstone-fall-2018
8740614f0db917bfdc5131095fe566a92b806e73
[ "MIT" ]
null
null
null
import urllib2 from cookielib import CookieJar import os import re import time import json cookies = CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookies)) opener.addheaders = [('User-agent', 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 ' '(KHTML, like...
47.36
145
0.686655
5ec54d097af06658b5b632d52a4f3101a7a15d52
1,939
py
Python
Server.py
ReFormationPro/SPSC
d3be0637a095ddfcfe2d32272b5a6ca962b393da
[ "Apache-2.0" ]
null
null
null
Server.py
ReFormationPro/SPSC
d3be0637a095ddfcfe2d32272b5a6ca962b393da
[ "Apache-2.0" ]
null
null
null
Server.py
ReFormationPro/SPSC
d3be0637a095ddfcfe2d32272b5a6ca962b393da
[ "Apache-2.0" ]
null
null
null
import socket as Socket import threading as Threading from pprint import pprint import Packet main()
23.361446
70
0.639505
5ec5c3c5ad95f9da38c7ad657235db69b5b006c7
354
py
Python
hackerrank/algorithms/general/kangaroo/kangaroo.py
nicklambourne/hackerrank-solutions
9536aa16a67325566e6d3ebea5d5f2c5bf12a05d
[ "MIT" ]
null
null
null
hackerrank/algorithms/general/kangaroo/kangaroo.py
nicklambourne/hackerrank-solutions
9536aa16a67325566e6d3ebea5d5f2c5bf12a05d
[ "MIT" ]
null
null
null
hackerrank/algorithms/general/kangaroo/kangaroo.py
nicklambourne/hackerrank-solutions
9536aa16a67325566e6d3ebea5d5f2c5bf12a05d
[ "MIT" ]
null
null
null
#!/bin/python3 import sys x1, v1, x2, v2 = input().strip().split(' ') x1, v1, x2, v2 = [int(x1), int(v1), int(x2), int(v2)] result = kangaroo(x1, v1, x2, v2) print(result)
22.125
56
0.519774
5ec62c30a034128c3c15a108e434ab6f4d99a322
216
py
Python
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
22
2016-09-01T08:27:07.000Z
2021-01-11T13:32:59.000Z
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
null
null
null
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
20
2015-11-07T19:09:48.000Z
2018-05-02T03:10:41.000Z
#!/usr/bin/env python # encoding: utf-8
21.6
88
0.736111
5ec64e7203ff5e47285eff2de68b2cba358d3dc6
116
py
Python
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
2
2021-08-31T09:06:05.000Z
2021-12-03T12:26:49.000Z
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
null
null
null
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
1
2021-12-03T12:26:50.000Z
2021-12-03T12:26:50.000Z
import coinonepy btc = coinonepy.get_current_price("btc") btc_last_price = float(btc['last']) print(btc_last_price)
23.2
40
0.793103
5ec664692a8004415ba033ef9d8d62ed175a5bc8
2,115
py
Python
tests/techniques/test_train_policy_gradient.py
alphagamatoe/AlphaToe
a7cd0969aa46dfd151a22ed8b9aec1a894747b17
[ "MIT" ]
172
2016-09-27T12:23:10.000Z
2022-01-19T09:52:11.000Z
tests/techniques/test_train_policy_gradient.py
afcarl/AlphaToe
1220f4f883dbbd7ac1d84092bdaf04ca18a4dbc2
[ "MIT" ]
13
2018-07-19T09:42:28.000Z
2018-09-25T15:08:05.000Z
tests/techniques/test_train_policy_gradient.py
afcarl/AlphaToe
1220f4f883dbbd7ac1d84092bdaf04ca18a4dbc2
[ "MIT" ]
63
2016-09-27T13:00:51.000Z
2021-04-04T04:34:37.000Z
import functools from unittest import TestCase from common.base_game_spec import BaseGameSpec from common.network_helpers import create_network from games.tic_tac_toe import TicTacToeGameSpec from games.tic_tac_toe_x import TicTacToeXGameSpec from techniques.train_policy_gradient import train_policy_gradients
39.90566
106
0.580142
5ec6853372a2b5e21b95ce1c9271c4a2d1694982
2,865
py
Python
paddlespeech/text/speechtask/punctuation_restoration/model/lstm.py
hysunflower/PaddleSpeech
bf393573a4f738b163c672e075999b97f445a39a
[ "Apache-2.0" ]
null
null
null
paddlespeech/text/speechtask/punctuation_restoration/model/lstm.py
hysunflower/PaddleSpeech
bf393573a4f738b163c672e075999b97f445a39a
[ "Apache-2.0" ]
null
null
null
paddlespeech/text/speechtask/punctuation_restoration/model/lstm.py
hysunflower/PaddleSpeech
bf393573a4f738b163c672e075999b97f445a39a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.313953
74
0.613962
5ec76f7b2d8bd24f38f18fcf89397e41c3adc670
3,448
py
Python
sdk/python/core/tests/test_sanity_augmentation.py
YDK-Solutions/ydk
7ab961284cdc82de8828e53fa4870d3204d7730e
[ "ECL-2.0", "Apache-2.0" ]
125
2016-03-15T17:04:13.000Z
2022-03-22T02:46:17.000Z
sdk/python/core/tests/test_sanity_augmentation.py
YDK-Solutions/ydk
7ab961284cdc82de8828e53fa4870d3204d7730e
[ "ECL-2.0", "Apache-2.0" ]
818
2016-03-17T17:06:00.000Z
2022-03-28T03:56:17.000Z
sdk/python/core/tests/test_sanity_augmentation.py
YDK-Solutions/ydk
7ab961284cdc82de8828e53fa4870d3204d7730e
[ "ECL-2.0", "Apache-2.0" ]
93
2016-03-15T19:18:55.000Z
2022-02-24T13:55:07.000Z
# ---------------------------------------------------------------- # Copyright 2016 Cisco Systems # # 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/LICENS...
34.138614
77
0.674304
5eca0176387a7151273d1f8238c5afd0d8ffbd54
36,675
py
Python
src/telem.py
swharden/Telem-A-Gator
e2fcca77e9ae68ec5d002409e3d46c67ddc8ebb8
[ "MIT" ]
null
null
null
src/telem.py
swharden/Telem-A-Gator
e2fcca77e9ae68ec5d002409e3d46c67ddc8ebb8
[ "MIT" ]
null
null
null
src/telem.py
swharden/Telem-A-Gator
e2fcca77e9ae68ec5d002409e3d46c67ddc8ebb8
[ "MIT" ]
1
2019-06-18T13:58:19.000Z
2019-06-18T13:58:19.000Z
import time import os import glob import datetime import numpy import threading import subprocess #import scipy.stats from PyQt4 import QtCore, QtGui import matplotlib matplotlib.use('TkAgg') matplotlib.rcParams['backend'] = 'TkAgg' import pylab def com2lst(s): """separate CSVs to a list, returning [s] ...
37.309257
187
0.531425
5eca186387175ce199864fab1e34908e3cd7c9c5
2,000
py
Python
Gathered CTF writeups/2019-10-12-hitcon/lost_key/modulus.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/2019-10-12-hitcon/lost_key/modulus.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/2019-10-12-hitcon/lost_key/modulus.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
import random from crypto_commons.generic import bytes_to_long, multiply, factor, long_to_bytes from crypto_commons.netcat.netcat_commons import nc, receive_until_match, receive_until, send from crypto_commons.rsa.rsa_commons import gcd_multi main() # sanity()
23.255814
93
0.557
5eca3822d3d88e640f8cd392a9134c9bdd311c55
1,458
py
Python
pincer/middleware/ready.py
shivamdurgbuns/Pincer
aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3
[ "MIT" ]
null
null
null
pincer/middleware/ready.py
shivamdurgbuns/Pincer
aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3
[ "MIT" ]
null
null
null
pincer/middleware/ready.py
shivamdurgbuns/Pincer
aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3
[ "MIT" ]
null
null
null
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. """ non-subscription event sent immediately after connecting, contains server information """ from __future__ import annotations from typing import TYPE_CHECKING from ..commands import ChatCommandHandler from ..exceptio...
24.711864
70
0.682442
5ecb8246d4044f46b66c6135aafacc666491da6d
327
py
Python
1177.py
oliveiraeverton/uri
91e87dd1c9d18facd0b276d73caf53ed41d8eaea
[ "MIT" ]
null
null
null
1177.py
oliveiraeverton/uri
91e87dd1c9d18facd0b276d73caf53ed41d8eaea
[ "MIT" ]
null
null
null
1177.py
oliveiraeverton/uri
91e87dd1c9d18facd0b276d73caf53ed41d8eaea
[ "MIT" ]
null
null
null
vetor = [] entradaUsuario = int(input()) repetir = 1000 indice = 0 adicionar = 0 while(repetir > 0): vetor.append(adicionar) adicionar += 1 if(adicionar == entradaUsuario): adicionar = 0 repetir -= 1 repetir = 1000 while(repetir>0): repetir -= 1 print("N[{}] = {}".format(indice, vetor[indice])) indic...
18.166667
51
0.639144
5ece95cf5808af191aa4776b596abeebfb595d6b
1,620
py
Python
conftest.py
RussellJQA/stg-python-webdriver-cert
73fa7b02f38fe534e074d727f96994a92636ba7b
[ "MIT" ]
4
2021-04-29T22:03:36.000Z
2021-10-20T11:25:55.000Z
conftest.py
RussellJQA/stg-python-webdriver-cert
73fa7b02f38fe534e074d727f96994a92636ba7b
[ "MIT" ]
null
null
null
conftest.py
RussellJQA/stg-python-webdriver-cert
73fa7b02f38fe534e074d727f96994a92636ba7b
[ "MIT" ]
1
2021-05-30T12:56:13.000Z
2021-05-30T12:56:13.000Z
""" This module implements some pytest fixtures for use with Selenium WebDriver. """ import os import time import pytest # pip installed from dotenv import find_dotenv, load_dotenv from selenium.webdriver import Chrome from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.support.wait impor...
31.153846
101
0.758025
5ecf1e2171d2690342787b732c0021b9436bde5e
4,029
py
Python
api/lib/datafetcher/DataFetcher.py
NLeRoy917/indcovid
cbc94ad3e9993364743fae92f553ef2d154bee18
[ "Apache-2.0" ]
null
null
null
api/lib/datafetcher/DataFetcher.py
NLeRoy917/indcovid
cbc94ad3e9993364743fae92f553ef2d154bee18
[ "Apache-2.0" ]
null
null
null
api/lib/datafetcher/DataFetcher.py
NLeRoy917/indcovid
cbc94ad3e9993364743fae92f553ef2d154bee18
[ "Apache-2.0" ]
1
2021-03-24T15:46:19.000Z
2021-03-24T15:46:19.000Z
import requests import time import pandas if __name__ == '__main__': # create datafetcher object fetcher = DataFetcher() # download the excel file to local storage res = fetcher.get_data('covid-19-demographics') with open('covid_19_demographics.xlsx','wb') as xl: xl.write(res.content) ...
34.144068
161
0.602135
5ed167138cffc066c8275849b2ee1e74108aad6f
1,631
py
Python
pybots/src/audio/vario.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
null
null
null
pybots/src/audio/vario.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
null
null
null
pybots/src/audio/vario.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
1
2021-09-24T17:08:30.000Z
2021-09-24T17:08:30.000Z
from audio.sounds import beep import numpy as np import time
26.306452
78
0.521766
5ed2d6e06ea77385ae38bbc942bc6b4df97670f0
1,309
py
Python
design.py
Raj-kar/Shuffle-Game-with-python
1b0a765559850137bc49e503b6a79a03c3e8fb12
[ "MIT" ]
null
null
null
design.py
Raj-kar/Shuffle-Game-with-python
1b0a765559850137bc49e503b6a79a03c3e8fb12
[ "MIT" ]
null
null
null
design.py
Raj-kar/Shuffle-Game-with-python
1b0a765559850137bc49e503b6a79a03c3e8fb12
[ "MIT" ]
null
null
null
from functions import decorate, ascii_text # -> decorate is a function which you find at functions.py file # -> It's just like print function, but it prints statements with different colors !
52.36
129
0.524828
5ed3010660f532f36ff748813256fddc0ccb424a
1,224
py
Python
Supernova/database/pack.py
Feliconut/PurdueCS324-LSST
79273ba0ef8ed9aab9e08c736c22631a8e250f6e
[ "Apache-2.0" ]
null
null
null
Supernova/database/pack.py
Feliconut/PurdueCS324-LSST
79273ba0ef8ed9aab9e08c736c22631a8e250f6e
[ "Apache-2.0" ]
null
null
null
Supernova/database/pack.py
Feliconut/PurdueCS324-LSST
79273ba0ef8ed9aab9e08c736c22631a8e250f6e
[ "Apache-2.0" ]
1
2021-02-24T03:54:33.000Z
2021-02-24T03:54:33.000Z
from shutil import copy, make_archive, rmtree from os import mkdir, remove from os.path import join, exists from .io import DATA_PATH, fetch_locus
38.25
70
0.606209
5ed383700e85d30633a0a565fb47e10ed17d6cee
975
py
Python
utils/keychain.py
remcoroyen/ShallotNetwork
d8f36533d613839f70b8eab30112d85229764af2
[ "MIT" ]
null
null
null
utils/keychain.py
remcoroyen/ShallotNetwork
d8f36533d613839f70b8eab30112d85229764af2
[ "MIT" ]
null
null
null
utils/keychain.py
remcoroyen/ShallotNetwork
d8f36533d613839f70b8eab30112d85229764af2
[ "MIT" ]
null
null
null
from Crypto.Util import number
23.780488
55
0.57641
5ed3c8a738f51e8e4457aa68a1a92a2c4383f96b
731
py
Python
python3/dec-hexIPformatter.py
7RU7H/hacking-scripts
1672db32ab0875b8105c62deaa72b7b756ceac5f
[ "MIT" ]
null
null
null
python3/dec-hexIPformatter.py
7RU7H/hacking-scripts
1672db32ab0875b8105c62deaa72b7b756ceac5f
[ "MIT" ]
null
null
null
python3/dec-hexIPformatter.py
7RU7H/hacking-scripts
1672db32ab0875b8105c62deaa72b7b756ceac5f
[ "MIT" ]
null
null
null
""" You can run this in the following format: For decimal: python3 ip2dh.py D <Ip-address> For Hexadecimal: python3 ip2dh.py H <Ip-address> https://gist.github.com/mzfr """ #!/usr/bin/python3 import sys if len(sys.argv) < 3: print('\nYou must give desired format and IPv4 address as input...') print('e.g.: D 1...
22.151515
72
0.619699
5ed4ceefc3e109900c35d9955460f833cabd84e2
485
py
Python
manage.py
diogenesjusto/flask_leaderboard
86dac90785e01747ffbde99e6ba65cf42e4c016e
[ "MIT" ]
5
2020-06-15T02:56:39.000Z
2021-12-28T19:18:18.000Z
manage.py
diogenesjusto/flask_leaderboard
86dac90785e01747ffbde99e6ba65cf42e4c016e
[ "MIT" ]
2
2019-12-01T15:50:05.000Z
2021-12-17T07:54:23.000Z
manage.py
diogenesjusto/flask_leaderboard
86dac90785e01747ffbde99e6ba65cf42e4c016e
[ "MIT" ]
9
2020-01-19T11:21:33.000Z
2022-02-22T06:28:52.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from config import Config from main import User, Submission app = Flask(__name__) # app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db' app.config.from_object(Conf...
22.045455
60
0.77732
5ed5c293015f6fb8f00d8af0364b706eaa0ed94e
3,176
py
Python
settings.py
brandonivey/alertas
b4bc9adad1ea01a7f15c3867ef9da00197e33301
[ "BSD-3-Clause" ]
null
null
null
settings.py
brandonivey/alertas
b4bc9adad1ea01a7f15c3867ef9da00197e33301
[ "BSD-3-Clause" ]
null
null
null
settings.py
brandonivey/alertas
b4bc9adad1ea01a7f15c3867ef9da00197e33301
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ eve-app settings """ # Use the MongoHQ sandbox as our backend. MONGO_HOST = 'localhost' MONGO_PORT = 27017 MONGO_USERNAME = '' MONGO_PASSWORD = '' MONGO_DBNAME = 'notifications' # also, correctly set the API entry point # SERVER_NAME = 'localhost' # Enable reads (GET), inserts (POS...
28.872727
153
0.560139
5ed705bdaa66e16d951b96579ba77a4976ae6a2d
66
py
Python
pygame_ui/__init__.py
oof6969696969/pygame_ui
ca59652f30718dd8c578d994239d3a2d7aadae9c
[ "MIT" ]
null
null
null
pygame_ui/__init__.py
oof6969696969/pygame_ui
ca59652f30718dd8c578d994239d3a2d7aadae9c
[ "MIT" ]
null
null
null
pygame_ui/__init__.py
oof6969696969/pygame_ui
ca59652f30718dd8c578d994239d3a2d7aadae9c
[ "MIT" ]
null
null
null
from lib.pygame_ui import UIManager, Widgets, Shapes, load_theme
33
65
0.818182
5ed74807e632739391f37e5ba60bcdb485e2cdb5
2,884
py
Python
test/test_Motion/test_ForceMomentSystem.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
15
2020-09-11T19:25:07.000Z
2022-03-12T16:34:53.000Z
test/test_Motion/test_ForceMomentSystem.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
null
null
null
test/test_Motion/test_ForceMomentSystem.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
3
2021-12-24T19:39:53.000Z
2022-03-29T01:06:28.000Z
#Created by: Declan Quinn #May 2019 #To run tests: #In this file: [test_StandardAtmosphere.py] #In all files in the current directory: [python -m unittest discover] #Add [-v] for verbose output (displays names of all test functions) import unittest from MAPLEAF.Motion import ForceMomentSystem from MAPLEAF.Motion imp...
43.69697
153
0.694521
5ed76a1d4a9d801f30aced725248325dce473b59
2,349
py
Python
rebench/environment.py
tobega/ReBench
123a9187f74d32f93b823dd0c354244aecd7437e
[ "MIT" ]
null
null
null
rebench/environment.py
tobega/ReBench
123a9187f74d32f93b823dd0c354244aecd7437e
[ "MIT" ]
null
null
null
rebench/environment.py
tobega/ReBench
123a9187f74d32f93b823dd0c354244aecd7437e
[ "MIT" ]
null
null
null
import getpass import os import subprocess from cpuinfo import get_cpu_info from psutil import virtual_memory try: from urllib.parse import urlparse except ImportError: # Python 2.7 from urlparse import urlparse
32.178082
83
0.611324
5ed81a7d9ae972c6969d8b4ad2ed74cbe180da8e
1,138
py
Python
pipupgrade/cli/__init__.py
codingCoffee/pipupgrade
cdb2921fbe294afe9da5caf7cf07c222a3780acb
[ "MIT" ]
null
null
null
pipupgrade/cli/__init__.py
codingCoffee/pipupgrade
cdb2921fbe294afe9da5caf7cf07c222a3780acb
[ "MIT" ]
null
null
null
pipupgrade/cli/__init__.py
codingCoffee/pipupgrade
cdb2921fbe294afe9da5caf7cf07c222a3780acb
[ "MIT" ]
null
null
null
# imports - compatibility imports from __future__ import print_function from pipupgrade._compat import input # imports - standard imports import inspect # imports - module imports from pipupgrade.cli.parser import get_parsed_args from pipupgrade.util import get_if_empty, merge_dict _ACCEPTABLE_YES = ("", "y", ...
22.76
58
0.640598
0d5987b219b64d6b388ff98a861c6bc4ea2a00e4
321
py
Python
csv_to_table/urls.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
csv_to_table/urls.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
csv_to_table/urls.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
from . import views from django.contrib.auth import views as auth_views from django.urls import path urlpatterns = [ #Kari CSV_TO_TABLE Commit path('csv_upload/', views.csv_table, name='csv_table'), path('today/', views.today_table, name='today_table'), path('search/', views.search, name='search'), ...
26.75
59
0.71028
0d5a30331837c0027e55c2d8e2c93ae9b5c82120
810
py
Python
tests/test_data_utils.py
claydodo/lineout
f3de9ac40c62c8231a63dbf64d91aa2aa299f9c6
[ "Unlicense" ]
null
null
null
tests/test_data_utils.py
claydodo/lineout
f3de9ac40c62c8231a63dbf64d91aa2aa299f9c6
[ "Unlicense" ]
null
null
null
tests/test_data_utils.py
claydodo/lineout
f3de9ac40c62c8231a63dbf64d91aa2aa299f9c6
[ "Unlicense" ]
null
null
null
from unittest import TestCase from src.lineout.data import *
27.931034
71
0.57037
0d5ad59ba224418983bf8048ad6cf393b546dc31
738
py
Python
tests/core/sdo/tests.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
3
2017-01-26T01:37:42.000Z
2018-07-22T02:42:52.000Z
tests/core/sdo/tests.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
1
2017-07-07T18:02:20.000Z
2017-07-07T18:02:20.000Z
tests/core/sdo/tests.py
aceofwings/Evt-Gateway
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
null
null
null
# import unittest # import os # from gateway.can.sdo.message import SdoMessage # from gateway.can.sdo.message import CommandByte # class TestSdoMessage(unittest.TestCase): # def setUp(self): # self.sdoMessage = SdoMessage.getMessege(0x1018,0x01,0x00) # self.anotherMessage = SdoMessage.getMessege(0x2...
35.142857
77
0.650407
0d5bea25696485b9e77b020b40679ffea0d8c825
6,295
py
Python
app/views/v2/scan_results.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
1
2021-03-13T09:46:46.000Z
2021-03-13T09:46:46.000Z
app/views/v2/scan_results.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
14
2020-09-20T10:00:24.000Z
2021-07-10T14:28:54.000Z
app/views/v2/scan_results.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
2
2021-01-17T20:24:45.000Z
2021-01-24T12:03:51.000Z
from typing import List import app.views.v1.misc import app.db_models as db_models from . import bp from flask import request, jsonify from loguru import logger import flask_jwt_extended import app.db_schemas as db_schemas import app.utils.authentication_utils as authentication_utils import app.actions as actions ...
38.384146
147
0.727244
0d5bf4fc7b9f858d534dd913cfd8d7635732cd1a
3,305
py
Python
gameOfLife.py
andrewKv/pythonGraphicsPrograms
a24b3e56e729820f191fed58c2a01aa9b947a7b6
[ "MIT" ]
null
null
null
gameOfLife.py
andrewKv/pythonGraphicsPrograms
a24b3e56e729820f191fed58c2a01aa9b947a7b6
[ "MIT" ]
null
null
null
gameOfLife.py
andrewKv/pythonGraphicsPrograms
a24b3e56e729820f191fed58c2a01aa9b947a7b6
[ "MIT" ]
null
null
null
from Graphics import * CELL_SIZE = 20 ROWS, COLUMNS = 40, 40 main()
29.508929
111
0.500454
0d5c7cacb296792d24de984ae8cecf8793347e8c
679
py
Python
projecteuler/projectEuler69.py
qingfengxia/python-projecteuler
a2cba042fe7256364f6a5fa55df805a87da9a301
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
projecteuler/projectEuler69.py
qingfengxia/python-projecteuler
a2cba042fe7256364f6a5fa55df805a87da9a301
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
projecteuler/projectEuler69.py
qingfengxia/python-projecteuler
a2cba042fe7256364f6a5fa55df805a87da9a301
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, absolute_import, division """ Find the value of n 1,000,000 for which n/(n) is a maximum. """ from factorization import primefactorize, totient def problem69(): """ in fact, it can be solved by print 2*3*5*7*11*13*17=5...
25.148148
103
0.569956
0d5d262e5b19e0ba4bdabadc738b737c68da0c82
5,018
py
Python
games/pathfinder.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
games/pathfinder.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
games/pathfinder.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import collections import heapq
27.571429
74
0.567955
0d5d3731a59994ba117b8a32c3775bfdf7b49b71
1,259
py
Python
7. Trees/binary_euler_tour.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
7. Trees/binary_euler_tour.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
7. Trees/binary_euler_tour.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
# Binary Euler Tour # A Binary Euler Tour base class providing a specialized tour for binary tree. from eulerTour import EulerTour
41.966667
164
0.625894
0d5d6ad9d06bd923dd1bb90a10f3405d61fda119
200
py
Python
wallet/admin.py
curanetwork/curwallet
fef5896a6d4b9f99c03d71ab0385655cdadf9a6e
[ "MIT" ]
5
2018-11-26T16:35:40.000Z
2019-01-14T02:35:47.000Z
wallet/admin.py
curanetwork/curwallet
fef5896a6d4b9f99c03d71ab0385655cdadf9a6e
[ "MIT" ]
null
null
null
wallet/admin.py
curanetwork/curwallet
fef5896a6d4b9f99c03d71ab0385655cdadf9a6e
[ "MIT" ]
null
null
null
from django.contrib import admin from base.conf import settings admin.site.site_title = f'{settings.ICO_TOKEN_NAME} Wallet' admin.site.site_header = f'{settings.ICO_TOKEN_NAME} Wallet Administration'
40
75
0.825
0d5d8e4687fb579fa2049d6dbbb448c87e9ea36b
462
py
Python
shoppinglist/models.py
christiankuhl/foodplanner
20c4a577849bf0ba9304f82f43c307552e846bf2
[ "MIT" ]
null
null
null
shoppinglist/models.py
christiankuhl/foodplanner
20c4a577849bf0ba9304f82f43c307552e846bf2
[ "MIT" ]
null
null
null
shoppinglist/models.py
christiankuhl/foodplanner
20c4a577849bf0ba9304f82f43c307552e846bf2
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
38.5
62
0.714286
0d5dc684691063784e6ac984f160e9b545454def
4,565
py
Python
ppr-api/tests/unit/models/test_utils.py
pwei1018/ppr
1fdd2f1ad33217045404d7b872d9fad41a4c7da6
[ "Apache-2.0" ]
null
null
null
ppr-api/tests/unit/models/test_utils.py
pwei1018/ppr
1fdd2f1ad33217045404d7b872d9fad41a4c7da6
[ "Apache-2.0" ]
null
null
null
ppr-api/tests/unit/models/test_utils.py
pwei1018/ppr
1fdd2f1ad33217045404d7b872d9fad41a4c7da6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Province of British Columbia # # 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 agre...
40.758929
118
0.718072
0d5ddf3b2dc2c5628ef140f9b8e0527e81268a19
4,292
py
Python
code.py
ChampLucky/olympic-hero
da8c92f87e9c4c9aabc4246e2e6eab5124c2517d
[ "MIT" ]
null
null
null
code.py
ChampLucky/olympic-hero
da8c92f87e9c4c9aabc4246e2e6eab5124c2517d
[ "MIT" ]
null
null
null
code.py
ChampLucky/olympic-hero
da8c92f87e9c4c9aabc4246e2e6eab5124c2517d
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #Path of the file data=pd.read_csv(path) data=data.rename(columns={"Total":"Total_Medals"}) data.head(10) ...
26.658385
753
0.602982
0d5dfe3070bc1579ce7d09d768db26619dbfc6ac
704
py
Python
atester/tester.py
guchengxi1994/easy-api-tester
c77e4b599d3ff4ac44966b3cae34ad551b648b03
[ "MIT" ]
2
2021-08-04T00:35:16.000Z
2021-12-16T09:23:56.000Z
atester/tester.py
guchengxi1994/easy-api-tester
c77e4b599d3ff4ac44966b3cae34ad551b648b03
[ "MIT" ]
null
null
null
atester/tester.py
guchengxi1994/easy-api-tester
c77e4b599d3ff4ac44966b3cae34ad551b648b03
[ "MIT" ]
null
null
null
import time
24.275862
65
0.454545
0d6071d50184dd01af4d40afcaa5d56fe50daa79
430
py
Python
scripts/A-A/ctsslmate.py
warsocket/recon
4e26086b2c0338db980a0a3e736c499acf51ef15
[ "Apache-2.0" ]
null
null
null
scripts/A-A/ctsslmate.py
warsocket/recon
4e26086b2c0338db980a0a3e736c499acf51ef15
[ "Apache-2.0" ]
null
null
null
scripts/A-A/ctsslmate.py
warsocket/recon
4e26086b2c0338db980a0a3e736c499acf51ef15
[ "Apache-2.0" ]
1
2018-02-23T13:37:59.000Z
2018-02-23T13:37:59.000Z
#!/usr/bin/env python import requests import sys domains = set() for line in sys.stdin: domain = line.strip() certs = requests.get("https://certspotter.com/api/v0/certs?domain=%s" % domain).json() try: for cert in certs: for domain in cert["dns_names"]: domain = domain....
21.5
90
0.574419
0d61278643c82f3a1673a8a1cfd11ed2cb72fea1
9,731
py
Python
omnibot/services/slack/message.py
troybots/omnibot
99f93256154d241a0cd76a514fd8b2a245af3f0f
[ "Apache-2.0" ]
72
2019-11-21T00:02:18.000Z
2022-01-20T02:23:09.000Z
omnibot/services/slack/message.py
troybots/omnibot
99f93256154d241a0cd76a514fd8b2a245af3f0f
[ "Apache-2.0" ]
30
2019-11-22T04:24:57.000Z
2021-09-24T22:50:12.000Z
omnibot/services/slack/message.py
mogofinancial/omnibot
b62ccec1bf77b16a498ce5cd5f16c1812102f75b
[ "Apache-2.0" ]
6
2019-12-26T00:37:41.000Z
2021-04-09T04:21:17.000Z
from omnibot import logging from omnibot.services import stats from omnibot.services import slack from omnibot.services.slack import parser logger = logging.getLogger(__name__) class MessageUnsupportedError(Exception): pass
30.409375
78
0.546193
0d61ee15897bf40f0a5f1b4383621a2d4209c39a
96
py
Python
fixture/_base.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
null
null
null
fixture/_base.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
1
2019-11-26T18:12:24.000Z
2019-11-26T18:12:24.000Z
fixture/_base.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO) log = logging.getLogger("WebTerminal")
16
39
0.802083
0d624fa0f65a72840354630ecb879c8f3430b061
18,980
py
Python
ryu/app/DIjkstra_switch_13.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
1
2019-03-27T10:18:35.000Z
2019-03-27T10:18:35.000Z
ryu/app/DIjkstra_switch_13.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
null
null
null
ryu/app/DIjkstra_switch_13.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (C) 2011 Nippon Telegraph and Telephone Corporation. # # 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 re...
43.53211
134
0.578346
0d6498c824c3657f7aeb953f0131a759eba8a2fa
68
py
Python
cpo_pipeline/typing/__init__.py
DiDigsDNA/cpo-pipeline
4b3236ef4fe37e6efa38554e90f6d289d4f1f801
[ "MIT" ]
null
null
null
cpo_pipeline/typing/__init__.py
DiDigsDNA/cpo-pipeline
4b3236ef4fe37e6efa38554e90f6d289d4f1f801
[ "MIT" ]
31
2018-10-11T17:43:19.000Z
2019-06-14T19:26:26.000Z
cpo_pipeline/typing/__init__.py
DiDigsDNA/cpo-pipeline
4b3236ef4fe37e6efa38554e90f6d289d4f1f801
[ "MIT" ]
3
2018-11-15T18:04:36.000Z
2019-05-02T19:09:39.000Z
""" typing module """ from . import pipeline from . import parsers
9.714286
22
0.691176
0d6637431650b1ab532cc70bbdb8ef04c6200f47
871
py
Python
gmit--exercise03--collatz--code-and-output--20180205d.py
g00364787/52167assessments
65318102196fbbf40b764cd189edc4e31963ecf5
[ "Apache-2.0" ]
null
null
null
gmit--exercise03--collatz--code-and-output--20180205d.py
g00364787/52167assessments
65318102196fbbf40b764cd189edc4e31963ecf5
[ "Apache-2.0" ]
null
null
null
gmit--exercise03--collatz--code-and-output--20180205d.py
g00364787/52167assessments
65318102196fbbf40b764cd189edc4e31963ecf5
[ "Apache-2.0" ]
null
null
null
# AUTHOR = PAUL KEARNEY # DATE = 2018-02-05 # STUDENT ID = G00364787 # EXERCISE 03 # # filename= gmit--exercise03--collatz--20180205d.py # # the Collatz conjecture print("The COLLATZ CONJECTURE") # define the variables num = "" x = 0 # obtain user input num = input("A start nummber: ") x = int(...
12.267606
52
0.543054
0d67fd244c4c3feefcdec78169f64047738ccccd
8,064
py
Python
concon.py
nejucomo/concon
0302475a86d25c53cd6ef50b0e4f6279ea73090d
[ "MIT" ]
null
null
null
concon.py
nejucomo/concon
0302475a86d25c53cd6ef50b0e4f6279ea73090d
[ "MIT" ]
null
null
null
concon.py
nejucomo/concon
0302475a86d25c53cd6ef50b0e4f6279ea73090d
[ "MIT" ]
null
null
null
""" concon (CONstrained CONtainers) provides usefully constrained container subtypes as well as utilities for defining new constrained subtypes and append-only dict modification. There are two flavors of constraints: frozen and appendonly. The former prevents any modification and the latter prevents any modification ...
29.866667
79
0.63182
0d688031a0fe7e0f5d4a206c1ace5f3e35d7e2b5
4,186
py
Python
algorithms/search/tests/student/test_bfs.py
Tebs-Lab/learn-graph-theory
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
[ "Unlicense" ]
9
2019-03-25T14:21:37.000Z
2021-12-06T19:19:49.000Z
algorithms/search/tests/student/test_bfs.py
Tebs-Lab/learn-graph-theory
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
[ "Unlicense" ]
null
null
null
algorithms/search/tests/student/test_bfs.py
Tebs-Lab/learn-graph-theory
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
[ "Unlicense" ]
4
2019-08-02T20:32:00.000Z
2020-10-14T02:19:50.000Z
from graphs.reference_implementation import DirectedGraph, UndirectedGraph from algorithms.search.student_implementation import breadth_first_search def test_no_path_directed(): ''' Test BFS on a simple directed graph that contains a no cycles, and no path to the goal. ''' g = DirectedGraph() g.ad...
25.216867
93
0.543239
0d6919c52d43e980747076e6a6d5776fe0cc110d
13,205
py
Python
levelTcricpr.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
levelTcricpr.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
levelTcricpr.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
import math import dnaplotlib as dpl import matplotlib.pyplot as plt from matplotlib import gridspec from matplotlib.patches import Polygon, Ellipse, Wedge, Circle, PathPatch from matplotlib.path import Path from matplotlib.lines import Line2D from matplotlib.patheffects import Stroke import matplotlib.patches as patch...
38.054755
176
0.66649
0d6993d1de4fca2fe18d6fada4d0381421cd473f
1,624
py
Python
program/convert_ui.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
program/convert_ui.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
program/convert_ui.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : convertUI.py @Time : 2022/02/28 00:08:31 @Author : felix @Version : 1.0 @Contact : laijia2008@126.com @License : (C)Copyright 2021-2025, felix&lai @Desc : None ''' # here put the import lib import os import sys if __name__ == "__mai...
37.767442
83
0.613916
0d6bbc4a1deb02ea0fe6dd3bf20550182a612637
71,145
py
Python
third_party/ray/core/generated/common_pb2.py
HuantWang/SUPERSONIC
bea7090e8bc4a54ed52495dd910ef946c88bec67
[ "CC-BY-4.0" ]
78
2022-02-02T00:23:02.000Z
2022-03-15T11:44:02.000Z
third_party/ray/core/generated/common_pb2.py
HuantWang/SUPERSONIC
bea7090e8bc4a54ed52495dd910ef946c88bec67
[ "CC-BY-4.0" ]
null
null
null
third_party/ray/core/generated/common_pb2.py
HuantWang/SUPERSONIC
bea7090e8bc4a54ed52495dd910ef946c88bec67
[ "CC-BY-4.0" ]
3
2022-01-30T05:10:14.000Z
2022-03-04T21:18:44.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: src/ray/protobuf/common.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor f...
46.591356
7,878
0.753813