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
33c9781fcf45373b7d579f4efc46dbb1d61f2088
2,781
py
Python
nlppcfg.py
mrlongzhang/classicnlp
99b8e7a103c386d8950536eae45a1fa7291968df
[ "MIT" ]
null
null
null
nlppcfg.py
mrlongzhang/classicnlp
99b8e7a103c386d8950536eae45a1fa7291968df
[ "MIT" ]
null
null
null
nlppcfg.py
mrlongzhang/classicnlp
99b8e7a103c386d8950536eae45a1fa7291968df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ A Probabiltics Context Free Grammer (PCFG) Parser using Python. This code implemented a weighted graph search @author: Zhang Long """ import codecs from collections import defaultdict import math f_grammer=".\\test\\08-grammar.txt" nonterm=[] preterm=defaultdict(list) gramm...
30.56044
107
0.51708
0
0
0
0
0
0
0
0
482
0.173319
33c9c1f3e9820356f08403598edffbaf83060a2e
2,876
py
Python
generator.py
elieahd/data-analytics-kmeans
df44da132cf0de00d870b8865781f4fd78113cfa
[ "MIT" ]
2
2020-10-09T20:13:00.000Z
2021-06-06T09:18:33.000Z
generator.py
elieahd/data-analytics-kmeans
df44da132cf0de00d870b8865781f4fd78113cfa
[ "MIT" ]
null
null
null
generator.py
elieahd/data-analytics-kmeans
df44da132cf0de00d870b8865781f4fd78113cfa
[ "MIT" ]
2
2018-06-06T08:33:03.000Z
2018-06-06T09:00:47.000Z
# spark-submit generator.py out 9 3 2 10 # imports import sys import random import numpy from pyspark import SparkContext from pyspark.mllib.random import RandomRDDs # constants MIN_MEAN_VALUE = 0 MAX_MEAN_VALUE = 100 STEPS = 0.1 # methods def point_values(means_value, normal_value, std, cluster, dimension): val...
37.842105
189
0.705494
0
0
0
0
0
0
0
0
1,189
0.413421
33cab9736c2b33f9dc7ebf54dc2179461c98e762
1,263
py
Python
testtool.py
andreasscherbaum/pg_commitfest_testtool
4e40ef441401faddc34861a92f41a9ca60c7560c
[ "BSD-3-Clause" ]
1
2017-10-26T13:52:53.000Z
2017-10-26T13:52:53.000Z
testtool.py
andreasscherbaum/pg_commitfest_testtool
4e40ef441401faddc34861a92f41a9ca60c7560c
[ "BSD-3-Clause" ]
null
null
null
testtool.py
andreasscherbaum/pg_commitfest_testtool
4e40ef441401faddc34861a92f41a9ca60c7560c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # test tool for PostgreSQL Commitfest website # # written by: Andreas Scherbaum <ads@pgug.de> # import re import os import sys import logging import tempfile import atexit import shutil import time import subprocess from subprocess import Popen import socket import sqlite3 import datetime from ...
16.402597
71
0.699129
0
0
0
0
0
0
0
0
680
0.538401
33ccafc8a5799e67020bb35fde701098ce38149a
856
py
Python
coronavirus/common/user_agent.py
StevenHuang2020/WebSpider
40ab36416e061da3eb98a3174f18f50260b2e2d3
[ "MIT" ]
null
null
null
coronavirus/common/user_agent.py
StevenHuang2020/WebSpider
40ab36416e061da3eb98a3174f18f50260b2e2d3
[ "MIT" ]
null
null
null
coronavirus/common/user_agent.py
StevenHuang2020/WebSpider
40ab36416e061da3eb98a3174f18f50260b2e2d3
[ "MIT" ]
null
null
null
import random from fake_useragent import UserAgent agent_list = '''Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 Mozilla/5.0 (com...
27.612903
137
0.682243
0
0
0
0
0
0
0
0
480
0.560748
33cd25b6dee7d0d8f2865e1649e038cc3d930d13
5,078
py
Python
line.py
jurlaub/jubilant-fedora
829432ff4fb8b3972ad5a1a152ecf6f1f7e94f9b
[ "MIT" ]
null
null
null
line.py
jurlaub/jubilant-fedora
829432ff4fb8b3972ad5a1a152ecf6f1f7e94f9b
[ "MIT" ]
null
null
null
line.py
jurlaub/jubilant-fedora
829432ff4fb8b3972ad5a1a152ecf6f1f7e94f9b
[ "MIT" ]
null
null
null
import numpy as np from collections import deque QLEN = 8 class Line(object): """ from #2.Tips and Tricks for the Project """ def __init__(self, yp=None, xp=None): self.ym_per_pix = yp self.xm_per_pix = xp # self.frame_shape = fs # was the line detected in the last iteration...
35.51049
144
0.613037
5,012
0.987003
0
0
0
0
0
0
2,012
0.396219
33cd7255bbba76e2a841f4c023d7958020291128
2,730
py
Python
ex2_graph/tut2_infer_sigma.py
trungnt13/uef_bay1_2018
48a0f684eb4d18777d9f03998233774baa0524a8
[ "MIT" ]
null
null
null
ex2_graph/tut2_infer_sigma.py
trungnt13/uef_bay1_2018
48a0f684eb4d18777d9f03998233774baa0524a8
[ "MIT" ]
1
2018-11-30T16:36:40.000Z
2018-11-30T16:36:40.000Z
ex2_graph/tut2_infer_sigma.py
trungnt13/uef_bay1_2018
48a0f684eb4d18777d9f03998233774baa0524a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import seaborn as sns import numpy as np import tensorflow as tf tf.enable_eager_execution() import tensorflow_probability as tfp from tensorflow_proba...
30.674157
83
0.631502
0
0
0
0
0
0
0
0
1,183
0.433016
33ce3133c0c71236885386e8ce693950822b09d3
10,625
py
Python
torch_geometric_temporal/nn/convolutional/astgcn.py
LFrancesco/pytorch_geometric_temporal
0964515a6041ce0cceb12e36ed640df22c046b4d
[ "MIT" ]
null
null
null
torch_geometric_temporal/nn/convolutional/astgcn.py
LFrancesco/pytorch_geometric_temporal
0964515a6041ce0cceb12e36ed640df22c046b4d
[ "MIT" ]
null
null
null
torch_geometric_temporal/nn/convolutional/astgcn.py
LFrancesco/pytorch_geometric_temporal
0964515a6041ce0cceb12e36ed640df22c046b4d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch_geometric.transforms import LaplacianLambdaMax from torch_geometric.data import Data from .chebconvatt import ChebConvAtt class Spatial_Attention_layer(nn.Module): ''' compute spatial attention scores ''' def __init__(self, i...
46.39738
168
0.640471
10,414
0.980141
0
0
0
0
0
0
4,245
0.399529
33d053c085065b6932239fd9d1894cd72e3ecc5e
1,596
py
Python
project1/src/utils/preprocessing.py
armand33/deep_learning_epfl
238ed860716f013a30e29ebd4b0d9c4d0c67d011
[ "MIT" ]
null
null
null
project1/src/utils/preprocessing.py
armand33/deep_learning_epfl
238ed860716f013a30e29ebd4b0d9c4d0c67d011
[ "MIT" ]
null
null
null
project1/src/utils/preprocessing.py
armand33/deep_learning_epfl
238ed860716f013a30e29ebd4b0d9c4d0c67d011
[ "MIT" ]
2
2018-05-30T09:27:13.000Z
2018-07-05T12:38:37.000Z
""" File defining the classes Normalize and Standardize used respectively to normalize and standardize the data set. """ class Normalize(object): """ Data pre-processing class to normalize data so the values are in the range [new_min, new_max]. """ def __init__(self, min_, max_, new_min=0, new_max=1)...
27.517241
112
0.592105
1,469
0.920426
0
0
0
0
0
0
993
0.62218
33d1491d6a521c55fdf5d9796d0dc3453bde5f3c
5,522
py
Python
coalaip/plugin.py
bigchaindb/pycoalaip
cecc8f6ff4733f0525fafcee63647753e832f0be
[ "Apache-2.0" ]
20
2016-08-13T15:01:20.000Z
2018-10-09T21:18:11.000Z
coalaip/plugin.py
imbi7py/pycoalaip
cecc8f6ff4733f0525fafcee63647753e832f0be
[ "Apache-2.0" ]
57
2016-08-04T16:02:05.000Z
2017-09-15T08:20:06.000Z
coalaip/plugin.py
imbi7py/pycoalaip
cecc8f6ff4733f0525fafcee63647753e832f0be
[ "Apache-2.0" ]
8
2018-11-15T16:34:59.000Z
2021-07-09T00:20:37.000Z
from abc import ABC, abstractmethod, abstractproperty class AbstractPlugin(ABC): """Abstract interface for all persistence layer plugins. Expects the following to be defined by the subclass: - :attr:`type` (as a read-only property) - :func:`generate_user` - :func:`get_status` ...
34.72956
91
0.588555
5,465
0.989678
0
0
5,104
0.924303
0
0
4,854
0.879029
33d1c4bc6b32f3dc2fadccad361068b5292dca5c
6,016
py
Python
benchmarks/chexpert/chexpert.py
paaatcha/my-thesis
e72644e0d7c8a4b6f75cf7e462d32001cbf2c75d
[ "MIT" ]
5
2020-11-12T20:11:09.000Z
2021-03-01T12:44:05.000Z
benchmarks/chexpert/chexpert.py
paaatcha/my-thesis
e72644e0d7c8a4b6f75cf7e462d32001cbf2c75d
[ "MIT" ]
null
null
null
benchmarks/chexpert/chexpert.py
paaatcha/my-thesis
e72644e0d7c8a4b6f75cf7e462d32001cbf2c75d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Autor: André Pacheco Email: pacheco.comp@gmail.com """ import sys sys.path.insert(0,'../../') # including the path to deep-tasks folder sys.path.insert(0,'../../my_models') # including the path to my_models folder from constants import RAUG_PATH sys.path.insert(0,RAUG_PATH) from raug.loade...
43.280576
123
0.626995
0
0
0
0
5,215
0.866711
0
0
1,805
0.299983
33d3616fffd736ee6840aea7591ae150b299a6b4
1,673
py
Python
python-benchmarking-tools/haste/benchmarking/messaging.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
python-benchmarking-tools/haste/benchmarking/messaging.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
python-benchmarking-tools/haste/benchmarking/messaging.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
import random import string from itertools import repeat import time RANDOM_1KB = ''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(1000)) RANDOM_100MB = bytearray(''.join(list(repeat(RANDOM_1KB, 100 * 1024))), 'utf-8') NEWLINE = bytes("\n", 'UT...
29.875
99
0.683802
0
0
0
0
0
0
0
0
405
0.24208
33d4ad03546e671d2c748b882701c31df889c607
5,338
py
Python
async_mgun/mgun.py
maximdanilchenko/async-mgun
66a2f1123407f91682fc8e6491ddadfb3690e238
[ "MIT" ]
null
null
null
async_mgun/mgun.py
maximdanilchenko/async-mgun
66a2f1123407f91682fc8e6491ddadfb3690e238
[ "MIT" ]
null
null
null
async_mgun/mgun.py
maximdanilchenko/async-mgun
66a2f1123407f91682fc8e6491ddadfb3690e238
[ "MIT" ]
null
null
null
import json from collections import namedtuple import aiohttp METHOD_GET = aiohttp.hdrs.METH_GET METHOD_DELETE = aiohttp.hdrs.METH_DELETE METHOD_POST = aiohttp.hdrs.METH_POST METHOD_PUT = aiohttp.hdrs.METH_PUT METHOD_PATCH = aiohttp.hdrs.METH_PATCH CONTENT_TYPE = aiohttp.hdrs.CONTENT_TYPE JSON_TYPE = 'application/jso...
32.156627
91
0.597602
3,755
0.703447
0
0
0
0
2,425
0.45429
201
0.037655
33d598edbbc9d5f212435ece8b2d3abdac48c312
45
py
Python
python/testData/postfix/not/and_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/postfix/not/and_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/postfix/not/and_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def f(): return True and not False<caret>
22.5
36
0.666667
0
0
0
0
0
0
0
0
0
0
33d662830f0507f69d63779e877716fe18bc04aa
7,071
py
Python
10/10.py
andleb/aoc18
408bf9a92f30fee692d7a2cd9b2a72ab1bbd7711
[ "MIT" ]
1
2020-03-22T16:25:01.000Z
2020-03-22T16:25:01.000Z
10/10.py
andleb/aoc18
408bf9a92f30fee692d7a2cd9b2a72ab1bbd7711
[ "MIT" ]
null
null
null
10/10.py
andleb/aoc18
408bf9a92f30fee692d7a2cd9b2a72ab1bbd7711
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Dec 9 23:12:30 2018 @author: Andrej Leban """ import itertools as it import functools as ft import collections as coll import sortedcontainers as sc from blist import blist import re import numpy as np import scipy.signal import scipy.sparse import mat...
28.861224
75
0.433602
0
0
565
0.079904
0
0
0
0
3,745
0.529628
33d6fb43a44d5548c53fbae7aa5f5112f385cc23
808
py
Python
__init__.py
rookiepeng/radarsimpy
e26cc8eb1b913630dfdc9d3443279b4ae54c0109
[ "MIT" ]
42
2020-09-30T06:26:02.000Z
2022-03-31T18:38:52.000Z
__init__.py
chisyliu/radarsimpy
e26cc8eb1b913630dfdc9d3443279b4ae54c0109
[ "MIT" ]
6
2021-01-11T21:45:20.000Z
2022-03-18T02:48:50.000Z
__init__.py
chisyliu/radarsimpy
e26cc8eb1b913630dfdc9d3443279b4ae54c0109
[ "MIT" ]
12
2020-08-06T15:17:13.000Z
2022-02-11T08:38:34.000Z
# distutils: language = c++ # cython: language_level=3 # ---------- # RadarSimPy - A Radar Simulator Built with Python # Copyright (C) 2018 - PRESENT Zhengyu Peng # E-mail: zpeng.me@gmail.com # Website: https://zpeng.me # ` ` # -:. -#: # -//:. -###: # -////:. ...
20.717949
50
0.308168
0
0
0
0
0
0
0
0
663
0.820545
33d742467b639181a96935c9f1ee233a5cfa1143
1,542
py
Python
setup.py
tfahey/python-sample-app
ce333ea3e6e932b4f3eec022a3654b542c310974
[ "MIT" ]
null
null
null
setup.py
tfahey/python-sample-app
ce333ea3e6e932b4f3eec022a3654b542c310974
[ "MIT" ]
null
null
null
setup.py
tfahey/python-sample-app
ce333ea3e6e932b4f3eec022a3654b542c310974
[ "MIT" ]
null
null
null
from setuptools import setup # Used in pypi.org as the README description of your package with open("README.md", 'r') as f: long_description = f.read() # Remove this whole block from here... setup( name='python-sample-app', version='1.0', description='python-sample-app is a starter templat...
33.521739
101
0.603113
0
0
0
0
0
0
0
0
832
0.539559
33d849633a70f2cbfe362c04ab4b72d0b5817985
2,519
py
Python
create_playlist_by_artistlist.py
sanzgiri/saregma_spotify
ba35cd27b13c63a7cb1b1452f00727be51c775c7
[ "MIT" ]
1
2019-10-10T07:39:26.000Z
2019-10-10T07:39:26.000Z
create_playlist_by_artistlist.py
sanzgiri/saregama_spotify
ba35cd27b13c63a7cb1b1452f00727be51c775c7
[ "MIT" ]
null
null
null
create_playlist_by_artistlist.py
sanzgiri/saregama_spotify
ba35cd27b13c63a7cb1b1452f00727be51c775c7
[ "MIT" ]
null
null
null
import sys import re import spotipy import spotipy.util as util ''' shows the albums and tracks for a given artist. ''' def get_artist_urn(name): results = sp.search(q='artist:' + name, type='artist') items = results['artists']['items'] if len(items) > 0: return items[0]['uri'] else: r...
33.586667
89
0.493053
0
0
0
0
0
0
0
0
560
0.22231
33d9116df66190b4bcd4b6335837886228590452
466
py
Python
Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
# Print some simple information using the WScript.Network object. import sys from win32com.client.gencache import EnsureDispatch ob = EnsureDispatch('WScript.Network') # For the sake of ensuring the correct module is used... mod = sys.modules[ob.__module__] print "The module hosting the object is", mod # Now use the...
25.888889
65
0.761803
0
0
0
0
0
0
0
0
255
0.54721
33d9997f9a803874867baad8259292103a1f9c38
974
py
Python
BOMFinder/helpers.py
ProrokWielki/BOM_Finder
329fbcc79014f653ea438005495c851ea5a98a4e
[ "MIT" ]
null
null
null
BOMFinder/helpers.py
ProrokWielki/BOM_Finder
329fbcc79014f653ea438005495c851ea5a98a4e
[ "MIT" ]
null
null
null
BOMFinder/helpers.py
ProrokWielki/BOM_Finder
329fbcc79014f653ea438005495c851ea5a98a4e
[ "MIT" ]
null
null
null
import BOMFinder.UI.UI as UI def to_prompt_sequence(part): prompt_sequence = [] for key, value in part.properties.items(): if isinstance(key, str): if isinstance(value, str): prompt_sequence.append(UI.ValuePrompt(key)) elif isinstance(value, list): ...
30.4375
90
0.584189
0
0
0
0
0
0
0
0
93
0.095483
33da0396a0dd60ccaa2bda8746e876166518de49
934
py
Python
src/dash/pages/page1/layout/piecases.py
NjekTt/iris-python-dashboards
fde650bb1e0a58504230aaba6b4d8312c9f965a6
[ "MIT" ]
null
null
null
src/dash/pages/page1/layout/piecases.py
NjekTt/iris-python-dashboards
fde650bb1e0a58504230aaba6b4d8312c9f965a6
[ "MIT" ]
null
null
null
src/dash/pages/page1/layout/piecases.py
NjekTt/iris-python-dashboards
fde650bb1e0a58504230aaba6b4d8312c9f965a6
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc from dash import dcc import plotly.graph_objects as go import iris query = ("""SELECT location, CAST(total_cases AS int) as total_cases, CAST(total_deaths as int) as total_deaths, CAST(total_vaccinations AS int) as total_vaccinations FROM Data.Covid19 WHERE ...
28.30303
105
0.680942
0
0
0
0
0
0
0
0
449
0.480728
33da4874a5acfe6e3de2316a08fa8e0d7edcedd6
13,573
py
Python
edb/server/main.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
edb/server/main.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
edb/server/main.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
31.861502
79
0.614308
0
0
412
0.030354
600
0.044205
0
0
4,635
0.341487
33dab9188feb6ecca15b0298623ede4011983a44
2,295
py
Python
processing.py
BeDaBio/Topspin_Automatisation
d6c944c8533452540bad6c7900671ba84510da5d
[ "MIT" ]
1
2021-07-01T12:40:46.000Z
2021-07-01T12:40:46.000Z
processing.py
BeDaBio/Topspin_Automatisation
d6c944c8533452540bad6c7900671ba84510da5d
[ "MIT" ]
null
null
null
processing.py
BeDaBio/Topspin_Automatisation
d6c944c8533452540bad6c7900671ba84510da5d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from TopCmds import * import quality_check import data_management as dat Qualitytest = quality_check.Qualitytest left_boundary=float(dat.get_globalParameter("left_boundary")) right_boundary=float(dat.get_globalParameter("right_boundary")) def Check_180turn(leftboundary,rightboundary):...
38.898305
101
0.735076
0
0
0
0
1,257
0.547712
0
0
894
0.389542
33df118b9dd2d5dc3e199ff68c543e1b12e24f1b
389
py
Python
accounts/migrations/0007_rename_protected_authtoggle_is_protected.py
abubakarA-Dot/tarot_juicer
dbc68f73d6ae3d73f50f4472a063b5363febc7b8
[ "MIT" ]
4
2020-02-27T00:11:01.000Z
2020-05-11T07:59:55.000Z
accounts/migrations/0007_rename_protected_authtoggle_is_protected.py
abubakarA-Dot/tarot_juicer
dbc68f73d6ae3d73f50f4472a063b5363febc7b8
[ "MIT" ]
16
2019-12-20T06:57:54.000Z
2020-05-19T01:00:18.000Z
accounts/migrations/0007_rename_protected_authtoggle_is_protected.py
abubakarA-Dot/tarot_juicer
dbc68f73d6ae3d73f50f4472a063b5363febc7b8
[ "MIT" ]
10
2019-12-25T23:38:33.000Z
2020-05-11T14:15:15.000Z
# Generated by Django 3.2.4 on 2021-11-02 08:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_rename_on_authtoggle_protected'), ] operations = [ migrations.RenameField( model_name='authtoggle', old_nam...
20.473684
60
0.611825
304
0.781491
0
0
0
0
0
0
131
0.336761
33df6bcd5e294420051bcaaf7ff2ab223d4ccacb
6,509
py
Python
fund.py
JS-WangZhu/Fund
9ec7c06998f23e827d72f5a40f357ce8950b61f5
[ "Apache-2.0" ]
9
2020-08-11T11:07:06.000Z
2021-08-06T08:28:50.000Z
fund.py
JS-WangZhu/Fund
9ec7c06998f23e827d72f5a40f357ce8950b61f5
[ "Apache-2.0" ]
null
null
null
fund.py
JS-WangZhu/Fund
9ec7c06998f23e827d72f5a40f357ce8950b61f5
[ "Apache-2.0" ]
2
2020-08-18T06:56:25.000Z
2021-01-12T12:07:36.000Z
import os import pickle import requests from bs4 import BeautifulSoup import re import prettytable as pt from selenium import webdriver from selenium.webdriver.chrome.options import Options import warnings from colorama import init, Fore, Back, Style warnings.filterwarnings("ignore") import time chrome_options=Options(...
34.62234
147
0.634199
475
0.067712
0
0
0
0
0
0
2,277
0.32459
33e151bf11eaa61f605f33dd483e62cdd9902fec
6,161
py
Python
src/streamexecutors/stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
1
2017-07-17T14:11:18.000Z
2017-07-17T14:11:18.000Z
src/streamexecutors/stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
3
2017-05-29T10:24:36.000Z
2017-05-30T09:20:11.000Z
src/streamexecutors/stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
1
2020-11-21T18:53:52.000Z
2020-11-21T18:53:52.000Z
import time from queue import Queue, Full, Empty from concurrent.futures import Executor, ThreadPoolExecutor, ProcessPoolExecutor from concurrent.futures.process import _get_chunks, _process_chunk from functools import partial import sys import contextlib import threading import itertools class StreamExecutor(Executo...
41.073333
96
0.557377
5,863
0.951631
0
0
0
0
0
0
2,285
0.370881
33e2f0f698434b23dcdf1b8b069d6bb70c09f05a
29,581
py
Python
src/custom_layers.py
fkong7/HeartFFDNet
8257ce71a0a3449d1b3a7c040699af3da35bd4b5
[ "Apache-2.0" ]
12
2021-07-13T17:40:17.000Z
2022-03-05T12:13:30.000Z
src/custom_layers.py
fkong7/HeartFFDNet
8257ce71a0a3449d1b3a7c040699af3da35bd4b5
[ "Apache-2.0" ]
2
2022-03-03T15:17:58.000Z
2022-03-22T09:22:46.000Z
src/custom_layers.py
fkong7/HeartFFDNet
8257ce71a0a3449d1b3a7c040699af3da35bd4b5
[ "Apache-2.0" ]
2
2021-09-28T14:56:04.000Z
2021-11-18T09:52:44.000Z
#Copyright (C) 2021 Fanwei Kong, Shawn C. Shadden, University of California, Berkeley #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 req...
45.579353
137
0.61837
27,485
0.929144
0
0
0
0
0
0
4,693
0.158649
33e320a31c348ff9ae4c6582aaca0b0e10833e86
2,455
py
Python
data_spec_validator/spec/actions.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
23
2021-08-11T08:53:15.000Z
2022-02-14T04:44:13.000Z
data_spec_validator/spec/actions.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
2
2021-09-11T08:59:12.000Z
2022-03-29T00:40:42.000Z
data_spec_validator/spec/actions.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
1
2022-01-04T07:45:22.000Z
2022-01-04T07:45:22.000Z
from .defines import MsgLv, UnknownFieldValue, ValidateResult, get_msg_level from .validators import SpecValidator def _wrap_error_with_field_info(failure): if get_msg_level() == MsgLv.VAGUE: return RuntimeError(f'field: {failure.field} not well-formatted') if isinstance(failure.value, UnknownFieldVal...
34.097222
93
0.657434
0
0
0
0
0
0
0
0
534
0.217515
33e48de23ace5856239e5367cf22a81d72e55b3b
290
py
Python
hwtypes/compatibility.py
splhack/hwtypes
aee03c086226fa3ed5892c998603cb8477e15f5e
[ "BSD-3-Clause" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
hwtypes/compatibility.py
splhack/hwtypes
aee03c086226fa3ed5892c998603cb8477e15f5e
[ "BSD-3-Clause" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
hwtypes/compatibility.py
splhack/hwtypes
aee03c086226fa3ed5892c998603cb8477e15f5e
[ "BSD-3-Clause" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
import sys __all__ = ['IntegerTypes', 'StringTypes'] if sys.version_info < (3,): IntegerTypes = (int, long) StringTypes = (str, unicode) long = long import __builtin__ as builtins else: IntegerTypes = (int,) StringTypes = (str,) long = int import builtins
19.333333
41
0.641379
0
0
0
0
0
0
0
0
27
0.093103
33e56033d7e024573e61a6a3dc78c7548534c357
285
py
Python
py_tdlib/constructors/secret_chat.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/secret_chat.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/secret_chat.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type class secretChat(Type): id = None # type: "int32" user_id = None # type: "int32" state = None # type: "SecretChatState" is_outbound = None # type: "Bool" ttl = None # type: "int32" key_hash = None # type: "bytes" layer = None # type: "int32"
23.75
40
0.635088
255
0.894737
0
0
0
0
0
0
114
0.4
33e70135430c756b9a90a2e67be6abde70c17fb4
100
py
Python
paraVerComoFuncionaAlgumasCoisas/sqlite3/fazendoTeste/teste.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
paraVerComoFuncionaAlgumasCoisas/sqlite3/fazendoTeste/teste.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
paraVerComoFuncionaAlgumasCoisas/sqlite3/fazendoTeste/teste.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
import PegandoVariavel as v print(v.get_Pessoas()) print() for d in v.get_Pessoas(): print(d)
12.5
27
0.7
0
0
0
0
0
0
0
0
0
0
33e78a01265ca1d4db3cea8c8ee8b0a653ab15e6
2,689
py
Python
main.py
Abrolhus/animeDlCLI
4ba7fc4c24eb0b01a6352a1f6b011edee79b8ea3
[ "MIT" ]
null
null
null
main.py
Abrolhus/animeDlCLI
4ba7fc4c24eb0b01a6352a1f6b011edee79b8ea3
[ "MIT" ]
null
null
null
main.py
Abrolhus/animeDlCLI
4ba7fc4c24eb0b01a6352a1f6b011edee79b8ea3
[ "MIT" ]
null
null
null
import click from Crypto.Cipher import AES import base64 from hashlib import md5 import warnings import requests_cache import requests import logging import subprocess import tempfile from anime_downloader.sites import get_anime_class import util @click.command() @click.argument('name') @click.option('-e', '--ep', d...
34.474359
97
0.613611
0
0
0
0
2,398
0.891781
0
0
1,052
0.391224
33e792cf546e5c419d580edda8137736596261a6
333
py
Python
file_upload/address/models.py
pkscredy/lat_long
1079d4c4eaf16a7df08c431aaa83eed188099af4
[ "MIT" ]
null
null
null
file_upload/address/models.py
pkscredy/lat_long
1079d4c4eaf16a7df08c431aaa83eed188099af4
[ "MIT" ]
null
null
null
file_upload/address/models.py
pkscredy/lat_long
1079d4c4eaf16a7df08c431aaa83eed188099af4
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models class Document(models.Model): file_name = models.CharField(max_length=255, blank=True) document = models.FileField(upload_to='documents/') uploaded_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self...
25.615385
60
0.756757
260
0.780781
0
0
0
0
0
0
12
0.036036
33e8f24130e48b94bffd6cb5db000655f6d2dde5
3,106
py
Python
src/messages/results/base.py
rkulyn/telegram-dutch-taxbot
f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1
[ "MIT" ]
2
2020-02-27T13:15:07.000Z
2020-09-19T15:19:29.000Z
src/messages/results/base.py
rkulyn/telegram-dutch-taxbot
f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1
[ "MIT" ]
null
null
null
src/messages/results/base.py
rkulyn/telegram-dutch-taxbot
f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1
[ "MIT" ]
null
null
null
import abc from collections import OrderedDict from .constants import RESULT_KEY_MAP class ResultMessageBase(abc.ABC): """ Result message base class. """ @abc.abstractmethod def get_content(self, custom_data=None): """ Get message content. Args: custom_data ...
20.168831
61
0.533162
3,010
0.969092
0
0
1,362
0.438506
0
0
1,466
0.47199
33ec942a5d39ab4de12cd3ad377092659ef39d3e
377
py
Python
extract_wn_synsets.py
napsternxg/WordNetExperiments
6dd12604b3b1ae64d07b819745629074b9db993b
[ "Apache-2.0" ]
2
2017-06-22T16:59:58.000Z
2020-03-26T17:04:32.000Z
extract_wn_synsets.py
napsternxg/WordNetExperiments
6dd12604b3b1ae64d07b819745629074b9db993b
[ "Apache-2.0" ]
null
null
null
extract_wn_synsets.py
napsternxg/WordNetExperiments
6dd12604b3b1ae64d07b819745629074b9db993b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from nltk.corpus import wordnet as wn all_synsets = set() for word in wn.words(): for synset in wn.synsets(word): all_synsets.add(synset) with open("wordnet_synset_definition.txt", "wb+") as fp: for synset in all_synsets: print >> fp, "%s\t%s" % ( synset.name()...
22.176471
56
0.570292
0
0
0
0
0
0
0
0
59
0.156499
33ed53521c15ad28a778f2b1528538b64f181026
32
py
Python
week01/test_f.py
wasit7/cn350
a84a6ed04ada532e0a12c69d705cf3c15d7e0240
[ "MIT" ]
null
null
null
week01/test_f.py
wasit7/cn350
a84a6ed04ada532e0a12c69d705cf3c15d7e0240
[ "MIT" ]
null
null
null
week01/test_f.py
wasit7/cn350
a84a6ed04ada532e0a12c69d705cf3c15d7e0240
[ "MIT" ]
null
null
null
n=1 def f(x): print(n) f(0)
6.4
12
0.46875
0
0
0
0
0
0
0
0
0
0
33eef624cce407f1578fbc591f6a8b24eb12d230
2,047
py
Python
otel_billing/otel_billing.py
rnishtala/otel_billing
24f49458eb273d210f15c597953bd176a32f5e89
[ "MIT" ]
null
null
null
otel_billing/otel_billing.py
rnishtala/otel_billing
24f49458eb273d210f15c597953bd176a32f5e89
[ "MIT" ]
null
null
null
otel_billing/otel_billing.py
rnishtala/otel_billing
24f49458eb273d210f15c597953bd176a32f5e89
[ "MIT" ]
null
null
null
"""Main module.""" from sqlalchemy import create_engine import pandas as pd import collections import logging import re from pprint import pprint from typing import Sequence from opentelemetry.metrics import Counter, Metric from opentelemetry.sdk.metrics.export import ( MetricRecord, MetricsExporter, Metr...
33.016129
90
0.521739
1,668
0.814851
0
0
0
0
0
0
411
0.200782
33f0d31e3a217367f0357c35df26fe4ef6403f03
4,410
py
Python
broker/service/api/v10.py
bigsea-ufcg/bigsea-manager
73235298308f55ae287a595fc1f056fbcc022b12
[ "Apache-2.0" ]
3
2017-03-21T20:03:53.000Z
2018-05-03T16:27:32.000Z
broker/service/api/v10.py
bigsea-ufcg/bigsea-manager
73235298308f55ae287a595fc1f056fbcc022b12
[ "Apache-2.0" ]
7
2017-07-17T10:34:34.000Z
2018-05-16T14:04:57.000Z
broker/service/api/v10.py
bigsea-ufcg/bigsea-manager
73235298308f55ae287a595fc1f056fbcc022b12
[ "Apache-2.0" ]
10
2017-04-17T14:30:27.000Z
2018-09-04T14:55:11.000Z
# Copyright (c) 2017 UFCG-LSD. # # 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,...
32.189781
76
0.65941
0
0
0
0
0
0
0
0
1,301
0.295011
33f1df7af6076d426dfa10cdaf7eb926cc35605b
362
py
Python
Unit_B/chapter10_Lists/sampleCode/makeList.py
noynaert/csc184Handouts
c3e4c8824ee8d16b128abd771a8b5f8a2f01c0de
[ "Unlicense" ]
2
2021-04-27T09:18:46.000Z
2021-10-17T03:58:53.000Z
Unit_B/chapter10_Lists/sampleCode/makeList.py
noynaert/csc184Handouts
c3e4c8824ee8d16b128abd771a8b5f8a2f01c0de
[ "Unlicense" ]
null
null
null
Unit_B/chapter10_Lists/sampleCode/makeList.py
noynaert/csc184Handouts
c3e4c8824ee8d16b128abd771a8b5f8a2f01c0de
[ "Unlicense" ]
null
null
null
# creates a list and prints it days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] # traversing without an index for day in days: print(day) # traversing with an index for i in range(len(days)): print(f"Day {i} is {days[i]}") days[1] = "Lunes" print("Day[1] is now ...
21.294118
85
0.624309
0
0
0
0
0
0
0
0
195
0.538674
33f2c47794c2f14e6aec70a212195a2870d2f836
826
py
Python
cellacdc/models/YeaZ/__init__.py
SchmollerLab/Cell_ACDC
2be9c0055c3306c4c35da99831f146d8a211baa0
[ "BSD-3-Clause" ]
29
2021-10-01T09:43:26.000Z
2022-03-15T10:46:53.000Z
cellacdc/models/YeaZ/__init__.py
SchmollerLab/Cell_ACDC
2be9c0055c3306c4c35da99831f146d8a211baa0
[ "BSD-3-Clause" ]
15
2022-02-04T09:21:43.000Z
2022-03-31T08:29:00.000Z
cellacdc/models/YeaZ/__init__.py
SchmollerLab/Cell_ACDC
2be9c0055c3306c4c35da99831f146d8a211baa0
[ "BSD-3-Clause" ]
1
2022-03-15T02:23:02.000Z
2022-03-15T02:23:02.000Z
try: import tensorflow except ModuleNotFoundError: pkg_name = 'tensorflow' import os import sys import subprocess from cellacdc import myutils cancel = myutils.install_package_msg(pkg_name) if cancel: raise ModuleNotFoundError( f'User aborted {pkg_name} installation' ...
30.592593
79
0.635593
0
0
0
0
0
0
0
0
231
0.279661
33f36e64be2e93d23e86bda79bdc0f169b48316e
1,290
py
Python
demos/shortify/shortify/utils.py
Ixyk-Wolf/aiohttp-demos
e26ef202e6fd4759f4c77f44cdbdbec482196b41
[ "Apache-2.0" ]
649
2017-10-27T10:55:59.000Z
2022-03-29T07:14:09.000Z
demos/shortify/shortify/utils.py
xiaohuanshu/aiohttp-demos
0d9898eec7e262ed0083159613de5d1ea1e98974
[ "Apache-2.0" ]
87
2017-10-27T11:12:06.000Z
2021-08-17T18:36:59.000Z
demos/shortify/shortify/utils.py
xiaohuanshu/aiohttp-demos
0d9898eec7e262ed0083159613de5d1ea1e98974
[ "Apache-2.0" ]
284
2017-11-05T13:24:51.000Z
2022-03-12T03:37:55.000Z
import aioredis import trafaret as t import yaml from aiohttp import web CONFIG_TRAFARET = t.Dict( { t.Key('redis'): t.Dict( { 'port': t.Int(), 'host': t.String(), 'db': t.Int(), 'minsize': t.Int(), 'maxsize': t.In...
20.15625
66
0.54186
0
0
0
0
0
0
223
0.172868
175
0.135659
33f382e01faf075b62dec4b248210e8307fb81c2
1,667
py
Python
anonymizers/location_anonymizer.py
zacharywilkins/anonymizac
c38ce30413f89f49b8e90cdca13c3739674d7b64
[ "MIT" ]
null
null
null
anonymizers/location_anonymizer.py
zacharywilkins/anonymizac
c38ce30413f89f49b8e90cdca13c3739674d7b64
[ "MIT" ]
null
null
null
anonymizers/location_anonymizer.py
zacharywilkins/anonymizac
c38ce30413f89f49b8e90cdca13c3739674d7b64
[ "MIT" ]
null
null
null
from anonymizers.base_anonymizer import Anonymizer class LocationAnonymizer(Anonymizer): anonymization_type = "location" location_prepositions = ["in", "at"] def __init__(self): self.initialize_spacy_model() def is_location(self, index: int) -> bool: if self.parsed_user_input[index ...
38.767442
105
0.636473
1,614
0.968206
0
0
0
0
0
0
85
0.05099
33f77890d77ebb7d721abd90ddbfe421eb63ecdb
5,838
py
Python
Chapter05/python/init_data.py
iamssxn/PacktPublishingb
caadbf997f7f7a27601424b602fc554e7be931d4
[ "MIT" ]
18
2019-06-11T13:35:26.000Z
2021-08-30T22:28:32.000Z
Chapter05/python/init_data.py
iamssxn/PacktPublishingb
caadbf997f7f7a27601424b602fc554e7be931d4
[ "MIT" ]
1
2019-10-10T12:27:44.000Z
2019-10-10T12:27:44.000Z
Chapter05/python/init_data.py
iamssxn/PacktPublishingb
caadbf997f7f7a27601424b602fc554e7be931d4
[ "MIT" ]
8
2019-07-24T03:25:18.000Z
2021-12-10T07:02:38.000Z
from pymongo import MongoClient import json class InitData: def __init__(self): self.client = MongoClient('localhost', 27017, w='majority') self.db = self.client.mongo_bank self.accounts = self.db.accounts # drop data from accounts collection every time to start from a clean slate ...
46.704
143
0.626242
5,726
0.980815
0
0
193
0.033059
0
0
1,649
0.28246
33f795c2e3982a688bb7022c730690391c8e4132
532
py
Python
067_MiDaS/01_float32/07_float16_quantization.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
1,529
2019-12-11T13:36:23.000Z
2022-03-31T18:38:27.000Z
067_MiDaS/01_float32/07_float16_quantization.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
200
2020-01-06T09:24:42.000Z
2022-03-31T17:29:08.000Z
067_MiDaS/01_float32/07_float16_quantization.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
288
2020-02-21T14:56:02.000Z
2022-03-30T03:00:35.000Z
### tensorflow==2.3.1 import tensorflow as tf # Float16 Quantization - Input/Output=float32 height = 384 width = 384 converter = tf.lite.TFLiteConverter.from_saved_model('saved_model') converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.target_spec.supported_types = [tf.float16] tflite_model = converter.c...
35.466667
96
0.770677
0
0
0
0
0
0
0
0
184
0.345865
33f7daec8520bf61c9a9ff557667fd5b5759236d
2,598
py
Python
experiments/e2_multi_directional_model_comparison/file_naming/rules/single_target_tree_rule_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
experiments/e2_multi_directional_model_comparison/file_naming/rules/single_target_tree_rule_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
experiments/e2_multi_directional_model_comparison/file_naming/rules/single_target_tree_rule_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
import os from experiments.file_naming.single_target_classifier_indicator import SingleTargetClassifierIndicator from project_info import project_dir def get_single_target_tree_rule_dir() -> str: mcars_dir: str = os.path.join(project_dir, 'models', ...
36.591549
102
0.734411
0
0
0
0
0
0
0
0
252
0.096998
33f87e0f533a0c640931bd3fd8c3d5fa7efb74b8
1,291
py
Python
devconf/ast/mixins/expression.py
everclear72216/ucapi
7f5afbee6b3b772086d33c2ee37e85e65af61697
[ "MIT" ]
null
null
null
devconf/ast/mixins/expression.py
everclear72216/ucapi
7f5afbee6b3b772086d33c2ee37e85e65af61697
[ "MIT" ]
5
2019-03-04T16:17:30.000Z
2019-05-04T08:34:19.000Z
devconf/ast/mixins/expression.py
everclear72216/ucapi
7f5afbee6b3b772086d33c2ee37e85e65af61697
[ "MIT" ]
null
null
null
import ast.value import ast.qualifier import ast.mixins.node import ast.mixins.typed import ast.mixins.qualified class LValueExpression(ast.mixins.node.Node, ast.mixins.typed.Typed, ast.mixins.qualified.Qualified): def __init__(self): super().__init__() self.__value: ast.value.Value or None = No...
23.907407
101
0.642912
1,171
0.907049
0
0
0
0
0
0
11
0.008521
33f916f81fdbf9453883ef52533bcab168ba5c0e
911
py
Python
todo/mail/delivery.py
sweetlearn/django-todo
70cac8b4e926794126f831a766a1461fa5eae399
[ "BSD-3-Clause" ]
1
2019-03-23T08:53:53.000Z
2019-03-23T08:53:53.000Z
todo/mail/delivery.py
sweetlearn/django-todo
70cac8b4e926794126f831a766a1461fa5eae399
[ "BSD-3-Clause" ]
null
null
null
todo/mail/delivery.py
sweetlearn/django-todo
70cac8b4e926794126f831a766a1461fa5eae399
[ "BSD-3-Clause" ]
null
null
null
import importlib def _declare_backend(backend_path): backend_path = backend_path.split('.') backend_module_name = '.'.join(backend_path[:-1]) class_name = backend_path[-1] def backend(*args, headers={}, from_address=None, **kwargs): def _backend(): backend_module = importlib.import...
35.038462
84
0.710209
0
0
0
0
0
0
0
0
168
0.184413
33f92dee740cb042eaee2c3fec74d44c25ed57fb
795
py
Python
models.py
12DReflections/cab_trips
fc85ebd44056b1a340705164912d2f8c700415df
[ "BSD-Source-Code" ]
null
null
null
models.py
12DReflections/cab_trips
fc85ebd44056b1a340705164912d2f8c700415df
[ "BSD-Source-Code" ]
null
null
null
models.py
12DReflections/cab_trips
fc85ebd44056b1a340705164912d2f8c700415df
[ "BSD-Source-Code" ]
null
null
null
from database import Base from sqlalchemy import Column, Integer, String, Boolean, ForeignKey, DateTime, Float from sqlalchemy.types import DateTime from flask import Flask, request, jsonify, make_response from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = ...
25.645161
84
0.78239
444
0.558491
0
0
0
0
0
0
44
0.055346
33f98f80566e3cf8e0e71b7f6386a2651df6888b
4,131
py
Python
census_api/census_query.py
chrispyles/census_api
bb543517e4226a075b28cc3d10f7a40403f79337
[ "BSD-3-Clause" ]
null
null
null
census_api/census_query.py
chrispyles/census_api
bb543517e4226a075b28cc3d10f7a40403f79337
[ "BSD-3-Clause" ]
null
null
null
census_api/census_query.py
chrispyles/census_api
bb543517e4226a075b28cc3d10f7a40403f79337
[ "BSD-3-Clause" ]
null
null
null
##################################### ##### Class to Query Census API ##### ##################################### import requests import json import pandas as pd import datascience as ds from .utils import * class CensusQuery: """Object to query US Census API""" _url_endings = { "acs5": "acs/acs5", "acs1": "ac...
29.719424
115
0.657952
3,921
0.949165
0
0
0
0
0
0
2,426
0.587267
33f9bc9ef4a0562402b71b8f52d5b6955d65ca99
264
py
Python
tests/utils.py
mihhail-m/avaandmed-py
c64b07db989b9aff4cfa7f4e18efc0c47ae5e219
[ "MIT" ]
null
null
null
tests/utils.py
mihhail-m/avaandmed-py
c64b07db989b9aff4cfa7f4e18efc0c47ae5e219
[ "MIT" ]
5
2022-03-17T15:00:23.000Z
2022-03-26T08:33:19.000Z
tests/utils.py
mihhail-m/avaandmed-py
c64b07db989b9aff4cfa7f4e18efc0c47ae5e219
[ "MIT" ]
null
null
null
import json from pathlib import Path def load_json(path: Path): data = None with open(path.absolute(), encoding='utf-8') as f: data = json.load(f) return data def format_mock_url(url: str, mock_value: str): return f'{url}/{mock_value}'
18.857143
54
0.659091
0
0
0
0
0
0
0
0
28
0.106061
33faf3e59ae2a6c2f4688c40e56760f5e45ff478
999
py
Python
setup.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
5
2021-06-25T14:34:52.000Z
2021-07-04T14:15:13.000Z
setup.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
1
2021-12-12T00:47:25.000Z
2022-01-24T17:19:43.000Z
setup.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
1
2021-12-14T15:44:52.000Z
2021-12-14T15:44:52.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="pyaww", version="0.0.3", author="ammarsys", author_email="amarftw1@gmail.com", description="A simple API wrapper around the pythonanywhere's API.", long_description=l...
31.21875
72
0.627628
0
0
0
0
0
0
0
0
519
0.51952
33fd5340f85ed0ca31c259e1144a71ef4b91e995
24,831
py
Python
development/CAMInterp.py
kohanlee1995/MHCfovea
040975e43926a5f8e344b642af6e900b74b50d02
[ "MIT" ]
4
2021-04-29T02:57:15.000Z
2022-01-10T10:31:52.000Z
development/CAMInterp.py
kohanlee1995/MHCfovea
040975e43926a5f8e344b642af6e900b74b50d02
[ "MIT" ]
null
null
null
development/CAMInterp.py
kohanlee1995/MHCfovea
040975e43926a5f8e344b642af6e900b74b50d02
[ "MIT" ]
1
2021-04-21T07:38:55.000Z
2021-04-21T07:38:55.000Z
import os, sys, re, json, random, importlib import numpy as np import pandas as pd from collections import OrderedDict from tqdm import tqdm import matplotlib import matplotlib.pyplot as plt import seaborn as sns import logomaker as lm from venn import venn from venn import generate_petal_labels, draw_venn from scipy.s...
45.813653
127
0.568966
24,382
0.981918
0
0
0
0
0
0
3,311
0.133341
33feaaef9c20723000c009c977b27fc9c05c9b4d
4,478
py
Python
projects/imsend/imsend.py
ZJM6658/PythonProject
8ca51a1551b20ccd696358941727188838e0e236
[ "MIT" ]
1
2021-06-09T02:06:17.000Z
2021-06-09T02:06:17.000Z
projects/imsend/imsend.py
ZJM6658/PythonProject
8ca51a1551b20ccd696358941727188838e0e236
[ "MIT" ]
null
null
null
projects/imsend/imsend.py
ZJM6658/PythonProject
8ca51a1551b20ccd696358941727188838e0e236
[ "MIT" ]
null
null
null
#!usr/bin/python # -*- coding: utf-8 -*- ' an im_send project ' # __author__ 'ZHU JIAMIN' import sys import mysql.connector #python3不支持 import requests import json from os import path, access, R_OK # W_OK for write permission. #python2默认编码ascii 使用此方法改为utf8 reload(sys) sys.setdefaultencoding('utf8') # 流程 # 1....
23.202073
151
0.684457
0
0
0
0
0
0
0
0
2,687
0.496857
d500b30356c6d10f466377f593728e458801fa4b
556
py
Python
manage.py
g90tony/tonys-perspective
c0296d8aabe7f170368341907e6b4015787347cd
[ "MIT" ]
null
null
null
manage.py
g90tony/tonys-perspective
c0296d8aabe7f170368341907e6b4015787347cd
[ "MIT" ]
null
null
null
manage.py
g90tony/tonys-perspective
c0296d8aabe7f170368341907e6b4015787347cd
[ "MIT" ]
null
null
null
from flask_script import Manager, Server from flask_migrate import Migrate, MigrateCommand from app import create_app, db from app.models import User, Article, Category, Comment, Quote app = create_app('development') manager = Manager(app) migrate= Migrate(app, db) manager.add_command('db', MigrateCommand) manager...
26.47619
117
0.757194
0
0
0
0
158
0.284173
0
0
35
0.06295
d5025b15829b19f379302daca23271668cadecc4
389
py
Python
setup.py
alvations/mindset
05180a4bbf3162d97ffa148b0babc920764c6b1d
[ "MIT" ]
2
2020-11-09T23:13:58.000Z
2020-11-12T12:13:14.000Z
setup.py
alvations/mindset
05180a4bbf3162d97ffa148b0babc920764c6b1d
[ "MIT" ]
null
null
null
setup.py
alvations/mindset
05180a4bbf3162d97ffa148b0babc920764c6b1d
[ "MIT" ]
null
null
null
from distutils.core import setup import setuptools setup( name = 'mindset', packages = ['mindset'], version = '0.0.1', description = 'Mindset', author = '', url = 'https://github.com/alvations/mindset', keywords = [], classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approv...
21.611111
47
0.624679
0
0
0
0
0
0
0
0
187
0.48072
d503452c7afa0f6d1b9b7a4cde6e1cea9bbc9d99
2,082
py
Python
cir_project/cirp_user/scripts/camera_user.py
sprkrd/UPC-MAI-CIR
f9a6ef6e9c95534c1fdea6f9023c939bd89c2df8
[ "MIT" ]
1
2021-11-18T13:34:48.000Z
2021-11-18T13:34:48.000Z
cir_project/cirp_user/scripts/camera_user.py
sprkrd/UPC-MAI-CIR
f9a6ef6e9c95534c1fdea6f9023c939bd89c2df8
[ "MIT" ]
null
null
null
cir_project/cirp_user/scripts/camera_user.py
sprkrd/UPC-MAI-CIR
f9a6ef6e9c95534c1fdea6f9023c939bd89c2df8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String from peyetribe import EyeTribe import time from cir_user.srv import UserAction, UserActionResponse TH1 = 1280*(1.0/3) TH2 = 1280*(2.0/3) IP = "192.168.101.72" class CameraUserServer: def __init__(self): rospy.init_node("talker") ...
28.135135
86
0.56292
1,592
0.764649
0
0
0
0
0
0
830
0.398655
d50550ea66d6bcca0e8c6d873de65a99c1e874cd
833
py
Python
captcha_bypass.py
ruroot/captcha_bypass
6457d7bb6152ddd8d784bac8cd99488f2534013e
[ "MIT" ]
null
null
null
captcha_bypass.py
ruroot/captcha_bypass
6457d7bb6152ddd8d784bac8cd99488f2534013e
[ "MIT" ]
null
null
null
captcha_bypass.py
ruroot/captcha_bypass
6457d7bb6152ddd8d784bac8cd99488f2534013e
[ "MIT" ]
null
null
null
import requests cookie = {'_ga':'GA1.2.1373385590.1498799275','_gid':'GA1.2.867459789.1498799275','_gat':'1','PHPSESSID':'1kr76vh1164sbgeflnngimi321'} url = 'http://captcha.ringzer0team.com:7421' headers = {'Authorization':'Basic Y2FwdGNoYTpRSmM5VTZ3eEQ0U0ZUMHU='} for i in range(1000): # get captacha r = requests.g...
55.533333
134
0.727491
0
0
0
0
0
0
0
0
429
0.515006
d505765173ba8ae48d059a5d6519553fdbd987f4
685
py
Python
antlr-python/ChatErrorListener.py
evilkirin/antlr-mega-tutorial
91135a7b2fc9e99b9fc500b290a4a2893d328bf8
[ "MIT" ]
138
2017-03-08T14:29:54.000Z
2020-04-25T23:00:26.000Z
antlr-python/ChatErrorListener.py
evilkirin/antlr-mega-tutorial
91135a7b2fc9e99b9fc500b290a4a2893d328bf8
[ "MIT" ]
17
2020-05-08T10:10:39.000Z
2022-01-21T20:40:16.000Z
lifestyle/antlr-mega-tutorial-master/antlr-python/ChatErrorListener.py
pennz/antlr_lifestyle
e97f0a2e125fc851b637ef854e5d4968491acb42
[ "BSD-3-Clause" ]
38
2017-03-15T02:44:17.000Z
2020-03-30T10:24:15.000Z
import sys from antlr4 import * from ChatParser import ChatParser from ChatListener import ChatListener from antlr4.error.ErrorListener import * import io class ChatErrorListener(ErrorListener): def __init__(self, output): self.output = output self._symbol = '' def syntaxError(sel...
29.782609
85
0.646715
529
0.772263
0
0
67
0.09781
0
0
2
0.00292
d50622fc11746b41527aa6f48d3bb22b36bbce6d
568
py
Python
home/urls.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
11
2020-10-06T13:50:46.000Z
2021-02-27T20:19:17.000Z
home/urls.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
174
2020-10-13T18:25:34.000Z
2022-01-17T09:49:18.000Z
home/urls.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
46
2020-10-14T11:27:20.000Z
2022-01-31T17:48:12.000Z
from django.urls import path from . import views urlpatterns = [ path("", views.home, name="home"), path("faq/", views.faq, name="faq"), path("plagiarism_policy/", views.plagiarism_policy, name="plagiarism_policy"), path("privacy_policy/", views.privacy_policy, name="privacy_policy"), path...
33.411765
79
0.68662
0
0
0
0
0
0
0
0
191
0.336268
d5068f56351c172f868906780ca7bfa27fd8680d
13,750
py
Python
ogreyMaterialTool.py
opengd/OgreyTool
42e169fe530458084c20d6fb3e7a2dc78f1ac487
[ "MIT" ]
null
null
null
ogreyMaterialTool.py
opengd/OgreyTool
42e169fe530458084c20d6fb3e7a2dc78f1ac487
[ "MIT" ]
null
null
null
ogreyMaterialTool.py
opengd/OgreyTool
42e169fe530458084c20d6fb3e7a2dc78f1ac487
[ "MIT" ]
null
null
null
import wx from ogreyPopupMenu import * from ogreyOgreManagers import * from ogreyTool import * class Singleton(type): def __init__(self, *args): type.__init__(self, *args) self._instances = {} def __call__(self, *args): if not args in self._instances: self._instan...
43.650794
203
0.583782
13,445
0.977818
0
0
0
0
0
0
4,040
0.293818
d506de8e02af069210ffd80855347f0a1726c56d
2,366
py
Python
utils/nlp.py
dominikmn/one-million-posts
a628e88874ca7134a7628d88de169e8520f8deba
[ "MIT" ]
null
null
null
utils/nlp.py
dominikmn/one-million-posts
a628e88874ca7134a7628d88de169e8520f8deba
[ "MIT" ]
95
2021-03-26T14:37:37.000Z
2021-09-07T08:26:03.000Z
utils/nlp.py
dominikmn/one-million-posts
a628e88874ca7134a7628d88de169e8520f8deba
[ "MIT" ]
2
2021-04-19T15:43:57.000Z
2021-04-19T15:57:47.000Z
import nltk nltk.download('stopwords') from nltk.corpus import stopwords stopwords=stopwords.words('german') nltk.download('punkt') from nltk.stem.snowball import SnowballStemmer import spacy from spacy_iwnlp import spaCyIWNLP nlp=spacy.load('de') #You need to download the 'de'-module in advance. This will be done auto...
38.16129
181
0.695689
0
0
0
0
0
0
0
0
1,047
0.442519
d5079b7e4434645da0fb5e3ffaa6425629f4d22f
2,960
py
Python
heat/engine/resources/__init__.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/__init__.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/__init__.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
31.827957
79
0.731757
0
0
121
0.040878
0
0
0
0
926
0.312838
d509b5f72e083aa61cb8b128a7291eccbddaaf89
858
py
Python
research/02_TrafficSignClassification/02_CarNDTrafficSignClassifier/source/path/run.py
LewisCollum/frostAV
f17966b2646640ee1d29f80f951f9622fdbbb78a
[ "MIT" ]
5
2020-04-20T09:56:59.000Z
2022-01-10T15:51:02.000Z
research/02_TrafficSignClassification/02_CarNDTrafficSignClassifier/source/path/run.py
LewisCollum/frostAV
f17966b2646640ee1d29f80f951f9622fdbbb78a
[ "MIT" ]
1
2020-08-26T01:04:55.000Z
2020-08-26T02:00:14.000Z
research/02_TrafficSignClassification/02_CarNDTrafficSignClassifier/source/path/run.py
LewisCollum/frostAV
f17966b2646640ee1d29f80f951f9622fdbbb78a
[ "MIT" ]
2
2020-01-21T18:58:53.000Z
2020-05-20T04:24:40.000Z
import os from datetime import datetime directory = "../runs" current = os.path.join(directory, ".current") class Run: def __init__(self, runName): run = os.path.join(directory, runName) self.model = os.path.join(run, "model.h5") self.log = os.path.join(run, "log.csv") self.accurac...
26.8125
61
0.635198
368
0.428904
0
0
0
0
0
0
110
0.128205
d50ac85d5573725c47a9716c89b128de25b4d933
415
py
Python
flask_code/day02_request/12xss.py
haitaoss/flask_study
c8431f17c1156b7086d85c914edbfb5293ae50f1
[ "Apache-2.0" ]
null
null
null
flask_code/day02_request/12xss.py
haitaoss/flask_study
c8431f17c1156b7086d85c914edbfb5293ae50f1
[ "Apache-2.0" ]
null
null
null
flask_code/day02_request/12xss.py
haitaoss/flask_study
c8431f17c1156b7086d85c914edbfb5293ae50f1
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 from flask import Flask, render_template, request # 创建flask应用 app = Flask(__name__) # 视图函数 @app.route('/xss', methods=['POST', 'GET']) def xss(): text = "" if request.method == 'POST': text = request.form.get('text') return render_template('xss.html', text=text) # 启动flas应用 if ...
17.291667
50
0.626506
0
0
0
0
191
0.43508
0
0
140
0.318907
d50c7c2f1fa783afbf677f62ca8de9f21c378df9
1,543
py
Python
mk312/constants.py
bkifft/mk312com
a36fd20bc8518f81e2de23c9fff28296cb9cb6d6
[ "MIT" ]
2
2022-03-12T14:09:46.000Z
2022-03-16T21:44:34.000Z
mk312/constants.py
bkifft/mk312com
a36fd20bc8518f81e2de23c9fff28296cb9cb6d6
[ "MIT" ]
1
2021-04-15T17:58:43.000Z
2021-04-15T17:58:43.000Z
mk312/constants.py
Rubberfate/mk312com
a36fd20bc8518f81e2de23c9fff28296cb9cb6d6
[ "MIT" ]
2
2021-03-16T20:32:59.000Z
2022-03-12T14:30:16.000Z
# -*- coding: utf-8 -*- # Memory addresses ADDRESS_R15 = 0x400f ADDRESS_ADC_POWER = 0x4062 ADDRESS_ADC_BATTERY = 0x4063 ADDRESS_LEVELA = 0x4064 ADDRESS_LEVELB = 0x4065 ADDRESS_PUSH_BUTTON = 0x4068 ADDRESS_COMMAND_1 = 0x4070 ADDRESS_COMMAND_2 = 0x4071 ADDRESS_MA_MIN_VALUE = 0x4086 ADDRESS_MA_MAX_VALUE = 0x4087 ADDRESS_...
20.302632
38
0.813999
0
0
0
0
0
0
0
0
116
0.075178
d50e3b87908d0499a5a93735ec1c8322d076f909
3,359
py
Python
nerlogparser/grammar/bluegenelog.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
5
2018-12-20T00:51:30.000Z
2022-02-08T17:38:33.000Z
nerlogparser/grammar/bluegenelog.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
1
2022-02-16T08:49:51.000Z
2022-02-17T02:19:01.000Z
nerlogparser/grammar/bluegenelog.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
8
2020-03-20T11:10:16.000Z
2022-01-28T16:46:15.000Z
import os import csv from pyparsing import Word, alphas, Combine, nums, Regex, ParseException from collections import OrderedDict class BlueGeneLog(object): def __init__(self, dataset): self.dataset = dataset self.bluegenelog_grammar = self.__get_bluegenelog_grammar() @staticmethod def __...
33.929293
115
0.572492
2,578
0.76749
0
0
1,351
0.402203
0
0
1,208
0.359631
d50eb66f6a2f65dfb75bacdcb2e90ded759fc355
2,106
py
Python
wagtailcomments/views.py
takeflight/wagtailcomments
941ae2f16fccb867a33d2ed4c21b8e5e04af712d
[ "BSD-3-Clause" ]
7
2016-09-28T10:51:44.000Z
2018-09-29T08:27:23.000Z
wagtailcomments/views.py
takeflight/wagtailcomments
941ae2f16fccb867a33d2ed4c21b8e5e04af712d
[ "BSD-3-Clause" ]
null
null
null
wagtailcomments/views.py
takeflight/wagtailcomments
941ae2f16fccb867a33d2ed4c21b8e5e04af712d
[ "BSD-3-Clause" ]
2
2017-05-21T08:41:19.000Z
2018-08-06T13:50:59.000Z
from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.http import Http404, HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.template.response import TemplateResponse from wagtailcomments import registry from wagtailcomments.models impo...
42.979592
79
0.727445
0
0
0
0
0
0
0
0
649
0.308167
d50f0e9cbb19e05d48c36acf153af68b7038da01
2,468
py
Python
open_mafia_engine/built_in/roleblock.py
open-mafia/open_mafia_engine
19296748757a4a18d395a940d30aa48aaac9dd7a
[ "Apache-2.0" ]
9
2018-08-19T21:47:00.000Z
2021-11-30T20:46:09.000Z
open_mafia_engine/built_in/roleblock.py
open-mafia/open_mafia_engine
19296748757a4a18d395a940d30aa48aaac9dd7a
[ "Apache-2.0" ]
2
2021-05-16T00:12:39.000Z
2021-05-16T18:36:47.000Z
open_mafia_engine/built_in/roleblock.py
open-mafia/open_mafia_engine
19296748757a4a18d395a940d30aa48aaac9dd7a
[ "Apache-2.0" ]
2
2020-11-28T06:13:10.000Z
2021-05-16T22:23:22.000Z
from typing import List, Optional from open_mafia_engine.core.all import ( Ability, Action, Actor, ATBase, CancelAction, EPreAction, Game, GameObject, handler, ) from .auxiliary import TempPhaseAux class RoleBlockerAux(TempPhaseAux): """Aux object that blocks actions made by ...
24.929293
84
0.598865
2,041
0.826985
0
0
675
0.273501
0
0
603
0.244327
d5136a0af274a53470c429bc113f5296b87d7800
6,836
py
Python
covid_data/daily_updates/update_outbreak.py
gunnarsundberg/covid-tracker
012f48f4fbeeff6123456196349a4122f927416a
[ "MIT" ]
null
null
null
covid_data/daily_updates/update_outbreak.py
gunnarsundberg/covid-tracker
012f48f4fbeeff6123456196349a4122f927416a
[ "MIT" ]
5
2021-03-30T14:37:56.000Z
2021-10-11T17:33:20.000Z
covid_data/daily_updates/update_outbreak.py
gunnarsundberg/covid-tracker
012f48f4fbeeff6123456196349a4122f927416a
[ "MIT" ]
null
null
null
import os import io import math import requests from datetime import datetime, date, timedelta import pandas as pd from covid_data.models import State, County, Outbreak, OutbreakCumulative from covid_data.utilities import get_datetime_from_str, api_request_from_str # Some functions only work for specific region types ...
42.459627
304
0.599912
0
0
0
0
0
0
0
0
1,720
0.251609
d51442e5802a7e7a7d3c8bda504b303ddbb541d1
483
py
Python
books/PythonAutomate/webscrap/using_bs4.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/webscrap/using_bs4.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/webscrap/using_bs4.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import bs4 with open("example.html") as f: # 텍스트 파일로 부터 BeautifulSoup 객체 생성 soup = bs4.BeautifulSoup(f.read(), "lxml") print(type(soup)) # <class 'bs4.BeautifulSoup'> # id가 author인 태그 리스트 조회 elems = soup.select("#author") print(type(elems)) # <class 'list'> print(type(elems[0])) # <class 'bs4.element.Tag'...
19.32
50
0.654244
0
0
0
0
0
0
0
0
334
0.557596
d5149d3b5b3f45cac244c29fa5eaa4c2f9bbaeff
109
py
Python
__init__.py
dl-fmi/bottleneck
bc8795731d148839b1fd6bf6e510abc7968a669d
[ "BSD-2-Clause" ]
null
null
null
__init__.py
dl-fmi/bottleneck
bc8795731d148839b1fd6bf6e510abc7968a669d
[ "BSD-2-Clause" ]
null
null
null
__init__.py
dl-fmi/bottleneck
bc8795731d148839b1fd6bf6e510abc7968a669d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 13 11:34:33 2019 @author: manninan """
15.571429
35
0.614679
0
0
0
0
0
0
0
0
107
0.981651
d5155bb3abd235bf78598d767115ae4c2571c009
55
py
Python
pytorchltr/__init__.py
rjagerman/pytorchltr
625416e1e7d21fb2bbc485914704fc2e55274556
[ "MIT" ]
37
2020-05-24T13:40:52.000Z
2022-03-17T09:00:52.000Z
pytorchltr/__init__.py
SuperXiang/pytorchltr
625416e1e7d21fb2bbc485914704fc2e55274556
[ "MIT" ]
22
2020-05-25T11:35:38.000Z
2021-03-20T04:08:07.000Z
pytorchltr/__init__.py
SuperXiang/pytorchltr
625416e1e7d21fb2bbc485914704fc2e55274556
[ "MIT" ]
4
2020-10-16T13:14:16.000Z
2022-01-31T17:18:20.000Z
r""" .. include::../README.md :start-line: 1 """
7.857143
24
0.472727
0
0
0
0
0
0
0
0
54
0.981818
d51574f35003d93d91b7a70eebae9e1bc40963ce
8,548
py
Python
ImageNet/lib/validation.py
mhilmiasyrofi/AT_HE
c63c36a0661d826e58eb355914c6758f85981ff3
[ "Apache-2.0" ]
107
2020-06-15T09:55:11.000Z
2020-12-20T11:27:11.000Z
pytorch_ares/third_party/AT_HE/ImageNet/lib/validation.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
7
2020-06-14T03:00:18.000Z
2020-12-07T07:10:10.000Z
pytorch_ares/third_party/AT_HE/ImageNet/lib/validation.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
19
2020-06-14T08:35:33.000Z
2020-12-19T13:43:41.000Z
from utils import * import torch import sys import numpy as np import time import torchvision from torch.autograd import Variable import torchvision.transforms as transforms import torchvision.datasets as datasets def validate_pgd(val_loader, model, criterion, K, step, configs, logger, save_image=False, HE=False): ...
37.491228
167
0.565746
0
0
0
0
0
0
0
0
1,464
0.171268
d515e1181cd1a83ccea9dcf3b0c0c3bdba283864
2,493
py
Python
scripts/merge.py
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
2
2021-01-17T07:31:36.000Z
2021-07-14T08:36:50.000Z
scripts/merge.py
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
null
null
null
scripts/merge.py
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """This is a script for making graphs of constant rank instances with varying rank Usage: <script> <src_dir> <dest_dir> Where <src_dir> is a directory with subfolders ``` constant02 constant04 ... ``` And each subfolder has a file `data.csv` with the CXY run in it. This combines the graphs o...
24.683168
112
0.638187
0
0
0
0
0
0
0
0
1,192
0.478139
1d0fdb41642d7e059e2af9967d0a5707e8be001c
1,829
py
Python
StationeryBG.py
CharlesW1970/Handright
cda9400232e1815f7137ab3bd86ded8e307f35c7
[ "BSD-3-Clause" ]
1
2020-10-14T06:05:35.000Z
2020-10-14T06:05:35.000Z
StationeryBG.py
CharlesW1970/Handright
cda9400232e1815f7137ab3bd86ded8e307f35c7
[ "BSD-3-Clause" ]
null
null
null
StationeryBG.py
CharlesW1970/Handright
cda9400232e1815f7137ab3bd86ded8e307f35c7
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from PIL import Image, ImageFont from handright import Template, handwrite text = """ 这是一段自动生成的笔迹,这是一段自动生成的笔迹。这是一段自动生成的笔迹,这是一段自动生成的笔迹。这是一段自动生成的笔迹,这是一段自动生成的笔迹。这是一段自动生成的笔迹,这是一段自动生成的笔迹。这是一段自动生成的笔迹,这是一段自动生成的笔迹。这是一段自动生成的笔迹,这是一段自动生成的笔迹。这是一段自动生成的笔迹,这是一段自动生成的笔迹。 这是一段自动生成的笔迹,这是一段自动生成的笔迹。这是一段自动生成的笔迹,这是...
43.547619
172
0.783488
0
0
0
0
0
0
0
0
2,901
0.789818
1d117bf0adf1a9cc2baa3df6d95a6f65e94df2bb
4,627
py
Python
api/metadata/views.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/metadata/views.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/metadata/views.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
from django.conf import settings from hawkrest import HawkAuthentication from rest_framework import generics, status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from .constants import ( BARRIER_PENDING, BARRIER_SOURCE, BarrierStatus, BARRIER_CHA...
37.92623
79
0.706938
3,593
0.776529
0
0
0
0
0
0
604
0.130538
1d14d1a8f4768aa5af1d7409da82dc30b96fd135
367
py
Python
test_memory.py
dbstein/python_examples
664142b5f8e5f58c04f1d588bc6659221dc6b0a9
[ "Apache-2.0" ]
null
null
null
test_memory.py
dbstein/python_examples
664142b5f8e5f58c04f1d588bc6659221dc6b0a9
[ "Apache-2.0" ]
null
null
null
test_memory.py
dbstein/python_examples
664142b5f8e5f58c04f1d588bc6659221dc6b0a9
[ "Apache-2.0" ]
null
null
null
import numpy as np from numexpr_kernel import numexpr_kernel from numba_kernel import numba_kernel N = 10000 x = np.random.rand(N) y = np.random.rand(N) z = np.random.rand(N) tau = np.random.rand(N) r1 = numexpr_kernel(x, y, z, tau) r1 = numexpr_kernel(x, y, z, tau) r2 = np.zeros(N, dtype=float) numba_kernel(x, y, z,...
22.9375
41
0.700272
0
0
0
0
0
0
0
0
0
0
1d168df70c241bffc650db1634940f97996ff8f9
151
py
Python
8kyu/grasshopper_combine_strings.py
nhsz/codewars
82703959e910254d6feff4162f78c6dbd7a1c3ed
[ "MIT" ]
1
2018-12-02T23:04:38.000Z
2018-12-02T23:04:38.000Z
8kyu/grasshopper_combine_strings.py
nhsz/codewars
82703959e910254d6feff4162f78c6dbd7a1c3ed
[ "MIT" ]
null
null
null
8kyu/grasshopper_combine_strings.py
nhsz/codewars
82703959e910254d6feff4162f78c6dbd7a1c3ed
[ "MIT" ]
null
null
null
# http://www.codewars.com/kata/55f73f66d160f1f1db000059/ def combine_names(first_name, last_name): return "{0} {1}".format(first_name, last_name)
30.2
56
0.754967
0
0
0
0
0
0
0
0
65
0.430464
1d17af49d97762d297a5faa5d4a099f944bdc291
1,125
py
Python
PG/project/myapp/urls.py
vishalimpinge7696/vishal_pg
c881b8d6d784b764700d2068226cb725c16f9490
[ "Apache-2.0" ]
null
null
null
PG/project/myapp/urls.py
vishalimpinge7696/vishal_pg
c881b8d6d784b764700d2068226cb725c16f9490
[ "Apache-2.0" ]
null
null
null
PG/project/myapp/urls.py
vishalimpinge7696/vishal_pg
c881b8d6d784b764700d2068226cb725c16f9490
[ "Apache-2.0" ]
null
null
null
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
37.5
77
0.68
0
0
0
0
0
0
0
0
766
0.680889
1d1827406da3b2f551eb53c92ceb578ffb31e0ff
3,425
py
Python
full_test_data_svm_rbf.py
HarikrishnanNB/occd_experiments
e078030348133a564400a5b27057400c69ddfd92
[ "Apache-2.0" ]
null
null
null
full_test_data_svm_rbf.py
HarikrishnanNB/occd_experiments
e078030348133a564400a5b27057400c69ddfd92
[ "Apache-2.0" ]
null
null
null
full_test_data_svm_rbf.py
HarikrishnanNB/occd_experiments
e078030348133a564400a5b27057400c69ddfd92
[ "Apache-2.0" ]
1
2021-02-14T06:14:47.000Z
2021-02-14T06:14:47.000Z
""" This module give the classification results for test data using SVM with RBF kernel. Email: harikrishnannb07@gmail.com Dtd: 2 - August - 2020 Parameters ---------- classification_type : string DESCRIPTION - classification_type == "binary_class" loads binary classification artificial data. class...
40.77381
141
0.771095
0
0
0
0
0
0
0
0
1,692
0.494015
1d190a8611651be6c78a5e9a052e5a0ee7efbe5c
2,115
py
Python
sci_analysis/preferences/preferences.py
cmmorrow/sci-analysis
de65ba29fe210eb950daa3dbc2e956963a4770ef
[ "MIT" ]
17
2017-05-10T18:25:36.000Z
2021-12-23T14:43:49.000Z
sci_analysis/preferences/preferences.py
cmmorrow/sci-analysis
de65ba29fe210eb950daa3dbc2e956963a4770ef
[ "MIT" ]
57
2016-08-22T23:58:05.000Z
2019-07-31T06:54:22.000Z
sci_analysis/preferences/preferences.py
cmmorrow/sci-analysis
de65ba29fe210eb950daa3dbc2e956963a4770ef
[ "MIT" ]
null
null
null
class DefaultPreferences(type): """The type for Default Preferences that cannot be modified""" def __setattr__(cls, key, value): if key == "defaults": raise AttributeError("Cannot override defaults") else: return type.__setattr__(cls, key, value) def __delattr__(c...
27.467532
114
0.48227
2,106
0.995745
0
0
0
0
0
0
480
0.22695
1d1ad6315c73b6924e164f03e7e42156df8826eb
1,224
py
Python
cogs/WelcomeCog.py
tandemdude/DevilDonkey
be2c561f73c42aa2d5016e186bef2538658475d5
[ "MIT" ]
1
2021-08-22T17:34:41.000Z
2021-08-22T17:34:41.000Z
cogs/WelcomeCog.py
tandemdude/DevilDonkey
be2c561f73c42aa2d5016e186bef2538658475d5
[ "MIT" ]
null
null
null
cogs/WelcomeCog.py
tandemdude/DevilDonkey
be2c561f73c42aa2d5016e186bef2538658475d5
[ "MIT" ]
null
null
null
# User welcome extension coded by github u/tandemdude # https://github.com/tandemdude import discord import json from discord.ext import commands class Welcome(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_member_join(self, member): with open('config.json') as ...
29.142857
97
0.747549
1,033
0.841891
0
0
955
0.778321
903
0.735941
261
0.212714
1d1b331ff1ab098a4c5dbc7bd53b72d465dadc1d
293
py
Python
configurations.py
KumundzhievMaxim/WearingGlassesClassification
ae78a258735e852a1fbb9d9d9876f9ea74320153
[ "MIT" ]
1
2021-06-05T13:10:07.000Z
2021-06-05T13:10:07.000Z
configurations.py
KumundzhievMaxim/WearingGlassesClassification
ae78a258735e852a1fbb9d9d9876f9ea74320153
[ "MIT" ]
null
null
null
configurations.py
KumundzhievMaxim/WearingGlassesClassification
ae78a258735e852a1fbb9d9d9876f9ea74320153
[ "MIT" ]
null
null
null
# ------------------------------------------ # # Program created by Maksim Kumundzhiev # # # email: kumundzhievmaxim@gmail.com # github: https://github.com/KumundzhievMaxim # ------------------------------------------- BATCH_SIZE = 10 IMG_SIZE = (160, 160) MODEL_PATH = 'checkpoints/model'
20.928571
45
0.511945
0
0
0
0
0
0
0
0
231
0.788396
1d1cbe4a45b8515cd47580925c5d9d6956f0f60a
10,247
py
Python
conditional/models/migrate.py
adamhb123/conditional
7193443106f83e8260b61535b6d6a253f01133f8
[ "MIT" ]
2
2020-06-27T09:11:59.000Z
2020-12-27T17:49:50.000Z
conditional/models/migrate.py
adamhb123/conditional
7193443106f83e8260b61535b6d6a253f01133f8
[ "MIT" ]
null
null
null
conditional/models/migrate.py
adamhb123/conditional
7193443106f83e8260b61535b6d6a253f01133f8
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker from conditional import db from conditional.models import models, old_models as zoo import flask_migrate # pylint: skip-file old_engine = None zoo_session = None # Takes in param of SqlAlchemy Database Connection String def...
29.530259
103
0.539865
0
0
0
0
0
0
0
0
2,055
0.200547
1d1e074b61872504f96ce32330f37d8ab5634c26
789
py
Python
ch04/cross_entropy_error.py
sankaku/deep-learning-from-scratch-py
70ec531578f099136744d2c1ec11959b239c3854
[ "MIT" ]
null
null
null
ch04/cross_entropy_error.py
sankaku/deep-learning-from-scratch-py
70ec531578f099136744d2c1ec11959b239c3854
[ "MIT" ]
null
null
null
ch04/cross_entropy_error.py
sankaku/deep-learning-from-scratch-py
70ec531578f099136744d2c1ec11959b239c3854
[ "MIT" ]
null
null
null
import numpy as np def cross_entropy_error(y, t): delta = 1e-7 # to avoid log(0) return - np.sum(t * np.log(y + delta)) if __name__ == '__main__': t = np.array([0, 1, 0, 0, 0, 0, 0, 0, 0, 0]) y1 = np.array([1, 0, 0, 0, 0, 0, 0, 0, 0, 0]) y2 = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) y3 = n...
31.56
61
0.536122
0
0
0
0
0
0
0
0
183
0.231939
1d1e45fe56dabcf2ddf962ee15b1e9639fc43965
466
py
Python
day-02/part-2/david.py
badouralix/adventofcode-2018
543ce39d4eeb7d9d695459ffadca001a8c56386d
[ "MIT" ]
31
2018-12-01T00:43:40.000Z
2020-05-30T05:18:59.000Z
day-02/part-2/david.py
badouralix/adventofcode-2018
543ce39d4eeb7d9d695459ffadca001a8c56386d
[ "MIT" ]
14
2018-12-01T12:14:26.000Z
2021-05-07T22:41:47.000Z
day-02/part-2/david.py
badouralix/adventofcode-2018
543ce39d4eeb7d9d695459ffadca001a8c56386d
[ "MIT" ]
10
2018-12-01T23:38:34.000Z
2020-12-28T13:36:10.000Z
from tool.runners.python import SubmissionPy class DavidSubmission(SubmissionPy): def bucket_key(self, w, i): return w[:i] + w[i+1:] def run(self, s): words = s.split("\n") n = len(words[0]) buckets = [set() for i in range(n)] for w in words: for i in range(...
25.888889
44
0.48927
418
0.896996
0
0
0
0
0
0
4
0.008584
1d20d0efe9e2afc5c843ccc72c38d5f99d5237b5
3,653
py
Python
Plug-ins/PlexSportsAgent.bundle/Contents/Code/Teams/NFL/ProFootballReferenceFranchiseAdapter.py
waldosax/PlexSports
404058921e4be02b93ad155bdaef768ff917620e
[ "MIT" ]
5
2021-07-09T01:05:47.000Z
2021-09-06T02:23:12.000Z
Plug-ins/PlexSportsAgent.bundle/Contents/Code/Teams/NFL/ProFootballReferenceFranchiseAdapter.py
waldosax/PlexSports
404058921e4be02b93ad155bdaef768ff917620e
[ "MIT" ]
1
2022-01-08T04:04:56.000Z
2022-01-08T04:04:56.000Z
Plug-ins/PlexSportsAgent.bundle/Contents/Code/Teams/NFL/ProFootballReferenceFranchiseAdapter.py
waldosax/PlexSports
404058921e4be02b93ad155bdaef768ff917620e
[ "MIT" ]
null
null
null
# Pro-Football-Reference.com # TEAMS import re, os import uuid import json from datetime import datetime, date, time from bs4 import BeautifulSoup import bs4 from Constants import * from PathUtils import * from PluginSupport import * from Serialization import * from StringUtils import * import ProFoo...
29.224
123
0.636463
0
0
0
0
0
0
0
0
894
0.24473
1d21e44ef2cd9394beeecb747e4069887cb35e0e
9,565
py
Python
KfoldBERT.py
JamesUOA/K-Fold-CrossValidation
451b9ce3cd529c450922d52d436e6983f52b6fe0
[ "Apache-2.0" ]
1
2020-10-25T03:43:57.000Z
2020-10-25T03:43:57.000Z
KfoldBERT.py
JamesUOA/K-Fold-CrossValidation
451b9ce3cd529c450922d52d436e6983f52b6fe0
[ "Apache-2.0" ]
null
null
null
KfoldBERT.py
JamesUOA/K-Fold-CrossValidation
451b9ce3cd529c450922d52d436e6983f52b6fe0
[ "Apache-2.0" ]
null
null
null
import torch import numpy as np import time import datetime import random from Kfold import KFold from split_data import DataManager from transformers import BertTokenizer from transformers import BertTokenizer from torch.utils.data import TensorDataset, random_split from torch.utils.data import DataLoader, RandomSamp...
40.529661
118
0.540408
9,086
0.949922
0
0
0
0
0
0
2,022
0.211396
1d224808f2a6914ef8278b9e81b293979d0a85e1
7,957
py
Python
kdc/kdc.py
cesium12/webathena
3ccd870bf7543966e613cf36dbbbb1aabf53e581
[ "MIT" ]
null
null
null
kdc/kdc.py
cesium12/webathena
3ccd870bf7543966e613cf36dbbbb1aabf53e581
[ "MIT" ]
null
null
null
kdc/kdc.py
cesium12/webathena
3ccd870bf7543966e613cf36dbbbb1aabf53e581
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylint: disable=invalid-name """ Web-based proxy to a Kerberos KDC for Webathena. """ import base64 import json import os import select import socket import dns.resolver from pyasn1.codec.der import decoder as der_decoder from pyasn1.codec.der import encoder as der_encoder from pyasn1.error im...
34.150215
98
0.613045
5,727
0.719744
0
0
1,110
0.1395
0
0
2,574
0.323489
1d248c7603b5f2ad59f69f3e1de31b7ccc44d34b
1,980
py
Python
dedupsqlfs/db/migrations/m20171103001.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
22
2015-04-09T09:00:00.000Z
2022-03-23T00:16:04.000Z
dedupsqlfs/db/migrations/m20171103001.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
119
2015-02-11T21:39:27.000Z
2021-07-27T23:04:49.000Z
dedupsqlfs/db/migrations/m20171103001.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
7
2016-03-16T11:53:45.000Z
2022-02-24T13:47:31.000Z
# -*- coding: utf8 -*- # # DB migration 001 by 2017-11-03 # # New statistics for subvolume - root diff in blocks / bytes # __author__ = 'sergey' __NUMBER__ = 20171103001 def run(manager): """ :param manager: Database manager :type manager: dedupsqlfs.db.sqlite.manager.DbManager|dedupsqlfs.db.mysql.manage...
30
101
0.622222
0
0
0
0
0
0
0
0
862
0.435354
1d268f5884d3edaa2ebd73f6bea09ab2e7e7400f
582
py
Python
tests/test_keywords.py
VeerendraNathLukkani/pytest_test
c39a1a7e74d90aebeb30797a61d0e491942557e8
[ "Apache-2.0" ]
51
2018-04-26T09:02:38.000Z
2021-11-21T10:57:32.000Z
tests/test_keywords.py
VeerendraNathLukkani/pytest_test
c39a1a7e74d90aebeb30797a61d0e491942557e8
[ "Apache-2.0" ]
39
2017-12-20T14:27:33.000Z
2018-04-05T22:45:12.000Z
tests/test_keywords.py
tierratelematics/pytest-play
c39a1a7e74d90aebeb30797a61d0e491942557e8
[ "Apache-2.0" ]
5
2018-06-30T15:51:39.000Z
2020-04-13T19:31:25.000Z
import pytest @pytest.mark.parametrize("cli_options", [ ('-k', 'notestdeselect',), ]) def test_autoexecute_yml_keywords_skipped(testdir, cli_options): yml_file = testdir.makefile(".yml", """ --- markers: - marker1 - marker2 --- - provider: python type: assert expression: "1" """) assert yml_fi...
22.384615
64
0.685567
0
0
0
0
565
0.97079
0
0
227
0.390034
1d27314ab7fea8509c861472d1fd1cdbc7becfb3
224
py
Python
python/find_largest_divisor.py
codevscolor/codevscolor
35ef9042bdc86f45ef87795c35963b75fb64d5d7
[ "Apache-2.0" ]
6
2019-04-26T03:11:54.000Z
2021-05-07T21:48:29.000Z
python/find_largest_divisor.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
null
null
null
python/find_largest_divisor.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
26
2019-02-23T14:50:46.000Z
2022-02-04T23:44:24.000Z
#1 num = int(input("Enter a number : ")) largest_divisor = 0 #2 for i in range(2, num): #3 if num % i == 0: #4 largest_divisor = i #5 print("Largest divisor of {} is {}".format(num,largest_divisor))
18.666667
64
0.575893
0
0
0
0
0
0
0
0
58
0.258929
1d27a3363d2c72c8ff7fcb62450ccd526ce19065
1,532
py
Python
lintcode/0008-rotate-string.py
runzezhang/Data-Structure-and-Algorithm-Notebook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
1
2020-07-24T03:37:05.000Z
2020-07-24T03:37:05.000Z
lintcode/0008-rotate-string.py
runzezhang/Code-NoteBook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
null
null
null
lintcode/0008-rotate-string.py
runzezhang/Code-NoteBook
15a94d7df2ac1d2ad081004d61433324654085e5
[ "Apache-2.0" ]
null
null
null
# Description # 中文 # English # Given a string(Given in the way of char array) and an offset, rotate the string by offset in place. (rotate from left to right) # offset >= 0 # the length of str >= 0 # Have you met this question in a real interview? # Example # Example 1: # Input: str="abcdefg", offset = 3 # Output:...
30.039216
129
0.640339
379
0.246745
0
0
0
0
0
0
1,238
0.80599
1d28dceef64377a9dfc091e14cb2bc5b41317fb7
5,854
py
Python
CIFAR10/losses.py
ankanbansal/semi-supervised-learning
1aa16e2a7ae10908f70bf9657d26a49bacc50be9
[ "Apache-2.0" ]
null
null
null
CIFAR10/losses.py
ankanbansal/semi-supervised-learning
1aa16e2a7ae10908f70bf9657d26a49bacc50be9
[ "Apache-2.0" ]
1
2018-10-18T18:49:33.000Z
2018-10-18T18:49:33.000Z
CIFAR10/losses.py
ankanbansal/semi-supervised-learning
1aa16e2a7ae10908f70bf9657d26a49bacc50be9
[ "Apache-2.0" ]
1
2018-10-18T20:59:18.000Z
2018-10-18T20:59:18.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import ipdb import time # Clustering penalties class ClusterLoss(torch.nn.Module): """ Cluster loss comes from the SuBiC paper and consists of two losses. First is the Mean Entropy Loss which makes the output to be clos...
41.51773
139
0.625726
4,857
0.829689
0
0
0
0
0
0
2,768
0.472839
1d2a9842977980ab181e2ea21da18fb3dfcb4476
1,134
py
Python
roles/monitoring/files/cluster_monitoring_library.py
dubalda/sv-manager
207824faf96296e9a051f959115f0f60b9a22c0e
[ "Apache-2.0" ]
34
2021-05-08T08:43:05.000Z
2022-03-30T03:03:45.000Z
roles/monitoring/files/cluster_monitoring_library.py
dubalda/sv-manager
207824faf96296e9a051f959115f0f60b9a22c0e
[ "Apache-2.0" ]
5
2021-05-14T19:50:17.000Z
2021-11-23T23:44:44.000Z
roles/monitoring/files/cluster_monitoring_library.py
dubalda/sv-manager
207824faf96296e9a051f959115f0f60b9a22c0e
[ "Apache-2.0" ]
17
2021-05-10T21:42:25.000Z
2022-02-23T18:03:31.000Z
import solana_rpc as rpc def get_apr_from_rewards(rewards_data): result = [] if rewards_data is not None: if 'epochRewards' in rewards_data: epoch_rewards = rewards_data['epochRewards'] for reward in epoch_rewards: result.append({ 'percent_c...
24.652174
81
0.641093
0
0
0
0
0
0
0
0
105
0.092593
1d2bb1990a65ce8c94ef800f677963660b1de9dc
5,545
py
Python
src/ralph_assets/rest/serializers/models_dc_asssets.py
vi4m/ralph_assets
d174e8f769da2d5a335d24bbef5d0ca2e205383c
[ "Apache-2.0" ]
null
null
null
src/ralph_assets/rest/serializers/models_dc_asssets.py
vi4m/ralph_assets
d174e8f769da2d5a335d24bbef5d0ca2e205383c
[ "Apache-2.0" ]
null
null
null
src/ralph_assets/rest/serializers/models_dc_asssets.py
vi4m/ralph_assets
d174e8f769da2d5a335d24bbef5d0ca2e205383c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django.core.urlresolvers import reverse from rest_framework import serializers from ralph_assets.models_dc_assets import ( DataCenter, ...
32.238372
79
0.679892
5,021
0.9055
0
0
0
0
0
0
1,267
0.228494
1d2cf95c0dec50f1e5b2fe20f8276992a649f783
2,163
py
Python
endochrone/ensemble/random_forest.py
nickwood/endochrone
050a2604be82ee4cd5ee6357ea72d3d6d4117277
[ "MIT" ]
2
2020-04-20T15:41:53.000Z
2021-11-25T18:52:20.000Z
endochrone/ensemble/random_forest.py
nickwood/endochrone
050a2604be82ee4cd5ee6357ea72d3d6d4117277
[ "MIT" ]
null
null
null
endochrone/ensemble/random_forest.py
nickwood/endochrone
050a2604be82ee4cd5ee6357ea72d3d6d4117277
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import time from endochrone import Base from endochrone.classification import BinaryDecisionTree __author__ = "nickwood" __copyright__ = "nickwood" __license__ = "mit" class RandomForest(Base): def __init__(self, n_trees, sample_size=None, feat_per_tree=None, ...
31.808824
72
0.626445
1,383
0.63939
0
0
0
0
0
0
118
0.054554
1d2f8198cf092ac9dcd093d637fd09e17f523d59
65
py
Python
projects/microphysics/scripts/config.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
5
2021-03-20T22:42:40.000Z
2021-06-30T18:39:36.000Z
projects/microphysics/scripts/config.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
projects/microphysics/scripts/config.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-06-16T22:04:24.000Z
2021-06-16T22:04:24.000Z
BUCKET = "vcm-ml-experiments" PROJECT = "microphysics-emulation"
21.666667
34
0.769231
0
0
0
0
0
0
0
0
44
0.676923
1d2fc36b7b8ff3b5ce1d287df0ac8a8feac9ce2e
330
py
Python
seatsio/events/objectProperties.py
nathanielwarner/seatsio-python
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
[ "MIT" ]
2
2018-03-29T18:21:01.000Z
2022-02-08T10:49:47.000Z
seatsio/events/objectProperties.py
nathanielwarner/seatsio-python
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
[ "MIT" ]
7
2018-09-03T12:31:52.000Z
2022-02-01T08:25:09.000Z
seatsio/events/objectProperties.py
nathanielwarner/seatsio-python
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
[ "MIT" ]
2
2020-12-22T09:51:07.000Z
2021-12-13T15:37:14.000Z
class ObjectProperties: def __init__(self, object_id, extra_data=None, ticket_type=None, quantity=None): if extra_data: self.extraData = extra_data self.objectId = object_id if ticket_type: self.ticketType = ticket_type if quantity: self.quantity =...
33
84
0.636364
329
0.99697
0
0
0
0
0
0
0
0
1d2fdc2424cb9c6df54a0b050148d4cc5b4644c3
463
py
Python
Leetcode/1096. Brace Expansion II/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/1096. Brace Expansion II/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/1096. Brace Expansion II/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
import re class Solution: def helper(self, expression: str) -> List[str]: s = re.search("\{([^}{]+)\}", expression) if not s: return {expression} g = s.group(1) result = set() for c in g.split(','): result |= self.helper(expression.replace('{' + g + '}', c, ...
22.047619
74
0.542117
450
0.971922
0
0
0
0
0
0
23
0.049676
1d319276207ded7138c364ab240ee169b00896eb
455
py
Python
3-longest-substring-without-repeating-characters.py
Iciclelz/leetcode
e4b698e0161033922851641885fdc6e47f9ce270
[ "Apache-2.0" ]
null
null
null
3-longest-substring-without-repeating-characters.py
Iciclelz/leetcode
e4b698e0161033922851641885fdc6e47f9ce270
[ "Apache-2.0" ]
null
null
null
3-longest-substring-without-repeating-characters.py
Iciclelz/leetcode
e4b698e0161033922851641885fdc6e47f9ce270
[ "Apache-2.0" ]
null
null
null
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if len(s) == 0: return 0 m = 1 for _ in range(len(s)): i = 0 S = set() for x in range(_, len(s)): if s[x] not in S: S.add(s...
23.947368
54
0.316484
455
1
0
0
0
0
0
0
0
0