hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a07e8b1935ce721bb2063bbe19f95a39a4c090e
3,314
py
Python
monailabel/utils/others/planner.py
hamghalam/MONAILabel
4f322db0a056d2757d134c9b3c4d4f35740bbf6d
[ "Apache-2.0" ]
null
null
null
monailabel/utils/others/planner.py
hamghalam/MONAILabel
4f322db0a056d2757d134c9b3c4d4f35740bbf6d
[ "Apache-2.0" ]
null
null
null
monailabel/utils/others/planner.py
hamghalam/MONAILabel
4f322db0a056d2757d134c9b3c4d4f35740bbf6d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
35.634409
104
0.62764
4a07e8bf1973879fef14791742388aec4c8c316b
2,153
py
Python
src/models/correlations/Correlations.py
teatauri/stats_biogeo_2021
9face4cdf8e8c569f927073cd1cc7ab9b45054f7
[ "MIT" ]
null
null
null
src/models/correlations/Correlations.py
teatauri/stats_biogeo_2021
9face4cdf8e8c569f927073cd1cc7ab9b45054f7
[ "MIT" ]
null
null
null
src/models/correlations/Correlations.py
teatauri/stats_biogeo_2021
9face4cdf8e8c569f927073cd1cc7ab9b45054f7
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import dcor COLS = ["PO4", "NO3", "Fe", "Si", "SST", "SSS", "PAR"] INDEX = ["Pro", "Pico", "Cocco", "Diazo", "Diatom", "Dino", "Zoo"] def get_sample_sets(*paths): sets = {} for i in range(0, len(paths)): sets[f"s{i}"] = pd.read_pi...
29.493151
85
0.677659
4a07e8f4b84fc8083e653e0e04c4016e132e5422
106
py
Python
ACME/utility/inf.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/utility/inf.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/utility/inf.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
import sys if sys.version_info > (2, 7): import math Inf = math.inf else: Inf = float('inf')
13.25
29
0.59434
4a07e91340e66ca395c41b94cfd059014b2a0366
2,434
py
Python
sample/integrationtest.py
akmurugan/automated-test-environment-for-aks-applications
693e2ace287ac388d47185f7925b646507231bdd
[ "MIT" ]
8
2020-08-05T14:02:19.000Z
2021-08-10T00:35:01.000Z
sample/integrationtest.py
akmurugan/automated-test-environment-for-aks-applications
693e2ace287ac388d47185f7925b646507231bdd
[ "MIT" ]
2
2020-08-10T13:07:56.000Z
2020-08-21T08:13:10.000Z
sample/integrationtest.py
akmurugan/automated-test-environment-for-aks-applications
693e2ace287ac388d47185f7925b646507231bdd
[ "MIT" ]
10
2020-08-03T08:23:19.000Z
2022-03-17T08:49:38.000Z
import unittest import requests class TestRest(unittest.TestCase): ''' Sample Integration Test Cases for https://github.com/Azure-Samples/helm-charts/tree/master/chart-source/azure-vote ''' azure_vote_endpoint = "http://localhost:8080" def test_1_title_check(self): """ [Test Case 1...
41.254237
118
0.638866
4a07ea87cbdbc78fdef56db177e449bb078a1f11
939
py
Python
backprop/utils/load.py
lucky7323/backprop
4daa756f3a46600d4dfa0631bb3607237df1fed6
[ "Apache-2.0" ]
200
2021-03-22T17:29:46.000Z
2022-03-20T21:58:31.000Z
backprop/utils/load.py
lucky7323/backprop
4daa756f3a46600d4dfa0631bb3607237df1fed6
[ "Apache-2.0" ]
6
2021-04-15T06:48:32.000Z
2021-12-21T08:07:49.000Z
backprop/utils/load.py
lucky7323/backprop
4daa756f3a46600d4dfa0631bb3607237df1fed6
[ "Apache-2.0" ]
15
2021-03-25T05:25:43.000Z
2022-01-04T08:12:29.000Z
import dill import json import os def load(path): """ Loads a saved model and returns it. Args: path: Name of the model or full path to model. Example:: import backprop backprop.save(model_object, "my_model") model = backprop.load("my_model") """ # Try to loo...
24.710526
64
0.601704
4a07eacbdc26771affd0626bfd362d68c283b921
27
py
Python
models/__init__.py
ChrisSun06/Context-Aware-Consistency
481b52b42ef6c2fe8180ea6417bc0b2d8fe1951a
[ "MIT" ]
null
null
null
models/__init__.py
ChrisSun06/Context-Aware-Consistency
481b52b42ef6c2fe8180ea6417bc0b2d8fe1951a
[ "MIT" ]
null
null
null
models/__init__.py
ChrisSun06/Context-Aware-Consistency
481b52b42ef6c2fe8180ea6417bc0b2d8fe1951a
[ "MIT" ]
null
null
null
from .model import CAC, SGS
27
27
0.777778
4a07eaf6e8024660da0524dae6ac8aaea627f9a6
104
py
Python
python_modules/dagster/dagster/seven/compat/__init__.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
python_modules/dagster/dagster/seven/compat/__init__.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
python_modules/dagster/dagster/seven/compat/__init__.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
"""This module is intended for compatibility shims between versions of our third-party dependencies."""
34.666667
86
0.798077
4a07eb7d9241ba4e895d29ece104f6be1ba7bd51
177
py
Python
examples/core/create_benchmark.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
3
2020-06-11T22:58:26.000Z
2021-03-15T20:12:29.000Z
examples/core/create_benchmark.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
1
2020-08-13T12:10:35.000Z
2020-08-17T14:30:45.000Z
examples/core/create_benchmark.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
null
null
null
import numpy as np from opytimark.core import Benchmark # Creating a Benchmark class instance # Note that this class does not have __call__ method implemented b = Benchmark()
22.125
64
0.79661
4a07eb86d985e62f8857f5d382416eeb2e4414bd
13,697
py
Python
brian2/tests/test_stateupdaters.py
divyashivaram/brian2
ac086e478efa50be772c6cee55b52b43018bc77a
[ "BSD-2-Clause" ]
1
2019-12-25T16:33:37.000Z
2019-12-25T16:33:37.000Z
brian2/tests/test_stateupdaters.py
divyashivaram/brian2
ac086e478efa50be772c6cee55b52b43018bc77a
[ "BSD-2-Clause" ]
null
null
null
brian2/tests/test_stateupdaters.py
divyashivaram/brian2
ac086e478efa50be772c6cee55b52b43018bc77a
[ "BSD-2-Clause" ]
null
null
null
import re from collections import namedtuple from numpy.testing.utils import assert_equal, assert_raises from brian2 import * from brian2.utils.logger import catch_logs from brian2.core.variables import ArrayVariable, AttributeVariable, Variable def test_explicit_stateupdater_parsing(): ''' Test the parsing...
41.759146
136
0.586041
4a07ecda8bbc7a8268655561e8eb30c12ef76b89
869
py
Python
test/test_new_sample.py
apsinha-equinix/controlm-client
f24e0f935c82306074f4e4025cf62c217348dc3f
[ "MIT" ]
1
2021-12-02T08:49:25.000Z
2021-12-02T08:49:25.000Z
test/test_new_sample.py
apsinha-equinix/controlm-client
f24e0f935c82306074f4e4025cf62c217348dc3f
[ "MIT" ]
null
null
null
test/test_new_sample.py
apsinha-equinix/controlm-client
f24e0f935c82306074f4e4025cf62c217348dc3f
[ "MIT" ]
null
null
null
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.18.3 Contact: support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import controlm_clie...
21.195122
79
0.693901
4a07edcefd70c79257800ac117ce058ecced05f7
1,536
py
Python
tests/test_clisops_subset.py
agstephens/daops-tester
e4aa873a471a72ea882b91d0cb9ecf514d1a651e
[ "BSD-2-Clause" ]
null
null
null
tests/test_clisops_subset.py
agstephens/daops-tester
e4aa873a471a72ea882b91d0cb9ecf514d1a651e
[ "BSD-2-Clause" ]
null
null
null
tests/test_clisops_subset.py
agstephens/daops-tester
e4aa873a471a72ea882b91d0cb9ecf514d1a651e
[ "BSD-2-Clause" ]
null
null
null
import pytest import xarray as xr from daops_tester.clisops_loader import cops ds = None def setup_module(): global ds ds = xr.open_dataset('/badc/cmip5/data/cmip5/output1/MPI-M/MPI-ESM-LR/esmControl/day/ocean/day/r1i1p1/latest/tos/tos_day_MPI-ESM-LR_esmControl_r1i1p1_18500101-18591231.nc', use_cftime=Tru...
27.428571
193
0.669922
4a07ee8ec987003ae5be5cc0efe0727535c33b8c
1,223
py
Python
test/test_analytics_dto.py
unofficial-memsource/memsource-cli-client
a6639506b74e95476da87f4375953448b76ea90c
[ "Apache-2.0" ]
16
2019-09-25T00:20:38.000Z
2021-05-04T05:56:10.000Z
test/test_analytics_dto.py
zerodayz/memsource-cli-client
c2574f1467539a49e6637c874e88d75c7ef789b3
[ "Apache-2.0" ]
26
2019-09-30T14:00:03.000Z
2021-05-12T11:15:18.000Z
test/test_analytics_dto.py
zerodayz/memsource-cli-client
c2574f1467539a49e6637c874e88d75c7ef789b3
[ "Apache-2.0" ]
1
2021-05-24T16:19:14.000Z
2021-05-24T16:19:14.000Z
# coding: utf-8 """ Memsource REST API Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis...
29.829268
421
0.722813
4a07eeee49b2a23d19d1d2b7103aea4fc3b48620
1,796
py
Python
tests/test_lookup.py
GearPlug/python-rest-api
f8695a5f5b6f13ebf47da2fe623da9d5ef62781e
[ "BSD-2-Clause" ]
57
2015-04-07T21:20:12.000Z
2022-03-30T17:27:48.000Z
tests/test_lookup.py
GearPlug/python-rest-api
f8695a5f5b6f13ebf47da2fe623da9d5ef62781e
[ "BSD-2-Clause" ]
33
2015-09-24T21:29:48.000Z
2022-02-11T22:17:29.000Z
tests/test_lookup.py
GearPlug/python-rest-api
f8695a5f5b6f13ebf47da2fe623da9d5ef62781e
[ "BSD-2-Clause" ]
59
2015-01-08T13:00:13.000Z
2022-03-09T16:55:46.000Z
import unittest from unittest.mock import Mock from messagebird import Client class TestLookup(unittest.TestCase): def test_lookup(self): http_client = Mock() http_client.request.return_value = '{"href": "https://rest.messagebird.com/lookup/31612345678","countryCode": "NL","countryPrefix": 31,"p...
49.888889
498
0.686526
4a07efad7652b4ea86064c0c579682f81906caa7
320
py
Python
src/django_bootstrap/widgets.py
zostera/django-bootstrap
3ccccd1a781afd2c160b97ae3d15f6f715901991
[ "BSD-3-Clause" ]
2
2021-10-05T14:07:16.000Z
2021-10-08T12:56:11.000Z
src/django_bootstrap/widgets.py
zostera/django-bootstrap
3ccccd1a781afd2c160b97ae3d15f6f715901991
[ "BSD-3-Clause" ]
84
2021-02-17T06:58:37.000Z
2022-03-31T23:07:27.000Z
src/django_bootstrap/widgets.py
zostera/django-bootstrap
3ccccd1a781afd2c160b97ae3d15f6f715901991
[ "BSD-3-Clause" ]
null
null
null
from django.forms import RadioSelect class RadioSelectButtonGroup(RadioSelect): """ This widget renders a Bootstrap 4 set of buttons horizontally instead of typical radio buttons. Much more mobile friendly. """ template_name = "django_bootstrap/widgets/radio_select_button_group.html"
26.666667
100
0.740625
4a07efd6c47eee8be176115c6f526a77a874f5cd
16,169
py
Python
snake.py
JehunYoo/SnakeRL
3635e2e5bcd6d3147cafa90e57471dbc5587d49a
[ "MIT" ]
null
null
null
snake.py
JehunYoo/SnakeRL
3635e2e5bcd6d3147cafa90e57471dbc5587d49a
[ "MIT" ]
null
null
null
snake.py
JehunYoo/SnakeRL
3635e2e5bcd6d3147cafa90e57471dbc5587d49a
[ "MIT" ]
null
null
null
<<<<<<< HEAD ''' snake game module valid coordinate : ([0, 380], [0, 380]) ''' import pygame from pygame.locals import * import random, time import queue successes, failures = pygame.init() print("{0} successes and {1} failures".format(successes, failures)) assert not failures, "pygame initialization error" # hyperpa...
37.25576
103
0.491991
4a07f0dd85788380bc5d5b27866b98bd54dad402
31,901
py
Python
saleor/graphql/product/types/products.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
8
2018-07-17T13:13:21.000Z
2022-03-01T17:02:34.000Z
saleor/graphql/product/types/products.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
1
2021-03-10T07:55:59.000Z
2021-03-10T07:55:59.000Z
saleor/graphql/product/types/products.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
1
2019-12-04T22:24:13.000Z
2019-12-04T22:24:13.000Z
from typing import List, Union import graphene import graphene_django_optimizer as gql_optimizer from django.db.models import Prefetch from graphene import relay from graphql.error import GraphQLError from ....product import models from ....product.templatetags.product_images import ( get_product_image_thumbnail,...
34.902626
88
0.665904
4a07f156cd865e535a2742845b368c1177467176
4,206
py
Python
rnn_portfolio/quantiacs_code.py
kjchalup/recurrent_portfolio
09f2708e0355c733d980703113ce8a6d8a84d464
[ "MIT" ]
3
2017-03-24T20:26:12.000Z
2021-12-18T15:38:50.000Z
rnn_portfolio/quantiacs_code.py
kjchalup/recurrent_portfolio
09f2708e0355c733d980703113ce8a6d8a84d464
[ "MIT" ]
null
null
null
rnn_portfolio/quantiacs_code.py
kjchalup/recurrent_portfolio
09f2708e0355c733d980703113ce8a6d8a84d464
[ "MIT" ]
null
null
null
""" Convenience functions to call various Quantiacs functions. """ import numpy as np from quantiacsToolbox import stats def fillnans(data): """ Fill in (column-wise) value gaps with the most recent non-nan value. Leading nan's remain in place. The gaps are filled in only after the first non-nan entry. A...
38.944444
176
0.63243
4a07f426c19cd65cea892e340a3022ea0d25189b
3,567
py
Python
toontown/coghq/DistributedCountryClubBattleAI.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
1
2021-02-25T06:22:49.000Z
2021-02-25T06:22:49.000Z
toontown/coghq/DistributedCountryClubBattleAI.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
null
null
null
toontown/coghq/DistributedCountryClubBattleAI.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
2
2020-11-08T03:38:35.000Z
2021-09-02T07:03:47.000Z
import CogDisguiseGlobals from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM, State from direct.fsm import State from direct.showbase.PythonUtil import addListsByValue from toontown.battle.BattleBase import * from toontown.coghq import DistributedLevelBattleAI from toontown.toonbase im...
50.957143
198
0.711522
4a07f49e88c8ca9024b4d678507403e33249e817
3,899
py
Python
stackdio/api/users/urls.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
9
2015-12-18T22:44:55.000Z
2022-02-07T19:34:44.000Z
stackdio/api/users/urls.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
77
2015-01-12T17:49:38.000Z
2017-02-24T17:57:46.000Z
stackdio/api/users/urls.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
11
2015-01-23T15:50:19.000Z
2022-02-07T19:34:45.000Z
# -*- coding: utf-8 -*- # Copyright 2017, Digital Reasoning # # 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 applica...
32.22314
77
0.624263
4a07f4c8ab494ade9906a02ebf70b25ec12ed51d
3,645
py
Python
antelope/interfaces/abstract_query.py
AntelopeLCA/antelope_lca
18ae7621713c8cc92c7d8fcc7c0810c1ca3fea32
[ "BSD-3-Clause" ]
1
2021-10-01T01:07:45.000Z
2021-10-01T01:07:45.000Z
antelope/interfaces/abstract_query.py
AntelopeLCA/antelope
3a689b40bb4b53d27d8a2750b3bcc37e8d571377
[ "BSD-3-Clause" ]
null
null
null
antelope/interfaces/abstract_query.py
AntelopeLCA/antelope
3a689b40bb4b53d27d8a2750b3bcc37e8d571377
[ "BSD-3-Clause" ]
null
null
null
""" Root-level catalog interface """ class ValidationError(Exception): pass class PrivateArchive(Exception): pass class EntityNotFound(Exception): pass class NoAccessToEntity(Exception): """ Used when the actual entity is not accessible, i.e. when a ref cannot dereference itself """ p...
26.605839
115
0.58107
4a07f54288a6ba531e9a99aa573537f713e04bc6
2,840
py
Python
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py
EngHabu/flyteidl
d7970314fc2bcbd2840610b4d42ea2886f0837b9
[ "Apache-2.0" ]
null
null
null
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py
EngHabu/flyteidl
d7970314fc2bcbd2840610b4d42ea2886f0837b9
[ "Apache-2.0" ]
3
2021-03-27T12:20:58.000Z
2021-03-29T09:45:45.000Z
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py
EngHabu/flyteidl
d7970314fc2bcbd2840610b4d42ea2886f0837b9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ flyteidl/service/admin.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import r...
28.979592
119
0.584155
4a07f5e14cb6464e1b9f6c3dd3c6b5843fa52956
3,282
py
Python
catkin_ws/src:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/bala/duckietown/catkin_ws/src:/home/bala/duckietown/catkin_ws/src/lib/python2.7/site-packages/geometry/manifolds/tests/checks_generation.py
johnson880319/Software
045894227f359e0a3a3ec5b7a53f8d1ebc06acdd
[ "CC-BY-2.0" ]
null
null
null
catkin_ws/src:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/bala/duckietown/catkin_ws/src:/home/bala/duckietown/catkin_ws/src/lib/python2.7/site-packages/geometry/manifolds/tests/checks_generation.py
johnson880319/Software
045894227f359e0a3a3ec5b7a53f8d1ebc06acdd
[ "CC-BY-2.0" ]
null
null
null
catkin_ws/src:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/bala/duckietown/catkin_ws/src:/home/bala/duckietown/catkin_ws/src/lib/python2.7/site-packages/geometry/manifolds/tests/checks_generation.py
johnson880319/Software
045894227f359e0a3a3ec5b7a53f8d1ebc06acdd
[ "CC-BY-2.0" ]
null
null
null
# coding=utf-8 """ These are very "meta" utils for creating nose tests on the fly. Here is an example use: :: thinghies = {'banana': 'yellow', 'apple': 'red', 'sky': 'blue'} def thinghies_list(): return thinghies.keys() def thinghies_args(x): return (x, thingh...
28.051282
76
0.556368
4a07f6337482594c038e52341ed4e1119434f41a
556
py
Python
liquepy/motion/measures.py
geosharma/liquepy
d567f6a7eb93eb76218f718375f2d34355d7edd4
[ "MIT" ]
4
2020-04-12T14:49:24.000Z
2020-09-22T09:28:10.000Z
liquepy/motion/measures.py
geosharma/liquepy
d567f6a7eb93eb76218f718375f2d34355d7edd4
[ "MIT" ]
null
null
null
liquepy/motion/measures.py
geosharma/liquepy
d567f6a7eb93eb76218f718375f2d34355d7edd4
[ "MIT" ]
4
2019-11-02T02:11:34.000Z
2021-04-30T06:06:41.000Z
import eqsig import numpy as np from numpy import trapz from liquepy.exceptions import deprecation def calculate_cav_dp_time_series(acc, dt): asig = eqsig.AccSignal(acc, dt) return calc_cav_dp_series(asig) def calculate_cav_dp(acc, dt): asig = eqsig.AccSignal(acc, dt) return calc_cav_dp_series(asig)...
23.166667
81
0.77518
4a07f85235a2b6978879ef36ac3c5a7f6e43fdd5
516
py
Python
toolchain/riscv/MSYS/python/Lib/test/test_future3.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
toolchain/riscv/MSYS/python/Lib/test/test_future3.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
8
2019-06-29T14:18:51.000Z
2022-02-19T07:30:27.000Z
toolchain/riscv/MSYS/python/Lib/test/test_future3.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
from __future__ import nested_scopes from __future__ import division import unittest x = 2 def nester(): x = 3 def inner(): return x return inner() class TestFuture(unittest.TestCase): def test_floor_div_operator(self): self.assertEqual(7 // 2, 3) def test_tru...
19.111111
43
0.631783
4a07f943a0e2d9e9acf43af723293ff8f8829986
336
py
Python
projectapp/migrations/0003_auto_20191106_0857.py
imran1234567/fullthrottlelabsproj
530f2b866bcfa2a2170225a1e7b4591500e5ffe7
[ "MIT" ]
null
null
null
projectapp/migrations/0003_auto_20191106_0857.py
imran1234567/fullthrottlelabsproj
530f2b866bcfa2a2170225a1e7b4591500e5ffe7
[ "MIT" ]
6
2019-11-07T13:12:40.000Z
2022-02-10T09:37:57.000Z
projectapp/migrations/0003_auto_20191106_0857.py
imran1234567/fullthrottlelabsproj
530f2b866bcfa2a2170225a1e7b4591500e5ffe7
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-11-06 08:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('projectapp', '0002_auto_20191106_0853'), ] operations = [ migrations.RenameModel( old_name='Searchapp', new_name='Search', ...
18.666667
50
0.60119
4a07fc073d5cc5055197e490348e7bc8d6b445db
1,208
py
Python
authors/apps/bookmarks/migrations/0001_initial.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
null
null
null
authors/apps/bookmarks/migrations/0001_initial.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
64
2018-11-27T11:20:55.000Z
2021-06-10T20:58:34.000Z
authors/apps/bookmarks/migrations/0001_initial.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
4
2018-12-19T19:58:18.000Z
2019-10-03T08:28:00.000Z
# Generated by Django 2.1.3 on 2019-01-14 17:13 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('arti...
34.514286
168
0.620033
4a07fd2f78127bd0611e9743ba8faf99fc2955db
14,107
py
Python
Snakes/snakes.py
ianramzy/high-school-assignments
6d3ca52de5c6b80a1f0678ca73b78a3024e95f05
[ "MIT" ]
null
null
null
Snakes/snakes.py
ianramzy/high-school-assignments
6d3ca52de5c6b80a1f0678ca73b78a3024e95f05
[ "MIT" ]
null
null
null
Snakes/snakes.py
ianramzy/high-school-assignments
6d3ca52de5c6b80a1f0678ca73b78a3024e95f05
[ "MIT" ]
null
null
null
import pygame, sys, random # pygame 1.9.4 pygame.init() size = width, height = 1320, 720 screen = pygame.display.set_mode(size) # pygame.mixer.pre_init() # white = [0, 0, 0] white = [255, 255, 255] orange = [255, 140, 0] red = [255, 0, 0] gray = [35, 35, 35] # white = [0, 0, 255] font = pygame.font.SysF...
34.746305
119
0.505281
4a07fd3b94ee7e8eba96a8648acd153bf197dfdb
193
py
Python
v1-v2/test-programs/two_funcs.py
ambadhan/OnlinePythonTutor
857bab941fbde20f1f020b05b7723094ddead62a
[ "MIT" ]
17
2021-12-09T11:31:44.000Z
2021-12-29T03:07:14.000Z
v1-v2/test-programs/two_funcs.py
heysachin/OnlinePythonTutor
0dcdacc7ff5be504dd6a47236ebc69dc0069f991
[ "MIT" ]
22
2017-09-17T03:59:16.000Z
2017-11-14T17:33:57.000Z
v1-v2/test-programs/two_funcs.py
heysachin/OnlinePythonTutor
0dcdacc7ff5be504dd6a47236ebc69dc0069f991
[ "MIT" ]
12
2021-12-09T11:31:46.000Z
2022-01-07T03:14:46.000Z
def add(a, b, c): d = a + b return c + d def double_add(a, b, c): x = add(a, b, c) y = add(a, b, c) return x + y x = 5 y = 10 z = x * y print add(x, y, z) print double_add(x, y, z)
12.866667
25
0.492228
4a07fd7c282bfbea9d23b1d3bed07624942e62c3
6,815
py
Python
QuatPlotTypes_QtDemo.py
johnmgregoire/PythonCompositionPlots
e105c575463b7d4512d9aac18c7330d1a0dc2c14
[ "BSD-3-Clause" ]
4
2018-03-05T09:34:49.000Z
2022-02-01T15:33:54.000Z
QuatPlotTypes_QtDemo.py
johnmgregoire/PythonCompositionPlots
e105c575463b7d4512d9aac18c7330d1a0dc2c14
[ "BSD-3-Clause" ]
null
null
null
QuatPlotTypes_QtDemo.py
johnmgregoire/PythonCompositionPlots
e105c575463b7d4512d9aac18c7330d1a0dc2c14
[ "BSD-3-Clause" ]
2
2016-01-24T19:09:21.000Z
2019-10-11T12:43:07.000Z
import time import os, os.path import sys import numpy from PyQt4.QtCore import * from PyQt4.QtGui import * import operator import matplotlib from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar fr...
37.651934
172
0.667351
4a07fddf3e8b68abefb82f4a9ccebd399259bd66
634
py
Python
tests/garage/envs/mujoco/maze/test_point_maze_env.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
3
2019-08-11T22:26:55.000Z
2020-11-28T10:23:50.000Z
tests/garage/envs/mujoco/maze/test_point_maze_env.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
null
null
null
tests/garage/envs/mujoco/maze/test_point_maze_env.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
2
2019-08-11T22:30:14.000Z
2021-03-25T02:57:50.000Z
import pickle import unittest from garage.envs.mujoco.maze.point_maze_env import PointMazeEnv from tests.helpers import step_env class TestPointMazeEnv(unittest.TestCase): def test_pickleable(self): env = PointMazeEnv(n_bins=2) round_trip = pickle.loads(pickle.dumps(env)) assert round_tri...
27.565217
63
0.676656
4a07fdf02a8cb79d4cac9e1721636ce46900f270
1,166
py
Python
FIM_CoronaBot/Old_version/mierdat.py
HeNeos/Mechanical
b64e9ea8610b4d8d8ef02d01d3ca7fea3ea7b857
[ "MIT" ]
1
2020-03-31T11:54:28.000Z
2020-03-31T11:54:28.000Z
FIM_CoronaBot/Old_version/mierdat.py
HeNeos/Mechanical
b64e9ea8610b4d8d8ef02d01d3ca7fea3ea7b857
[ "MIT" ]
null
null
null
FIM_CoronaBot/Old_version/mierdat.py
HeNeos/Mechanical
b64e9ea8610b4d8d8ef02d01d3ca7fea3ea7b857
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from webbot import Browser web = Browser() web.go_to('https://unidemo.webex.com/join/echaucagiron') #web.go_to('https://unidemo.webex.com/webappng/sites/unidemo/dashboard/pmr/huaman1942?siteurl=unidemo') web.click("Entrar a la reunión") #web.go_to('https://unidemo.webex.com/webappng/sites/unidemo/mee...
28.439024
127
0.657804
4a07fee3b9fd844b12e1d8383a9026aed25357b6
376
py
Python
bradfield/test_x4_01_pathsum.py
savarin/algorithms
4d1f8f2361de12a02f376883f648697562d177ae
[ "MIT" ]
1
2020-06-16T23:22:54.000Z
2020-06-16T23:22:54.000Z
bradfield/test_x4_01_pathsum.py
savarin/algorithms
4d1f8f2361de12a02f376883f648697562d177ae
[ "MIT" ]
null
null
null
bradfield/test_x4_01_pathsum.py
savarin/algorithms
4d1f8f2361de12a02f376883f648697562d177ae
[ "MIT" ]
null
null
null
from x4_01_pathsum import Node, path_sum def test_path_sum(): tree = Node(5, \ Node(4, \ Node(11, Node(7), Node(2))), \ Node(8, Node(13), Node(4, \ None, Node(1)))) assert path_sum(tr...
25.066667
50
0.414894
4a07fee4adf3c526348fa9c7d739f7ca7eae62c6
6,387
py
Python
w_queues/howtorep_exp.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
11
2018-03-28T02:55:12.000Z
2021-07-12T15:21:38.000Z
w_queues/howtorep_exp.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
null
null
null
w_queues/howtorep_exp.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
5
2018-03-16T01:36:46.000Z
2019-10-17T03:23:20.000Z
import numpy as np from patch import * from rvs import * from sim import * class MultiQ_wRep(object): def __init__(self, env, n, max_numj, sching_m, sl_dist, scher=None, act_max=False): self.env = env self.n = n self.max_numj = max_numj self.sching_m = sching_m self.scher = scher self.act_ma...
35.093407
134
0.588539
4a07ff468d92e64b4fdbba2b6f540344d1251699
858
py
Python
ebarber/migrations/0007_auto_20200227_1300.py
LoukasPap/university_assignment-django
c0ccdcb5f12e536037b211c564eab049847175bb
[ "MIT" ]
2
2020-08-02T21:23:43.000Z
2020-08-05T22:14:57.000Z
ebarber/migrations/0007_auto_20200227_1300.py
LoukasPap/university_assignment-django
c0ccdcb5f12e536037b211c564eab049847175bb
[ "MIT" ]
null
null
null
ebarber/migrations/0007_auto_20200227_1300.py
LoukasPap/university_assignment-django
c0ccdcb5f12e536037b211c564eab049847175bb
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-27 11:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ebarber', '0006_auto_20200226_1734'), ] operations = [ migrations.AlterField( model_name='barbershop', name='usernam...
25.235294
50
0.55711
4a07ffb7bb7a2f967199760a3c73832c370086ff
162
py
Python
src/reader/compressed/gzipped.py
misssoft/Fan.Python
c9ffffefa44bc9a67dbf39089acc93b14c1d761c
[ "MIT" ]
null
null
null
src/reader/compressed/gzipped.py
misssoft/Fan.Python
c9ffffefa44bc9a67dbf39089acc93b14c1d761c
[ "MIT" ]
null
null
null
src/reader/compressed/gzipped.py
misssoft/Fan.Python
c9ffffefa44bc9a67dbf39089acc93b14c1d761c
[ "MIT" ]
null
null
null
import gzip import sys opener = gzip.open if __name__ == '__main__': f = gzip.open(sys.argv[1], mode='wt') f.write(''.join(sys.argv[2:])) f.close()
16.2
41
0.604938
4a07ffd01c29f1bcec79eb6d61d995d22d041724
2,489
py
Python
internal/twirptest/multiple/multiple1_pb2_twirp.py
joshi4/twirp
677ba1a47ae278934e5911498e65f917c845dc69
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-19T15:57:43.000Z
2021-06-19T15:57:43.000Z
internal/twirptest/multiple/multiple1_pb2_twirp.py
joshi4/twirp
677ba1a47ae278934e5911498e65f917c845dc69
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
internal/twirptest/multiple/multiple1_pb2_twirp.py
joshi4/twirp
677ba1a47ae278934e5911498e65f917c845dc69
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Code generated by protoc-gen-twirp_python v5.8.0, DO NOT EDIT. # source: multiple1.proto try: import httplib from urllib2 import Request, HTTPError, urlopen except ImportError: import http.client as httplib from urllib.request import Request, urlopen from urllib.error import HTTPError import json...
32.324675
97
0.617919
4a08024c9fe78d52e19713e64df9464965e98910
633
py
Python
setup.py
callat-qcd/hpss
54d0a4172015639e339b6e93fb2e18c90dc4d287
[ "MIT" ]
null
null
null
setup.py
callat-qcd/hpss
54d0a4172015639e339b6e93fb2e18c90dc4d287
[ "MIT" ]
1
2020-03-15T14:16:52.000Z
2020-03-15T17:36:08.000Z
setup.py
callat-qcd/hpss
54d0a4172015639e339b6e93fb2e18c90dc4d287
[ "MIT" ]
1
2020-03-14T23:02:32.000Z
2020-03-14T23:02:32.000Z
import setuptools with open("README.md", "r") as read_me: long_description = read_me.read() setuptools.setup( name="hpss", version="0.0.1", author="Evan Berkowitz", author_email="e.berkowitz@fz-juelich.de", description="Interface with an HPSS tape archive.", long_description=long_descripti...
30.142857
55
0.672986
4a0802813e33295569796dd17293d8867df638ac
1,479
py
Python
netmiko_2_host.py
iks0x1b/netmiko_multidevice_example
8cd60652fbfcc0fa2ce9a106d511ff23cdd8a8b5
[ "BSD-2-Clause" ]
null
null
null
netmiko_2_host.py
iks0x1b/netmiko_multidevice_example
8cd60652fbfcc0fa2ce9a106d511ff23cdd8a8b5
[ "BSD-2-Clause" ]
null
null
null
netmiko_2_host.py
iks0x1b/netmiko_multidevice_example
8cd60652fbfcc0fa2ce9a106d511ff23cdd8a8b5
[ "BSD-2-Clause" ]
null
null
null
import json import os import getpass from netmiko import ConnectHandler from datetime import datetime def main(): timeObj = datetime.now() # auser = getpass.getuser() auser = input('Username:') apass = getpass.getpass() secret = apass vyos_commands = [ "set terminal length 0"...
29.58
63
0.494929
4a08028e96126d0d84d79a36ff0b232715a4bb95
17,638
py
Python
sample/1_xml2conll_offset.py
Huiweizhou/keras_bc6_track1
0250b93952777cbd627f8b98beb1a1585b749664
[ "BSD-2-Clause" ]
null
null
null
sample/1_xml2conll_offset.py
Huiweizhou/keras_bc6_track1
0250b93952777cbd627f8b98beb1a1585b749664
[ "BSD-2-Clause" ]
5
2020-09-25T22:43:11.000Z
2022-02-09T23:40:30.000Z
sample/1_xml2conll_offset.py
Huiweizhou/keras_bc6_track1
0250b93952777cbd627f8b98beb1a1585b749664
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- ''' BioC(XML)格式ConNLL格式 从 .XML 原始document文件中解析获取训练数据和标签文件 1、通过offset,将句子中所有的实体用一对标签 <B^>entity<^I> 进行标记 注意:offset 是在二进制编码下索引的,要对句子进行编码 s=s.encode(‘utf-8’) 2、对于嵌套实体(offset 相同),仅保留其中长度较长的实体 3、对句子中的标点符号 !\”#$%‘()*+,-./:;<=>?@[\\]_`{|}~ 进行切分;^ 保留用于实体标签!...
39.995465
106
0.468931
4a0802aca0f7bd10c36f2401d23beac59b054903
21,185
py
Python
mindspore/python/mindspore/run_check/_check_version.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
mindspore/python/mindspore/run_check/_check_version.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/run_check/_check_version.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2022 Huawei Technologies Co., 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 applicable law or agre...
46.356674
119
0.5941
4a0802afb3f7134316d0dcb3e514d0fe27842376
4,852
py
Python
hti/server/guiding/periodic_error.py
simonvoelcker/astrotools
89a2ecaee44a5764931422cae6cc46bad595b766
[ "CC0-1.0" ]
12
2020-03-10T15:24:55.000Z
2022-03-10T09:14:02.000Z
hti/server/guiding/periodic_error.py
simonvoelcker/astrotools
89a2ecaee44a5764931422cae6cc46bad595b766
[ "CC0-1.0" ]
9
2021-03-19T15:47:11.000Z
2022-02-10T04:32:58.000Z
hti/server/guiding/periodic_error.py
simonvoelcker/astrotools
89a2ecaee44a5764931422cae6cc46bad595b766
[ "CC0-1.0" ]
null
null
null
import csv import datetime from dataclasses import dataclass from itertools import tee def pairwise(iterable): """s -> (s0,s1), (s1,s2), (s2, s3), ...""" a, b = tee(iterable) next(b, None) return zip(a, b) def fraction(low, middle, high): return (middle - low) / (high - low) def lerp(low_valu...
35.15942
116
0.636645
4a08037feaf95e1f12d2edb58bf96efaa9dd747c
1,019
py
Python
eran/ELINA/python_interface/tests/oct_test.py
pauls658/ReluDiff-ICSE2020-Artifact
212854fe04f482183c239e5dfec70106a9a83df8
[ "Apache-2.0" ]
7
2020-01-27T21:25:49.000Z
2022-01-07T04:37:37.000Z
eran/ELINA/python_interface/tests/oct_test.py
yqtianust/ReluDiff-ICSE2020-Artifact
149f6efe4799602db749faa576980c36921a07c7
[ "Apache-2.0" ]
1
2022-01-25T17:41:54.000Z
2022-01-26T02:27:51.000Z
eran/ELINA/python_interface/tests/oct_test.py
yqtianust/ReluDiff-ICSE2020-Artifact
149f6efe4799602db749faa576980c36921a07c7
[ "Apache-2.0" ]
3
2020-03-14T17:12:17.000Z
2022-03-16T09:50:46.000Z
# # # This source file is part of ELINA (ETH LIbrary for Numerical Analysis). # ELINA is Copyright © 2019 Department of Computer Science, ETH Zurich # This software is distributed under GNU Lesser General Public License Version 3.0. # For more information, see the ELINA project website at: # http://elina.ethz.ch #...
40.76
84
0.758587
4a080467a3cc4354be9a51dd971004d4b3b56ae4
1,820
py
Python
sympy/abc.py
eriknw/sympy
b7544e2bb74c011f6098a7e886fd77f41776c2c4
[ "BSD-3-Clause" ]
7
2015-01-14T06:55:33.000Z
2018-08-11T14:43:52.000Z
sympy/abc.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2018-02-19T04:56:04.000Z
2018-02-19T04:56:04.000Z
sympy/abc.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2016-04-24T14:39:22.000Z
2016-04-24T14:39:22.000Z
from core import Symbol _latin = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') # COSINEQ should not be imported as they clash; gamma, pi and zeta clash, too _greek = 'alpha beta gamma delta epsilon zeta eta theta iota kappa lamda '\ 'mu nu xi omicron pi rho sigma tau upsilon phi chi psi omega'.split...
30.847458
77
0.642308
4a0804a7b931f09c6851d755d3b10fafce00e4c5
4,932
py
Python
admin/c2cgeoportal_admin/views/layers_vectortiles.py
rbovard/c2cgeoportal
61b7a4fc98f686f9b7d4c5fda7bb4c5cc09f8de8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
admin/c2cgeoportal_admin/views/layers_vectortiles.py
rbovard/c2cgeoportal
61b7a4fc98f686f9b7d4c5fda7bb4c5cc09f8de8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
admin/c2cgeoportal_admin/views/layers_vectortiles.py
rbovard/c2cgeoportal
61b7a4fc98f686f9b7d4c5fda7bb4c5cc09f8de8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# Copyright (c) 2017-2021, Camptocamp SA # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions an...
42.517241
108
0.760543
4a080522eafcd8027e639548ef79f0963fd19712
9,193
py
Python
learningPygame/Tyler/03-Raindrops/MikesRainyDay.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
learningPygame/Tyler/03-Raindrops/MikesRainyDay.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
learningPygame/Tyler/03-Raindrops/MikesRainyDay.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
import pygame import sys import time # Note this! import random # Note this! class Raindrop: def __init__(self, screen, x, y): """ Creates a Raindrop sprite that travels down at a random speed. """ # TODO 8: Initialize this Raindrop, as follows: # TODO - Store the screen. # TO...
43.56872
120
0.620037
4a0805c6b82ed7e4a30f5015af7b3f4e41162f7b
2,279
py
Python
Fig1_singlecell/example_1comp/plot_activity.py
TatsuyaHaga/preplaymodel_codes
548df9ef5f85358fb03ed5f7f4cdc9e03a04bbf3
[ "MIT" ]
1
2019-02-26T04:15:16.000Z
2019-02-26T04:15:16.000Z
Fig1_singlecell/example_2comp_uncorrelate/plot_activity.py
TatsuyaHaga/preplaymodel_codes
548df9ef5f85358fb03ed5f7f4cdc9e03a04bbf3
[ "MIT" ]
null
null
null
Fig1_singlecell/example_2comp_uncorrelate/plot_activity.py
TatsuyaHaga/preplaymodel_codes
548df9ef5f85358fb03ed5f7f4cdc9e03a04bbf3
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy import pylab pylab.rcParams["font.size"]=8 pylab.rcParams["legend.fontsize"]=6 #pylab.rcParams["lines.linewidth"]=1 #pylab.rcParams["axes.linewidth"]=2 #pylab.rcParams["axes.labelsize"]="large" #pylab.rcParams["axes.labelweight"]="bold" pylab.rcParams["xtick.major.size"]=0 pylab.rcParam...
27.130952
70
0.704695
4a0806fb04d1a03ec91df3ab0aadc49422f5a589
395
py
Python
Markdown-Templates/repoutils/python-scripts/scripts/02_find_all_links.py
Uvacoder/html-demo-code-and-experiments
1bd2ab50afe8f331396c37822301afa8e4903bcd
[ "Apache-2.0" ]
14
2021-02-18T04:54:43.000Z
2022-03-01T13:36:22.000Z
Markdown-Templates/repoutils/python-scripts/scripts/02_find_all_links.py
Uvacoder/html-demo-code-and-experiments
1bd2ab50afe8f331396c37822301afa8e4903bcd
[ "Apache-2.0" ]
51
2021-05-03T05:36:48.000Z
2022-03-30T06:10:23.000Z
Markdown-Templates/repoutils/python-scripts/scripts/02_find_all_links.py
Uvacoder/html-demo-code-and-experiments
1bd2ab50afe8f331396c37822301afa8e4903bcd
[ "Apache-2.0" ]
7
2021-06-02T23:42:41.000Z
2022-03-19T17:08:42.000Z
import requests import re # get url # url = input('Enter a URL (include `https://lambda-w-1-notes.netlify.app/`): ') url = ('https://lambda-w-1-notes.netlify.app/') # connect to the url website = requests.get(url) # read html html = website.text # use re.findall to grab all the links links = re.findall('"((http|ft...
19.75
80
0.658228
4a08071e187548ef9f392f1eeef73d5613496070
7,231
py
Python
onmt/modules/GlobalAttention.py
yueyongjiao/openNMT-10-baiduyun
5f7af2f995cbb6816b52029173e6219d555ddeed
[ "MIT" ]
null
null
null
onmt/modules/GlobalAttention.py
yueyongjiao/openNMT-10-baiduyun
5f7af2f995cbb6816b52029173e6219d555ddeed
[ "MIT" ]
null
null
null
onmt/modules/GlobalAttention.py
yueyongjiao/openNMT-10-baiduyun
5f7af2f995cbb6816b52029173e6219d555ddeed
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from onmt.Utils import aeq, sequence_mask class GlobalAttention(nn.Module): """ Global attention takes a matrix and a query vector. It then computes a parameterized convex combination of the matrix based on the input query. Constructs a unit mapping a query `q`...
32.868182
85
0.557599
4a0808a2760bb6b499388d249ef0fac0acc9debb
30,551
py
Python
pypdn/nrbf.py
addisonElliott/pypaintdotnet
ebffd52f9b8a56f2e885e1a9c51a58fc4b30e3bb
[ "MIT" ]
15
2018-04-29T18:29:14.000Z
2022-03-29T10:12:22.000Z
pypdn/nrbf.py
addisonElliott/pypaintdotnet
ebffd52f9b8a56f2e885e1a9c51a58fc4b30e3bb
[ "MIT" ]
10
2019-09-25T00:03:20.000Z
2022-03-29T12:25:12.000Z
pypdn/nrbf.py
addisonElliott/pypaintdotnet
ebffd52f9b8a56f2e885e1a9c51a58fc4b30e3bb
[ "MIT" ]
3
2019-09-24T21:21:31.000Z
2020-10-29T14:00:59.000Z
import struct from datetime import timezone from functools import reduce from pypdn.util import * # This library was inspired from the following code: # https://github.com/gurnec/Undo_FFG/blob/master/nrbf.py # Thanks to Christopher Gurnee! # TODO Do documentation and docstrings for this # TODO Issue with reportin...
40.89826
120
0.677686
4a0808cedd53097ce276f19da6b613add05b71aa
520
py
Python
code-implementation/codetest.py
GamjaPower/kaggle
8ebedc73769c3c04d9c80f9e8877a10164c9c5e8
[ "MIT" ]
null
null
null
code-implementation/codetest.py
GamjaPower/kaggle
8ebedc73769c3c04d9c80f9e8877a10164c9c5e8
[ "MIT" ]
null
null
null
code-implementation/codetest.py
GamjaPower/kaggle
8ebedc73769c3c04d9c80f9e8877a10164c9c5e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2018. 9. 29. @author: jason96 ''' import pandas as pd def codetest(): data = { 'name': ["Kang", "Kim", "Choi", "Park", "Yoon"], '짱절미': [True, False, False, False, False], '셀스타그램': [False, False, True, False, False], 'like': [True, False, T...
17.931034
65
0.544231
4a0809747d2ecbd004bcede7455d3c6fda2629ec
7,691
py
Python
multi_arm_bandit/mvn_arm4/mvn_test_arm4_sample15_last.py
zxsted/meta-critic-networks
1768751f84845bd6fe98a13d5b57dfaca154c1f8
[ "MIT" ]
59
2018-04-03T05:59:37.000Z
2022-03-14T22:41:38.000Z
multi_arm_bandit/mvn_arm4/mvn_test_arm4_sample15_last.py
floodsung/meta-critic-networks
1768751f84845bd6fe98a13d5b57dfaca154c1f8
[ "MIT" ]
null
null
null
multi_arm_bandit/mvn_arm4/mvn_test_arm4_sample15_last.py
floodsung/meta-critic-networks
1768751f84845bd6fe98a13d5b57dfaca154c1f8
[ "MIT" ]
20
2018-04-03T04:30:55.000Z
2021-12-06T06:57:59.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import matplotlib.pyplot as plt import numpy as np import math import random import os import json def save_to_json(fname, data): with open(fname, 'w') as outfile: json.dump(data, outfile) # Hyper Param...
35.606481
144
0.64738
4a080975012e0ad092b9f531d5df9b5ce421b24f
6,075
py
Python
pipasic_src/inspect/ResultsParser.py
duocang/pipasic
28baf6f56cc33ed8663d238cb5bd9c9fb4f8e142
[ "BSD-3-Clause" ]
null
null
null
pipasic_src/inspect/ResultsParser.py
duocang/pipasic
28baf6f56cc33ed8663d238cb5bd9c9fb4f8e142
[ "BSD-3-Clause" ]
null
null
null
pipasic_src/inspect/ResultsParser.py
duocang/pipasic
28baf6f56cc33ed8663d238cb5bd9c9fb4f8e142
[ "BSD-3-Clause" ]
null
null
null
#Title: ResultsParser.py #Author: Stephen Tanner, Samuel Payne, Natalie Castellana, Pavel Pevzner, Vineet Bafna #Created: 2005 # Copyright 2007,2008,2009 The Regents of the University of California # All Rights Reserved # # Permission to use, copy, modify and distribute any part of this # progra...
39.705882
294
0.651358
4a0809ecd080a5182b0d4ea607a70d399cb0b9ba
39
py
Python
catulator_app/webapp.py
LilacRapture/catulator_bot
a701aa657236f19e124121bc160d6e39b0ba9321
[ "MIT" ]
null
null
null
catulator_app/webapp.py
LilacRapture/catulator_bot
a701aa657236f19e124121bc160d6e39b0ba9321
[ "MIT" ]
null
null
null
catulator_app/webapp.py
LilacRapture/catulator_bot
a701aa657236f19e124121bc160d6e39b0ba9321
[ "MIT" ]
null
null
null
from . import app from . import routes
13
20
0.74359
4a080a255a3bdde6ea6404ab337b69a5d62e4bac
1,544
py
Python
scraper.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
scraper.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
scraper.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
import re import logging import settings import numpy as np import pandas as pd from typing import List from utils import mongo from time import time, sleep from bs4 import BeautifulSoup from selenium import webdriver from datetime import datetime from webdriver_manager.utils import ChromeType from selenium.webdriver.c...
32.166667
117
0.641192
4a080a4bc3c7faabf53e77a5f71111362b3f98a6
3,098
py
Python
tests/functions/test_distribution.py
jvesely/PsyNeuLink
40d92fdfd61c4ec992ae2564a0bd8496dfd7fa31
[ "Apache-2.0" ]
null
null
null
tests/functions/test_distribution.py
jvesely/PsyNeuLink
40d92fdfd61c4ec992ae2564a0bd8496dfd7fa31
[ "Apache-2.0" ]
208
2020-09-11T04:27:32.000Z
2022-03-31T02:15:36.000Z
tests/functions/test_distribution.py
jvesely/PsyNeuLink
40d92fdfd61c4ec992ae2564a0bd8496dfd7fa31
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import psyneulink.core.llvm as pnlvm import psyneulink.core.components.functions.nonstateful.distributionfunctions as Functions np.random.seed(0) test_var = np.random.rand() RAND1 = np.random.rand() RAND2 = np.random.rand() RAND3 = np.random.rand() RAND4 = np.random.rand() RAND5 = np...
51.633333
172
0.741446
4a080ae13c876589897cf230e6a792ce74c2dcb1
24,987
py
Python
NetworkControllability/TmpEdgeAttackExperiments.py
xinfeng1i/NetworkControllability
8a22ad0498ea12438c132556814dc255e709dc01
[ "BSD-2-Clause" ]
1
2019-02-06T13:39:49.000Z
2019-02-06T13:39:49.000Z
NetworkControllability/TmpEdgeAttackExperiments.py
python27/NetworkControllability
8a22ad0498ea12438c132556814dc255e709dc01
[ "BSD-2-Clause" ]
1
2020-11-03T22:51:32.000Z
2020-11-06T11:48:28.000Z
NetworkControllability/TmpEdgeAttackExperiments.py
xinfeng1i/NetworkControllability
8a22ad0498ea12438c132556814dc255e709dc01
[ "BSD-2-Clause" ]
null
null
null
import networkx as nx import matplotlib.pyplot as plt import exact_controllability as ECT from networkx.utils import powerlaw_sequence import operator import random import csv import copy import subprocess, os import time import numpy as np from ControllabilityRobustnessBasedOnEdgeAttack import RandomEdgeAttack from Co...
34.370014
109
0.540521
4a080c65ffff104387658dcc924a4d2227e150ef
3,808
py
Python
experiments/state_distance/optimal_control/compare_oc_variants.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/optimal_control/compare_oc_variants.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/optimal_control/compare_oc_variants.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" Script to compare different optimal control variants for a give qf. """ import argparse from collections import defaultdict import joblib import rlkit.misc.hyperparameter as hyp from rlkit.launchers.launcher_util import run_experiment from rlkit.misc.rllab_util import get_logger_table_dict from rlkit.state_dista...
28.631579
70
0.616071
4a080c6fa78d4383267e8e46011f1657efc4ed34
786
py
Python
src/binarization.py
ColoredInsaneAsylums/PageSegmentation-PrivacySensitiveTranscription
71ab8df1baf0a9b8cfb196115ed7c88880799fcb
[ "BSD-3-Clause" ]
null
null
null
src/binarization.py
ColoredInsaneAsylums/PageSegmentation-PrivacySensitiveTranscription
71ab8df1baf0a9b8cfb196115ed7c88880799fcb
[ "BSD-3-Clause" ]
null
null
null
src/binarization.py
ColoredInsaneAsylums/PageSegmentation-PrivacySensitiveTranscription
71ab8df1baf0a9b8cfb196115ed7c88880799fcb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python ##########IMPORTS################# import sys import time from PIL import Image as Im from gamera.core import * from pil_io import * init_gamera() ################################ ########## Parse Arguments ############ infile = sys.argv[1] outfile = sys.argv[2] ####################################...
21.833333
47
0.433842
4a080c73c339fcd199c70d875aed961a36ad0392
44,435
py
Python
helpers/phpdocx/lib/openoffice/openoffice.org/basis3.4/program/python-core-2.6.1/lib/pdb.py
vnnguyen/appbasic
c1d0b85c42a09f8c2d75807774f550b2b9eae33e
[ "BSD-3-Clause" ]
550
2015-01-05T16:59:00.000Z
2022-03-20T16:55:25.000Z
helpers/phpdocx/lib/openoffice/openoffice.org/basis3.4/program/python-core-2.6.1/lib/pdb.py
vnnguyen/appbasic
c1d0b85c42a09f8c2d75807774f550b2b9eae33e
[ "BSD-3-Clause" ]
15
2015-02-05T06:00:47.000Z
2018-07-07T14:34:04.000Z
helpers/phpdocx/lib/openoffice/openoffice.org/basis3.4/program/python-core-2.6.1/lib/pdb.py
vnnguyen/appbasic
c1d0b85c42a09f8c2d75807774f550b2b9eae33e
[ "BSD-3-Clause" ]
119
2015-01-08T00:48:24.000Z
2022-01-27T14:13:15.000Z
#! /usr/bin/env python """A Python debugger.""" # (See pdb.doc for documentation.) import sys import linecache import cmd import bdb from repr import Repr import os import re import pprint import traceback class Restart(Exception): """Causes a debugger to be restarted for the debugged python program.""" pa...
34.233436
118
0.570361
4a080cef87e36fee7a0ea96c8512f82bddcb160f
5,676
py
Python
isi_sdk_7_2/isi_sdk_7_2/models/settings_character_encodings_character_encoding.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_7_2/isi_sdk_7_2/models/settings_character_encodings_character_encoding.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_7_2/isi_sdk_7_2/models/settings_character_encodings_character_encoding.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 2 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class SettingsCharacterEncodings...
32.62069
120
0.632664
4a080d5bd5e2bd13b306cc334510baa268065d88
387
py
Python
class5/exercises/my_devices.py
ksannedhi/pyplus_course
fc3499f2dfef472dc49fe6caddf2e6e2be160f4b
[ "Apache-2.0" ]
39
2019-03-03T18:16:55.000Z
2022-02-17T17:05:18.000Z
class5/exercises/my_devices.py
ksannedhi/pyplus_course
fc3499f2dfef472dc49fe6caddf2e6e2be160f4b
[ "Apache-2.0" ]
1
2020-06-17T22:39:28.000Z
2020-06-17T22:39:28.000Z
class5/exercises/my_devices.py
ksannedhi/pyplus_course
fc3499f2dfef472dc49fe6caddf2e6e2be160f4b
[ "Apache-2.0" ]
77
2019-01-25T10:41:23.000Z
2022-03-14T21:35:59.000Z
import os from getpass import getpass password = os.getenv("PYNET_PASSWORD") if os.getenv("PYNET_PASSWORD") else getpass() nxos1 = { "device_type": "cisco_nxos", "host": "nxos1.lasthop.io", "username": "pyclass", "password": password, } nxos2 = { "device_type": "cisco_nxos", "host": "nxos2.l...
19.35
84
0.638243
4a080e14ce239fee959116c9a853df63310b4bae
10,090
py
Python
plugins/module_utils/zpa_client.py
willguibr/zpacloud_ansible
1d95e004ffccbcef787640ccea625bb051083414
[ "Apache-2.0" ]
1
2022-02-23T08:26:45.000Z
2022-02-23T08:26:45.000Z
plugins/module_utils/zpa_client.py
willguibr/zpacloud_ansible
1d95e004ffccbcef787640ccea625bb051083414
[ "Apache-2.0" ]
2
2022-02-23T21:08:09.000Z
2022-03-01T16:45:29.000Z
plugins/module_utils/zpa_client.py
willguibr/zpacloud-ansible
1d95e004ffccbcef787640ccea625bb051083414
[ "Apache-2.0" ]
null
null
null
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
32.031746
143
0.546085
4a080eec3a01024a43b8200d0d1a55b716709bcd
1,181
py
Python
setup.py
otov4its/pysnake
dbfe36e464b660cddb4193a493fc0e37e55a251f
[ "MIT" ]
null
null
null
setup.py
otov4its/pysnake
dbfe36e464b660cddb4193a493fc0e37e55a251f
[ "MIT" ]
null
null
null
setup.py
otov4its/pysnake
dbfe36e464b660cddb4193a493fc0e37e55a251f
[ "MIT" ]
null
null
null
import os.path from setuptools import setup, find_packages import pysnake def long_description(): here = os.path.dirname(os.path.abspath(__file__)) return open(os.path.join(here, 'README.rst')).read() version = pysnake.__version__ setup( name="pysnake", version=version, description='A curses-bas...
30.282051
90
0.646063
4a080f47e1fcff647eded73c8521da1b4c32f317
457
py
Python
utils/cli/print_video_names.py
acetrace/cvat
dae1e0676329baea4568edd11005581c59dcb204
[ "Intel", "MIT" ]
null
null
null
utils/cli/print_video_names.py
acetrace/cvat
dae1e0676329baea4568edd11005581c59dcb204
[ "Intel", "MIT" ]
1
2022-02-09T23:26:23.000Z
2022-02-09T23:26:23.000Z
utils/cli/print_video_names.py
acetrace/cvat
dae1e0676329baea4568edd11005581c59dcb204
[ "Intel", "MIT" ]
1
2022-03-31T17:39:09.000Z
2022-03-31T17:39:09.000Z
#!/usr/local/bin/python3 import os import sys import re # # dir # - video_1 # - ... # - video_2 # - ... # dir = sys.argv[1] labels = [{"name": "disc", "color": "#f68e83", "attributes": []}] for filename in sorted(os.listdir(dir)): video_name = filename video_name_match = re.search('task_(.*)-...
19.869565
82
0.595186
4a0810148504cd76ab7ebf074b42b69a5caab8bf
3,846
py
Python
keymint_keymake/pki/utils.py
keymint/keymint_keymake
adc38e07ce5f16d6ba4b36294d7d2e8a361153f0
[ "Apache-2.0" ]
null
null
null
keymint_keymake/pki/utils.py
keymint/keymint_keymake
adc38e07ce5f16d6ba4b36294d7d2e8a361153f0
[ "Apache-2.0" ]
null
null
null
keymint_keymake/pki/utils.py
keymint/keymint_keymake
adc38e07ce5f16d6ba4b36294d7d2e8a361153f0
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Open Source Robotics Foundation, Inc. # # 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...
38.079208
90
0.667187
4a08109db3ebf016eee2d8bda911e90ea1aa3cec
5,429
py
Python
covid scrape/covid_scrape.py
hrishipoola/berlin_covid_dashboard
d0eedabae28d11b685ea69b4ad511878b0fd8cf2
[ "MIT" ]
null
null
null
covid scrape/covid_scrape.py
hrishipoola/berlin_covid_dashboard
d0eedabae28d11b685ea69b4ad511878b0fd8cf2
[ "MIT" ]
null
null
null
covid scrape/covid_scrape.py
hrishipoola/berlin_covid_dashboard
d0eedabae28d11b685ea69b4ad511878b0fd8cf2
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from datetime import datetime # Web scraping using BeautifulSoup and converting to pandas dataframe import requests import urllib.request import json # library to handle JSON files from pandas.io.json import json_normalize # tranform JSON file into a pandas dataframe from urllib....
38.503546
342
0.732179
4a0810a3d08b2ac467f9ce4ac0288a71b9161705
6,915
py
Python
helper/model_helper.py
yangchihyuan/shufflenet-v2-tensorflow
8eb37ab5f0c78d7a03636a68f9c74cb3e2f301bf
[ "MIT" ]
null
null
null
helper/model_helper.py
yangchihyuan/shufflenet-v2-tensorflow
8eb37ab5f0c78d7a03636a68f9c74cb3e2f301bf
[ "MIT" ]
null
null
null
helper/model_helper.py
yangchihyuan/shufflenet-v2-tensorflow
8eb37ab5f0c78d7a03636a68f9c74cb3e2f301bf
[ "MIT" ]
null
null
null
import tensorflow as tf from helper import variables_helper from helper.checkpoint_helper import check_init_from_initial_checkpoint #from nets import nets_factory ModeKeys = tf.estimator.ModeKeys def get_input_function(dataset, batch_size, batch_threads, is_training, image_size): input_data = dataset.get_input_dat...
51.222222
179
0.757918
4a0810c00f6a3df20f54aec66a79179f1aa8c476
11,084
py
Python
mathgenerator/mathgen.py
Gourav2000/mathgenerator
670f8b29537c03c38a9489b474e27b2599852a09
[ "MIT" ]
null
null
null
mathgenerator/mathgen.py
Gourav2000/mathgenerator
670f8b29537c03c38a9489b474e27b2599852a09
[ "MIT" ]
null
null
null
mathgenerator/mathgen.py
Gourav2000/mathgenerator
670f8b29537c03c38a9489b474e27b2599852a09
[ "MIT" ]
null
null
null
import random import math import fractions import sympy from .funcs import * genList = [] # || Generator class class Generator: def __init__(self, title, id, generalProb, generalSol, func): self.title = title self.id = id self.generalProb = generalProb self.generalSol = generalSol ...
66.771084
201
0.661674
4a081387f471ecc2e1b47e4f0810e3a28b9f6be6
4,009
py
Python
scripts/artifacts/LineCallLogs.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/LineCallLogs.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/LineCallLogs.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
import datetime from scripts.ilapfuncs import open_sqlite_db_readonly, logfunc, tsv, timeline from scripts.plugin_base import ArtefactPlugin from scripts import artifact_report class LineCallLogsPlugin(ArtefactPlugin): """ """ def __init__(self): super().__init__() self.author = 'Unknown...
41.329897
130
0.49314
4a0813b4da8652d4c8c77e424e6d70cf3dff0c0a
3,479
py
Python
xero_python/accounting/models/report_rows.py
sidtrengove/xero-python
52f1ec2232def4c8e773e8e5fd6f766c059517b2
[ "MIT" ]
1
2020-06-05T15:03:15.000Z
2020-06-05T15:03:15.000Z
xero_python/accounting/models/report_rows.py
sidtrengove/xero-python
52f1ec2232def4c8e773e8e5fd6f766c059517b2
[ "MIT" ]
null
null
null
xero_python/accounting/models/report_rows.py
sidtrengove/xero-python
52f1ec2232def4c8e773e8e5fd6f766c059517b2
[ "MIT" ]
null
null
null
# coding: utf-8 """ Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.1.6 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_pytho...
23.506757
124
0.567404
4a0814fb7f5db8496915c3761f87cebfc3ffc81f
4,047
bzl
Python
third_party/llvm/llvm.bzl
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
384
2017-02-21T18:38:04.000Z
2022-02-22T07:30:25.000Z
third_party/llvm/llvm.bzl
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
15
2017-03-01T20:18:43.000Z
2020-05-07T10:33:51.000Z
third_party/llvm/llvm.bzl
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
81
2017-02-21T19:31:19.000Z
2022-02-22T07:30:24.000Z
"""This file contains BUILD extensions for generating source code from LLVM's table definition files using the TableGen tool. See http://llvm.org/cmds/tblgen.html for more information on the TableGen tool. TODO(chandlerc): Currently this expresses include-based dependencies as "sources", and has no transitive understa...
37.472222
125
0.663949
4a08159ee30af3b17bd94b2e022badc7f719c09e
746
py
Python
TCMS/TCMS/urls.py
tumutech/Tumutech-Content-Management-System
fa96912f7c54b4cab22ae18d0959d39fb0e83003
[ "Apache-2.0" ]
null
null
null
TCMS/TCMS/urls.py
tumutech/Tumutech-Content-Management-System
fa96912f7c54b4cab22ae18d0959d39fb0e83003
[ "Apache-2.0" ]
null
null
null
TCMS/TCMS/urls.py
tumutech/Tumutech-Content-Management-System
fa96912f7c54b4cab22ae18d0959d39fb0e83003
[ "Apache-2.0" ]
null
null
null
"""TCMS URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
33.909091
77
0.707775
4a0816024630158833e5382991a6caa5dcf76bc0
3,818
py
Python
src/b2bit_mini_twitter/settings.py
viniciussslima/b2bit-mini-twitter
d37b6d1c3e8d92f5aeee8c8bfdde34b0e4f82e57
[ "MIT" ]
null
null
null
src/b2bit_mini_twitter/settings.py
viniciussslima/b2bit-mini-twitter
d37b6d1c3e8d92f5aeee8c8bfdde34b0e4f82e57
[ "MIT" ]
null
null
null
src/b2bit_mini_twitter/settings.py
viniciussslima/b2bit-mini-twitter
d37b6d1c3e8d92f5aeee8c8bfdde34b0e4f82e57
[ "MIT" ]
null
null
null
""" Django settings for b2bit_mini_twitter project. Generated by 'django-admin startproject' using Django 4.0.3. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ i...
26.150685
91
0.702462
4a08164140918a4ed3a3b1c246f7841d1de26a72
15,796
py
Python
salt/modules/boto_cognitoidentity.py
preoctopus/salt
aceaaa0e2f2f2ff29a694393bd82bba0d88fa44d
[ "Apache-2.0" ]
1
2016-05-20T09:15:57.000Z
2016-05-20T09:15:57.000Z
salt/modules/boto_cognitoidentity.py
preoctopus/salt
aceaaa0e2f2f2ff29a694393bd82bba0d88fa44d
[ "Apache-2.0" ]
1
2020-10-21T21:38:49.000Z
2020-10-21T21:38:49.000Z
salt/modules/boto_cognitoidentity.py
preoctopus/salt
aceaaa0e2f2f2ff29a694393bd82bba0d88fa44d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Connection module for Amazon CognitoIdentity .. versionadded:: Boron :configuration: This module accepts explicit CognitoIdentity credentials but can also utilize IAM roles assigned to the instance trough Instance Profiles. Dynamic credentials are then automatically obtained from A...
36.396313
109
0.688592
4a0816735a817c865b85d953b088eac53f39b985
5,987
py
Python
nonebot_plugin_epicfree/data_source.py
monsterxcn/nonebot_plugin_epicfree
5086cd043e486485bd9705e776965c397a4aa45f
[ "MIT" ]
15
2021-08-16T13:16:52.000Z
2022-03-15T17:13:04.000Z
nonebot_plugin_epicfree/data_source.py
monsterxcn/nonebot_plugin_epicfree
5086cd043e486485bd9705e776965c397a4aa45f
[ "MIT" ]
4
2021-08-17T01:52:13.000Z
2022-02-19T14:21:42.000Z
nonebot_plugin_epicfree/data_source.py
monsterxcn/nonebot_plugin_epicfree
5086cd043e486485bd9705e776965c397a4aa45f
[ "MIT" ]
7
2021-09-19T12:10:34.000Z
2022-03-13T12:33:44.000Z
import json import sys from datetime import datetime import nonebot from httpx import AsyncClient from nonebot.log import logger resPath = nonebot.get_driver().config.resources_dir if not resPath: raise ValueError(f"请在环境变量中添加 resources_dir 参数,结尾带 / 且文件夹下需新建 epicfree 子文件夹") # 写入与读取订阅信息 # method="w" 写入时返回新增订阅结果字符串...
49.891667
1,538
0.662268
4a081950a0457aa68ad584a6d3cdab4a51fe3836
14,888
py
Python
tests/test_build_js/test_build_js.py
acivgin1/sphinx-js
9c8afe4e2ea46c53916ae8278747722c84b52ced
[ "MIT" ]
103
2018-11-30T06:05:40.000Z
2022-03-16T14:31:50.000Z
tests/test_build_js/test_build_js.py
acivgin1/sphinx-js
9c8afe4e2ea46c53916ae8278747722c84b52ced
[ "MIT" ]
97
2018-12-04T09:40:33.000Z
2022-03-31T10:30:37.000Z
tests/test_build_js/test_build_js.py
acivgin1/sphinx-js
9c8afe4e2ea46c53916ae8278747722c84b52ced
[ "MIT" ]
37
2018-11-26T15:36:05.000Z
2022-02-05T00:32:37.000Z
from tests.testing import SphinxBuildTestCase class Tests(SphinxBuildTestCase): """Tests which require our big JS Sphinx tree to be built. Yes, it's too coupled. Many of these are renderer tests, but some indirectly test JS analysis. These latter are left over from when JS was the only supported lan...
36.760494
163
0.553936
4a0819f9caa46461f14c6841caf229c2c3c3d459
7,066
py
Python
src/wrappers/wrapper_graphmap.py
isovic/realsim
659cfdb2476453bc26d15d29c48c52c755b71805
[ "MIT" ]
null
null
null
src/wrappers/wrapper_graphmap.py
isovic/realsim
659cfdb2476453bc26d15d29c48c52c755b71805
[ "MIT" ]
null
null
null
src/wrappers/wrapper_graphmap.py
isovic/realsim
659cfdb2476453bc26d15d29c48c52c755b71805
[ "MIT" ]
null
null
null
#! /usr/bin/python import os SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__)) import sys sys.path.append(SCRIPT_PATH + '/../src') import subprocess import multiprocessing import basicdefines ALIGNER_URL = 'https://github.com/isovic/graphmap.git' ALIGNER_PATH = os.path.join(basicdefines.ALIGNERS_PATH_ROOT_...
39.47486
160
0.680583
4a081a15441b0ea1532d37c5a675df71f012f8ea
2,065
py
Python
app/arq/tasks/snapshot.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
76
2020-02-27T06:36:27.000Z
2022-03-10T20:18:03.000Z
app/arq/tasks/snapshot.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
33
2020-03-13T02:04:14.000Z
2022-03-04T02:06:11.000Z
app/arq/tasks/snapshot.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
6
2020-03-17T16:42:25.000Z
2021-04-27T06:35:46.000Z
from typing import Optional, Union from uuid import UUID from app import models, schemas from app.api.dependencies.arq import get_arq_redis_with_context from app.arq.constants import ENRICH_SNAPSHOT_TASK_NAME from app.arq.tasks.classes.enrichment import EnrichmentTasks from app.arq.tasks.classes.match import MatchingT...
36.875
84
0.765133
4a081c1daf1b03994847f7f8d22298496566edec
2,921
py
Python
describe_graph.py
tongokongo/ln_neo4j
909eb5bf7254ce3d3fd9fd028b80c82ebffa371d
[ "MIT" ]
2
2021-05-10T03:26:28.000Z
2022-02-07T08:09:42.000Z
describe_graph.py
tongokongo/ln_neo4j
909eb5bf7254ce3d3fd9fd028b80c82ebffa371d
[ "MIT" ]
1
2019-06-08T01:24:18.000Z
2019-06-08T01:24:18.000Z
describe_graph.py
tongokongo/ln_neo4j
909eb5bf7254ce3d3fd9fd028b80c82ebffa371d
[ "MIT" ]
null
null
null
import rpc_pb2 as ln import rpc_pb2_grpc as lnrpc import grpc import os import codecs import json import argparse from response_parse.parse_response import response_parser from neo.neo4jobj import Neo4J #saving nodes to the neo4j def nodesToNeo(nodes): print("Parsing nodes") for node in nodes: #print(...
34.364706
112
0.717562
4a081d3a733c5c32ce6f2beba533e24d4d61eee2
1,608
py
Python
jp.atcoder/abc235/abc235_e/28546946.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc235/abc235_e/28546946.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc235/abc235_e/28546946.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import typing class UnionFind: def __init__(self, n: int) -> None: self.__data = [-1] * n def __len__(self) -> int: return len(self.__data) def find(self, u: int) -> int: d = self.__data if d[u] < 0: return u d[u] = self.find(d[u]) ...
22.027397
60
0.425995
4a081dfa3288c7325952ab7259a847971d7297f9
786
py
Python
Cryptography/Encryption_Decryption_Strings.py
ishkapoor2000/Cryptography_Practice
f9e1dac2828de30293934ed566991c015d9c8c2d
[ "MIT" ]
1
2021-10-01T08:03:23.000Z
2021-10-01T08:03:23.000Z
Cryptography/Encryption_Decryption_Strings.py
ishkapoor2000/Cryptography_Practice
f9e1dac2828de30293934ed566991c015d9c8c2d
[ "MIT" ]
null
null
null
Cryptography/Encryption_Decryption_Strings.py
ishkapoor2000/Cryptography_Practice
f9e1dac2828de30293934ed566991c015d9c8c2d
[ "MIT" ]
null
null
null
""" Created on Tue Aug 18 22:37:43 2020 @author: ISH KAPOOR """ from cryptography.fernet import Fernet # Generate the key for encryption and decryption method def gen_key(): key = Fernet.generate_key() with open("my_key.key", "wb") as my_key: my_key.write(key) # Load my key from dir d...
20.153846
56
0.669211
4a081e134e1d8c056afeabe43381878487763c31
562
py
Python
examples/simple.py
gregaw/abcvoting
4405807191d67c0851ba049b98785a98a662311d
[ "MIT" ]
null
null
null
examples/simple.py
gregaw/abcvoting
4405807191d67c0851ba049b98785a98a662311d
[ "MIT" ]
null
null
null
examples/simple.py
gregaw/abcvoting
4405807191d67c0851ba049b98785a98a662311d
[ "MIT" ]
null
null
null
""" Very simple example (compute PAV) """ from __future__ import print_function import sys sys.path.insert(0, '..') from abcvoting.preferences import Profile from abcvoting import abcrules num_cand = 5 profile = Profile(num_cand) profile.add_preferences([[0, 1, 2], [0, 1], [0, 1], [1, 2], [3, 4], [3, 4]]) committees...
26.761905
76
0.725979
4a081eaacf1f9822bc0e535cda1c78d0dc35f275
6,261
py
Python
examples/flask_receive_endpoint/receiver.py
Tas-sos/argo-messaging
629ca694d9118d8c6cde99273353f9d9c1e0bb24
[ "Apache-2.0" ]
6
2017-10-17T15:23:19.000Z
2021-11-26T11:18:56.000Z
examples/flask_receive_endpoint/receiver.py
Tas-sos/argo-messaging
629ca694d9118d8c6cde99273353f9d9c1e0bb24
[ "Apache-2.0" ]
113
2016-01-20T08:21:52.000Z
2022-02-27T20:31:03.000Z
examples/flask_receive_endpoint/receiver.py
Tas-sos/argo-messaging
629ca694d9118d8c6cde99273353f9d9c1e0bb24
[ "Apache-2.0" ]
11
2015-12-22T06:09:22.000Z
2021-08-05T08:02:44.000Z
#!/usr/bin/env python # Example of a remote endpoint used to receive push messages # The endpoint is a simple flask app that by default listens to port 5000 # It receives push messages that are delivered with http POST to `host.remote.node:5000/receive_here` # It dumps the message properties and the decoded payload to...
31.305
117
0.622744
4a081f3823600c1c83285969874201747ac77f42
8,313
py
Python
aiida_cusp/utils/defaults.py
astamminger/aiida_cusp
4a5a014fc90761ee8855cbe6305a8f565f9626a3
[ "MIT" ]
2
2020-08-10T15:47:10.000Z
2022-03-14T12:29:43.000Z
aiida_cusp/utils/defaults.py
astamminger/aiida_cusp
4a5a014fc90761ee8855cbe6305a8f565f9626a3
[ "MIT" ]
13
2020-07-10T16:22:05.000Z
2022-02-28T18:41:53.000Z
aiida_cusp/utils/defaults.py
astamminger/aiida_cusp
4a5a014fc90761ee8855cbe6305a8f565f9626a3
[ "MIT" ]
2
2020-07-09T10:09:04.000Z
2020-08-10T15:47:54.000Z
# -*- coding: utf-8 -*- from aiida_cusp.utils.decorators import classproperty # FIXME: Decide what to do with the screened exchange (WFULLxxxx.tmp) and the # diagonal elements of the screened exchange (Wxxxx.tmp) output files # written for BSE calculations class VaspDefaults(object): """ Col...
31.850575
78
0.559124
4a081f3bcb99d6fb6391bb1314257381943e2997
533
py
Python
SmartMedApp/GUI/apps/PredictionApp/utils.py
SmartMedHSE/SmartMed
6026a667ef5bfb29561335a71e1988f81c0af19f
[ "Apache-2.0" ]
1
2022-01-14T17:04:47.000Z
2022-01-14T17:04:47.000Z
SmartMedApp/GUI/apps/PredictionApp/utils.py
SmartMedHSE/SmartMed
6026a667ef5bfb29561335a71e1988f81c0af19f
[ "Apache-2.0" ]
5
2021-11-14T17:18:32.000Z
2022-02-12T17:06:33.000Z
SmartMedApp/GUI/apps/PredictionApp/utils.py
SmartMedHSE/SmartMed
6026a667ef5bfb29561335a71e1988f81c0af19f
[ "Apache-2.0" ]
3
2021-11-14T21:37:57.000Z
2021-11-24T10:43:24.000Z
import pandas as pd import pathlib def read_file(path): ext = pathlib.Path(path).suffix if ext == '.csv': df = pd.read_csv(path) if len(df.columns) <= 1: df = pd.read_csv(path, sep=';') elif ext == '.xlsx' or ext == '.xls': df = pd.read_excel(path) elif ext == '...
19.035714
48
0.549719
4a081f9eff2ceb494959fb98449f1de892f8cbfd
5,746
py
Python
apps/messages/tests/test_views.py
storagebot/kitsune
613ba2ca09104f330ab77088b452391169096249
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
apps/messages/tests/test_views.py
taliasman/kitsune
f8085205eef143011adb4c52d1f183da06c1c58e
[ "BSD-3-Clause" ]
null
null
null
apps/messages/tests/test_views.py
taliasman/kitsune
f8085205eef143011adb4c52d1f183da06c1c58e
[ "BSD-3-Clause" ]
null
null
null
from multidb.middleware import PINNING_COOKIE from nose.tools import eq_ from messages.models import InboxMessage, OutboxMessage from sumo.tests import TestCase, LocalizingClient from sumo.urlresolvers import reverse from users.tests import user class ReadMessageTests(TestCase): def setUp(self): super(R...
42.880597
78
0.567699
4a08201646af48efa5c2f46ef5387f94a3f48494
7,372
py
Python
pyprometheus/metrics.py
Lispython/pyprometheus
d364b0dd01597b001102b5c8157f289f0eb18f5a
[ "BSD-3-Clause" ]
13
2017-02-26T13:36:27.000Z
2019-11-14T06:31:40.000Z
pyprometheus/metrics.py
Lispython/pyprometheus
d364b0dd01597b001102b5c8157f289f0eb18f5a
[ "BSD-3-Clause" ]
8
2017-02-27T16:28:08.000Z
2019-01-24T16:50:07.000Z
pyprometheus/metrics.py
Lispython/pyprometheus
d364b0dd01597b001102b5c8157f289f0eb18f5a
[ "BSD-3-Clause" ]
3
2018-10-24T11:18:47.000Z
2019-11-14T06:31:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pyprometheus.metrics ~~~~~~~~~~~~~~~~~~~~ Prometheus instrumentation library for Python applications :copyright: (c) 2017 by Alexandr Lispython. :license: , see LICENSE for more details. :github: http://github.com/Lispython/pyprometheus """ from pyprometheus.const im...
30.97479
110
0.602821
4a0820f095dd98427f47ef022eccc12b8070e077
973
py
Python
bgpq3d/tests/test_cases.py
wolcomm/bgpq3d
689bf9a495ebf11749dcf5b3e4a2b70c90d12611
[ "Apache-2.0" ]
2
2019-05-15T13:21:25.000Z
2020-04-26T19:28:31.000Z
bgpq3d/tests/test_cases.py
wolcomm/bgpq3d
689bf9a495ebf11749dcf5b3e4a2b70c90d12611
[ "Apache-2.0" ]
null
null
null
bgpq3d/tests/test_cases.py
wolcomm/bgpq3d
689bf9a495ebf11749dcf5b3e4a2b70c90d12611
[ "Apache-2.0" ]
null
null
null
import os from unittest import TestCase from whichcraft import which from bgpq3d import parser, dispatch class TestOutput(TestCase): config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'bgpq3d-test.ini') def test_01_dependency(self): path = which('bgpq3') self.assertIsInst...
36.037037
94
0.68037
4a0821451d7d8917fb426d5e99dcecd2944a90ab
2,902
py
Python
validate_examples.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
298
2019-06-17T13:51:46.000Z
2021-06-23T18:09:51.000Z
validate_examples.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
137
2019-06-18T12:59:37.000Z
2021-06-19T05:50:58.000Z
validate_examples.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
42
2019-06-18T07:25:23.000Z
2021-06-18T17:40:20.000Z
"""Validate example files.""" # Standard Library import re import sys from pathlib import Path # Third Party import yaml # Project from hyperglass.util import set_app_path EXAMPLES = Path(__file__).parent.parent / "hyperglass" / "examples" DEVICES = EXAMPLES / "devices.yaml" COMMANDS = EXAMPLES / "commands.yaml" M...
25.017241
77
0.583735
4a082224b3851fe4bf5afdf58db88be944f8c1e4
7,990
py
Python
Reddit_algorithms/reddit_sentiment_vader.py
arshdeepdhillon/Sentiment-Analysis
9a91e31e7f19ea8537ec4a711e6d69b0e9acb480
[ "MIT" ]
null
null
null
Reddit_algorithms/reddit_sentiment_vader.py
arshdeepdhillon/Sentiment-Analysis
9a91e31e7f19ea8537ec4a711e6d69b0e9acb480
[ "MIT" ]
2
2019-02-14T11:07:35.000Z
2019-03-19T16:00:48.000Z
Reddit_algorithms/reddit_sentiment_vader.py
arshdeepdhillon/Sentiment-Analysis
9a91e31e7f19ea8537ec4a711e6d69b0e9acb480
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '../extract_data') import extract_reddit_comments as RDT from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer import timeit class Vader: def __init__(self): # file's name that will be genereated in the comments_parsed_path folder self.comments_parsed...
32.745902
131
0.593617
4a08252e340e9b4a8e337bc06b957232884b243f
225
py
Python
analytics/admin.py
ayushkalani/delightchat
7b60ca16ccd1cf4005fc2833fa03256f11cd71c7
[ "MIT" ]
null
null
null
analytics/admin.py
ayushkalani/delightchat
7b60ca16ccd1cf4005fc2833fa03256f11cd71c7
[ "MIT" ]
null
null
null
analytics/admin.py
ayushkalani/delightchat
7b60ca16ccd1cf4005fc2833fa03256f11cd71c7
[ "MIT" ]
null
null
null
from django.contrib import admin from analytics.models import Accounts, Users, Conversations, Channels admin.site.register(Accounts) admin.site.register(Users) admin.site.register(Conversations) admin.site.register(Channels)
32.142857
69
0.84
4a08257a61ba6fcbedb01e8c94b26cf5dcd749b7
10,729
py
Python
google/cloud/pubsub_v1/subscriber/message.py
renovate-bot/python-pubsub
bb25d755d70ba19e69d8a281be65f13eb994967d
[ "Apache-2.0" ]
null
null
null
google/cloud/pubsub_v1/subscriber/message.py
renovate-bot/python-pubsub
bb25d755d70ba19e69d8a281be65f13eb994967d
[ "Apache-2.0" ]
null
null
null
google/cloud/pubsub_v1/subscriber/message.py
renovate-bot/python-pubsub
bb25d755d70ba19e69d8a281be65f13eb994967d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, Google LLC 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 applicable law or a...
36.124579
88
0.634169
4a08267afa6cbcc6650d9144de731b248cfa24ee
968
py
Python
ymir/backend/src/pymir-app/app/api/api_v1/endpoints/upload.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
1
2022-01-12T03:12:47.000Z
2022-01-12T03:12:47.000Z
ymir/backend/src/pymir-app/app/api/api_v1/endpoints/upload.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/pymir-app/app/api/api_v1/endpoints/upload.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
import random import secrets from typing import Any, List from fastapi import ( APIRouter, Depends, File, Form, HTTPException, Path, Query, UploadFile, ) from sqlalchemy.orm import Session from app import crud, models, schemas from app.api import deps from app.api.errors.errors import ...
20.166667
70
0.705579
4a0828e249846975ec604b17538584952548cf90
33,831
py
Python
upstox_api/api.py
sivaa/upstox-python
35b1509806456cf95484064d4471a7a3f98c63a2
[ "MIT" ]
59
2017-07-16T18:53:46.000Z
2022-01-21T06:53:25.000Z
upstox_api/api.py
somsirsa/upstox-python
35b1509806456cf95484064d4471a7a3f98c63a2
[ "MIT" ]
26
2017-06-18T10:41:50.000Z
2022-03-29T15:23:19.000Z
upstox_api/api.py
somsirsa/upstox-python
35b1509806456cf95484064d4471a7a3f98c63a2
[ "MIT" ]
73
2017-09-12T14:11:11.000Z
2022-03-25T17:59:04.000Z
import json, os, future from collections import OrderedDict from upstox_api.utils import * import websocket, threading import logging from datetime import date, datetime import requests from requests.auth import HTTPBasicAuth from builtins import int try: from urllib.parse import urlencode except: from urlli...
42.715909
145
0.575921
4a08294da6fbf94f7bbc6c2d230a3525dfbe04d2
3,103
py
Python
src/appengine/handlers/testcase_detail/update_issue.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
src/appengine/handlers/testcase_detail/update_issue.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
src/appengine/handlers/testcase_detail/update_issue.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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, ...
38.308642
80
0.705769
4a082a03bd6b00fbe85696f403e4ab7b03dea98d
4,179
py
Python
tests/pytests/unit/states/test_mac_xattr.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
tests/pytests/unit/states/test_mac_xattr.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
tests/pytests/unit/states/test_mac_xattr.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
import pytest import salt.states.mac_xattr as xattr from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): return {xattr: {}} def test_exists_not(): """ Test adding an attribute when it doesn't exist """ with patch("os.path.exists") as exists_mock: ...
29.638298
86
0.5542
4a082a67256a138d953833524f9d6dd8cf7a7e8b
8,045
py
Python
py/test/selenium/webdriver/common/interactions_tests.py
akiellor/selenium
239490f9c5f3c7e7d4082bbe53c86eb5158d70a3
[ "Apache-2.0" ]
1
2018-08-24T18:01:34.000Z
2018-08-24T18:01:34.000Z
py/test/selenium/webdriver/common/interactions_tests.py
akiellor/selenium
239490f9c5f3c7e7d4082bbe53c86eb5158d70a3
[ "Apache-2.0" ]
1
2021-10-18T12:23:37.000Z
2021-10-18T12:23:37.000Z
py/test/selenium/webdriver/common/interactions_tests.py
akiellor/selenium
239490f9c5f3c7e7d4082bbe53c86eb5158d70a3
[ "Apache-2.0" ]
2
2018-04-30T21:35:30.000Z
2021-05-14T08:11:46.000Z
#!/usr/bin/python # Copyright 2011 WebDriver committers # Copyright 2011 Google Inc. # # 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 # # Un...
39.243902
91
0.681914
4a082a6f37c6fd26ff8393f48c2f1cfc65b29949
3,427
py
Python
parlai/tasks/opensubtitles/build.py
ysglh/ParlAI
e0f16e9168839be12f72d3431b9819cf3d51fe10
[ "BSD-3-Clause" ]
2
2017-09-30T23:23:44.000Z
2021-07-08T17:12:58.000Z
parlai/tasks/opensubtitles/build.py
ysglh/ParlAI
e0f16e9168839be12f72d3431b9819cf3d51fe10
[ "BSD-3-Clause" ]
null
null
null
parlai/tasks/opensubtitles/build.py
ysglh/ParlAI
e0f16e9168839be12f72d3431b9819cf3d51fe10
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. # Download and build the da...
38.077778
82
0.47972
4a082be498fb0521b7f3c8f4212c00d55d32951a
4,247
py
Python
pypureclient/flasharray/FA_2_10/models/qos.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_10/models/qos.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_10/models/qos.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
33.179688
207
0.569108
4a082cfec1654d038247007ca91dd9c8d10a0baa
817
py
Python
mxfusion/common/exceptions.py
JeremiasKnoblauch/MXFusion
af6223e9636b055d029d136dd7ae023b210b4560
[ "Apache-2.0" ]
2
2019-05-31T09:50:47.000Z
2021-03-06T09:38:47.000Z
mxfusion/common/exceptions.py
JeremiasKnoblauch/MXFusion
af6223e9636b055d029d136dd7ae023b210b4560
[ "Apache-2.0" ]
null
null
null
mxfusion/common/exceptions.py
JeremiasKnoblauch/MXFusion
af6223e9636b055d029d136dd7ae023b210b4560
[ "Apache-2.0" ]
1
2019-05-30T09:39:46.000Z
2019-05-30T09:39:46.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in th...
31.423077
80
0.664627