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
609c58346f33ce4d4cdeec7d9b46908849047083
21,070
py
Python
build/python-env/lib/python2.7/site-packages/elasticsearch/client/xpack/ml.py
imiMoisesEducation/beatcookie-discbot
59c8be23346d8d2fc1777a2b08856df88e2ae5c2
[ "Apache-2.0" ]
1
2021-05-11T12:09:58.000Z
2021-05-11T12:09:58.000Z
build/python-env/lib/python2.7/site-packages/elasticsearch/client/xpack/ml.py
imiMoisesEducation/beatcookie-discbot
59c8be23346d8d2fc1777a2b08856df88e2ae5c2
[ "Apache-2.0" ]
null
null
null
build/python-env/lib/python2.7/site-packages/elasticsearch/client/xpack/ml.py
imiMoisesEducation/beatcookie-discbot
59c8be23346d8d2fc1777a2b08856df88e2ae5c2
[ "Apache-2.0" ]
2
2020-01-13T17:51:02.000Z
2020-07-24T17:50:44.000Z
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH class MlClient(NamespacedClient): @query_params('from_', 'size') def get_filters(self, filter_id=None, params=None): """ :arg filter_id: The ID of the filter to fetch :arg from_: skips a num...
43
102
0.64205
20,971
0.995301
0
0
20,753
0.984955
0
0
12,406
0.588799
609c675a647587e5e1ba2913f0c1ade0647fff7d
17,264
py
Python
src/oci/service_catalog/service_catalog_client_composite_operations.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/service_catalog/service_catalog_client_composite_operations.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/service_catalog/service_catalog_client_composite_operations.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
54.460568
245
0.703313
16,834
0.975093
0
0
0
0
0
0
9,339
0.540952
609c86e4469f43e38a1d6ec5480ccb39cd4fde7a
1,776
py
Python
vision/_file_utils.py
BrianOfrim/boja
6571fbbfb7f015e96e80e822d9dc96b4636b4119
[ "MIT" ]
7
2020-01-27T18:39:02.000Z
2022-02-14T13:23:40.000Z
vision/_file_utils.py
a428tm/boja
6571fbbfb7f015e96e80e822d9dc96b4636b4119
[ "MIT" ]
1
2021-06-02T00:55:25.000Z
2021-06-02T00:55:25.000Z
vision/_file_utils.py
a428tm/boja
6571fbbfb7f015e96e80e822d9dc96b4636b4119
[ "MIT" ]
6
2020-01-28T21:28:23.000Z
2020-12-28T14:35:06.000Z
from typing import List import os import re def create_output_dir(dir_name) -> bool: if not os.path.isdir(dir_name) or not os.path.exists(dir_name): print("Creating output directory: %s" % dir_name) try: os.makedirs(dir_name) except OSError: print("Creation of the d...
29.6
85
0.628378
0
0
0
0
0
0
0
0
116
0.065315
609cf5344b535f0910e1e3a47704f4e750a0c25d
5,355
py
Python
vaccine_allocation/epi_simulations.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/epi_simulations.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/epi_simulations.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
import dask import numpy as np import pandas as pd from epimargin.models import Age_SIRVD from epimargin.utils import annually, normalize, percent, years from studies.vaccine_allocation.commons import * from tqdm import tqdm import warnings warnings.filterwarnings("error") num_sims = 1000 simulation_range = 1...
45
150
0.597572
0
0
0
0
0
0
0
0
431
0.080486
609d2577b79fe5b4822db1b8e2ab1b0bb0027683
1,975
py
Python
src/core/agent_state.py
nandofioretto/py_dcop
fb2dbc97b69360f5d1fb67d84749e44afcdf48c3
[ "Apache-2.0" ]
4
2018-08-06T08:55:36.000Z
2018-09-28T12:54:21.000Z
src/core/agent_state.py
nandofioretto/py_dcop
fb2dbc97b69360f5d1fb67d84749e44afcdf48c3
[ "Apache-2.0" ]
null
null
null
src/core/agent_state.py
nandofioretto/py_dcop
fb2dbc97b69360f5d1fb67d84749e44afcdf48c3
[ "Apache-2.0" ]
null
null
null
'''Every agent has an agent state, which is its local view of the world''' import numpy as np import itertools class AgentState: def __init__(self, name, agt, seed=1234): self.name = name self.prng = np.random.RandomState(seed) # contains the variable assignment (exploreD) for this agent a...
38.72549
86
0.663797
1,863
0.943291
0
0
0
0
0
0
518
0.262278
609dc8066e4ed58454e785ac9407ba710dd24391
32
py
Python
johnny_cache/__init__.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
3
2019-07-23T02:33:04.000Z
2021-05-25T16:57:24.000Z
johnny_cache/__init__.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
null
null
null
johnny_cache/__init__.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
null
null
null
from .server import app # noqa
16
31
0.71875
0
0
0
0
0
0
0
0
6
0.1875
609f2b3abd12396a9fb221b6c6ef204f6a133c95
218
py
Python
python_packages_static/flopy/mf6/__init__.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
351
2015-01-03T15:18:48.000Z
2022-03-31T09:46:43.000Z
python_packages_static/flopy/mf6/__init__.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
1,256
2015-01-15T21:10:42.000Z
2022-03-31T22:43:06.000Z
python_packages_static/flopy/mf6/__init__.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
553
2015-01-31T22:46:48.000Z
2022-03-31T17:43:35.000Z
# imports from . import coordinates from . import data from .modflow import * from . import utils from .data import mfdatascalar, mfdatalist, mfdataarray from .mfmodel import MFModel from .mfbase import ExtFileAction
21.8
55
0.798165
0
0
0
0
0
0
0
0
9
0.041284
609ff6c4c10fb31262c0f09062e4b789c62b7f8c
360
py
Python
tests/__init__.py
issuu/jmespath
7480643df8ad0c99269b1fa6b9e793582bcb7efe
[ "MIT" ]
null
null
null
tests/__init__.py
issuu/jmespath
7480643df8ad0c99269b1fa6b9e793582bcb7efe
[ "MIT" ]
null
null
null
tests/__init__.py
issuu/jmespath
7480643df8ad0c99269b1fa6b9e793582bcb7efe
[ "MIT" ]
null
null
null
import sys # The unittest module got a significant overhaul # in 2.7, so if we're in 2.6 we can use the backported # version unittest2. if sys.version_info[:2] == (2, 6): import unittest2 as unittest import simplejson as json from ordereddict import OrderedDict else: import unittest import json ...
21.176471
54
0.725
0
0
0
0
0
0
0
0
122
0.338889
60a02b70b3feadeb7f3f6ef29e2296758c121c15
2,782
py
Python
src/routes/scoring.py
jtillman20/cfb-data-api
69bcae225e4fa0616eb526bd608e20ace17f1816
[ "MIT" ]
null
null
null
src/routes/scoring.py
jtillman20/cfb-data-api
69bcae225e4fa0616eb526bd608e20ace17f1816
[ "MIT" ]
null
null
null
src/routes/scoring.py
jtillman20/cfb-data-api
69bcae225e4fa0616eb526bd608e20ace17f1816
[ "MIT" ]
null
null
null
from typing import Union from flask import request from flask_restful import Resource from exceptions import InvalidRequestError from models import Scoring from utils import flask_response, rank, sort class ScoringRoute(Resource): @flask_response def get(self, side_of_ball: str) -> Union[Scoring, list[Scori...
30.571429
74
0.626528
1,953
0.702013
0
0
1,919
0.689792
0
0
997
0.358375
60a1ad6402e8e4a36b677d266c4a8212a4c64c09
15,419
py
Python
WebPortal/gbol_portal/vars.py
ZFMK/GermanBarcodeofLife
f9e9af699ba3f5b3d0d537819a8463c4162d7e82
[ "Apache-2.0" ]
null
null
null
WebPortal/gbol_portal/vars.py
ZFMK/GermanBarcodeofLife
f9e9af699ba3f5b3d0d537819a8463c4162d7e82
[ "Apache-2.0" ]
null
null
null
WebPortal/gbol_portal/vars.py
ZFMK/GermanBarcodeofLife
f9e9af699ba3f5b3d0d537819a8463c4162d7e82
[ "Apache-2.0" ]
null
null
null
import configparser c = configparser.ConfigParser() c.read("production.ini") config = {} config['host'] = c['dboption']['chost'] config['port'] = int(c['dboption']['cport']) config['user'] = c['dboption']['cuser'] config['pw'] = c['dboption']['cpw'] config['db'] = c['dboption']['cdb'] config['homepath'] = c['option'][...
48.335423
120
0.613075
0
0
0
0
0
0
0
0
11,434
0.738917
60a325d8698400a67c71d72f6db2f8d62fcf36f0
1,798
py
Python
challenges/Backend Challenge/pendulum_sort.py
HernandezDerekJ/Interview
202d78767d452ecfe8c6220180d7ed53b1104231
[ "MIT" ]
null
null
null
challenges/Backend Challenge/pendulum_sort.py
HernandezDerekJ/Interview
202d78767d452ecfe8c6220180d7ed53b1104231
[ "MIT" ]
null
null
null
challenges/Backend Challenge/pendulum_sort.py
HernandezDerekJ/Interview
202d78767d452ecfe8c6220180d7ed53b1104231
[ "MIT" ]
null
null
null
""" Coderpad solution """ def pend(arr): ## arr = [2,3,5,1,4] ## vrr = [0,0,0,0,0] var = [0] * len(arr) mid = (len(var) - 1) / 2 ## sort_arr = [1,2,3,4,5] ## vrr = [0,0,1,0,0] sort_arr = sorted(arr) var[mid] = sort_arr[0] # ^ # focus...
31
102
0.375417
0
0
0
0
0
0
0
0
1,020
0.567297
60a3e925a35adb27a53e4a197d8b807d37a073ac
13,745
py
Python
swagger_server/controllers/threadFactory.py
garagonc/optimization-framework
1ca57699d6a3f2f98dcaea96430e75c3f847b49f
[ "Apache-2.0" ]
null
null
null
swagger_server/controllers/threadFactory.py
garagonc/optimization-framework
1ca57699d6a3f2f98dcaea96430e75c3f847b49f
[ "Apache-2.0" ]
null
null
null
swagger_server/controllers/threadFactory.py
garagonc/optimization-framework
1ca57699d6a3f2f98dcaea96430e75c3f847b49f
[ "Apache-2.0" ]
null
null
null
import os import configparser import json import time from IO.inputConfigParser import InputConfigParser from IO.redisDB import RedisDB from optimization.ModelException import MissingKeysException from optimization.controllerDiscrete import OptControllerDiscrete from optimization.controllerMpc import OptControllerMPC...
56.102041
120
0.587923
13,014
0.946817
0
0
0
0
0
0
2,603
0.189378
60a44344bf403a9af637f117e79a2de34161a730
8,141
py
Python
ptrace/oop/math_tests.py
xann16/py-path-tracing
609dbe6b80580212bd9d8e93afb6902091040d7a
[ "MIT" ]
null
null
null
ptrace/oop/math_tests.py
xann16/py-path-tracing
609dbe6b80580212bd9d8e93afb6902091040d7a
[ "MIT" ]
null
null
null
ptrace/oop/math_tests.py
xann16/py-path-tracing
609dbe6b80580212bd9d8e93afb6902091040d7a
[ "MIT" ]
null
null
null
"""Unit tests for math-oriented common classes.""" import unittest import math import numpy as np from .vector import Vec3, OrthonormalBasis from .raycast_base import Ray from .camera import Camera class Vec3Tests(unittest.TestCase): """Test for Vec3 class.""" def test_vec3_basic(self): """Basic cr...
35.550218
81
0.607051
7,880
0.96794
0
0
0
0
0
0
730
0.08967
60a44dedd81ec9521c352eb02db132ee4f4bcd33
2,336
py
Python
tests/integration/condition__browser__have_url_test.py
kianku/selene
5361938e4f34d6cfae6df3aeca80e06a3e657d8c
[ "MIT" ]
null
null
null
tests/integration/condition__browser__have_url_test.py
kianku/selene
5361938e4f34d6cfae6df3aeca80e06a3e657d8c
[ "MIT" ]
null
null
null
tests/integration/condition__browser__have_url_test.py
kianku/selene
5361938e4f34d6cfae6df3aeca80e06a3e657d8c
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2015-2020 Iakiv Kramarenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
37.079365
101
0.771404
0
0
0
0
0
0
0
0
1,236
0.52911
60a47f3e241e5f669273b6d0c92cbb5374b0f349
3,970
py
Python
cohesity_management_sdk/models/scheduling_policy.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2021-01-07T20:36:22.000Z
2021-01-07T20:36:22.000Z
cohesity_management_sdk/models/scheduling_policy.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/scheduling_policy.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. import cohesity_management_sdk.models.continuous_schedule import cohesity_management_sdk.models.daily_schedule import cohesity_management_sdk.models.monthly_schedule import cohesity_management_sdk.models.rpo_schedule class SchedulingPolicy(object): """Implem...
43.152174
203
0.688917
3,693
0.930227
0
0
1,585
0.399244
0
0
2,167
0.545844
60a5c5419df750bc2b6508ae2377a189aff71a1a
3,575
py
Python
networking_mlnx/eswitchd/cli/ebrctl.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
networking_mlnx/eswitchd/cli/ebrctl.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
networking_mlnx/eswitchd/cli/ebrctl.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2013 Mellanox Technologies, Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.555556
73
0.683636
0
0
0
0
0
0
0
0
1,151
0.321958
60a620c9bc97c103d049f3c1d9096836751f9133
161
py
Python
survos/core/__init__.py
paskino/SuRVoS
e01e784442e2e9f724826cdb70f3a50c034c6455
[ "Apache-2.0" ]
22
2016-09-30T08:04:42.000Z
2022-03-05T07:24:18.000Z
survos/core/__init__.py
paskino/SuRVoS
e01e784442e2e9f724826cdb70f3a50c034c6455
[ "Apache-2.0" ]
81
2016-11-21T15:32:14.000Z
2022-02-20T00:22:27.000Z
survos/core/__init__.py
paskino/SuRVoS
e01e784442e2e9f724826cdb70f3a50c034c6455
[ "Apache-2.0" ]
6
2018-11-22T10:19:59.000Z
2022-02-04T06:15:48.000Z
from .launcher import Launcher from .model import DataModel from .layers import LayerManager from .labels import LabelManager from .singleton import Singleton
20.125
32
0.832298
0
0
0
0
0
0
0
0
0
0
60a739a78fd701a33047ec6e80de5f418140cf06
2,567
py
Python
src/FinanceLib/analysis.py
Chahat-M/FinanceLib
0428779220a97e7fe0ad35a50207b737059b9c86
[ "MIT" ]
3
2021-06-20T14:55:16.000Z
2021-12-29T03:55:34.000Z
src/FinanceLib/analysis.py
Chahat-M/FinanceLib
0428779220a97e7fe0ad35a50207b737059b9c86
[ "MIT" ]
null
null
null
src/FinanceLib/analysis.py
Chahat-M/FinanceLib
0428779220a97e7fe0ad35a50207b737059b9c86
[ "MIT" ]
1
2021-06-26T05:39:08.000Z
2021-06-26T05:39:08.000Z
from typing import List, Union import numpy as np import pandas_datareader as pdr import pandas as pd import matplotlib.pyplot as plt def rsi(symbol :str ,name :str, date :str) -> None : """ Calculates and visualises the Relative Stock Index on a Stock of the company. Parameters: symbol(str) : Sy...
34.689189
96
0.626023
0
0
0
0
0
0
0
0
900
0.350604
60aaca2558f26dc382fc17ea023f8e47287579c5
26,892
py
Python
datastore/core/test/test_basic.py
jbenet/datastore
6c0e9f39b844788ca21c5cf613c625a72fb20c20
[ "MIT" ]
1
2015-05-24T13:11:16.000Z
2015-05-24T13:11:16.000Z
datastore/core/test/test_basic.py
jbenet/datastore
6c0e9f39b844788ca21c5cf613c625a72fb20c20
[ "MIT" ]
null
null
null
datastore/core/test/test_basic.py
jbenet/datastore
6c0e9f39b844788ca21c5cf613c625a72fb20c20
[ "MIT" ]
null
null
null
import unittest import logging from ..basic import DictDatastore from ..key import Key from ..query import Query class TestDatastore(unittest.TestCase): def subtest_simple(self, stores, numelems=1000): def checkLength(len): try: for sn in stores: self.assertEqual(len(sn), numelems) ...
27.553279
77
0.643611
26,685
0.992303
0
0
0
0
0
0
2,249
0.083631
60aacb1ea53997b926d5fc68404773f2cbe78055
852
py
Python
rooms/models.py
Neisvestney/SentSyncServer
45e9572b6c9b274ed2cbad28749fcb2154c98757
[ "MIT" ]
null
null
null
rooms/models.py
Neisvestney/SentSyncServer
45e9572b6c9b274ed2cbad28749fcb2154c98757
[ "MIT" ]
null
null
null
rooms/models.py
Neisvestney/SentSyncServer
45e9572b6c9b274ed2cbad28749fcb2154c98757
[ "MIT" ]
null
null
null
from django.db import models class Room(models.Model): code = models.CharField('Code', max_length=128) tab_url = models.CharField('Tab url', max_length=512, default='', blank=True) def to_dict(self): return { 'users': [u.to_dict() for u in self.users.all()], 'tabUrl': self...
25.818182
82
0.597418
817
0.95892
0
0
0
0
0
0
135
0.158451
60ae0a74f0e5e8766035e68de7d7b1a1a948d0fa
321
py
Python
colbert/parameters.py
techthiyanes/ColBERT
6493193b98d95595f15cfc375fed2f0b24df4f83
[ "MIT" ]
421
2020-06-03T05:30:00.000Z
2022-03-31T13:10:42.000Z
colbert/parameters.py
xrr233/ColBERT
88a5ecd8aa7dca70d0d52ab51422cb06c843fb4e
[ "MIT" ]
87
2020-08-07T10:07:56.000Z
2022-03-30T03:49:16.000Z
colbert/parameters.py
xrr233/ColBERT
88a5ecd8aa7dca70d0d52ab51422cb06c843fb4e
[ "MIT" ]
111
2020-06-28T03:02:14.000Z
2022-03-15T05:56:24.000Z
import torch DEVICE = torch.device("cuda") SAVED_CHECKPOINTS = [32*1000, 100*1000, 150*1000, 200*1000, 300*1000, 400*1000] SAVED_CHECKPOINTS += [10*1000, 20*1000, 30*1000, 40*1000, 50*1000, 60*1000, 70*1000, 80*1000, 90*1000] SAVED_CHECKPOINTS += [25*1000, 50*1000, 75*1000] SAVED_CHECKPOINTS = set(SAVED_CHECKPOINTS)...
32.1
102
0.725857
0
0
0
0
0
0
0
0
6
0.018692
60ae786acbdf645e9d5e08b60bc5b3249a338b60
6,496
py
Python
jarvis/stats.py
aburgd/sheila
556cf3e4a6992b8ba609ba281f5a3657cd91e709
[ "MIT" ]
null
null
null
jarvis/stats.py
aburgd/sheila
556cf3e4a6992b8ba609ba281f5a3657cd91e709
[ "MIT" ]
null
null
null
jarvis/stats.py
aburgd/sheila
556cf3e4a6992b8ba609ba281f5a3657cd91e709
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # Module Imports ############################################################################### import pyscp import textwrap from dominate import tags as dt from . import core, lex, ext ########################...
28.121212
79
0.475985
3,662
0.563732
0
0
0
0
0
0
2,478
0.381466
60aeca0f1277fa05a855d2d1630e9fb88e8caff2
124
py
Python
entry.py
Allenyou1126/allenyou-acme.sh
2f5fa606cb0a66ded49d75a98d0dc47adc68c87c
[ "Apache-2.0" ]
null
null
null
entry.py
Allenyou1126/allenyou-acme.sh
2f5fa606cb0a66ded49d75a98d0dc47adc68c87c
[ "Apache-2.0" ]
null
null
null
entry.py
Allenyou1126/allenyou-acme.sh
2f5fa606cb0a66ded49d75a98d0dc47adc68c87c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json from allenyoucert import Cert def main(): certList = list() a = json() main()
11.272727
29
0.645161
0
0
0
0
0
0
0
0
22
0.177419
60afd06ba545d034d33e457e4d731a2d4625fc23
340
py
Python
dynts/lib/fallback/simplefunc.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
57
2015-02-10T13:42:06.000Z
2022-03-28T14:48:36.000Z
dynts/lib/fallback/simplefunc.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
1
2016-11-01T07:43:05.000Z
2016-11-01T07:43:05.000Z
dynts/lib/fallback/simplefunc.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
17
2015-05-08T04:09:19.000Z
2021-08-02T19:24:52.000Z
from .common import * def tsminmax(v): mv = NaN xv = NaN for v in x: if x == x: if mv == mv: mv = min(mv,x) else: mv = x if xv == xv: xv = max(xv,x) else: xv = x retu...
20
31
0.297059
0
0
0
0
0
0
0
0
0
0
60b09b84c56168890b3b6bd6e6a345dc11ac1a37
3,552
py
Python
week9/finance/application.py
lcsm29/edx-harvard-cs50
283f49bd6a9e4b8497e2b397d766b64527b4786b
[ "MIT" ]
null
null
null
week9/finance/application.py
lcsm29/edx-harvard-cs50
283f49bd6a9e4b8497e2b397d766b64527b4786b
[ "MIT" ]
null
null
null
week9/finance/application.py
lcsm29/edx-harvard-cs50
283f49bd6a9e4b8497e2b397d766b64527b4786b
[ "MIT" ]
null
null
null
import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from tempfile import mkdtemp from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError from werkzeug.security import check_password_hash, generate_pa...
24.839161
100
0.675113
0
0
0
0
2,279
0.64161
0
0
1,449
0.407939
60b0bb8f2315cabad512414bb05d03c08dd3d690
882
py
Python
users/forms.py
iurykrieger96/alura-django
d8ed9998ccbc629127b2c6ca3ed3798da9a578f3
[ "MIT" ]
null
null
null
users/forms.py
iurykrieger96/alura-django
d8ed9998ccbc629127b2c6ca3ed3798da9a578f3
[ "MIT" ]
null
null
null
users/forms.py
iurykrieger96/alura-django
d8ed9998ccbc629127b2c6ca3ed3798da9a578f3
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.forms.utils import ErrorList class UserForm(forms.Form): name = forms.CharField(required=True) email = forms.EmailField(required=True) password = forms.CharField(required=True) phone = forms.CharField(required=True) n...
32.666667
90
0.679138
769
0.871882
0
0
0
0
0
0
70
0.079365
60b1ecdd22ff60b0f76eb9a849e552628f551e26
6,547
py
Python
python/manager.py
Kiku-Reise/vsmart
dd8cf84816da8734e72dbb46c07694f561597648
[ "Apache-2.0" ]
null
null
null
python/manager.py
Kiku-Reise/vsmart
dd8cf84816da8734e72dbb46c07694f561597648
[ "Apache-2.0" ]
null
null
null
python/manager.py
Kiku-Reise/vsmart
dd8cf84816da8734e72dbb46c07694f561597648
[ "Apache-2.0" ]
null
null
null
from telethon.sync import TelegramClient from telethon.errors.rpcerrorlist import PhoneNumberBannedError import pickle, os from colorama import init, Fore from time import sleep init() n = Fore.RESET lg = Fore.LIGHTGREEN_EX r = Fore.RED w = Fore.WHITE cy = Fore.CYAN ye = Fore.YELLOW colors = [lg, r, w, cy, ye] try: ...
36.780899
109
0.494578
0
0
0
0
0
0
0
0
2,437
0.372232
60b2db27faa35c5bbae9711262c54fdad4d8f495
1,212
py
Python
src/m2ee/client_errno.py
rus-kh/m2ee-tools
70000796a53131bb1cd8d199f48cd5e7aab2c505
[ "BSD-3-Clause" ]
23
2015-11-26T12:05:45.000Z
2022-03-17T10:24:22.000Z
src/m2ee/client_errno.py
rus-kh/m2ee-tools
70000796a53131bb1cd8d199f48cd5e7aab2c505
[ "BSD-3-Clause" ]
54
2016-07-26T12:44:07.000Z
2022-02-17T10:08:01.000Z
src/m2ee/client_errno.py
rus-kh/m2ee-tools
70000796a53131bb1cd8d199f48cd5e7aab2c505
[ "BSD-3-Clause" ]
34
2015-01-04T07:05:48.000Z
2022-02-15T10:23:52.000Z
# # Copyright (C) 2009 Mendix. All rights reserved. # SUCCESS = 0 # Starting the Mendix Runtime can fail in both a temporary or permanent way. # Some of the errors can be fixed with some help of the user. # # The default m2ee cli program will only handle a few of these cases, by # providing additional hints or intera...
30.3
76
0.792079
0
0
0
0
0
0
0
0
815
0.672442
60b31fb7e46f9a498f1975750fe02489646c609d
2,456
py
Python
datasets/__init__.py
andrewliao11/detr
944bb60e090e6b72aede9574cd2b7f75202cfe05
[ "Apache-2.0" ]
null
null
null
datasets/__init__.py
andrewliao11/detr
944bb60e090e6b72aede9574cd2b7f75202cfe05
[ "Apache-2.0" ]
null
null
null
datasets/__init__.py
andrewliao11/detr
944bb60e090e6b72aede9574cd2b7f75202cfe05
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch.utils.data import torchvision def get_coco_api_from_dataset(dataset_val): for _ in range(10): # if isinstance(dataset, torchvision.datasets.CocoDetection): # break if isinstance(dataset_val, torch.utils...
47.230769
112
0.733713
0
0
0
0
0
0
0
0
540
0.21987
60b3e5f9c1bddecc88bf9ce4ae8e78ecc1b7e1ee
11,139
py
Python
dkhomeleague/dkhomeleague.py
sansbacon/dkhomeleague
17ab695df9ceccf5b7f135181b19ade8d47add5f
[ "Apache-2.0" ]
null
null
null
dkhomeleague/dkhomeleague.py
sansbacon/dkhomeleague
17ab695df9ceccf5b7f135181b19ade8d47add5f
[ "Apache-2.0" ]
null
null
null
dkhomeleague/dkhomeleague.py
sansbacon/dkhomeleague
17ab695df9ceccf5b7f135181b19ade8d47add5f
[ "Apache-2.0" ]
null
null
null
# dkhomeleague.py import json import logging import os from string import ascii_uppercase import pandas as pd from requests_html import HTMLSession import browser_cookie3 import pdsheet class Scraper: """scrapes league results""" def __init__(self, league_key=None, username=None): """Creates instan...
33.250746
133
0.586767
10,896
0.978185
0
0
563
0.050543
0
0
4,858
0.436125
60b401f8d464942d7d88868c9047da1188916d43
246
py
Python
Graphing/Example1.py
Wadden12/Semester1
a13c4486848daec3b5865e8a2a778689c81528fe
[ "Apache-2.0" ]
null
null
null
Graphing/Example1.py
Wadden12/Semester1
a13c4486848daec3b5865e8a2a778689c81528fe
[ "Apache-2.0" ]
null
null
null
Graphing/Example1.py
Wadden12/Semester1
a13c4486848daec3b5865e8a2a778689c81528fe
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import numpy as np import matplotlib.pyplot as plt t = np.arange(0.0, 3.0, 0.01) s = np.sin(2.5 * np.pi * t) plt.plot(t, s) plt.xlabel('time (s)') plt.ylabel('voltage (mV)') plt.title('Sine Wave') plt.grid(True) plt.show()
15.375
31
0.646341
0
0
0
0
0
0
0
0
53
0.215447
60b4ecd85396e388011990857be8fae61e376084
517
py
Python
Cursoemvideo/desafios/desafio008.py
gentildf/Python
bb333e55b197492eac1294619ca7b13ef57bb631
[ "MIT" ]
1
2021-03-16T13:07:29.000Z
2021-03-16T13:07:29.000Z
Cursoemvideo/desafios/desafio008.py
gentildf/Python
bb333e55b197492eac1294619ca7b13ef57bb631
[ "MIT" ]
null
null
null
Cursoemvideo/desafios/desafio008.py
gentildf/Python
bb333e55b197492eac1294619ca7b13ef57bb631
[ "MIT" ]
null
null
null
#Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros. n = float(input('\033[32mDigite o numero:\033[m')) print('O número digitado é \033[33m{0:.0f}m\033[m.\n' 'Ele apresentado em centimetros fica \033[33m{0:.2f}cm\033[m.\n' 'Apresentado em milímetros fica \033[33...
47
98
0.686654
0
0
0
0
0
0
0
0
463
0.880228
60b50f0934ca9581fa086a588f7ded362261de6d
795
py
Python
publish_fanout.py
Dordoloy/BachelorDIM-Lectures-Algorithms-2019
14e3e7132eecf62e3476dbea4d9db32adf1544ff
[ "MIT" ]
null
null
null
publish_fanout.py
Dordoloy/BachelorDIM-Lectures-Algorithms-2019
14e3e7132eecf62e3476dbea4d9db32adf1544ff
[ "MIT" ]
null
null
null
publish_fanout.py
Dordoloy/BachelorDIM-Lectures-Algorithms-2019
14e3e7132eecf62e3476dbea4d9db32adf1544ff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 21 08:47:08 2019 @author: dordoloy """ import os import pika import config import getpass def publish_fanout(): amqp_url=config.amqp_url # Parse CLODUAMQP_URL (fallback to localhost) url = os.environ.get('CLOUDAMQP_URL',amqp_url) params = pika...
22.714286
71
0.622642
0
0
0
0
0
0
0
0
206
0.259119
60b55902d0598b3b2fa55eabb666b4e4d52752c7
16,112
py
Python
orbit/utils.py
xjx0524/models
99be973aa8168a0d2275d475883b3256b193251f
[ "Apache-2.0" ]
null
null
null
orbit/utils.py
xjx0524/models
99be973aa8168a0d2275d475883b3256b193251f
[ "Apache-2.0" ]
null
null
null
orbit/utils.py
xjx0524/models
99be973aa8168a0d2275d475883b3256b193251f
[ "Apache-2.0" ]
null
null
null
<<<<<<< HEAD # Lint as: python3 ======= >>>>>>> a811a3b7e640722318ad868c99feddf3f3063e36 # Copyright 2020 The Orbit Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License ...
32.288577
80
0.696996
3,625
0.224988
298
0.018496
1,734
0.107622
0
0
9,040
0.561072
60b585e86ccc82ac6a2eddf76170bf681c5dfe4e
364
py
Python
python/word-count/word_count.py
whitepeaony/exercism-python
5c947ba5c589f1969bcb754e88969420262c457e
[ "MIT" ]
null
null
null
python/word-count/word_count.py
whitepeaony/exercism-python
5c947ba5c589f1969bcb754e88969420262c457e
[ "MIT" ]
20
2019-08-02T13:59:21.000Z
2022-01-22T10:08:23.000Z
python/word-count/word_count.py
whitepeaony/exercism-python
5c947ba5c589f1969bcb754e88969420262c457e
[ "MIT" ]
null
null
null
def count_words(sentence): sentence = sentence.lower() words = {} shit = ',\n:!&@$%^&._' for s in shit: sentence = sentence.replace(s, ' ') for w in sentence.split(): if w.endswith('\''): w = w[:-1] if w.startswith('\''): w = w[1:] words...
20.222222
43
0.453297
0
0
0
0
0
0
0
0
26
0.071429
60b74cba1803d593d12dfa926f3a269a994bf89a
705
py
Python
examples/multiple_deserializers.py
klauer/apischema
0da9b96b74dabe8704e2dcfca4502aed98500799
[ "MIT" ]
null
null
null
examples/multiple_deserializers.py
klauer/apischema
0da9b96b74dabe8704e2dcfca4502aed98500799
[ "MIT" ]
null
null
null
examples/multiple_deserializers.py
klauer/apischema
0da9b96b74dabe8704e2dcfca4502aed98500799
[ "MIT" ]
null
null
null
from dataclasses import dataclass from apischema import deserialize, deserializer from apischema.json_schema import deserialization_schema @dataclass class Expression: value: int @deserializer def evaluate_expression(expr: str) -> Expression: return Expression(int(eval(expr))) # Could be shorten into des...
25.178571
86
0.753191
32
0.04539
0
0
240
0.340426
0
0
164
0.232624
60b7ecc0410fa366c1d483830d2676a99b8210cd
1,509
py
Python
ficheros/CSV/prueba csv (lm)/alumnos.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
ficheros/CSV/prueba csv (lm)/alumnos.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
ficheros/CSV/prueba csv (lm)/alumnos.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 02/12/2011 @author: chra ''' import csv from operator import itemgetter # ----- Función media de la notas de los alumnos ---------- def media(alumno): #devuelve la nota media a partir de un diccionario con datos de un alumno nota1 = int(alumno['Nota1']) nota2 = int...
29.588235
120
0.581842
0
0
0
0
0
0
0
0
920
0.609272
60ba59b06c112c09793490d953e6cf3a3ee2e96f
799
py
Python
src/interpreter/functions/math/math.py
incrementals/b-star
325bb51eafd5c5173582bf065b82d10ef9669275
[ "MIT" ]
2
2021-11-02T04:28:32.000Z
2021-11-05T14:27:08.000Z
src/interpreter/functions/math/math.py
incrementals/b-star
325bb51eafd5c5173582bf065b82d10ef9669275
[ "MIT" ]
null
null
null
src/interpreter/functions/math/math.py
incrementals/b-star
325bb51eafd5c5173582bf065b82d10ef9669275
[ "MIT" ]
null
null
null
from src.interpreter.functions.math.add import add from src.interpreter.functions.math.div import div from src.interpreter.functions.math.mod import mod from src.interpreter.functions.math.mul import mul from src.interpreter.functions.math.pow import pow_func from src.interpreter.functions.math.sub import sub def mat...
31.96
56
0.667084
0
0
0
0
0
0
0
0
38
0.047559
60bb3a202511a6b1b6fac3f7f1b3970bd6850c3c
367
py
Python
setup.py
monkey2000/pygazetteer
3eb6026b1473f773817a81ebc0060ec455482739
[ "MIT" ]
1
2018-01-28T09:38:56.000Z
2018-01-28T09:38:56.000Z
setup.py
monkey2000/pygazetteer
3eb6026b1473f773817a81ebc0060ec455482739
[ "MIT" ]
null
null
null
setup.py
monkey2000/pygazetteer
3eb6026b1473f773817a81ebc0060ec455482739
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='pygazetteer', version='0.1.0', description='Location extractor by looking up gazetteer', url='https://github.com/monkey2000/pygazetteer', license='MIT', packages=['pygazetteer'], install_requires=[ 'pyahocorasick' ], zip...
24.466667
63
0.643052
0
0
0
0
0
0
0
0
140
0.381471
60bc5e49484474aa3891401d08c7a54d11595b9c
3,145
py
Python
iqoptionapi/country_id.py
mustx1/MYIQ
3afb597aa8a8abc278b7d70dad46af81789eae3e
[ "MIT" ]
3
2021-07-09T18:34:57.000Z
2021-08-04T18:05:17.000Z
iqoptionapi/country_id.py
mustx1/MYIQ
3afb597aa8a8abc278b7d70dad46af81789eae3e
[ "MIT" ]
5
2022-01-20T00:32:49.000Z
2022-02-16T23:12:10.000Z
iqoptionapi/country_id.py
mustx1/MYIQ
3afb597aa8a8abc278b7d70dad46af81789eae3e
[ "MIT" ]
2
2021-06-15T15:13:07.000Z
2021-12-08T04:16:36.000Z
ID = {"Worldwide":0, "AF": 1, "AL": 2, "DZ": 3, "AD": 5, "AO": 6, "AI": 7, "AG": 9, "AR": 10, "AM": 11, "AW": 12, "AT": 14, "AZ": 15, "BS": 16, "BH": 17, "BD": 18, "BB": 19, "BY": 20, "BZ": 22, "BJ": 23, ...
16.465969
20
0.275358
0
0
0
0
0
0
0
0
767
0.243879
60bc8d5255a0bd875f4af98e1eec0327e1d5bb7e
34,771
py
Python
pysd/py_backend/external.py
rogersamso/pysd_dev
85606265aa92878c35a41dd81ce9588d23350e19
[ "MIT" ]
null
null
null
pysd/py_backend/external.py
rogersamso/pysd_dev
85606265aa92878c35a41dd81ce9588d23350e19
[ "MIT" ]
1
2021-05-25T16:34:10.000Z
2021-05-25T16:34:10.000Z
pysd/py_backend/external.py
rogersamso/pysd_dev
85606265aa92878c35a41dd81ce9588d23350e19
[ "MIT" ]
null
null
null
""" These classes are a collection of the needed tools to read external data. The External type objects created by these classes are initialized before the Stateful objects by functions.Model.initialize. """ import re import os import warnings import pandas as pd # TODO move to openpyxl import numpy as np import xarr...
34.156189
79
0.515516
34,369
0.988439
0
0
2,692
0.077421
0
0
12,218
0.351385
60bd44a6d884dfc054933f1d7828b758d91a71b3
15,921
py
Python
pirates/piratesgui/ChatBar.py
ksmit799/POTCO-PS
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
8
2017-01-24T04:33:29.000Z
2020-11-01T08:36:24.000Z
pirates/piratesgui/ChatBar.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
1
2017-03-02T18:05:17.000Z
2017-03-14T06:47:10.000Z
pirates/piratesgui/ChatBar.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
11
2017-03-02T18:46:07.000Z
2020-11-01T08:36:26.000Z
# File: C (Python 2.4) from direct.gui.DirectGui import * from direct.interval.IntervalGlobal import * from direct.fsm.FSM import FSM from direct.showbase.PythonUtil import Functor from pandac.PandaModules import * from pirates.piratesbase import PiratesGlobals from pirates.piratesbase import PLocalizer from pirates.p...
43.5
464
0.655172
15,475
0.971987
0
0
0
0
0
0
1,018
0.063941
60bd4912fb3c20a7cbfabbd3fdd321346095f54b
6,610
py
Python
mozmill-env/python/Lib/site-packages/mozlog/logger.py
lucashmorais/x-Bench
2080b8753dd6e45c2212666bcdb05327752a94e9
[ "MIT" ]
null
null
null
mozmill-env/python/Lib/site-packages/mozlog/logger.py
lucashmorais/x-Bench
2080b8753dd6e45c2212666bcdb05327752a94e9
[ "MIT" ]
null
null
null
mozmill-env/python/Lib/site-packages/mozlog/logger.py
lucashmorais/x-Bench
2080b8753dd6e45c2212666bcdb05327752a94e9
[ "MIT" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from logging import getLogger as getSysLogger from logging import * # Some of the build slave environments don't see the...
36.519337
100
0.637065
4,335
0.655825
0
0
0
0
0
0
2,980
0.450832
60c1a81157e41324b28041d302b03e92ee199d40
14,335
py
Python
CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
7
2016-05-20T21:56:39.000Z
2022-02-07T21:09:48.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2019-03-21T16:10:04.000Z
2019-03-22T17:21:56.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/core/misc/images.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2020-05-19T16:17:17.000Z
2020-05-19T16:17:17.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
35.134804
209
0.548936
12,764
0.890346
0
0
0
0
0
0
7,042
0.491211
60c1d48ace52455ffd7fc2885603c6dc3baa53ba
5,876
py
Python
venv/Lib/site-packages/rivescript/inheritance.py
Hazemcodes/GimmyBot
f24cb90e0d3c045100f59def1d5e14bef367cba7
[ "Apache-2.0" ]
154
2015-02-04T08:41:23.000Z
2022-03-18T19:39:53.000Z
venv/Lib/site-packages/rivescript/inheritance.py
Hazemcodes/GimmyBot
f24cb90e0d3c045100f59def1d5e14bef367cba7
[ "Apache-2.0" ]
115
2015-06-14T13:31:07.000Z
2022-02-14T23:02:19.000Z
venv/Lib/site-packages/rivescript/inheritance.py
Hazemcodes/GimmyBot
f24cb90e0d3c045100f59def1d5e14bef367cba7
[ "Apache-2.0" ]
87
2015-04-18T23:15:18.000Z
2022-03-18T09:52:06.000Z
# RiveScript-Python # # This code is released under the MIT License. # See the "LICENSE" file for more information. # # https://www.rivescript.com/ def get_topic_triggers(rs, topic, thats, depth=0, inheritance=0, inherited=False): """Recursively scan a topic and return a list of all triggers. Arguments: ...
40.524138
107
0.651293
0
0
0
0
0
0
0
0
3,634
0.618448
60c2063c53b34bc28b910dfe0bb280da49581724
2,560
py
Python
src/dataAccess/Connection.py
mattmillr/utaka
6622e9057c323b0aed1113f8723404d264a7c82e
[ "Apache-2.0" ]
1
2016-10-24T02:45:11.000Z
2016-10-24T02:45:11.000Z
src/dataAccess/Connection.py
mattmillr/utaka
6622e9057c323b0aed1113f8723404d264a7c82e
[ "Apache-2.0" ]
null
null
null
src/dataAccess/Connection.py
mattmillr/utaka
6622e9057c323b0aed1113f8723404d264a7c82e
[ "Apache-2.0" ]
null
null
null
#Copyright 2009 Humanitarian International Services Group # #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...
29.767442
98
0.75625
1,289
0.503516
0
0
0
0
0
0
1,083
0.423047
60c55601d180bba88cdc945fcda09ef1976ad00b
1,617
py
Python
setup.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
null
null
null
setup.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
null
null
null
setup.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md')) as fin: long_description = fin.read() setup( name='pylint-pytest', version='1.0.3', author='Reverb Chu', ...
33
78
0.63389
0
0
0
0
0
0
0
0
894
0.552876
60c5712ca1f4ef817490766e027dfd8c59267d52
1,637
py
Python
Shells/Python/Client/TCPReverseShell.py
lismore/OffensiveCyberTools
c43fb78f0067498e53cfa5aad9e0fd60ebd6e069
[ "MIT" ]
1
2021-05-18T04:35:38.000Z
2021-05-18T04:35:38.000Z
Shells/Python/Client/TCPReverseShell.py
lismore/OffensiveCyberTools
c43fb78f0067498e53cfa5aad9e0fd60ebd6e069
[ "MIT" ]
null
null
null
Shells/Python/Client/TCPReverseShell.py
lismore/OffensiveCyberTools
c43fb78f0067498e53cfa5aad9e0fd60ebd6e069
[ "MIT" ]
1
2021-05-18T04:35:40.000Z
2021-05-18T04:35:40.000Z
# Reverse TCP Shell in Python For Offensive Security/Penetration Testing Assignments # Connect on LinkedIn https://www.linkedin.com/in/lismore or Twitter @patricklismore #========================================================================================================================================= # Python...
43.078947
166
0.508247
0
0
0
0
0
0
0
0
768
0.469151
60c6f3e298d768073d3b87bc2b50e42241d8b8c4
6,395
py
Python
src/_cffi_src/openssl/engine.py
balabit-deps/balabit-os-6-python-cryptography
c31d184a56a18bad89a6444313367be71b5b0877
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/_cffi_src/openssl/engine.py
balabit-deps/balabit-os-6-python-cryptography
c31d184a56a18bad89a6444313367be71b5b0877
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/_cffi_src/openssl/engine.py
balabit-deps/balabit-os-6-python-cryptography
c31d184a56a18bad89a6444313367be71b5b0877
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/engine.h> """ TYPES = """ static const ...
37.180233
79
0.792807
0
0
0
0
0
0
0
0
6,259
0.978733
60c720ca02631a4c8efcc9abc342c50fb241f153
1,324
py
Python
tests/products/test_products.py
AlexandruScrob/fast_api_proj_2
9aca5d48ab3e42933747b23ff04c6d4f3487d93e
[ "MIT" ]
null
null
null
tests/products/test_products.py
AlexandruScrob/fast_api_proj_2
9aca5d48ab3e42933747b23ff04c6d4f3487d93e
[ "MIT" ]
null
null
null
tests/products/test_products.py
AlexandruScrob/fast_api_proj_2
9aca5d48ab3e42933747b23ff04c6d4f3487d93e
[ "MIT" ]
null
null
null
import pytest from httpx import AsyncClient from conf_test_db import app from tests.shared.info import category_info, product_info @pytest.mark.asyncio async def test_new_product(): async with AsyncClient(app=app, base_url="http://test") as ac: category_obj = await category_info() payload = { ...
29.422222
70
0.654834
0
0
0
0
1,186
0.89577
1,144
0.864048
251
0.189577
60c83e7959d89b5e5edca7072a51f45a83d6ac45
59,840
py
Python
3rdparty/pyviso2/src/viso2.py
utiasSTARS/matchable-image-transforms
2c723872ef82e51dfa32abd3bbcec8410cb7dd2d
[ "MIT" ]
11
2020-07-31T00:39:26.000Z
2022-02-10T05:46:52.000Z
3rdparty/pyviso2/src/viso2.py
utiasSTARS/matchable-image-transforms
2c723872ef82e51dfa32abd3bbcec8410cb7dd2d
[ "MIT" ]
1
2021-02-08T06:14:07.000Z
2021-02-22T02:33:30.000Z
3rdparty/pyviso2/src/viso2.py
utiasSTARS/matchable-image-transforms
2c723872ef82e51dfa32abd3bbcec8410cb7dd2d
[ "MIT" ]
5
2019-12-31T11:03:09.000Z
2022-01-30T02:16:02.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
33.448854
155
0.670488
54,076
0.903676
0
0
0
0
0
0
14,167
0.236748
60c89c536a5a429da0bac1d845d414b2ea221030
4,251
py
Python
restcord/http.py
Yandawl/restcord.py
eeaf75f4a3d05f3837906a60d5f4a9395c4933ff
[ "MIT" ]
4
2020-07-14T19:45:44.000Z
2021-08-11T20:15:51.000Z
restcord/http.py
Yandawl/restcord.py
eeaf75f4a3d05f3837906a60d5f4a9395c4933ff
[ "MIT" ]
1
2020-07-26T03:06:09.000Z
2020-07-26T03:06:09.000Z
restcord/http.py
Yandawl/restcord.py
eeaf75f4a3d05f3837906a60d5f4a9395c4933ff
[ "MIT" ]
1
2021-05-28T07:23:40.000Z
2021-05-28T07:23:40.000Z
# -*- coding: utf-8 -*- import asyncio import datetime import json import logging import sys from typing import Optional import aiohttp from aiohttp import ClientSession from . import __version__ from .errors import ( BadGateway, BadRequest, Forbidden, HTTPException, InternalServerError, NotFo...
29.317241
173
0.593037
3,818
0.898142
0
0
249
0.058574
2,181
0.513056
799
0.187956
60c93dc759e4957c6c02160af6c8d88b4200fc54
1,518
py
Python
notes/algo-ds-practice/problems/graph/mother_vertex.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
6
2020-07-05T05:15:19.000Z
2021-01-24T20:17:14.000Z
notes/algo-ds-practice/problems/graph/mother_vertex.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
null
null
null
notes/algo-ds-practice/problems/graph/mother_vertex.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
2
2020-09-14T06:46:37.000Z
2021-06-15T09:17:21.000Z
''' What is a Mother Vertex? A mother vertex in a graph G = (V,E) is a vertex v such that all other vertices in G can be reached by a path from v. How to find mother vertex? Case 1:- Undirected Connected Graph : In this case, all the vertices are mother vertices as we can reach to all the other nodes in the graph...
43.371429
178
0.729908
0
0
0
0
0
0
0
0
1,521
0.999343
60ca5ce5e30551afa068c44f1f37df1dba443df8
516
py
Python
app/config.py
MoShitrit/kubernetes-controller-example
210a75ddf9c423c55be248ed21f2b6dea160a782
[ "MIT" ]
null
null
null
app/config.py
MoShitrit/kubernetes-controller-example
210a75ddf9c423c55be248ed21f2b6dea160a782
[ "MIT" ]
null
null
null
app/config.py
MoShitrit/kubernetes-controller-example
210a75ddf9c423c55be248ed21f2b6dea160a782
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os class Config: api_group = os.environ.get('API_GROUP', 'hello-k8s.s5t.dev') auth_method = os.environ.get("AUTH_METHOD", "cluster") examples_plural = os.environ.get('API_PLURAL', 'examples') examples_version = os.environ.get('API_VERSION', 'v1alpha...
23.454545
64
0.649225
394
0.763566
0
0
0
0
0
0
195
0.377907
60ca8c56131d2ab13002b353ba23eeec4638f221
2,613
py
Python
mechanical_markdown/parsers.py
greenie-msft/mechanical-markdown
4fb410a34038fab7d270383561726dd4da7a2aca
[ "MIT" ]
null
null
null
mechanical_markdown/parsers.py
greenie-msft/mechanical-markdown
4fb410a34038fab7d270383561726dd4da7a2aca
[ "MIT" ]
null
null
null
mechanical_markdown/parsers.py
greenie-msft/mechanical-markdown
4fb410a34038fab7d270383561726dd4da7a2aca
[ "MIT" ]
null
null
null
""" Copyright (c) Microsoft Corporation. Licensed under the MIT License. """ import re import yaml from html.parser import HTMLParser from mistune import Renderer from mechanical_markdown.step import Step start_token = 'STEP' end_token = 'END_STEP' ignore_links_token = 'IGNORE_LINKS' end_ignore_links_token = 'END_...
30.034483
111
0.64026
2,276
0.871029
0
0
0
0
0
0
346
0.132415
60cb62275d3608a9262e293a2d9784988739e4b8
7,082
py
Python
cchecker.py
jakepolatty/compliance-checker
89d362c0616df0267a6a14227fdb9a05daada28e
[ "Apache-2.0" ]
null
null
null
cchecker.py
jakepolatty/compliance-checker
89d362c0616df0267a6a14227fdb9a05daada28e
[ "Apache-2.0" ]
null
null
null
cchecker.py
jakepolatty/compliance-checker
89d362c0616df0267a6a14227fdb9a05daada28e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import argparse import sys from compliance_checker.runner import ComplianceChecker, CheckSuite from compliance_checker.cf.util import download_cf_standard_name_table from compliance_checker import __version__ def main(): # Load all available checker cla...
48.841379
119
0.515391
0
0
0
0
0
0
0
0
2,504
0.353572
60cb8e5c27f24f98943d97e9273f6af1c5fa5149
328
py
Python
apps/articles/cms_apps.py
creimers/djangocms-delete-error
f38b8a7a277d98060a2b04d9552f26eff3c1c552
[ "MIT" ]
null
null
null
apps/articles/cms_apps.py
creimers/djangocms-delete-error
f38b8a7a277d98060a2b04d9552f26eff3c1c552
[ "MIT" ]
null
null
null
apps/articles/cms_apps.py
creimers/djangocms-delete-error
f38b8a7a277d98060a2b04d9552f26eff3c1c552
[ "MIT" ]
null
null
null
from cms.app_base import CMSApp from cms.apphook_pool import apphook_pool from django.utils.translation import gettext as _ class CategoriesAppHook(CMSApp): name = _("Categories") def get_urls(self, page=None, language=None, **kwargs): return ["apps.articles.urls"] apphook_pool.register(CategoriesA...
23.428571
59
0.759146
158
0.481707
0
0
0
0
0
0
32
0.097561
60cbf96ec164888707eb2ca83b141b44664c1449
821
py
Python
bouncer/blacklist/signals.py
sourcelair/bouncer-api
132c63bbd470b0635054ad71656d0303b39ee421
[ "MIT" ]
null
null
null
bouncer/blacklist/signals.py
sourcelair/bouncer-api
132c63bbd470b0635054ad71656d0303b39ee421
[ "MIT" ]
25
2018-07-17T10:58:23.000Z
2018-08-30T11:33:58.000Z
bouncer/blacklist/signals.py
sourcelair/bouncer-api
132c63bbd470b0635054ad71656d0303b39ee421
[ "MIT" ]
2
2018-07-18T10:57:20.000Z
2020-05-23T04:43:27.000Z
from django.db.models.signals import pre_save from django.dispatch import receiver from blacklist import models from hashlib import sha256 @receiver(pre_save, sender=models.EmailEntry) def email_entry_handler(sender, instance, **kwargs): """ Handler that assigns to lower_case_entry_value the entry_value.lower...
31.576923
74
0.774665
0
0
0
0
676
0.823386
0
0
172
0.209501
60ccc770ca96a11d7b161998731a553fd9e80f74
971
py
Python
app/boardgames/migrations/0001_initial.py
collaer/boardgames
51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210
[ "MIT" ]
null
null
null
app/boardgames/migrations/0001_initial.py
collaer/boardgames
51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210
[ "MIT" ]
null
null
null
app/boardgames/migrations/0001_initial.py
collaer/boardgames
51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-22 17:48 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='BoardGame', fields=[ ('id', models.AutoField(...
33.482759
134
0.547889
880
0.906282
0
0
0
0
0
0
204
0.210093
60ccdf38e3f7af2b3782dcf2b849f63822752423
2,181
py
Python
matcher/utils.py
BlueRidgeLabs/slack-meetups
aca850d4265f30f6d76bed1b1baeb2973c60c83d
[ "MIT" ]
12
2019-05-23T03:55:06.000Z
2022-02-25T07:11:27.000Z
matcher/utils.py
BlueRidgeLabs/slack-meetups
aca850d4265f30f6d76bed1b1baeb2973c60c83d
[ "MIT" ]
11
2020-03-27T18:43:58.000Z
2021-06-10T18:00:50.000Z
matcher/utils.py
BlueRidgeLabs/slack-meetups
aca850d4265f30f6d76bed1b1baeb2973c60c83d
[ "MIT" ]
9
2019-11-15T23:18:44.000Z
2022-02-10T19:27:37.000Z
import re # regex for a user or channel mention at the beginning of a message # example matches: " <@UJQ07L30Q> ", "<#C010P8N1ABB|interns>" # interactive playground: https://regex101.com/r/2Z7eun/2 MENTION_PATTERN = r"(?:^\s?<@(.*?)>\s?)|(?:^\s?<#(.*?)\|.*?>\s?)" def get_set_element(_set): """get the element fr...
30.291667
78
0.643283
0
0
0
0
0
0
0
0
1,114
0.510775
60ce6d6b59025060fc5b78c3b1b74f61b441a1a2
1,058
py
Python
scripts/quest/q3526s.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/quest/q3526s.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/quest/q3526s.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
# In Search for the Lost Memory [Explorer Thief] (3526) # To be replaced with GMS's exact dialogue. # Following dialogue has been edited from DeepL on JMS's dialogue transcript (no KMS footage anywhere): # https://kaengouraiu2.blog.fc2.com/blog-entry-46.html recoveredMemory = 7081 darkLord = 1052001 sm.setSpeakerID(...
48.090909
111
0.753308
0
0
0
0
0
0
0
0
817
0.772212
60cf079213b806efdae39b46a5d5e92189e230e8
1,404
py
Python
student/urls.py
rummansadik/Admission-Automation
a2fd305644cf60bfd0a381b855fb8c2810507f36
[ "MIT" ]
null
null
null
student/urls.py
rummansadik/Admission-Automation
a2fd305644cf60bfd0a381b855fb8c2810507f36
[ "MIT" ]
null
null
null
student/urls.py
rummansadik/Admission-Automation
a2fd305644cf60bfd0a381b855fb8c2810507f36
[ "MIT" ]
null
null
null
from django.contrib.auth.views import LoginView from django.urls import path from student import views urlpatterns = [ path('studentclick', views.studentclick_view, name='student-click'), path('studentlogin', LoginView.as_view( template_name='student/studentlogin.html'), name='studentlogin'), path...
52
80
0.718661
0
0
0
0
0
0
0
0
518
0.368946
60cfe2b25e1fd15d3b1f9eec1ded9e4ee805612a
10,381
py
Python
aiida_quantumespresso/parsers/neb.py
lin-cp/aiida-quantumespresso
55f2bc8c137a69be24709a119bc285c700997907
[ "MIT" ]
null
null
null
aiida_quantumespresso/parsers/neb.py
lin-cp/aiida-quantumespresso
55f2bc8c137a69be24709a119bc285c700997907
[ "MIT" ]
null
null
null
aiida_quantumespresso/parsers/neb.py
lin-cp/aiida-quantumespresso
55f2bc8c137a69be24709a119bc285c700997907
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from aiida.common import NotExistent from aiida.orm import Dict from aiida_quantumespresso.calculations.pw import PwCalculation from aiida_quantumespresso.parsers import QEOutputParsingError from aiida_quantumespresso.parsers.parse_raw import convert_qe_to_aiida_structure from aiida_quantumespr...
47.619266
119
0.652731
9,572
0.922069
0
0
181
0.017436
0
0
2,843
0.273866
60cffac1ca4370e00b0819dac3003373ca8c201a
361
py
Python
foundation/djangocms_submenu/cms_plugins.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
foundation/djangocms_submenu/cms_plugins.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
foundation/djangocms_submenu/cms_plugins.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.models.pluginmodel import CMSPlugin class SubmenuPlugin(CMSPluginBase): model = CMSPlugin name = _("Submenu") render_template = "cms/plugins/submenu.html" pl...
25.785714
55
0.806094
130
0.360111
0
0
0
0
0
0
35
0.096953
60d008a523955b3331abaa74c2b768ea0d2cf905
6,942
py
Python
training/horovod/base/horovod_wrapper.py
thehardikv/ai-platform-samples
0050d12476bcbfdb99d9894a3755a97da5cd80fe
[ "Apache-2.0" ]
418
2019-06-26T05:55:42.000Z
2022-03-31T10:46:57.000Z
training/horovod/base/horovod_wrapper.py
thehardikv/ai-platform-samples
0050d12476bcbfdb99d9894a3755a97da5cd80fe
[ "Apache-2.0" ]
362
2019-06-26T20:41:17.000Z
2022-02-10T16:02:16.000Z
training/horovod/base/horovod_wrapper.py
thehardikv/ai-platform-samples
0050d12476bcbfdb99d9894a3755a97da5cd80fe
[ "Apache-2.0" ]
229
2019-06-29T17:55:33.000Z
2022-03-14T15:52:58.000Z
import collections import datetime import json import multiprocessing import os import subprocess import sys import time _SSHD_BINARY_PATH = "/usr/sbin/sshd" EnvironmentConfig = collections.namedtuple( "EnvironmentConfig", ["hosts", "port", "is_chief", "pools", "job_id"]) class DeadlineExceededError(Excepti...
33.699029
81
0.659896
89
0.012821
0
0
0
0
0
0
1,594
0.229617
60d29eaedc8f1767e8af8cea16dd1cbc33c8db22
2,539
py
Python
smaregipy/pos/customer_groups.py
shabaraba/SmaregiPy
5447e5da1f21b38c0da1a759ee50b982de1522f7
[ "MIT" ]
null
null
null
smaregipy/pos/customer_groups.py
shabaraba/SmaregiPy
5447e5da1f21b38c0da1a759ee50b982de1522f7
[ "MIT" ]
1
2021-08-18T21:08:06.000Z
2021-08-18T21:08:06.000Z
smaregipy/pos/customer_groups.py
shabaraba/SmaregiPy
5447e5da1f21b38c0da1a759ee50b982de1522f7
[ "MIT" ]
null
null
null
import datetime from pydantic import Field from typing import ( ClassVar, List, Dict, Optional, ) from smaregipy.base_api import ( BaseServiceRecordApi, BaseServiceCollectionApi, ) from smaregipy.utils import NoData, DictUtil class CustomerGroup(BaseServiceRecordApi): RECORD_NAME = 'custo...
37.338235
93
0.747538
2,344
0.899118
0
0
0
0
702
0.269275
370
0.141926
60d36c2c07868be1d602edbfc58792e48953ffe7
960
py
Python
StickyDJ-Bot/src/clients/client.py
JCab09/StickyDJ-Bot
feaf2229a6729be6ad022f9105da19192e3a91d3
[ "WTFPL" ]
null
null
null
StickyDJ-Bot/src/clients/client.py
JCab09/StickyDJ-Bot
feaf2229a6729be6ad022f9105da19192e3a91d3
[ "WTFPL" ]
null
null
null
StickyDJ-Bot/src/clients/client.py
JCab09/StickyDJ-Bot
feaf2229a6729be6ad022f9105da19192e3a91d3
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 """ Base-Client Class This is the parent-class of all client-classes and holds properties and functions they all depend on. Author: Jason Cabezuela """ import src.util.debugger as Debugger import src.util.configmaker as configmaker class BaseClient(object): """Base-Client Class""" def ...
27.428571
101
0.684375
701
0.730208
0
0
59
0.061458
0
0
348
0.3625
60d3ab0d0b30464f05fb6f22999b5abfbd62a774
1,575
py
Python
cryptomon/ascii.py
S0L1DUS/cryptocoinmon
37b210ca2f93f0b70f160ad903782408dee0f9e9
[ "MIT" ]
null
null
null
cryptomon/ascii.py
S0L1DUS/cryptocoinmon
37b210ca2f93f0b70f160ad903782408dee0f9e9
[ "MIT" ]
null
null
null
cryptomon/ascii.py
S0L1DUS/cryptocoinmon
37b210ca2f93f0b70f160ad903782408dee0f9e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys from cryptomon.common import Colors if sys.version_info >= (3, 0): import io else: import StringIO as io ascii_title = """ /$$$$$$ /$$ /$$ /$$ /$$__ $$ | $$ ...
37.5
93
0.258413
0
0
0
0
0
0
0
0
1,068
0.678095
60d5e102f224ce9da90306668a9ad7d31fe50111
1,332
py
Python
car & pedestrian_tracker.py
Ishita-2001/Car-And-Pedestrian-prediction
6c4aeca84ae49d40ff6d27e51800c6f50db55070
[ "MIT" ]
1
2022-01-05T13:26:26.000Z
2022-01-05T13:26:26.000Z
car & pedestrian_tracker.py
Ishita-2001/Car-And-Pedestrian-prediction
6c4aeca84ae49d40ff6d27e51800c6f50db55070
[ "MIT" ]
null
null
null
car & pedestrian_tracker.py
Ishita-2001/Car-And-Pedestrian-prediction
6c4aeca84ae49d40ff6d27e51800c6f50db55070
[ "MIT" ]
null
null
null
import cv2 video=cv2.VideoCapture(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.mp4') #pre trained pedestrian and car classifier car_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\car.xml') pedestrian_tracker_file=(r'C:\Users\ISHITA\Desktop\ML project\UEM_PROJECT_COM\pedestrian.x...
28.340426
94
0.712462
0
0
0
0
0
0
0
0
491
0.368619
60d7aa6b6e26e469afd18baf5e09fc751d3bc828
1,658
py
Python
saleor/wing/api/serializers.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
1
2018-05-03T06:17:02.000Z
2018-05-03T06:17:02.000Z
saleor/wing/api/serializers.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
8
2018-05-07T16:42:35.000Z
2022-02-26T03:31:56.000Z
saleor/wing/api/serializers.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
# site settings rest api serializers from rest_framework import serializers from saleor.wing.models import Wing as Table class TableListSerializer(serializers.ModelSerializer): update_url = serializers.HyperlinkedIdentityField(view_name='wing:api-update') delete_url = serializers.HyperlinkedIdentityField(vie...
27.180328
86
0.581423
1,527
0.920989
0
0
0
0
0
0
222
0.133896
60d863fc0a0729ad229e95ea37c2cad1dd4545ab
2,165
py
Python
toontown/fishing/FishCollection.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/fishing/FishCollection.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/fishing/FishCollection.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from . import FishBase from . import FishGlobals class FishCollection: def __init__(self): self.fishList = [] def __len__(self): return len(self.fishList) def getFish(self): return self.fishList def makeFromNetLists(self, genusList, speciesList, weightList): self.fis...
30.069444
99
0.597229
2,114
0.976443
0
0
0
0
0
0
32
0.014781
60d8c3596ef6ebab1b92b84940522e5139154989
1,550
py
Python
lead/strategies/strategy_base.py
M4gicT0/Distribute
af903cdf6ae271f4b1152007ea4ba3928af57936
[ "MIT" ]
null
null
null
lead/strategies/strategy_base.py
M4gicT0/Distribute
af903cdf6ae271f4b1152007ea4ba3928af57936
[ "MIT" ]
null
null
null
lead/strategies/strategy_base.py
M4gicT0/Distribute
af903cdf6ae271f4b1152007ea4ba3928af57936
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # # Distributed under terms of the MIT license. """ Strategy base class """ from abc import ABCMeta, abstractmethod from tinydb import TinyDB, Query from node import Node import json class Strategy(object): def __init__(self, this_controller, thi...
25.833333
82
0.60129
1,296
0.836129
0
0
208
0.134194
0
0
220
0.141935
60d8e5a0116e064e77e230eb96c9a8d6cada4db5
525
py
Python
project_euler/problem_01/sol6.py
mudit-chopra/Python
5d186f16d1f6d497c95c28c0ced7134314f65168
[ "MIT" ]
null
null
null
project_euler/problem_01/sol6.py
mudit-chopra/Python
5d186f16d1f6d497c95c28c0ced7134314f65168
[ "MIT" ]
null
null
null
project_euler/problem_01/sol6.py
mudit-chopra/Python
5d186f16d1f6d497c95c28c0ced7134314f65168
[ "MIT" ]
null
null
null
''' Problem Statement: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3,5,6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below N. ''' from __future__ import print_function try: raw_input # Python 2 except NameError: raw_input = i...
21
73
0.638095
0
0
0
0
0
0
0
0
282
0.537143
60d91e2f9fc2f2ed156791ead05310dd7eaf0d26
2,017
py
Python
jsonfallback/functions.py
laymonage/django-jsonfallback
6e70edd2dbab7d74230e4af48d160ea8c6a663fb
[ "Apache-2.0" ]
null
null
null
jsonfallback/functions.py
laymonage/django-jsonfallback
6e70edd2dbab7d74230e4af48d160ea8c6a663fb
[ "Apache-2.0" ]
2
2019-05-31T23:46:05.000Z
2019-06-02T06:54:54.000Z
jsonfallback/functions.py
laymonage/django-jsonfallback
6e70edd2dbab7d74230e4af48d160ea8c6a663fb
[ "Apache-2.0" ]
null
null
null
import copy from django.db import NotSupportedError from django.db.models import Expression from .fields import mysql_compile_json_path, postgres_compile_json_path, FallbackJSONField class JSONExtract(Expression): def __init__(self, expression, *path, output_field=FallbackJSONField(), **extra): super()._...
41.163265
116
0.695092
1,830
0.907288
0
0
0
0
0
0
115
0.057015
60d99db002da009becee8998564d797726db9d1f
6,460
py
Python
excelify/tests.py
pmbaumgartner/excelify
c0e29733efe407248810c3a8d3ec874f0cc0daca
[ "MIT" ]
11
2018-02-12T16:57:26.000Z
2021-03-12T03:04:53.000Z
excelify/tests.py
pmbaumgartner/excelify
c0e29733efe407248810c3a8d3ec874f0cc0daca
[ "MIT" ]
1
2018-02-04T20:53:35.000Z
2018-02-04T22:08:35.000Z
excelify/tests.py
pmbaumgartner/excelify
c0e29733efe407248810c3a8d3ec874f0cc0daca
[ "MIT" ]
null
null
null
import unittest import tempfile import pathlib import datetime import warnings from IPython.testing.globalipapp import start_ipython, get_ipython import pandas.util.testing as tm from pandas.core.frame import DataFrame from pandas.core.series import Series from pandas import read_excel import pytest ip = get_ipytho...
37.34104
126
0.658204
4,182
0.647368
97
0.015015
113
0.017492
0
0
718
0.111146
60d9b92e67e9782a6608f736efa327e02d317901
702
py
Python
Easy/233/233.py
lw7360/dailyprogrammer
7a0a4bdf20dd22ca96713958b479d963a15b09f5
[ "MIT" ]
null
null
null
Easy/233/233.py
lw7360/dailyprogrammer
7a0a4bdf20dd22ca96713958b479d963a15b09f5
[ "MIT" ]
null
null
null
Easy/233/233.py
lw7360/dailyprogrammer
7a0a4bdf20dd22ca96713958b479d963a15b09f5
[ "MIT" ]
null
null
null
# https://www.reddit.com/r/dailyprogrammer/comments/3ltee2/20150921_challenge_233_easy_the_house_that_ascii/ import random import sys def main(): data = open(sys.argv[1]).read().splitlines()[1::] door = random.randrange(len(data[-1])) wideData = [] for row in data: curStr = '' for...
21.9375
108
0.541311
0
0
0
0
0
0
0
0
137
0.195157
60dac391ea8e7b79572392e5f5a6e6cef2504848
11,103
py
Python
usr/callbacks/action/tools.py
uwitec/LEHome
a959a2fe64a23c58de7c0ff3254eae8c27732320
[ "Apache-2.0" ]
151
2015-01-25T10:25:29.000Z
2022-03-15T10:04:09.000Z
usr/callbacks/action/tools.py
legendmohe/LEHome
a959a2fe64a23c58de7c0ff3254eae8c27732320
[ "Apache-2.0" ]
null
null
null
usr/callbacks/action/tools.py
legendmohe/LEHome
a959a2fe64a23c58de7c0ff3254eae8c27732320
[ "Apache-2.0" ]
70
2015-02-02T02:35:48.000Z
2021-05-13T09:51:08.000Z
#!/usr/bin/env python # encoding: utf-8 from __future__ import division from decimal import Decimal import subprocess import threading import urllib2 import urllib import httplib import json import re import hashlib import base64 # import zlib from lib.command.runtime import UserInput from lib.helper.CameraHelper ...
33.442771
84
0.482482
10,904
0.957415
0
0
0
0
0
0
1,603
0.14075
60db218e039d083d014a00cf31bcf97c6c95ef51
286
py
Python
src/fix_code_1.py
Athenian-Computer-Science/numeric-operations-1-practice-template
cdfe370ced98c5e4c770bb89bb7faf0da31ea985
[ "Apache-2.0" ]
null
null
null
src/fix_code_1.py
Athenian-Computer-Science/numeric-operations-1-practice-template
cdfe370ced98c5e4c770bb89bb7faf0da31ea985
[ "Apache-2.0" ]
null
null
null
src/fix_code_1.py
Athenian-Computer-Science/numeric-operations-1-practice-template
cdfe370ced98c5e4c770bb89bb7faf0da31ea985
[ "Apache-2.0" ]
null
null
null
############################# # Collaborators: (enter people or resources who/that helped you) # If none, write none # # ############################# base = input('Enter the base: ") height = area = # Calculate the area of the triangle print("The area of the triangle is (area).")
23.833333
64
0.548951
0
0
0
0
0
0
0
0
218
0.762238
60db6ae3957694fa22eea77ea766c2665fc6212f
13,015
py
Python
gputools/core/oclmultireduction.py
gmazzamuto/gputools
73a4dee76a119f94d8163781a85b691fd080d506
[ "BSD-3-Clause" ]
89
2015-08-28T14:17:33.000Z
2022-01-20T16:19:34.000Z
gputools/core/oclmultireduction.py
gmazzamuto/gputools
73a4dee76a119f94d8163781a85b691fd080d506
[ "BSD-3-Clause" ]
24
2015-08-28T19:06:22.000Z
2022-02-21T21:10:13.000Z
gputools/core/oclmultireduction.py
gmazzamuto/gputools
73a4dee76a119f94d8163781a85b691fd080d506
[ "BSD-3-Clause" ]
17
2015-08-28T18:56:43.000Z
2021-09-15T23:15:36.000Z
""" an adaptation of pyopencl's reduction kernel for weighted avarages like sum(a*b) mweigert@mpi-cbg.de """ from __future__ import print_function, unicode_literals, absolute_import, division from six.moves import zip import pyopencl as cl from pyopencl.tools import ( context_dependent_memoize, dtype_to_cty...
28.417031
108
0.542374
5,519
0.424049
0
0
0
0
0
0
3,693
0.28375
60dcfdc60c959c4708ded0468f3983791fbd3721
596
py
Python
mineshaft.py
DidymusRex/PiCraft
07b7dad2e68a2473e4314c9b77cb82abce41ae97
[ "Unlicense" ]
null
null
null
mineshaft.py
DidymusRex/PiCraft
07b7dad2e68a2473e4314c9b77cb82abce41ae97
[ "Unlicense" ]
null
null
null
mineshaft.py
DidymusRex/PiCraft
07b7dad2e68a2473e4314c9b77cb82abce41ae97
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python import mcpi.minecraft as minecraft import mcpi.block as block import random import time mc = minecraft.Minecraft.create() # ---------------------------------------------------------------------- # S E T U P # ---------------------------------------------------------------------- # Where Am ...
24.833333
86
0.513423
0
0
0
0
0
0
0
0
225
0.377517
60de65cd7b893d039ce64092d8888cd693558525
831
py
Python
example/example01.py
ChenglongChen/TextRank4ZH
5af7b9d33d9e686411576362dfccf6f9d3d3282b
[ "MIT" ]
2
2016-09-08T11:39:09.000Z
2016-11-29T14:04:38.000Z
example/example01.py
ChenglongChen/TextRank4ZH
5af7b9d33d9e686411576362dfccf6f9d3d3282b
[ "MIT" ]
null
null
null
example/example01.py
ChenglongChen/TextRank4ZH
5af7b9d33d9e686411576362dfccf6f9d3d3282b
[ "MIT" ]
5
2017-03-03T03:18:32.000Z
2018-09-18T02:46:27.000Z
#-*- encoding:utf-8 -*- from __future__ import print_function import sys try: reload(sys) sys.setdefaultencoding('utf-8') except: pass import codecs from textrank4zh import TextRank4Keyword, TextRank4Sentence text = codecs.open('../test/doc/01.txt', 'r', 'utf-8').read() tr4w = TextRank4Keyword() tr4w.an...
24.441176
109
0.731649
0
0
0
0
0
0
0
0
222
0.246393
60de82d5bb8ba90b967a1ecc746d150756ee64d4
1,833
py
Python
scripts/anonymize_dumpdata.py
suutari-ai/respa
a944b1c13f855eaf5f883687b5fd025ece7c8176
[ "MIT" ]
1
2018-11-13T06:03:27.000Z
2018-11-13T06:03:27.000Z
scripts/anonymize_dumpdata.py
suutari-ai/respa
a944b1c13f855eaf5f883687b5fd025ece7c8176
[ "MIT" ]
1
2020-06-12T08:58:58.000Z
2020-06-12T08:58:58.000Z
scripts/anonymize_dumpdata.py
suutari-ai/respa
a944b1c13f855eaf5f883687b5fd025ece7c8176
[ "MIT" ]
null
null
null
import random import uuid import sys import json from faker import Factory from faker.providers.person.fi_FI import Provider as PersonProvider fake = Factory.create('fi_FI') email_by_user = {} users_by_id = {} def anonymize_users(users): usernames = set() emails = set() for data in users: if data...
31.067797
67
0.582106
0
0
0
0
0
0
0
0
400
0.218221
60ded314d6e25af4b6bb277bc0ff9652a4d9cb93
12,252
py
Python
torch_geometric/utils/negative_sampling.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
2,350
2021-09-12T08:32:50.000Z
2022-03-31T18:09:36.000Z
torch_geometric/utils/negative_sampling.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
588
2021-09-12T08:49:08.000Z
2022-03-31T21:02:13.000Z
torch_geometric/utils/negative_sampling.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
505
2021-09-13T13:13:32.000Z
2022-03-31T15:54:00.000Z
import random from typing import Optional, Tuple, Union import numpy as np import torch from torch import Tensor from torch_geometric.utils import coalesce, degree, remove_self_loops from .num_nodes import maybe_num_nodes def negative_sampling(edge_index: Tensor, num_nodes: Optional[Union[int...
39.395498
79
0.614675
0
0
0
0
0
0
0
0
4,587
0.374388
60def5370c10bc67986c4becccbe96488e2d1a66
3,924
py
Python
venv/Lib/site-packages/pafy/g.py
DavidJohnKelly/YoutubeDownloader
29cb4aa90946803474959f60d7b7e2f07c6e4de2
[ "MIT" ]
2
2021-10-05T03:09:57.000Z
2022-01-12T09:50:31.000Z
venv/Lib/site-packages/pafy/g.py
DavidJohnKelly/YoutubeDownloader
29cb4aa90946803474959f60d7b7e2f07c6e4de2
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pafy/g.py
DavidJohnKelly/YoutubeDownloader
29cb4aa90946803474959f60d7b7e2f07c6e4de2
[ "MIT" ]
1
2021-05-23T17:10:20.000Z
2021-05-23T17:10:20.000Z
import sys if sys.version_info[:2] >= (3, 0): # pylint: disable=E0611,F0401,I0011 from urllib.request import build_opener else: from urllib2 import build_opener from . import __version__ urls = { 'gdata': "https://www.googleapis.com/youtube/v3/", 'watchv': "http://www.youtube.com/watch?v=%s", ...
41.305263
77
0.509429
0
0
0
0
0
0
0
0
2,509
0.639399
60e2a8760c2ed0b0d0f7dbca153dcadf9a319042
4,827
py
Python
src/cowrie/telnet/userauth.py
uwacyber/cowrie
1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5
[ "BSD-3-Clause" ]
2,316
2015-06-25T18:51:02.000Z
2022-03-29T23:31:16.000Z
src/cowrie/telnet/userauth.py
uwacyber/cowrie
1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5
[ "BSD-3-Clause" ]
632
2015-07-08T19:02:05.000Z
2022-03-20T03:20:56.000Z
src/cowrie/telnet/userauth.py
uwacyber/cowrie
1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5
[ "BSD-3-Clause" ]
486
2015-08-12T05:02:45.000Z
2022-03-27T19:54:02.000Z
# Copyright (C) 2015, 2016 GoSecure Inc. """ Telnet Transport and Authentication for the Honeypot @author: Olivier Bilodeau <obilodeau@gosecure.ca> """ from __future__ import annotations import struct from twisted.conch.telnet import ( ECHO, LINEMODE, NAWS, SGA, AuthenticatingTelnetProtocol, ...
32.18
82
0.63207
4,353
0.901802
0
0
0
0
0
0
1,853
0.383882
60e2dac20daea4e1b597e6b7b483a594503cfc03
578
py
Python
authcheck/app/model/exception.py
flyr4nk/secscan-authcheck
d04c6ae3dc1fa7841727d23161c27eebaf92be3c
[ "Apache-2.0" ]
572
2019-08-31T01:09:56.000Z
2022-03-21T12:24:38.000Z
authcheck/app/model/exception.py
flyr4nk/secscan-authcheck
d04c6ae3dc1fa7841727d23161c27eebaf92be3c
[ "Apache-2.0" ]
19
2019-09-04T09:55:34.000Z
2021-12-30T09:54:28.000Z
authcheck/app/model/exception.py
flyr4nk/secscan-authcheck
d04c6ae3dc1fa7841727d23161c27eebaf92be3c
[ "Apache-2.0" ]
142
2019-09-04T08:32:39.000Z
2022-02-26T03:32:41.000Z
class WebException(Exception): pass class ParserException(Exception): """ 解析异常 """ pass class ApiException(Exception): """ api异常 """ pass class WsException(Exception): """ 轮询异常 """ pass class SsoException(Exception): """ sso异...
11.115385
35
0.491349
594
0.931034
0
0
0
0
0
0
225
0.352665
60e37ada66e51ab9afb000b29227a5b5f48e9d09
6,230
py
Python
p_io.py
JeremyBuchanan/psf-photometry-pipeline
864818dc8dd946a6e4d8dde1667bf948b769bb39
[ "MIT" ]
null
null
null
p_io.py
JeremyBuchanan/psf-photometry-pipeline
864818dc8dd946a6e4d8dde1667bf948b769bb39
[ "MIT" ]
null
null
null
p_io.py
JeremyBuchanan/psf-photometry-pipeline
864818dc8dd946a6e4d8dde1667bf948b769bb39
[ "MIT" ]
null
null
null
import astropy.io.fits as fits import matplotlib import matplotlib.pyplot as plt import numpy as np import obj_data as od import saphires as saph from astropy.time import Time from astropy.visualization import ZScaleInterval, SqrtStretch, ImageNormalize from matplotlib.backends.backend_pdf import PdfPages ra = od.ra d...
40.193548
135
0.586035
0
0
0
0
0
0
0
0
1,849
0.29679
60e50a2d4456ade56ee11c29fccdf4c73a092641
5,590
py
Python
sympy/polys/tests/test_monomialtools.py
ichuang/sympy
18afbcc7df2ebf2280ea5a88fde8ece34182ae71
[ "BSD-3-Clause" ]
1
2015-10-06T21:51:51.000Z
2015-10-06T21:51:51.000Z
sympy/polys/tests/test_monomialtools.py
ichuang/sympy
18afbcc7df2ebf2280ea5a88fde8ece34182ae71
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/tests/test_monomialtools.py
ichuang/sympy
18afbcc7df2ebf2280ea5a88fde8ece34182ae71
[ "BSD-3-Clause" ]
null
null
null
"""Tests for tools and arithmetics for monomials of distributed polynomials. """ from sympy.polys.monomialtools import ( monomials, monomial_count, monomial_key, lex, grlex, grevlex, monomial_mul, monomial_div, monomial_gcd, monomial_lcm, monomial_max, monomial_min, monomial_divides, Monomi...
29.114583
97
0.549911
0
0
0
0
0
0
0
0
225
0.04025
60e53510234906afd7570dd7318d1a436abfb43e
2,752
py
Python
Solutions/TenableIO/Data Connectors/azure_sentinel.py
johnbilliris/Azure-Sentinel
ef3c2e3919023e80e15a94544e06e37623e7c1d3
[ "MIT" ]
2,227
2019-02-25T09:34:46.000Z
2022-03-31T21:30:59.000Z
Solutions/TenableIO/Data Connectors/azure_sentinel.py
johnbilliris/Azure-Sentinel
ef3c2e3919023e80e15a94544e06e37623e7c1d3
[ "MIT" ]
1,728
2019-02-25T17:18:16.000Z
2022-03-31T23:49:18.000Z
Solutions/TenableIO/Data Connectors/azure_sentinel.py
johnbilliris/Azure-Sentinel
ef3c2e3919023e80e15a94544e06e37623e7c1d3
[ "MIT" ]
1,624
2019-02-28T16:17:38.000Z
2022-03-31T18:00:02.000Z
import re import base64 import hmac import hashlib import logging import requests from datetime import datetime class AzureSentinel: def __init__(self, workspace_id, workspace_key, log_type, log_analytics_url=''): self._workspace_id = workspace_id self._workspace_key = workspace_key self....
42.338462
100
0.630087
2,637
0.958212
0
0
0
0
0
0
565
0.205305
60e59ef3909991b68e7bb0525872e77256366019
3,553
py
Python
MiniProject.py
siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion
42d79fc262d60ecc9eebbe0e77a1576a04979501
[ "Apache-2.0" ]
null
null
null
MiniProject.py
siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion
42d79fc262d60ecc9eebbe0e77a1576a04979501
[ "Apache-2.0" ]
null
null
null
MiniProject.py
siddharths067/CNN-Based-Agent-Modelling-for-Humanlike-Driving-Simulaion
42d79fc262d60ecc9eebbe0e77a1576a04979501
[ "Apache-2.0" ]
null
null
null
from tkinter import * from PIL import ImageGrab import numpy as np import cv2 import time import pyautogui as pg import DirectInputRoutines as DIR from LogKey import key_check last_time = time.time() one_hot = [0, 0, 0, 0, 0, 0] hash_dict = {'w':0, 's':1, 'a':2, 'd':3, 'c':4, 'v':5} X = [] y = [] def a...
32.3
110
0.627357
0
0
0
0
0
0
0
0
844
0.237546
60e70e427a588cb1cff3bcadb9c8fed3c8764de3
825
py
Python
src/code/djangotest/migrations/0001_initial.py
jielyu/notebook
d0c0d0306fdb2746195c9d7851af25d0393a311d
[ "MIT" ]
2
2020-06-08T07:29:55.000Z
2021-05-08T09:34:07.000Z
src/code/djangotest/migrations/0001_initial.py
jielyu/notebook
d0c0d0306fdb2746195c9d7851af25d0393a311d
[ "MIT" ]
null
null
null
src/code/djangotest/migrations/0001_initial.py
jielyu/notebook
d0c0d0306fdb2746195c9d7851af25d0393a311d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-05 23:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Password', fields=[ ('id', models.IntegerFi...
28.448276
92
0.550303
732
0.887273
0
0
0
0
0
0
132
0.16
60e7397962091395a87e3dcdedd54da76ffb66e6
515
py
Python
filer/tests/utils/__init__.py
pbs/django-filer
c862a84d4e1d86c14eeb509e341f6a7d39a421bf
[ "BSD-3-Clause" ]
1
2015-03-03T15:49:14.000Z
2015-03-03T15:49:14.000Z
filer/tests/utils/__init__.py
pbs/django-filer
c862a84d4e1d86c14eeb509e341f6a7d39a421bf
[ "BSD-3-Clause" ]
10
2015-04-08T14:16:52.000Z
2021-12-15T16:17:57.000Z
filer/tests/utils/__init__.py
pbs/django-filer
c862a84d4e1d86c14eeb509e341f6a7d39a421bf
[ "BSD-3-Clause" ]
null
null
null
from django.template.loaders.base import Loader as BaseLoader from django.template.base import TemplateDoesNotExist class Mock(): pass class MockLoader(BaseLoader): is_usable = True def load_template_source(self, template_name, template_dirs=None): if template_name == 'cms_mock_template.html':...
25.75
70
0.671845
393
0.763107
0
0
0
0
0
0
87
0.168932
60e763dc935a4e4a40e12663f5266d53075d9cc0
732
py
Python
utils/arrival_overlaps.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
utils/arrival_overlaps.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
utils/arrival_overlaps.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
import sigvisa.database.db from sigvisa.database.dataset import * import sigvisa.utils.geog cursor = database.db.connect().cursor() detections, arid2num = read_detections(cursor, 1237680000, 1237680000 + 168 * 3600, arrival_table="leb_arrival", noarrays=False) last_det = dict() overlaps = 0 for det in detections: ...
31.826087
153
0.669399
0
0
0
0
0
0
0
0
131
0.178962
60e76b8b07e06048ecf1a15c72134fecf5c97346
3,227
py
Python
tests/transformation/streamline/test_move_identical_op_past_join_op.py
mmrahorovic/finn
d1cc9cf94f1c33354cc169c5a6517314d0e94e3b
[ "BSD-3-Clause" ]
109
2018-07-02T13:52:26.000Z
2019-09-23T02:33:24.000Z
tests/transformation/streamline/test_move_identical_op_past_join_op.py
mmrahorovic/finn
d1cc9cf94f1c33354cc169c5a6517314d0e94e3b
[ "BSD-3-Clause" ]
36
2018-08-15T19:05:09.000Z
2019-07-14T17:51:20.000Z
tests/transformation/streamline/test_move_identical_op_past_join_op.py
mmrahorovic/finn
d1cc9cf94f1c33354cc169c5a6517314d0e94e3b
[ "BSD-3-Clause" ]
28
2018-08-23T12:46:06.000Z
2019-09-08T14:19:09.000Z
import pytest from onnx import TensorProto from onnx import helper as oh import finn.core.onnx_exec as oxe from finn.core.modelwrapper import ModelWrapper from finn.transformation.streamline.reorder import MoveTransposePastJoinAdd from finn.util.basic import gen_finn_dt_tensor def create_model(perm): if perm ==...
33.968421
84
0.707468
0
0
0
0
1,381
0.427952
0
0
382
0.118376
60e7afd023af256d856d33c530545d41d0b53bb0
1,537
py
Python
app/lib/ncr_util.py
jchrisfarris/antiope-scorecards
82a1e228f4bd23f756c1dec8c0582fcde98de564
[ "Apache-2.0" ]
1
2020-09-23T21:40:16.000Z
2020-09-23T21:40:16.000Z
app/lib/ncr_util.py
jchrisfarris/antiope-scorecards
82a1e228f4bd23f756c1dec8c0582fcde98de564
[ "Apache-2.0" ]
null
null
null
app/lib/ncr_util.py
jchrisfarris/antiope-scorecards
82a1e228f4bd23f756c1dec8c0582fcde98de564
[ "Apache-2.0" ]
3
2020-07-11T19:18:12.000Z
2021-08-14T17:43:06.000Z
import json from lib import authz from lib.logger import logger from lib.exclusions import exclusions, state_machine def get_allowed_actions(user, account_id, requirement, exclusion): allowed_actions = { 'remediate': False, 'requestExclusion': False, 'requestExclusionChange': False, }...
37.487805
96
0.739753
0
0
0
0
0
0
0
0
458
0.297983
60e7fd2a428e03eaeee1467baac8a69ce2121456
9,545
py
Python
ambari-server/src/test/python/stacks/2.6/SPARK2/test_spark_livy2.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
1
2021-06-24T07:59:25.000Z
2021-06-24T07:59:25.000Z
ambari-server/src/test/python/stacks/2.6/SPARK2/test_spark_livy2.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.6/SPARK2/test_spark_livy2.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
62.796053
497
0.466841
8,452
0.88549
0
0
8,600
0.900995
0
0
3,161
0.331168
60e862c41a954427496e89a9970f3280bae259e6
2,158
py
Python
SentDex/Chapter05.py
harimaruthachalam/SentDexChapters
b3753ae27b6f965f3611edea9bde2ed5e9478f8f
[ "MIT" ]
null
null
null
SentDex/Chapter05.py
harimaruthachalam/SentDexChapters
b3753ae27b6f965f3611edea9bde2ed5e9478f8f
[ "MIT" ]
null
null
null
SentDex/Chapter05.py
harimaruthachalam/SentDexChapters
b3753ae27b6f965f3611edea9bde2ed5e9478f8f
[ "MIT" ]
null
null
null
import quandl import math import numpy as np from sklearn import preprocessing, cross_validation, svm from sklearn.linear_model import LinearRegression import pickle import datetime from matplotlib import style import matplotlib.pyplot as plot # Config isLoadFromLocal = True quandl.ApiConfig.api_key = '76eCnz6z9XTH8nf...
26.975
111
0.70899
0
0
0
0
0
0
0
0
625
0.28962
60e88e1b2de1fea540026e9d706f57f0d6656209
7,824
py
Python
tifinity/actions/icc_parser.py
pmay/tifinity
e004a0e616c7b7455fac6f01ee9acb892cd560c0
[ "Apache-2.0" ]
1
2018-05-17T09:48:53.000Z
2018-05-17T09:48:53.000Z
tifinity/actions/icc_parser.py
pmay/tifinity
e004a0e616c7b7455fac6f01ee9acb892cd560c0
[ "Apache-2.0" ]
4
2018-05-12T10:43:03.000Z
2021-02-24T11:17:44.000Z
tifinity/actions/icc_parser.py
pmay/tifinity
e004a0e616c7b7455fac6f01ee9acb892cd560c0
[ "Apache-2.0" ]
null
null
null
class IccProfile(): """Parses an ICC Colour Profile. According to spec: all Profile data shall be encoded as big-endian""" def __init__(self, bytes): self.header = {} self.parse_icc(bytes) def get_colour_space(self): """Returns the data colour space type, or None if not defi...
45.225434
121
0.597393
7,003
0.895066
0
0
3,273
0.418328
0
0
1,433
0.183154
60e8913b47be138bc8536280cabcc4db4221cdf3
1,179
py
Python
challenges/binary_search/test_binary_search.py
asakatida/data-structures-and-algorithms.py
587d1a66a6c15a3c7d7786275608f065687e1810
[ "MIT" ]
null
null
null
challenges/binary_search/test_binary_search.py
asakatida/data-structures-and-algorithms.py
587d1a66a6c15a3c7d7786275608f065687e1810
[ "MIT" ]
2
2020-09-24T13:13:49.000Z
2021-06-25T15:15:35.000Z
challenges/binary_search/test_binary_search.py
grandquista/data-structures-and-algorithms.py
587d1a66a6c15a3c7d7786275608f065687e1810
[ "MIT" ]
null
null
null
from .binary_search import binary_search def test_binary_search_empty_array(): assert binary_search([], 0) == -1 def test_binary_search_find_single_array(): assert binary_search([3], 3) == 0 def test_binary_search_not_found_single_array(): assert binary_search([1], 0) == -1 def test_binary_search_no...
23.58
67
0.721798
0
0
0
0
0
0
0
0
0
0
60e990ef7bf30b20330df7c11df2bae657a8aa9f
88
py
Python
Module2.py
Cipalex/session3
fe0866db54d719687f5a89a71ddc17657c91089e
[ "MIT" ]
null
null
null
Module2.py
Cipalex/session3
fe0866db54d719687f5a89a71ddc17657c91089e
[ "MIT" ]
null
null
null
Module2.py
Cipalex/session3
fe0866db54d719687f5a89a71ddc17657c91089e
[ "MIT" ]
null
null
null
def f(): print('f from module 2') if __name__ == '__main__': print('Module 2')
14.666667
28
0.579545
0
0
0
0
0
0
0
0
37
0.420455