hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
37bb4353b2134183f088de3f1a1110070cfbceae
1,948
py
Python
listcord/autoposter.py
Rishiraj0100/listcord.py
d24daeace1b38f54343f8a4c6c772f0df51e6682
[ "MIT" ]
null
null
null
listcord/autoposter.py
Rishiraj0100/listcord.py
d24daeace1b38f54343f8a4c6c772f0df51e6682
[ "MIT" ]
null
null
null
listcord/autoposter.py
Rishiraj0100/listcord.py
d24daeace1b38f54343f8a4c6c772f0df51e6682
[ "MIT" ]
null
null
null
from typing import Callable, Mapping, TypedDict import asyncio, aiohttp, discord
29.074627
197
0.589322
37be7c7088612389d0a2fe0241112ba65382ad0d
2,690
py
Python
toolbox/database.py
AntoineOrsoni/running-to-the-moon
8e2934b0aadf9c1f0f8dd9417f00e014be473b1a
[ "MIT" ]
null
null
null
toolbox/database.py
AntoineOrsoni/running-to-the-moon
8e2934b0aadf9c1f0f8dd9417f00e014be473b1a
[ "MIT" ]
null
null
null
toolbox/database.py
AntoineOrsoni/running-to-the-moon
8e2934b0aadf9c1f0f8dd9417f00e014be473b1a
[ "MIT" ]
null
null
null
import sqlite3 import contextlib import json from ast import literal_eval # Execute a single statement # Fetch one output from the database # Add an `output` in the `statistics` table # Get the older timestamp for a given week # All test from the same batch will have the same timestamp. # Return the output for...
36.849315
100
0.604461
37bec73bf2cdf3c3cc14ccc4bc55a33295e038f0
457
py
Python
Challenge 1/solution.py
Rishit-dagli/Google-FooBar
85dc2dbb880bffa4568fa84657fc0d1bcd6b8974
[ "Apache-2.0" ]
5
2020-06-05T18:53:48.000Z
2021-02-05T11:24:04.000Z
Challenge 1/solution.py
RahulSundar/Google-FooBar
e2673928ab3dde2e471c0f2d77b46e398ba0ec08
[ "Apache-2.0" ]
null
null
null
Challenge 1/solution.py
RahulSundar/Google-FooBar
e2673928ab3dde2e471c0f2d77b46e398ba0ec08
[ "Apache-2.0" ]
2
2020-06-05T18:53:51.000Z
2020-06-07T15:57:43.000Z
print(solution([1, 2, 3], 0)) print(solution([5, 10, 15, 10, 7], 1)) print(solution([1, 2, 2, 3, 3, 3, 4, 5, 5], 1))
26.882353
58
0.54267
37beddf03942364ffb2a1d3a16da68be3e1b7773
1,412
py
Python
tdd_busca_animal/setup/tests.py
Jefferson472/apredendo-django
c01817d93493f588c1a3462c6e153cbbc3230508
[ "MIT" ]
null
null
null
tdd_busca_animal/setup/tests.py
Jefferson472/apredendo-django
c01817d93493f588c1a3462c6e153cbbc3230508
[ "MIT" ]
null
null
null
tdd_busca_animal/setup/tests.py
Jefferson472/apredendo-django
c01817d93493f588c1a3462c6e153cbbc3230508
[ "MIT" ]
null
null
null
from django.test import LiveServerTestCase from selenium import webdriver from selenium.webdriver.chrome.options import Options from animais.models import Animal
38.162162
106
0.703258
37bfd7a583e97429e831b74add6932d378244f17
242
py
Python
python/app/logconfig.py
brandond/obra-hacks
df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3
[ "Apache-2.0" ]
null
null
null
python/app/logconfig.py
brandond/obra-hacks
df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3
[ "Apache-2.0" ]
null
null
null
python/app/logconfig.py
brandond/obra-hacks
df451c6c6cd78b48f6e32bbd102a8e8a6bd77cb3
[ "Apache-2.0" ]
null
null
null
import logging import os logging.basicConfig(level=os.environ.get('LOG_LEVEL', 'INFO'), format='[python %(name)s pid: %(process)d] %(levelname)s: %(message)s') logger = logging.getLogger(__name__) logger.info('{} imported'.format(__name__))
34.571429
134
0.731405
37c2edca7854e044a40725c0eb4b1d2f0013ee57
824
py
Python
xunit-autolabeler-v2/ast_parser/python/test_data/parser/nested_tags/nested_tags.py
GoogleCloudPlatform/repo-automation-playground
a4c8f104c246ede002f6c18fcebfc0496c8abb94
[ "Apache-2.0" ]
5
2019-07-11T17:35:44.000Z
2021-10-09T01:49:04.000Z
xunit-autolabeler-v2/ast_parser/python/test_data/parser/nested_tags/nested_tags.py
GoogleCloudPlatform/repo-automation-playground
a4c8f104c246ede002f6c18fcebfc0496c8abb94
[ "Apache-2.0" ]
36
2019-08-27T18:20:21.000Z
2022-01-12T21:29:00.000Z
xunit-autolabeler-v2/ast_parser/python/test_data/parser/nested_tags/nested_tags.py
GoogleCloudPlatform/repo-automation-playground
a4c8f104c246ede002f6c18fcebfc0496c8abb94
[ "Apache-2.0" ]
13
2019-10-30T19:39:51.000Z
2021-04-04T09:31:52.000Z
# Copyright 2020 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, ...
25.75
74
0.734223
37c38ec1d818bae8f209aa11a156c96c83dbe54c
3,470
py
Python
external/vcm/tests/test_xarray_utils.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
5
2021-03-20T22:42:40.000Z
2021-06-30T18:39:36.000Z
external/vcm/tests/test_xarray_utils.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
external/vcm/tests/test_xarray_utils.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-06-16T22:04:24.000Z
2021-06-16T22:04:24.000Z
import dask import numpy as np import pytest import xarray as xr from vcm.xarray_utils import ( _repeat_dataarray, assert_identical_including_dtype, isclose, repeat, )
30.982143
84
0.584438
37c68daf5d38e300ea366a9d35adffa55a0cf4c8
261
py
Python
Python3/Exercises/DictionaryMethods/dictionary_methods.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/Exercises/DictionaryMethods/dictionary_methods.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/Exercises/DictionaryMethods/dictionary_methods.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
inventory = {'croissant': 19, 'bagel': 4, 'muffin': 8, 'cake': 1} print(f'{inventory =}') stock_list = inventory.copy() print(f'{stock_list =}') stock_list['hot cheetos'] = 25 stock_list.update({'cookie' : 18}) stock_list.pop('cake') print(f'{stock_list =}')
23.727273
65
0.655172
37c6e4738bf1e11ca37459fa1acd1186d5fbaed3
3,337
py
Python
libs/DuckDuckGoImages.py
Valken/FenrirScreenshotManager
1a93784a5710098e37fbab9da458788e8fb1616d
[ "MIT" ]
7
2021-07-30T10:58:04.000Z
2022-02-20T16:38:50.000Z
libs/DuckDuckGoImages.py
Valken/FenrirScreenshotManager
1a93784a5710098e37fbab9da458788e8fb1616d
[ "MIT" ]
3
2021-08-03T05:45:27.000Z
2021-11-17T22:30:33.000Z
libs/DuckDuckGoImages.py
Valken/FenrirScreenshotManager
1a93784a5710098e37fbab9da458788e8fb1616d
[ "MIT" ]
1
2021-08-04T11:44:07.000Z
2021-08-04T11:44:07.000Z
# # Direction modification of the original code by https://github.com/JorgePoblete/DuckDuckGoImages # - Added use_name and target_resolution # import re import io import os import json import uuid import shutil import random import requests from PIL import Image
28.521368
97
0.614924
37c8a3b855ae67e8b55b1960188797f0c90fea95
592
py
Python
Hackerrank/sherlockAndCost.py
nandani99/Hacktoberfest-1
83cdd9f6b5538fa266d0617d53409852111c89b5
[ "MIT" ]
255
2018-10-18T18:42:58.000Z
2022-02-02T22:34:28.000Z
Hackerrank/sherlockAndCost.py
nandani99/Hacktoberfest-1
83cdd9f6b5538fa266d0617d53409852111c89b5
[ "MIT" ]
797
2018-10-16T05:52:30.000Z
2022-02-08T23:02:51.000Z
Hackerrank/sherlockAndCost.py
nandani99/Hacktoberfest-1
83cdd9f6b5538fa266d0617d53409852111c89b5
[ "MIT" ]
1,115
2018-10-16T07:17:57.000Z
2022-01-09T02:59:30.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the cost function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') t = int(input()) for t_itr in range(t): n = int(input()) B = list(map(int, input().rstrip().split())) ...
17.411765
60
0.506757
37c8e245a984cf38e441cc68ffe2db0691a55ea8
496
py
Python
{{ cookiecutter.repo_name }}/app/config/config.py
ShilpaGopal/cookiecutter-ml-flask-serving
9d1f56d0cda248fb2834b714390df7078ad24a22
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/app/config/config.py
ShilpaGopal/cookiecutter-ml-flask-serving
9d1f56d0cda248fb2834b714390df7078ad24a22
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/app/config/config.py
ShilpaGopal/cookiecutter-ml-flask-serving
9d1f56d0cda248fb2834b714390df7078ad24a22
[ "MIT" ]
null
null
null
import os import constants.constants as const SVC_NAME = const.SVC_NAME MODEL_CONFIG = { 'model_path': os.getenv('MODEL_PATH', 'data/model/crnn_model.h5') } LOGGER_CONFIG = { 'log_level': os.getenv('LOG_LEVEL', 'DEBUG'), 'log_handle': os.getenv('LOG_HANDLE', 'file'), 'log_path': os.getenv...
24.8
70
0.631048
37cb1c48f6f0fcf7f4afa1dcca776c8ef908dd41
9,222
py
Python
archr/analyzers/datascout.py
trentn/archr
04e7c30aa635ec77e2b82c0681a8974e9e89a239
[ "BSD-2-Clause" ]
58
2019-02-20T20:46:28.000Z
2021-09-30T17:27:46.000Z
archr/analyzers/datascout.py
trentn/archr
04e7c30aa635ec77e2b82c0681a8974e9e89a239
[ "BSD-2-Clause" ]
58
2019-02-20T20:22:51.000Z
2022-01-28T21:19:01.000Z
archr/analyzers/datascout.py
trentn/archr
04e7c30aa635ec77e2b82c0681a8974e9e89a239
[ "BSD-2-Clause" ]
16
2019-02-20T19:44:19.000Z
2022-03-28T21:41:49.000Z
import logging l = logging.getLogger("archr.analyzers.datascout") from ..errors import ArchrError from . import Analyzer # Keystone engine 0.9.2 (incorrectly) defaults to radix 16. so we'd better off only using 0x-prefixed integers from now. # See the related PR: https://github.com/keystone-engine/keystone/pull/382 ...
46.11
136
0.533941
805d2e10e957e70e749b95821942bd42c89d0b08
7,158
py
Python
main.py
Parzival32/e-Dnevnik_API
8f9ef8ef062a550dbcb21dbfe99b2274df2b4857
[ "MIT" ]
null
null
null
main.py
Parzival32/e-Dnevnik_API
8f9ef8ef062a550dbcb21dbfe99b2274df2b4857
[ "MIT" ]
null
null
null
main.py
Parzival32/e-Dnevnik_API
8f9ef8ef062a550dbcb21dbfe99b2274df2b4857
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.chrome.options import Options
37.47644
127
0.659821
805ebe18518a4388e308601d10dffab1db81feb4
304
py
Python
tests/file_test_util.py
lyksdu/langmodels
5a49ee523e84513915f6fa747e03e5ef813aec17
[ "MIT" ]
9
2020-01-21T13:34:49.000Z
2022-03-18T02:34:30.000Z
tests/file_test_util.py
lyksdu/langmodels
5a49ee523e84513915f6fa747e03e5ef813aec17
[ "MIT" ]
6
2020-05-02T07:03:26.000Z
2022-03-11T23:48:38.000Z
tests/file_test_util.py
lyksdu/langmodels
5a49ee523e84513915f6fa747e03e5ef813aec17
[ "MIT" ]
3
2019-08-03T00:06:19.000Z
2020-05-07T00:37:19.000Z
from typing import List from unittest.mock import MagicMock
33.777778
72
0.740132
805f604d1603256f86a479dd81f3e5fcee43cae0
1,193
py
Python
capreolus/index/tests/test_index.py
AlexWang000/capreolus
00b0bf471ea0eb116ab973254ea61b0492405c54
[ "Apache-2.0" ]
1
2020-07-23T07:59:40.000Z
2020-07-23T07:59:40.000Z
capreolus/index/tests/test_index.py
AlexWang000/capreolus
00b0bf471ea0eb116ab973254ea61b0492405c54
[ "Apache-2.0" ]
1
2022-01-09T00:11:58.000Z
2022-01-21T13:58:50.000Z
capreolus/index/tests/test_index.py
AlexWang000/capreolus
00b0bf471ea0eb116ab973254ea61b0492405c54
[ "Apache-2.0" ]
3
2021-10-20T13:11:46.000Z
2021-12-20T21:34:19.000Z
import pytest from capreolus.collection import Collection, DummyCollection from capreolus.index import Index from capreolus.index import AnseriniIndex from capreolus.tests.common_fixtures import tmpdir_as_cache, dummy_index
34.085714
90
0.738474
80601f4e57df490107c52562edfb5325419b2d30
624
py
Python
noheavenbot/utils/database_config.py
Molanito13/noheaven-bot
ad126d4601321ecabff9d1d214ce7d3f4e258c3e
[ "MIT" ]
3
2018-10-13T14:05:24.000Z
2018-12-25T21:40:21.000Z
noheavenbot/utils/database_config.py
Molanito13/noheaven-bot
ad126d4601321ecabff9d1d214ce7d3f4e258c3e
[ "MIT" ]
2
2018-10-08T14:33:39.000Z
2020-03-02T18:00:47.000Z
noheavenbot/utils/database_config.py
Molanito13/noheaven-bot
ad126d4601321ecabff9d1d214ce7d3f4e258c3e
[ "MIT" ]
5
2018-10-08T14:18:58.000Z
2020-11-01T17:55:51.000Z
import logging try: from asyncpg import create_pool except ModuleNotFoundError: logging.warning('Database not set up, install asyncpg') from noheavenbot.utils.constants import EnvVariables
28.363636
67
0.621795
806099da6f4e0eb08385e71c81f065edd86b5eed
472
py
Python
myapi/serializers.py
zchuhui/django-rest-framework-example
82ee470b581473a0e9f5772ede75a90f2dfe1c54
[ "Apache-2.0" ]
null
null
null
myapi/serializers.py
zchuhui/django-rest-framework-example
82ee470b581473a0e9f5772ede75a90f2dfe1c54
[ "Apache-2.0" ]
null
null
null
myapi/serializers.py
zchuhui/django-rest-framework-example
82ee470b581473a0e9f5772ede75a90f2dfe1c54
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from .models import Hero,Company
19.666667
66
0.633475
80611e229baae2429315f03fb9b32d57f7298e03
4,323
py
Python
diplomacy/src/scripts/yamlizer.py
MaxStrange/nlp
8cd417ab71c7321a25edd5519a133bb8f1a5d092
[ "MIT" ]
1
2019-04-22T16:45:32.000Z
2019-04-22T16:45:32.000Z
diplomacy/src/scripts/yamlizer.py
afcarl/nlp
8cd417ab71c7321a25edd5519a133bb8f1a5d092
[ "MIT" ]
null
null
null
diplomacy/src/scripts/yamlizer.py
afcarl/nlp
8cd417ab71c7321a25edd5519a133bb8f1a5d092
[ "MIT" ]
1
2018-06-17T14:54:02.000Z
2018-06-17T14:54:02.000Z
""" This script takes a single message gathered from playdiplomacy.com as an input file and outputs a YAML version of it so that it can be used as an input file into the program. Usage: python3 yamlizer.py msg.txt (You can also feed it a list of files). NOTE: This script is not designed to handle multiple recipient ...
32.75
161
0.610687
80624d1280a0eb18b210f33d8b8631a74882c8c8
17,010
py
Python
sdk/python/pulumi_alicloud/bastionhost/host_account_user_group_attachment.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/bastionhost/host_account_user_group_attachment.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/bastionhost/host_account_user_group_attachment.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
44.881266
172
0.65873
8063dfe36de56cbc689a8b310df3ce5003370b6d
432
py
Python
str10.py
ABHISHEKSUBHASHSWAMI/String-Manipulation
e22efdbe76069e0280cc1acdeeabc4b663ac4f36
[ "MIT" ]
null
null
null
str10.py
ABHISHEKSUBHASHSWAMI/String-Manipulation
e22efdbe76069e0280cc1acdeeabc4b663ac4f36
[ "MIT" ]
null
null
null
str10.py
ABHISHEKSUBHASHSWAMI/String-Manipulation
e22efdbe76069e0280cc1acdeeabc4b663ac4f36
[ "MIT" ]
null
null
null
#Program to change a given string to a new string where the first and last chars have been exchanged. string=str(input("Enter a string :")) first=string[0] #store first index element of string in variable last=string[-1] #store last index element of string in var...
43.2
101
0.641204
8063fd86f68ebf320baf9273c420614c93e98bab
990
py
Python
setup.py
MailboxValidator/mailboxvalidator-python
740d64a4cd6a32bf7d65903c0d30164a8cfafcde
[ "MIT" ]
9
2018-07-09T06:49:05.000Z
2022-03-15T07:40:41.000Z
setup.py
MailboxValidator/mailboxvalidator-python
740d64a4cd6a32bf7d65903c0d30164a8cfafcde
[ "MIT" ]
null
null
null
setup.py
MailboxValidator/mailboxvalidator-python
740d64a4cd6a32bf7d65903c0d30164a8cfafcde
[ "MIT" ]
1
2021-05-26T12:43:16.000Z
2021-05-26T12:43:16.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="MailboxValidator", version="1.2.0", author="MailboxValidator.com", author_email="support@mailboxvalidator.com", description="Email verification module for Python using MailboxValidator API. It val...
39.6
220
0.729293
8067cbd79c8d52ed6e668b5f22fa1785482aed7a
1,583
py
Python
tests/graphql/tasks/test_task_queries.py
kids-first/kf-api-release-coordinator
52831b2de2e0ce734d567289f3b10d720bce8a9e
[ "Apache-2.0" ]
2
2018-09-12T01:39:05.000Z
2020-09-23T20:09:05.000Z
tests/graphql/tasks/test_task_queries.py
kids-first/kf-api-release-coordinator
52831b2de2e0ce734d567289f3b10d720bce8a9e
[ "Apache-2.0" ]
89
2018-04-20T12:41:13.000Z
2022-02-10T07:39:41.000Z
tests/graphql/tasks/test_task_queries.py
kids-first/kf-api-release-coordinator
52831b2de2e0ce734d567289f3b10d720bce8a9e
[ "Apache-2.0" ]
1
2018-08-31T18:52:42.000Z
2018-08-31T18:52:42.000Z
import pytest from coordinator.api.models import Study, Task from coordinator.api.factories.release import ReleaseFactory ALL_TASKS = """ query ( $state: String, $createdBefore: Float, $createdAfter: Float, $orderBy:String ) { allTasks( state: $state, createdBefore: $createdBefore,...
25.126984
74
0.592546
80690cfff442374625eb395771e04a54901124cb
3,469
py
Python
GuessMyNumber.py
AkeBoss-tech/GuessingGame
28fa96163f96ce0d907c5104975c2e706c483383
[ "MIT" ]
null
null
null
GuessMyNumber.py
AkeBoss-tech/GuessingGame
28fa96163f96ce0d907c5104975c2e706c483383
[ "MIT" ]
1
2020-11-09T17:30:45.000Z
2020-11-12T17:42:56.000Z
GuessMyNumber.py
AkeBoss-tech/GuessingGame
28fa96163f96ce0d907c5104975c2e706c483383
[ "MIT" ]
null
null
null
import random print("\tWelcome to 'Guess My Number!'") # This stores the previous guesses and tells us whether they are right # Running the Game game() response = input("\nPlay Again (y/n)? ").lower() # While Loop so the game keeps going whenever the player says y or Y while response == "y": g...
31.252252
83
0.545402
806a306e227f3481aa70716fefb9ae27d46b0347
2,249
py
Python
videojuegos/arcanoid/ball.py
joseluisGA/videojuegos
a8795447fd40cd8fe032cadb4f2a1bd309a6e0de
[ "MIT" ]
null
null
null
videojuegos/arcanoid/ball.py
joseluisGA/videojuegos
a8795447fd40cd8fe032cadb4f2a1bd309a6e0de
[ "MIT" ]
null
null
null
videojuegos/arcanoid/ball.py
joseluisGA/videojuegos
a8795447fd40cd8fe032cadb4f2a1bd309a6e0de
[ "MIT" ]
null
null
null
import pygame from settings import * from pygame import Vector2 import random from brick import Brick
30.808219
76
0.548244
806ab4cb70bbf55687e24d3de7904796e0abc17b
1,839
py
Python
config/tools/export.py
ghjinlei/one_mmorpg
2e1b3393a0510020137f34f274ed419e7b82e22f
[ "MIT" ]
null
null
null
config/tools/export.py
ghjinlei/one_mmorpg
2e1b3393a0510020137f34f274ed419e7b82e22f
[ "MIT" ]
null
null
null
config/tools/export.py
ghjinlei/one_mmorpg
2e1b3393a0510020137f34f274ed419e7b82e22f
[ "MIT" ]
1
2021-03-05T01:58:20.000Z
2021-03-05T01:58:20.000Z
#!/usr/bin/env python3 #coding:utf-8 import os, sys from sys import exit from utils.excel import read_excel_data import utils.path as utils_path from utils.logger import Logger os.chdir(utils_path.TOOLS_ROOT_PATH) key_map = { "cmd" : "string", "lang" : "string", "script" : "s...
25.191781
104
0.590538
806addc0f2a0d7ca87049b8d8a87409dee80e047
9,481
py
Python
src/compiler/plans.py
fritzo/pomagma
224bb6adab3fc68e2d853e6365b4b86a8f7f468f
[ "Apache-2.0" ]
10
2015-06-09T00:25:01.000Z
2019-06-11T16:07:31.000Z
src/compiler/plans.py
fritzo/pomagma
224bb6adab3fc68e2d853e6365b4b86a8f7f468f
[ "Apache-2.0" ]
25
2015-03-23T23:16:01.000Z
2017-08-29T03:35:59.000Z
src/compiler/plans.py
fritzo/pomagma
224bb6adab3fc68e2d853e6365b4b86a8f7f468f
[ "Apache-2.0" ]
null
null
null
import math from pomagma.compiler.expressions import Expression_1 from pomagma.compiler.util import log_sum_exp, memoize_make, set_with OBJECT_COUNT = 1e4 # optimize for this many obs LOGIC_COST = OBJECT_COUNT / 64.0 # perform logic on 64-bit words LOG_OBJECT_COUNT = math.log(O...
30.003165
79
0.577893
806f98a5c21a064cfb653296145b797c6a50d946
543
py
Python
ossim/synchro/urls.py
devil-r/Os-simulator
afb99d57d16ebb598a66fcd967f1d67247b4efb4
[ "MIT" ]
null
null
null
ossim/synchro/urls.py
devil-r/Os-simulator
afb99d57d16ebb598a66fcd967f1d67247b4efb4
[ "MIT" ]
null
null
null
ossim/synchro/urls.py
devil-r/Os-simulator
afb99d57d16ebb598a66fcd967f1d67247b4efb4
[ "MIT" ]
null
null
null
from django.conf.urls import url,include from django.contrib import admin from . import views app_name = 'synchro' urlpatterns =[ url(r'^semaphores/$', views.semaphores, name='semaphores'), url(r'^socket/$', views.socket, name='socket'), url(r'^deadlocks/$', views.deadlocks, name='deadlocks'), ...
38.785714
82
0.64825
806fcfc95b660907356bd62342b9bc9e14255a07
237
py
Python
pySpectralFPK/__init__.py
alanmatzumiya/Paper
d65ff68475eb72324594701d06754d0d005f6a86
[ "MIT" ]
2
2019-03-19T23:55:45.000Z
2020-06-03T19:10:51.000Z
pySpectralFPK/__init__.py
alanmatzumiya/Paper
d65ff68475eb72324594701d06754d0d005f6a86
[ "MIT" ]
null
null
null
pySpectralFPK/__init__.py
alanmatzumiya/Paper
d65ff68475eb72324594701d06754d0d005f6a86
[ "MIT" ]
null
null
null
""" Solvers define how a pde is solved, i.e., advanced in time. .. autosummary:: .. codeauthor:: Alan Matzumiya <alan.matzumiya@gmail.com> """ from typing import List from .setup_solver import FPK_solver __all__ = [ "FPK_solver" ]
18.230769
59
0.708861
8070ca9d70fe00ca55a340a59c8f92988b806d9b
1,427
py
Python
style/predict/servable/base.py
imagination-ai/kerem-side-projects-monorepo
3d9da9d57f305ac2d6a03bab3787acfbee7269ee
[ "MIT" ]
null
null
null
style/predict/servable/base.py
imagination-ai/kerem-side-projects-monorepo
3d9da9d57f305ac2d6a03bab3787acfbee7269ee
[ "MIT" ]
2
2022-01-20T15:46:39.000Z
2022-02-16T20:51:47.000Z
style/predict/servable/base.py
imagination-ai/kerem-side-projects-monorepo
3d9da9d57f305ac2d6a03bab3787acfbee7269ee
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod import dill
23.393443
76
0.641205
80723d94b3de6b981e622070fc675bae6d441510
4,108
py
Python
bot/Bot.py
Facco98/TwitchBotPy
27b4fb0f76542db68621b52ada316bf00fbf68d2
[ "MIT" ]
1
2020-05-14T02:14:10.000Z
2020-05-14T02:14:10.000Z
bot/Bot.py
Facco98/TwitchBotPy
27b4fb0f76542db68621b52ada316bf00fbf68d2
[ "MIT" ]
null
null
null
bot/Bot.py
Facco98/TwitchBotPy
27b4fb0f76542db68621b52ada316bf00fbf68d2
[ "MIT" ]
null
null
null
import websocket from threading import Thread from bot.Command import Command import time
29.342857
89
0.579357
8072fc6a4d2ad15263a6a7c0a5c6bd8b4fe8169a
790
py
Python
test_python_toolbox/test_cheat_hashing.py
hboshnak/python_toolbox
cb9ef64b48f1d03275484d707dc5079b6701ad0c
[ "MIT" ]
119
2015-02-05T17:59:47.000Z
2022-02-21T22:43:40.000Z
test_python_toolbox/test_cheat_hashing.py
hboshnak/python_toolbox
cb9ef64b48f1d03275484d707dc5079b6701ad0c
[ "MIT" ]
4
2019-04-24T14:01:14.000Z
2020-05-21T12:03:29.000Z
test_python_toolbox/test_cheat_hashing.py
hboshnak/python_toolbox
cb9ef64b48f1d03275484d707dc5079b6701ad0c
[ "MIT" ]
14
2015-03-30T06:30:42.000Z
2021-12-24T23:45:11.000Z
# Copyright 2009-2017 Ram Rachum. # This program is distributed under the MIT license. '''Testing module for `python_toolbox.abc_tools.AbstractStaticMethod`.''' import copy from python_toolbox.cheat_hashing import cheat_hash def test_cheat_hash(): '''Test `cheat_hash` on various objects.''' things = [ ...
23.235294
73
0.562025
807387b7956f8f032bd74789931a717ad7a739aa
2,374
py
Python
TikiBot/dispensing_screen.py
schuetzi99/TikiBot
cf940571af897aec048b1926b0a0b6d00997b032
[ "BSD-2-Clause" ]
null
null
null
TikiBot/dispensing_screen.py
schuetzi99/TikiBot
cf940571af897aec048b1926b0a0b6d00997b032
[ "BSD-2-Clause" ]
null
null
null
TikiBot/dispensing_screen.py
schuetzi99/TikiBot
cf940571af897aec048b1926b0a0b6d00997b032
[ "BSD-2-Clause" ]
null
null
null
try: # Python 2 from Tkinter import * # noqa except ImportError: # Python 3 from tkinter import * # noqa import time from rectbutton import RectButton from serial_connection import SerialConnection UPDATE_MS = 20 DISPLAY_MS = 125
35.432836
91
0.632266
8078d7a28563705ea00176138060393918bcd846
219
py
Python
0.1/game/maptest.py
icefoxen/games-drewfe
7606330b89e4ad37e98637e79af2c058b18112d7
[ "MIT" ]
null
null
null
0.1/game/maptest.py
icefoxen/games-drewfe
7606330b89e4ad37e98637e79af2c058b18112d7
[ "MIT" ]
null
null
null
0.1/game/maptest.py
icefoxen/games-drewfe
7606330b89e4ad37e98637e79af2c058b18112d7
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from map import * a = Map( 'test.map' ) scr = pygame.display.set_mode( (400, 300) ) a.draw( scr, 0, 0, 400, 300 ) pygame.display.flip() #a.printTileset() while True: pass
15.642857
43
0.671233
8078e354e9895b4d66d66de7d6661a57c613976b
2,743
py
Python
lib/n_queens_csp.py
ToniRV/Constraint-Satisfaction-Notebook
a3f0dbbc3b45cff8bec0fa087cdebffaf38d3a26
[ "MIT" ]
8
2018-11-20T16:35:15.000Z
2021-04-24T09:15:01.000Z
lib/n_queens_csp.py
ToniRV/Constraint-Satisfaction-Notebook
a3f0dbbc3b45cff8bec0fa087cdebffaf38d3a26
[ "MIT" ]
14
2018-11-12T21:16:04.000Z
2018-12-07T21:00:01.000Z
lib/n_queens_csp.py
ToniRV/Constraint-Satisfaction-Notebook
a3f0dbbc3b45cff8bec0fa087cdebffaf38d3a26
[ "MIT" ]
6
2019-07-02T09:04:57.000Z
2022-01-20T15:09:04.000Z
from __future__ import print_function import time import copy from lib.backtracking import backtracking_search from lib.csp import CSP def queen_constraint(A, a, B, b): """Constraint is satisfied (true) if A, B are really the same variable, or if they are not in the same row, down diagonal, or up diagonal.""" ...
37.067568
97
0.65658
807bbe6aaa16696f030c03d7692e99d63f213360
7,363
py
Python
race_service/views/race_results.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
race_service/views/race_results.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
62
2021-09-14T18:47:38.000Z
2022-03-21T22:14:20.000Z
race_service/views/race_results.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
"""Resource module for race_results resources.""" import json import logging import os from typing import List, Union from aiohttp.web import ( HTTPNotFound, HTTPUnprocessableEntity, Response, View, ) from dotenv import load_dotenv from race_service.adapters import UsersAdapter from rac...
37.566327
90
0.580877
807c5029f34b249c21ce5270b815763c5f2132a5
3,549
py
Python
01/hierarchy/company_management.py
MayaScarlet/runestone-pythonds3
9ac53482568b34e7272c122a5545a50da05b69fe
[ "MIT" ]
null
null
null
01/hierarchy/company_management.py
MayaScarlet/runestone-pythonds3
9ac53482568b34e7272c122a5545a50da05b69fe
[ "MIT" ]
null
null
null
01/hierarchy/company_management.py
MayaScarlet/runestone-pythonds3
9ac53482568b34e7272c122a5545a50da05b69fe
[ "MIT" ]
null
null
null
""" Class hierarchy for company management """ def main(): company = Company('Xamarin Ltd', 'United States') print(company) chairman = TopLevelManagement.chairman() print(chairman) ceo = TopLevelManagement.ceo() print(ceo) general_manager = MiddleManagement.general_manager() pri...
31.6875
110
0.688363
807c60f448466d06587af2768eab735c6b00629e
831
py
Python
config.example.py
isaacnoboa/balaguer_bot
1b7d61db7ebfc1b9067e6ac1762b077ed259ecb8
[ "MIT" ]
null
null
null
config.example.py
isaacnoboa/balaguer_bot
1b7d61db7ebfc1b9067e6ac1762b077ed259ecb8
[ "MIT" ]
null
null
null
config.example.py
isaacnoboa/balaguer_bot
1b7d61db7ebfc1b9067e6ac1762b077ed259ecb8
[ "MIT" ]
null
null
null
# Make sure to rename this file as "config.py" before running the bot. verbose=True api_token='0000000000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' # Enter the user ID and a readable name for each user in your group. # TODO make balaguer automatically collect user IDs. # But that's only useful if the bot actuall...
31.961538
108
0.701564
807f6be89f92fe14527544c6ac0f3f6e3bb7e50f
1,066
py
Python
server/src/service/image/i_image_controller_service.py
konrad2508/picgal
7f7822a02145fd2efa697e1c7750af9af680a3da
[ "MIT" ]
4
2021-12-31T10:06:34.000Z
2022-01-16T16:34:50.000Z
server/src/service/image/i_image_controller_service.py
konrad2508/picgal
7f7822a02145fd2efa697e1c7750af9af680a3da
[ "MIT" ]
null
null
null
server/src/service/image/i_image_controller_service.py
konrad2508/picgal
7f7822a02145fd2efa697e1c7750af9af680a3da
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from model.image.data.count_data import CountData from model.image.data.image_data import ImageData from model.image.data.tag_data import TagData from model.image.data.virtual_tag_data import VirtualTagData from model.image.request.image_modification_request import ImageModification...
34.387097
144
0.732645
807f973112c1400fd4998207bea6ad287765ac99
2,131
py
Python
Common/if_else.py
Heisenberg710/Python_Crash_Course
4303f1a54c430e9897cccef6c5fff64a655e2972
[ "Apache-2.0" ]
null
null
null
Common/if_else.py
Heisenberg710/Python_Crash_Course
4303f1a54c430e9897cccef6c5fff64a655e2972
[ "Apache-2.0" ]
null
null
null
Common/if_else.py
Heisenberg710/Python_Crash_Course
4303f1a54c430e9897cccef6c5fff64a655e2972
[ "Apache-2.0" ]
null
null
null
# if games = ['CS GO', 'wow', 'deathStranding'] for game in games: if game == 'wow': # '==' print(game.upper()) # sport = 'football' if sport == 'FOOTBALL': print('yes') else: print('No') # Nostring for game in games: if game.lower() == 'cs go': print('cs go') # for game in ga...
16.912698
102
0.563585
807f9c9ab79882e8cda374e3c06329f34a95d56f
1,299
py
Python
src/favorites_crawler/itemloaders.py
RyouMon/FavoritesCrawler
c11750ea4094cd7e4d91a0dd79c9ee21a066c0ee
[ "MIT" ]
2
2022-02-05T04:24:55.000Z
2022-02-22T23:50:23.000Z
src/favorites_crawler/itemloaders.py
RyouMon/FavoritesCrawler
c11750ea4094cd7e4d91a0dd79c9ee21a066c0ee
[ "MIT" ]
3
2022-02-22T13:35:29.000Z
2022-02-28T13:29:56.000Z
src/favorites_crawler/itemloaders.py
RyouMon/FavoritesCrawler
c11750ea4094cd7e4d91a0dd79c9ee21a066c0ee
[ "MIT" ]
null
null
null
from itemloaders import ItemLoader from itemloaders.processors import Join, Compose, MapCompose from favorites_crawler import items from favorites_crawler.processors import take_first, identity, get_nhentai_id, original_url_from_nhentai_thumb_url from favorites_crawler.processors import replace_space_with_under_scope ...
30.928571
114
0.810624
8080e39246d1d1153fe7413a6638e093c9c74917
1,330
py
Python
preprocessed_data/RGHS/Code/LabStretching.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
preprocessed_data/RGHS/Code/LabStretching.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
preprocessed_data/RGHS/Code/LabStretching.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
import cv2 from skimage.color import rgb2hsv,hsv2rgb import numpy as np from skimage.color import rgb2lab, lab2rgb from global_StretchingL import global_stretching from global_stretching_ab import global_Stretching_ab
22.931034
73
0.7
80866b9b24652869ee934797eac93607bc5366aa
386
py
Python
cursecreatortests.py
kushtrimh/curse-of-tenebrae
374ca8684debb686a651c216e2be78f449b983de
[ "BSD-2-Clause" ]
null
null
null
cursecreatortests.py
kushtrimh/curse-of-tenebrae
374ca8684debb686a651c216e2be78f449b983de
[ "BSD-2-Clause" ]
null
null
null
cursecreatortests.py
kushtrimh/curse-of-tenebrae
374ca8684debb686a651c216e2be78f449b983de
[ "BSD-2-Clause" ]
null
null
null
import unittest import mock import Tkinter from cursecreator import Application if __name__ == "__main__": unittest.main()
24.125
57
0.766839
8086a65cb78ca3eae82df3569f6ecdb2885f115e
204
py
Python
tools/check_encrypted_hash.py
airladon/ThisIGet
e54058056ed593ff1097ef4505a5ce97ea09d94b
[ "BSD-3-Clause" ]
5
2020-06-19T22:06:16.000Z
2022-02-06T17:13:14.000Z
tools/check_encrypted_hash.py
airladon/ThisIGet
e54058056ed593ff1097ef4505a5ce97ea09d94b
[ "BSD-3-Clause" ]
3
2021-03-09T00:43:58.000Z
2021-06-15T17:44:22.000Z
tools/check_encrypted_hash.py
airladon/ThisIGet
e54058056ed593ff1097ef4505a5ce97ea09d94b
[ "BSD-3-Clause" ]
null
null
null
import sys sys.path.insert(0, './app/app') from tools import decrypt, check_hash # noqa # sys.argv[1] = plain text # sys.argv[2] = hash to compare print(check_hash(sys.argv[1], decrypt(sys.argv[2])))
25.5
52
0.691176
808721236b1e32630e399cfed97544fb1b0949bc
813
py
Python
external/modbus_tk/modbus_tk/__init__.py
iconnect-iot/intel-device-resource-mgt-lib
3be2f7342b6f79836439e9712e2a36939c986760
[ "Apache-2.0" ]
2
2020-03-26T07:23:09.000Z
2020-04-19T14:20:42.000Z
external/modbus_tk/modbus_tk/__init__.py
iconnect-iot/intel-device-resource-mgt-lib
3be2f7342b6f79836439e9712e2a36939c986760
[ "Apache-2.0" ]
1
2020-06-02T04:32:15.000Z
2020-06-02T04:32:34.000Z
external/modbus_tk/modbus_tk/__init__.py
iconnect-iot/intel-device-resource-mgt-lib
3be2f7342b6f79836439e9712e2a36939c986760
[ "Apache-2.0" ]
15
2018-04-06T11:43:38.000Z
2022-02-07T03:25:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt Make possible to write modbus TCP and RTU master and...
21.394737
80
0.675277
80892851d8acc79f94eb86a198a24af8261d25bc
2,972
py
Python
utils/scripts/visualize_allocations.py
dmoham1476/glow
3de58297c0cd1ede1854e6333af212ea51605aaa
[ "Apache-2.0" ]
null
null
null
utils/scripts/visualize_allocations.py
dmoham1476/glow
3de58297c0cd1ede1854e6333af212ea51605aaa
[ "Apache-2.0" ]
null
null
null
utils/scripts/visualize_allocations.py
dmoham1476/glow
3de58297c0cd1ede1854e6333af212ea51605aaa
[ "Apache-2.0" ]
1
2018-10-07T04:27:31.000Z
2018-10-07T04:27:31.000Z
#!/usr/bin/env python import sys from PIL import Image # This script is used to visualize memory allocations in the Glow compiler. # # Usage: ./visualize.py dump.txt # # The script will dump a sequence of bitmap files that can be combined into a # video. Example: heap100123.bmp, heap heap100124.bmp, heap100125.bmp .....
29.137255
80
0.637281
808b08abd3c47131069b55ad41fa61232066f350
6,083
py
Python
src/c3nav/control/models.py
NoMoKeTo/c3nav-new
f696da7c9c875aad0505b589e7fab7c58105b0a6
[ "Apache-2.0" ]
null
null
null
src/c3nav/control/models.py
NoMoKeTo/c3nav-new
f696da7c9c875aad0505b589e7fab7c58105b0a6
[ "Apache-2.0" ]
null
null
null
src/c3nav/control/models.py
NoMoKeTo/c3nav-new
f696da7c9c875aad0505b589e7fab7c58105b0a6
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from typing import Dict from django.conf import settings from django.contrib.auth.models import User from django.core.cache import cache from django.db import models, transaction from django.utils.functional import cached_property, lazy from django.utils.translation import gettext...
39.75817
117
0.662173
808b93fe478dc64ffdbfa77f3e6535748754649c
1,296
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/EGL/MESA/drm_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/EGL/MESA/drm_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/EGL/MESA/drm_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.EGL import _types as _cs # End users want this... from OpenGL.raw.EGL._types import * from OpenGL.raw.EGL import _errors from OpenGL.constant import Constant as _C imp...
48
114
0.828704
808d4a310cf29c6e0b82a31c24c4054f29726254
7,866
py
Python
pysnmp/hlapi/v1arch/asyncore/ntforg.py
RKinsey/pysnmp
96b5cf31e2f5d19f34d0dd1075014c488f6a5789
[ "BSD-2-Clause" ]
492
2016-03-13T11:03:13.000Z
2022-03-21T02:52:57.000Z
pysnmp/hlapi/v1arch/asyncore/ntforg.py
bartomo/pysnmp
becd15c79c9a6b5696928ecd50bf5cca8b1770a1
[ "BSD-2-Clause" ]
372
2016-03-29T22:42:05.000Z
2022-03-26T10:28:25.000Z
pysnmp/hlapi/v1arch/asyncore/ntforg.py
bartomo/pysnmp
becd15c79c9a6b5696928ecd50bf5cca8b1770a1
[ "BSD-2-Clause" ]
197
2016-03-13T11:01:54.000Z
2022-03-07T19:52:15.000Z
# # This file is part of pysnmp software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # from pysnmp.hlapi.v1arch.auth import * from pysnmp.hlapi.v1arch.asyncore import * from pysnmp.hlapi.varbinds import * from pysnmp.smi.rfc1902 import * from pysnmp....
36.929577
147
0.65281
808dfedaabff9b3164170b6fb76d7eb702131fc0
2,066
py
Python
Temperatura.py
russeleiser/ProjectTemperature
d1b07fe253f2e916a23fbd94471e2e053eac4f64
[ "Apache-2.0" ]
null
null
null
Temperatura.py
russeleiser/ProjectTemperature
d1b07fe253f2e916a23fbd94471e2e053eac4f64
[ "Apache-2.0" ]
null
null
null
Temperatura.py
russeleiser/ProjectTemperature
d1b07fe253f2e916a23fbd94471e2e053eac4f64
[ "Apache-2.0" ]
null
null
null
print ("--------------------------------------------------------") print ("-------------Bienvenido a la Temperatura----------------") print ("--------------------------------------------------------\n") x = 0 while x < 10000: print ("Elige tus opciones:") print ("(1) Convertir de C a F") print ("(2) Conv...
31.784615
121
0.466602
808e7027c492b712a045440e3d09d2fd697f8aca
1,875
py
Python
scripts/pretrain_n_times.py
gabrielasuchopar/info-nas
a786015c9d876d73d24dc6e7e07b36fb625f8861
[ "Apache-2.0" ]
null
null
null
scripts/pretrain_n_times.py
gabrielasuchopar/info-nas
a786015c9d876d73d24dc6e7e07b36fb625f8861
[ "Apache-2.0" ]
null
null
null
scripts/pretrain_n_times.py
gabrielasuchopar/info-nas
a786015c9d876d73d24dc6e7e07b36fb625f8861
[ "Apache-2.0" ]
null
null
null
import random import click import json import os import numpy as np import torch from info_nas.config import local_dataset_cfg, load_json_cfg from info_nas.datasets.networks.pretrained import pretrain_network_dataset from nasbench import api from nasbench_pytorch.datasets.cifar10 import prepare_dataset from scripts....
30.241935
95
0.6992
808f116d87b2c8fed3cb8bf2929ebbf77954dd8e
5,574
py
Python
python/dazl/pretty/_module_builder.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
8
2019-09-08T09:41:03.000Z
2022-02-19T12:54:30.000Z
python/dazl/pretty/_module_builder.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
55
2019-05-30T23:00:31.000Z
2022-01-24T01:51:32.000Z
python/dazl/pretty/_module_builder.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
9
2019-06-30T18:15:27.000Z
2021-12-03T10:15:27.000Z
# Copyright (c) 2017-2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 from typing import Dict, List, Sequence from ..damlast.daml_lf_1 import DottedName, Module from ..damlast.util import module_name, package_ref from ..model.types import ModuleR...
48.469565
161
0.502512
808f6c2c11d842f902a2f33f31bb54427134e845
2,097
py
Python
test/Test.py
AmeCode/DyMatByJoerg-Raedler
9adb99ad6baa12b9f6c3bdb9a5fe76720f4c2de0
[ "BSD-2-Clause" ]
8
2016-05-18T16:08:07.000Z
2019-12-09T15:58:07.000Z
test/Test.py
AmeCode/DyMatByJoerg-Raedler
9adb99ad6baa12b9f6c3bdb9a5fe76720f4c2de0
[ "BSD-2-Clause" ]
1
2021-11-16T17:06:19.000Z
2021-11-18T13:49:30.000Z
test/Test.py
AmeCode/DyMatByJoerg-Raedler
9adb99ad6baa12b9f6c3bdb9a5fe76720f4c2de0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2011, Joerg Raedler (Berlin, Germany) # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notic...
38.833333
82
0.723891
8090b7d8a4222966bc351912bad35d98958fbb28
11,473
py
Python
httptesting/main.py
HttpTesting/pyhttp
5fd9deddbd920b905297ec64215d502d41d48d2c
[ "Apache-2.0" ]
6
2019-08-09T06:50:50.000Z
2021-01-29T02:13:58.000Z
httptesting/main.py
HttpTesting/pyhttp
5fd9deddbd920b905297ec64215d502d41d48d2c
[ "Apache-2.0" ]
1
2019-08-16T04:58:43.000Z
2019-08-16T04:58:43.000Z
httptesting/main.py
HttpTesting/pyhttp
5fd9deddbd920b905297ec64215d502d41d48d2c
[ "Apache-2.0" ]
3
2020-11-26T00:58:22.000Z
2021-02-21T14:46:39.000Z
# ######################################################## # sys.path, import sys import os curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] sys.path.insert(0, rootPath) # ######################################################## import shutil import time from httptesting.library...
29.04557
97
0.546239
8094ccd0dc06024e1e4323bc6b4fa0cfcef4fd31
346
py
Python
setup.py
smok-serwis/longshot-python
9671d60d77e12d2cb6bc2530d05f55d4bafa8e66
[ "MIT" ]
null
null
null
setup.py
smok-serwis/longshot-python
9671d60d77e12d2cb6bc2530d05f55d4bafa8e66
[ "MIT" ]
null
null
null
setup.py
smok-serwis/longshot-python
9671d60d77e12d2cb6bc2530d05f55d4bafa8e66
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='longshot', version='0.1alpha', description='SMOK client connectivity library', author='smok-serwis.pl', author_email='admin@smok.co', url='https://github.com/smok-serwis/longshot-python', packages=['longshot', 'long...
28.833333
59
0.66763
80959fb4e1855167032241c2b29b45d563eacafd
1,799
py
Python
users/tests/test_delete_user.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
1
2022-01-30T10:50:14.000Z
2022-01-30T10:50:14.000Z
users/tests/test_delete_user.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
47
2022-02-02T22:07:28.000Z
2022-03-30T13:53:37.000Z
users/tests/test_delete_user.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from users.models import CustomUser
33.943396
82
0.696498
8095bb749718d47f183223964eb45c85dd3110bd
1,323
py
Python
sphinxcontrib/needs/builder.py
tlovett/sphinxcontrib-needs
41794403266deb6a4f7ec07bb8297abb0ddc57b1
[ "MIT" ]
null
null
null
sphinxcontrib/needs/builder.py
tlovett/sphinxcontrib-needs
41794403266deb6a4f7ec07bb8297abb0ddc57b1
[ "MIT" ]
null
null
null
sphinxcontrib/needs/builder.py
tlovett/sphinxcontrib-needs
41794403266deb6a4f7ec07bb8297abb0ddc57b1
[ "MIT" ]
null
null
null
from sphinx.builders import Builder from sphinxcontrib.needs.utils import NeedsList import sphinx from pkg_resources import parse_version sphinx_version = sphinx.__version__ if parse_version(sphinx_version) >= parse_version("1.6"): from sphinx.util import logging else: import logging
24.962264
70
0.646259
8097ac06bd41972aee8ea1d14c4c9dcc3e93c68f
3,976
py
Python
usercodex/plugins/powertools.py
ipindanger/Codex-z
1cedebd4352e4adb914b40a219bbda752c9b39d7
[ "BSD-3-Clause" ]
2
2021-08-30T05:44:14.000Z
2021-09-13T06:04:21.000Z
usercodex/plugins/powertools.py
ipindanger/Codex-z
1cedebd4352e4adb914b40a219bbda752c9b39d7
[ "BSD-3-Clause" ]
null
null
null
usercodex/plugins/powertools.py
ipindanger/Codex-z
1cedebd4352e4adb914b40a219bbda752c9b39d7
[ "BSD-3-Clause" ]
1
2021-09-26T13:17:29.000Z
2021-09-26T13:17:29.000Z
import sys from asyncio.exceptions import CancelledError from time import sleep from usercodex import codex from ..core.logger import logging from ..core.managers import edit_or_reply from ..sql_helper.global_collection import ( add_to_collectionlist, del_keyword_collectionlist, get_collectionlist_items, ...
31.808
141
0.642354
8098c90d9973448cc9044622db68c84654d5a0ef
7,309
py
Python
MC_vis_histogram.py
FloweryK/Neutrino-vertex-reconstruction
29650df90a4a82a27235d250a9213df5d2bbf4ec
[ "Apache-2.0" ]
2
2020-01-28T20:07:44.000Z
2020-04-16T16:31:45.000Z
MC_vis_histogram.py
FloweryK/vertex-reconstruction
29650df90a4a82a27235d250a9213df5d2bbf4ec
[ "Apache-2.0" ]
1
2022-03-12T00:11:12.000Z
2022-03-12T00:11:12.000Z
MC_vis_histogram.py
FloweryK/Neutrino-vertex-reconstruction
29650df90a4a82a27235d250a9213df5d2bbf4ec
[ "Apache-2.0" ]
1
2020-04-16T16:32:00.000Z
2020-04-16T16:32:00.000Z
from utils import load, save, path_list, DEAD_PMTS import nets import torch import numpy as np import pandas as pd from scipy import interpolate import matplotlib.pyplot as plt from matplotlib.ticker import PercentFormatter from itertools import repeat from multiprocessing import Pool if __name__ == '__main__'...
32.340708
103
0.556848
8099c71a5b46437ba6242c03e20101234e7abce7
1,481
py
Python
py/annotate.py
Capstone-Projects-2019-Fall/TAG-Local
088c4f36ff934b5d82fc470d1110f52f6d348070
[ "MIT" ]
null
null
null
py/annotate.py
Capstone-Projects-2019-Fall/TAG-Local
088c4f36ff934b5d82fc470d1110f52f6d348070
[ "MIT" ]
2
2021-01-28T20:25:45.000Z
2021-05-10T19:38:59.000Z
py/annotate.py
Capstone-Projects-2019-Fall/TAG-Local
088c4f36ff934b5d82fc470d1110f52f6d348070
[ "MIT" ]
null
null
null
import json import argparse import sys import spacy def main(model, raw_data): data = json.loads(raw_data) nlp = spacy.load(model) print("Loaded model from: '%s'" % model) docs = [] for d in data: doc = nlp(d['text']) return_data = [] for ent in doc.ents: anno...
25.982456
92
0.613774
809ae1f39dc9d7fac5d194516d317497caa9edc2
1,881
py
Python
tests/model_test.py
jicewarwick/AShareData
13c78602fe00a5326f421c8a8003f3889492e6dd
[ "MIT" ]
30
2019-09-18T07:26:05.000Z
2022-03-17T11:15:47.000Z
tests/model_test.py
jicewarwick/Tushare2MySQL
13c78602fe00a5326f421c8a8003f3889492e6dd
[ "MIT" ]
2
2019-12-11T02:45:58.000Z
2020-12-21T10:41:43.000Z
tests/model_test.py
jicewarwick/Tushare2MySQL
13c78602fe00a5326f421c8a8003f3889492e6dd
[ "MIT" ]
9
2019-10-22T09:00:14.000Z
2022-02-02T02:21:31.000Z
import datetime as dt import unittest from AShareData import set_global_config from AShareData.model import * if __name__ == '__main__': unittest.main()
40.891304
98
0.641148
809afc40f2a771818d0d0cf20f2537175ded1cf9
5,962
py
Python
quantifying-aliasing/torch_util.py
antonior92/aliasing-in-cnns
c41d7451e8af0cda0d5f8d4444eb0fbb433650bb
[ "MIT" ]
3
2021-06-09T10:12:23.000Z
2022-01-13T08:38:21.000Z
quantifying-aliasing/torch_util.py
antonior92/aliasing-in-cnns
c41d7451e8af0cda0d5f8d4444eb0fbb433650bb
[ "MIT" ]
null
null
null
quantifying-aliasing/torch_util.py
antonior92/aliasing-in-cnns
c41d7451e8af0cda0d5f8d4444eb0fbb433650bb
[ "MIT" ]
null
null
null
import torch from collections.abc import Iterable def _get_layers(model, all_layers=None, all_names=None, top_name=None, fn=None, sep='_'): """Auxiliar function. Recursive method for getting all in the model for which `fn(layer)=True`.""" if all_names is None: all_names = [] if all_layers is None:...
40.013423
106
0.616068
809b18b1d50940a472d99838108c97ff7972ad17
1,079
py
Python
HorribleConky.py
WolfgangAxel/ConkyConfigs
a437fd91761872202f90c0dab36e1c050a017054
[ "MIT" ]
1
2016-02-12T11:52:10.000Z
2016-02-12T11:52:10.000Z
HorribleConky.py
WolfgangAxel/ConkyConfigs
a437fd91761872202f90c0dab36e1c050a017054
[ "MIT" ]
null
null
null
HorribleConky.py
WolfgangAxel/ConkyConfigs
a437fd91761872202f90c0dab36e1c050a017054
[ "MIT" ]
null
null
null
#!/usr/bin/python from lxml import html import requests """ Enter HorribleSubs's title for the shows you watch in quotes followed by a comma, then hit enter to add another show. When all of your watched shows are entered, put the ending bracket. EX: MYSHOWS = ["Bananya", "New Game", "Kono Bijutsubu ni wa Mondai ga ...
21.156863
72
0.658943
809cd1e9b18d3c534a6711685a3e152ddbafdb24
8,517
py
Python
appengine/components/components/endpoints_webapp2/partial.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
appengine/components/components/endpoints_webapp2/partial.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
appengine/components/components/endpoints_webapp2/partial.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Partial response utilities for an Endpoints v1 over webapp2 service. Grammar of a fields partial response string: fields: selector [,select...
29.884211
80
0.656921
809d1a480aa05cc6e8c44d78d1263f97f33db820
312
py
Python
Python/02-Django/01-Try-Django/Challenges/01-Getting-Started/03/mainurls.py
pabhd3/Code-School
5115c1bdc1e99ea667bdc942667342123ae3929a
[ "MIT" ]
null
null
null
Python/02-Django/01-Try-Django/Challenges/01-Getting-Started/03/mainurls.py
pabhd3/Code-School
5115c1bdc1e99ea667bdc942667342123ae3929a
[ "MIT" ]
null
null
null
Python/02-Django/01-Try-Django/Challenges/01-Getting-Started/03/mainurls.py
pabhd3/Code-School
5115c1bdc1e99ea667bdc942667342123ae3929a
[ "MIT" ]
null
null
null
# Python # Django # Try Django # Getting Started (Level 1) # Challenge 03 - Refactor the existing URL Dispatchers from django.conf.urls import url from . import views urlpatterns = [ # TODO: Add a url() object whose regex parameter takes an empty path that # terminates, and goes to views.home ]
24
78
0.711538
809ee11b7cac20d59b1a576eee070e9b5073a1ab
521
py
Python
vmraid/patches/v13_0/add_switch_theme_to_navbar_settings.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v13_0/add_switch_theme_to_navbar_settings.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v13_0/add_switch_theme_to_navbar_settings.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import vmraid
24.809524
68
0.723608
809ef4ffa07e480d7b2e767240e3be82449c7ee9
82
py
Python
Python/04. Sets/006. Set union() Operation.py
stonehengee/HackerrankPractice
ec052e7447391e40d1919cf0b641ff5023da3da3
[ "MIT" ]
null
null
null
Python/04. Sets/006. Set union() Operation.py
stonehengee/HackerrankPractice
ec052e7447391e40d1919cf0b641ff5023da3da3
[ "MIT" ]
null
null
null
Python/04. Sets/006. Set union() Operation.py
stonehengee/HackerrankPractice
ec052e7447391e40d1919cf0b641ff5023da3da3
[ "MIT" ]
null
null
null
# Problem: https://www.hackerrank.com/challenges/py-set-union/problem # Score: 10
27.333333
69
0.756098
809f0a2dcf94026faf4117b1a4863d6f038ab4bf
137
py
Python
fun/vowel_counter.py
ahmedelq/PythonicAlgorithms
ce10dbb6e1fd0ea5c922a932b0f920236aa411bf
[ "MIT" ]
null
null
null
fun/vowel_counter.py
ahmedelq/PythonicAlgorithms
ce10dbb6e1fd0ea5c922a932b0f920236aa411bf
[ "MIT" ]
null
null
null
fun/vowel_counter.py
ahmedelq/PythonicAlgorithms
ce10dbb6e1fd0ea5c922a932b0f920236aa411bf
[ "MIT" ]
null
null
null
print(count_vowels('Hello world'))
19.571429
40
0.605839
809f5c8d05928489dbd0063155d53bd8866d8342
75,667
py
Python
Lib/site-packages/OCC/Convert.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/OCC/Convert.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
1
2022-03-17T16:46:04.000Z
2022-03-17T16:46:04.000Z
Lib/site-packages/OCC/Convert.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.1 # # 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 if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _Conver...
48.226259
2,029
0.748173
80a0908852b7d407afbc7c7d5928b94ad14fee04
9,608
py
Python
GestureAgents/AppRecognizer.py
chaosct/GestureAgents
9ec0adb1e59bf995d5808431edd4cb8bf8907728
[ "MIT" ]
1
2015-01-22T10:42:09.000Z
2015-01-22T10:42:09.000Z
GestureAgents/AppRecognizer.py
chaosct/GestureAgents
9ec0adb1e59bf995d5808431edd4cb8bf8907728
[ "MIT" ]
null
null
null
GestureAgents/AppRecognizer.py
chaosct/GestureAgents
9ec0adb1e59bf995d5808431edd4cb8bf8907728
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from GestureAgents.Recognizer import Recognizer, newHypothesis import copy from GestureAgents.Agent import Agent from GestureAgents.Events import Event
33.245675
96
0.584513
80a09b1bd192800d93bd52bdbf72daf90e53bc85
1,376
py
Python
Tools/_create_model.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
null
null
null
Tools/_create_model.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
1
2020-06-03T13:54:29.000Z
2020-06-03T13:54:29.000Z
Tools/_create_model.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/11/1 11:33 # @Author : Peter # @Des : model # @File : _create_model.py # @Software: PyCharm import os import re # fp = "C:\\Users\\billsteve\\Desktop\\tmp\\" fp = "../Model/SqlAlchemy/T.py" link = "sqlacodegen mysql+pymysql://root:HBroot2...
45.866667
123
0.704215
80a31b978430a03712aa6e4c30f664c12e4e5cee
44
py
Python
stdplugins/__init__.py
ppppspsljdhdd/Pepe
1e57825ddb0ab3ba15a19cad0ecfbf2622f6b851
[ "Apache-2.0" ]
20
2020-01-25T05:08:26.000Z
2022-01-18T07:37:53.000Z
stdplugins/__init__.py
ishaizz/PepeBot
7440cadc8228106d221fc8e436a0809a86be5159
[ "Apache-2.0" ]
15
2019-11-07T07:53:56.000Z
2022-01-23T09:21:17.000Z
stdplugins/__init__.py
ishaizz/PepeBot
7440cadc8228106d221fc8e436a0809a86be5159
[ "Apache-2.0" ]
62
2019-10-20T06:35:19.000Z
2021-01-23T17:26:05.000Z
from uniborg import * from userbot import *
14.666667
21
0.772727
80a43ce3d179c95872aebbda4deee5d9f217f5de
8,035
py
Python
CAAPR/CAAPR_AstroMagic/PTS/pts/evolve/FunctionSlot.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
7
2016-05-20T21:56:39.000Z
2022-02-07T21:09:48.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/evolve/FunctionSlot.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2019-03-21T16:10:04.000Z
2019-03-22T17:21:56.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/evolve/FunctionSlot.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 ** # ***************************************************************** ## ...
30.903846
99
0.511886
80a5408b335eed74b00a7bd72beabf1350c963ce
4,010
py
Python
test_spelling_corrector.py
mustafaKus/spellcheck
11f6f923b1427176781bd39cba9aa5d14130332d
[ "MIT" ]
6
2020-12-20T07:22:08.000Z
2022-02-02T07:14:36.000Z
test_spelling_corrector.py
mustafaKus/spellcheck
11f6f923b1427176781bd39cba9aa5d14130332d
[ "MIT" ]
null
null
null
test_spelling_corrector.py
mustafaKus/spellcheck
11f6f923b1427176781bd39cba9aa5d14130332d
[ "MIT" ]
null
null
null
"""Implements the test class for the spelling corrector""" import json import logging import os import sys import unittest from unittest import TestCase from spelling_corrector import NorvigCorrector, SymmetricDeleteCorrector if __name__ == '__main__': logging.basicConfig(stream=sys.stdout, level=logging.DEBUG...
55.694444
113
0.684289
80a7c3aa2f40f63c3545157bf90494bd8510acf2
5,127
py
Python
censusreporter/apps/census/urls.py
Durellg/censusreporter
c006c2f1c67fd29086fe532974f1eb57e70a0e2c
[ "MIT" ]
null
null
null
censusreporter/apps/census/urls.py
Durellg/censusreporter
c006c2f1c67fd29086fe532974f1eb57e70a0e2c
[ "MIT" ]
null
null
null
censusreporter/apps/census/urls.py
Durellg/censusreporter
c006c2f1c67fd29086fe532974f1eb57e70a0e2c
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url, patterns, include from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.http import HttpResponse from django.views.decorators.cache import cache_page from django.views.generic.base import TemplateView, RedirectVi...
28.17033
113
0.549639
80a7c4a196f3e27707a6f4deb6d5d49fa769fe9a
722
py
Python
Pythonista/Editor/cambiar.py
walogo/Pythonista-scripts
760451a0cdbe5dd76008a4e616d74191385bbd8b
[ "MIT" ]
2
2019-04-24T19:25:55.000Z
2019-05-04T11:27:54.000Z
Pythonista/Editor/cambiar.py
shoriwe/Tools
760451a0cdbe5dd76008a4e616d74191385bbd8b
[ "MIT" ]
4
2019-11-02T16:12:41.000Z
2020-01-19T10:10:23.000Z
Pythonista/Editor/cambiar.py
walogo/Tools
760451a0cdbe5dd76008a4e616d74191385bbd8b
[ "MIT" ]
1
2020-10-07T17:49:09.000Z
2020-10-07T17:49:09.000Z
from re import search from editor import get_path replace()
21.878788
73
0.638504
80abafe50ec268ef5c6ba2106a574b5b6aeb135a
2,036
py
Python
example.py
Tobi-De/qosic-sdk
a9c7a17c3a328883dfd033080175c64fb8c8fd32
[ "MIT" ]
1
2022-03-12T13:12:17.000Z
2022-03-12T13:12:17.000Z
example.py
Tobi-De/qosic-sdk
a9c7a17c3a328883dfd033080175c64fb8c8fd32
[ "MIT" ]
247
2021-05-12T08:52:46.000Z
2022-03-30T15:22:06.000Z
example.py
Tobi-De/qosic-sdk
a9c7a17c3a328883dfd033080175c64fb8c8fd32
[ "MIT" ]
null
null
null
import phonenumbers from dotenv import dotenv_values from qosic import Client, MtnConfig, MTN, MOOV, OPERATION_CONFIRMED from qosic.exceptions import ( InvalidCredentialsError, InvalidClientIdError, ServerError, RequestError, ) config = dotenv_values(".env") moov_client_id = config.get("MOOV_CLIENT_I...
29.085714
113
0.655697
80ae30ede933b26169568f957d647578f83c393b
4,131
py
Python
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/my_version_kevinml/Preprocessing_CategoricalData.py
kevinLCG/machinelearning-az
54e3090275a3fc419aad17caadc6a47a71dcd3d4
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/my_version_kevinml/Preprocessing_CategoricalData.py
kevinLCG/machinelearning-az
54e3090275a3fc419aad17caadc6a47a71dcd3d4
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/my_version_kevinml/Preprocessing_CategoricalData.py
kevinLCG/machinelearning-az
54e3090275a3fc419aad17caadc6a47a71dcd3d4
[ "MIT" ]
null
null
null
#!/home/kevinml/anaconda3/bin/python3.7 # -*- coding: utf-8 -*- """ Created on Tue Dec 10 11:47:39 2019 @author: kevinml Version Python: 3.7 """ # Pre Procesado - Datos Categricos ########################################################### # Input Dataset # ###################...
41.727273
150
0.639797
80ae4466a6cac93d4e909355cee631a4f38e2bce
3,120
py
Python
docker_registry_client_async/specs.py
GitHK/docker-registry-client-async
384b1b7f7abcda55258028d930b45054ab03f6c4
[ "Apache-2.0" ]
2
2021-10-13T00:25:23.000Z
2022-02-23T22:22:33.000Z
docker_registry_client_async/specs.py
GitHK/docker-registry-client-async
384b1b7f7abcda55258028d930b45054ab03f6c4
[ "Apache-2.0" ]
17
2020-07-18T21:58:51.000Z
2022-03-31T06:53:30.000Z
docker_registry_client_async/specs.py
GitHK/docker-registry-client-async
384b1b7f7abcda55258028d930b45054ab03f6c4
[ "Apache-2.0" ]
4
2020-09-25T22:12:05.000Z
2022-02-15T06:26:50.000Z
#!/usr/bin/env python # pylint: disable=too-few-public-methods """Reusable string literals."""
34.285714
101
0.721154
80b16e3010e719ac0aedcd4a3f1aa074b37a447d
1,283
py
Python
test/toxiproxy_api_test.py
ondrejsika/toxiproxy-python
0ad2533bae0712fbc835b9aa37869f8cd1c3343c
[ "MIT" ]
36
2016-08-03T08:58:20.000Z
2022-01-25T07:42:41.000Z
test/toxiproxy_api_test.py
ondrejsika/toxiproxy-python
0ad2533bae0712fbc835b9aa37869f8cd1c3343c
[ "MIT" ]
3
2017-09-13T17:36:59.000Z
2021-02-08T18:37:22.000Z
test/toxiproxy_api_test.py
ondrejsika/toxiproxy-python
0ad2533bae0712fbc835b9aa37869f8cd1c3343c
[ "MIT" ]
17
2017-04-27T14:19:53.000Z
2022-02-25T06:55:16.000Z
from unittest import TestCase import requests from toxiproxy.api import validate_response from toxiproxy.exceptions import NotFound, ProxyExists
30.547619
72
0.643804
80b70820208ed5aa86523b3f57937420df90eabf
1,777
py
Python
integritybackend/geocoder.py
starlinglab/integrity-backend
8d2a0640d7a9f66c97d180ad76aedf968dfa43e6
[ "MIT" ]
1
2022-03-18T16:11:31.000Z
2022-03-18T16:11:31.000Z
integritybackend/geocoder.py
starlinglab/starling-integrity-api
c39161576e852afbffe3053af468acf58207b5ae
[ "MIT" ]
37
2022-01-17T22:07:17.000Z
2022-03-31T22:11:16.000Z
integritybackend/geocoder.py
starlinglab/starling-integrity-api
c39161576e852afbffe3053af468acf58207b5ae
[ "MIT" ]
null
null
null
import geocoder from .log_helper import LogHelper _logger = LogHelper.getLogger()
34.173077
106
0.593697
80b7514de1b311404a81251566b500133863dc16
1,195
py
Python
dsa/patterns/binary_search/number_range.py
bksahu/dsa
4b36abbb3e00ce449c435c44260316f46d6d35ec
[ "MIT" ]
null
null
null
dsa/patterns/binary_search/number_range.py
bksahu/dsa
4b36abbb3e00ce449c435c44260316f46d6d35ec
[ "MIT" ]
4
2019-10-02T14:24:54.000Z
2020-03-26T07:06:15.000Z
dsa/patterns/binary_search/number_range.py
bksahu/dsa
4b36abbb3e00ce449c435c44260316f46d6d35ec
[ "MIT" ]
2
2019-10-02T15:57:51.000Z
2020-04-10T07:22:06.000Z
""" Given an array of numbers sorted in ascending order, find the range of a given number key. The range of the key will be the first and last position of the key in the array. Write a function to return the range of the key. If the key is not present return [-1, -1]. Example 1: Input: [4, 6, 6, 6, 9], key = 6 Outpu...
24.895833
95
0.534728
80b8628f26ab382aefa545b0fb3740e9e53b5e22
70
py
Python
not_tf_opt/__init__.py
gergely-flamich/not-tf-opt
18e2c0024f1179a51190751d22ba4eb8b25bf3db
[ "MIT" ]
null
null
null
not_tf_opt/__init__.py
gergely-flamich/not-tf-opt
18e2c0024f1179a51190751d22ba4eb8b25bf3db
[ "MIT" ]
null
null
null
not_tf_opt/__init__.py
gergely-flamich/not-tf-opt
18e2c0024f1179a51190751d22ba4eb8b25bf3db
[ "MIT" ]
null
null
null
from .variables import * from .optimize import * from .utils import *
17.5
24
0.742857
80b90025f8cfff3aebe55376e817e68ada7a4f80
3,256
py
Python
models/__init__.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
models/__init__.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
models/__init__.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import cPickle
28.313043
110
0.585381
80b986d0b98e79475549e867f1ac605bda0845f7
917
py
Python
foodapp/urls.py
gauravmahale47/Foodstore
2e43cee54e8dc418e3aa1d572085d100727ff904
[ "BSD-3-Clause" ]
null
null
null
foodapp/urls.py
gauravmahale47/Foodstore
2e43cee54e8dc418e3aa1d572085d100727ff904
[ "BSD-3-Clause" ]
null
null
null
foodapp/urls.py
gauravmahale47/Foodstore
2e43cee54e8dc418e3aa1d572085d100727ff904
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from foodapp.views import * from django.views.generic.base import TemplateView from .views import FoodCreateView,FoodListView from django.conf import settings from django.conf.urls.static import static ''' TemplateView is built-in django Class Based view Class which is used to ren...
43.666667
82
0.735005
80ba554d90a825fd530cdbabac219c88bedec313
5,697
py
Python
22/a.py
Unlink/AdventOfCode2018
147fb0e9f7b6894688813f237d0e227390a44dbd
[ "MIT" ]
null
null
null
22/a.py
Unlink/AdventOfCode2018
147fb0e9f7b6894688813f237d0e227390a44dbd
[ "MIT" ]
null
null
null
22/a.py
Unlink/AdventOfCode2018
147fb0e9f7b6894688813f237d0e227390a44dbd
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw # depth = 6084 # target = (14,709) # depth = 510 # target = (10,10) # depth = 4848 # target = (15, 700) depth = 9171 target = (7,721) # depth = 11820 # target = (7,782) buffer = 50 allowedTools = { '.': ["T", "C"], '=': ["", "C"], '|': ["", "T"] } cave = [[0 f...
30.303191
143
0.530981
80bcd2a34aea988c4d677e2569bb88d99ffaf320
1,496
py
Python
wordBreak3Ways.py
ezquire/python-challenges
c953633eb211bb315eca4ed54b7bf837588dc36f
[ "MIT" ]
null
null
null
wordBreak3Ways.py
ezquire/python-challenges
c953633eb211bb315eca4ed54b7bf837588dc36f
[ "MIT" ]
null
null
null
wordBreak3Ways.py
ezquire/python-challenges
c953633eb211bb315eca4ed54b7bf837588dc36f
[ "MIT" ]
null
null
null
word = "papapapokerface" dic = {"pa", "poker", "face"} print(wordBreakDP(word, dic)) print(wordBreakRecursive(word, dic)) print(wordBreakMemo(word, dic))
28.769231
89
0.566845
80bd0f0505c7035471b773e6bad75b98a0740f07
5,931
py
Python
src/embedding/utilslib/baidu_spider_threads.py
mykiscool/DeepCamera
e77cdbf45ab09895f315aa299bd6ac87b3bb6d66
[ "MIT" ]
914
2019-03-07T14:57:45.000Z
2022-03-31T14:54:15.000Z
src/embedding/utilslib/baidu_spider_threads.py
mykiscool/DeepCamera
e77cdbf45ab09895f315aa299bd6ac87b3bb6d66
[ "MIT" ]
45
2019-03-11T09:53:37.000Z
2022-03-30T21:59:37.000Z
src/embedding/utilslib/baidu_spider_threads.py
mykiscool/DeepCamera
e77cdbf45ab09895f315aa299bd6ac87b3bb6d66
[ "MIT" ]
148
2019-03-08T00:40:28.000Z
2022-03-30T09:22:18.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import sys import re import urllib import json import socket import time import multiprocessing from multiprocessing.dummy import Pool from multiprocessing import Queue import requests timeout = 5 socket.setdefaulttimeout(timeout) # def __resolve_jso...
31.547872
131
0.548137
80be21d5757f74fcf164345d78cb45a0c4101894
7,377
py
Python
cgi-bin/pybrowser.py
fanuware/pybrowser
910cebaee45524248c18d86605ba9e7f1b862c47
[ "MIT" ]
null
null
null
cgi-bin/pybrowser.py
fanuware/pybrowser
910cebaee45524248c18d86605ba9e7f1b862c47
[ "MIT" ]
null
null
null
cgi-bin/pybrowser.py
fanuware/pybrowser
910cebaee45524248c18d86605ba9e7f1b862c47
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import cgi, os import shutil from userlogger import UserLogger import templates import mimetypes from stat import S_IEXEC ################################################## # main # create instance of field storage form = cgi.FieldStorage() if "path" in form: filepath = form.getvalue("...
31.525641
100
0.590891
80be84948c857c226b842731966f51f313b423cf
498
py
Python
prog_python/strings/sustring_2.py
TCGamer123/python
82ad1f84b52d6cc7253fb4c5522ae8389824930a
[ "MIT" ]
1
2022-03-08T13:29:59.000Z
2022-03-08T13:29:59.000Z
prog_python/strings/sustring_2.py
TCGamer123/python
82ad1f84b52d6cc7253fb4c5522ae8389824930a
[ "MIT" ]
null
null
null
prog_python/strings/sustring_2.py
TCGamer123/python
82ad1f84b52d6cc7253fb4c5522ae8389824930a
[ "MIT" ]
null
null
null
s = "Ol, mundo!"; print(s[::2]); # Imprime os caracteres nos ndices pares. print(s[1::2]) # Imprime os caracteres nos ndices mpares. frase = "Mundo mundo vasto mundo" print(frase[::-1]); #inverte a frase; # Forma mais avanada de formatao de strings frase_2 = "Um tringulo de base igual a {0} e altura igual a {1} poss...
29.294118
104
0.702811
80bf37aa9aad7edddb690a9919912a42c6115218
2,742
py
Python
pymonad/maybe/maybe_test.py
Wildhoney/Pymonad
177989b3d0f362c3bf3af962d89306309ff000c3
[ "MIT" ]
null
null
null
pymonad/maybe/maybe_test.py
Wildhoney/Pymonad
177989b3d0f362c3bf3af962d89306309ff000c3
[ "MIT" ]
null
null
null
pymonad/maybe/maybe_test.py
Wildhoney/Pymonad
177989b3d0f362c3bf3af962d89306309ff000c3
[ "MIT" ]
null
null
null
import unittest from . import Nothing, Just a = Just('Adam') b = Nothing()
37.054054
78
0.591174
80bf4db9002340c8afb22321e1adb5cd22a14a77
7,492
py
Python
ryu/gui/models/topology.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-04-23T11:11:46.000Z
2020-11-04T20:14:17.000Z
ryu/gui/models/topology.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
null
null
null
ryu/gui/models/topology.py
isams1/Thesis
dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3
[ "Apache-2.0" ]
3
2019-10-03T09:31:42.000Z
2021-05-15T04:41:12.000Z
import logging import json from socket import error as SocketError from httplib import HTTPException import gevent import gevent.monkey gevent.monkey.patch_all() from ryu.lib.dpid import str_to_dpid from ryu.lib.port_no import str_to_port_no from ryu.app.client import TopologyClient LOG = logging.getLogger('ryu.gui'...
28.378788
77
0.574212
80bfef8f2adb756fa51ead93bbcc4295e352ae27
744
py
Python
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/internet/test/process_gireactornocompat.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/internet/test/process_gireactornocompat.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/internet/test/process_gireactornocompat.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
import sys # Override theSystemPath so it throws KeyError on gi.pygtkcompat: from twisted.python import modules modules.theSystemPath = modules.PythonPath([], moduleDict={}) # Now, when we import gireactor it shouldn't use pygtkcompat, and should # instead prevent gobject from being importable: from twisted.i...
32.347826
77
0.686828
80bffaf5ce6de8b8154d194bc0ff65bdab497cc8
4,140
py
Python
octostore/mongo_helper.py
luzhang06/octostore
c3a6ac42a86ab6943eaa7e11dfbcae50c0a68bfa
[ "MIT" ]
1
2020-08-17T20:54:39.000Z
2020-08-17T20:54:39.000Z
octostore/mongo_helper.py
luzhang06/octostore
c3a6ac42a86ab6943eaa7e11dfbcae50c0a68bfa
[ "MIT" ]
null
null
null
octostore/mongo_helper.py
luzhang06/octostore
c3a6ac42a86ab6943eaa7e11dfbcae50c0a68bfa
[ "MIT" ]
null
null
null
from pymongo import MongoClient import os import sys from pathlib import Path from environs import Env sys.path.append("..") sys.path.append(str(Path(__file__).parent.resolve()))
36.315789
93
0.58285
80c147e7794b7f3c322d8bf48ca72fdbf59b3d05
2,110
py
Python
tests/test_app.py
jonathanharg/covid_dashboard
a1bc18d971911cc4db35af96f973da636c91190e
[ "MIT" ]
null
null
null
tests/test_app.py
jonathanharg/covid_dashboard
a1bc18d971911cc4db35af96f973da636c91190e
[ "MIT" ]
null
null
null
tests/test_app.py
jonathanharg/covid_dashboard
a1bc18d971911cc4db35af96f973da636c91190e
[ "MIT" ]
null
null
null
from app import create_app from utils import get_setting import pytest remove_nonexisting_event = { "update_item": "TRY TO REMOVE AN ARTICLE THAT DOES NOT EXIST" } remove_nonexisting_news = {"notif": "TRY TO REMOVE AN ARTICLE THAT DOES NOT EXIST"} schedule_update_with_no_label = { "update": "12:30", "co...
25.119048
83
0.680095
80c2022fa6bfc0785ace3c63f2c584e61cfeac6a
7,734
py
Python
wp/modules/utils/frame.py
ExLeonem/master-thesis-code
559ad55f15c99772358384146bd30dd517b1dfe8
[ "MIT" ]
null
null
null
wp/modules/utils/frame.py
ExLeonem/master-thesis-code
559ad55f15c99772358384146bd30dd517b1dfe8
[ "MIT" ]
null
null
null
wp/modules/utils/frame.py
ExLeonem/master-thesis-code
559ad55f15c99772358384146bd30dd517b1dfe8
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np
31.696721
169
0.582751
80c42f7c2ddfa85fab0bc347a514d3a8d73a04ce
4,647
py
Python
setup.py
jeblohe/strup
60ddbcdf5cff411b738ce52573328e89a61e8d0b
[ "MIT" ]
null
null
null
setup.py
jeblohe/strup
60ddbcdf5cff411b738ce52573328e89a61e8d0b
[ "MIT" ]
null
null
null
setup.py
jeblohe/strup
60ddbcdf5cff411b738ce52573328e89a61e8d0b
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open import os # Get the long description from the README file here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, "README.md")) as f: long_description = f.read() # Get the version for line in open(os.path.join(here, "strup...
41.491071
93
0.660856
80c51c456120b0b7a682e4f845f192154e235f25
4,665
py
Python
dags/load_transformations.py
brendasanchezs/Capstonev2
22d5cebfaba6b2865d9fb71a31b214b57ea034b5
[ "Apache-2.0" ]
null
null
null
dags/load_transformations.py
brendasanchezs/Capstonev2
22d5cebfaba6b2865d9fb71a31b214b57ea034b5
[ "Apache-2.0" ]
null
null
null
dags/load_transformations.py
brendasanchezs/Capstonev2
22d5cebfaba6b2865d9fb71a31b214b57ea034b5
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta import boto3 from airflow.models import Variable from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.hooks.S3_hook import S3Hook from airflow.contrib.operators.emr_create_job_flow_operator import ( EmrCreateJobFlowOperator, ) from ...
30.292208
128
0.614791
80c5febb11f85056db71fbcf343fcfa6d57b6f52
4,716
py
Python
pypower/runpf_fast.py
felixkoeth/PYPOWER
51476da14dead2ca23417bfa1210748800212ffe
[ "BSD-3-Clause" ]
null
null
null
pypower/runpf_fast.py
felixkoeth/PYPOWER
51476da14dead2ca23417bfa1210748800212ffe
[ "BSD-3-Clause" ]
null
null
null
pypower/runpf_fast.py
felixkoeth/PYPOWER
51476da14dead2ca23417bfa1210748800212ffe
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 1996-2015 PSERC. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """Runs a power flow. """ from sys import stdout, stderr from os.path import dirname, join from time import time from numpy import r_, c_, ix_, zeros, pi, ones...
33.211268
87
0.683842
80c6ede6e307ee489af6f1fefba2316fa2f0871d
5,565
py
Python
SimpleTrading/commodities_inflation.py
Nawter/Quantiacs
95ea9443744c5a2e5268fa18f5e38928a6452d5d
[ "MIT" ]
null
null
null
SimpleTrading/commodities_inflation.py
Nawter/Quantiacs
95ea9443744c5a2e5268fa18f5e38928a6452d5d
[ "MIT" ]
null
null
null
SimpleTrading/commodities_inflation.py
Nawter/Quantiacs
95ea9443744c5a2e5268fa18f5e38928a6452d5d
[ "MIT" ]
null
null
null
# This program imports the federal reserve economic data consumer price index # values from 1990 and uses those values to get the real values or infaltion adjusted # values of the sepcific commodities/markets. # Then when a commdoity hits a specific low infaltion based price, the algo # enters into a long psoiton and ...
46.764706
136
0.62372
80c7f4d876bcca6792829d4bd5fbc77ce4c7d34b
3,195
py
Python
encryptor/encryptor.py
crafter-hub/Kreusada-Cogs
9b7bf873484c7bfeb9707b50f386de82c355b571
[ "MIT" ]
21
2021-03-11T06:52:41.000Z
2022-02-04T16:27:47.000Z
encryptor/encryptor.py
crafter-hub/Kreusada-Cogs
9b7bf873484c7bfeb9707b50f386de82c355b571
[ "MIT" ]
77
2021-03-06T13:31:50.000Z
2022-03-25T10:37:15.000Z
encryptor/encryptor.py
crafter-hub/Kreusada-Cogs
9b7bf873484c7bfeb9707b50f386de82c355b571
[ "MIT" ]
33
2021-03-05T20:59:07.000Z
2022-03-06T03:55:47.000Z
import contextlib import random import string from password_strength import PasswordStats from redbot.core import commands from redbot.core.utils import chat_formatting as cf from .word_list import * GREEN_CIRCLE = "\N{LARGE GREEN CIRCLE}" YELLOW_CIRCLE = "\N{LARGE YELLOW CIRCLE}" ORANGE_CIRCLE = "\N{LARGE ORANGE CI...
31.019417
95
0.607199