hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
e6e519c34806df836f150fb2649703603da92026
1,580
py
Python
src/users/migrations/0014_auto_20200801_1008.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
null
null
null
src/users/migrations/0014_auto_20200801_1008.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
5
2021-03-19T12:06:16.000Z
2022-02-10T11:44:27.000Z
src/users/migrations/0014_auto_20200801_1008.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-08-01 08:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0013_auto_20200731_1810'), ] operations = [ migrations.AlterField( model_name='profile',...
49.375
444
0.599367
1,698
0.931943
0
0
0
0
0
0
762
0.418222
e6e54d8b26245cebf1276442b433cc49edf1fc78
762
py
Python
caller_v3/app/api/v1/docker.py
tienthegainz/pipeline_executor_docker_call
b2b9478056e4b818f5963b0b266375fe6d39627a
[ "MIT" ]
null
null
null
caller_v3/app/api/v1/docker.py
tienthegainz/pipeline_executor_docker_call
b2b9478056e4b818f5963b0b266375fe6d39627a
[ "MIT" ]
null
null
null
caller_v3/app/api/v1/docker.py
tienthegainz/pipeline_executor_docker_call
b2b9478056e4b818f5963b0b266375fe6d39627a
[ "MIT" ]
null
null
null
from typing import Any, List, Callable from fastapi import APIRouter, HTTPException, status, BackgroundTasks from app import schemas from app.core import docker_client import json from copy import deepcopy router = APIRouter() @router.get("/images", response_model=schemas.DockerImageRespond) def get_docker_image(...
28.222222
99
0.732283
0
0
0
0
526
0.690289
0
0
56
0.073491
e6e829827c4e2ffcbb07be400f025860fb9ae813
10,409
py
Python
keras/models.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
300
2018-04-04T05:01:21.000Z
2022-02-25T18:56:04.000Z
keras/models.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
163
2018-04-03T17:41:22.000Z
2021-09-03T16:44:04.000Z
keras/models.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
72
2018-04-21T06:42:30.000Z
2021-12-26T06:02:42.000Z
"""Model-related utilities. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from . import backend as K from .utils.generic_utils import has_arg from .utils.generic_utils import to_list from .engine.input_layer import Input from .engine.input_layer import...
41.142292
77
0.593525
0
0
0
0
0
0
0
0
3,583
0.344221
e6e833fb51a1ec7a1130669c82455b2f1f57a22e
53,602
py
Python
pythonFiles/tests/testing_tools/adapter/test_functional.py
erinxocon/vscode-python
e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1
[ "MIT" ]
null
null
null
pythonFiles/tests/testing_tools/adapter/test_functional.py
erinxocon/vscode-python
e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1
[ "MIT" ]
null
null
null
pythonFiles/tests/testing_tools/adapter/test_functional.py
erinxocon/vscode-python
e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from __future__ import unicode_literals import json import os import os.path import subprocess import sys import unittest import pytest from ...__main__ import TESTING_TOOLS_ROOT CWD = os.getcwd() DATA_DIR = os.path.join...
43.828291
96
0.491605
5,537
0.103298
0
0
5,561
0.103746
0
0
26,837
0.500672
e6e86dd990b3c5cac611e5ac9c031855b2eafefb
2,223
py
Python
mmgp/kernels/wavelet_slice.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
mmgp/kernels/wavelet_slice.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
mmgp/kernels/wavelet_slice.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
''' Wavelet kernel slice allows kernel operation on feature subset active_dims is iterable of feature dimensions to extract input_dim must equal dimension defined by active_dims ''' import numpy as np import tensorflow as tf from .. import util from . import kernel from .kernel_extras import * class WaveletSlice(ke...
34.734375
113
0.597391
1,923
0.865047
0
0
0
0
0
0
336
0.151147
e6e91782ecbf3d082de6c4e80c1d94b9a36175e3
8,084
py
Python
transform.py
latenite4/python3
30e367471ba48e5fc0fb07327b636fcb9959e3e0
[ "Apache-2.0" ]
null
null
null
transform.py
latenite4/python3
30e367471ba48e5fc0fb07327b636fcb9959e3e0
[ "Apache-2.0" ]
null
null
null
transform.py
latenite4/python3
30e367471ba48e5fc0fb07327b636fcb9959e3e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 #program to parse png images and change images # cmd: python3 transform.py # you must have local input/ and output/ directories # # name: R. Melton # date: 12/27/20 # cmdline: python transform.py cmd show image='city.png' --ulx=1 --uly=2 --brx=0 --bry=9 # python transform.py show city.png #...
35.30131
162
0.671326
0
0
0
0
0
0
0
0
3,569
0.441489
e6e98c6da8123831026901d34d51a2a66f9be3c8
4,563
py
Python
plugins/wyr.py
Jeglet/pcbot
89178d4982151adb2fadfacdc3080e46cda9e891
[ "MIT" ]
null
null
null
plugins/wyr.py
Jeglet/pcbot
89178d4982151adb2fadfacdc3080e46cda9e891
[ "MIT" ]
null
null
null
plugins/wyr.py
Jeglet/pcbot
89178d4982151adb2fadfacdc3080e46cda9e891
[ "MIT" ]
null
null
null
""" Would you rather? This plugin includes would you rather functionality """ import asyncio import random import re import discord import bot import plugins from pcbot import Config client = plugins.client # type: bot.Client db = Config("would-you-rather", data=dict(timeout=10, responses=["**{name}** would **{cho...
34.308271
114
0.601359
0
0
0
0
3,454
0.756958
3,252
0.712689
1,615
0.353934
e6e9911a23d6bd5acc93e8e6fe7c90d813721358
5,690
py
Python
suit_tool/argparser.py
bergzand/suit-manifest-generator
da82651a8b02fd4d7261e826cc70b5c862dd94ea
[ "Apache-2.0" ]
16
2018-03-16T23:56:47.000Z
2022-01-23T14:14:09.000Z
suit_tool/argparser.py
bergzand/suit-manifest-generator
da82651a8b02fd4d7261e826cc70b5c862dd94ea
[ "Apache-2.0" ]
23
2018-06-05T14:30:23.000Z
2021-02-15T20:53:09.000Z
suit_tool/argparser.py
bergzand/suit-manifest-generator
da82651a8b02fd4d7261e826cc70b5c862dd94ea
[ "Apache-2.0" ]
10
2018-03-16T23:56:52.000Z
2020-07-21T16:36:46.000Z
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright 2019-2020 ARM Limited or its affiliates # # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
55.784314
142
0.649561
4,262
0.749033
0
0
0
0
0
0
2,420
0.425308
e6e9b0500db4a76f7cfddf89a8acd023b1673bdb
437
py
Python
python/process/process_pool.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
python/process/process_pool.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
python/process/process_pool.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
import random import time from multiprocessing import Pool def worker(name: str) -> None: print(f'Started worker {name}') worker_time = random.choice(range(1, 5)) time.sleep(worker_time) print(f'{name} worker finished in {worker_time} seconds') if __name__ == '__main__': process_names = [f'compu...
24.277778
61
0.686499
0
0
0
0
0
0
0
0
117
0.267735
e6e9e879bcf76ce5cfbee781823873ae94cc9222
45,541
py
Python
Project/Support-NotSourced/generic_pydicom_ns.py
mazalgarab-git/OSICpypy
003fb0b146c9ed711f05475e6cc7563bf549f230
[ "CC0-1.0" ]
1
2020-12-18T14:39:24.000Z
2020-12-18T14:39:24.000Z
Project/Support-NotSourced/generic_pydicom_ns.py
mazalgarab-git/OSICpypy
003fb0b146c9ed711f05475e6cc7563bf549f230
[ "CC0-1.0" ]
null
null
null
Project/Support-NotSourced/generic_pydicom_ns.py
mazalgarab-git/OSICpypy
003fb0b146c9ed711f05475e6cc7563bf549f230
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 7 11:48:59 2020 @author: mazal """ """ ========================================= Support functions of pydicom (Not sourced) ========================================= Purpose: Create support functions for the pydicom project """ """ Test mode 1 | Basics...
41.973272
186
0.603215
0
0
0
0
0
0
0
0
15,038
0.330208
e6e9ffb5e0649025342ebb242012d9b21913b192
8,378
py
Python
paperscraper/scrapers/keywords.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T02:56:22.000Z
2021-11-19T02:56:22.000Z
paperscraper/scrapers/keywords.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T03:42:58.000Z
2022-03-29T16:32:16.000Z
paperscraper/scrapers/keywords.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T02:56:28.000Z
2021-11-19T02:56:28.000Z
import re regex = re.compile(r'[\n\r\t]') def acm_digital_library(soup): try: keywords = set() keywords_parent_ol = soup.find('ol', class_="rlist organizational-chart") keywords_divs = keywords_parent_ol.findChildren('div', recursive=True) for kw_parent in keywords_divs: ...
38.608295
247
0.62509
0
0
0
0
0
0
0
0
2,437
0.290326
e6ea376dac46236ea3d4ce92ad3215d1dbffb660
6,642
py
Python
topobank/publication/models.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
3
2021-12-03T19:11:07.000Z
2021-12-27T17:14:39.000Z
topobank/publication/models.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
268
2021-03-19T13:57:00.000Z
2022-03-31T20:58:26.000Z
topobank/publication/models.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
from django.db import models from django.urls import reverse from django.utils import timezone from django.utils.safestring import mark_safe from django.conf import settings MAX_LEN_AUTHORS_FIELD = 512 CITATION_FORMAT_FLAVORS = ['html', 'ris', 'bibtex', 'biblatex'] DEFAULT_KEYWORDS = ['surface', 'topography'] class...
36.696133
107
0.579645
6,322
0.951822
0
0
551
0.082957
0
0
2,366
0.356218
e6ea40233a3bb49f837e23e4f39a0fd85da9fe09
489
py
Python
vendor/migrations/0003_store_password.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
1
2019-02-20T18:47:04.000Z
2019-02-20T18:47:04.000Z
vendor/migrations/0003_store_password.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
null
null
null
vendor/migrations/0003_store_password.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-07-24 19:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vendor', '0002_store_image'), ] operations = [ migrations.AddField( ...
22.227273
61
0.609407
331
0.676892
0
0
0
0
0
0
114
0.233129
e6eadd6e5aefadc0d052f84f6f0acadbd4bc7e84
440
py
Python
lec2.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
lec2.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
lec2.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
""" Your module description """ """ this is my second py code for my second lecture """ #print ('hello world') # this is a single line commment # this is my second line comment #print(type("123.")) #print ("Hello World".upper()) #print("Hello World".lower()) #print("hello" + "world" + ".") #print(2**3) #my_st...
12.941176
56
0.638636
0
0
0
0
0
0
0
0
364
0.827273
e6eb31b711fe08af2de8afcc37c668f59c3bdd16
1,579
py
Python
day_22_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
day_22_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
day_22_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
def play_recursively_combat(p1: list, p2: list) -> bool: rounds = set() winner = None while len(p1) > 0 and len(p2) > 0: r = tuple(p1 + [-1] + p2) if r in rounds: return True else: rounds.add(r) c1 = p1.pop(0) c2 = p2.pop(0) if c1 <= ...
17.544444
62
0.542115
0
0
0
0
0
0
0
0
152
0.096263
e6ecb90ea1c9f175831984d63548bf549ba7937d
335
py
Python
Auth/Constants/LoginOpCode.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
null
null
null
Auth/Constants/LoginOpCode.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
null
null
null
Auth/Constants/LoginOpCode.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
null
null
null
from enum import Enum class LoginOpCode(Enum): ''' Opcodes during login process ''' LOGIN_CHALL = 0x00 LOGIN_PROOF = 0x01 RECON_CHALL = 0x02 # currently do not in use RECON_PROOF = 0x03 # currently do not in use REALMLIST = 0x10 class LoginResult(Enum): ''' Error codes ''' SUCC...
18.611111
49
0.641791
307
0.916418
0
0
0
0
0
0
105
0.313433
e6ee19c46029883010bf024e3e8dd551854a83e8
80
py
Python
LINETOKEN/__init__.py
pratannaimjoi/tokenIpad
f03969c05427bc1804d05c42823a28725c7e38a0
[ "Apache-2.0" ]
null
null
null
LINETOKEN/__init__.py
pratannaimjoi/tokenIpad
f03969c05427bc1804d05c42823a28725c7e38a0
[ "Apache-2.0" ]
null
null
null
LINETOKEN/__init__.py
pratannaimjoi/tokenIpad
f03969c05427bc1804d05c42823a28725c7e38a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .LineApi import LINE from .lib.Gen.ttypes import *
20
29
0.6625
0
0
0
0
0
0
0
0
23
0.2875
e6ee404e9353e9098c1662d7447e96af2b5999cf
164
py
Python
main.py
seton-develops/PDF-Camelot-Folder-Executable
168b5c24afe8884cf121a4207d7d3cb3ee7cc626
[ "MIT" ]
null
null
null
main.py
seton-develops/PDF-Camelot-Folder-Executable
168b5c24afe8884cf121a4207d7d3cb3ee7cc626
[ "MIT" ]
null
null
null
main.py
seton-develops/PDF-Camelot-Folder-Executable
168b5c24afe8884cf121a4207d7d3cb3ee7cc626
[ "MIT" ]
null
null
null
''' Created on Jun 17, 2021 @author: Sean ''' import PDF2CSV_GUI def main(): j = PDF2CSV_GUI.Convert_GUI() if __name__ == "__main__": main()
12.615385
34
0.591463
0
0
0
0
0
0
0
0
60
0.365854
e6ee7c4e821041f353c4df40b51b9e9fed815d11
325
py
Python
Part1/bot_read.py
Mildlyoffbeat/RedditBot-1
f65c3c4d0f3d6d3a468069d4a009b44a20e33797
[ "MIT" ]
null
null
null
Part1/bot_read.py
Mildlyoffbeat/RedditBot-1
f65c3c4d0f3d6d3a468069d4a009b44a20e33797
[ "MIT" ]
null
null
null
Part1/bot_read.py
Mildlyoffbeat/RedditBot-1
f65c3c4d0f3d6d3a468069d4a009b44a20e33797
[ "MIT" ]
null
null
null
#!/usr/bin/python import praw reddit = praw.Reddit('mob-secondbot') subreddit = reddit.subreddit("learnpython") for submission in subreddit.hot(limit=5): print("Title: ", submission.title) print("Text: ", submission.selftext) print("Score: ", submission.score) print("---------------------------------...
25
48
0.618462
0
0
0
0
0
0
0
0
108
0.332308
e6ee864c778e3c7bd05d01ccaa072084d9d7a6f7
1,052
py
Python
17/kazuate_liar.cpp.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
17/kazuate_liar.cpp.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
17/kazuate_liar.cpp.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
from subprocess import Popen, PIPE, call name = "kazuate_liar.o" src = """ #include <iostream> #include <random> using namespace std; int main() { random_device rd; mt19937 mt(rd()); uniform_int_distribution<int> randfive(0, 4); uniform_int_distribution<int> randint(1, 100); int count = 0; ...
17.533333
66
0.439163
0
0
0
0
0
0
0
0
985
0.864035
e6eeea99216e21aebde0241d03385a480d8c6df4
649
py
Python
src/terrafort/main.py
silvercar/terrafort
bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c
[ "MIT" ]
1
2019-06-18T00:40:40.000Z
2019-06-18T00:40:40.000Z
src/terrafort/main.py
silvercar/terrafort
bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c
[ "MIT" ]
null
null
null
src/terrafort/main.py
silvercar/terrafort
bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c
[ "MIT" ]
1
2021-08-25T02:15:28.000Z
2021-08-25T02:15:28.000Z
""" Terrafort Generate terraform templates for specific resources """ import click from .providers.aws import Aws @click.group() @click.option('--commands', is_flag=True, help="Output import commands instead of a terraform template") @click.version_option() @click.pass_context def cli(ct...
22.37931
76
0.731895
0
0
0
0
259
0.399076
0
0
220
0.338983
e6efe17c4e6e08ec55040433cf5ea1ff20fecb68
528
py
Python
src/ping.py
jnsougata/rich-embed
95901e590f00c4e4eabeb99c8f06bb5f90718d80
[ "MIT" ]
null
null
null
src/ping.py
jnsougata/rich-embed
95901e590f00c4e4eabeb99c8f06bb5f90718d80
[ "MIT" ]
null
null
null
src/ping.py
jnsougata/rich-embed
95901e590f00c4e4eabeb99c8f06bb5f90718d80
[ "MIT" ]
null
null
null
import discord import app_util class Ping(app_util.Cog): def __init__(self, bot: app_util.Bot): self.bot = bot @app_util.Cog.command( command=app_util.SlashCommand( name='ping', description='shows avg ping of client' ), guild_id=877399405056102431 ) async ...
24
94
0.662879
422
0.799242
0
0
325
0.61553
142
0.268939
66
0.125
e6f05425230fc70414cb78c1b2738e7f0e282ac0
2,017
py
Python
2020/24/visualization.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2020/24/visualization.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2020/24/visualization.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
1
2021-12-04T10:37:09.000Z
2021-12-04T10:37:09.000Z
#!/usr/bin/env python3 import sys import re import numpy as np from PIL import Image moves = { 'e': (2, 0), 'se': (1, 2), 'sw': (-1, 2), 'w': (-2, 0), 'nw': (-1, -2), 'ne': (1, -2) } # Save (x, y): True/False in tiles. True = black, False = white. tiles = {} for line in open(sys.argv[1]).read().splitlines(): po...
24.901235
97
0.511155
0
0
0
0
0
0
0
0
319
0.158156
e6f0fc4f8d5c7522b3b6e45957a0edd9bcec2662
16,451
py
Python
experimental/tracing/bin/diff_heap_profiler.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
experimental/tracing/bin/diff_heap_profiler.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
experimental/tracing/bin/diff_heap_profiler.py
atuchin-m/catapult
108ea3e2ec108e68216b1250a3d79cc642600294
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
#!/usr/bin/env python # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import from __future__ import print_function import argparse import gzip import json import os import s...
32.005837
152
0.636253
589
0.035803
0
0
0
0
0
0
3,636
0.22102
e6f21f20dc1c7283a540aac397169a7429e851b1
3,743
py
Python
mne_bids/commands/mne_bids_raw_to_bids.py
kingjr/mne-bids
3a4543076912cebbc89a5f0b9433cda1b9e288b8
[ "BSD-3-Clause" ]
null
null
null
mne_bids/commands/mne_bids_raw_to_bids.py
kingjr/mne-bids
3a4543076912cebbc89a5f0b9433cda1b9e288b8
[ "BSD-3-Clause" ]
null
null
null
mne_bids/commands/mne_bids_raw_to_bids.py
kingjr/mne-bids
3a4543076912cebbc89a5f0b9433cda1b9e288b8
[ "BSD-3-Clause" ]
null
null
null
"""Write raw files to BIDS format. example usage: $ mne_bids raw_to_bids --subject_id sub01 --task rest --raw data.edf --bids_root new_path """ # Authors: Teon Brooks <teon.brooks@gmail.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) import mne_bids from mne_bids import wr...
41.588889
77
0.594176
0
0
0
0
0
0
0
0
1,410
0.376703
e6f290178fbe89e1c3a852359d5e4b95ce0dd4ec
1,460
py
Python
lab1oop.py
NastiaK/NewRepository
d1907fc2e159dc1831071d7c79e20bbfb47fb822
[ "MIT" ]
null
null
null
lab1oop.py
NastiaK/NewRepository
d1907fc2e159dc1831071d7c79e20bbfb47fb822
[ "MIT" ]
null
null
null
lab1oop.py
NastiaK/NewRepository
d1907fc2e159dc1831071d7c79e20bbfb47fb822
[ "MIT" ]
null
null
null
class Calculations: def __init__(self, first, second): self.first = first self.second = second def add(self): print(self.first + self.second) def subtract(self): print(self.first - self.second) def multiply(self): print(self.first * self.second) ...
29.795918
119
0.489041
469
0.321233
0
0
0
0
0
0
208
0.142466
e6f2fef589655b9bf1c7a2c668ca919bfd152a24
460
py
Python
Arrays/cyclic_rotation.py
Jeans212/codility-dev-training
9c5118c6433ea210d1485a6127712a92496e2bc2
[ "MIT" ]
null
null
null
Arrays/cyclic_rotation.py
Jeans212/codility-dev-training
9c5118c6433ea210d1485a6127712a92496e2bc2
[ "MIT" ]
null
null
null
Arrays/cyclic_rotation.py
Jeans212/codility-dev-training
9c5118c6433ea210d1485a6127712a92496e2bc2
[ "MIT" ]
null
null
null
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") ''' Rotate an array A to the right by a given number of steps K. Covert the array to a deque Apply the rotate() method the rotate the deque in positive K steps Convert the deque to array ''' from collec...
23
70
0.669565
0
0
0
0
0
0
0
0
335
0.728261
e6f36e3d6234b36ef09fd70fd1be755548b506ba
37,741
py
Python
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
2
2020-06-21T12:02:58.000Z
2020-09-02T15:21:19.000Z
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
null
null
null
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Python Markdown A Python implementation of John Gruber's Markdown. Documentation: https://python-markdown.github.io/ GitHub: https://github.com/Python-Markdown/markdown/ PyPI: https://pypi.org/project/Markdown/ Started by Manfred Stienstra (http://www.dwerg.net/). Maintained for a few yea...
36.081262
116
0.601123
36,377
0.963859
0
0
0
0
0
0
10,019
0.265467
e6f5ecde56dec14d70d3fec0b36dc822d497cba7
2,230
py
Python
nervous/utility/config.py
csxeba/nervous
f7aeb9b2ff875835c346c607722fab517ef6df61
[ "MIT" ]
1
2018-09-24T11:29:19.000Z
2018-09-24T11:29:19.000Z
nervous/utility/config.py
csxeba/nervous
f7aeb9b2ff875835c346c607722fab517ef6df61
[ "MIT" ]
null
null
null
nervous/utility/config.py
csxeba/nervous
f7aeb9b2ff875835c346c607722fab517ef6df61
[ "MIT" ]
null
null
null
import os class StressedNetConfig: def __init__(self, synaptic_environmental_constraint=0.8, group_environmental_constraint=0.6, stress_factor=0.8, save_folder=os.path.expanduser("~/.nervous/models/")): self._synaptic_environmental_const...
33.283582
98
0.673991
2,217
0.99417
0
0
939
0.421076
0
0
215
0.096413
e6f658acae15a3e9ea6e4c377ee45743db7b0897
6,365
py
Python
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
2
2020-04-28T03:49:10.000Z
2020-04-28T03:49:13.000Z
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
null
null
null
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
50.11811
116
0.692066
3,588
0.563708
0
0
401
0.063001
0
0
3,033
0.476512
e6f688088bfa1088bfe7257d2cece961dd478353
5,106
py
Python
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
null
null
null
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
13
2016-01-05T14:48:38.000Z
2017-08-14T10:17:41.000Z
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
null
null
null
import datetime import boto3 US_EAST_REGION = {'us-east-1'} US_EAST_AVAILABILITY_ZONES = {'us-east-1a', 'us-east-1b', 'us-east-1c', 'us-east-1e'} # note d is missing INSTANCE_VERSION = 'Linux/UNIX (Amazon VPC)' def fetch_spot_prices(region, start_time, end_time, instance_type, instance_version=INSTANCE_VERSION): ...
44.4
138
0.604387
0
0
1,612
0.315707
0
0
0
0
2,075
0.406385
e6f6e592f45ce51ed72972736b1981a35d6ad662
81
py
Python
pynn/__init__.py
jkae/knn-exercise
ae569e3f6a0e23669369d99e032270e72f8fbb66
[ "MIT" ]
null
null
null
pynn/__init__.py
jkae/knn-exercise
ae569e3f6a0e23669369d99e032270e72f8fbb66
[ "MIT" ]
null
null
null
pynn/__init__.py
jkae/knn-exercise
ae569e3f6a0e23669369d99e032270e72f8fbb66
[ "MIT" ]
null
null
null
from .nearest_neighbor_index import NearestNeighborIndex from .kd_tree import *
20.25
56
0.851852
0
0
0
0
0
0
0
0
0
0
e6f7da2b0c80534457eb53c6aaa04a6eb69ac541
2,562
py
Python
tests/test_try.py
threecifanggen/python-functional-programming
bd17281e5f24db826266f509bc54b25362c0d2a1
[ "MIT" ]
3
2021-10-05T09:12:36.000Z
2021-11-30T07:11:58.000Z
tests/test_try.py
threecifanggen/python-functional-programming
bd17281e5f24db826266f509bc54b25362c0d2a1
[ "MIT" ]
14
2021-10-11T05:31:15.000Z
2021-12-16T12:52:47.000Z
tests/test_try.py
threecifanggen/python-functional-programming
bd17281e5f24db826266f509bc54b25362c0d2a1
[ "MIT" ]
null
null
null
''' Author: huangbaochen<huangbaochenwo@live.com> Date: 2021-12-11 20:04:19 LastEditTime: 2021-12-11 21:46:16 LastEditors: huangbaochen<huangbaochenwo@live.com> Description: 测试Try单子 No MERCY ''' import pytest from fppy.try_monad import Try, Success, Fail from fppy.option import Just, Nothing @pytest.mark.try_monad def...
29.790698
66
0.673692
0
0
0
0
1,919
0.746693
0
0
500
0.194553
e6f805f6f11f261c37210a559213d4def9f1debd
952
py
Python
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
from datetime import date from typing import Dict, Optional from sqlalchemy.orm import Session from sqlalchemy.sql.expression import func from app.database.models import Quote TOTAL_DAYS = 366 def create_quote_object(quotes_fields: Dict[str, Optional[str]]) -> Quote: """This function create a quote object from...
30.709677
74
0.711134
0
0
0
0
0
0
0
0
318
0.334034
e6fa166658f7b4a5f652c93e09a1ac34583195f0
123
py
Python
src/789A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
2
2016-08-19T09:47:03.000Z
2016-10-01T10:15:03.000Z
src/789A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
null
null
null
src/789A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
1
2015-07-01T23:57:32.000Z
2015-07-01T23:57:32.000Z
n, k = map(int, input().split()) w = list(map(int, input().split())) r = sum(map(lambda x: (x+k-1)//k, w)) print((r+1)//2)
24.6
37
0.536585
0
0
0
0
0
0
0
0
0
0
e6fab2043b0b6fa907bee5da86873ddbf2cfe3cf
1,432
py
Python
platform/server/detect.py
leyyin/godot
68325d7254db711beaedddad218e2cddb405c42c
[ "CC-BY-3.0", "MIT" ]
24
2016-10-14T16:54:01.000Z
2022-01-15T06:39:17.000Z
platform/server/detect.py
leyyin/godot
68325d7254db711beaedddad218e2cddb405c42c
[ "CC-BY-3.0", "MIT" ]
17
2016-12-30T14:35:53.000Z
2017-03-07T21:07:50.000Z
platform/server/detect.py
leyyin/godot
68325d7254db711beaedddad218e2cddb405c42c
[ "CC-BY-3.0", "MIT" ]
9
2017-08-04T12:00:16.000Z
2021-12-10T06:48:28.000Z
import os import sys def is_active(): return True def get_name(): return "Server" def can_build(): if (os.name!="posix"): return False return True # enabled def get_opts(): return [ ('use_llvm','Use llvm compiler','no'), ('force_32_bits','Force 32 bits binary','no') ] def get_flags(): return [ (...
17.679012
81
0.609637
0
0
0
0
0
0
0
0
697
0.486732
e6fc051294ab288b08cbb146da00f8c04ac171dd
413
py
Python
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
from telemetry.TruckConstants import ConstantValues from telemetry.TruckCurrent import CurrentValues from telemetry.TruckPositioning import Positioning class TruckValues: constant_values = None current_values = None positioning = None def __init__(self): self.current_values = CurrentValues()...
21.736842
51
0.750605
255
0.617433
0
0
0
0
0
0
0
0
e6fc32c8a31669a37234337e3418a714af3c26bd
1,483
py
Python
IntroToSpark/Assign4_Q1-6_action.py
petersontylerd/spark-courses
e8dcb4968ea31a50206739e6af3006889f8c3c6c
[ "MIT" ]
null
null
null
IntroToSpark/Assign4_Q1-6_action.py
petersontylerd/spark-courses
e8dcb4968ea31a50206739e6af3006889f8c3c6c
[ "MIT" ]
null
null
null
IntroToSpark/Assign4_Q1-6_action.py
petersontylerd/spark-courses
e8dcb4968ea31a50206739e6af3006889f8c3c6c
[ "MIT" ]
1
2021-03-26T11:47:37.000Z
2021-03-26T11:47:37.000Z
import csv from pyspark.sql import SparkSession from pyspark.sql.types import IntegerType spark = SparkSession.builder.appName("Assignment4").getOrCreate() sc = spark.sparkContext # load data to dataframe path = 'fake_data.csv' df = spark.read.format('csv').option('header','true').load(path) # cast income as an int...
26.017544
157
0.652057
0
0
0
0
0
0
0
0
403
0.271746
e6fc5742d6236482be2f3020d03479a9c33e3222
274
py
Python
src/firebot/tests/factories.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
52
2017-03-15T16:25:14.000Z
2022-03-01T16:50:14.000Z
src/firebot/tests/factories.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
239
2017-03-16T17:10:22.000Z
2022-03-06T07:24:24.000Z
src/firebot/tests/factories.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
8
2017-03-15T17:45:18.000Z
2022-01-26T14:51:03.000Z
import factory from django.contrib.auth import get_user_model class UserFactory(factory.DjangoModelFactory): class Meta: model = get_user_model() first_name = factory.Faker('name') last_name = factory.Faker('name') email = factory.Faker('email')
21.076923
46
0.715328
208
0.759124
0
0
0
0
0
0
19
0.069343
e6fc7870ccb1bbdefca5d31e7c6358dd9b6c9578
482
py
Python
reamber/o2jam/O2JHold.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/o2jam/O2JHold.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/o2jam/O2JHold.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from reamber.base.Hold import Hold, HoldTail from reamber.o2jam.O2JNoteMeta import O2JNoteMeta @dataclass class O2JHoldTail(HoldTail, O2JNoteMeta): pass @dataclass class O2JHold(Hold, O2JNoteMeta): """ Defines the O2Jam Bpm Object The O2Jam Bpm Object is stored...
21.909091
54
0.73029
317
0.657676
0
0
339
0.70332
0
0
96
0.19917
e6fc89e2fb95df50b778c64242f30654175e9df4
566
py
Python
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
3
2021-11-13T06:26:06.000Z
2022-01-23T13:03:30.000Z
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
32
2021-11-12T15:29:04.000Z
2022-01-23T14:44:19.000Z
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
1
2021-11-13T06:34:03.000Z
2021-11-13T06:34:03.000Z
import lightbulb from apscheduler.schedulers.asyncio import AsyncIOScheduler from peacebot.core.utils.time import TimeConverter def fetch_scheduler(ctx: lightbulb.Context) -> AsyncIOScheduler: return ctx.bot.d.scheduler async def convert_time(ctx: lightbulb.Context, time: str) -> float: seconds = await Tim...
25.727273
68
0.738516
0
0
0
0
0
0
333
0.588339
43
0.075972
e6fe319ea41fa303d91576c379f5911e22bf4307
855
py
Python
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
8
2019-04-26T04:09:40.000Z
2022-01-04T05:24:12.000Z
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
null
null
null
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
2
2019-12-16T15:34:57.000Z
2020-10-22T07:03:15.000Z
import unittest from appium import webdriver class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): def setUp(self): # Default browser does not exist for android >= 6.0 desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', 'appPac...
29.482759
90
0.65614
635
0.74269
0
0
0
0
0
0
277
0.323977
e6fe636ebee73df95de2568536aed7f6f3927fad
458
py
Python
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
""" Created on 17-June-2020 @author Jibesh Patra The types extracted during runtime usually look something like --> <class 'numpy.ndarray'> or <class 'seaborn.palettes._ColorPalette'> change them to --> ndarray, ColorPalette """ import re remove_chars = re.compile(r'>|\'|<|(class )|_|(type)') def process_types(tp...
24.105263
93
0.696507
0
0
0
0
0
0
0
0
262
0.572052
e6fee516b4253e139cd1d42c7d2077b96248a564
4,254
py
Python
src/canvas.py
soootaleb/spare
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
1
2019-05-21T16:04:08.000Z
2019-05-21T16:04:08.000Z
src/canvas.py
soootaleb/school-spacial-relations
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
null
null
null
src/canvas.py
soootaleb/school-spacial-relations
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from matplotlib import pyplot as plt from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas import matplotlib.ticker as ticker import numpy as np import random, matplotlib...
35.157025
107
0.609074
3,911
0.91937
0
0
0
0
0
0
541
0.127174
fc0054805adf6c4edaa7b274d8d98323387b2aa1
7,561
py
Python
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
'''Functional tests for CPG''' from .. import CircuitPlayground from .. import __version__ as CircuitPlaygroundVersion import time def funcTest(timestamps: bool = False) -> None: cpg = CircuitPlayground() if timestamps: _printFuncTestHeadingWithDeliLine(f'cpg_scpi v{CircuitPlaygroundVersion}\nRUNNING...
37.616915
151
0.61923
0
0
0
0
0
0
0
0
2,900
0.383446
fc01125ff8253bbaef2b133518f03e3663e85d73
216
py
Python
main/models.py
yejun1060/SbjctSclctn
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
[ "MIT" ]
null
null
null
main/models.py
yejun1060/SbjctSclctn
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
[ "MIT" ]
null
null
null
main/models.py
yejun1060/SbjctSclctn
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
[ "MIT" ]
1
2021-06-08T17:41:42.000Z
2021-06-08T17:41:42.000Z
from django.db import models class Account(models.Model): clsNb = models.IntegerField() Name = models.CharField(max_length=10) pw = models.IntegerField() def __str__(self): return self.Name
21.6
42
0.689815
185
0.856481
0
0
0
0
0
0
0
0
fc01bbc538287134d61e574ed4af064a81cfdf43
1,307
py
Python
test/utils/test_geodesic.py
shrey-bansal/pytorch_geometric
17108a08066b0a73530544d01719b186f2625ef2
[ "MIT" ]
2
2020-12-06T13:10:52.000Z
2021-07-06T06:50:10.000Z
test/utils/test_geodesic.py
shrey-bansal/pytorch_geometric
17108a08066b0a73530544d01719b186f2625ef2
[ "MIT" ]
null
null
null
test/utils/test_geodesic.py
shrey-bansal/pytorch_geometric
17108a08066b0a73530544d01719b186f2625ef2
[ "MIT" ]
1
2019-05-31T02:45:38.000Z
2019-05-31T02:45:38.000Z
from math import sqrt import torch from torch_geometric.utils import geodesic_distance def test_geodesic_distance(): pos = torch.Tensor([[0, 0, 0], [2, 0, 0], [0, 2, 0], [2, 2, 0]]) face = torch.tensor([[0, 1, 3], [0, 2, 3]]).t() out = geodesic_distance(pos, face) expected = [ [0, 1, 1, sqrt...
30.395349
76
0.574598
0
0
0
0
0
0
0
0
0
0
fc01d88d24681ec66a1cf06a3a055252d072afd3
31,292
py
Python
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
2
2022-01-19T21:00:48.000Z
2022-01-27T05:54:13.000Z
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
1
2021-12-24T11:32:17.000Z
2021-12-24T11:32:17.000Z
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-present MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
35.721461
103
0.599035
27,529
0.879746
0
0
103
0.003292
0
0
12,968
0.414419
fc021cb14dd8b84a0a6873924f2194048e2791f0
1,415
py
Python
forte/processors/tests/stanfordnlp_processor_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
forte/processors/tests/stanfordnlp_processor_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
forte/processors/tests/stanfordnlp_processor_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
"""This module tests Stanford NLP processors.""" import os import unittest from texar.torch import HParams from forte.pipeline import Pipeline from forte.data.readers import StringReader from forte.processors.stanfordnlp_processor import StandfordNLPProcessor from ft.onto.base_ontology import Token, Sentence class ...
36.282051
77
0.638869
1,100
0.777385
0
0
477
0.337102
0
0
353
0.24947
fc02e2f67f44eb696a821c6397117531267c2ddc
496
py
Python
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Serve current folder files in a HTTP webserver. """ import socketserver from threading import Thread from http.server import SimpleHTTPRequestHandler PORT = 8000 def start_http_server(port=PORT): httpd = socketserver.TCPServer(("", port), SimpleHTTPRequestHand...
20.666667
76
0.709677
0
0
0
0
0
0
0
0
113
0.227823
fc03078d9d14b23c740018bcdf9069c213af00f0
7,393
py
Python
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# coding: utf-8 class AppTestCompile: def test_simple(self): import sys co = compile('1+2', '?', 'eval') assert eval(co) == 3 co = compile(memoryview(b'1+2'), '?', 'eval') assert eval(co) == 3 exc = raises(ValueError, compile, chr(0), '?', 'eval') assert str(...
34.226852
79
0.538212
7,107
0.961055
0
0
0
0
0
0
2,707
0.366058
fc035a3b69dad59dad81dc8e5b68a8db4a2f4aff
12,207
py
Python
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
import yfinance as yf import matplotlib.pyplot as plt import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots import pandas as pd from IPython.display import Markdown import numpy as np from datetime import date, timedelta def plot_and_get_info(ticker, start = None, en...
35.178674
169
0.530843
0
0
0
0
0
0
0
0
2,052
0.1681
fc045ba1073202cd1ab4f6738b3709fb28279ff8
5,008
py
Python
flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py
amsks/generic_flexbe_states
f7be84105d3370c943ed17fc19af672b330726de
[ "BSD-3-Clause" ]
null
null
null
flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py
amsks/generic_flexbe_states
f7be84105d3370c943ed17fc19af672b330726de
[ "BSD-3-Clause" ]
null
null
null
flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py
amsks/generic_flexbe_states
f7be84105d3370c943ed17fc19af672b330726de
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
34.777778
131
0.659145
3,908
0.780351
0
0
0
0
0
0
2,039
0.407149
fc070f80801a319fdf697b23e027ce45aa2d558c
26,632
py
Python
text2cc/xml_assessment.py
dlehman83/text2cc
303798993590bceaeb5238a6cce82893c37cdfc7
[ "BSD-3-Clause" ]
1
2021-02-12T09:34:07.000Z
2021-02-12T09:34:07.000Z
text2cc/xml_assessment.py
dlehman83/text2cc
303798993590bceaeb5238a6cce82893c37cdfc7
[ "BSD-3-Clause" ]
null
null
null
text2cc/xml_assessment.py
dlehman83/text2cc
303798993590bceaeb5238a6cce82893c37cdfc7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2021, Dana Lehman # Copyright (c) 2020, Geoffrey M. Poore # All rights reserved. # # Licensed under the BSD 3-Clause License: # http://opensource.org/licenses/BSD-3-Clause # from .quiz import Quiz, Question, GroupStart, GroupEnd, TextRegion BEFORE_ITEMS = '''\ <?xml version...
40.474164
260
0.629769
0
0
0
0
0
0
0
0
13,072
0.490838
fc072ef6a205b171dfc4d3510829d73d11a5f833
2,360
py
Python
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
null
null
null
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
1
2021-05-12T21:53:53.000Z
2021-05-12T22:26:09.000Z
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
3
2021-05-06T12:44:04.000Z
2021-05-12T21:42:59.000Z
#!/usr/bin/env python """Tests for `bids_statsmodels_design_synthesizer` package.""" import pytest import subprocess as sp from pathlib import Path SYNTHESIZER = "aggregate_stats_design.py" from bids_statsmodels_design_synthesizer import aggregate_stats_design as synth_mod # from bids_statsmodels_design_synthesizer...
36.875
199
0.715678
0
0
0
0
623
0.263983
0
0
1,407
0.596186
fc084ddbb4a5b92a2c3c4c62cd1d09d582bd5892
689
py
Python
skynet-agent/plugins/plugin_api.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
3
2016-09-12T08:54:46.000Z
2016-09-18T07:54:10.000Z
skynet-agent/plugins/plugin_api.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
skynet-agent/plugins/plugin_api.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 __author__ = 'whoami' """ @version: 1.0 @author: whoami @license: Apache Licence 2.0 @contact: skutil@gmail.com @site: http://www.itweet.cn @software: PyCharm Community Edition @file: plugin_api.py @time: 2015-11-28 下午1:52 """ from linux import cpu,disk,iostats,loadavg,memory,net...
17.225
63
0.71553
0
0
0
0
0
0
0
0
252
0.363636
fc09cc4c599dae963fa070fbe9dc0b9a5e9e17c9
1,425
py
Python
code/figure_warp.py
jwcarr/drift
a514c5970ba53025cc142257e953c1bda3cd049c
[ "CC-BY-4.0" ]
2
2021-11-19T10:12:58.000Z
2021-11-30T03:33:59.000Z
code/figure_warp.py
jwcarr/vertical_drift
5b4b6c475b5118950514dc01960391ef0d95bd19
[ "CC-BY-4.0" ]
null
null
null
code/figure_warp.py
jwcarr/vertical_drift
5b4b6c475b5118950514dc01960391ef0d95bd19
[ "CC-BY-4.0" ]
null
null
null
import numpy as np import eyekit import algorithms import core data = eyekit.io.load(core.FIXATIONS / 'sample.json') passages = eyekit.io.load(core.DATA / 'passages.json') original_sequence = data['trial_5']['fixations'] fixation_XY = np.array([fixation.xy for fixation in original_sequence], dtype=int) word_XY = np....
39.583333
102
0.781754
0
0
0
0
0
0
0
0
163
0.114386
fc0a7d892ee7ccba2ec10d7aa3adc47150da3dac
98,817
py
Python
storm/Nimbus.py
krux/python-storm
1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd
[ "BSD-3-Clause" ]
null
null
null
storm/Nimbus.py
krux/python-storm
1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd
[ "BSD-3-Clause" ]
null
null
null
storm/Nimbus.py
krux/python-storm
1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd
[ "BSD-3-Clause" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport ...
30.182346
188
0.668508
98,251
0.994272
0
0
0
0
0
0
6,502
0.065798
fc0c40028b9c4945addfec469dd5871c8f82e05b
52
py
Python
gemucator/__init__.py
philipwfowler/genucator
d43a79afe1aa81ca24d7ab4370ed230e08aa89bf
[ "MIT" ]
null
null
null
gemucator/__init__.py
philipwfowler/genucator
d43a79afe1aa81ca24d7ab4370ed230e08aa89bf
[ "MIT" ]
null
null
null
gemucator/__init__.py
philipwfowler/genucator
d43a79afe1aa81ca24d7ab4370ed230e08aa89bf
[ "MIT" ]
null
null
null
#! /usr/bin/env python from .core import gemucator
13
27
0.730769
0
0
0
0
0
0
0
0
22
0.423077
fc0db1d4c1d538c8a8da3398414e346edd37ebe8
166
py
Python
client/checkout/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
6
2019-11-21T10:09:49.000Z
2021-06-19T09:52:59.000Z
client/checkout/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
client/checkout/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
import graphene from graphene_django import DjangoObjectType from graphene_django.converter import convert_django_field from pyuploadcare.dj.models import ImageField
33.2
58
0.89759
0
0
0
0
0
0
0
0
0
0
fc0e5695633a29e1789efba016b66fc96fcedf4a
15,518
py
Python
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
1
2020-03-02T04:26:21.000Z
2020-03-02T04:26:21.000Z
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
null
null
null
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' This script follows formulas put forth in Kislyuk et al. (2011) to calculate genome fluidity of a pangenome dataset. Variance and standard error are estimated as total variance containing both the variance due to subsampling all possible combinations (without replacement) of N genomes from th...
46.322388
135
0.669738
149
0.009602
189
0.012179
0
0
0
0
4,574
0.294754
fc100b64b37cc26f7af79a394d9e388ede43f204
7,610
py
Python
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
1
2019-02-27T12:59:49.000Z
2019-02-27T12:59:49.000Z
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
4
2019-03-07T09:31:51.000Z
2019-03-12T15:19:40.000Z
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
null
null
null
# # This module provides the Instance class that encapsulate some complex server instances related operations # from __future__ import print_function from json import loads from neutronclient.v2_0 import client as neutron_client from novaclient import client as nova_client from cinderclient import client as cinder_cli...
42.044199
107
0.642181
7,089
0.931537
0
0
0
0
0
0
1,367
0.179632
fc107e595b21342f82e5161a579e155e45e95a50
13,314
py
Python
gammapy/estimators/profile.py
JohannesBuchner/gammapy
48769519f04b7df7b3e4580ebb61396445790bc3
[ "BSD-3-Clause" ]
1
2021-02-02T21:35:27.000Z
2021-02-02T21:35:27.000Z
gammapy/estimators/profile.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
2
2018-08-09T20:49:13.000Z
2019-01-23T17:30:49.000Z
gammapy/estimators/profile.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Tools to create profiles (i.e. 1D "slices" from 2D images).""" import numpy as np import scipy.ndimage from astropy import units as u from astropy.convolution import Box1DKernel, Gaussian1DKernel from astropy.coordinates import Angle from astropy.table ...
31.928058
84
0.570828
12,766
0.95884
0
0
641
0.048145
0
0
6,191
0.464999
fc109f21dbb2efc4b477a59e275c911d6c56316e
221
py
Python
ABC/abc001-abc050/abc007/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ABC/abc001-abc050/abc007/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ABC/abc001-abc050/abc007/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): a = input() # See: # https://www.slideshare.net/chokudai/abc007 if a == 'a': print('-1') else: print('a') if __name__ == '__main__': main()
13
48
0.466063
0
0
0
0
0
0
0
0
93
0.420814
fc1121d14735ee8c8c982d686f96751beb66af86
7,270
py
Python
env/lib/python3.8/site-packages/versatileimagefield/mixins.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
1
2021-04-07T16:25:20.000Z
2021-04-07T16:25:20.000Z
env/lib/python3.8/site-packages/versatileimagefield/mixins.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
9
2021-03-19T03:06:53.000Z
2022-03-12T00:37:04.000Z
myvenv/lib/python3.6/site-packages/versatileimagefield/mixins.py
yog240597/saleor
b75a23827a4ec2ce91637f0afe6808c9d09da00a
[ "CC-BY-4.0" ]
1
2021-04-23T15:01:05.000Z
2021-04-23T15:01:05.000Z
"""versatileimagefield Field mixins.""" import os import re from .datastructures import FilterLibrary from .registry import autodiscover, versatileimagefield_registry from .settings import ( cache, VERSATILEIMAGEFIELD_CREATE_ON_DEMAND, VERSATILEIMAGEFIELD_SIZED_DIRNAME, VERSATILEIMAGEFIELD_FILTERED_DIR...
34.454976
90
0.599037
6,236
0.857772
0
0
1,415
0.194635
0
0
1,612
0.221733
fc11ec393a7dcebc05211e5be317a56b62dc07c0
9,450
py
Python
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
330
2020-09-14T23:10:16.000Z
2022-03-30T19:49:19.000Z
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
52
2020-09-30T06:10:51.000Z
2022-03-31T19:25:16.000Z
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
119
2020-09-24T04:54:46.000Z
2022-03-31T21:46:57.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...
42.760181
91
0.742963
0
0
0
0
0
0
0
0
2,787
0.294921
fc11f9759b82ea3a650e3c9261504b9c80e953f0
417
py
Python
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np pc_load_pathname = '/home/caizhongang/github/waymo_kitti_converter/007283-000.bin' pc = np.fromfile(pc_load_pathname, dtype=np.float32).reshape(-1, 3) pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dVector(pc) axis = o3d.geometry.TriangleMesh.create_coordinat...
34.75
82
0.781775
0
0
0
0
0
0
0
0
63
0.151079
fc11f9bf036f8314167de520f758c42b9fa4aa63
2,306
py
Python
designate-8.0.0/designate/tests/test_api/test_v2/test_limits.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
145
2015-01-02T09:35:53.000Z
2021-12-14T17:03:53.000Z
designate/tests/test_api/test_v2/test_limits.py
sapcc/designate
c3f084751006a2fe7562f137930542c4759d6fd9
[ "Apache-2.0" ]
6
2015-03-15T00:22:27.000Z
2019-12-16T09:37:38.000Z
designate/tests/test_api/test_v2/test_limits.py
sapcc/designate
c3f084751006a2fe7562f137930542c4759d6fd9
[ "Apache-2.0" ]
109
2015-01-13T16:47:34.000Z
2021-03-15T13:18:48.000Z
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@managedit.ie> # # 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/lice...
41.927273
76
0.667823
1,560
0.676496
0
0
0
0
0
0
985
0.427147
fc1210baa0e8a8267a154dad6a47b17fe2942673
1,696
py
Python
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2015-07-12T07:24:17.000Z
2015-07-12T07:24:17.000Z
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
null
null
null
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2016-02-19T21:55:53.000Z
2016-02-19T21:55:53.000Z
"""node-path implementation for OpenGLContext """ from vrml.vrml97 import nodepath, nodetypes from vrml.cache import CACHE from OpenGLContext import quaternion from OpenGL.GL import glMultMatrixf class _NodePath( object ): """OpenGLContext-specific node-path class At the moment this only adds a single method,...
32
69
0.630896
1,486
0.876179
0
0
0
0
0
0
746
0.439858
fc12305fff510e126657094db88dd638e8718e01
1,042
py
Python
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
import random from math import sqrt sum = 0 for x in range(101): sum += x print(sum) ''' range(101) 0-100 一共101个数 range(1,101) 1-100 range(1,101,2) 1-100间的奇数 步长为2 range(100,0,-2) 100-0间的偶数 步长为-2 ''' sum = 0 for x in range(100, 0, -2): sum += x print(sum) # while # 0-100间的随机数 answer = random.randint(0, 1...
17.366667
53
0.589251
0
0
0
0
0
0
0
0
522
0.428571
fc140cda2ae3ddb2fa94e33b0e36406cb6293308
12,340
py
Python
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
2
2019-01-16T03:55:57.000Z
2019-01-16T04:04:38.000Z
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
4
2018-10-02T00:39:18.000Z
2018-10-02T00:52:31.000Z
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
2
2018-10-09T06:31:52.000Z
2018-11-16T00:49:40.000Z
# Copyright (C) 2018, HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/license...
40.19544
121
0.569044
11,399
0.923744
0
0
366
0.02966
0
0
4,863
0.394084
fc15adfda30a5ded3481fe570a59a41b60da2bcc
26,347
py
Python
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
36.290634
87
0.537405
25,499
0.966933
0
0
0
0
0
0
11,086
0.420386
fc165549752f98bd300323b664ce1555196f65d8
661
py
Python
pyblazing/__init__.py
Mattlk13/pyBlazing
5c3042c510ab17e9f9d1647e1873d3d04313d900
[ "Apache-2.0" ]
null
null
null
pyblazing/__init__.py
Mattlk13/pyBlazing
5c3042c510ab17e9f9d1647e1873d3d04313d900
[ "Apache-2.0" ]
null
null
null
pyblazing/__init__.py
Mattlk13/pyBlazing
5c3042c510ab17e9f9d1647e1873d3d04313d900
[ "Apache-2.0" ]
null
null
null
from .api import run_query_get_token from .api import convert_to_dask from .api import run_query_get_results from .api import run_query_get_concat_results from .api import register_file_system from .api import deregister_file_system from .api import FileSystemType, DriverType, EncryptionType from .api import SchemaFro...
33.05
60
0.857791
0
0
0
0
0
0
0
0
0
0
fc17f33a601367758a32e2d5faa7f26cd43a27dc
1,938
py
Python
bootstrap/p1.5.0/src/common/const.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
bootstrap/p1.5.0/src/common/const.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
bootstrap/p1.5.0/src/common/const.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
class Constants(object): LOGGER_CONF = "common/mapr_conf/logger.yml" USERNAME = "mapr" GROUPNAME = "mapr" USERID = 5000 GROUPID = 5000 ADMIN_USERNAME = "custadmin" ADMIN_GROUPNAME = "custadmin" ADMIN_USERID = 7000 ADMIN_GROUPID = 7000 ADMIN_PASS = "mapr" MYSQL_USER = "admin"...
29.363636
108
0.639835
1,936
0.998968
0
0
0
0
0
0
1,076
0.555212
fc180c50e2be52fc8b9a19b64b0af4e3927de263
12,367
py
Python
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
# Jeonghyun Kim, UVR KAIST @jeonghyunct.kaist.ac.kr import os, sys import json import h5py import numpy as np import quaternion import torch from torch.utils.data import Dataset BASE_DIR_1 = os.path.dirname(os.path.abspath(__file__)) # scan2cad BASE_DIR = os.path.dirname(BASE_DIR_1) # dataset ROOT_DIR = os.path.dirn...
38.052308
147
0.537479
9,192
0.743268
0
0
0
0
0
0
2,623
0.212097
fc18327783ac4d0615c52f0106bc59f803cb607d
3,590
py
Python
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
27
2015-10-05T06:21:28.000Z
2021-10-04T17:08:23.000Z
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2020-11-08T12:39:38.000Z
2021-01-10T22:31:36.000Z
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2015-01-29T23:10:34.000Z
2022-01-08T05:20:13.000Z
#!/usr/bin/env python """ Compute diffusion coefficient from MSD data. Time interval, DT, is obtained from in.pmd in the same directory. Usage: msd2diff.py [options] MSD_FILE Options: -h, --help Show this message and exit. -o, --offset OFFSET Offset of given data. [default: 0] --plot Plot ...
29.186992
69
0.567688
0
0
0
0
0
0
0
0
1,117
0.311142
fc186568dd52a9df9e70c87a7b31fe1c1c3e1f4d
1,172
py
Python
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
1
2020-04-12T17:54:52.000Z
2020-04-12T17:54:52.000Z
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
import os f = open(os.path.join(os.path.dirname(__file__), '../input/5/part2.txt'), 'r') class InstructionSet: def __init__(self, instructions): self.instructions = instructions self.currentIndex = 0 self.numberSteps = 0 def _changeOffsetValue(self, index): if self.instructi...
23.44
78
0.619454
714
0.609215
0
0
0
0
0
0
35
0.029863
fc188927db9f5bd43bd5abe64681e14292f26e08
269
py
Python
features/steps/basic_account_add_bdd.py
MhmdRyhn/behavior_test
868252e0b31596e0bff4a969745cf3b633c13695
[ "MIT" ]
null
null
null
features/steps/basic_account_add_bdd.py
MhmdRyhn/behavior_test
868252e0b31596e0bff4a969745cf3b633c13695
[ "MIT" ]
null
null
null
features/steps/basic_account_add_bdd.py
MhmdRyhn/behavior_test
868252e0b31596e0bff4a969745cf3b633c13695
[ "MIT" ]
null
null
null
import behave @behave.when('I add $1200 to my account') def add_usd_1200(context): context.account.add_cash(amount=1200) @behave.then('It becomes $3200 in my account') def check_for_increase_to_usd_1880(context): assert context.account.current_cash == 3200
22.416667
47
0.762082
0
0
0
0
249
0.925651
0
0
59
0.219331
fc18a51ed3a62618a4f8d1b8d53f53c96ae69319
11,944
py
Python
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
272
2017-01-29T18:43:25.000Z
2022-03-27T20:43:50.000Z
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
434
2017-01-23T20:22:51.000Z
2022-03-31T18:10:36.000Z
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
77
2017-04-15T17:04:04.000Z
2022-03-04T10:03:39.000Z
"""Tests camera and system functions.""" import unittest from unittest import mock from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule, BlinkOwl from blinkpy.camera import BlinkCamera, BlinkCameraMini @mock.patch("blinkpy.auth.Auth.query"...
40.488136
83
0.592264
11,621
0.972957
0
0
11,660
0.976222
0
0
2,657
0.222455
fc1a91eb27f4ff382a15602726e82a1122f6307d
2,807
py
Python
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import numpy as np from openmdao.api import Group from .dynamic_pressure_comp import DynamicPressureComp from .lift_drag_force_comp import LiftDragForceComp from .cd0_comp import CD0Comp from .kappa_comp import KappaComp from .cla_comp import CLaComp from .cl_comp import CLComp...
34.231707
79
0.530816
2,423
0.863199
0
0
0
0
0
0
702
0.250089
fc1b9449290073ccef5e51dfe2bdedbc18900050
7,035
py
Python
stats.py
jakeb1996/SBS
3bcc0017d22674d4290be1b272aeac4836f0d5ec
[ "MIT" ]
null
null
null
stats.py
jakeb1996/SBS
3bcc0017d22674d4290be1b272aeac4836f0d5ec
[ "MIT" ]
null
null
null
stats.py
jakeb1996/SBS
3bcc0017d22674d4290be1b272aeac4836f0d5ec
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import argparse, csv, numpy, time, os, re def main(resultsFile, toolName): filesToCalc = [] toolNames = [] if os.path.isfile(resultsFile): # the user must have defined an exact file to plot filesToCalc.append(resultsFile) toolNames.appen...
33.341232
338
0.519119
0
0
0
0
0
0
0
0
2,507
0.356361
fc1d23d6b61a9e5c408d579ed37655541819b9f0
23,402
py
Python
callback_handlers.py
andrey18106/vocabulary_bot
68a5835fb69e255df1766c2ed5c5228daaa4f06f
[ "MIT" ]
null
null
null
callback_handlers.py
andrey18106/vocabulary_bot
68a5835fb69e255df1766c2ed5c5228daaa4f06f
[ "MIT" ]
null
null
null
callback_handlers.py
andrey18106/vocabulary_bot
68a5835fb69e255df1766c2ed5c5228daaa4f06f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ===== Default imports ===== import asyncio import logging # ===== External libs imports ===== from aiogram import Bot, Dispatcher, types from aiogram.dispatcher import FSMContext # ===== Local imports ===== from analytics import BotAnalytics from db_manager import DbManager from lang_man...
61.746702
119
0.563499
22,831
0.9756
0
0
20,919
0.893898
19,768
0.844714
2,839
0.121314
fc1d28c4600f03845019e2280e8c9b05ec587f01
930
py
Python
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# 6. Специални числа # Да се напише програма, която чете едно цяло число N, въведено от потребителя, и генерира всички възможни "специални" # числа от 1111 до 9999. За да бъде “специално” едно число, то трябва да отговаря на следното условие: # • N да се дели на всяка една от неговите цифри без остатък. # Пример: при N...
35.769231
130
0.665591
0
0
0
0
0
0
0
0
900
0.732303
fc1d95b3a3f568e9cf0561a8f283914e5b1db140
1,815
py
Python
skopt/tests/test_transformers.py
sqbl/scikit-optimize
c1866d5a9ad67efe93ac99736bfc2dc659b561d4
[ "BSD-3-Clause" ]
null
null
null
skopt/tests/test_transformers.py
sqbl/scikit-optimize
c1866d5a9ad67efe93ac99736bfc2dc659b561d4
[ "BSD-3-Clause" ]
null
null
null
skopt/tests/test_transformers.py
sqbl/scikit-optimize
c1866d5a9ad67efe93ac99736bfc2dc659b561d4
[ "BSD-3-Clause" ]
null
null
null
import pytest import numbers import numpy as np from numpy.testing import assert_raises from numpy.testing import assert_array_equal from numpy.testing import assert_equal from numpy.testing import assert_raises_regex from skopt.space import LogN, Normalize @pytest.mark.fast_test def test_logn2_integer(): transf...
34.245283
72
0.738292
0
0
0
0
1,546
0.851791
0
0
0
0
fc1f1d11a9a9d323ee25ccd432c9e05f59ae89c2
29,526
py
Python
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-07-08T04:18:30.000Z
2021-07-08T04:18:30.000Z
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-08-24T03:36:53.000Z
2021-08-24T03:36:53.000Z
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-07-08T04:18:32.000Z
2021-07-08T04:18:32.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
39.953992
183
0.601605
18,577
0.629132
0
0
1,331
0.045076
0
0
12,093
0.409543
fc1f29f43c293c82628f38a87129e37c79fd02ea
6,694
py
Python
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
import numpy as np import multiprocessing as mp import pyfftw from numpy import pi, exp, sqrt, sin, cos, conj, arctan, tanh, tan from numpy import heaviside as heav from include import helper import h5py # ---------Spatial and potential parameters-------------- Mx = My = 64 Nx = Ny = 128 # Number of grid pts dx = dy...
34.864583
114
0.586047
0
0
0
0
0
0
0
0
1,471
0.219749
fc1fa639ebbd112d3143f8455e253cf35ff2e2c9
1,033
py
Python
src/main/resources/scripts/crumbDiag.py
cam-laf/vectorcast-execution-plugin
fd54e8580886084d040d21fa809be8a609d44d8e
[ "MIT" ]
4
2019-06-28T22:46:06.000Z
2020-05-28T08:53:37.000Z
src/main/resources/scripts/crumbDiag.py
cam-laf/vectorcast-execution-plugin
fd54e8580886084d040d21fa809be8a609d44d8e
[ "MIT" ]
18
2018-09-26T15:32:11.000Z
2021-10-01T21:57:14.000Z
src/main/resources/scripts/crumbDiag.py
cam-laf/vectorcast-execution-plugin
fd54e8580886084d040d21fa809be8a609d44d8e
[ "MIT" ]
11
2017-03-19T18:37:16.000Z
2020-04-06T19:46:09.000Z
from __future__ import print_function import requests import sys import os verbose=True try: username=os.environ['USERNAME'] password=os.environ['PASSWORD'] except: print("Crumb Diaganostic requires USERNAME/PASSWORD to be set as environment variables") sys.exit(-1) jenkins_url=os.environ['JENKINS_URL'...
35.62069
120
0.683446
0
0
0
0
0
0
0
0
428
0.414327
fc20aff0ea13fa9ee03eb24e8c0870f91ab872ab
219
py
Python
URI/1-Beginner/1099.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1099.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1099.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- for i in range(int(raw_input())): x, y = [int(x) for x in raw_input().split()] if x > y: x, y = y, x x += 1 if x % 2 == 0 else 2 print sum([j for j in range(x, y, 2)])
19.909091
48
0.465753
0
0
0
0
0
0
0
0
23
0.105023
fc2274d5bd59faf9232572f6514dafd536557966
625
py
Python
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
import tensorflow as tf FLIPPING_TENSOR = tf.constant([1.0, -1.0, 1.0]) @tf.function def sample_data(points, labels, num_point): if tf.random.uniform(shape=()) >= 0.5: return points * FLIPPING_TENSOR, labels return points, labels mock_data = tf.constant([ [1., 2., 3.], [4., 5., 6.], [7....
19.53125
69
0.6048
0
0
0
0
174
0.2784
0
0
0
0
fc23560a0050cb2a7fdf80d872323f5e40124603
118
py
Python
myapp.py
dataholiks/flask_heroku_scheduler
d2b4c2c8fdee066aea729c1566bfbaf52c068557
[ "MIT" ]
7
2019-03-20T01:48:42.000Z
2021-07-02T15:51:36.000Z
myapp.py
dataholiks/flask_heroku_scheduler
d2b4c2c8fdee066aea729c1566bfbaf52c068557
[ "MIT" ]
null
null
null
myapp.py
dataholiks/flask_heroku_scheduler
d2b4c2c8fdee066aea729c1566bfbaf52c068557
[ "MIT" ]
1
2020-09-17T06:36:24.000Z
2020-09-17T06:36:24.000Z
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'This is the app index page.'
14.75
40
0.669492
0
0
0
0
69
0.584746
0
0
32
0.271186
fc241e5e9d6a198e302aa50f27135ed63d4ecd94
629
py
Python
day_ok/schedule/migrations/0027_auto_20210216_1337.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
null
null
null
day_ok/schedule/migrations/0027_auto_20210216_1337.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
16
2021-02-27T08:36:19.000Z
2021-04-07T11:43:31.000Z
day_ok/schedule/migrations/0027_auto_20210216_1337.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-16 11:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schedule', '0026_event'), ] operations = [ migrations.AlterField( model_name='group', name='students', f...
26.208333
101
0.599364
548
0.854914
0
0
0
0
0
0
169
0.263651
fc24427e78d6696d2cac568f07f35aa2881831bf
10,683
py
Python
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
import aiohttp import asyncio import time import time import argparse import glob import os import shutil import random import re import requests import sys from concurrent import futures import pdfkit import time from retrying import retry from pygments import highlight from pygments.lexers import...
33.914286
114
0.529346
9,824
0.890743
0
0
1,345
0.121951
0
0
3,467
0.314353
fc24c739bd5d57047e0ff4c5f882289fbb007117
722
py
Python
corehq/apps/app_manager/tests/test_xml_parsing.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/app_manager/tests/test_xml_parsing.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/app_manager/tests/test_xml_parsing.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from django.test import SimpleTestCase as TestCase from corehq.apps.app_manager.models import _parse_xml import os class XMLParsingTest(TestCase): def testUnicodeError(self): """Tests a bug found in Unicode processing of a form""" file_path = os.path.join(os.path.dirname(__file__), "data", "un...
36.1
95
0.634349
605
0.83795
0
0
0
0
0
0
205
0.283934
fc26055543d8ffb1b618b1328cc4ad7000d27faf
25,605
py
Python
S4/S4 Library/generated/protocolbuffers/Localization_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/generated/protocolbuffers/Localization_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/generated/protocolbuffers/Localization_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
import protocolbuffers.Consts_pb2 as Consts_pb2 from google.protobuf import descriptor, message, reflection DESCRIPTOR = descriptor.FileDescriptor(name = 'Localization.proto', package = 'EA.Sims4.Network', serialized_pb = '\n\x12Localization.proto\x12\x10EA.Sims4.Network\x1a\x0cConsts.proto"\x85\n\n\x14Loc...
218.846154
2,866
0.754189
678
0.026478
0
0
0
0
0
0
6,771
0.26443
fc2653dfaa764320b8eb71e09ae9ebdeb59fea8c
287
py
Python
dynamic_programming/01/01-06.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
dynamic_programming/01/01-06.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
dynamic_programming/01/01-06.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
# input N, M = map(int, input().split()) Ds = [*map(int, input().split())] # compute dp = [False] * (N+1) for ni in range(N+1): if ni == 0: dp[ni] = True for D in Ds: if ni >= D: dp[ni] = dp[ni] or dp[ni-D] # output print("Yes" if dp[-1] else "No")
17.9375
39
0.477352
0
0
0
0
0
0
0
0
33
0.114983
fc26599fa48fc7ee6289bde05e441a088fd069d9
447
py
Python
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
# sorting n=int(input()) array=list(map(int,input().split())) i=0 count=[] counter=0 while i<len(array): min=i start=i+1 while(start<len(array)): if array[start]<array[min]: min=start start+=1 if i!=min: array[i],array[min]=array[min],array[i] count.append(i) ...
19.434783
47
0.557047
0
0
0
0
0
0
0
0
12
0.026846
fc267d60ba151acc5fd2bfd47790174a62234e97
1,043
py
Python
tests/news_test.py
mucciz/News
2484d91edaef181d9a6d4b86d6bee822781f931d
[ "MIT" ]
null
null
null
tests/news_test.py
mucciz/News
2484d91edaef181d9a6d4b86d6bee822781f931d
[ "MIT" ]
null
null
null
tests/news_test.py
mucciz/News
2484d91edaef181d9a6d4b86d6bee822781f931d
[ "MIT" ]
1
2019-07-29T12:45:00.000Z
2019-07-29T12:45:00.000Z
import unittest from app.models import News # News = news.News class NewsTest(unittest.TestCase): ''' Test Class to test the behaviour of the Movie class ''' def setUp(self): ''' Set up method that will run before every Test ''' self.new_news = News('abc-news','ABC NEWS...
35.965517
207
0.67977
925
0.886865
0
0
0
0
0
0
537
0.514861
fc2698b4b0dd35425a260f9ab84e959ae7a54a73
365
py
Python
test/get-gh-comment-info.py
MQasimSarfraz/cilium
89b622cf4e0a960e27e5b1bf9f139abee25dfea0
[ "Apache-2.0" ]
1
2020-06-12T19:43:52.000Z
2020-06-12T19:43:52.000Z
test/get-gh-comment-info.py
MQasimSarfraz/cilium
89b622cf4e0a960e27e5b1bf9f139abee25dfea0
[ "Apache-2.0" ]
null
null
null
test/get-gh-comment-info.py
MQasimSarfraz/cilium
89b622cf4e0a960e27e5b1bf9f139abee25dfea0
[ "Apache-2.0" ]
1
2020-06-17T07:06:27.000Z
2020-06-17T07:06:27.000Z
import argparse parser = argparse.ArgumentParser() parser.add_argument('ghcomment', type=str) # this is for test-me-please phrases parser.add_argument('--focus', type=str, default="") parser.add_argument('--version', type=str, default="") parser.add_argument('--retrieve', type=str, default="focus") args = parser.pars...
30.416667
79
0.750685
0
0
0
0
0
0
0
0
90
0.246575
fc26c7b5181466b2721115acd12b6c40ca2fe4ae
7,699
py
Python
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
""" This script cleans and prepares the data set of bookings for the future usage """ import argparse import logging import sys import pandas as pd from preprocessing.common import canonize_datetime, raw_data_to_df, check_processed_columns, check_data OLD_BREAKPOINT_MATCHER = { 2001: [ (1, 1, "New Year"...
36.661905
113
0.56267
0
0
0
0
0
0
0
0
2,764
0.359008
fc272e521d0e985bdda9352e00baa8b30c9ad89c
1,309
py
Python
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
7
2022-02-06T09:49:27.000Z
2022-03-03T14:23:32.000Z
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
from sanic import Blueprint, Request, HTTPResponse, response from sanic.models.handler_types import RouteHandler from functools import wraps from inspect import isawaitable from typing import Callable, Dict, Any, Union, Awaitable, List, Optional ACCEPTED_WISH_VERS = ['wish.alpha.v1'] WishHandler = Callable[..., Union...
37.4
124
0.612681
0
0
0
0
637
0.480755
618
0.466415
168
0.126792