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
02e1eaa7b6938abd4a858ad69dcce256aad518c8
2,232
py
Python
bot.py
Euphorichuman/StarConstellationBot-TelgramBot-
557dad7ce1d1a96a96b4ed65b796f20a6944e3b7
[ "Apache-2.0" ]
null
null
null
bot.py
Euphorichuman/StarConstellationBot-TelgramBot-
557dad7ce1d1a96a96b4ed65b796f20a6944e3b7
[ "Apache-2.0" ]
null
null
null
bot.py
Euphorichuman/StarConstellationBot-TelgramBot-
557dad7ce1d1a96a96b4ed65b796f20a6944e3b7
[ "Apache-2.0" ]
null
null
null
import telegram.ext import messsages as msg import functions as f import matplotlib.pyplot as plt import traceback import os import os.path from os import path #Funcin para mandar la figura con todas las estrellas #Funcin para mandar la figura con todas las estrellas y una constelacin #Funcin para mandar la figura ...
37.2
103
0.744624
02e39765ed97295a34732ab36aceb4ca2cfebe3b
2,706
py
Python
tests/unit/states/test_slack.py
amaclean199/salt
8aaac011b4616e3c9e74a1daafb4a2146a5a430f
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
tests/unit/states/test_slack.py
amaclean199/salt
8aaac011b4616e3c9e74a1daafb4a2146a5a430f
[ "Apache-2.0" ]
1
2015-10-05T22:03:10.000Z
2015-10-05T22:03:10.000Z
tests/unit/states/test_slack.py
amaclean199/salt
8aaac011b4616e3c9e74a1daafb4a2146a5a430f
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import, unicode_literals, print_function # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import skipIf, TestCase...
35.605263
77
0.543607
02e3d3385e104cc569c1458b36ecf6ad0a158a11
613
py
Python
lintcode/499.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:49.000Z
2021-01-08T06:57:49.000Z
lintcode/499.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
null
null
null
lintcode/499.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:52.000Z
2021-01-08T06:57:52.000Z
""" 499. Word Count (Map Reduce) https://www.lintcode.com/problem/word-count-map-reduce/description """
29.190476
66
0.611746
02e41ad97ede483bee9810e5ea1fa7bf1e5f726c
1,205
py
Python
dataframe/statistic.py
kuangtu/pandas_exec
659dec5eef488bec11daec33333ff8366a0d1a91
[ "MIT" ]
null
null
null
dataframe/statistic.py
kuangtu/pandas_exec
659dec5eef488bec11daec33333ff8366a0d1a91
[ "MIT" ]
null
null
null
dataframe/statistic.py
kuangtu/pandas_exec
659dec5eef488bec11daec33333ff8366a0d1a91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import numpy as np import pandas as pd if __name__ == '__main__': # countnum() statfunc()
25.104167
73
0.557676
02e6d57771f13dca80d99555989b7627a7fef655
6,513
py
Python
asv/results.py
pitrou/asv
d6efa34f1308a212bc3c2f386f2f6584bbb5398f
[ "BSD-3-Clause" ]
null
null
null
asv/results.py
pitrou/asv
d6efa34f1308a212bc3c2f386f2f6584bbb5398f
[ "BSD-3-Clause" ]
null
null
null
asv/results.py
pitrou/asv
d6efa34f1308a212bc3c2f386f2f6584bbb5398f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import base64 import os import zlib from .environment import get_environment from . import util def iter_results_for...
25.641732
73
0.590511
02e9695d836ae2a21a14a0f80cc396334b03974f
1,188
py
Python
core/secretfinder/utils.py
MakoSec/pacu
f06f110e6c181f34b89b803e7c2024563acc9fbc
[ "BSD-3-Clause" ]
26
2021-03-29T13:39:28.000Z
2022-03-21T10:57:58.000Z
core/secretfinder/utils.py
MakoSec/pacu
f06f110e6c181f34b89b803e7c2024563acc9fbc
[ "BSD-3-Clause" ]
1
2021-06-02T02:39:40.000Z
2021-06-02T02:39:40.000Z
core/secretfinder/utils.py
MakoSec/pacu
f06f110e6c181f34b89b803e7c2024563acc9fbc
[ "BSD-3-Clause" ]
8
2021-02-23T12:17:04.000Z
2022-02-25T13:28:14.000Z
import math import json import re import os
21.214286
58
0.570707
02e997ec752171db83c0a7598b23b28d81788b83
2,342
py
Python
validation/step_03_-_predict_state/step_03_-_plot_results.py
martin0004/drone_perception_system
ac76a002179bd1a7219f3c76747bd50aba0a0aea
[ "MIT" ]
1
2021-08-25T08:16:27.000Z
2021-08-25T08:16:27.000Z
validation/step_03_-_predict_state/step_03_-_plot_results.py
martin0004/drone_perception_system
ac76a002179bd1a7219f3c76747bd50aba0a0aea
[ "MIT" ]
null
null
null
validation/step_03_-_predict_state/step_03_-_plot_results.py
martin0004/drone_perception_system
ac76a002179bd1a7219f3c76747bd50aba0a0aea
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pandas as pd from typing import Tuple def clean_df_headers(df: pd.DataFrame) -> pd.DataFrame: """Remove leading and trailing spaces in DataFrame headers.""" headers = pd.Series(df.columns) new_headers = [header.strip() for header in headers] ...
27.232558
123
0.585824
02eb83c13dc0114b6ab1c905f8a724d75ccb3d34
8,036
py
Python
lvsr/dependency/datasets.py
mzapotoczny/dependency-parser
e37f94e23cb61d6658774f5f9843219df331eb74
[ "MIT" ]
3
2017-06-07T06:41:18.000Z
2019-10-26T13:08:23.000Z
lvsr/dependency/datasets.py
mzapotoczny/dependency-parser
e37f94e23cb61d6658774f5f9843219df331eb74
[ "MIT" ]
null
null
null
lvsr/dependency/datasets.py
mzapotoczny/dependency-parser
e37f94e23cb61d6658774f5f9843219df331eb74
[ "MIT" ]
1
2020-11-26T17:40:18.000Z
2020-11-26T17:40:18.000Z
''' Created on Mar 20, 2016 ''' import numpy import numbers from fuel.datasets.hdf5 import H5PYDataset from fuel.utils import Subset
40.585859
87
0.56558
02ebdfddbb50d875cc9962bf326ad8e9c362cfea
1,444
py
Python
setup.py
LandRegistry/govuk-frontend-wtf
3ac1501dd220ad8f4cff0137f2d87e973c9e1243
[ "MIT" ]
10
2021-02-02T11:38:42.000Z
2022-01-21T15:10:23.000Z
setup.py
LandRegistry/govuk-frontend-wtf
3ac1501dd220ad8f4cff0137f2d87e973c9e1243
[ "MIT" ]
23
2021-04-26T09:19:22.000Z
2022-03-31T15:13:31.000Z
setup.py
LandRegistry/govuk-frontend-wtf
3ac1501dd220ad8f4cff0137f2d87e973c9e1243
[ "MIT" ]
6
2021-02-04T11:09:51.000Z
2021-06-01T08:39:02.000Z
import glob import os import setuptools with open("README.md", "r") as fh: long_description = fh.read() templates = [] directories = glob.glob("govuk_frontend_wtf/templates/*.html") for directory in directories: templates.append(os.path.relpath(os.path.dirname(directory), "govuk_frontend_wtf") + "/*.html") ...
31.391304
99
0.644044
02ebe98586fb9a06d031ee215ed1a172f2753298
2,930
py
Python
project/experiments/exp_003_best_Walker2D/src/4.plot_1.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
project/experiments/exp_003_best_Walker2D/src/4.plot_1.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
project/experiments/exp_003_best_Walker2D/src/4.plot_1.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from common.tflogs2pandas import tflog2pandas, many_logs2pandas from common.gym_interface import template bodies = [300] all_seeds = list(range(20)) all_stackframe = [0,4] cache_filename = "output_data/tmp/plot0" try: df = pd.rea...
31.505376
94
0.543686
02ec3adf599332a9c2e8596007821b919933d4a9
167
py
Python
wsgi.py
emilan21/macvert
ac219507a6b20372861667f4ade8084c9902a231
[ "MIT" ]
null
null
null
wsgi.py
emilan21/macvert
ac219507a6b20372861667f4ade8084c9902a231
[ "MIT" ]
null
null
null
wsgi.py
emilan21/macvert
ac219507a6b20372861667f4ade8084c9902a231
[ "MIT" ]
null
null
null
#!/usr/bin/python # mac_convertor.py - Converts mac address from various formats to other formats from macvert.web import app if __name__ == '__main__': app.run()
20.875
79
0.742515
02ed59dd65e3f0007ed59a3660fc0e47a1a878ad
461
py
Python
config/dotenv.py
CharuchithRanjit/open-pos
ac749a0f2a6c59077d2c13f13e776963e130501f
[ "MIT" ]
null
null
null
config/dotenv.py
CharuchithRanjit/open-pos
ac749a0f2a6c59077d2c13f13e776963e130501f
[ "MIT" ]
null
null
null
config/dotenv.py
CharuchithRanjit/open-pos
ac749a0f2a6c59077d2c13f13e776963e130501f
[ "MIT" ]
null
null
null
""" Loads dotenv variables Classes: None Functions: None Misc variables: DATABASE_KEY (str) -- The key for the database DATABASE_PASSWORD (str) -- The password for the database DATABASE_URL (str) -- The url for the database """ import os from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) DATABA...
20.954545
56
0.776573
02ef52ac7a4592df5ce1f94d82e027c617d780cc
1,094
py
Python
tests/zero_model_test.py
shatadru99/archai
8501080f8ecc73327979c02387e02011efb4c335
[ "MIT" ]
1
2020-01-29T18:45:42.000Z
2020-01-29T18:45:42.000Z
tests/zero_model_test.py
shatadru99/archai
8501080f8ecc73327979c02387e02011efb4c335
[ "MIT" ]
null
null
null
tests/zero_model_test.py
shatadru99/archai
8501080f8ecc73327979c02387e02011efb4c335
[ "MIT" ]
1
2020-01-31T15:51:53.000Z
2020-01-31T15:51:53.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch from archai.nas.model import Model from archai.nas.macro_builder import MacroBuilder from archai.common.common import common_init
36.466667
75
0.698355
02f1e0ca932dc0360686a58ec3b261b9a83d5c58
13,461
py
Python
reports/dataset.py
TexasDigitalLibrary/dataverse-reports
90f849a1b6c0d772d19de336f9f48cd290256392
[ "MIT" ]
5
2018-10-07T14:37:40.000Z
2021-09-14T08:57:19.000Z
reports/dataset.py
TexasDigitalLibrary/dataverse-reports
90f849a1b6c0d772d19de336f9f48cd290256392
[ "MIT" ]
11
2019-08-30T15:29:37.000Z
2021-12-20T19:44:37.000Z
reports/dataset.py
TexasDigitalLibrary/dataverse-reports
90f849a1b6c0d772d19de336f9f48cd290256392
[ "MIT" ]
4
2018-01-30T18:20:54.000Z
2021-09-30T09:04:44.000Z
import logging import datetime
51.18251
174
0.553079
02f1e521d0c60cd1bdde651eb786414631bc4c55
1,377
py
Python
classifier.py
hemu243/focus-web-crawler
8e882315d947f04b207ec76a64fa952f18105d73
[ "MIT" ]
2
2020-02-03T02:31:09.000Z
2021-02-03T11:54:44.000Z
classifier.py
hemu243/focus-web-crawler
8e882315d947f04b207ec76a64fa952f18105d73
[ "MIT" ]
null
null
null
classifier.py
hemu243/focus-web-crawler
8e882315d947f04b207ec76a64fa952f18105d73
[ "MIT" ]
null
null
null
# from abc import ABCMeta import metapy
30.6
97
0.760349
02f2dc9948709df77cd05687fd7477b4be25fe0c
609
py
Python
backend/tests/access/test_access_event_publish.py
fjacob21/mididecweb
b65f28eb6fdeafa265796b6190a4264a5eac54ce
[ "MIT" ]
null
null
null
backend/tests/access/test_access_event_publish.py
fjacob21/mididecweb
b65f28eb6fdeafa265796b6190a4264a5eac54ce
[ "MIT" ]
88
2016-11-12T14:54:38.000Z
2018-08-02T00:25:07.000Z
backend/tests/access/test_access_event_publish.py
mididecouverte/mididecweb
b65f28eb6fdeafa265796b6190a4264a5eac54ce
[ "MIT" ]
null
null
null
from src.access import EventPublishAccess from generate_access_data import generate_access_data
38.0625
66
0.760263
02f3815c21333fd777c5f7c2b3c081090f107885
4,296
py
Python
aiorabbitmq_admin/base.py
miili/aiorabbitmq-admin
38df67a77cd029429af9add12ead3152f58ed748
[ "MIT" ]
null
null
null
aiorabbitmq_admin/base.py
miili/aiorabbitmq-admin
38df67a77cd029429af9add12ead3152f58ed748
[ "MIT" ]
null
null
null
aiorabbitmq_admin/base.py
miili/aiorabbitmq-admin
38df67a77cd029429af9add12ead3152f58ed748
[ "MIT" ]
null
null
null
import json import aiohttp from copy import deepcopy
30.253521
112
0.570531
02f390bbfb313d944ca9d6c202d4c1f28b3a192e
115,464
py
Python
from_3b1b/old/highD.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
from_3b1b/old/highD.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
from_3b1b/old/highD.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
from manim2.imports import * ########## #force_skipping #revert_to_original_skipping_status ########## ##########
31.817029
99
0.561275
02f4fc8fa710340e57d5ba18128bb096623e09a7
871
py
Python
start_palpeo.py
RealDebian/Palpeo
23be184831a3c529cf933277944e7aacda08cdad
[ "MIT" ]
null
null
null
start_palpeo.py
RealDebian/Palpeo
23be184831a3c529cf933277944e7aacda08cdad
[ "MIT" ]
null
null
null
start_palpeo.py
RealDebian/Palpeo
23be184831a3c529cf933277944e7aacda08cdad
[ "MIT" ]
null
null
null
from link_extractor import run_enumeration from colorama import Fore from utils.headers import HEADERS from time import sleep import requests import database import re import json from bs4 import BeautifulSoup import colorama print(Fore.GREEN + '-----------------------------------' + Fore.RESET, Fore.RED) print(' - We...
24.194444
80
0.624569
02f5826c6c30c33aa057a91cc4e4070320f7be69
4,994
py
Python
tests/test_scores_das_01.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
5
2021-12-16T14:08:00.000Z
2022-03-02T14:08:10.000Z
tests/test_scores_das_01.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
tests/test_scores_das_01.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
import xarray import numpy from enstools.scores import DisplacementAmplitudeScore def test_embed_image(): """ test of embed_image from match_pyramide_ic """ # create test image test_im = xarray.DataArray(numpy.random.randn(5, 3)) # new array should have shape (8, 4) result = DisplacementA...
33.293333
119
0.665999
02f6d5351b6d28ac6a5a83e1bce309686a5a07fc
833
py
Python
src/backend/backend/shopit/migrations/0024_auto_20201028_2008.py
tejpratap545/E-Commerce-Application
c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a
[ "MIT" ]
null
null
null
src/backend/backend/shopit/migrations/0024_auto_20201028_2008.py
tejpratap545/E-Commerce-Application
c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a
[ "MIT" ]
7
2021-08-13T23:05:47.000Z
2022-02-27T10:23:46.000Z
src/backend/backend/shopit/migrations/0024_auto_20201028_2008.py
tejpratap545/E-Commerce-Application
c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-28 14:38 from django.db import migrations, models
26.03125
80
0.57503
02f729610f64d4759bc9416f6b95eedcf29070ca
1,804
py
Python
aoc/event2019/day19/solve.py
rjbatista/AoC
5c6ca4bcb376c24ec730eb12fd7044f5326ee473
[ "MIT" ]
null
null
null
aoc/event2019/day19/solve.py
rjbatista/AoC
5c6ca4bcb376c24ec730eb12fd7044f5326ee473
[ "MIT" ]
null
null
null
aoc/event2019/day19/solve.py
rjbatista/AoC
5c6ca4bcb376c24ec730eb12fd7044f5326ee473
[ "MIT" ]
null
null
null
from event2019.day13.computer_v4 import Computer_v4 ######## # PART 1 computer = Computer_v4([]) computer.load_code("event2019/day19/input.txt") answer = sum([width for x, width in get_area() if x != None]) print("Part 1 =", answer) assert answer == 203 # check with accepted answer ######## # PART 2 x, y = get...
21.73494
114
0.471729
02f79e3624d623adc544da46b4a6554d6c1bfa3b
849
py
Python
fileo/accounts/forms.py
Tiqur/Fileo
0c663f3bb28985d2d7b4cb475a95b1592cfb2013
[ "MIT" ]
null
null
null
fileo/accounts/forms.py
Tiqur/Fileo
0c663f3bb28985d2d7b4cb475a95b1592cfb2013
[ "MIT" ]
null
null
null
fileo/accounts/forms.py
Tiqur/Fileo
0c663f3bb28985d2d7b4cb475a95b1592cfb2013
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.forms import UserCreationForm from .models import FileoUser User = FileoUser()
29.275862
82
0.69258
02f7dfdc4c7be780ca3def3290b1d78bbe909246
959
py
Python
setup.py
jnsgruk/lightkube-models
7fce1ed1d00ee599eaa4fad82868ec6b55c84c8d
[ "MIT" ]
1
2021-10-14T08:49:10.000Z
2021-10-14T08:49:10.000Z
setup.py
jnsgruk/lightkube-models
7fce1ed1d00ee599eaa4fad82868ec6b55c84c8d
[ "MIT" ]
2
2021-10-14T18:09:31.000Z
2021-10-14T18:09:52.000Z
setup.py
jnsgruk/lightkube-models
7fce1ed1d00ee599eaa4fad82868ec6b55c84c8d
[ "MIT" ]
1
2021-10-13T15:08:58.000Z
2021-10-13T15:08:58.000Z
from setuptools import setup from pathlib import Path from lightkube.models import __version__ setup( name='lightkube-models', version=__version__, description='Models and Resources for lightkube module', long_description=Path("README.md").read_text(), long_description_content_type="text/markdown...
33.068966
60
0.667362
02f8318053016bd127b7feb86e89f4c704276dce
465
py
Python
kagi/upper/west/_capital/four.py
jedhsu/kagi
1301f7fc437bb445118b25ca92324dbd58d6ad2d
[ "MIT" ]
null
null
null
kagi/upper/west/_capital/four.py
jedhsu/kagi
1301f7fc437bb445118b25ca92324dbd58d6ad2d
[ "MIT" ]
null
null
null
kagi/upper/west/_capital/four.py
jedhsu/kagi
1301f7fc437bb445118b25ca92324dbd58d6ad2d
[ "MIT" ]
null
null
null
""" *Upper-West Capital 4* The upper-west capital four gi. """ from dataclasses import dataclass from ....._gi import Gi from ....capital import CapitalGi from ...._gi import StrismicGi from ....west import WesternGi from ...._number import FourGi from ..._gi import UpperGi __all__ = ["UpperWestCapital4"...
15
33
0.668817
02f87c91bee648002483bc9254e7698d4ec9f8f2
5,626
py
Python
tests/test_dictattr.py
atsuoishimoto/jashin
6705839461dd9fdfe50cbc6f93fe9ba2da889f0a
[ "MIT" ]
1
2020-06-04T23:44:48.000Z
2020-06-04T23:44:48.000Z
tests/test_dictattr.py
sojin-project/jashin
6705839461dd9fdfe50cbc6f93fe9ba2da889f0a
[ "MIT" ]
null
null
null
tests/test_dictattr.py
sojin-project/jashin
6705839461dd9fdfe50cbc6f93fe9ba2da889f0a
[ "MIT" ]
null
null
null
import enum from typing import Any, Dict from jashin.dictattr import *
24.25
80
0.545325
02f8b65e136d03ceacb32c0a454b3d2ad573a0cb
191
py
Python
acmicpc/5612.py
juseongkr/BOJ
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
7
2020-02-03T10:00:19.000Z
2021-11-16T11:03:57.000Z
acmicpc/5612.py
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2021-01-03T06:58:24.000Z
2021-01-03T06:58:24.000Z
acmicpc/5612.py
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2020-01-22T14:34:03.000Z
2020-01-22T14:34:03.000Z
n = int(input()) m = int(input()) r = m for i in range(n): a, b = map(int, input().split()) m += a m -= b if m < 0: print(0) exit() r = max(r, m) print(r)
14.692308
36
0.418848
02f9422687e1cf10a5083c7345c12d1a45915872
66,679
py
Python
tests/function/test_func_partition.py
ddimatos/zhmc-ansible-modules
6eb29056052f499021a4bab26539872b25050640
[ "Apache-2.0" ]
null
null
null
tests/function/test_func_partition.py
ddimatos/zhmc-ansible-modules
6eb29056052f499021a4bab26539872b25050640
[ "Apache-2.0" ]
null
null
null
tests/function/test_func_partition.py
ddimatos/zhmc-ansible-modules
6eb29056052f499021a4bab26539872b25050640
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017-2020 IBM Corp. 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 require...
36.238587
79
0.558182
02f942ae72f558610fdbd2e0d719bb8a1bc37d6c
1,849
py
Python
users/models.py
uoe-compsci-grp30/campusgame
d2d7ba99210f352a7b45a1db06cea0a09e3b8c31
[ "MIT" ]
null
null
null
users/models.py
uoe-compsci-grp30/campusgame
d2d7ba99210f352a7b45a1db06cea0a09e3b8c31
[ "MIT" ]
null
null
null
users/models.py
uoe-compsci-grp30/campusgame
d2d7ba99210f352a7b45a1db06cea0a09e3b8c31
[ "MIT" ]
null
null
null
import uuid from django.contrib.auth.models import AbstractUser from django.db import models """ The user model that represents a user participating in the game. Implemented using the built-in Django user model: AbstractUser. """
52.828571
449
0.760411
02fa655762a8c5f87ff87bed426342d23902e763
4,743
py
Python
slidingwindow_generator/slidingwindow_generator.py
flashspys/SlidingWindowGenerator
bdcefd9506732ea9c9734bd4e8e81a884b78f08c
[ "Apache-2.0" ]
3
2021-03-27T12:50:36.000Z
2022-01-16T15:30:22.000Z
slidingwindow_generator/slidingwindow_generator.py
flashspys/SlidingWindowGenerator
bdcefd9506732ea9c9734bd4e8e81a884b78f08c
[ "Apache-2.0" ]
3
2020-10-07T05:28:46.000Z
2020-11-05T08:32:01.000Z
slidingwindow_generator/slidingwindow_generator.py
flashspys/SlidingWindowGenerator
bdcefd9506732ea9c9734bd4e8e81a884b78f08c
[ "Apache-2.0" ]
1
2020-11-08T23:39:20.000Z
2020-11-08T23:39:20.000Z
import numpy as np import tensorflow as tf
37.346457
79
0.59709
02fb4db8ebfb72289be41e8479130a4d82ec14a9
1,737
py
Python
carla/util.py
dixantmittal/intelligent-autonomous-vehicle-controller
7ccebabe8ecb972780a492c36f48ef8f1671be71
[ "MIT" ]
1
2019-12-18T06:23:19.000Z
2019-12-18T06:23:19.000Z
carla/util.py
dixantmittal/intelligent-autonomous-vehicle-controller
7ccebabe8ecb972780a492c36f48ef8f1671be71
[ "MIT" ]
null
null
null
carla/util.py
dixantmittal/intelligent-autonomous-vehicle-controller
7ccebabe8ecb972780a492c36f48ef8f1671be71
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB), and the INTEL Visual Computing Lab. # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import datetime import sys from contextlib import contextmanage...
28.016129
80
0.663788
02fc1e3721895fe496443e7ceaa950d900683542
3,002
py
Python
examples/session2-fi/start2.py
futurice/PythonInBrowser
066ab28ffad265efc7968b87f33dab2c68216d9d
[ "MIT" ]
4
2015-12-08T19:34:49.000Z
2019-09-08T22:11:05.000Z
examples/session2-fi/start2.py
futurice/PythonInBrowser
066ab28ffad265efc7968b87f33dab2c68216d9d
[ "MIT" ]
18
2016-10-14T13:48:39.000Z
2019-10-11T12:14:21.000Z
examples/session2-fi/start2.py
futurice/PythonInBrowser
066ab28ffad265efc7968b87f33dab2c68216d9d
[ "MIT" ]
4
2015-11-18T15:18:43.000Z
2018-03-02T09:36:23.000Z
# Kydn lpi mit opimme viime viikolla (ja mys jotakin uutta) # Jos jokin asia mietitytt, kysy vain rohkeasti apua! ##### INFO ##### # Viime viikon trkeimmt asiat olivat: # 1. print-komento # 2. muuttujan kytt # 3. kilpikonnan kyttminen piirtmiseen # Ohelmointi vaatii usein tiedon etsimist muista lhteist # ja uuden tie...
37.525
110
0.758161
02fcd2548a49becf32a01085ecf16e34635af225
32,807
py
Python
train.py
EdwardLeeMacau/PFFNet
dfa6e45062627ce6ab7a1b1a37bada5cccae7167
[ "MIT" ]
null
null
null
train.py
EdwardLeeMacau/PFFNet
dfa6e45062627ce6ab7a1b1a37bada5cccae7167
[ "MIT" ]
null
null
null
train.py
EdwardLeeMacau/PFFNet
dfa6e45062627ce6ab7a1b1a37bada5cccae7167
[ "MIT" ]
null
null
null
""" FileName [ train.py ] PackageName [ PFFNet ] Synopsis [ Train the model ] Usage: >>> python train.py --normalized --cuda """ import argparse import os import shutil from datetime import date import matplotlib import numpy as np import pandas as pd import torch import torchvision import torchvi...
33.648205
140
0.572073
02fe1589d692043102c05d5d014222183830f3c7
45,373
py
Python
clients/python/core_pb2.py
cloudwheels/grpc-test-gateway
5fe6564804cc1dfd2761138977d9282519b8ffc6
[ "MIT" ]
3
2020-05-01T15:27:18.000Z
2020-05-28T15:11:34.000Z
clients/python/core_pb2.py
cloudwheels/grpc-test-gateway
5fe6564804cc1dfd2761138977d9282519b8ffc6
[ "MIT" ]
null
null
null
clients/python/core_pb2.py
cloudwheels/grpc-test-gateway
5fe6564804cc1dfd2761138977d9282519b8ffc6
[ "MIT" ]
3
2020-09-15T17:24:52.000Z
2021-07-07T10:01:25.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: core.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflecti...
42.885633
2,847
0.760518
02fe97635bdf12eb93fa73109a7854ea036f69bf
546
py
Python
python_high/chapter_3/3.1.py
Rolling-meatballs/deepshare
47c1e599c915ccd0a123fa9ab26e1f20738252ef
[ "MIT" ]
null
null
null
python_high/chapter_3/3.1.py
Rolling-meatballs/deepshare
47c1e599c915ccd0a123fa9ab26e1f20738252ef
[ "MIT" ]
null
null
null
python_high/chapter_3/3.1.py
Rolling-meatballs/deepshare
47c1e599c915ccd0a123fa9ab26e1f20738252ef
[ "MIT" ]
null
null
null
name = " alberT" one = name.rsplit() print("one:", one) two = name.index('al', 0) print("two:", two) three = name.index('T', -1) print("three:", three) four = name.replace('l', 'p') print("four:", four) five = name.split('l') print("five:", five) six = name.upper() print("six:", six) seven = name.lower() print("...
14.756757
29
0.598901
02feb42fde4ca975bc72c9c78d9e0931c5f1d4a2
384
py
Python
src/views/simplepage/models.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/views/simplepage/models.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/views/simplepage/models.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
from cms.extensions import PageExtension from cms.extensions.extension_pool import extension_pool from django.utils.translation import ugettext as _ from filer.fields.image import FilerImageField extension_pool.register(SimplePageExtension)
25.6
56
0.796875
f301917c422d9318495feced737c153caa8bd9a9
290
py
Python
baekjoon/not-classified/10844/10844.py
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
2
2019-02-08T01:23:07.000Z
2020-11-19T12:23:52.000Z
baekjoon/not-classified/10844/10844.py
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
null
null
null
baekjoon/not-classified/10844/10844.py
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
null
null
null
n = int(input()) s = [[0] * 10 for _ in range(n + 1)] s[1] = [0] + [1] * 9 mod = 1000 ** 3 for i in range(2, n + 1): for j in range(0, 9 + 1): if j >= 1: s[i][j] += s[i - 1][j - 1] if j <= 8: s[i][j] += s[i - 1][j + 1] print(sum(s[n]) % mod)
19.333333
38
0.358621
f302cba30df57e2c4fa0a9201628774e666043a8
3,021
py
Python
Ideas/cricket-umpire-assistance-master/visualization/test2.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
Ideas/cricket-umpire-assistance-master/visualization/test2.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
1
2021-11-11T22:15:36.000Z
2021-11-11T22:15:36.000Z
Ideas/cricket-umpire-assistance-master/visualization/test2.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
### INITIALIZE VPYTHON # ----------------------------------------------------------------------- from __future__ import division from visual import * from physutil import * from visual.graph import * ### SETUP ELEMENTS FOR GRAPHING, SIMULATION, VISUALIZATION, TIMING # -------------------------------------------------...
32.138298
98
0.589209
f3041c623ca233066149adf01d25baef21dbb909
727
py
Python
parking_systems/models.py
InaraShalfei/parking_system
f1b326f12037808ab80e3b1d6b305235ba59a0db
[ "MIT" ]
null
null
null
parking_systems/models.py
InaraShalfei/parking_system
f1b326f12037808ab80e3b1d6b305235ba59a0db
[ "MIT" ]
null
null
null
parking_systems/models.py
InaraShalfei/parking_system
f1b326f12037808ab80e3b1d6b305235ba59a0db
[ "MIT" ]
null
null
null
from django.db import models
33.045455
119
0.671252
f30518d94f19b9e7816aaf41734cf24e7b19c736
4,875
py
Python
sktime/classification/kernel_based/_rocket_classifier.py
ltoniazzi/sktime
0ea07803115c1ec7463dde99f049b131d639f4a7
[ "BSD-3-Clause" ]
1
2021-11-02T18:56:12.000Z
2021-11-02T18:56:12.000Z
sktime/classification/kernel_based/_rocket_classifier.py
ltoniazzi/sktime
0ea07803115c1ec7463dde99f049b131d639f4a7
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/kernel_based/_rocket_classifier.py
ltoniazzi/sktime
0ea07803115c1ec7463dde99f049b131d639f4a7
[ "BSD-3-Clause" ]
1
2021-04-30T08:12:18.000Z
2021-04-30T08:12:18.000Z
# -*- coding: utf-8 -*- """RandOm Convolutional KErnel Transform (ROCKET).""" __author__ = "Matthew Middlehurst" __all__ = ["ROCKETClassifier"] import numpy as np from sklearn.linear_model import RidgeClassifierCV from sklearn.pipeline import make_pipeline from sklearn.utils.multiclass import class_distribution from...
30.85443
84
0.611487
f3052e2208b42e9e168f9e6bcc11e27d4f1b41d3
9,922
py
Python
mc/opcodes.py
iximeow/binja-m16c
debf368e5df90a96d6c8b0bc128626a9d6834bb4
[ "0BSD" ]
12
2020-01-15T00:51:06.000Z
2021-10-02T12:45:50.000Z
mc/opcodes.py
iximeow/binja-m16c
debf368e5df90a96d6c8b0bc128626a9d6834bb4
[ "0BSD" ]
2
2020-02-03T08:26:26.000Z
2020-07-01T19:51:44.000Z
mc/opcodes.py
iximeow/binja-m16c
debf368e5df90a96d6c8b0bc128626a9d6834bb4
[ "0BSD" ]
4
2020-02-03T07:51:12.000Z
2021-02-14T19:13:07.000Z
import re from . import tables from .instr import Instruction from .instr.nop import * from .instr.alu import * from .instr.bcd import * from .instr.bit import * from .instr.flag import * from .instr.mov import * from .instr.smov import * from .instr.ld_st import * from .instr.stack import * from .instr.jmp import * f...
28.429799
99
0.621951
f30593af5391112f0f58041cdf450a938ae282be
797
py
Python
class16.py
SamratAdhikari/Python_class_files
47053e39b81c0d8f7485790fea8711aa25727caf
[ "MIT" ]
null
null
null
class16.py
SamratAdhikari/Python_class_files
47053e39b81c0d8f7485790fea8711aa25727caf
[ "MIT" ]
null
null
null
class16.py
SamratAdhikari/Python_class_files
47053e39b81c0d8f7485790fea8711aa25727caf
[ "MIT" ]
null
null
null
# import calculate # import calculate as cal # from calculate import diff as df # from calculate import * # print(cal.pi) # pi = 3.1415 # print(diff(5,2)) # print(pi) # print(calculate.pi) # print(calculate.sum(3)) # print(calculate.div(2,1)) # print(abs(-23.21)) # print(math.ceil(5.23)) # print(dir(math)) # # print(...
20.435897
43
0.604768
f30618f542da8cbd2c4223847a99725100131374
901
py
Python
hsir/law.py
WenjieZ/wuhan-pneumonia
3d26955daa2deedec57cdd3effb3118531bbea7f
[ "BSD-3-Clause" ]
6
2020-01-26T07:33:41.000Z
2020-02-25T22:15:43.000Z
hsir/law.py
WenjieZ/wuhan-pneumonia
3d26955daa2deedec57cdd3effb3118531bbea7f
[ "BSD-3-Clause" ]
2
2020-02-17T16:12:50.000Z
2020-02-29T21:31:17.000Z
hsir/law.py
WenjieZ/wuhan-pneumonia
3d26955daa2deedec57cdd3effb3118531bbea7f
[ "BSD-3-Clause" ]
1
2020-03-07T00:13:05.000Z
2020-03-07T00:13:05.000Z
from abc import ABCMeta, abstractmethod import numpy as np __all__ = ['Law', 'Bin', 'Poi', 'Gau']
20.022222
89
0.54828
f30640fd7966c16ad8a70aa7a32537803f35f977
3,172
py
Python
src/dummy/toga_dummy/widgets/canvas.py
Donyme/toga
2647c7dc5db248025847e3a60b115ff51d4a0d4a
[ "BSD-3-Clause" ]
null
null
null
src/dummy/toga_dummy/widgets/canvas.py
Donyme/toga
2647c7dc5db248025847e3a60b115ff51d4a0d4a
[ "BSD-3-Clause" ]
null
null
null
src/dummy/toga_dummy/widgets/canvas.py
Donyme/toga
2647c7dc5db248025847e3a60b115ff51d4a0d4a
[ "BSD-3-Clause" ]
null
null
null
import re from .base import Widget
31.72
165
0.573455
f3075ca7074510343a47f280f9ff997c85f925fa
3,815
py
Python
tests/unit/schemas/test_base_schema_class.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
421
2015-06-02T16:29:59.000Z
2021-06-03T18:44:42.000Z
tests/unit/schemas/test_base_schema_class.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
404
2015-06-02T20:23:42.000Z
2019-08-21T16:59:41.000Z
tests/unit/schemas/test_base_schema_class.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
16
2015-06-16T17:21:02.000Z
2020-03-27T02:27:09.000Z
from unittest import TestCase from schemer import Schema, Array, ValidationException from dusty.schemas.base_schema_class import DustySchema, DustySpecs from ...testcases import DustyTestCase
42.865169
96
0.636173
f309247f76f7d18c28aea4b2f1973377cd29af7f
5,470
py
Python
Objected-Oriented Systems/Python_OOP_SDA/Task1.py
syedwaleedhyder/Freelance_Projects
7e2b85fc968850fc018014667b5ce9af0f00cb09
[ "MIT" ]
1
2020-08-13T17:26:13.000Z
2020-08-13T17:26:13.000Z
Objected-Oriented Systems/Python_OOP_SDA/Task1.py
syedwaleedhyder/Freelance_Projects
7e2b85fc968850fc018014667b5ce9af0f00cb09
[ "MIT" ]
null
null
null
Objected-Oriented Systems/Python_OOP_SDA/Task1.py
syedwaleedhyder/Freelance_Projects
7e2b85fc968850fc018014667b5ce9af0f00cb09
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod, abstractproperty from datetime import datetime, date def to_string(self): if(self.on_offer == "Yes"): offer = "**Offer" else: offer = "(No Offer)" string = self.item_code + " " + self.item_name + " Availalbe= " + str(self.quant...
31.988304
233
0.609506
f30949586393ae32e93e9cb38a2df996aa7486fd
1,116
py
Python
compose/production/mongodb_backup/scripts/list_dbs.py
IMTEK-Simulation/mongodb-backup-container-image
b0e04c03cab9321d6b4277ee88412938fec95726
[ "MIT" ]
null
null
null
compose/production/mongodb_backup/scripts/list_dbs.py
IMTEK-Simulation/mongodb-backup-container-image
b0e04c03cab9321d6b4277ee88412938fec95726
[ "MIT" ]
null
null
null
compose/production/mongodb_backup/scripts/list_dbs.py
IMTEK-Simulation/mongodb-backup-container-image
b0e04c03cab9321d6b4277ee88412938fec95726
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 host = 'mongodb' port = 27017 ssl_ca_cert='/run/secrets/rootCA.pem' ssl_certfile='/run/secrets/tls_cert.pem' ssl_keyfile='/run/secrets/tls_key.pem' # don't turn these signal into exceptions, just die. # necessary for integrating into bash script pipelines seamlessly. import signal signal.signal(...
27.9
74
0.750896
f309f375f4df1f396c2fac2fda0007631441102b
1,087
py
Python
host.py
KeePinnnn/social_media_analytic
d13580c7dcfc87699bf42c0f870fefccc2f4c78b
[ "MIT" ]
1
2019-09-13T13:08:28.000Z
2019-09-13T13:08:28.000Z
host.py
KeePinnnn/social_media_analytic
d13580c7dcfc87699bf42c0f870fefccc2f4c78b
[ "MIT" ]
null
null
null
host.py
KeePinnnn/social_media_analytic
d13580c7dcfc87699bf42c0f870fefccc2f4c78b
[ "MIT" ]
null
null
null
from flask import Flask, send_from_directory, request, Response, render_template, jsonify from test import demo import subprocess import os app = Flask(__name__, static_folder='static') if __name__ == "__main__": app.run(debug=True)
26.512195
89
0.620055
f30ad04d785ff96d12b9344dbb04adb8373f99e0
5,985
py
Python
venv/lib/python3.6/site-packages/torch/_jit_internal.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
venv/lib/python3.6/site-packages/torch/_jit_internal.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/torch/_jit_internal.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
""" The weak_script annotation needs to be here instead of inside torch/jit/ so it can be used in other places in torch/ (namely torch.nn) without running into circular dependency problems """ import weakref import inspect try: import builtins # PY3 except Exception: import __builtin__ as builtins # PY2 # T...
29.628713
92
0.671846
f30afc0871d71087c3fea4199baf57d7f3c9c853
706
py
Python
examples/qiushi.py
qDonl/Spider
ec7e7519b173b004314fc41cf1a65c2a662eb8d5
[ "Unlicense" ]
null
null
null
examples/qiushi.py
qDonl/Spider
ec7e7519b173b004314fc41cf1a65c2a662eb8d5
[ "Unlicense" ]
null
null
null
examples/qiushi.py
qDonl/Spider
ec7e7519b173b004314fc41cf1a65c2a662eb8d5
[ "Unlicense" ]
null
null
null
import re, requests if __name__ == '__main__': main()
30.695652
138
0.589235
f30c9db8e27b84a58028614e5f7dd98149676ac3
4,267
py
Python
benchmark/python/benchmark/benchmark_main.py
toschmidt/pg-cv
897909fdb2a7824137f2128c6bd98151f6ed3cf4
[ "MIT" ]
3
2021-03-19T04:52:26.000Z
2021-09-13T14:11:44.000Z
benchmark/python/benchmark/benchmark_main.py
toschmidt/pg-cv
897909fdb2a7824137f2128c6bd98151f6ed3cf4
[ "MIT" ]
null
null
null
benchmark/python/benchmark/benchmark_main.py
toschmidt/pg-cv
897909fdb2a7824137f2128c6bd98151f6ed3cf4
[ "MIT" ]
null
null
null
from benchmark_query import BenchmarkQuery from clear import ClearViews, ClearQuery, ClearPublic from compare_query import CompareQuery from database import Database from setup import SetupPublic, SetupViews, SetupQuery from timing import Timing # remove all possible side effects of a query # setup query and corres...
33.865079
85
0.644715
f30dee16b7aab145441edae420bc159552e96a76
3,787
py
Python
nelpy/plotting/decoding.py
shayokdutta/nelpy_modified
8f3bd505beed570bfe917ed0a7f1d8c13f31b69a
[ "MIT" ]
null
null
null
nelpy/plotting/decoding.py
shayokdutta/nelpy_modified
8f3bd505beed570bfe917ed0a7f1d8c13f31b69a
[ "MIT" ]
null
null
null
nelpy/plotting/decoding.py
shayokdutta/nelpy_modified
8f3bd505beed570bfe917ed0a7f1d8c13f31b69a
[ "MIT" ]
null
null
null
__all__ = ['plot_cum_error_dist'] import numpy as np # import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.patches as patches from mpl_toolkits.axes_grid.inset_locator import inset_axes import itertools from . import palettes # colors = itertools.cycle(npl.palettes.color_palette(palette="sweet",...
32.930435
125
0.601532
f30ee9cbdc128ebb414011f1922779899d37a824
77
py
Python
code/abc122_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/abc122_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/abc122_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
b=input() print("A" if b=="T" else "T" if b=="A" else "G" if b=="C" else "C")
38.5
67
0.506494
f30f0fecb3a5195d2294443d51e5048fb142c4a9
847
py
Python
setup.py
carrasquel/wikipit
b8d2f870406eef866f68a4f7e5caca5398a671c2
[ "MIT" ]
1
2020-05-17T14:53:23.000Z
2020-05-17T14:53:23.000Z
setup.py
carrasquel/wikipit
b8d2f870406eef866f68a4f7e5caca5398a671c2
[ "MIT" ]
1
2020-05-18T21:58:06.000Z
2020-05-18T21:58:06.000Z
setup.py
carrasquel/wikipit
b8d2f870406eef866f68a4f7e5caca5398a671c2
[ "MIT" ]
1
2020-05-17T18:15:48.000Z
2020-05-17T18:15:48.000Z
"""Setup specifications for gitignore project.""" from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name="wikipit", ...
24.911765
75
0.662338
f31108a183ca826267db22b5fdc9dd872d8b503e
1,469
py
Python
samples.py
daimeng/py-geode
a4146804e4def71a6b430e5a16f6e0b1a65deefe
[ "MIT" ]
null
null
null
samples.py
daimeng/py-geode
a4146804e4def71a6b430e5a16f6e0b1a65deefe
[ "MIT" ]
9
2018-11-15T00:44:11.000Z
2019-03-01T02:52:34.000Z
samples.py
daimeng/py-geode
a4146804e4def71a6b430e5a16f6e0b1a65deefe
[ "MIT" ]
null
null
null
import aiohttp import time import ujson import asyncio import prettyprinter import numpy as np import pandas as pd from geode.dispatcher import AsyncDispatcher prettyprinter.install_extras(include=['dataclasses']) pd.set_option('display.float_format', '{:.4f}'.format) if __name__ == '__main__': asyncio.run(mai...
27.203704
76
0.538462
f3126093965615fe8a8564523762df648831f740
171
py
Python
functional_tests.py
idanmel/soccer_friends
db370c384e99308c5f6a39a18eac1556b83cc786
[ "MIT" ]
null
null
null
functional_tests.py
idanmel/soccer_friends
db370c384e99308c5f6a39a18eac1556b83cc786
[ "MIT" ]
null
null
null
functional_tests.py
idanmel/soccer_friends
db370c384e99308c5f6a39a18eac1556b83cc786
[ "MIT" ]
null
null
null
from selenium import webdriver browser = webdriver.Firefox() browser.get('http://localhost:8000') try: assert 'Django' in browser.title finally: browser.close()
17.1
36
0.730994
f3128d3872baa827767bd09bf278c2956175ee90
963
py
Python
lorenzsj/blog/views.py
lorenzsj/lorenzsj
631c6632f8fe70a021836c52aafd8746e13fc8a8
[ "MIT" ]
null
null
null
lorenzsj/blog/views.py
lorenzsj/lorenzsj
631c6632f8fe70a021836c52aafd8746e13fc8a8
[ "MIT" ]
null
null
null
lorenzsj/blog/views.py
lorenzsj/lorenzsj
631c6632f8fe70a021836c52aafd8746e13fc8a8
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import viewsets from rest_framework import permissions from rest_framework.response import Response from blog.models import Post from blog.serializers import PostSerializer from blog.serializers import UserSerializer from blog.permissions import IsAuthor...
31.064516
74
0.764278
f3133d707d13f1d41040304efdb1e48fd46e0e3f
4,270
py
Python
src/piminder_service/resources/db_autoinit.py
ZAdamMac/pyminder
059f57cb7cea4f517f77b1bbf391ce99f25d83bb
[ "MIT" ]
null
null
null
src/piminder_service/resources/db_autoinit.py
ZAdamMac/pyminder
059f57cb7cea4f517f77b1bbf391ce99f25d83bb
[ "MIT" ]
3
2021-05-05T21:08:24.000Z
2021-06-23T10:47:40.000Z
src/piminder_service/resources/db_autoinit.py
ZAdamMac/pyminder
059f57cb7cea4f517f77b1bbf391ce99f25d83bb
[ "MIT" ]
null
null
null
""" This script is a component of Piminder's back-end controller. Specifically, it is a helper utility to be used to intialize a database for the user and message tables. Author: Zac Adam-MacEwen (zadammac@kenshosec.com) An Arcana Labs utility. Produced under license. Full license and documentation to be found at: htt...
31.865672
111
0.646136
f314e1c52a7971b18107dd68a650e6479dbddda8
7,455
py
Python
conftest.py
jirikuncar/renku-python
69df9ea1d5db3c63fd2ea3537c7e46d079360c8f
[ "Apache-2.0" ]
null
null
null
conftest.py
jirikuncar/renku-python
69df9ea1d5db3c63fd2ea3537c7e46d079360c8f
[ "Apache-2.0" ]
null
null
null
conftest.py
jirikuncar/renku-python
69df9ea1d5db3c63fd2ea3537c7e46d079360c8f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 - Swiss Data Science Center (SDSC) # A partnership between cole Polytechnique Fdrale de Lausanne (EPFL) and # Eidgenssische Technische Hochschule Zrich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
27.921348
78
0.643997
f315277c03047d954514d2d9908c6f026aae74fa
624
py
Python
kuchinawa/Logger.py
threemeninaboat3247/kuchinawa
81094e358e4dad9529a15fa526f2307caaceb82e
[ "MIT" ]
4
2017-11-29T04:14:19.000Z
2022-01-21T13:00:23.000Z
kuchinawa/Logger.py
threemeninaboat3247/kuchinawa
81094e358e4dad9529a15fa526f2307caaceb82e
[ "MIT" ]
3
2018-05-07T14:49:29.000Z
2018-05-08T11:49:17.000Z
kuchinawa/Logger.py
threemeninaboat3247/kuchinawa
81094e358e4dad9529a15fa526f2307caaceb82e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ --- Description --- Module: Logger.py Abstract: A module for logging Modified: threemeninaboat3247 2018/04/30 --- End --- """ # Standard library imports import logging logger = logging.getLogger('Kuchinawa Log') # logger.setLevel(10) # ...
20.129032
81
0.674679
f3159c44193bd89a772b6f2bca9dbffb2ffaa8bc
5,933
py
Python
test/search/capacity.py
sbutler/spotseeker_server
02bd2d646eab9f26ddbe8536b30e391359796c9c
[ "Apache-2.0" ]
null
null
null
test/search/capacity.py
sbutler/spotseeker_server
02bd2d646eab9f26ddbe8536b30e391359796c9c
[ "Apache-2.0" ]
null
null
null
test/search/capacity.py
sbutler/spotseeker_server
02bd2d646eab9f26ddbe8536b30e391359796c9c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2012, 2013 UW Information Technology, University of Washington 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 r...
36.398773
98
0.532783
f3163b561595dcd3e021c0a5f070a6337bbb8499
1,745
py
Python
model/k1_clustering_pre-processing.py
not-a-hot-dog/spotify_project
b928fecb136cffdd62c650b054ca543047800f11
[ "MIT" ]
null
null
null
model/k1_clustering_pre-processing.py
not-a-hot-dog/spotify_project
b928fecb136cffdd62c650b054ca543047800f11
[ "MIT" ]
1
2019-12-08T17:23:49.000Z
2019-12-08T17:23:49.000Z
model/k1_clustering_pre-processing.py
not-a-hot-dog/spotify_project
b928fecb136cffdd62c650b054ca543047800f11
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from model.helper_functions import build_playlist_features print('Reading data into memory') pid_list = np.genfromtxt('../data/train_pids.csv', skip_header=1, dtype=int) playlistfile = '../data/playlists.csv' playlist_df = pd.read_csv(playlistfile) trackfile = '../data/songs_1000...
52.878788
117
0.837249
f3166c7800fb37b00a35784025071d85b46a881a
731
py
Python
app/main/__init__.py
a2hsh/udacity-fsnd-capstone
545f78111784756f469127bcb4a656306a7fe242
[ "MIT" ]
null
null
null
app/main/__init__.py
a2hsh/udacity-fsnd-capstone
545f78111784756f469127bcb4a656306a7fe242
[ "MIT" ]
null
null
null
app/main/__init__.py
a2hsh/udacity-fsnd-capstone
545f78111784756f469127bcb4a656306a7fe242
[ "MIT" ]
null
null
null
# routes Blueprint from flask import Blueprint, jsonify, request, redirect, render_template from flask_cors import CORS from os import environ # initializing the blueprint main = Blueprint('main', __name__) CORS(main, resources={r'*': {'origins': '*'}}) # importing routes from . import actors, movies, err...
31.782609
73
0.675787
f316cbca5e61cde2ebe07f8eb9690a7626e13407
497
py
Python
agenda/tests/test_models.py
migueleichler/django-tdd
5b8bd6088b5e2de4d70026b761391bce3aa52f32
[ "MIT" ]
null
null
null
agenda/tests/test_models.py
migueleichler/django-tdd
5b8bd6088b5e2de4d70026b761391bce3aa52f32
[ "MIT" ]
null
null
null
agenda/tests/test_models.py
migueleichler/django-tdd
5b8bd6088b5e2de4d70026b761391bce3aa52f32
[ "MIT" ]
null
null
null
from django.test import TestCase from agenda.models import Compromisso from model_mommy import mommy
27.611111
75
0.750503
f31b214b07d8c2680f0f9e730882cb62c105cf97
1,868
py
Python
tests/test_crypto/test_registry/test_misc.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_crypto/test_registry/test_misc.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_crypto/test_registry/test_misc.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
31.133333
85
0.599036
f31c461ea88a83b782769751389f56772c713d60
1,457
py
Python
pyof/v0x05/asynchronous/table_status.py
mhaji007/python-openflow
25f032d660e648501d1e732969b6f91357ef5b66
[ "MIT" ]
null
null
null
pyof/v0x05/asynchronous/table_status.py
mhaji007/python-openflow
25f032d660e648501d1e732969b6f91357ef5b66
[ "MIT" ]
null
null
null
pyof/v0x05/asynchronous/table_status.py
mhaji007/python-openflow
25f032d660e648501d1e732969b6f91357ef5b66
[ "MIT" ]
null
null
null
"""Defines an Table Status Message.""" # System imports from enum import IntEnum # Local source tree imports from pyof.foundation.base import GenericMessage, GenericStruct from pyof.foundation.basic_types import BinaryData, FixedTypeList, UBInt16, UBInt8, UBInt32, UBInt64, Pad from pyof.v0x05.common.header import He...
26.490909
105
0.691833
f31ce1a1719984d1cf324a95ea4f226d430436e1
361
py
Python
DEQModel/utils/debug.py
JunLi-Galios/deq
80eb6b598357e8e01ad419126465fa3ed53b12c7
[ "MIT" ]
548
2019-09-05T04:25:21.000Z
2022-03-22T01:49:35.000Z
DEQModel/utils/debug.py
JunLi-Galios/deq
80eb6b598357e8e01ad419126465fa3ed53b12c7
[ "MIT" ]
21
2019-10-04T16:36:05.000Z
2022-03-24T02:20:28.000Z
DEQModel/utils/debug.py
JunLi-Galios/deq
80eb6b598357e8e01ad419126465fa3ed53b12c7
[ "MIT" ]
75
2019-09-05T22:40:32.000Z
2022-03-31T09:40:44.000Z
import torch from torch.autograd import Function
24.066667
70
0.65928
f31cf93ef20fe7554b80d699b5aa26fadaf86834
13,629
py
Python
feature_track_visualizer/visualizer.py
jfvilaro/rpg_feature_tracking_analysis
4c29a64cc07db44b43c12ff66c71d5c7da062c79
[ "MIT" ]
null
null
null
feature_track_visualizer/visualizer.py
jfvilaro/rpg_feature_tracking_analysis
4c29a64cc07db44b43c12ff66c71d5c7da062c79
[ "MIT" ]
null
null
null
feature_track_visualizer/visualizer.py
jfvilaro/rpg_feature_tracking_analysis
4c29a64cc07db44b43c12ff66c71d5c7da062c79
[ "MIT" ]
null
null
null
from os.path import isfile import os import cv2 from os.path import join import numpy as np import tqdm import random from big_pun.tracker_utils import filter_first_tracks, getTrackData
37.035326
131
0.556387
f31e643bb5106928ddc94996a97d51a1aa497458
12,163
py
Python
Polygon2-2.0.7/Polygon/IO.py
tangrams/landgrab
217699e4730a1bdb7c9e03bfd9c2c0c31950eb7c
[ "MIT" ]
20
2015-02-26T15:55:42.000Z
2021-07-30T00:19:31.000Z
Polygon2-2.0.7/Polygon/IO.py
tangrams/landgrab
217699e4730a1bdb7c9e03bfd9c2c0c31950eb7c
[ "MIT" ]
1
2018-04-02T12:13:30.000Z
2021-10-04T00:59:38.000Z
Polygon2-2.0.7/Polygon/IO.py
tangrams/landgrab
217699e4730a1bdb7c9e03bfd9c2c0c31950eb7c
[ "MIT" ]
5
2015-03-03T23:31:39.000Z
2018-01-17T03:13:34.000Z
# -*- coding: utf-8 -*- """ This module provides functions for reading and writing Polygons in different formats. The following write-methods will accept different argument types for the output. If ofile is None, the method will create and return a StringIO-object. If ofile is a string, a file with that name will b...
31.840314
128
0.564499
f3200d5d53315321e6ef6c3cef5d42425590c96b
743
py
Python
strings/reverse_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
null
null
null
strings/reverse_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
null
null
null
strings/reverse_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
3
2020-10-07T20:24:45.000Z
2020-12-16T04:53:19.000Z
from typing import List, Optional
28.576923
93
0.643338
f3212e189d04ba2e4747e03dc77f4721f12f30e5
14,706
py
Python
qnarre/prep/tokens/realm.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/realm.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/realm.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.707692
141
0.589963
f323bb4c6d1d42af8adea82f66966d109724eba9
29,495
py
Python
api/fileupload.py
subhendu01/Audio-FIle-Server
6c7f9a093e41f0750a0a8c4c1f0e48608215c8a6
[ "MIT" ]
5
2021-05-12T18:18:49.000Z
2022-01-06T12:35:35.000Z
api/fileupload.py
subhendu01/Audio-FIle-Server
6c7f9a093e41f0750a0a8c4c1f0e48608215c8a6
[ "MIT" ]
null
null
null
api/fileupload.py
subhendu01/Audio-FIle-Server
6c7f9a093e41f0750a0a8c4c1f0e48608215c8a6
[ "MIT" ]
null
null
null
import datetime, os, base64 from flask import Flask, jsonify, request, Blueprint from dbstore import dbconf import json from bson import json_util # process kill # lsof -i tcp:3000 file_upload = Blueprint('uploadAPI', __name__) app = Flask(__name__)
45.376923
137
0.398644
f324f6cba05e902a8556f523455c852d7fd15d3d
2,542
py
Python
dna/zfec/zfec/cmdline_zunfec.py
bobbae/examples
6c998e2af9a48f7173a0b6b1ff0176df7edceda5
[ "Unlicense" ]
null
null
null
dna/zfec/zfec/cmdline_zunfec.py
bobbae/examples
6c998e2af9a48f7173a0b6b1ff0176df7edceda5
[ "Unlicense" ]
null
null
null
dna/zfec/zfec/cmdline_zunfec.py
bobbae/examples
6c998e2af9a48f7173a0b6b1ff0176df7edceda5
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # zfec -- a fast C implementation of Reed-Solomon erasure coding with # command-line, C, and Python interfaces from __future__ import print_function import os, sys, argparse from zfec import filefec from zfec import __version__ as libversion __version__ = libversion # zfec -- fast forward er...
35.305556
149
0.663257
f327633efe0ce2c9e557f60f7f82ada184c4948d
576
py
Python
bottomline/blweb/migrations/0012_vehicleconfig_color.py
mcm219/BottomLine
db82eef403c79bffa3864c4db6bc336632abaca5
[ "MIT" ]
null
null
null
bottomline/blweb/migrations/0012_vehicleconfig_color.py
mcm219/BottomLine
db82eef403c79bffa3864c4db6bc336632abaca5
[ "MIT" ]
1
2021-06-14T02:20:40.000Z
2021-06-14T02:20:40.000Z
bottomline/blweb/migrations/0012_vehicleconfig_color.py
mcm219/BottomLine
db82eef403c79bffa3864c4db6bc336632abaca5
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-07-10 03:16 from django.db import migrations, models import django.db.models.deletion
28.8
211
0.663194
b823df535990bd76d900f1381be1d7cc948408cf
11,634
py
Python
src/acs_3dpsf.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2019-11-18T12:51:09.000Z
2019-12-11T03:13:51.000Z
src/acs_3dpsf.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
5
2017-06-09T10:06:27.000Z
2019-07-19T11:28:18.000Z
src/acs_3dpsf.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2017-07-19T15:48:33.000Z
2017-08-09T16:07:20.000Z
import numpy as np from . import acs_map_xy as acs_map # ********************************************************************** # ********************************************************************** # ********************************************************************** # *************************************...
39.979381
122
0.565068
b824108791760c3044be86fca8557a92a30f2d41
27,400
py
Python
gsf/function_class.py
mtakahiro/gsf
c09c5d32a45b0277c469d2d3cb2f8c11f1fc0278
[ "MIT" ]
9
2019-08-23T19:00:54.000Z
2022-02-23T17:57:41.000Z
gsf/function_class.py
mtakahiro/gsf
c09c5d32a45b0277c469d2d3cb2f8c11f1fc0278
[ "MIT" ]
17
2020-05-22T17:41:15.000Z
2022-03-20T03:32:48.000Z
gsf/function_class.py
mtakahiro/gsf
c09c5d32a45b0277c469d2d3cb2f8c11f1fc0278
[ "MIT" ]
1
2020-02-01T22:55:37.000Z
2020-02-01T22:55:37.000Z
import numpy as np import sys import scipy.interpolate as interpolate import asdf from .function import * from .basic_func import Basic
31.823461
123
0.464964
b825f9f00f6901c5d7cf23cfa47cb3197933eecd
1,855
py
Python
loadbalanceRL/utils/exceptions.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
11
2018-10-29T06:50:43.000Z
2022-03-28T14:26:09.000Z
loadbalanceRL/utils/exceptions.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
1
2022-03-01T13:46:25.000Z
2022-03-01T13:46:25.000Z
loadbalanceRL/utils/exceptions.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
6
2019-02-05T20:01:53.000Z
2020-09-04T12:30:00.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Definition of all Rainman2 exceptions """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)' __date__ = 'Wednesday, February 14th 2018, 11:38:08 am'
21.079545
77
0.698652
b826697289acc6bb7f13171d32f3b15f39b8d6bc
411
py
Python
mundo-1/ex-014.py
guilhermesm28/python-curso-em-video
50ab4e76b1903e62d4daa579699c5908329b26c8
[ "MIT" ]
null
null
null
mundo-1/ex-014.py
guilhermesm28/python-curso-em-video
50ab4e76b1903e62d4daa579699c5908329b26c8
[ "MIT" ]
null
null
null
mundo-1/ex-014.py
guilhermesm28/python-curso-em-video
50ab4e76b1903e62d4daa579699c5908329b26c8
[ "MIT" ]
null
null
null
# Escreva um programa que converta uma temperatura digitando em graus Celsius e converta para graus Fahrenheit. print('-' * 100) print('{: ^100}'.format('EXERCCIO 014 - CONVERSOR DE TEMPERATURAS')) print('-' * 100) c = float(input('Informe a temperatura em C: ')) f = ((9 * c) / 5) + 32 print(f'A temperatura de {c:.2...
27.4
111
0.6691
b828874e2b78ad751bb04188c59615f7f159fd1a
848
py
Python
access_apps/controllers/main.py
aaltinisik/access-addons
933eef8b7abd5d2ac0b07b270271cb5aed3b23b6
[ "MIT" ]
null
null
null
access_apps/controllers/main.py
aaltinisik/access-addons
933eef8b7abd5d2ac0b07b270271cb5aed3b23b6
[ "MIT" ]
null
null
null
access_apps/controllers/main.py
aaltinisik/access-addons
933eef8b7abd5d2ac0b07b270271cb5aed3b23b6
[ "MIT" ]
1
2021-02-15T03:14:52.000Z
2021-02-15T03:14:52.000Z
from odoo import SUPERUSER_ID, http from odoo.http import request from odoo.addons.web_settings_dashboard.controllers.main import WebSettingsDashboard
44.631579
105
0.740566
b829ed55de73d723e9907e52986b8d92ed93231d
686
py
Python
dev/test.py
SmartBadge/SmartBadge
7bddc1ec230bcf5fa6185999b0b0c0e448528629
[ "MIT" ]
null
null
null
dev/test.py
SmartBadge/SmartBadge
7bddc1ec230bcf5fa6185999b0b0c0e448528629
[ "MIT" ]
null
null
null
dev/test.py
SmartBadge/SmartBadge
7bddc1ec230bcf5fa6185999b0b0c0e448528629
[ "MIT" ]
null
null
null
import game as g import time as t r = g.Game(6,6, debugger = False) player1 = g.Sprite("Player", 1, 2) player2 = g.Sprite("Player", 1, 2) ball = g.Sprite("ball", 1, 1) start_game() wait(4) r.move_sprite(ball,-1,-1) r.move_sprite(player1, 0,-2) r.move_sprite(player1, 0, 3) r.print() while(ball.x < 7): r.move_sp...
17.589744
47
0.610787
b82a954625c33b4891411d888f3fa383b4a7acc9
662
py
Python
itermembers.py
hanshuaigithub/pyrogram_project
539ebbfa00d5381b4495450580f9c77ee8be9d11
[ "MIT" ]
null
null
null
itermembers.py
hanshuaigithub/pyrogram_project
539ebbfa00d5381b4495450580f9c77ee8be9d11
[ "MIT" ]
null
null
null
itermembers.py
hanshuaigithub/pyrogram_project
539ebbfa00d5381b4495450580f9c77ee8be9d11
[ "MIT" ]
null
null
null
from pyrogram import Client import json api_id = 2763716 api_hash = "d4c2d2e53efe8fbb71f0d64deb84b3da" app = Client("+639277144517", api_id, api_hash) target = "cnsex8" # Target channel/supergroup sigui588 cnsex8 with app: members = app.iter_chat_members(target) print(f"Chanel members counts : {len(members)...
26.48
86
0.706949
b82b18f5c487a5e8f40d5acca12f69514df44f14
590
py
Python
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
__title__ = "FisherExactTest" __version__ = "1.0.1" __author__ = "Ae-Mc" __author_email__ = "ae_mc@mail.ru" __description__ = "Two tailed Fisher's exact test wrote in pure Python" __url__ = "https://github.com/Ae-Mc/Fisher" __classifiers__ = [ "Programming Language :: Python :: 3 :: Only", "Programming Language...
34.705882
71
0.661017
b82b81bc5dbddba7f6dc9e8f6bf26affa5968f16
875
py
Python
mimosa/pylib/mimosa_reader.py
rafelafrance/traiter_mimosa
7a248b610747d5d0e5ce5473953cbdc90d336aae
[ "MIT" ]
null
null
null
mimosa/pylib/mimosa_reader.py
rafelafrance/traiter_mimosa
7a248b610747d5d0e5ce5473953cbdc90d336aae
[ "MIT" ]
null
null
null
mimosa/pylib/mimosa_reader.py
rafelafrance/traiter_mimosa
7a248b610747d5d0e5ce5473953cbdc90d336aae
[ "MIT" ]
null
null
null
"""Parse PDFs about mimosas.""" from tqdm import tqdm from . import mimosa_pipeline from . import sentence_pipeline from .parsed_data import Datum
25
82
0.584
b82ba735b06701323afbbc1adb2108b231b98638
1,647
py
Python
CxMetrics/calcMetrics.py
Danielhiversen/pyCustusx
5a7fca51d885ad30f4db46ab725485d86fb2d17a
[ "MIT" ]
null
null
null
CxMetrics/calcMetrics.py
Danielhiversen/pyCustusx
5a7fca51d885ad30f4db46ab725485d86fb2d17a
[ "MIT" ]
null
null
null
CxMetrics/calcMetrics.py
Danielhiversen/pyCustusx
5a7fca51d885ad30f4db46ab725485d86fb2d17a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Oct 24 11:39:42 2015 @author: dahoiv """ import numpy as np if __name__ == '__main__': filePath1="/home/dahoiv/disk/data/brainshift/079_Tumor.cx3/Logs/metrics_a.txt" (mr_points_1,us_points_1)=loadMetrics(filePath1) calcDist(mr_points_1,us_poin...
32.294118
82
0.571342
b82dae5c13359feb72d2a0825f3801687d516058
118
py
Python
twodspec/extern/__init__.py
hypergravity/songcn
e2b071c932720d02e5f085884c83c46baba7802d
[ "MIT" ]
null
null
null
twodspec/extern/__init__.py
hypergravity/songcn
e2b071c932720d02e5f085884c83c46baba7802d
[ "MIT" ]
null
null
null
twodspec/extern/__init__.py
hypergravity/songcn
e2b071c932720d02e5f085884c83c46baba7802d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ['interpolate', 'polynomial', 'SmoothSpline'] from .interpolate import SmoothSpline
29.5
55
0.70339
b82f6fabf22a5cbcfa7dd2e7ea076e9e772feb3f
3,286
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/Transport/tube.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/Transport/tube.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/Transport/tube.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Weights-Correlations-Tube_Wing # tube.py # # Created: Jan 2014, A. Wendorff # Modified: Feb 2014, A. Wendorff # Feb 2016, E. Botero # ---------------------------------------------------------------------- # Imports # --------------------------------------------------------------------...
45.013699
123
0.5
b82ff818b8e67f8cae3f7360326180bd7e14f756
3,837
py
Python
Dependencies/02_macOS/40_gtk+/x64/lib/gobject-introspection/giscanner/annotationmain.py
bognikol/Eleusis
ee518ede31893689eb6d3c5539e0bd757aeb0294
[ "MIT" ]
4
2019-05-31T19:55:23.000Z
2020-10-27T10:00:32.000Z
Dependencies/02_macOS/40_gtk+/x64/lib/gobject-introspection/giscanner/annotationmain.py
bognikol/Eleusis
ee518ede31893689eb6d3c5539e0bd757aeb0294
[ "MIT" ]
null
null
null
Dependencies/02_macOS/40_gtk+/x64/lib/gobject-introspection/giscanner/annotationmain.py
bognikol/Eleusis
ee518ede31893689eb6d3c5539e0bd757aeb0294
[ "MIT" ]
3
2019-04-29T14:09:38.000Z
2020-10-27T10:00:33.000Z
# -*- Mode: Python -*- # GObject-Introspection - a framework for introspecting GObject libraries # Copyright (C) 2010 Johan Dahlin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either versio...
36.542857
89
0.65963
b830ed284183da0f588ffc8416e532df6cb6e5aa
1,219
py
Python
src/tools/json2db.py
chobocho/ChoboMemo2
d3883e20d7c69c48477d1178120e0e32c062b27f
[ "MIT" ]
null
null
null
src/tools/json2db.py
chobocho/ChoboMemo2
d3883e20d7c69c48477d1178120e0e32c062b27f
[ "MIT" ]
null
null
null
src/tools/json2db.py
chobocho/ChoboMemo2
d3883e20d7c69c48477d1178120e0e32c062b27f
[ "MIT" ]
null
null
null
import os import sys import json from manager import dbmanager if __name__ == '__main__': if len(sys.argv) < 3: print("Usage: json2db json_file db_file") else: main(sys.argv[1:])
23
56
0.525021
b8317e86fff68e0107933de518fdf61bc7534d00
171
py
Python
Configuration/ProcessModifiers/python/trackingMkFitTobTecStep_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/ProcessModifiers/python/trackingMkFitTobTecStep_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/ProcessModifiers/python/trackingMkFitTobTecStep_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # This modifier sets replaces the default pattern recognition with mkFit for tobTecStep trackingMkFitTobTecStep = cms.Modifier()
34.2
87
0.836257
b8327398b4c50fa047db432d9765d37a5dd0095d
3,772
py
Python
config/config.py
rossja/Docker-Minecraft-Overviewer
bb2285f5af723a74b1365bbcbe284b9e5ce85245
[ "MIT" ]
12
2019-12-14T13:58:44.000Z
2022-03-12T10:43:43.000Z
config/config.py
rossja/Docker-Minecraft-Overviewer
bb2285f5af723a74b1365bbcbe284b9e5ce85245
[ "MIT" ]
2
2019-02-04T09:46:10.000Z
2019-02-05T10:05:56.000Z
config/config.py
rossja/Docker-Minecraft-Overviewer
bb2285f5af723a74b1365bbcbe284b9e5ce85245
[ "MIT" ]
5
2020-01-29T20:38:35.000Z
2021-12-18T19:56:49.000Z
# My config.py script for overviewer: worlds["pudel"] = "/tmp/server/world/" worlds["pudel_nether"] = "/tmp/server/world_nether/" texturepath = "/tmp/overviewer/client.jar" processes = 2 outputdir = "/tmp/export/" my_cave = [Base(), EdgeLines(), Cave(only_lit=True), DepthTinting()] my_nowater = [Base(), EdgeLines(), No...
26.013793
82
0.593054
b832db34004caeef160a328496546197b3b692d7
1,764
py
Python
SurveyManager/survey/models.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/models.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/models.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
30.413793
92
0.786848
b8361f78932036e9f23fbe61c22ab2ba8ac449f7
3,150
py
Python
pythainlp/corpus/__init__.py
petetanru/pythainlp
83fa999336ce8c7f7b5431fc2fc41c53c5cb7604
[ "Apache-2.0" ]
1
2018-10-10T19:01:43.000Z
2018-10-10T19:01:43.000Z
pythainlp/corpus/__init__.py
Khawoat6/pythainlp
05979c0ac9a596bb7957fb8a050a32c87ea098e8
[ "Apache-2.0" ]
null
null
null
pythainlp/corpus/__init__.py
Khawoat6/pythainlp
05979c0ac9a596bb7957fb8a050a32c87ea098e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import,unicode_literals from pythainlp.tools import get_path_db,get_path_data from tinydb import TinyDB,Query from future.moves.urllib.request import urlopen from tqdm import tqdm import requests import os import math import requests from nltk.corpus import names ...
40.384615
124
0.586032
b83a4b8131231e8ffeccb27881d8404fa73c602e
649
py
Python
dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
# Given an integer array nums, find the sum of the elements between indices i and j (i j), inclusive. # Example: # Given nums = [-2, 0, 3, -5, 2, -1] # sumRange(0, 2) -> 1 # sumRange(2, 5) -> -1 # sumRange(0, 5) -> -3 # Time: O(n) # Space: O(n) # Difficulty: easy
20.935484
103
0.497689
b83d0a4d0944019fd7f267fd6043e0bc64496350
8,257
py
Python
py/garage/garage/asyncs/messaging/reqrep.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
py/garage/garage/asyncs/messaging/reqrep.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
py/garage/garage/asyncs/messaging/reqrep.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
__all__ = [ 'Terminated', 'Unavailable', 'client', 'server', ] import logging import time import curio import nanomsg as nn from garage import asyncs from garage.assertions import ASSERT from garage.asyncs import futures from garage.asyncs import queues LOG = logging.getLogger(__name__) def _t...
33.294355
76
0.608696
b83f80c89541762b358261a94161b094315b1f52
1,412
py
Python
fasm_utils/segbits.py
antmicro/quicklogic-fasm-utils
83c867e3269e1186b9bcd71767bb810c82b3905d
[ "Apache-2.0" ]
null
null
null
fasm_utils/segbits.py
antmicro/quicklogic-fasm-utils
83c867e3269e1186b9bcd71767bb810c82b3905d
[ "Apache-2.0" ]
1
2021-06-25T15:38:43.000Z
2021-06-25T15:38:43.000Z
fasm_utils/segbits.py
antmicro/quicklogic-fasm-utils
83c867e3269e1186b9bcd71767bb810c82b3905d
[ "Apache-2.0" ]
1
2020-05-18T12:04:40.000Z
2020-05-18T12:04:40.000Z
from collections import namedtuple Bit = namedtuple('Bit', 'x y isset') def parsebit(val: str): """Parses bit notation for .db files to Bit class. Parameters ---------- val: str A string containing .db bit notation, i.e. "!012_23" => (12, 23, False) Returns ------- Bit: A named...
21.723077
79
0.563739
b84015aceb9a117ef3d45102bccf99b010e44535
927
py
Python
docs/_api/_build/delira/logging/visdom_backend.py
gedoensmax/delira
545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6
[ "BSD-2-Clause" ]
1
2019-10-03T21:00:20.000Z
2019-10-03T21:00:20.000Z
docs/_api/_build/delira/logging/visdom_backend.py
gedoensmax/delira
545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6
[ "BSD-2-Clause" ]
null
null
null
docs/_api/_build/delira/logging/visdom_backend.py
gedoensmax/delira
545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6
[ "BSD-2-Clause" ]
null
null
null
import tensorboardX from threading import Event from queue import Queue from delira.logging.writer_backend import WriterLoggingBackend
23.769231
65
0.593312
b842118c3400dc6b3842e04f1499ebec381bda43
7,706
py
Python
node/substitute.py
treverson/coin-buildimage
a868250733f65140a6d11a5fbd3b4a7e1509f8d5
[ "MIT" ]
1
2018-09-28T11:51:06.000Z
2018-09-28T11:51:06.000Z
node/substitute.py
treverson/coin-buildimage
a868250733f65140a6d11a5fbd3b4a7e1509f8d5
[ "MIT" ]
null
null
null
node/substitute.py
treverson/coin-buildimage
a868250733f65140a6d11a5fbd3b4a7e1509f8d5
[ "MIT" ]
null
null
null
#! /usr/bin/env python3.5 # vim:ts=4:sw=4:ai:et:si:sts=4 import argparse import json import re import os import uuid import shutil import sys import requests filterRe = re.compile(r'(?P<block>^%=(?P<mode>.)?\s+(?P<label>.*?)\s+(?P<value>[^\s\n$]+)(?:\s*.*?)?^(?P<section>.*?)^=%.*?$)', re.M | re.S) subItemRe = re.com...
29.189394
140
0.616922
b842ca4df0f85a27ac428ca98c508bc0fd8473bb
379
py
Python
pages/page1.py
kalimuthu123/dash-app
90bf4c570abb1770ea0f082989e8f97d62b98346
[ "MIT" ]
null
null
null
pages/page1.py
kalimuthu123/dash-app
90bf4c570abb1770ea0f082989e8f97d62b98346
[ "MIT" ]
null
null
null
pages/page1.py
kalimuthu123/dash-app
90bf4c570abb1770ea0f082989e8f97d62b98346
[ "MIT" ]
null
null
null
import dash_html_components as html from utils import Header
25.266667
72
0.564644
b8431428845abd267d2447bb2c266f7ad3458a5b
318
py
Python
polrev/offices/admin/office_admin.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
1
2021-12-10T05:54:16.000Z
2021-12-10T05:54:16.000Z
polrev/offices/admin/office_admin.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
null
null
null
polrev/offices/admin/office_admin.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
null
null
null
from django.contrib import admin from offices.models import OfficeType, Office admin.site.register(OfficeType, OfficeTypeAdmin) ''' class OfficeAdmin(admin.ModelAdmin): search_fields = ['title'] admin.site.register(Office, OfficeAdmin) '''
22.714286
48
0.77044
b84346e9d501185aa45dba40c444e9fe20860224
6,511
py
Python
tests/spec/test_schema_parser.py
tclh123/aio-openapi
7c63eb628b7735501508aea6c83e458715fb070b
[ "BSD-3-Clause" ]
19
2019-03-04T22:50:38.000Z
2022-03-02T09:28:17.000Z
tests/spec/test_schema_parser.py
tclh123/aio-openapi
7c63eb628b7735501508aea6c83e458715fb070b
[ "BSD-3-Clause" ]
4
2019-03-04T23:03:08.000Z
2022-01-16T11:32:54.000Z
tests/spec/test_schema_parser.py
tclh123/aio-openapi
7c63eb628b7735501508aea6c83e458715fb070b
[ "BSD-3-Clause" ]
3
2020-05-20T17:43:08.000Z
2021-10-06T10:47:41.000Z
from dataclasses import dataclass, field from datetime import datetime from enum import Enum from typing import Dict, List import pytest from openapi.data.fields import ( as_field, bool_field, data_field, date_time_field, number_field, ) from openapi.exc import InvalidSpecException, InvalidTypeExc...
30.283721
85
0.587775