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
ce456a679b725d44ec91f64a8df14df4d86ae155
1,918
py
Python
src/python/grpcio_tests/tests/interop/_intraop_test_case.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
117
2017-10-02T21:34:35.000Z
2022-03-02T01:49:03.000Z
src/python/grpcio_tests/tests/interop/_intraop_test_case.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
4
2017-10-03T22:45:30.000Z
2018-09-27T07:31:00.000Z
src/python/grpcio_tests/tests/interop/_intraop_test_case.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
24
2017-10-31T12:14:15.000Z
2021-12-11T10:07:46.000Z
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.884615
80
0.728363
1,235
0.6439
0
0
0
0
0
0
796
0.415016
ce460a49da25a43c7d3e4ff3e64726a1574194b1
604
py
Python
scripts/add_vf_ids.py
rajbot/vaccinebot
9b7c13eb248e92a248dbc0e3e9de6d4dc7a2c20a
[ "MIT" ]
2
2021-02-07T05:06:09.000Z
2021-03-02T18:23:07.000Z
scripts/add_vf_ids.py
rajbot/vaccinebot
9b7c13eb248e92a248dbc0e3e9de6d4dc7a2c20a
[ "MIT" ]
null
null
null
scripts/add_vf_ids.py
rajbot/vaccinebot
9b7c13eb248e92a248dbc0e3e9de6d4dc7a2c20a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from airtable import Airtable import csv import os for var in ["AIRTABLE_API_KEY", "AIRTABLE_BASE_ID"]: if os.environ.get(var) is None: sys.exit(f"Must set {var} env var!") api_key = os.environ.get("AIRTABLE_API_KEY") base_id = os.environ.get("AIRTABLE_BASE_ID") airtable = Airtable...
26.26087
71
0.688742
0
0
0
0
0
0
0
0
187
0.309603
ce462fe45d9f73cc50c3b487d621d5b2ad86a06b
99
py
Python
pubmedpy/__init__.py
dhimmel/pubmedpy
9d716768f5ab798ec448154588e4fd99afd7584a
[ "BlueOak-1.0.0" ]
7
2019-11-13T09:14:19.000Z
2022-03-09T01:35:06.000Z
pubmedpy/__init__.py
dhimmel/pubmedpy
9d716768f5ab798ec448154588e4fd99afd7584a
[ "BlueOak-1.0.0" ]
2
2020-08-24T15:05:57.000Z
2020-10-21T04:12:56.000Z
pubmedpy/__init__.py
dhimmel/pubmedpy
9d716768f5ab798ec448154588e4fd99afd7584a
[ "BlueOak-1.0.0" ]
1
2021-02-18T00:01:09.000Z
2021-02-18T00:01:09.000Z
""" # Utilities for interacting with NCBI EUtilities relating to PubMed """ __version__ = "0.0.1"
16.5
67
0.717172
0
0
0
0
0
0
0
0
82
0.828283
ce46ad7566bbdce61b2ab0578c3f8020ac4af53c
945
py
Python
config/logging.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
4
2021-07-19T12:53:21.000Z
2022-01-26T17:45:02.000Z
config/logging.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
20
2021-05-17T12:27:06.000Z
2022-03-30T11:35:26.000Z
config/logging.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
2
2021-09-07T04:19:59.000Z
2022-02-08T15:33:29.000Z
import json import sys import traceback from logging import Handler # Specific logging module for GCP, use json to serialize output -> work better for GKE # Can be used for further customization class GCPHandler(Handler): def emit(self, record): try: message = self.format(record) ...
28.636364
86
0.557672
746
0.789418
0
0
0
0
0
0
210
0.222222
ce4a42074a7c0b3a3d6615721ca72bb43e10e32b
16,095
py
Python
sublimeText3/Packages/SublimeCodeIntel/libs/codeintel2/tdparser.py
MoAnsir/dot_file_2017
5f67ef8f430416c82322ab7e7e001548936454ff
[ "MIT" ]
2
2018-04-24T10:02:26.000Z
2019-06-02T13:53:31.000Z
Data/Packages/SublimeCodeIntel/libs/codeintel2/tdparser.py
Maxize/Sublime_Text_3
be620476b49f9a6ce2ca2cfe825c4e142e7e82b9
[ "Apache-2.0" ]
1
2016-02-10T09:50:09.000Z
2016-02-10T09:50:09.000Z
Packages/SublimeCodeIntel/libs/codeintel2/tdparser.py
prisis/sublime-text-packages
99ae8a5496613e27a75e5bd91723549b21476e60
[ "MIT" ]
2
2019-04-11T04:13:02.000Z
2019-06-02T13:53:33.000Z
""" A simple Top-Down Python expression parser. This parser is based on the "Simple Top-Down Parsing in Python" article by Fredrik Lundh (http://effbot.org/zone/simple-top-down-parsing.htm) These materials could be useful for understanding ideas behind the Top-Down approach: * Top Down Operator Precedence -- Dougla...
27.46587
82
0.491892
5,275
0.327742
1,361
0.08456
8,223
0.510904
0
0
1,929
0.119851
ce4ab2aff6e500e8239e651be0e0851e93f8d29c
597
py
Python
atcoder/abc/abc002_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/abc/abc002_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/abc/abc002_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
from copy import deepcopy N, M = map(int, input().split()) E = [[] for _ in range(N)] for i in range(M): x, y = map(lambda x:int(x)-1, input().split()) E[x].append(y) E[y].append(x) ans = 0 for mask in range(2**N): faction = '' for x in range(N): faction += '1' if mask&(1<<x) else '0' fl...
27.136364
57
0.494137
0
0
0
0
0
0
0
0
14
0.023451
ce4b095948b8f81b5b5833c6dcab9d8f5bd587a5
290
py
Python
advisor/api/urls.py
Sachin-c/api-test
c8242de24375149dcbc14e30b44d9a77d9771034
[ "MIT", "BSD-3-Clause" ]
null
null
null
advisor/api/urls.py
Sachin-c/api-test
c8242de24375149dcbc14e30b44d9a77d9771034
[ "MIT", "BSD-3-Clause" ]
null
null
null
advisor/api/urls.py
Sachin-c/api-test
c8242de24375149dcbc14e30b44d9a77d9771034
[ "MIT", "BSD-3-Clause" ]
null
null
null
from django.urls import path from advisor.api.views import ( # api_advisor_view, api_advisor_view_post, ) app_name = 'advisor' urlpatterns = [ path('admin/advisor/', api_advisor_view_post, name="post"), # path('user/<int:id>/advisor/', api_advisor_view, name="detail"), ]
22.307692
70
0.7
0
0
0
0
0
0
0
0
116
0.4
ce4b6a50f11f5cd0ce57c03afebe02596310a357
405
py
Python
src/utils/config.py
mlrepa/automate-ml-with-dvc
b54a2e4818a991362d304890828df70359bab84a
[ "MIT" ]
4
2021-04-11T17:30:14.000Z
2021-07-27T10:09:53.000Z
src/utils/config.py
mlrepa/automate-ml-with-dvc
b54a2e4818a991362d304890828df70359bab84a
[ "MIT" ]
null
null
null
src/utils/config.py
mlrepa/automate-ml-with-dvc
b54a2e4818a991362d304890828df70359bab84a
[ "MIT" ]
1
2021-09-05T04:15:07.000Z
2021-09-05T04:15:07.000Z
import box from typing import Text import yaml def load_config(config_path: Text) -> box.ConfigBox: """Loads yaml config in instance of box.ConfigBox. Args: config_path {Text}: path to config Returns: box.ConfigBox """ with open(config_path) as config_file: config = yaml....
20.25
54
0.659259
0
0
0
0
0
0
0
0
146
0.360494
ce4c0eaf1f91aac00dd03914e8def1ffd020858d
3,835
py
Python
python/methylnet/visualizations.py
hossein20s/dnaMethylation
eb2c4e14a6d32f6582f54fe39c62e83205f18665
[ "MIT" ]
26
2019-07-11T04:58:24.000Z
2022-02-15T19:31:48.000Z
python/methylnet/visualizations.py
hossein20s/dnaMethylation
eb2c4e14a6d32f6582f54fe39c62e83205f18665
[ "MIT" ]
5
2020-04-30T13:02:13.000Z
2022-03-02T16:41:47.000Z
python/methylnet/visualizations.py
hossein20s/dnaMethylation
eb2c4e14a6d32f6582f54fe39c62e83205f18665
[ "MIT" ]
8
2019-10-08T07:16:09.000Z
2022-03-11T23:17:27.000Z
import pandas as pd import numpy as np import networkx as nx import click import pickle from sklearn.preprocessing import LabelEncoder CONTEXT_SETTINGS = dict(help_option_names=['-h','--help'], max_content_width=90) @click.group(context_settings= CONTEXT_SETTINGS) @click.version_option(version='0.1') def visualize():...
43.089888
196
0.681356
0
0
0
0
3,549
0.925424
0
0
1,380
0.359844
ce4d2974d0b31d80078e3f7458f018c00bbd3cf4
13,343
py
Python
tests/test_sagemaker/test_sagemaker_processing.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
tests/test_sagemaker/test_sagemaker_processing.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
tests/test_sagemaker/test_sagemaker_processing.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
import boto3 from botocore.exceptions import ClientError import datetime import pytest from moto import mock_sagemaker from moto.sts.models import ACCOUNT_ID FAKE_ROLE_ARN = "arn:aws:iam::{}:role/FakeRole".format(ACCOUNT_ID) TEST_REGION_NAME = "us-east-1" class MyProcessingJobModel(object): def __init__( ...
39.829851
227
0.67526
3,153
0.236304
0
0
9,902
0.742112
0
0
3,509
0.262984
ce4d63008769bb7f26121f3ebe84e27bc4d39e53
7,853
py
Python
tools/sprite-editor/gui/direction_sprite_widget.py
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
8
2015-02-03T20:23:49.000Z
2022-02-15T07:51:05.000Z
tools/sprite-editor/gui/direction_sprite_widget.py
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
null
null
null
tools/sprite-editor/gui/direction_sprite_widget.py
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
2
2017-02-13T18:04:00.000Z
2020-08-24T03:21:37.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'direction_sprite_widget.ui' # # Created: Wed Jul 30 18:37:40 2014 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUt...
58.17037
99
0.741118
7,150
0.91048
0
0
0
0
0
0
1,028
0.130905
ce4e49dc4da5a6289114dc9b19fa4b7569d8b066
4,913
py
Python
venv/lib/python3.5/site-packages/bears/python/PEP8NotebookBear.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/bears/python/PEP8NotebookBear.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/bears/python/PEP8NotebookBear.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
import autopep8 import nbformat from coalib.bearlib.spacing.SpacingHelper import SpacingHelper from coalib.bears.LocalBear import LocalBear from dependency_management.requirements.PipRequirement import PipRequirement from coalib.results.Diff import Diff from coalib.results.Result import Result from coalib.settings.Set...
40.270492
79
0.632607
2,556
0.520252
2,156
0.438836
0
0
0
0
2,492
0.507226
ce5057f4503ef56fd394e2f07ab56b6b56dccf58
1,043
py
Python
doc2cube-master/src/prel.py
sustcjudgement/Judgement_information_extraction
c769eb1cb7ee695a157a981dbe9cd9d6559d072b
[ "MIT" ]
1
2019-05-30T07:07:13.000Z
2019-05-30T07:07:13.000Z
doc2cube-master/src/prel.py
sustcjudgement/Judgement_information_extraction
c769eb1cb7ee695a157a981dbe9cd9d6559d072b
[ "MIT" ]
null
null
null
doc2cube-master/src/prel.py
sustcjudgement/Judgement_information_extraction
c769eb1cb7ee695a157a981dbe9cd9d6559d072b
[ "MIT" ]
null
null
null
import nltk import string import argparse parser = argparse.ArgumentParser(description='.') parser.add_argument('-text', help='') parser.add_argument('-meta', help='') parser.add_argument('-output', help='') args = parser.parse_args() # parser.add_argument('-iter', dest='iter', type=int, # defaul...
24.833333
82
0.589645
0
0
0
0
0
0
0
0
276
0.264621
ce517a5ddc247572eac79c178a88597e1d88b706
43
py
Python
models/__init__.py
salesforce/DataHardness
18b9231f8d08f35b2452e6357b7d6b31f21c695c
[ "BSD-3-Clause" ]
3
2021-11-18T22:48:28.000Z
2022-01-08T08:02:31.000Z
models/__init__.py
salesforce/DataHardness
18b9231f8d08f35b2452e6357b7d6b31f21c695c
[ "BSD-3-Clause" ]
null
null
null
models/__init__.py
salesforce/DataHardness
18b9231f8d08f35b2452e6357b7d6b31f21c695c
[ "BSD-3-Clause" ]
1
2021-11-18T22:48:32.000Z
2021-11-18T22:48:32.000Z
from models.glow import Glow, GlowAdditive
21.5
42
0.837209
0
0
0
0
0
0
0
0
0
0
ce51bf2481ad7448201c8511a71d60800f43cedd
350
py
Python
Logic/Helpers/ChronosTextEntry.py
terexdev/BSDS-V39
7deea469fbfbc56c48f8326ba972369679f6b098
[ "Apache-2.0" ]
11
2021-11-04T01:49:50.000Z
2022-01-31T16:50:47.000Z
Logic/Helpers/ChronosTextEntry.py
terexdev/BSDS-V39
7deea469fbfbc56c48f8326ba972369679f6b098
[ "Apache-2.0" ]
6
2021-11-04T08:52:01.000Z
2021-12-27T02:33:19.000Z
Logic/Helpers/ChronosTextEntry.py
terexdev/BSDS-V39
7deea469fbfbc56c48f8326ba972369679f6b098
[ "Apache-2.0" ]
5
2021-11-04T02:31:56.000Z
2022-03-14T02:04:33.000Z
from Logic.Classes.LogicDataTables import LogicDataTables from Logic.Data.DataManager import Writer from Logic.Data.DataManager import Reader class ChronosTextEntry: def decode(self: Reader): self.readInt() self.readString() def encode(self: Writer): self.writeInt(0) self.writ...
25
57
0.717143
205
0.585714
0
0
0
0
0
0
20
0.057143
ce52086eedaa4d8450071ad9dda9ddc525a4ba30
1,136
py
Python
Hoofdstuk 3/animals.py
BearWithAFez/Learning-Python
23f6aa82e431838dc3891fe46d6ff6ea64281fe0
[ "MIT" ]
null
null
null
Hoofdstuk 3/animals.py
BearWithAFez/Learning-Python
23f6aa82e431838dc3891fe46d6ff6ea64281fe0
[ "MIT" ]
null
null
null
Hoofdstuk 3/animals.py
BearWithAFez/Learning-Python
23f6aa82e431838dc3891fe46d6ff6ea64281fe0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from urllib.request import urlopen import sys # Get the animals def fetch_animals(url): """Get a list of lines (animals) from a given URL. Args: url: The URL of a utf-8 text Returns: A list of lines. """ with urlopen(url) as data: animals = [] ...
20.285714
110
0.628521
0
0
0
0
0
0
0
0
685
0.602993
ce522237e0f47825dd315d861dd8e20bb64f4c53
19,762
py
Python
code/game.py
chaonan99/merge_sim
0a96685b261c94ffe7d73abec3a488ef02b48cd0
[ "MIT" ]
null
null
null
code/game.py
chaonan99/merge_sim
0a96685b261c94ffe7d73abec3a488ef02b48cd0
[ "MIT" ]
null
null
null
code/game.py
chaonan99/merge_sim
0a96685b261c94ffe7d73abec3a488ef02b48cd0
[ "MIT" ]
null
null
null
from collections import deque import numpy as np import os from abc import ABCMeta, abstractmethod import random random.seed(42) from common import config, VehicleState from helper import Helper INFO = """Average merging time: {} s Traffic flow: {} vehicle/s Average speed: {} km/h Average fuel consumptio...
37.785851
108
0.58233
18,621
0.942263
0
0
522
0.026414
0
0
2,379
0.120383
ce530130c467202c9dd2359037337dda83e6eaa4
387
py
Python
mundo2/ex053.py
dilsonm/CeV
8043be36b2da187065691d23ed5cb40fd65f806f
[ "MIT" ]
null
null
null
mundo2/ex053.py
dilsonm/CeV
8043be36b2da187065691d23ed5cb40fd65f806f
[ "MIT" ]
null
null
null
mundo2/ex053.py
dilsonm/CeV
8043be36b2da187065691d23ed5cb40fd65f806f
[ "MIT" ]
null
null
null
# Crie um programa que leia uma frase qualquer e diga se ele é um palíndromo, desconsiderando os espaços. frase = str(input('Digite uma frase: ')).strip() palavras = frase.split() junto = ''.join(palavras) inverso = '' for c in range( len(junto)-1, -1, -1): inverso += junto[c] if inverso == junto: print('A fra...
32.25
105
0.677003
0
0
0
0
0
0
0
0
189
0.480916
ce53b07d3a1a59be1abb2c6bf2cf0cd25eb7f425
562
py
Python
scripts/show_by_content_type.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
null
null
null
scripts/show_by_content_type.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2015-09-23T16:30:34.000Z
2015-09-23T16:30:34.000Z
scripts/show_by_content_type.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2020-03-25T09:41:03.000Z
2020-03-25T09:41:03.000Z
import os import glob import json for f in glob.glob('/Users/sparky/Documents/solr_responses/solr_20150922_docs/*.json'): with open(f, 'r') as g: data = json.loads(g.read()) headers = data.get('response_headers', []) if not headers: continue headers = dict( (k.strip().lower(),...
28.1
87
0.617438
0
0
0
0
0
0
0
0
130
0.231317
ce53e368e8055c32a3b93d22ee8f35500ad5e829
5,024
py
Python
descarteslabs/workflows/models/tests/test_tile_url.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
167
2017-03-23T22:16:58.000Z
2022-03-08T09:19:30.000Z
descarteslabs/workflows/models/tests/test_tile_url.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
93
2017-03-23T22:11:40.000Z
2021-12-13T18:38:53.000Z
descarteslabs/workflows/models/tests/test_tile_url.py
descarteslabs/descarteslabs-python
efc874d6062603dc424c9646287a9b1f8636e7ac
[ "Apache-2.0" ]
46
2017-03-25T19:12:14.000Z
2021-08-15T18:04:29.000Z
import pytest import datetime import json import functools from urllib.parse import urlencode, parse_qs from descarteslabs.common.graft import client as graft_client from ... import types from .. import tile_url def test_url(): base = "foo" base_q = base + "?" url = functools.partial(tile_url.tile_url...
35.132867
87
0.602309
0
0
0
0
1,424
0.283439
0
0
1,072
0.213376
ce5459689c023b5b6363dd479cd3042521f3f23d
1,112
py
Python
backend-project/small_eod/collections/migrations/0003_auto_20200131_2033.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
64
2019-12-30T11:24:03.000Z
2021-06-24T01:04:56.000Z
backend-project/small_eod/collections/migrations/0003_auto_20200131_2033.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
465
2018-06-13T21:43:43.000Z
2022-01-04T23:33:56.000Z
backend-project/small_eod/collections/migrations/0003_auto_20200131_2033.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
72
2018-12-02T19:47:03.000Z
2022-01-04T22:54:49.000Z
# Generated by Django 3.0.2 on 2020-01-31 20:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('collections', '0002_auto_20200109_1348'), ] operations = [ migrations.AlterField( model_name='collection', name='com...
32.705882
121
0.611511
1,019
0.916367
0
0
0
0
0
0
310
0.278777
ce57252a3bbc1b4941fbfe4e1830281dc89e2cd0
908
py
Python
violet_services/src/service_client.py
Violet-C/EE477_Final
d30cc07833d8c1bb44c0a3373afa739a0b81d25f
[ "Apache-2.0" ]
null
null
null
violet_services/src/service_client.py
Violet-C/EE477_Final
d30cc07833d8c1bb44c0a3373afa739a0b81d25f
[ "Apache-2.0" ]
null
null
null
violet_services/src/service_client.py
Violet-C/EE477_Final
d30cc07833d8c1bb44c0a3373afa739a0b81d25f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy # python client library for ROS from violet_services.srv import WordCount # needed message type import sys # python functions, methods, etc. rospy.init_node('service_client') # initialize client node rospy...
47.789474
99
0.611233
0
0
0
0
0
0
0
0
386
0.42511
ce58480e7eec21fe6db13cf13d137977321623c9
8,249
py
Python
utils/util.py
Hhhhhhhhhhao/I2T2I
6a08705b72ff38e3679a9344f987b191d3f94a25
[ "MIT" ]
null
null
null
utils/util.py
Hhhhhhhhhhao/I2T2I
6a08705b72ff38e3679a9344f987b191d3f94a25
[ "MIT" ]
null
null
null
utils/util.py
Hhhhhhhhhhao/I2T2I
6a08705b72ff38e3679a9344f987b191d3f94a25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import torch from torch.autograd import Variable import numpy as np import scipy import matplotlib.pyplot as plt import cv2 import scipy.ndimage import shutil import scipy.misc as misc from PIL import Image def mkdirs(folders, erase=False): if type(folders) is not list: ...
30.216117
127
0.63244
0
0
566
0.068614
0
0
0
0
1,804
0.218693
ce5a2416c780442544d0d5e9283fbaff98d9c5b6
9,882
py
Python
hn2pdf.py
KyrillosL/HackerNewsToPDF
489e8225d14550c874c2eb448005e8313662eac6
[ "BSD-3-Clause" ]
null
null
null
hn2pdf.py
KyrillosL/HackerNewsToPDF
489e8225d14550c874c2eb448005e8313662eac6
[ "BSD-3-Clause" ]
null
null
null
hn2pdf.py
KyrillosL/HackerNewsToPDF
489e8225d14550c874c2eb448005e8313662eac6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Python-Pinboard Python script for downloading your saved stories and saved comments on Hacker News. """ __version__ = "1.1" __license__ = "BSD" __copyright__ = "Copyright 2013-2014, Luciano Fiandesio" __author__ = "Luciano Fiandesio <http://fiandes.io/> & John David Pressman <http://jdpressman...
40.334694
121
0.589152
0
0
0
0
0
0
0
0
3,063
0.309957
ce5a8256603662fe067ec0abfb76762e08552066
558
py
Python
backend/step_functions/default.py
barak-obama/Game-Of-Life
3e84e5dda2561c4b87249de64680a4ea504dd42e
[ "MIT" ]
null
null
null
backend/step_functions/default.py
barak-obama/Game-Of-Life
3e84e5dda2561c4b87249de64680a4ea504dd42e
[ "MIT" ]
null
null
null
backend/step_functions/default.py
barak-obama/Game-Of-Life
3e84e5dda2561c4b87249de64680a4ea504dd42e
[ "MIT" ]
null
null
null
import itertools def next_step(board, i, j): xMin = max(0, j - 1) xMax = min(board.shape[1] - 1, j +1) yMin = max(0, i - 1) yMax = min(board.shape[0] - 1, i +1) iteration = list(itertools.product(range(yMin, yMax + 1), range(xMin, xMax+1))) iteration.remove((i,j)) sum = 0; for (k, m) i...
23.25
83
0.483871
0
0
0
0
0
0
0
0
0
0
ce5ab22e009ac58d14c27fe38208f968a51e0d2e
2,110
py
Python
rapid_response_xblock/models.py
HamzaIbnFarooq/rapid-response-xblock
dbc6bfbaab0f583680816ba86f0d43c84c931d58
[ "BSD-3-Clause" ]
null
null
null
rapid_response_xblock/models.py
HamzaIbnFarooq/rapid-response-xblock
dbc6bfbaab0f583680816ba86f0d43c84c931d58
[ "BSD-3-Clause" ]
104
2018-02-02T20:51:00.000Z
2022-03-31T08:44:24.000Z
rapid_response_xblock/models.py
HamzaIbnFarooq/rapid-response-xblock
dbc6bfbaab0f583680816ba86f0d43c84c931d58
[ "BSD-3-Clause" ]
1
2020-12-16T08:24:02.000Z
2020-12-16T08:24:02.000Z
""" Rapid Response block models """ from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible from jsonfield import JSONField from model_utils.models import TimeStampedModel from opaque_keys.edx.django.models import ( CourseKeyField, UsageKeyFi...
28.133333
78
0.652607
1,719
0.814692
0
0
1,777
0.84218
0
0
377
0.178673
ce5beb636533234d09e40c6e181344e4d00f51e7
371
py
Python
sched_slack_bot/reminder/sender.py
Germandrummer92/SchedSlackBot
d211f7c0d78eb8ebbc1f22cc186c94fc61bad491
[ "MIT" ]
null
null
null
sched_slack_bot/reminder/sender.py
Germandrummer92/SchedSlackBot
d211f7c0d78eb8ebbc1f22cc186c94fc61bad491
[ "MIT" ]
null
null
null
sched_slack_bot/reminder/sender.py
Germandrummer92/SchedSlackBot
d211f7c0d78eb8ebbc1f22cc186c94fc61bad491
[ "MIT" ]
null
null
null
import abc from sched_slack_bot.model.reminder import Reminder class ReminderSender(abc.ABC): @abc.abstractmethod def send_reminder(self, reminder: Reminder) -> None: raise NotImplementedError("Not Implemented") @abc.abstractmethod def send_skip_message(self, reminder: Reminder) -> None: ...
24.733333
60
0.738544
304
0.819407
0
0
262
0.706199
0
0
34
0.091644
ce5d174c1f7c2c86516c002a84d1f0b2d728c91d
1,987
py
Python
app/routes.py
systemicsmitty/TI4_battle_sim
b4ed142ff57d19ed50705ba40f83b8b3b7e3a774
[ "MIT" ]
null
null
null
app/routes.py
systemicsmitty/TI4_battle_sim
b4ed142ff57d19ed50705ba40f83b8b3b7e3a774
[ "MIT" ]
null
null
null
app/routes.py
systemicsmitty/TI4_battle_sim
b4ed142ff57d19ed50705ba40f83b8b3b7e3a774
[ "MIT" ]
null
null
null
from flask import render_template from app import app, html_generator import app.calculator.calculator as calc from app.route_helpers import units_from_form, options_from_form, options_list, flash_errors from app.forms import InputForm from collections import defaultdict @app.route('/', methods=['GET', 'POST']) @app....
36.127273
116
0.631605
0
0
0
0
1,712
0.8616
0
0
202
0.101661
ce5d8d0f3c28fed69d76da9c81283dbdc6272f7e
1,505
py
Python
code/dependancy/smaliparser.py
OmkarMozar/CUPAP
6055f423e3f9b8bb1a44dd8fab73630554363b3d
[ "Apache-2.0" ]
null
null
null
code/dependancy/smaliparser.py
OmkarMozar/CUPAP
6055f423e3f9b8bb1a44dd8fab73630554363b3d
[ "Apache-2.0" ]
null
null
null
code/dependancy/smaliparser.py
OmkarMozar/CUPAP
6055f423e3f9b8bb1a44dd8fab73630554363b3d
[ "Apache-2.0" ]
null
null
null
from smalisca.core.smalisca_main import SmaliscaApp from smalisca.modules.module_smali_parser import SmaliParser from smalisca.core.smalisca_app import App from smalisca.core.smalisca_logging import log from smalisca.modules.module_sql_models import AppSQLModel import smalisca.core.smalisca_config as config import mul...
24.672131
73
0.743522
0
0
0
0
0
0
0
0
538
0.357475
ce5dcda8e728127b9f9d9754ec7ec959e800ef14
31,373
py
Python
modules/users_and_roles_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
modules/users_and_roles_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
modules/users_and_roles_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
class_name = 'users_and_roles_tab' from qtpy import QtCore, QtGui, QtWidgets, uic import os import sys import re import pathlib import json from logzero import logger from modules.sumologic import SumoLogic from modules.shared import ShowTextDialog class users_and_roles_tab(QtWidgets.QWidget): def __init__(self...
48.340524
137
0.597966
31,120
0.991936
0
0
0
0
0
0
3,559
0.113441
ce5e17e8dbf5e904faf5468fbc530840fc418ada
1,201
py
Python
app.py
kecleveland/mhdn_app
27cbd3fcb6d831913481a7c0d51af6b3641d6cf3
[ "MIT" ]
null
null
null
app.py
kecleveland/mhdn_app
27cbd3fcb6d831913481a7c0d51af6b3641d6cf3
[ "MIT" ]
null
null
null
app.py
kecleveland/mhdn_app
27cbd3fcb6d831913481a7c0d51af6b3641d6cf3
[ "MIT" ]
null
null
null
from twarc import Twarc2, expansions from pathlib import Path import json import config import os import config appConfig = config.Config client = Twarc2(bearer_token=appConfig.bearer_token) file_path = Path(f"{appConfig.file_path}{appConfig.file_name}") def main(): # result params try: search_resul...
31.605263
71
0.555371
0
0
0
0
0
0
0
0
233
0.194005
ce5f3e28692a3faeaa82556c686295cb266a77ee
300
py
Python
src/utils/regex_utils/regex_utils.py
BichengWang/python-notebook
83fae37432a2bf701566e85ab6d7e8e3d688a0ee
[ "MIT" ]
null
null
null
src/utils/regex_utils/regex_utils.py
BichengWang/python-notebook
83fae37432a2bf701566e85ab6d7e8e3d688a0ee
[ "MIT" ]
null
null
null
src/utils/regex_utils/regex_utils.py
BichengWang/python-notebook
83fae37432a2bf701566e85ab6d7e8e3d688a0ee
[ "MIT" ]
null
null
null
import re def find_indices(): return [m.start(0) for m in re.finditer(reg, content)] def find_content(): return re.findall(reg, content) if __name__ == "__main__": content = 'an example word:cat and word:dog' reg = r'word:\w' print(find_indices()) print(find_content())
17.647059
58
0.653333
0
0
0
0
0
0
0
0
54
0.18
ce60955aeef652ef027da2711317acb273b74ef6
5,944
py
Python
tests/test_trainer/test_pipeline/test_p2p.py
DevinCheung/ColossalAI
632e622de818697f9949e35117c0432d88f62c87
[ "Apache-2.0" ]
null
null
null
tests/test_trainer/test_pipeline/test_p2p.py
DevinCheung/ColossalAI
632e622de818697f9949e35117c0432d88f62c87
[ "Apache-2.0" ]
null
null
null
tests/test_trainer/test_pipeline/test_p2p.py
DevinCheung/ColossalAI
632e622de818697f9949e35117c0432d88f62c87
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import pytest import torch import torch.distributed as dist import torch.multiprocessing as mp from colossalai.communication import (recv_backward, recv_forward, recv_tensor_meta, send_backward, ...
36.466258
79
0.675135
0
0
0
0
151
0.025404
0
0
678
0.114065
ce60e885998a6e65935f35c9104bd85ccefe442c
23,622
py
Python
mine.py
appenz/minebot
e1bd18053873c4d686de57e014a2cd8f27d4dd4c
[ "Apache-2.0" ]
11
2021-08-28T18:21:43.000Z
2022-03-08T16:08:55.000Z
mine.py
appenz/minebot
e1bd18053873c4d686de57e014a2cd8f27d4dd4c
[ "Apache-2.0" ]
3
2022-02-05T17:47:53.000Z
2022-03-10T17:36:48.000Z
mine.py
appenz/minebot
e1bd18053873c4d686de57e014a2cd8f27d4dd4c
[ "Apache-2.0" ]
5
2022-02-04T19:12:50.000Z
2022-03-18T20:54:00.000Z
# # Functions for mining blocks # import itertools from javascript import require Vec3 = require('vec3').Vec3 from botlib import * from inventory import * from workarea import * class MineBot: needs_iron_pickaxe = ["Gold Ore", "Redstone Ore", "Diamond Ore", "Emerald Ore"] needs_diamond_pickaxe = ["Obsi...
33.649573
120
0.502117
23,452
0.992131
0
0
0
0
0
0
5,242
0.221762
ce617e3015fa7ae63ff96b316d5d14af95c4007f
16,667
py
Python
src/the_tale/the_tale/accounts/tests/test_account_prototype.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/accounts/tests/test_account_prototype.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/accounts/tests/test_account_prototype.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class AccountPrototypeTests(utils_testcase.TestCase, personal_messages_helpers.Mixin): def setUp(self): super(AccountPrototypeTests, self).setUp() self.place_1, self.place_2, self.place_3 = game_logic.create_test_map() self.account = self.account...
47.48433
163
0.710866
16,618
0.99706
0
0
2,286
0.137157
0
0
1,576
0.094558
ce62bdf76c9ed174e5607a0e506209e79d02b892
698
py
Python
952/952.py
vladcto/ACMP_Answers
bc163068d7b27c5241f995da3f58a1f8c623d460
[ "Unlicense" ]
1
2020-02-17T18:56:12.000Z
2020-02-17T18:56:12.000Z
952/952.py
vladcto/ACMP_Answers
bc163068d7b27c5241f995da3f58a1f8c623d460
[ "Unlicense" ]
null
null
null
952/952.py
vladcto/ACMP_Answers
bc163068d7b27c5241f995da3f58a1f8c623d460
[ "Unlicense" ]
null
null
null
inp = input().split(" ") adult = int(inp[0]) child = int(inp[1]) if adult == 0 and child == 0: print("0 0") quit() if adult == 0: print("Impossible") quit() min = 0 # К каждому взрослому один бесплатный ребенок => # "Платные дети" это разница между взрослыми и всеми детьми not_free_child = child - ad...
21.8125
59
0.65616
0
0
0
0
0
0
0
0
547
0.590076
ce642e6e7a09fb0be794de1dfe62d3f787626a2a
52
py
Python
tests/django/__init__.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
tests/django/__init__.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
tests/django/__init__.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
default_app_config = "tests.django.apps.MyAppConfig"
52
52
0.846154
0
0
0
0
0
0
0
0
31
0.596154
ce6475945a6e1e99c628db4e1feb8a20077669ce
1,440
py
Python
setup.py
eric-volz/defichainLibrary
458a8155bd595bf0fdf026651d95a5fe78dafc9c
[ "MIT" ]
1
2022-03-29T15:15:17.000Z
2022-03-29T15:15:17.000Z
setup.py
eric-volz/defichainLibrary
458a8155bd595bf0fdf026651d95a5fe78dafc9c
[ "MIT" ]
null
null
null
setup.py
eric-volz/defichainLibrary
458a8155bd595bf0fdf026651d95a5fe78dafc9c
[ "MIT" ]
1
2022-03-24T12:25:44.000Z
2022-03-24T12:25:44.000Z
from setuptools import setup from os import path VERSION = '1.0.0' DESCRIPTION = 'Defichain Python Library' # Project URLs project_urls = { "Tracker": "https://github.com/eric-volz/DefichainPython", "Documentation": "https://docs.defichain-python.de" } this_directory = path.abspath(path.dirname(__file__)) wi...
31.304348
82
0.634722
0
0
0
0
0
0
0
0
747
0.51875
ce6649c4f6c16cf45f7213f96f05b37dd34d751f
4,936
py
Python
test/test_hdf5.py
gonzalobg/hpc-container-maker
dd5486c3fbb0fce38d825173022908ef0f96f77e
[ "Apache-2.0" ]
1
2021-01-04T00:29:22.000Z
2021-01-04T00:29:22.000Z
test/test_hdf5.py
gonzalobg/hpc-container-maker
dd5486c3fbb0fce38d825173022908ef0f96f77e
[ "Apache-2.0" ]
null
null
null
test/test_hdf5.py
gonzalobg/hpc-container-maker
dd5486c3fbb0fce38d825173022908ef0f96f77e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. 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...
37.393939
164
0.640194
3,980
0.806321
0
0
3,815
0.772893
0
0
4,089
0.828404
ce69ac58ca5435e4721a3c9bb26cdcd8b83c0839
160
py
Python
exercise/newfile45.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile45.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
exercise/newfile45.py
LeeBeral/python
9f0d360d69ee5245e3ef13a9dc9fc666374587a4
[ "MIT" ]
null
null
null
show databases; show tables desc table名 use database名 delete from 库名.表名 where id=5; select * from 表名 where id=5; update 表名 set age=15,home='北京' where id=5
22.857143
41
0.73125
0
0
0
0
0
0
0
0
8
0.043478
ce6a80ab1bf79ba95677f54c2de54bfe1b5f0e5f
604
py
Python
src/word2vec.py
shiroyagicorp/japanese-word2vec-model-builder
c9570702110f2851f4cb7d38948c5d7f59ef8a4c
[ "MIT" ]
98
2017-02-20T14:23:36.000Z
2022-01-23T07:09:29.000Z
src/word2vec.py
shiroyagicorp/japanese-word2vec-model-builder
c9570702110f2851f4cb7d38948c5d7f59ef8a4c
[ "MIT" ]
1
2021-06-29T05:34:39.000Z
2021-11-17T23:52:07.000Z
src/word2vec.py
shiroyagicorp/japanese-word2vec-model-builder
c9570702110f2851f4cb7d38948c5d7f59ef8a4c
[ "MIT" ]
11
2017-11-07T05:25:30.000Z
2021-06-29T05:28:08.000Z
import multiprocessing from gensim.models.word2vec import Word2Vec def build_gensim_w2v_model(model_path, iter_tokens, size, window, min_count): """ Parameters ---------- model_path : string Path of Word2Vec model iter_tokens : iterator Iterator of documents, which are lists of wo...
24.16
77
0.663907
0
0
0
0
0
0
0
0
179
0.296358
ce6c5f2a56792c631b587b682534feb77c7a0a15
2,945
py
Python
companion/telegram.py
jouir/mining-companion
b66aa8b1586a31ddad0c2454e4762661c63385a1
[ "Unlicense" ]
2
2021-02-25T09:09:57.000Z
2021-03-03T14:11:30.000Z
companion/telegram.py
jouir/flexpool-activity
b66aa8b1586a31ddad0c2454e4762661c63385a1
[ "Unlicense" ]
2
2021-08-18T11:10:26.000Z
2021-08-18T11:14:23.000Z
companion/telegram.py
jouir/mining-companion
b66aa8b1586a31ddad0c2454e4762661c63385a1
[ "Unlicense" ]
null
null
null
import logging import os from copy import copy import requests from jinja2 import Environment, FileSystemLoader logger = logging.getLogger(__name__) absolute_path = os.path.split(os.path.abspath(__file__))[0] class TelegramNotifier: def __init__(self, chat_id, auth_key): self._auth_key = auth_key ...
43.955224
110
0.639389
2,731
0.927334
0
0
438
0.148727
0
0
467
0.158574
ce6cccfac6a948d40441d5b2f5121b05efacb62f
295
py
Python
forecast_lab/metrics.py
gsimbr/forecast-lab
a26234f3e11b4b8268d6cbe33bb84d79da45ecdd
[ "MIT" ]
5
2019-06-04T11:04:06.000Z
2022-03-29T23:05:25.000Z
forecast_lab/metrics.py
gsimbr/forecast-lab
a26234f3e11b4b8268d6cbe33bb84d79da45ecdd
[ "MIT" ]
1
2022-02-14T13:22:47.000Z
2022-02-14T13:22:47.000Z
forecast_lab/metrics.py
gsimbr/forecast-lab
a26234f3e11b4b8268d6cbe33bb84d79da45ecdd
[ "MIT" ]
2
2020-02-17T11:54:18.000Z
2020-10-06T12:49:15.000Z
import numpy import math from sklearn.metrics import mean_squared_error def root_mean_squared_error(y_true, y_pred): return math.sqrt(mean_squared_error(y_true, y_pred)) def mean_absolute_percentage_error(y_true, y_pred): return numpy.mean(numpy.abs((y_true - y_pred) / y_true)) * 100
29.5
66
0.79322
0
0
0
0
0
0
0
0
0
0
ce6db4a22e7fa1d771c8c341bb718daa5999b3ea
446
py
Python
Python_Interview/Algorithm/step_wise.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
2
2019-01-24T15:06:59.000Z
2019-01-25T07:34:45.000Z
Python_Interview/Algorithm/step_wise.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
1
2019-12-23T09:45:11.000Z
2019-12-23T09:45:11.000Z
Python_Interview/Algorithm/step_wise.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
1
2019-07-18T14:21:35.000Z
2019-07-18T14:21:35.000Z
''' 杨氏矩阵查找 在一个m行n列二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下 递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 ''' def get_value(l, r, c): return l[r][c] def find(l, x): m = len(l) - 1 n = len(l[0]) - 1 r = 0 c = n while c >= 0 and r <= m: value = get_value(l, r, c) if value == x: ...
18.583333
46
0.495516
0
0
0
0
0
0
0
0
285
0.453822
ce6e0d7a568a5fc925496c5e465b79c3f4a3e233
3,854
py
Python
run_create_codebuild_default.py
HardBoiledSmith/johanna
0443a9040f0248f0a800c9d4b062e375f997bb6f
[ "MIT" ]
64
2016-11-03T11:20:25.000Z
2021-05-24T03:08:57.000Z
run_create_codebuild_default.py
HardBoiledSmith/johanna
0443a9040f0248f0a800c9d4b062e375f997bb6f
[ "MIT" ]
69
2016-11-03T14:09:35.000Z
2022-02-07T12:52:05.000Z
run_create_codebuild_default.py
HardBoiledSmith/johanna
0443a9040f0248f0a800c9d4b062e375f997bb6f
[ "MIT" ]
19
2016-11-03T11:04:51.000Z
2020-06-12T10:40:57.000Z
#!/usr/bin/env python3 import json import time from run_common import AWSCli from run_common import print_message from run_create_codebuild_common import create_base_iam_policy from run_create_codebuild_common import create_iam_service_role from run_create_codebuild_common import create_managed_secret_iam_policy from ...
34.106195
105
0.583809
0
0
0
0
0
0
0
0
1,258
0.326414
ce6e3c09a2e66420e8e9c581cff7e8f8d2db23fe
2,282
py
Python
config/test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
1
2016-02-13T15:40:20.000Z
2016-02-13T15:40:20.000Z
config/test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
3
2020-02-11T22:29:15.000Z
2021-06-10T17:44:31.000Z
config/test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Configuration parameters for the test subsystem.""" import os from grr.lib import config_lib # Default for running in the current directory config_lib.DEFINE_constant_string( "Test.srcdir", os.path.normpath(os.path.dirname(__file__) + "/../.."), "The directory containing the source...
40.75
80
0.633655
0
0
0
0
0
0
0
0
1,330
0.582822
ce6eed2c9d0065dffb079ead3cb624c8d3a05810
224
py
Python
wixaward/urls.py
LekamCharity/wix-projects
76f9ab4429a978a42f0cea3e3a305a7cdfc4541d
[ "MIT" ]
null
null
null
wixaward/urls.py
LekamCharity/wix-projects
76f9ab4429a978a42f0cea3e3a305a7cdfc4541d
[ "MIT" ]
null
null
null
wixaward/urls.py
LekamCharity/wix-projects
76f9ab4429a978a42f0cea3e3a305a7cdfc4541d
[ "MIT" ]
null
null
null
from django.urls import path urlpatterns=[ path('profile',views.profile, name='profile'), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
22.4
60
0.665179
0
0
0
0
0
0
0
0
18
0.080357
ce6fa0b28898bd299005931220b5305722ba63c3
8,940
py
Python
pylogview/reader.py
CrazyIvan359/logview
4fb145843315dd03ff4ba414a5a617775d9d2af1
[ "MIT" ]
null
null
null
pylogview/reader.py
CrazyIvan359/logview
4fb145843315dd03ff4ba414a5a617775d9d2af1
[ "MIT" ]
3
2020-11-01T23:57:39.000Z
2020-11-02T01:21:48.000Z
pylogview/reader.py
CrazyIvan359/logview
4fb145843315dd03ff4ba414a5a617775d9d2af1
[ "MIT" ]
null
null
null
import typing as t from pylogview import datefinder from pylogview.record import LogRecord if t.TYPE_CHECKING: from pylogview.window import Window class LogReader: __slots__ = [ "_window", "filename", "_lines", "records", "_record_prefix_length", "_fd", ...
36.048387
90
0.503803
8,784
0.98255
0
0
196
0.021924
0
0
1,502
0.168009
ce70b641f16acd29f6ec6fd771bef13d60610bff
235
py
Python
zad1_6.py
kamilhabrych/python-semestr5-lista1
65faeffe83bcc4706b2818e2e7802d986b19244b
[ "MIT" ]
null
null
null
zad1_6.py
kamilhabrych/python-semestr5-lista1
65faeffe83bcc4706b2818e2e7802d986b19244b
[ "MIT" ]
null
null
null
zad1_6.py
kamilhabrych/python-semestr5-lista1
65faeffe83bcc4706b2818e2e7802d986b19244b
[ "MIT" ]
null
null
null
x = int(input('Podaj pierwsza liczbe calkowita: ')) y = int(input('Podaj druga liczbe calkowita: ')) z = int(input('Podaj trzecia liczbe calkowita: ')) print() if x > 10: print(x) if y > 10: print(y) if z > 10: print(z)
16.785714
51
0.617021
0
0
0
0
0
0
0
0
101
0.429787
ce70fc922ee9bc7104f6b739b1a14c96b849d90a
6,194
py
Python
modules/bulletinGenerator_Kingsgrove.py
featherbear/swec-elvanto-automation
7f330ca5a87623ca452170efb4845814a4fbc2ad
[ "MIT" ]
null
null
null
modules/bulletinGenerator_Kingsgrove.py
featherbear/swec-elvanto-automation
7f330ca5a87623ca452170efb4845814a4fbc2ad
[ "MIT" ]
null
null
null
modules/bulletinGenerator_Kingsgrove.py
featherbear/swec-elvanto-automation
7f330ca5a87623ca452170efb4845814a4fbc2ad
[ "MIT" ]
null
null
null
from mailmerge import MailMerge import re import os.path from ElvantoAPIExtensions import Enums, Helpers from modules.__stub__ import ModuleStub class Module(ModuleStub): __VERSION__ = "1.0" __NAME__ = "bulletinGenerator_Kingsgrove" # __executeTime__ = "16:00" # __executeDay__ = "thursday" setting...
41.293333
165
0.610268
6,047
0.976267
0
0
0
0
0
0
3,201
0.51679
ce735019669e5c6f53493f5d8d363b42ab7d2267
1,434
py
Python
class4/e3_pexpect.py
ktbyers/pynet_wantonik
601bce26142b6741202c2bdafb9e0d0cec1b3c78
[ "Apache-2.0" ]
2
2017-05-11T12:05:15.000Z
2021-07-15T18:13:19.000Z
class4/e3_pexpect.py
ktbyers/pynet_wantonik
601bce26142b6741202c2bdafb9e0d0cec1b3c78
[ "Apache-2.0" ]
null
null
null
class4/e3_pexpect.py
ktbyers/pynet_wantonik
601bce26142b6741202c2bdafb9e0d0cec1b3c78
[ "Apache-2.0" ]
1
2017-05-11T12:05:18.000Z
2017-05-11T12:05:18.000Z
#!/usr/bin/env python ''' Simple script to execute shell command on lab router with Pexpect module. ''' import pexpect, sys, re from getpass import getpass def main(): ## Define variables ip_addr = '184.105.247.71' username = 'pyclass' port = 22 password = getpass() ## Set up connection with r...
29.875
86
0.631799
0
0
0
0
0
0
0
0
624
0.435146
ce73d6c6f78dfe5a98cce6abd28653eb0dd424b3
2,081
py
Python
codewof/tests/utils/errors/test_MissingRequiredFieldError.py
uccser-admin/programming-practice-prototype
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
[ "MIT" ]
3
2019-08-29T04:11:22.000Z
2021-06-22T16:05:51.000Z
codewof/tests/utils/errors/test_MissingRequiredFieldError.py
uccser-admin/programming-practice-prototype
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
[ "MIT" ]
265
2019-05-30T03:51:46.000Z
2022-03-31T01:05:12.000Z
codewof/tests/utils/errors/test_MissingRequiredFieldError.py
samuelsandri/codewof
c9b8b378c06b15a0c42ae863b8f46581de04fdfc
[ "MIT" ]
7
2019-06-29T12:13:37.000Z
2021-09-06T06:49:14.000Z
"""Test class for MissingRequiredFieldError error.""" from django.test import SimpleTestCase from utils.errors.MissingRequiredFieldError import MissingRequiredFieldError class MissingRequiredFieldErrorTest(SimpleTestCase): """Test class for MissingRequiredFieldError error. Note: Tests to check if these were...
35.87931
79
0.555983
1,907
0.916386
0
0
0
0
0
0
928
0.445939
ce75d65d2274a6ff994472ca2ea00470b33ed889
12,685
py
Python
matmih/plot.py
glypher/pokemons
c2ea2edef984ee180425866c3f816504c27e460e
[ "BSD-3-Clause" ]
null
null
null
matmih/plot.py
glypher/pokemons
c2ea2edef984ee180425866c3f816504c27e460e
[ "BSD-3-Clause" ]
null
null
null
matmih/plot.py
glypher/pokemons
c2ea2edef984ee180425866c3f816504c27e460e
[ "BSD-3-Clause" ]
null
null
null
"""plot.py: Utility builder class for ML plots. Uses scikit-learn code samples and framework """ __author__ = "Mihai Matei" __license__ = "BSD" __email__ = "[email protected]" import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import randomcolor im...
36.982507
144
0.578242
12,210
0.962554
0
0
52
0.004099
0
0
2,201
0.173512
ce77b50727f7be773d7ee04df988b1888387d995
478
py
Python
census_data_downloader/tables/medianage.py
JoeGermuska/census-data-downloader
0098b9e522b78ad0e30301c9845ecbcc903c62e4
[ "MIT" ]
170
2019-04-01T01:41:42.000Z
2022-03-25T21:22:06.000Z
census_data_downloader/tables/medianage.py
JoeGermuska/census-data-downloader
0098b9e522b78ad0e30301c9845ecbcc903c62e4
[ "MIT" ]
68
2019-03-31T22:52:43.000Z
2021-08-30T16:33:54.000Z
census_data_downloader/tables/medianage.py
JoeGermuska/census-data-downloader
0098b9e522b78ad0e30301c9845ecbcc903c62e4
[ "MIT" ]
34
2019-04-02T17:57:16.000Z
2022-03-28T17:22:35.000Z
#! /usr/bin/env python # -*- coding: utf-8 -* import collections from census_data_downloader.core.tables import BaseTableConfig from census_data_downloader.core.decorators import register @register class MedianAgeDownloader(BaseTableConfig): PROCESSED_TABLE_NAME = 'medianage' UNIVERSE = "total population" ...
26.555556
62
0.707113
277
0.579498
0
0
287
0.600418
0
0
118
0.246862
ce78d29afc746e1513a1eb1206ac1f0e6d11d03c
3,791
py
Python
powerfulseal/metriccollectors/prometheus_collector.py
snehalbiche/powerfulseal
4ab70e0db8f33bd390d87e65c662774991483726
[ "Apache-2.0" ]
1
2018-07-12T22:04:51.000Z
2018-07-12T22:04:51.000Z
powerfulseal/metriccollectors/prometheus_collector.py
kz/powerfulseal
24276dd670777a72fed1780539ffe03f3bea63b9
[ "Apache-2.0" ]
null
null
null
powerfulseal/metriccollectors/prometheus_collector.py
kz/powerfulseal
24276dd670777a72fed1780539ffe03f3bea63b9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Bloomberg Finance L.P. # # 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 i...
42.595506
86
0.69665
1,287
0.339488
0
0
0
0
0
0
1,462
0.38565
ce796d88eb98f929fefba1eaa8a093ed6e266e4a
1,285
py
Python
icm/__main__.py
MCasari-PMEL/EDD-ICMGUI
3210e7bb74ff2ace6e1c8c0bf132ecae5713141b
[ "MIT" ]
null
null
null
icm/__main__.py
MCasari-PMEL/EDD-ICMGUI
3210e7bb74ff2ace6e1c8c0bf132ecae5713141b
[ "MIT" ]
3
2018-01-08T16:44:33.000Z
2018-01-08T16:47:55.000Z
icm/__main__.py
MCasari-PMEL/EDD-ICMGUI
3210e7bb74ff2ace6e1c8c0bf132ecae5713141b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, os, time, serial, json import numpy as np import pyqtgraph as pg import pyqtgraph.console from PyQt5.QtCore import pyqtSignal, QObject from pyqtgraph.Qt import QtCore, QtGui from pyqtgraph.dockarea import * from icm.ui_clock import * from icm.ui_createfile ...
22.54386
65
0.662257
569
0.442802
0
0
0
0
0
0
294
0.228794
ce7a9f4356e5b101ec971a15e988ba01f163fc67
1,603
py
Python
tests/unit/plugins/widgets/conftest.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
tests/unit/plugins/widgets/conftest.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/widgets/conftest.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
import dectate import pytest from kaybee.plugins.widgets.directive import WidgetDirective from kaybee.plugins.widgets.action import WidgetAction class Dummy: pass @pytest.fixture() def widgets_kb_app(): class widgets_kb_app(dectate.App): widget = dectate.directive(WidgetAction) yield widgets_k...
22.263889
75
0.679975
531
0.331254
1,307
0.815346
1,415
0.88272
0
0
57
0.035558
ce7bc7b64a4d3cbc613ea8cb55194b8c8ec890ce
1,751
py
Python
eeyore/models/model.py
papamarkou/eeyore
4cd9b5a619cd095035aa93f348d1c937629aa8a3
[ "MIT" ]
6
2020-04-22T18:56:46.000Z
2021-09-09T15:57:48.000Z
eeyore/models/model.py
papamarkou/eeyore
4cd9b5a619cd095035aa93f348d1c937629aa8a3
[ "MIT" ]
19
2019-11-14T21:22:21.000Z
2020-10-31T16:18:36.000Z
eeyore/models/model.py
scidom/eeyore
4cd9b5a619cd095035aa93f348d1c937629aa8a3
[ "MIT" ]
null
null
null
import hashlib import torch import torch.nn as nn class Model(nn.Module): """ Class representing sampleable neural network model """ def __init__(self, dtype=torch.float64, device='cpu'): super().__init__() self.dtype = dtype self.device = device def summary(self, hashsummary=False...
31.267857
117
0.561965
1,699
0.970303
0
0
0
0
0
0
295
0.168475
ce7c235a673286d6890334627fb2a0108f4ba40f
1,129
py
Python
Curso/Challenges/URI/1827SquareArrayIV.py
DavidBitner/Aprendizado-Python
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
[ "MIT" ]
null
null
null
Curso/Challenges/URI/1827SquareArrayIV.py
DavidBitner/Aprendizado-Python
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
[ "MIT" ]
null
null
null
Curso/Challenges/URI/1827SquareArrayIV.py
DavidBitner/Aprendizado-Python
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
[ "MIT" ]
null
null
null
while True: try: dados = [] matriz = [] n = int(input()) for linha in range(0, n): for coluna in range(0, n): dados.append(0) matriz.append(dados[:]) dados.clear() # Numeros na diagonal for diagonal_principal in rang...
31.361111
72
0.478299
0
0
0
0
0
0
0
0
143
0.126661
ce7c570a565ac358f3c0cebb92e2e6aa904f3655
17,145
py
Python
HetSANN_MRV/execute_sparse.py
xhhszc/hetsann
432ce7493331cc393ff90af0e03a445e758919ea
[ "Apache-2.0" ]
116
2019-12-10T02:14:37.000Z
2022-02-23T09:22:13.000Z
HetSANN_MRV/execute_sparse.py
xhhszc/hetsann
432ce7493331cc393ff90af0e03a445e758919ea
[ "Apache-2.0" ]
6
2020-01-07T00:04:00.000Z
2021-07-30T17:40:27.000Z
HetSANN_MRV/execute_sparse.py
xhhszc/hetsann
432ce7493331cc393ff90af0e03a445e758919ea
[ "Apache-2.0" ]
35
2019-12-10T02:15:45.000Z
2021-11-15T09:44:31.000Z
import os import time import random import scipy.sparse as sp import numpy as np import tensorflow as tf import argparse from models import SpHGAT from utils import process parser = argparse.ArgumentParser() parser.add_argument('--dataset', help='Dataset.', default='imdb', type=str) parser.add_argument('--epochs', he...
49.267241
201
0.594984
0
0
0
0
0
0
0
0
2,003
0.116827
ce7c996f310c0d3f46033c26982db618d4c517fe
230
py
Python
pythontutor-ru/02_ifelse/01_minimum.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
2
2019-05-24T20:10:16.000Z
2020-07-11T06:06:43.000Z
pythontutor-ru/02_ifelse/01_minimum.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
null
null
null
pythontutor-ru/02_ifelse/01_minimum.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
21
2019-03-11T20:25:05.000Z
2022-02-28T13:53:10.000Z
''' http://pythontutor.ru/lessons/ifelse/problems/minimum/ Даны два целых числа. Выведите значение наименьшего из них. ''' val_01 = int(input()) val_02 = int(input()) if val_01 > val_02: print(val_02) else: print(val_01)
19.166667
59
0.704348
0
0
0
0
0
0
0
0
171
0.612903
ce7cd3565831e5b22995deb48bc2a2fd08f936c7
1,705
py
Python
src/ui/license.py
Schrut/PRT
09d136cc75ef5e4e79e72ade07c5d64fabd097f2
[ "MIT" ]
2
2018-02-20T11:53:36.000Z
2018-05-12T10:01:27.000Z
src/ui/license.py
Schrut/PRT
09d136cc75ef5e4e79e72ade07c5d64fabd097f2
[ "MIT" ]
null
null
null
src/ui/license.py
Schrut/PRT
09d136cc75ef5e4e79e72ade07c5d64fabd097f2
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QWidget, QMessageBox class uiLicenseWindow(QMessageBox): """ The MIT License (MIT) https://mit-license.org/ """ def __init__(self, parent: QWidget): super().__init__(parent) self.parent = parent self.title = "The MIT License (MIT)" #Hardcoded License self.license = "<pre><b>...
50.147059
100
0.753079
1,664
0.970828
0
0
0
0
0
0
1,405
0.81972
ce7d9b34d754c223a723c3b5526adb48b8a8f699
2,021
py
Python
python/GameFlow/console/Console.py
Silversmithe/Connect4
dfdf89196e2eae6b40d2f637e2a47e03e2447534
[ "Apache-2.0" ]
null
null
null
python/GameFlow/console/Console.py
Silversmithe/Connect4
dfdf89196e2eae6b40d2f637e2a47e03e2447534
[ "Apache-2.0" ]
null
null
null
python/GameFlow/console/Console.py
Silversmithe/Connect4
dfdf89196e2eae6b40d2f637e2a47e03e2447534
[ "Apache-2.0" ]
null
null
null
import sys import os class Console(object): """ Class responsible for handling input from the user """ def __init__(self): self.log_file = "log.txt" # initialize log with open(self.log_file, 'a') as file: file.write("** NEW LOG CREATED **\n") @staticmethod ...
25.2625
73
0.521029
1,996
0.98763
0
0
1,510
0.747155
0
0
818
0.40475
ce7dcfa1ba0e4b637228e061f83bafab463cb61b
766
py
Python
servoblst.py
ForToffee/MeArm
90fdd94fd96b53b3579c6d8132e8586188e3d344
[ "MIT" ]
1
2016-04-04T17:39:54.000Z
2016-04-04T17:39:54.000Z
servoblst.py
ForToffee/MeArm
90fdd94fd96b53b3579c6d8132e8586188e3d344
[ "MIT" ]
null
null
null
servoblst.py
ForToffee/MeArm
90fdd94fd96b53b3579c6d8132e8586188e3d344
[ "MIT" ]
null
null
null
import time import os servos = {} class ServoController: def __init__(self): os.system('sudo /home/pi/PiBits/ServoBlaster/user/servod') def setAngle(self, servo_id, degrees): if degrees > 90: degrees = 90 elif degrees < -90: degrees = -90 #http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=36572...
22.529412
68
0.680157
723
0.943864
0
0
0
0
0
0
219
0.285901
ce801d6bd90e41604f5f09f5bc95fde822da704c
728
py
Python
TASQ/problems/forms.py
harshraj22/smallProjects
b31e9173c60abb778a1c196609757704ec9c3750
[ "MIT" ]
2
2019-11-18T14:13:57.000Z
2020-11-08T06:50:32.000Z
TASQ/problems/forms.py
harshraj22/smallProjects
b31e9173c60abb778a1c196609757704ec9c3750
[ "MIT" ]
16
2019-11-12T13:08:01.000Z
2022-02-27T10:51:28.000Z
TASQ/problems/forms.py
harshraj22/smallProjects
b31e9173c60abb778a1c196609757704ec9c3750
[ "MIT" ]
null
null
null
from django import forms from .models import Problem class ProblemForm(forms.ModelForm): options = ( ('A', 'A'), ('B', 'B'), ('C', 'C'), ('D', 'D'), ) choice = forms.ChoiceField(choices=options) class Meta: model = Problem fields = '__all__' # exclude = ['answer'] widgets = { 'answer': forms.Hid...
28
89
0.634615
672
0.923077
0
0
0
0
0
0
253
0.347527
ce80328129a238de658580aec1efceb41862bd9d
2,404
py
Python
recipes/make_spreadsheet_with_named_ranges.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
recipes/make_spreadsheet_with_named_ranges.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
recipes/make_spreadsheet_with_named_ranges.py
mat-m/odfdo
a4a509a056517ecf91449e029b36fe9a8ffa8ed0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Create a spreadsheet with two tables, using some named ranges. """ import os from odfdo import Document, Table if __name__ == "__main__": document = Document('spreadsheet') body = document.body table = Table("First Table") body.append(table) # populate the table : for...
33.388889
80
0.671381
0
0
0
0
0
0
0
0
841
0.349834
ce80fb5cf7cc8de8662abff81c0c30df6c3722fb
91
py
Python
gmailbox/apps.py
megatron0000/ces22-xadrez-web
10032f81952e1f816925f5af9c27f235dfbf360c
[ "MIT" ]
null
null
null
gmailbox/apps.py
megatron0000/ces22-xadrez-web
10032f81952e1f816925f5af9c27f235dfbf360c
[ "MIT" ]
8
2020-02-11T22:28:16.000Z
2021-06-10T20:16:42.000Z
gmailbox/apps.py
megatron0000/ces22-xadrez-web
10032f81952e1f816925f5af9c27f235dfbf360c
[ "MIT" ]
null
null
null
from django.apps import AppConfig class GmailBoxConfig(AppConfig): name = 'gmailbox'
15.166667
33
0.758242
54
0.593407
0
0
0
0
0
0
10
0.10989
ce815d6c526703afd41758b750594101532e6d14
724
py
Python
warmup/sock_merchant.py
franloza/hackerrank
e66f5f5c4c1c7c0fe93146d29140692cd71625b7
[ "MIT" ]
null
null
null
warmup/sock_merchant.py
franloza/hackerrank
e66f5f5c4c1c7c0fe93146d29140692cd71625b7
[ "MIT" ]
null
null
null
warmup/sock_merchant.py
franloza/hackerrank
e66f5f5c4c1c7c0fe93146d29140692cd71625b7
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the sockMerchant function below. def sockMerchant(n, ar): socks = {} for elem in ar: if elem in socks: socks[elem] += 1 else: socks[elem] = 1 return sum(elem // 2 for elem in socks.va...
19.567568
52
0.56768
0
0
0
0
0
0
0
0
337
0.46547
ce8168357ebbc2da0dca74cb00c849cf14fe0b44
5,468
py
Python
sentiment/twitter/2stepTestValidation.py
ekedziora/twinty
5f0ba01e9e1b93f686569ebd907517a4f41d5cf7
[ "Apache-2.0" ]
null
null
null
sentiment/twitter/2stepTestValidation.py
ekedziora/twinty
5f0ba01e9e1b93f686569ebd907517a4f41d5cf7
[ "Apache-2.0" ]
null
null
null
sentiment/twitter/2stepTestValidation.py
ekedziora/twinty
5f0ba01e9e1b93f686569ebd907517a4f41d5cf7
[ "Apache-2.0" ]
null
null
null
from nltk.corpus.reader import CategorizedPlaintextCorpusReader from nltk.tokenize.casual import TweetTokenizer from nltk.classify.scikitlearn import SklearnClassifier from sklearn.naive_bayes import BernoulliNB, MultinomialNB from sklearn.svm import SVC, LinearSVC, NuSVC, LinearSVR, NuSVR from sklearn.linear_model im...
53.087379
175
0.72586
0
0
0
0
0
0
0
0
2,182
0.399049
ce81ee19f31ff5409d3bf88154d88299544b821e
10,712
py
Python
mango/group.py
mschneider/mango-explorer
ed50880ef80b31b679c9c89fa9bf0579391d71c9
[ "MIT" ]
null
null
null
mango/group.py
mschneider/mango-explorer
ed50880ef80b31b679c9c89fa9bf0579391d71c9
[ "MIT" ]
null
null
null
mango/group.py
mschneider/mango-explorer
ed50880ef80b31b679c9c89fa9bf0579391d71c9
[ "MIT" ]
1
2021-09-02T17:06:09.000Z
2021-09-02T17:06:09.000Z
# # ⚠ Warning # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA...
47.821429
169
0.684279
9,195
0.856943
0
0
4,113
0.383318
0
0
2,968
0.276608
ce8209792059f11dd2ce00622a3448e62cd81437
639
py
Python
office_test_interface/hede_interface_test/encryption/md5_hede.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
office_test_interface/hede_interface_test/encryption/md5_hede.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
office_test_interface/hede_interface_test/encryption/md5_hede.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : yag8009 # @FileName : md5_hede # @Time : 2020/3/18 import hashlib import time def md5_hede(md5data): md5 = hashlib.md5() # 使用MD5加密模式 md5.update(md5data.encode("utf8")) # 将参数字符串传入 sign = md5.hexdigest() return sign if __name__ == '__mai...
27.782609
207
0.693271
0
0
0
0
0
0
0
0
396
0.571429
ce827ac31d171b94c54c1e52af75d3c49aac0651
2,270
py
Python
src/tables.py
tallywiesenberg/dating-data-dividend
0a4f3d7784e9902631a79dce1efb12fc39e74963
[ "MIT" ]
null
null
null
src/tables.py
tallywiesenberg/dating-data-dividend
0a4f3d7784e9902631a79dce1efb12fc39e74963
[ "MIT" ]
null
null
null
src/tables.py
tallywiesenberg/dating-data-dividend
0a4f3d7784e9902631a79dce1efb12fc39e74963
[ "MIT" ]
null
null
null
from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from .extensions import db class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) password = db.Column(db.Stri...
40.535714
84
0.697797
1,660
0.731278
0
0
0
0
0
0
760
0.334802
ce849a188316eb44b68f6012ce73ef84e1631ac2
9,586
py
Python
satyr/proxies/scheduler.py
usheth/satyr
01fadbe2f9c294b9a9719a85d5bd032925453ee6
[ "Apache-2.0" ]
null
null
null
satyr/proxies/scheduler.py
usheth/satyr
01fadbe2f9c294b9a9719a85d5bd032925453ee6
[ "Apache-2.0" ]
null
null
null
satyr/proxies/scheduler.py
usheth/satyr
01fadbe2f9c294b9a9719a85d5bd032925453ee6
[ "Apache-2.0" ]
1
2018-10-10T18:57:54.000Z
2018-10-10T18:57:54.000Z
from __future__ import absolute_import, division, print_function import logging import sys from mesos.interface import Scheduler from .messages import Filters, decode, encode class SchedulerProxy(Scheduler): def __init__(self, scheduler): self.scheduler = scheduler def registered(self, driver, fr...
41.860262
80
0.628312
9,402
0.980805
0
0
0
0
0
0
4,923
0.513561
ce852eac1ab8df3025b403cd06d435faa196ae79
6,759
py
Python
NeuralNetworks/neuralnetworks/NeuralNetwork.py
AlmCoding/MachineLearningPlayground
b0316367fc269c4fbb4a8035a59058b731e01839
[ "Apache-2.0" ]
null
null
null
NeuralNetworks/neuralnetworks/NeuralNetwork.py
AlmCoding/MachineLearningPlayground
b0316367fc269c4fbb4a8035a59058b731e01839
[ "Apache-2.0" ]
null
null
null
NeuralNetworks/neuralnetworks/NeuralNetwork.py
AlmCoding/MachineLearningPlayground
b0316367fc269c4fbb4a8035a59058b731e01839
[ "Apache-2.0" ]
null
null
null
import numpy as np class NeuralNetwork: """ Class implementing a feed forawrd neural network. Object fields: layers = a tuple containing numbers of neurons in each layer, starting from the input layer L = depth of the NN, eg, with depth L there are L matrices W: W[1], ...,W[L] ac...
43.326923
113
0.568131
6,737
0.996745
0
0
0
0
0
0
4,339
0.641959
ce86369c63bb6fc50980df6a3068e5a13c86663c
3,350
py
Python
xen/xen-4.2.2/tools/python/xen/xm/console.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/xen/xm/console.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/xen/xm/console.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
37.640449
77
0.589851
680
0.202985
0
0
0
0
0
0
1,192
0.355821
ce86edf8e6652b33bfc429b6779f16cab7aabc38
591
py
Python
Solutions/luhn.py
matthijskrul/PythonExercism
7f0fbd340cf32f7bb88b0c32287729968720ee1c
[ "MIT" ]
null
null
null
Solutions/luhn.py
matthijskrul/PythonExercism
7f0fbd340cf32f7bb88b0c32287729968720ee1c
[ "MIT" ]
null
null
null
Solutions/luhn.py
matthijskrul/PythonExercism
7f0fbd340cf32f7bb88b0c32287729968720ee1c
[ "MIT" ]
null
null
null
import re class Luhn(object): def __init__(self, card_num): self.number = card_num def valid(self): if re.search("[^0-9 ]", self.number) or len(re.findall("[0-9]", self.number)) <= 1: return False else: digits = re.sub("[^0-9]", "", self.number) dig...
28.142857
91
0.445008
578
0.978003
0
0
0
0
0
0
26
0.043993
ce882279c49c7c6dbe430df86a631892b7154111
3,342
py
Python
tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py
HongminWu/bnpy
04c918cc1150ca8d9694c093633d539d9286a1b6
[ "BSD-3-Clause" ]
3
2018-07-02T03:50:23.000Z
2019-05-16T03:23:55.000Z
tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py
HongminWu/bnpy
04c918cc1150ca8d9694c093633d539d9286a1b6
[ "BSD-3-Clause" ]
1
2021-01-07T01:33:06.000Z
2021-01-07T01:33:06.000Z
tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
1
2020-09-01T13:21:18.000Z
2020-09-01T13:21:18.000Z
import numpy as np import scipy.linalg import argparse import time from contextlib import contextmanager def measureTime(f, nTrial=3): def f_timer(*args, **kwargs): times = list() for rep in range(nTrial): start = time.time() result = f(*args, **kwargs) end ...
30.66055
102
0.620586
0
0
0
0
1,060
0.317175
0
0
1,177
0.352184
ce8992e05fc290077147eefaf26bedd1f77bd977
1,450
py
Python
actions/set_status.py
Bedrock-OSS/server-updater
b4329563f9af5525a69ffd1f461c53bf09e52c2b
[ "MIT" ]
1
2022-01-02T13:24:01.000Z
2022-01-02T13:24:01.000Z
actions/set_status.py
Bedrock-OSS/server-updater
b4329563f9af5525a69ffd1f461c53bf09e52c2b
[ "MIT" ]
3
2021-11-15T23:17:25.000Z
2022-01-02T13:26:34.000Z
actions/set_status.py
Bedrock-OSS/server-updater
b4329563f9af5525a69ffd1f461c53bf09e52c2b
[ "MIT" ]
null
null
null
from subprocess import run from actions.common import get_name_and_org, get_process_config from flask import request def set_status(): if not "id" in request.form and 'status' in request.form: return "Bad request", 400 id, status = request.form['id'], request.form['status'] if(id == 'bedrock-oss:server-upd...
35.365854
92
0.611034
0
0
0
0
0
0
0
0
429
0.295862
ce8c6b49bd95348ca5598200de74bc4909b5e91e
4,067
py
Python
amo2kinto/generator.py
Mozilla-GitHub-Standards/9856eb0fa59d2f9b39dc3c83d0f31961057b7f0ddf57ba213fd01b9b0f99c4cc
abbd2d8874b79fc12a0d8b6570593c8a6dbc2e68
[ "Apache-2.0" ]
5
2016-07-06T21:35:06.000Z
2019-05-15T22:36:24.000Z
amo2kinto/generator.py
Mozilla-GitHub-Standards/9856eb0fa59d2f9b39dc3c83d0f31961057b7f0ddf57ba213fd01b9b0f99c4cc
abbd2d8874b79fc12a0d8b6570593c8a6dbc2e68
[ "Apache-2.0" ]
63
2016-05-11T09:15:16.000Z
2021-10-15T16:44:23.000Z
amo2kinto/generator.py
mozilla-services/kinto2xml
ae8aee28c9a2b15e19a21553eb031ae32f673de2
[ "Apache-2.0" ]
6
2018-02-01T14:13:04.000Z
2020-07-13T05:36:57.000Z
import os import datetime from dateutil.parser import parse as dateutil_parser from jinja2 import Environment, PackageLoader from kinto_http import cli_utils from . import constants from .logger import logger JSON_DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ" COLLECTION_FORMAT = '/buckets/{bucket_id}/collections/{collection_i...
33.336066
88
0.668798
0
0
0
0
0
0
0
0
665
0.163511
ce8e42b2a35ed5fd98c1fefc1db9f29031a082bc
2,270
py
Python
migrations/versions/2019_03_04_optional_chart_and_table_classifications.py.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
1
2021-10-06T13:48:36.000Z
2021-10-06T13:48:36.000Z
migrations/versions/2019_03_04_optional_chart_and_table_classifications.py.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
116
2018-11-02T17:20:47.000Z
2022-02-09T11:06:22.000Z
migrations/versions/2019_03_04_optional_chart_and_table_classifications.py.py
racedisparityaudit/rd_cms
a12f0e3f5461cc41eed0077ed02e11efafc5dd76
[ "MIT" ]
2
2018-11-09T16:47:35.000Z
2020-04-09T13:06:48.000Z
"""Make some fields on Chart and Table nullable We want to copy chart and table data across to these tables but have no way to add a classification for each one, so we'll have to live with some nulls in here. Revision ID: 2019_03_04_make_fields_nullable Revises: 2019_03_04_chart_table_settings Create Date: 2019-03-05...
54.047619
113
0.781498
0
0
0
0
0
0
0
0
995
0.438326
ce8ebc8223eab95eca97cd475849f6774b863014
962
py
Python
open_discussions/middleware/channel_api_test.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
12
2017-09-27T21:23:27.000Z
2020-12-25T04:31:30.000Z
open_discussions/middleware/channel_api_test.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
3,293
2017-06-30T18:16:01.000Z
2022-03-31T18:01:34.000Z
open_discussions/middleware/channel_api_test.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
1
2020-04-13T12:19:57.000Z
2020-04-13T12:19:57.000Z
"""Tests for channel API middleware""" from django.utils.functional import SimpleLazyObject from open_discussions.middleware.channel_api import ChannelApiMiddleware def test_channel_api_middleware( mocker, jwt_token, rf, user ): # pylint: disable=unused-argument """Tests that the middleware makes a channel ...
38.48
87
0.759875
0
0
0
0
0
0
0
0
231
0.240125
ce8f967c1a3e2320cb9057b9e55d32dfed9aae91
2,019
py
Python
app/python/query_strings.py
ProfessorUdGuru/toykinter
66c0a9877df6b4b3034125566e687b7361085d2b
[ "Unlicense" ]
null
null
null
app/python/query_strings.py
ProfessorUdGuru/toykinter
66c0a9877df6b4b3034125566e687b7361085d2b
[ "Unlicense" ]
null
null
null
app/python/query_strings.py
ProfessorUdGuru/toykinter
66c0a9877df6b4b3034125566e687b7361085d2b
[ "Unlicense" ]
null
null
null
# query_strings.py ''' Since Sqlite queries are inserted as string in Python code, the queries can be stored here to save space in the modules where they are used. ''' delete_color_scheme = ''' DELETE FROM color_scheme WHERE color_scheme_id = ? ''' insert_color_scheme = ''' INSERT INT...
20.393939
69
0.595344
0
0
0
0
0
0
0
0
1,640
0.812283
ce90ad08ae1e89a4b497c7dcbd24f5d92a0ba879
428
py
Python
travel/migrations/0029_auto_20190514_2108.py
sausage-team/travel-notes
3c2454ebad7764906c5ff30cbdfe296cb7c64eb4
[ "MIT" ]
null
null
null
travel/migrations/0029_auto_20190514_2108.py
sausage-team/travel-notes
3c2454ebad7764906c5ff30cbdfe296cb7c64eb4
[ "MIT" ]
null
null
null
travel/migrations/0029_auto_20190514_2108.py
sausage-team/travel-notes
3c2454ebad7764906c5ff30cbdfe296cb7c64eb4
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-14 13:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('travel', '0028_auto_20190514_1929'), ] operations = [ migrations.AlterField( model_name='user', name='uid', ...
22.526316
98
0.616822
335
0.78271
0
0
0
0
0
0
129
0.301402
ce9204471f1cea2c7a2d1ce2b0a13ce9e7a84406
2,027
py
Python
ci/mocks/sensu/sensu_verify.py
infrawatch/collectd-sensubility
5bea37045137ab88c879159ba1e1792a70eb3717
[ "Apache-2.0" ]
null
null
null
ci/mocks/sensu/sensu_verify.py
infrawatch/collectd-sensubility
5bea37045137ab88c879159ba1e1792a70eb3717
[ "Apache-2.0" ]
7
2020-06-15T22:08:33.000Z
2021-01-08T16:03:01.000Z
ci/mocks/sensu/sensu_verify.py
paramite/collectd-sensubility
4baca0cd657b4f9d2edeb19e82b2b052c45c972c
[ "Apache-2.0" ]
1
2020-02-18T21:03:10.000Z
2020-02-18T21:03:10.000Z
#!/usr/bin/env python """, Mocked Ruby based Sensu server. Connects to the RabbitMQ instance and sends check requests as Sensu server would and waits for appropriate response. Fails the response is not received at all or in invalid format. """ import click import json import pika import signal import sys CI_TEST_RES...
29.808824
95
0.624075
0
0
0
0
1,362
0.671929
0
0
766
0.377898
ce92edbc18e65275ac6f2bfc1a972e464010433f
205
py
Python
django_ecommerce/contact/admin.py
marshallhumble/Python_Web
d0d31647c882f30422f31aa62ecd61ae7ad87123
[ "MIT" ]
null
null
null
django_ecommerce/contact/admin.py
marshallhumble/Python_Web
d0d31647c882f30422f31aa62ecd61ae7ad87123
[ "MIT" ]
null
null
null
django_ecommerce/contact/admin.py
marshallhumble/Python_Web
d0d31647c882f30422f31aa62ecd61ae7ad87123
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ContactForm class ContactFormAdmin(admin.ModelAdmin): class Meta: model = ContactForm admin.site.register(ContactForm, ContactFormAdmin)
20.5
50
0.780488
85
0.414634
0
0
0
0
0
0
0
0
ce943e66efc0e44702391aac0684e3625f5526e9
718
py
Python
ds/practice/daily_practice/20-07/assets/code/reverse_sll.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/practice/daily_practice/20-07/assets/code/reverse_sll.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/practice/daily_practice/20-07/assets/code/reverse_sll.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" HackerRank :: Reverse a singly-linked list https://www.hackerrank.com/challenges/reverse-a-linked-list/problem Complete the reverse function below. For your reference: SinglyLinkedListNode: int data SinglyLinkedListNode next """ def reverse(head): # head node value can be null # Keep track of p...
23.16129
67
0.683844
0
0
0
0
0
0
0
0
445
0.619777
ce9550e5fc7912aecc7ac103430d2e2845e818b7
12,566
gyp
Python
ui/gfx/gfx.gyp
cvsuser-chromium/chromium
acb8e8e4a7157005f527905b48dd48ddaa3b863a
[ "BSD-3-Clause" ]
4
2017-04-05T01:51:34.000Z
2018-02-15T03:11:54.000Z
ui/gfx/gfx.gyp
cvsuser-chromium/chromium
acb8e8e4a7157005f527905b48dd48ddaa3b863a
[ "BSD-3-Clause" ]
1
2021-12-13T19:44:12.000Z
2021-12-13T19:44:12.000Z
ui/gfx/gfx.gyp
cvsuser-chromium/chromium
acb8e8e4a7157005f527905b48dd48ddaa3b863a
[ "BSD-3-Clause" ]
4
2017-04-05T01:52:03.000Z
2022-02-13T17:58:45.000Z
# Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { 'target_name': 'gfx', 'type': '<(component)', 'dependencies': [ ...
29.990453
100
0.524988
0
0
0
0
0
0
0
0
8,093
0.644039
ce9579f634d692007205ef460ecf1c49f7c087d2
2,191
py
Python
preprocess/python/h5py_utils.py
fredericsun/seq2seq-ChinesePoetryGenerater
2d3aab3807f99c99046f53a4d5cc045ae733386f
[ "MIT" ]
null
null
null
preprocess/python/h5py_utils.py
fredericsun/seq2seq-ChinesePoetryGenerater
2d3aab3807f99c99046f53a4d5cc045ae733386f
[ "MIT" ]
null
null
null
preprocess/python/h5py_utils.py
fredericsun/seq2seq-ChinesePoetryGenerater
2d3aab3807f99c99046f53a4d5cc045ae733386f
[ "MIT" ]
null
null
null
import numpy as np import h5py import os import sys from copy import deepcopy #handle .(period) and slash specially since it is part of path #replace with \period or \slash-forward when store, recover later #not using '\forward-slash' is because \f is a special character PERIOD='\period' SLASH='\slash-forward' ''' ...
19.918182
99
0.682337
0
0
0
0
0
0
0
0
1,131
0.516203
ce96c92938a6d505e9a78e6bd30465ac609c886c
2,238
py
Python
libs/dataset/pipeline.py
arnasRad/vits
c0e0689d8c24049a2531dd5d52fc96a594389db2
[ "MIT" ]
null
null
null
libs/dataset/pipeline.py
arnasRad/vits
c0e0689d8c24049a2531dd5d52fc96a594389db2
[ "MIT" ]
null
null
null
libs/dataset/pipeline.py
arnasRad/vits
c0e0689d8c24049a2531dd5d52fc96a594389db2
[ "MIT" ]
null
null
null
import re import string from libs.dataset.core import SampleEntry, oov_replacement_vocabulary, letter_replacements __word_start_regex = f'[ \t\n]|^|[{string.punctuation}]' __word_end_regex = f'[ \t\n]|$|[{string.punctuation}]' def does_not_have_numbers(s: SampleEntry): return not any(char.isdigit() for char in s...
34.430769
130
0.662645
0
0
0
0
0
0
0
0
709
0.310829
ce97329b4f1ef6afddfe7243f66fd55019aff8be
733
py
Python
examples/rfid_lookup.py
CMU-Robotics-Club/pyrc
bda1113a75ff9b67b518016b8b8aceeb9971d50b
[ "MIT" ]
null
null
null
examples/rfid_lookup.py
CMU-Robotics-Club/pyrc
bda1113a75ff9b67b518016b8b8aceeb9971d50b
[ "MIT" ]
2
2015-01-14T01:48:01.000Z
2015-04-06T05:16:23.000Z
examples/rfid_lookup.py
CMU-Robotics-Club/pyrc
bda1113a75ff9b67b518016b8b8aceeb9971d50b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from rc.clients import APIClient if __name__ == '__main__': """ Given a valid RFID attempts to lookup the User's ID. Then using that User ID, if it exists, get more information about the User. """ # If the bash variables RC_PUBLIC_KEY and RC_PRIVATE_KEY # are not set you need t...
25.275862
67
0.68895
0
0
0
0
0
0
0
0
464
0.633015
ce9737971517d349e0d99c904be7b6abc01113e4
1,015
py
Python
LeetCode/0417. Pacific Atlantic Water Flow/solution.py
InnoFang/oh-my-algorithms
f559dba371ce725a926725ad28d5e1c2facd0ab2
[ "Apache-2.0" ]
1
2017-03-31T15:24:01.000Z
2017-03-31T15:24:01.000Z
LeetCode/0417. Pacific Atlantic Water Flow/solution.py
InnoFang/Algorithm-Library
1896b9d8b1fa4cd73879aaecf97bc32d13ae0169
[ "Apache-2.0" ]
null
null
null
LeetCode/0417. Pacific Atlantic Water Flow/solution.py
InnoFang/Algorithm-Library
1896b9d8b1fa4cd73879aaecf97bc32d13ae0169
[ "Apache-2.0" ]
null
null
null
""" 113 / 113 test cases passed. Runtime: 92 ms Memory Usage: 16.4 MB """ class Solution: def pacificAtlantic(self, heights: List[List[int]]) -> List[List[int]]: m, n = len(heights), len(heights[0]) def dfs(used, x, y): used[x][y] = True for xx, yy in [(x + 1, y), (x - 1, y),...
36.25
105
0.469951
932
0.918227
0
0
0
0
0
0
73
0.071921
ce983be2f0cd8dfbb73fd808cea94fd76f198a4e
456
py
Python
cellardoor/api/methods.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
null
null
null
cellardoor/api/methods.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
3
2015-01-31T14:53:06.000Z
2015-02-01T19:04:30.000Z
cellardoor/api/methods.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
2
2015-01-31T14:54:28.000Z
2018-03-05T17:33:42.000Z
__all__ = ( 'LIST', 'GET', 'CREATE', 'UPDATE', 'REPLACE', 'DELETE', 'ALL', 'get_http_methods' ) LIST = 'list' GET = 'get' CREATE = 'create' REPLACE = 'replace' UPDATE = 'update' DELETE = 'delete' ALL = (LIST, GET, CREATE, UPDATE, REPLACE, DELETE) _http_methods = { LIST: ('get',), GET: ('get',), CREATE: (...
13.818182
50
0.605263
0
0
0
0
0
0
0
0
147
0.322368
ce9b85f5702f1c6dc74c0af21d1a6d33b4e3768c
617
py
Python
tests/test007_check_instant_ach.py
xuru/Sila-Python
12fef8886580327779d32cf7596dae4516b36c11
[ "Apache-2.0" ]
9
2019-05-14T14:19:00.000Z
2021-11-10T05:07:39.000Z
tests/test007_check_instant_ach.py
xuru/Sila-Python
12fef8886580327779d32cf7596dae4516b36c11
[ "Apache-2.0" ]
8
2019-05-13T16:27:54.000Z
2021-09-14T17:31:51.000Z
tests/test007_check_instant_ach.py
xuru/Sila-Python
12fef8886580327779d32cf7596dae4516b36c11
[ "Apache-2.0" ]
8
2019-02-13T18:53:58.000Z
2021-09-03T15:49:31.000Z
import unittest import silasdk from tests.test_config import ( app, eth_private_key, eth_private_key_4, instant_ach_handle, user_handle) class Test007CheckInstantAchTest(unittest.TestCase): def test_check_instant_ach(self): payload = { "user_handle": instant_ach_handle, "accou...
26.826087
77
0.670989
416
0.67423
0
0
0
0
0
0
69
0.111831
ce9e402973e2cfeb24237745cb68e27f8bb1a25f
72
py
Python
lxml2json/__init__.py
meteozond/lxml2json
502b3512dcb0ae034469a2cedd7661a4801c4425
[ "MIT" ]
null
null
null
lxml2json/__init__.py
meteozond/lxml2json
502b3512dcb0ae034469a2cedd7661a4801c4425
[ "MIT" ]
null
null
null
lxml2json/__init__.py
meteozond/lxml2json
502b3512dcb0ae034469a2cedd7661a4801c4425
[ "MIT" ]
null
null
null
#!/usr/bin/env python from functions import convert name = "convert"
18
30
0.722222
0
0
0
0
0
0
0
0
31
0.430556
ce9f112137fa8c8ee27bbea19fe1b8d402e47a00
1,758
py
Python
src/day10.py
nlasheras/aoc-2021
17af9108e2f907747c9aca784e52c80e81949845
[ "MIT" ]
null
null
null
src/day10.py
nlasheras/aoc-2021
17af9108e2f907747c9aca784e52c80e81949845
[ "MIT" ]
null
null
null
src/day10.py
nlasheras/aoc-2021
17af9108e2f907747c9aca784e52c80e81949845
[ "MIT" ]
null
null
null
""" https://adventofcode.com/2021/day/10 """ from functools import reduce def read_input(filename): with open(filename, "r", encoding='utf-8') as file: return [l.rstrip() for l in file.readlines()] opening_map = { ")": "(", "]": "[", "}": "{", ">": "<" } closing_map = {v: k for k,v in opening_map.items()...
33.807692
103
0.608077
0
0
0
0
0
0
0
0
325
0.184869
ce9f2c870786c7bb3405fa82c2066dccfd69d84d
2,318
py
Python
bigbench/models/dummy_model.py
sebschu/BIG-bench
b04e56e3a9c0b6488fe154370de0b9697f991b67
[ "Apache-2.0" ]
4
2021-05-19T01:07:37.000Z
2021-11-02T01:31:56.000Z
bigbench/models/dummy_model.py
sebschu/BIG-bench
b04e56e3a9c0b6488fe154370de0b9697f991b67
[ "Apache-2.0" ]
6
2021-05-26T09:08:17.000Z
2021-05-31T15:27:14.000Z
bigbench/models/dummy_model.py
sebschu/BIG-bench
b04e56e3a9c0b6488fe154370de0b9697f991b67
[ "Apache-2.0" ]
3
2021-04-21T00:10:43.000Z
2021-06-01T17:22:54.000Z
# Copyright 2021 Google LLC # # 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, ...
37.387097
88
0.654443
1,631
0.703624
0
0
0
0
0
0
783
0.337791
ce9f408bce05df804432eb2ae09a3fb7b0a734bb
67
py
Python
strategy/__init__.py
mmmaaaggg/QABAT
d6f20d926de047af6857e466cf28084d0ba69993
[ "MIT" ]
3
2019-08-31T18:01:10.000Z
2021-04-04T09:51:17.000Z
strategy/__init__.py
mmmaaaggg/QABAT
d6f20d926de047af6857e466cf28084d0ba69993
[ "MIT" ]
null
null
null
strategy/__init__.py
mmmaaaggg/QABAT
d6f20d926de047af6857e466cf28084d0ba69993
[ "MIT" ]
1
2020-08-15T17:04:14.000Z
2020-08-15T17:04:14.000Z
# -*- coding: utf-8 -*- """ Created on 2017/11/18 @author: MG """
9.571429
23
0.522388
0
0
0
0
0
0
0
0
64
0.955224
ce9f508775c39825fac04c419be3ad975e03c872
1,099
py
Python
js/data/getcytoband.py
ManuelLecaro/ucsc-xena-client
67611408800d227172b27d97fcba267ddb93c06e
[ "Apache-2.0" ]
60
2017-01-18T00:51:24.000Z
2022-02-16T11:06:08.000Z
js/data/getcytoband.py
ManuelLecaro/ucsc-xena-client
67611408800d227172b27d97fcba267ddb93c06e
[ "Apache-2.0" ]
407
2016-03-04T23:11:29.000Z
2022-03-18T07:27:10.000Z
js/data/getcytoband.py
ManuelLecaro/ucsc-xena-client
67611408800d227172b27d97fcba267ddb93c06e
[ "Apache-2.0" ]
60
2017-03-02T15:19:48.000Z
2021-01-19T09:39:46.000Z
#!/usr/bin/env python from itertools import groupby, tee import json, os files = [ ('hg38', 'http://hgdownload.soe.ucsc.edu/goldenPath/hg38/database/cytoBand.txt.gz'), ('hg19', 'http://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/cytoBand.txt.gz'), ('hg18', 'http://hgdownload.soe.ucsc.edu/goldenPath/h...
33.30303
94
0.624204
0
0
0
0
0
0
0
0
369
0.33576
cea21f7323fd769b736524d144d28f5a8974c4ed
6,973
py
Python
osxphotos/cli/param_types.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
null
null
null
osxphotos/cli/param_types.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
null
null
null
osxphotos/cli/param_types.py
oPromessa/osxphotos
0d7e324f0262093727147b9f22ed275e962e8725
[ "MIT" ]
null
null
null
"""Click parameter types for osxphotos CLI""" import datetime import os import pathlib import re import bitmath import click import pytimeparse2 from osxphotos.export_db_utils import export_db_get_version from osxphotos.photoinfo import PhotoInfoNone from osxphotos.phototemplate import PhotoTemplate, RenderOptions fr...
31.695455
153
0.582819
6,240
0.891938
0
0
0
0
0
0
2,456
0.351058
cea24139f5562c36b7de46c6bc9e387fa1a316e6
26,229
py
Python
old/ms/django_rg/views.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
16
2015-01-02T15:39:04.000Z
2016-03-17T06:38:46.000Z
old/ms/django_rg/views.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
37
2015-01-28T20:58:05.000Z
2016-03-22T04:01:32.000Z
old/ms/django_rg/views.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
8
2015-04-08T02:26:03.000Z
2016-03-04T05:56:24.000Z
''' All of these views are predicated on the user already being logged in to valid session. djago_ag/views.py John Whelchel Summer 2013 These are the views for the Replica Gateway section of the administration site. They are all decorated with @authenticate to make sure that a user is logged in; if not, they are re...
39.089419
126
0.618895
0
0
0
0
24,878
0.948492
0
0
9,213
0.351252