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
23d1f2c4f4ea5639727ded8d5757f9d66fc0cc39
13,959
py
Python
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
1
2022-03-20T12:25:34.000Z
2022-03-20T12:25:34.000Z
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
null
null
null
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """TarSync.py: Synchronize .fcstd and .tar files. Usage: TarSync.py [OPTIONS] [DIR] ... Recursively scans directories searching for `.fcstd`/`.FCstd` files and synchronizes them with associated `.tar` files. The current directory is used if no explicit directory or files are listed. Options: ...
45.617647
98
0.646321
0
0
0
0
0
0
0
0
6,855
0.491081
23d1f9c2f299c304c7761f6ac8842a0f28c28618
20,325
py
Python
tcga_encoder/analyses/old/spearmans_input_cluster_from_hidden.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
2
2017-12-19T15:32:46.000Z
2018-01-12T11:24:24.000Z
tcga_encoder/analyses/old/spearmans_input_cluster_from_hidden.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
null
null
null
tcga_encoder/analyses/old/spearmans_input_cluster_from_hidden.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
null
null
null
from tcga_encoder.utils.helpers import * from tcga_encoder.data.data import * #from tcga_encoder.data.pathway_data import Pathways from tcga_encoder.data.hallmark_data import Pathways from tcga_encoder.definitions.tcga import * #from tcga_encoder.definitions.nn import * from tcga_encoder.definitions.locations import * ...
42.080745
222
0.667847
0
0
0
0
0
0
0
0
4,912
0.241673
23d49ee738e43aa66d515d38988b95d1c1f66917
102
py
Python
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
541
2015-05-27T04:34:38.000Z
2022-03-23T18:00:16.000Z
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
85
2015-05-27T14:27:27.000Z
2022-02-27T18:51:08.000Z
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
129
2015-05-27T20:55:43.000Z
2022-03-23T14:18:07.000Z
from XXX_PROJECT_NAME_XXX.settings import * # noqa # Override any settings required for tests here
20.4
51
0.794118
0
0
0
0
0
0
0
0
53
0.519608
23d6f93dd725259d766c98af0f0522d89793519e
3,808
py
Python
m2m/search/models.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
null
null
null
m2m/search/models.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
null
null
null
m2m/search/models.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
1
2018-06-27T14:05:43.000Z
2018-06-27T14:05:43.000Z
from django.db import models #from djangosphinx import SphinxSearch, SphinxRelation, SphinxQuerySet #import djangosphinx.apis.current as sphinxapi from advancedsearch.models import Movie, Episode, Song from browseNet.models import Host, Path # Create your models here. class File(models.Model): '''An indexed ...
39.666667
110
0.665966
3,520
0.92437
0
0
0
0
0
0
1,181
0.310137
23d7aa18934d135f4447648b4a864fe8e8b4a99c
1,790
py
Python
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
27
2017-01-31T03:28:26.000Z
2021-09-05T21:02:36.000Z
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
18
2018-02-03T16:44:18.000Z
2021-06-26T04:12:17.000Z
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
5
2017-09-23T15:53:08.000Z
2020-07-26T06:19:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2020, henry232323 # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, mo...
42.619048
76
0.701117
667
0.372626
0
0
218
0.121788
0
0
1,344
0.750838
23d7e7b0e05f376311c1a1430b049eda79a5c69d
4,465
py
Python
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
101
2015-01-09T14:59:57.000Z
2021-11-06T23:33:50.000Z
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
48
2015-01-30T05:53:47.000Z
2019-03-21T23:17:40.000Z
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
50
2015-01-30T08:56:07.000Z
2020-12-25T02:34:08.000Z
# # -*- coding: utf-8 -*- # # This file is part of reclass (http://github.com/madduck/reclass) # # Copyright © 2007–14 martin f. krafft <madduck@madduck.net> # Released under the terms of the Artistic Licence 2.0 # from reclass.utils.refvalue import RefValue from reclass.defaults import PARAMETER_INTERPOLATION_SENTINE...
34.882813
76
0.600224
3,472
0.777081
0
0
0
0
0
0
755
0.168979
23d88124e0abeec9041b9f813d746d7445479956
1,506
py
Python
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
""" Author: Isamu Isozaki (isamu.website@gmail.com) Description: description Created: 2021-12-01T16:32:53.089Z Modified: !date! Modified By: modifier """ from flask import Blueprint, redirect, jsonify, url_for, request from neuroflow.repository import create_mood, get_authorized, load_moods_from_user from functools i...
30.12
82
0.616866
0
0
0
0
928
0.616202
0
0
292
0.193891
23d8fd0ae625c1772c3f3bb0a2d8ee76180f8da6
2,684
py
Python
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
2
2020-03-07T23:32:41.000Z
2020-05-22T15:35:16.000Z
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
1
2020-05-25T11:17:15.000Z
2020-05-26T06:58:37.000Z
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
2
2020-03-31T13:00:01.000Z
2021-07-14T14:34:37.000Z
import logging import time from pathlib import Path from configparser import ConfigParser import boto3 from botocore.exceptions import ClientError def create_bucket(bucket_name: str, region: str = 'us-west-2'): """ Create S3 bucket https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-c...
31.209302
120
0.688897
0
0
0
0
0
0
0
0
1,248
0.464978
23da034ad35f31e90c8e53d6592ca43cf2dabf3f
4,734
py
Python
Timer.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
Timer.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
Timer.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time help_msg = '''------ §aMCR 时钟插件帮助信息 §f------ §b!!time help §f- §c显示帮助消息 §b!!time ct §f- §c显示当前时间 §b!!time timer [秒] §f- §c开启倒计时 §b!!time stopwatch start §f- §c开启秒表 §b!!time stopwatch stop §f- §c停止秒表 --------------------------------''' no_input = '''------ §a温馨提示 §f------ §c未知指令 请输入...
41.526316
114
0.444022
0
0
0
0
0
0
0
0
1,408
0.277493
23dbf2b9d9cefc92e0075e49e75f8a00b52cb7f9
4,174
py
Python
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
3
2020-12-04T07:29:31.000Z
2022-01-30T10:14:41.000Z
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
null
null
null
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
1
2021-03-27T06:14:43.000Z
2021-03-27T06:14:43.000Z
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020 EntySec # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use,...
43.030928
115
0.598946
2,929
0.701725
0
0
0
0
0
0
1,285
0.307858
23dc4f684d9d5300357e5bf6d8fabca6e13f5585
8,556
py
Python
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 5 @author: Melisa Maidana This script runs different cropping parameters, motion correct the cropped images using reasonable motion correction parameters that were previously selected by using the parameters_setting_motion_correction scripts, and ...
50.329412
161
0.661524
0
0
0
0
0
0
0
0
2,446
0.285881
23dd6ab36e5a83840094cc404aedad771f6f9076
1,676
py
Python
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2021-04-15T13:05:03.000Z
2021-04-15T13:05:03.000Z
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2018-12-11T13:41:45.000Z
2018-12-11T14:15:15.000Z
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2020-01-01T21:03:02.000Z
2020-01-01T21:03:02.000Z
import pandas as pd import json import urllib2 def download_nordpool(limit, output_file): ''' The method downloads the nordpool available data from www.energidataservice.dk and saves it in a csv file limit: Int, the number of maximum rows of data to download output_file: Str, the name of the output file ''' ...
37.244444
127
0.7679
0
0
0
0
0
0
0
0
1,063
0.634248
23df352466c71a2286ba6b66bb76f8b89e0ba1ff
1,873
py
Python
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
1
2022-03-16T22:20:12.000Z
2022-03-16T22:20:12.000Z
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
2
2022-03-22T23:34:38.000Z
2022-03-24T17:35:53.000Z
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
null
null
null
from typing import Any import torch import torch.nn as nn import torch.nn.functional as F class CNN(nn.Module): def __init__(self, entity_dim): super(CNN, self).__init__() self.dim = entity_dim self.conv1 = nn.Conv1d(in_channels=1, out_channels=10, kernel_s...
31.745763
75
0.538708
1,778
0.949279
0
0
0
0
0
0
0
0
23df5a83027200920168a92b6eedd813725d6db4
2,608
py
Python
students/K33421/Novikova Veronika/practice/warriors_project/warriors_app/views.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/K33421/Novikova Veronika/practice/warriors_project/warriors_app/views.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/K33421/Novikova Veronika/practice/warriors_project/warriors_app/views.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
from rest_framework import generics from rest_framework.response import Response from rest_framework.views import APIView from .serializers import * class WarriorListView(APIView): def get(self, request): warriors = Warrior.objects.all() serializer = WarriorSerializer(warriors, many=True) ...
29.636364
107
0.71434
2,423
0.929064
0
0
0
0
0
0
151
0.057899
23e0261a193fa6f445356c45a1780f878354e500
157
py
Python
utils/platform.py
dennisding/build
e9342c2f235f64a8e125b3e6208426f1c2a12346
[ "Apache-2.0" ]
null
null
null
utils/platform.py
dennisding/build
e9342c2f235f64a8e125b3e6208426f1c2a12346
[ "Apache-2.0" ]
null
null
null
utils/platform.py
dennisding/build
e9342c2f235f64a8e125b3e6208426f1c2a12346
[ "Apache-2.0" ]
null
null
null
# -*- encoding:utf-8 -*- class Platform: def __init__(self): pass class Win(Platform): pass class Ios(Platform): pass class Android(Platform): pass
11.214286
24
0.687898
125
0.796178
0
0
0
0
0
0
24
0.152866
23e0459ade4fcfb40deaedb8969b8ab2785c8442
1,801
py
Python
drone/flight/driving/motor_dummy.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
null
null
null
drone/flight/driving/motor_dummy.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
18
2016-03-30T08:43:45.000Z
2017-03-27T11:14:17.000Z
drone/flight/driving/motor_dummy.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
2
2016-03-06T20:38:06.000Z
2019-09-10T14:46:35.000Z
''' Created on 19 de ene. de 2016 @author: david ''' import time class MotorDummy(object): MAX_THROTTLE = 80.0 #percentage def __init__(self, motorId): """ Constructor @param motorId: Identificator of the motor. A number between 0 to 3 (in case of quadcopter) ...
20.465909
110
0.494725
1,732
0.961688
0
0
0
0
0
0
751
0.416991
23e397535cfd73ea5daf63a3a67cc1be6978c490
29,136
py
Python
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
6
2019-12-31T17:25:14.000Z
2021-12-15T14:30:05.000Z
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
17
2020-01-03T00:03:30.000Z
2022-03-14T19:17:50.000Z
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
6
2020-06-24T03:23:37.000Z
2021-12-17T14:20:46.000Z
import asyncio from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Type from typing import Union try: import simplejson as json except ImportError: import json import websockets from valr_python.enum import AccountEvent from valr_python.e...
30.864407
120
0.512699
28,271
0.970312
0
0
405
0.0139
1,847
0.063392
25,465
0.874005
23e4cf7747f358650ecc3229b90396e47c6f5137
110
py
Python
bagua/torch_api/compression.py
fossabot/bagua
2a8434159bfa502e61739b5eabd91dca57c9256c
[ "MIT" ]
1
2021-06-23T08:13:15.000Z
2021-06-23T08:13:15.000Z
bagua/torch_api/compression.py
fossabot/bagua
2a8434159bfa502e61739b5eabd91dca57c9256c
[ "MIT" ]
null
null
null
bagua/torch_api/compression.py
fossabot/bagua
2a8434159bfa502e61739b5eabd91dca57c9256c
[ "MIT" ]
null
null
null
from enum import Enum class Compressor(Enum): NoneCompressor = None Uint8Compressor = "MinMaxUInt8"
15.714286
35
0.736364
85
0.772727
0
0
0
0
0
0
13
0.118182
23e64fd0f143ca1fd055ab9e432dcd782eb331eb
2,215
py
Python
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from database import Database from rafflecollector import RaffleCollector import os import smtplib, ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import schedule import time class Emailer: db = Database() email_id = os.environ['RAFFLE_EMAIL'] ...
31.642857
91
0.621219
1,806
0.81535
0
0
0
0
0
0
358
0.161625
23e79af618c8a287421e1a5d39cd45ed069fab6f
4,391
py
Python
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
null
null
null
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
3
2021-04-29T22:57:09.000Z
2021-05-03T15:32:39.000Z
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
1
2021-08-29T09:53:09.000Z
2021-08-29T09:53:09.000Z
import os import json import shutil import time from pathlib import Path from sys import platform # TODO: (stackoverflow.com/question/17136514/how-to-get-3rd-party-cookies) # stackoverflow.com/questions/22200134/make-selenium-grab-all-cookies, add the selenium, phantomjs part to catch ALL cookies # TODO: Maybe save ...
35.128
125
0.662491
0
0
0
0
0
0
0
0
2,312
0.526532
23e9be3b6c2cc45718ae9d2bebea994634002d02
925
py
Python
src/utils/import_lock.py
ThatOneAnimeGuy/seiso
f8ad20a0ec59b86b88149723eafc8e6d9f8be451
[ "BSD-3-Clause" ]
3
2021-11-08T05:23:08.000Z
2021-11-08T09:46:51.000Z
src/utils/import_lock.py
ThatOneAnimeGuy/seiso
f8ad20a0ec59b86b88149723eafc8e6d9f8be451
[ "BSD-3-Clause" ]
null
null
null
src/utils/import_lock.py
ThatOneAnimeGuy/seiso
f8ad20a0ec59b86b88149723eafc8e6d9f8be451
[ "BSD-3-Clause" ]
2
2021-11-08T05:23:12.000Z
2021-11-16T01:16:35.000Z
from flask import current_app from ..internals.database.database import get_cursor def take_lock(service, artist_service_id, post_service_id): query = 'INSERT INTO post_import_lock (service, artist_service_id, post_service_id) VALUES (%s, %s, %s) ON CONFLICT DO NOTHING RETURNING id' with get_cursor() as curso...
35.576923
144
0.68973
0
0
0
0
0
0
0
0
257
0.277838
23ecadb81a5ec6b2f9e0c728e946a750d6f1f36e
93
py
Python
modules/tankshapes/__init__.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
modules/tankshapes/__init__.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
1
2018-11-21T04:50:57.000Z
2018-11-21T04:50:57.000Z
modules/tankshapes/__init__.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
""" Tank shapes package for Guns. This init file marks the package as a usable module. """
15.5
52
0.709677
0
0
0
0
0
0
0
0
92
0.989247
23ece7de650d89db697b4f1ccb8b587a85d078b4
99
py
Python
jonathan/Aufgabe23/1.py
codingkrabbe/adventofcode
21965a9519e8c20ab154354fd4b4ad3c807b7b95
[ "MIT" ]
5
2021-12-01T21:44:22.000Z
2021-12-09T19:11:21.000Z
jonathan/Aufgabe23/1.py
codingkrabbe/adventofcode
21965a9519e8c20ab154354fd4b4ad3c807b7b95
[ "MIT" ]
null
null
null
jonathan/Aufgabe23/1.py
codingkrabbe/adventofcode
21965a9519e8c20ab154354fd4b4ad3c807b7b95
[ "MIT" ]
3
2021-12-01T21:41:20.000Z
2021-12-03T14:17:24.000Z
def main(): lines = open('input.txt', 'r').readlines() if __name__ == '__main__': main()
14.142857
46
0.565657
0
0
0
0
0
0
0
0
24
0.242424
23ed67548a141b4172f60911a628a2325339dc44
4,468
py
Python
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
1
2017-06-08T11:41:00.000Z
2017-06-08T11:41:00.000Z
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
null
null
null
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
null
null
null
import feedparser import vlc import argparse import sys import time import curses import wget def arg(): parser = argparse.ArgumentParser( description='Simple Podcast Streamer.') parser.add_argument('--add', '-a', type=str, default=None, help='Pass Podcast an URL argument that you want to add....
30.813793
75
0.57744
0
0
0
0
0
0
0
0
765
0.171218
23edadd6c1315ae3bef9cd266a3d92857c911930
229
py
Python
tfbs_footprinter-runner.py
thirtysix/TFBS_footprinting
f627e0a5186e00fe166dad46b21d9b2742b51760
[ "MIT" ]
null
null
null
tfbs_footprinter-runner.py
thirtysix/TFBS_footprinting
f627e0a5186e00fe166dad46b21d9b2742b51760
[ "MIT" ]
null
null
null
tfbs_footprinter-runner.py
thirtysix/TFBS_footprinting
f627e0a5186e00fe166dad46b21d9b2742b51760
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Convenience wrapper for running tfbs_footprinter directly from source tree.""" from tfbs_footprinter.tfbs_footprinter import main if __name__ == '__main__': main()
17.615385
81
0.694323
0
0
0
0
0
0
0
0
135
0.58952
23ee7f3b59a96672f837686dde3019287c34f061
2,573
py
Python
metalfi/src/data/meta/importance/shap.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
2
2019-12-05T07:57:14.000Z
2019-12-05T13:02:08.000Z
metalfi/src/data/meta/importance/shap.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
31
2019-12-05T15:14:47.000Z
2020-12-04T14:37:46.000Z
metalfi/src/data/meta/importance/shap.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
1
2020-12-04T13:40:11.000Z
2020-12-04T13:40:11.000Z
import shap from pandas import DataFrame from sklearn.preprocessing import StandardScaler from metalfi.src.data.meta.importance.featureimportance import FeatureImportance class ShapImportance(FeatureImportance): def __init__(self, dataset): super(ShapImportance, self).__init__(dataset) self._na...
34.306667
93
0.629227
2,397
0.931597
0
0
0
0
0
0
204
0.079285
23ef7212ca626e96219a55f6302d2adc0e8dabbe
5,704
py
Python
Engine.py
MaciejKrol51/chess
457590768d338b900253ba345e64e56afbdf1ddd
[ "Apache-2.0" ]
null
null
null
Engine.py
MaciejKrol51/chess
457590768d338b900253ba345e64e56afbdf1ddd
[ "Apache-2.0" ]
null
null
null
Engine.py
MaciejKrol51/chess
457590768d338b900253ba345e64e56afbdf1ddd
[ "Apache-2.0" ]
null
null
null
def is_area_in_board(area): if 0 <= area[0] <= 7 and 0 <= area[1] <= 7: return True return False def cancel_castling(checker): if abs(checker.val) == 50 or abs(checker.val) == 900: checker.castling = False def is_king_beaten(board, color): for row in board: for are...
37.526316
121
0.577489
5,162
0.904979
0
0
0
0
0
0
99
0.017356
23f06c21c858b67e6817ed29322c8b3b1f30395d
2,281
py
Python
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
""" Original code Copyright 2009 [Waylan Limberg](http://achinghead.com) All changes Copyright 2008-2014 The Python Markdown Project Changed by Mohammad Tayseer to add CSS classes to table License: [BSD](http://www.opensource.org/licenses/bsd-license.php) """ from __future__ import absolute_import from __future__ ...
35.092308
88
0.621657
1,725
0.756247
0
0
0
0
0
0
767
0.336256
23f14aa8cb681028e47a2e9707262f0b7d8d18f4
6,320
py
Python
NAS/single-path-one-shot/src/MNIST/test.py
naviocean/SimpleCVReproduction
61b43e3583977f42e6f91ef176ec5e1701e98d33
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
NAS/single-path-one-shot/src/MNIST/test.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
NAS/single-path-one-shot/src/MNIST/test.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import argparse import json import logging import os import sys import time import cv2 import numpy as np import PIL import torch import torch.nn as nn import torchvision.datasets as datasets import torchvision.transforms as transforms from PIL import Image from angle import generate_angle # from cifar100_dataset im...
31.287129
91
0.612025
0
0
0
0
0
0
0
0
1,612
0.253858
23f14e1f84f7c3d2bff9dca3e337c8e7cd4c2c5e
3,231
py
Python
examples/pixel/plot_0_image.py
DeepanshS/csdmpy
ae8d20dd09f217bb462af67a3145bb6fcb025def
[ "BSD-3-Clause" ]
7
2020-01-04T20:46:08.000Z
2021-05-26T21:09:25.000Z
examples/pixel/plot_0_image.py
deepanshs/csdmpy
bd4e138b10694491113b10177a89305697f1752c
[ "BSD-3-Clause" ]
16
2021-06-09T06:28:27.000Z
2022-03-01T18:12:33.000Z
examples/pixel/plot_0_image.py
deepanshs/csdmpy
bd4e138b10694491113b10177a89305697f1752c
[ "BSD-3-Clause" ]
1
2020-01-03T17:04:16.000Z
2020-01-03T17:04:16.000Z
# -*- coding: utf-8 -*- """ Image, 2D{3} datasets ^^^^^^^^^^^^^^^^^^^^^ """ # %% # The 2D{3} dataset is two dimensional, :math:`d=2`, with # a single three-component dependent variable, :math:`p=3`. # A common example from this subset is perhaps the RGB image dataset. # An RGB image dataset has two spatial dim...
31.990099
85
0.701021
0
0
0
0
0
0
0
0
2,518
0.779325
23f1798fb64ee4b5169a0bf90b985ef75feb7390
76
py
Python
xdl/blueprints/__init__.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/blueprints/__init__.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/blueprints/__init__.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
from .procedure import ( CrossCouplingBlueprint, GenericBlueprint )
15.2
27
0.75
0
0
0
0
0
0
0
0
0
0
23f2b2f6f97b3acdf979b2b92b12fa1475acc97b
141
py
Python
ex013 - Reajuste Salarial/app.py
daphi-ny/python-exercicios
0836fd1a134f07dc1cb29f7c31fce75fff65f963
[ "MIT" ]
null
null
null
ex013 - Reajuste Salarial/app.py
daphi-ny/python-exercicios
0836fd1a134f07dc1cb29f7c31fce75fff65f963
[ "MIT" ]
null
null
null
ex013 - Reajuste Salarial/app.py
daphi-ny/python-exercicios
0836fd1a134f07dc1cb29f7c31fce75fff65f963
[ "MIT" ]
null
null
null
s = float(input('Digite o valor do salário: R$ ')) p = s + (s * 15 / 100) print('o salário de R$ {} com mais 15% ficará {:.2f}'.format(s, p))
47
67
0.58156
0
0
0
0
0
0
0
0
82
0.569444
23f63778d171661ca3379def8f64e54d84bf8d22
2,868
py
Python
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
1
2022-03-21T01:51:44.000Z
2022-03-21T01:51:44.000Z
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
null
null
null
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
null
null
null
import codecs import sqlite3 import json from fnmatch import fnmatch from abc import ABC, abstractmethod class FilesAnalysis(ABC): """Abstraction for analysis of transaction input data that contain popular file types.""" def __init__(self, chain: str, limit: int = 0, content_types: list[str] = ['*']): """ Initi...
32.224719
132
0.709902
2,761
0.962692
0
0
744
0.259414
0
0
1,230
0.42887
23f755b41ceb13c51fd1941958609398bf18c29d
3,615
py
Python
info/models/movie.py
wojciezki/movie_info
88f089e8eaa5310cf5b03f7aae4f6c9b871282f2
[ "MIT" ]
null
null
null
info/models/movie.py
wojciezki/movie_info
88f089e8eaa5310cf5b03f7aae4f6c9b871282f2
[ "MIT" ]
3
2020-02-11T23:47:00.000Z
2021-06-10T21:13:10.000Z
info/models/movie.py
wojciezki/movie_info
88f089e8eaa5310cf5b03f7aae4f6c9b871282f2
[ "MIT" ]
null
null
null
# Create your models here. import datetime from django.db import models from rest_framework.compat import MinValueValidator class Movie(models.Model): title = models.CharField(max_length=512) year = models.IntegerField(validators=[MinValueValidator(0), ], null=True, ...
41.079545
93
0.458645
3,487
0.964592
0
0
0
0
0
0
81
0.022407
23faddb427ccf2b4a51011515cdd3a2b5edefbe2
1,211
py
Python
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakotathon
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
8
2019-09-11T12:59:57.000Z
2021-08-11T16:31:58.000Z
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
66
2015-04-06T17:11:21.000Z
2019-02-03T18:09:52.000Z
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
5
2015-03-24T22:39:34.000Z
2018-04-21T12:14:05.000Z
"""An example of using Dakota as a component with PyMT. This example requires a WMT executor with PyMT installed, as well as the CSDMS Dakota interface and FrostNumberModel installed as components. """ import os from pymt.components import MultidimParameterStudy, FrostNumberModel from dakotathon.utils import configur...
27.522727
68
0.721718
0
0
0
0
0
0
0
0
549
0.453344
23fdbc64ade39f6aaca5e42eb2790bc7ac6b2823
4,427
py
Python
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
1
2020-01-17T07:54:02.000Z
2020-01-17T07:54:02.000Z
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
null
null
null
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
null
null
null
from callback import ValidationHistory from dataloader import Dataloader from normalizer import Normalizer import tensorflow as tf import numpy as np import argparse def get_model(input_shape, n_classes): base_model = tf.keras.applications.MobileNetV2(input_shape=input_shape, ...
33.793893
87
0.5733
0
0
0
0
0
0
0
0
678
0.153151
23fe13301d5fe663179594a9c1c64fdce727026b
1,354
py
Python
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
52
2016-08-04T02:15:52.000Z
2021-12-20T20:33:07.000Z
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
3
2019-11-15T15:13:51.000Z
2020-11-25T10:42:34.000Z
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
9
2019-03-06T04:21:29.000Z
2021-08-16T02:28:33.000Z
# coding=utf-8 from orgmode_entry import OrgmodeEntry entry = u'#A Etwas machen:: DL: Morgen S: Heute Ausstellung am 23.09.2014 12:00 oder am Montag bzw. am 22.10 13:00 sollte man anschauen. ' org = OrgmodeEntry() # Use an absolute path org.inbox_file = '/Users/Alex/Documents/Planung/Planning/Inbox.org' org.delim...
33.02439
140
0.739291
0
0
0
0
0
0
0
0
784
0.579025
23fead2b5260640c347d0b505721cb2630c98560
407
py
Python
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
70
2017-06-01T11:02:51.000Z
2017-06-30T00:35:32.000Z
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
import gzip import bz2 import lzma s = b'witch which has which witches wrist watch' with open('2.txt', 'wb') as f: f.write(s) with gzip.open('2.txt.gz', 'wb') as f: f.write(s) with bz2.open('2.txt.bz2', 'wb') as f: f.write(s) with lzma.open('2.txt.xz', 'wb') as f: f.write(s) print('txt', len(s)) print('gz ', len(gzip...
25.4375
49
0.641278
0
0
0
0
0
0
0
0
118
0.289926
23ff90db58dc31d3acc655b347ff8c32734fce8f
751
py
Python
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
import pytz from datetime import datetime MEETING_HOURS = range(6, 23) # meet from 6 - 22 max TIMEZONES = set(pytz.all_timezones) def within_schedule(utc, *timezones): """Receive a utc datetime and one or more timezones and check if they are all within schedule (MEETING_HOURS)""" times = [] ...
25.033333
68
0.624501
0
0
0
0
0
0
0
0
141
0.18775
9b000540f0f753d3e1bc63731ed866572a4a795c
450
py
Python
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
from os import sys, environ from tracker.__main__ import args # Name of the file to save kernel versions json DB_FILE_NAME = "data.json" # By default looks up in env for api and chat id or just put your stuff in here # directly if you prefer it that way BOT_API = environ.get("BOT_API") CHAT_ID = environ.get("CHAT_ID"...
28.125
79
0.717778
0
0
0
0
0
0
0
0
228
0.506667
9b019d69f7dc7afa332c3b317d1c035ebf327b40
94
py
Python
dive_sites/apps.py
Scuba-Chris/dive_site_api
9c5f2a26e6c8a1e2eeaf6cd1b4174e764f83a6b6
[ "MIT" ]
null
null
null
dive_sites/apps.py
Scuba-Chris/dive_site_api
9c5f2a26e6c8a1e2eeaf6cd1b4174e764f83a6b6
[ "MIT" ]
7
2020-06-05T21:03:39.000Z
2021-09-22T18:33:33.000Z
dive_sites/apps.py
Scuba-Chris/dive_site_api
9c5f2a26e6c8a1e2eeaf6cd1b4174e764f83a6b6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DiveSitesConfig(AppConfig): name = 'dive_sites'
15.666667
33
0.765957
57
0.606383
0
0
0
0
0
0
12
0.12766
9b02acdde4f64a083c7db9498cddd0e187f2c1df
615
py
Python
week9/tests/test_utils.py
zzsza/kyle-school
8cf6cffd3d86a25c29f914a9d4802cdb8e6dd478
[ "MIT" ]
189
2019-11-15T11:33:50.000Z
2022-03-27T08:23:35.000Z
week9/tests/test_utils.py
zzsza/kyle-school
8cf6cffd3d86a25c29f914a9d4802cdb8e6dd478
[ "MIT" ]
3
2020-05-29T03:26:32.000Z
2021-07-11T15:46:07.000Z
week9/tests/test_utils.py
zzsza/kyle-school
8cf6cffd3d86a25c29f914a9d4802cdb8e6dd478
[ "MIT" ]
39
2019-11-16T04:02:06.000Z
2022-03-21T04:18:14.000Z
# test_utils.py를 아래 내용으로 overwrite합니다(-a 옵션 없이!) import pytest import pandas as pd import datetime from utils import is_working_day, load_data def test_is_working_day(): assert is_working_day(datetime.date(2020,7,5)) == False assert is_working_day(datetime.date(2020,7,4)) == False assert is_working_day(dat...
21.964286
59
0.747967
0
0
0
0
97
0.150855
0
0
85
0.132193
9b02d42862a5d0797afc71d43094512a70c96510
3,302
py
Python
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import subprocess from CommonServerPython import * TWIST_EXE = '/dnstwist/dnstwist.py' if demisto.command() == 'dnstwist-domain-variations': KEYS_TO_MD = ["whois_updated", "whois_created", "dns_a", "dns_mx", "dns_ns"] DOMAIN = demisto.args()['domain'] LIMIT = int(demisto.args()['limit']) ...
35.891304
117
0.58934
0
0
0
0
0
0
0
0
982
0.297396
9b036ad8294f9db8fecca4b31663a18176793718
595
py
Python
venv/Lib/site-packages/classutils/introspection.py
avim2809/CameraSiteBlocker
bfc0434e75e8f3f95c459a4adc86b7673200816e
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/classutils/introspection.py
avim2809/CameraSiteBlocker
bfc0434e75e8f3f95c459a4adc86b7673200816e
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/classutils/introspection.py
avim2809/CameraSiteBlocker
bfc0434e75e8f3f95c459a4adc86b7673200816e
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import inspect def caller(frame=2): """ Returns the object that called the object that called this function. e.g. A calls B. B calls calling_object. calling object returns A. :param frame: 0 represents this function 1 represents the caller of this function (e.g. ...
24.791667
72
0.616807
0
0
0
0
0
0
0
0
407
0.684034
9b049ff801a11852ac7c1f7e34a2e069aca68527
3,395
py
Python
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
6
2018-08-10T17:11:10.000Z
2020-04-29T07:05:36.000Z
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
58
2018-08-13T08:36:08.000Z
2021-07-07T08:32:52.000Z
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
7
2018-08-10T12:53:18.000Z
2021-11-08T05:15:42.000Z
# pylint: disable=missing-docstring,protected-access """ Copyright 2017 ARM Limited 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 b...
38.146067
90
0.648895
2,630
0.774669
0
0
0
0
0
0
1,338
0.394109
9b04ad53449f706663e52db825a5918226304aab
321
py
Python
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
1
2016-05-26T08:18:36.000Z
2016-05-26T08:18:36.000Z
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
null
null
null
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
null
null
null
#!/bin/python3 import sys prev = '' cnt = 0 for x in sys.stdin.readlines(): q, w = x.split('\t')[0], int(x.split('\t')[1]) if (prev == q): cnt += 1 else: if (cnt > 0): print(prev + '\t' + str(cnt)) prev = q cnt = w if (cnt > 0): print(prev + '\t' + str(cnt))...
17.833333
50
0.433022
0
0
0
0
0
0
0
0
32
0.099688
9b076c62dfd81be9905f0f82e953e93e7d7c02e5
313
py
Python
covid19_id/pemeriksaan_vaksinasi/vaksinasi_harian.py
hexatester/covid19-id
8d8aa3f9092a40461a308f4db054ab4f95374849
[ "MIT" ]
null
null
null
covid19_id/pemeriksaan_vaksinasi/vaksinasi_harian.py
hexatester/covid19-id
8d8aa3f9092a40461a308f4db054ab4f95374849
[ "MIT" ]
null
null
null
covid19_id/pemeriksaan_vaksinasi/vaksinasi_harian.py
hexatester/covid19-id
8d8aa3f9092a40461a308f4db054ab4f95374849
[ "MIT" ]
null
null
null
import attr from covid19_id.utils import ValueInt @attr.dataclass(slots=True) class VaksinasiHarian: key_as_string: str key: int doc_count: int jumlah_vaksinasi_2: ValueInt jumlah_vaksinasi_1: ValueInt jumlah_jumlah_vaksinasi_1_kum: ValueInt jumlah_jumlah_vaksinasi_2_kum: ValueInt
20.866667
43
0.782748
231
0.738019
0
0
259
0.827476
0
0
0
0
9b0792a063a2b49e22d50a2e57caac25388b1b3e
511
py
Python
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
import json import hashlib from .test_case.blockchain import BlockchainTestCase class TestHashingAndProofs(BlockchainTestCase): def test_hash_is_correct(self): self.create_block() new_block = self.blockchain.last_block new_block_json = json.dumps( self.blockchain.last_block, ...
26.894737
61
0.702544
427
0.835616
0
0
0
0
0
0
0
0
9b0816140cf40f94ed1ecf980a99d990c62d409b
14,495
py
Python
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
import warnings import numpy as np import pandas as pd import xgboost as xgb import scipy.stats as st from sklearn.neighbors import BallTree from xgbse._base import XGBSEBaseEstimator from xgbse.converters import convert_data_to_xgb_format, convert_y from xgbse.non_parametric import ( calculate_kaplan_vectorized,...
34.186321
135
0.635598
12,906
0.890376
0
0
0
0
0
0
7,717
0.53239
9b086dcb5153716593628ec1966115cfb5eef668
3,932
py
Python
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
null
null
null
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
null
null
null
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
1
2021-05-30T15:26:52.000Z
2021-05-30T15:26:52.000Z
import math import numpy as np import pandas as pd import tensorflow as tf import datetime as dt import matplotlib.pyplot as plt import matplotlib.dates as mdates import warnings warnings.filterwarnings('ignore') # Hiperparametri epoch_max = 10 alpha_max = 0.025 alpha_min = 0.001 batch_size = 32 window_size = 14 test...
31.206349
95
0.694557
0
0
0
0
0
0
0
0
822
0.209054
9b091fad5fab76f79772a42218911d8db0cd0709
420
py
Python
src/pretalx/submission/migrations/0053_reviewphase_can_tag_submissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
418
2017-10-05T05:52:49.000Z
2022-03-24T09:50:06.000Z
src/pretalx/submission/migrations/0053_reviewphase_can_tag_submissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
1,049
2017-09-16T09:34:55.000Z
2022-03-23T16:13:04.000Z
src/pretalx/submission/migrations/0053_reviewphase_can_tag_submissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
155
2017-10-16T18:32:01.000Z
2022-03-15T12:48:33.000Z
# Generated by Django 3.1 on 2020-10-10 14:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("submission", "0052_auto_20201010_1307"), ] operations = [ migrations.AddField( model_name="reviewphase", name="can_tag...
22.105263
67
0.621429
329
0.783333
0
0
0
0
0
0
123
0.292857
9b09888d30cc7622a264796e061dbd4cba10dd9a
440
py
Python
zzzeeksphinx/theme.py
aidos/zzzeeksphinx
c0fa4be4d40752632e879ec109850caa316ec8af
[ "MIT" ]
3
2017-08-10T22:26:25.000Z
2017-09-10T16:07:23.000Z
zzzeeksphinx/theme.py
zzzeek/zzzeeksphinx
663f5c353e9c3ef3f9676384d429f504feaf20d3
[ "MIT" ]
9
2020-07-18T12:31:49.000Z
2021-10-08T15:19:43.000Z
zzzeeksphinx/theme.py
zzzeek/zzzeeksphinx
663f5c353e9c3ef3f9676384d429f504feaf20d3
[ "MIT" ]
1
2021-02-20T20:57:00.000Z
2021-02-20T20:57:00.000Z
from os import path package_dir = path.abspath(path.dirname(__file__)) def setup(app): app.add_html_theme("zsbase", path.join(package_dir, "themes", "zsbase")) app.add_html_theme( "zzzeeksphinx", path.join(package_dir, "themes", "zzzeeksphinx") ) app.add_html_theme("zsmako", path.join(package...
25.882353
76
0.665909
0
0
0
0
0
0
0
0
125
0.284091
9b0a82ae7938b94fafa2d863a1f8c7ee8913dbbc
2,674
py
Python
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
2
2019-08-15T11:51:17.000Z
2019-08-15T12:59:37.000Z
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
1
2020-08-11T14:25:45.000Z
2020-08-11T14:25:45.000Z
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
1
2021-03-16T12:30:31.000Z
2021-03-16T12:30:31.000Z
# -*- coding: utf-8 -*- __author__ = 'S.I. Mimilakis' __copyright__ = 'MacSeNet' import torch from torch.autograd import Variable import numpy as np dtype = torch.DoubleTensor np.random.seed(2183) torch.manual_seed(2183) # D is the "batch size"; N is input dimension; # H is hidden dimension; N_out is output dimens...
33.012346
112
0.726253
0
0
0
0
0
0
0
0
729
0.272625
9b0afc3b991d4aa30a7baf6f443e94f56c8d47d5
2,657
py
Python
Servers/Frontend/project/main/views.py
chrisbvt/ML-MalwareDetection
e00d0a0026a7c28886c3d2ab8ca9933e60f049cc
[ "MIT" ]
null
null
null
Servers/Frontend/project/main/views.py
chrisbvt/ML-MalwareDetection
e00d0a0026a7c28886c3d2ab8ca9933e60f049cc
[ "MIT" ]
2
2021-02-08T20:36:58.000Z
2022-03-29T21:58:35.000Z
Servers/Frontend/project/main/views.py
chrisbvt/ML-MalwareDetection
e00d0a0026a7c28886c3d2ab8ca9933e60f049cc
[ "MIT" ]
null
null
null
# project/main/views.py ################# #### imports #### ################# import os import json import requests import pickle from flask import Blueprint, Flask, jsonify, request, g, url_for, abort, redirect, flash, render_template, current_app from flask_login import current_user from flask_login import login_re...
34.960526
122
0.617237
0
0
0
0
2,040
0.767783
0
0
643
0.242002
9b0ea10947bac276566d22b561a64d291c54aa39
3,195
py
Python
blog/forms.py
oversabiproject/ghostrr
0bf49537ddf0436d08d705b29bffbd49b66e7c65
[ "MIT" ]
null
null
null
blog/forms.py
oversabiproject/ghostrr
0bf49537ddf0436d08d705b29bffbd49b66e7c65
[ "MIT" ]
null
null
null
blog/forms.py
oversabiproject/ghostrr
0bf49537ddf0436d08d705b29bffbd49b66e7c65
[ "MIT" ]
null
null
null
import string from django import forms from django.conf import settings from django.shortcuts import get_object_or_404 from accounts.models import User, Profile from .models import Blogs from .utils import get_limit_for_level, write_to_limit class EditLimitForm(forms.Form): free_limit = forms.IntegerField(help_t...
34.728261
179
0.747418
2,944
0.92144
0
0
0
0
0
0
1,242
0.388732
9b0f367d08c895d53158d4654de98cbeabd4b541
1,032
py
Python
Class Work/Recursion & Search /app.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
Class Work/Recursion & Search /app.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
Class Work/Recursion & Search /app.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
a = [1, 2, 3, 5, 6] def recursive_search(array, item_to_find, current_index=0): if current_index == len(array): return None elif array[current_index] == item_to_find: return current_index else: return recursive_search(array, item_to_find, current_index + 1) # print(recursive_search(...
21.957447
117
0.593992
0
0
0
0
0
0
0
0
31
0.030039
9b0fef936f066c73b4c06e85baae1161aaa35969
1,134
py
Python
src/heap/tests/test_max_binary_heap.py
codermrhasan/data-structures-and-algorithms
98c828bad792d3d6cdd909a8c6935583a8d9f468
[ "MIT" ]
null
null
null
src/heap/tests/test_max_binary_heap.py
codermrhasan/data-structures-and-algorithms
98c828bad792d3d6cdd909a8c6935583a8d9f468
[ "MIT" ]
null
null
null
src/heap/tests/test_max_binary_heap.py
codermrhasan/data-structures-and-algorithms
98c828bad792d3d6cdd909a8c6935583a8d9f468
[ "MIT" ]
null
null
null
from heap.max_binary_heap import MaxBinaryHeap def test_exists_and_instantiation(): assert MaxBinaryHeap assert MaxBinaryHeap() def test_properties(): bh = MaxBinaryHeap() bh.heapList = [1,2,3] assert bh.heapList == [1,2,3] def test_percUp(): bh = MaxBinaryHeap() bh.heapList = [3,2,1,4] ...
22.235294
46
0.611993
0
0
0
0
0
0
0
0
0
0
9b10e4943ad1ee0b4dae85b2c1d4d6a1aefffc28
409
py
Python
network_anomaly/code/del_duplicate.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
1
2022-01-18T01:53:34.000Z
2022-01-18T01:53:34.000Z
network_anomaly/code/del_duplicate.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
network_anomaly/code/del_duplicate.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- def del_duplicate(ip_combine): ip_combine = list(set(ip_combine)) ip_combine_temp = [] del ip_combine[0] # print(len(ip_combine)) for i in range(len(ip_combine)): ip1, ip2 = ip_combine[i].split(":") if ip2+":"+ip1 not in ip_combine_temp: ip_combin...
31.461538
49
0.635697
0
0
0
0
0
0
0
0
90
0.220049
9b119221fff46228bdcf97a9b0a6cdd84ac53dfa
6,623
py
Python
klusta/kwik/mock.py
hrnciar/klusta
408e898e8d5dd1788841d1f682e51d0dc003a296
[ "BSD-3-Clause" ]
45
2016-03-19T14:39:40.000Z
2021-12-15T06:34:57.000Z
klusta/kwik/mock.py
hrnciar/klusta
408e898e8d5dd1788841d1f682e51d0dc003a296
[ "BSD-3-Clause" ]
73
2016-03-19T16:15:45.000Z
2022-02-22T16:37:16.000Z
klusta/kwik/mock.py
hrnciar/klusta
408e898e8d5dd1788841d1f682e51d0dc003a296
[ "BSD-3-Clause" ]
41
2016-04-08T14:04:00.000Z
2021-09-09T20:49:41.000Z
# -*- coding: utf-8 -*- """Mock Kwik files.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import os.path as op import numpy as np import numpy.random as nr from .mea import staggered_posit...
36.191257
79
0.562434
0
0
0
0
0
0
0
0
1,731
0.261362
9b11b55cfbda19b56fe51d5da114dd0268d96bc2
1,824
py
Python
telluride_decoding/preprocess_audio.py
RULCSoft/telluride_decoding
ff2a5b421a499370b379e7f4fc3f28033c045e17
[ "Apache-2.0" ]
8
2019-07-03T15:33:52.000Z
2021-10-21T00:56:43.000Z
telluride_decoding/preprocess_audio.py
RULCSoft/telluride_decoding
ff2a5b421a499370b379e7f4fc3f28033c045e17
[ "Apache-2.0" ]
3
2020-09-02T19:04:36.000Z
2022-03-12T19:46:50.000Z
telluride_decoding/preprocess_audio.py
RULCSoft/telluride_decoding
ff2a5b421a499370b379e7f4fc3f28033c045e17
[ "Apache-2.0" ]
7
2019-07-03T15:50:24.000Z
2020-11-26T12:16:10.000Z
# Copyright 2020 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.48
80
0.733553
535
0.293311
266
0.145833
0
0
0
0
1,343
0.736294
9b122420662104df8bedddda57c416404fd43cea
3,355
py
Python
aioouimeaux/device/__init__.py
frawau/aioouimeaux
ea473ded95e41e350793b0e289944a359049c501
[ "BSD-3-Clause" ]
2
2019-01-26T02:44:14.000Z
2019-08-06T00:40:56.000Z
aioouimeaux/device/__init__.py
frawau/aioouimeaux
ea473ded95e41e350793b0e289944a359049c501
[ "BSD-3-Clause" ]
1
2019-05-23T22:35:27.000Z
2019-05-25T20:23:50.000Z
aioouimeaux/device/__init__.py
frawau/aioouimeaux
ea473ded95e41e350793b0e289944a359049c501
[ "BSD-3-Clause" ]
null
null
null
import logging from urllib.parse import urlsplit import asyncio as aio from functools import partial from .api.service import Service from .api.xsd import device as deviceParser from ..utils import requests_get log = logging.getLogger(__name__) class DeviceUnreachable(Exception): pass class UnknownService(Excepti...
28.432203
76
0.614903
2,910
0.867362
0
0
223
0.066468
702
0.20924
253
0.07541
9b1232a2760be1096b010b97407d362bad15d50f
2,012
py
Python
src/lib/localtime.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
null
null
null
src/lib/localtime.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
3
2021-03-17T16:05:01.000Z
2021-05-01T18:47:43.000Z
src/lib/localtime.py
RonaldHiemstra/BronartsmeiH
1ad3838b43abfe9a1f3416334439c8056aa50dde
[ "MIT" ]
null
null
null
"""File providing localtime support.""" import time import network import ntptime from machine import RTC, reset from config import Config system_config = Config('system_config.json') class Localtime(): """Synchronized realtime clock using NTP.""" def __init__(self, utc_offset=None): self.utc_offset =...
39.45098
92
0.578032
1,825
0.907058
0
0
0
0
0
0
531
0.263917
9b126b83c2c4f4a5775d0727f5ece4feb0b27a5c
448
py
Python
accounts/api/urls.py
tejaswari7/JagratiWebApp
e9030f8bd6319a7bb43e036bb7bc43cca01d64a1
[ "MIT" ]
59
2019-12-05T13:23:14.000Z
2021-12-07T13:54:25.000Z
accounts/api/urls.py
tejaswari7/JagratiWebApp
e9030f8bd6319a7bb43e036bb7bc43cca01d64a1
[ "MIT" ]
266
2020-09-22T16:22:56.000Z
2021-10-17T18:13:11.000Z
accounts/api/urls.py
tejaswari7/JagratiWebApp
e9030f8bd6319a7bb43e036bb7bc43cca01d64a1
[ "MIT" ]
213
2020-05-20T18:17:21.000Z
2022-03-06T11:03:42.000Z
from django.urls import path from . import views urlpatterns = [ path('register/', views.registration_view, name='api_register'), path('login/', views.LoginView.as_view(), name='api_login'), path('complete_profile/', views.complete_profile_view, name='api_complete_profile'), path('logout/', views.Logou...
44.8
89
0.736607
0
0
0
0
0
0
0
0
151
0.337054
9b148edd9574c90b50e4da5fcd67e478a02f6b95
8,347
py
Python
IPython/kernel/multikernelmanager.py
techtonik/ipython
aff23ecf89ba87ee49168d3cecc213bdbc3b06f9
[ "BSD-3-Clause-Clear" ]
1
2022-03-13T23:06:43.000Z
2022-03-13T23:06:43.000Z
IPython/kernel/multikernelmanager.py
andreasjansson/ipython
09b4311726f46945b936c699f7a6489d74d7397f
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/kernel/multikernelmanager.py
andreasjansson/ipython
09b4311726f46945b936c699f7a6489d74d7397f
[ "BSD-3-Clause-Clear" ]
1
2020-05-03T10:25:12.000Z
2020-05-03T10:25:12.000Z
"""A kernel manager for multiple kernels Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as par...
32.103846
84
0.576614
7,260
0.869774
0
0
0
0
0
0
4,255
0.509764
9b15d3d976307caf107a8e4d5a8af162262589b1
256
py
Python
python-codes/100-exercises/example11.py
yjwx0017/test
80071d6b4b83e78282a7607e6311f5c71c87bb3c
[ "MIT" ]
null
null
null
python-codes/100-exercises/example11.py
yjwx0017/test
80071d6b4b83e78282a7607e6311f5c71c87bb3c
[ "MIT" ]
1
2016-09-29T05:34:12.000Z
2016-09-30T16:26:07.000Z
python-codes/100-exercises/example11.py
yjwx0017/test
80071d6b4b83e78282a7607e6311f5c71c87bb3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # 题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子, # 小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? # 2 2 4 6 10 ... # 输出前20个月 f1 = 2 f2 = 2 for i in range(1, 20): print '%d\n%d' % (f1, f2) f1 = f1 + f2 f2 = f1 + f2
17.066667
43
0.582031
0
0
0
0
0
0
0
0
311
0.754854
9b17a28e7a678defe48fd07eac1522b08da41fac
13,312
py
Python
light8/Configs/Config.danceshow2002.py
drewp/light9
ab173a40d095051546e532962f7a33ac502943a6
[ "MIT" ]
2
2018-10-05T13:32:46.000Z
2022-01-01T22:51:20.000Z
light8/Configs/Config.danceshow2002.py
drewp/light9
ab173a40d095051546e532962f7a33ac502943a6
[ "MIT" ]
4
2021-06-08T19:33:40.000Z
2022-03-11T23:18:06.000Z
light8/Configs/Config.danceshow2002.py
drewp/light9
ab173a40d095051546e532962f7a33ac502943a6
[ "MIT" ]
null
null
null
from random import randrange from time import time from __future__ import generators,division from Subs import * patch = { 'side l' : 45, 'side r' : 46, 'main 1' : 1, 'main 2' : 2, 'main 3' : 3, 'main 4' : 4, 'main 5' : 5, 'main 6' : 6, 'main 7' : 7, 'main 8' : 8, 'main 9' ...
38.810496
100
0.457031
0
0
6,566
0.493239
0
0
0
0
4,396
0.330228
9b1b79fb32008ae0e7fb1fae04c9752108435ac6
3,672
py
Python
python/src/scipp/__init__.py
g5t/scipp
d819c930a5e438fd65e42e2e4e737743b8d39d37
[ "BSD-3-Clause" ]
null
null
null
python/src/scipp/__init__.py
g5t/scipp
d819c930a5e438fd65e42e2e4e737743b8d39d37
[ "BSD-3-Clause" ]
null
null
null
python/src/scipp/__init__.py
g5t/scipp
d819c930a5e438fd65e42e2e4e737743b8d39d37
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2021 Scipp contributors (https://github.com/scipp) # @file # @author Simon Heybrock # flake8: noqa from . import runtime_config user_configuration_filename = runtime_config.config_filename config = runtime_config.load() del runtime_config from ._scipp import _...
31.930435
98
0.735566
0
0
0
0
0
0
0
0
877
0.238834
9b1bd86935affb209f3416a74dae1cedee23495f
1,733
py
Python
SimpleBeep.py
RalphBacon/219-Raspberry-Pi-PICO-Sound-Generation
1c7a5cbfb5373aa5eccde00638bbdff062c57a2d
[ "MIT" ]
2
2021-07-15T14:11:29.000Z
2022-03-25T23:20:54.000Z
SimpleBeep.py
RalphBacon/219-Raspberry-Pi-PICO-Sound-Generation
1c7a5cbfb5373aa5eccde00638bbdff062c57a2d
[ "MIT" ]
null
null
null
SimpleBeep.py
RalphBacon/219-Raspberry-Pi-PICO-Sound-Generation
1c7a5cbfb5373aa5eccde00638bbdff062c57a2d
[ "MIT" ]
1
2021-07-15T14:11:48.000Z
2021-07-15T14:11:48.000Z
# Import the required 'libraries' for pin definitions and PWM from machine import Pin, PWM # Also import a subset for sleep and millisecond sleep. If you just import # the utime you will have to prefix each call with "utime." from utime import sleep, sleep_ms # Define what the buzzer object is - a PWM output o...
28.883333
119
0.671091
0
0
0
0
0
0
0
0
924
0.533179
9b1c20b6056395f07046b2fb8132dfe7ff823554
1,789
py
Python
vendor/packages/sqlalchemy/test/orm/test_bind.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2016-05-09T09:17:35.000Z
2016-08-03T16:30:16.000Z
test/orm/test_bind.py
clones/sqlalchemy
c9f08aa78a48ba53dd221d3c5de54e5956ecf806
[ "MIT" ]
null
null
null
test/orm/test_bind.py
clones/sqlalchemy
c9f08aa78a48ba53dd221d3c5de54e5956ecf806
[ "MIT" ]
null
null
null
from sqlalchemy.test.testing import assert_raises, assert_raises_message from sqlalchemy import MetaData, Integer from sqlalchemy.test.schema import Table from sqlalchemy.test.schema import Column from sqlalchemy.orm import mapper, create_session import sqlalchemy as sa from sqlalchemy.test import testing from test.orm...
29.816667
75
0.618222
1,450
0.810509
0
0
1,388
0.775852
0
0
132
0.073784
9b1c4ea2bc7164000ac7237aaef4748989fffac3
2,607
py
Python
pdftables/pdf_document.py
tessact/pdftables
89b0c0f7215fa50651b37e5b1505229c329cc0ab
[ "BSD-2-Clause" ]
73
2015-01-07T01:42:45.000Z
2021-01-20T01:19:04.000Z
pdftables/pdf_document.py
MartinThoma/pdftables
bd34a86cba8b70d1af2267cf8a30f387f7e5a43e
[ "BSD-2-Clause" ]
1
2020-08-02T18:31:16.000Z
2020-08-02T18:31:16.000Z
pdftables/pdf_document.py
MartinThoma/pdftables
bd34a86cba8b70d1af2267cf8a30f387f7e5a43e
[ "BSD-2-Clause" ]
40
2015-03-10T05:24:37.000Z
2019-08-30T06:11:02.000Z
""" Backend abstraction for PDFDocuments """ import abc import os DEFAULT_BACKEND = "poppler" BACKEND = os.environ.get("PDFTABLES_BACKEND", DEFAULT_BACKEND).lower() # TODO(pwaller): Use abstract base class? # What does it buy us? Can we enforce that only methods specified in an ABC # are used by client code? class...
27.15625
80
0.623322
2,288
0.877637
0
0
1,937
0.743
0
0
1,196
0.458765
9b1ea81c58845b4a3bb52fdf9a88f5aa5548c833
3,316
py
Python
Chapter08/ppo/ppo_kb.py
rwill128/TensorFlow-Reinforcement-Learning-Quick-Start-Guide
45ec2bd23a49ed72ce75f8c8d440ce7840c8ffce
[ "MIT" ]
40
2019-05-19T01:29:12.000Z
2022-03-27T04:37:31.000Z
Chapter08/ppo/ppo_kb.py
rwill128/TensorFlow-Reinforcement-Learning-Quick-Start-Guide
45ec2bd23a49ed72ce75f8c8d440ce7840c8ffce
[ "MIT" ]
null
null
null
Chapter08/ppo/ppo_kb.py
rwill128/TensorFlow-Reinforcement-Learning-Quick-Start-Guide
45ec2bd23a49ed72ce75f8c8d440ce7840c8ffce
[ "MIT" ]
19
2019-05-02T19:55:57.000Z
2022-02-26T01:51:45.000Z
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import gym from class_ppo import * from gym_torcs import TorcsEnv #---------------------------------------------------------------------------------------- EP_MAX = 2000 EP_LEN = 1000 GAMMA = 0.95 A_LR = 1e-4 C_LR = 1e-4 BATCH = 128 A_UPDA...
25.507692
123
0.495778
0
0
0
0
0
0
0
0
712
0.214717
9b2030f197c3c1a90df176f2d19174c439599012
681
py
Python
test/gui/documentationwidget.py
pySUMO/pysumo
889969f94bd45e2b67e25ff46452378351ca5186
[ "BSD-2-Clause" ]
7
2015-08-21T17:17:35.000Z
2021-03-02T21:40:00.000Z
test/gui/documentationwidget.py
pySUMO/pysumo
889969f94bd45e2b67e25ff46452378351ca5186
[ "BSD-2-Clause" ]
2
2015-04-14T12:40:37.000Z
2015-04-14T12:44:03.000Z
test/gui/documentationwidget.py
pySUMO/pysumo
889969f94bd45e2b67e25ff46452378351ca5186
[ "BSD-2-Clause" ]
null
null
null
""" Test case for the DocumentationWidget """ from tempfile import mkdtemp from pySUMOQt import MainWindow import pysumo import shutil """ Steps: 1. Open pySUMO 2. Open Merge.kif 3. Open DocumentationWidget 3a. Switch to the Ontology tab in the DocumentationWidget 4. Type subrelation into the search field 4a. Press En...
24.321429
57
0.756241
0
0
0
0
0
0
0
0
448
0.657856
9b22737cee51dac49b519ede06b216b061a09833
1,628
py
Python
py/garage/tests/threads/test_executors.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
py/garage/tests/threads/test_executors.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
py/garage/tests/threads/test_executors.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
import unittest import threading from garage.threads import executors class ExecutorTest(unittest.TestCase): def test_executor(self): pool = executors.WorkerPool() self.assertEqual(0, len(pool)) # No jobs, no workers are hired. with executors.Executor(pool, 1) as executor: ...
29.071429
67
0.595823
1,504
0.923833
0
0
0
0
0
0
101
0.062039
9b227c99cc76d04bed95afc7abf3ffae257b32fd
2,619
py
Python
exporter/BattleRoyal.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
3
2020-04-29T12:35:33.000Z
2022-03-22T20:08:22.000Z
exporter/BattleRoyal.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
1
2020-10-23T00:08:35.000Z
2020-10-29T04:10:35.000Z
exporter/BattleRoyal.py
dl-stuff/dl-datamine
aae37710d2525aaa2b83f809e908be67f074c2d2
[ "MIT" ]
4
2020-04-05T15:09:08.000Z
2020-10-21T15:08:34.000Z
import os import json from tqdm import tqdm from loader.Database import DBViewIndex, DBView, check_target_path from exporter.Shared import snakey from exporter.Adventurers import CharaData from exporter.Dragons import DragonData class BattleRoyalCharaSkin(DBView): def __init__(self, index): super().__ini...
37.956522
124
0.649866
2,262
0.863688
0
0
261
0.099656
0
0
567
0.216495
9b26d22dac1fa85ff57a7518cc0afd23693491bf
111
py
Python
adonai/user/api/queries.py
Egnod/adonai
b365d81c826fd7b626c9145154ee0136ea73fac1
[ "MIT" ]
6
2020-01-20T20:02:09.000Z
2020-02-24T08:40:23.000Z
adonai/user/api/queries.py
Egnod/adonai
b365d81c826fd7b626c9145154ee0136ea73fac1
[ "MIT" ]
null
null
null
adonai/user/api/queries.py
Egnod/adonai
b365d81c826fd7b626c9145154ee0136ea73fac1
[ "MIT" ]
null
null
null
from .user.queries import UserQuery # isort:skip from .user_group.queries import UserGroupQuery # isort:skip
37
60
0.801802
0
0
0
0
0
0
0
0
24
0.216216
f1955c751f92a084391167fe5becfed42fd578e2
772
py
Python
test/test_slope_heuristic.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
null
null
null
test/test_slope_heuristic.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
7
2018-03-20T14:23:16.000Z
2019-04-09T11:57:57.000Z
test/test_slope_heuristic.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
7
2017-04-28T07:41:01.000Z
2021-03-15T18:17:20.000Z
import matplotlib matplotlib.use('Agg') from statiskit import core from statiskit.data import core as data import unittest from nose.plugins.attrib import attr @attr(linux=True, osx=True, win=True, level=1) class TestSlopeHeuristic(unittest.TestCase): @classmethod def setUpClass(cls): ...
25.733333
140
0.676166
544
0.704663
0
0
609
0.78886
0
0
118
0.15285
f1966b5ea95fad48b2c50f6ae0e84a62362e0d49
688
py
Python
holteandtalley/test/matToJson.py
garrettdreyfus/HolteAndTalleyMLDPy
baab854ef955664437f04fdc7de100dcc894bbda
[ "MIT" ]
18
2019-03-07T06:25:58.000Z
2022-03-07T04:38:36.000Z
holteandtalley/test/matToJson.py
garrettdreyfus/HolteAndTalleyMLDPy
baab854ef955664437f04fdc7de100dcc894bbda
[ "MIT" ]
null
null
null
holteandtalley/test/matToJson.py
garrettdreyfus/HolteAndTalleyMLDPy
baab854ef955664437f04fdc7de100dcc894bbda
[ "MIT" ]
3
2020-06-21T23:22:19.000Z
2022-03-07T05:11:14.000Z
from scipy.io import loadmat import pickle mldinfo =loadmat('mldinfo.mat')["mldinfo"] out={} print(mldinfo) for i in mldinfo: line={} line["floatNumber"] = i[0] line["cycleNumber"] = i[26] line["tempMLTFIT"] = i[27] line["tempMLTFITIndex"] = i[28] line["densityMLTFIT"] = i[30] line["salinity...
25.481481
42
0.604651
0
0
0
0
0
0
0
0
241
0.350291
f19839bccee38959af0b437965974c79d3cf702f
1,578
py
Python
natlas-server/natlas-db.py
purplesecops/natlas
74edd7ba9b5c265ec06dfdb3f7ee0b38751e5ef8
[ "Apache-2.0" ]
500
2018-09-27T17:28:11.000Z
2022-03-30T02:05:57.000Z
natlas-server/natlas-db.py
purplesecops/natlas
74edd7ba9b5c265ec06dfdb3f7ee0b38751e5ef8
[ "Apache-2.0" ]
888
2018-09-20T05:04:46.000Z
2022-03-28T04:11:22.000Z
natlas-server/natlas-db.py
purplesecops/natlas
74edd7ba9b5c265ec06dfdb3f7ee0b38751e5ef8
[ "Apache-2.0" ]
79
2019-02-13T19:49:21.000Z
2022-02-27T16:39:04.000Z
#!/usr/bin/env python """ This is a special app instance that allows us to perform database operations without going through the app's migration_needed check. Running this script is functionally equivalent to what `flask db` normally does. The reason we can't continue to use that is that command is that...
33.574468
135
0.716096
0
0
0
0
0
0
0
0
882
0.558935
f19909329b0b6001c89ab80ab88194f8528fba3b
4,368
py
Python
ontask/action/forms/crud.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/action/forms/crud.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/action/forms/crud.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# -*- coding: utf-8 -*- """Forms to process action related fields. ActionUpdateForm: Basic form to process the name/description of an action ActionForm: Inherits from Basic to process name, description and type ActionDescriptionForm: Inherits from basic but process only description (for surveys) FilterForm: Fo...
29.315436
78
0.63576
3,708
0.848901
0
0
0
0
0
0
1,617
0.370192
f199c3663d40296d492582d4c84325e0a23a8f49
27,740
py
Python
Latest/venv/Lib/site-packages/traitsui/value_tree.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/traitsui/value_tree.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/traitsui/value_tree.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
#------------------------------------------------------------------------------ # # Copyright (c) 2006, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions d...
34.805521
82
0.369755
20,043
0.722531
0
0
0
0
0
0
17,533
0.632048
f199cbd96d64f014fd31d99a8774f29dfb8baff8
3,400
py
Python
apps/events/tests/admin_tests.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/events/tests/admin_tests.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/events/tests/admin_tests.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
from django.contrib.auth.models import Group from django.test import TestCase from django.urls import reverse, reverse_lazy from django_dynamic_fixture import G from apps.authentication.models import OnlineUser from ..constants import EventType from ..models import Event from .utils import ( add_event_permissions...
33.009709
83
0.746471
2,549
0.749706
0
0
0
0
0
0
216
0.063529
f19a9b4226505a42ffa94930bb3319c14ebc1a93
359
py
Python
pyuvs/l1b/_files.py
kconnour/maven-iuvs
fc6ff5d6b7799c78b2ccf34e4316fc151ec87ee8
[ "BSD-3-Clause" ]
null
null
null
pyuvs/l1b/_files.py
kconnour/maven-iuvs
fc6ff5d6b7799c78b2ccf34e4316fc151ec87ee8
[ "BSD-3-Clause" ]
null
null
null
pyuvs/l1b/_files.py
kconnour/maven-iuvs
fc6ff5d6b7799c78b2ccf34e4316fc151ec87ee8
[ "BSD-3-Clause" ]
null
null
null
from pyuvs.files import DataFilenameCollection class L1bDataFilenameCollection: def __init__(self, files: DataFilenameCollection): self.__files = files def __raise_value_error_if_not_all_l1b(self) -> None: if not self.__files.all_l1b(): message = 'Some files are not all level 1b.'...
29.916667
57
0.70195
309
0.860724
0
0
0
0
0
0
34
0.094708
f19aa91679864846081cef43f5707f10afbe079f
9,380
py
Python
instagram.py
Breizhux/picture-dl
3e2bfa590097db56d3326a4aa36d0dd37c1bacc3
[ "Unlicense" ]
null
null
null
instagram.py
Breizhux/picture-dl
3e2bfa590097db56d3326a4aa36d0dd37c1bacc3
[ "Unlicense" ]
2
2019-09-06T12:19:18.000Z
2019-09-06T15:21:36.000Z
instagram.py
Breizhux/picture-dl
3e2bfa590097db56d3326a4aa36d0dd37c1bacc3
[ "Unlicense" ]
null
null
null
# coding: utf-8 import urllib2 import message_box from ast import literal_eval class InfoExtractor(): """ Extractor Information class for Instagram Instagram InfoExtractor that, given url, extract information about the image (or images) the URL refers to. This information includes the real image URL,...
50.430108
133
0.615032
9,298
0.991258
0
0
0
0
0
0
3,848
0.410235
f19bffe1d8db01545aa2bac87ec675c56149bef9
195
py
Python
kali/comandosOs.py
NandoDev-lab/AssistenteEmPython
3d6e7c4abef39154e710e82807d0534586294c1c
[ "MIT" ]
1
2021-06-30T18:08:42.000Z
2021-06-30T18:08:42.000Z
kali/comandosOs.py
NandoDev-lab/AssistenteEmPython
3d6e7c4abef39154e710e82807d0534586294c1c
[ "MIT" ]
null
null
null
kali/comandosOs.py
NandoDev-lab/AssistenteEmPython
3d6e7c4abef39154e710e82807d0534586294c1c
[ "MIT" ]
null
null
null
import sys import os import subprocess import pyautogui import time subprocess.run("C:/Windows/system32/cmd.exe") time.sleep(3) pyautogui.typewrite("python")
8.478261
46
0.651282
0
0
0
0
0
0
0
0
37
0.189744
f19c254391cc08472493c02b34a771daed15156b
75
py
Python
main.py
TTRSQ/pip-test
acc81731555f4a3566a76f670fe95d0384ec4ab7
[ "MIT" ]
null
null
null
main.py
TTRSQ/pip-test
acc81731555f4a3566a76f670fe95d0384ec4ab7
[ "MIT" ]
null
null
null
main.py
TTRSQ/pip-test
acc81731555f4a3566a76f670fe95d0384ec4ab7
[ "MIT" ]
null
null
null
#自作関数のインポート import pip_test if __name__ == '__main__': pip_test.hello()
15
26
0.733333
0
0
0
0
0
0
0
0
41
0.431579
f19cbc9fa4b054f10523c99c5ea25ef1f89616fb
26
py
Python
port/boost/__init__.py
happyxianyu/fxpkg
6d69f410474e71518cc8c6291892dd069c357c75
[ "Apache-2.0" ]
null
null
null
port/boost/__init__.py
happyxianyu/fxpkg
6d69f410474e71518cc8c6291892dd069c357c75
[ "Apache-2.0" ]
null
null
null
port/boost/__init__.py
happyxianyu/fxpkg
6d69f410474e71518cc8c6291892dd069c357c75
[ "Apache-2.0" ]
null
null
null
from .main import MainPort
26
26
0.846154
0
0
0
0
0
0
0
0
0
0
f19e04b462dda85e0bd45e84d17a144a85a0f4c3
1,830
py
Python
tests/test_invenio_s3.py
lnielsen/invenio-s3
442136d580ba99b9d1922a9afffa716e62e29ec8
[ "MIT" ]
null
null
null
tests/test_invenio_s3.py
lnielsen/invenio-s3
442136d580ba99b9d1922a9afffa716e62e29ec8
[ "MIT" ]
19
2019-01-23T16:59:55.000Z
2021-07-30T15:12:27.000Z
tests/test_invenio_s3.py
lnielsen/invenio-s3
442136d580ba99b9d1922a9afffa716e62e29ec8
[ "MIT" ]
9
2018-10-31T10:40:56.000Z
2020-12-09T07:44:45.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2018, 2019 Esteban J. G. Gabancho. # # Invenio-S3 is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Module tests.""" from __future__ import absolute_import, print_function from invenio_s3 imp...
33.272727
72
0.701639
0
0
0
0
0
0
0
0
880
0.480874
f1a11c9a3c3f708c9cfe435d2e5adfed43004799
600
py
Python
textattack/constraints/pre_transformation/max_word_index_modification.py
cclauss/TextAttack
98b8d6102aa47bf3c41afedace0215d48f8ed046
[ "MIT" ]
1
2021-06-24T19:35:18.000Z
2021-06-24T19:35:18.000Z
textattack/constraints/pre_transformation/max_word_index_modification.py
53X/TextAttack
e6a7969abc1e28a2a8a7e2ace709b78eb9dc94be
[ "MIT" ]
null
null
null
textattack/constraints/pre_transformation/max_word_index_modification.py
53X/TextAttack
e6a7969abc1e28a2a8a7e2ace709b78eb9dc94be
[ "MIT" ]
1
2021-11-12T05:26:21.000Z
2021-11-12T05:26:21.000Z
from textattack.constraints.pre_transformation import PreTransformationConstraint from textattack.shared.utils import default_class_repr class MaxWordIndexModification(PreTransformationConstraint): """ A constraint disallowing the modification of words which are past some maximum length limit """ de...
37.5
95
0.765
460
0.766667
0
0
0
0
0
0
185
0.308333
f1a149c6c08f22569c5bb980bf68d3996a092d95
2,012
bzl
Python
bazel/utils/merge_kwargs.bzl
george-enf/enkit
af32fede472f04f77965b972c7ef3008f52c8caf
[ "BSD-3-Clause" ]
null
null
null
bazel/utils/merge_kwargs.bzl
george-enf/enkit
af32fede472f04f77965b972c7ef3008f52c8caf
[ "BSD-3-Clause" ]
1
2021-10-01T05:24:29.000Z
2021-10-01T05:24:29.000Z
bazel/utils/merge_kwargs.bzl
george-enf/enkit
af32fede472f04f77965b972c7ef3008f52c8caf
[ "BSD-3-Clause" ]
null
null
null
# TODO(jonathan): try to simplify this. def merge_kwargs(d1, d2, limit = 5): """Combine kwargs in a useful way. merge_kwargs combines dictionaries by inserting keys from d2 into d1. If the same key exists in both dictionaries: * if the value is a scalar, d2[key] overrides d1[key]. * if the valu...
32.983607
82
0.524851
0
0
0
0
0
0
0
0
935
0.464712
f1a1a49462e4695e563f4953333c397736ce81f0
24,083
py
Python
remote_sensing_core.py
HNoorazar/KC
2c78de218ce9dc732da228051fbf4b42badc97ea
[ "MIT" ]
null
null
null
remote_sensing_core.py
HNoorazar/KC
2c78de218ce9dc732da228051fbf4b42badc97ea
[ "MIT" ]
null
null
null
remote_sensing_core.py
HNoorazar/KC
2c78de218ce9dc732da228051fbf4b42badc97ea
[ "MIT" ]
null
null
null
# import libraries import os, os.path import numpy as np import pandas as pd # import geopandas as gpd import sys from IPython.display import Image # from shapely.geometry import Point, Polygon from math import factorial import scipy from statsmodels.sandbox.regression.predstd import wls_prediction_std from sklearn.lin...
37.222566
120
0.614334
0
0
0
0
0
0
0
0
9,314
0.386746
f1a1c6bbb5f8fd9057ce629a8986541e09412fdc
251
py
Python
thaniya_server/src/thaniya_server/flask/FlaskFilter_tagsToStr.py
jkpubsrc/Thaniya
4ebdf2854e3d7888af7396adffa22628b4ab2267
[ "Apache-1.1" ]
1
2021-01-20T18:27:22.000Z
2021-01-20T18:27:22.000Z
thaniya_server/src/thaniya_server/flask/FlaskFilter_tagsToStr.py
jkpubsrc/Thaniya
4ebdf2854e3d7888af7396adffa22628b4ab2267
[ "Apache-1.1" ]
null
null
null
thaniya_server/src/thaniya_server/flask/FlaskFilter_tagsToStr.py
jkpubsrc/Thaniya
4ebdf2854e3d7888af7396adffa22628b4ab2267
[ "Apache-1.1" ]
null
null
null
from .AbstractFlaskTemplateFilter import AbstractFlaskTemplateFilter # # ... # class FlaskFilter_tagsToStr(AbstractFlaskTemplateFilter): def __call__(self, tags:list): if tags: return ", ".join(tags) else: return "" # #
7.84375
68
0.677291
151
0.601594
0
0
0
0
0
0
15
0.059761
f1a479eb0ca5a8f8bbec21a491ef98b110500e1b
1,584
py
Python
python/qisrc/test/test_qisrc_foreach.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qisrc/test/test_qisrc_foreach.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qisrc/test/test_qisrc_foreach.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYING file. def test_qisrc_foreach(qisrc_action, record_messages): worktree = qisrc_action.worktree worktree.create_project("not_in_git") git_worktree...
40.615385
77
0.709596
0
0
0
0
0
0
0
0
514
0.324495
f1a543e42a5ea04e653279a8af75516ed7470802
144
py
Python
onnxmltools/convert/libsvm/operator_converters/__init__.py
xhochy/onnxmltools
cb2782b155ff67dc1e586f36a27c5d032070c801
[ "Apache-2.0" ]
623
2018-02-16T20:43:01.000Z
2022-03-31T05:00:17.000Z
onnxmltools/convert/libsvm/operator_converters/__init__.py
xhochy/onnxmltools
cb2782b155ff67dc1e586f36a27c5d032070c801
[ "Apache-2.0" ]
339
2018-02-26T21:27:04.000Z
2022-03-31T03:16:50.000Z
onnxmltools/convert/libsvm/operator_converters/__init__.py
xhochy/onnxmltools
cb2782b155ff67dc1e586f36a27c5d032070c801
[ "Apache-2.0" ]
152
2018-02-24T01:20:22.000Z
2022-03-31T07:41:35.000Z
# SPDX-License-Identifier: Apache-2.0 # To register converter for libsvm operators, import associated modules here. from . import SVMConverter
28.8
77
0.798611
0
0
0
0
0
0
0
0
114
0.791667
f1aa3fd77846f2c70da5ebcb50efbe7da8be193b
333
py
Python
aspen/renderers.py
galuszkak/aspen.py
a29047d6d4eefa47413e35a18068946424898364
[ "MIT" ]
null
null
null
aspen/renderers.py
galuszkak/aspen.py
a29047d6d4eefa47413e35a18068946424898364
[ "MIT" ]
null
null
null
aspen/renderers.py
galuszkak/aspen.py
a29047d6d4eefa47413e35a18068946424898364
[ "MIT" ]
null
null
null
# for backwards compatibility with aspen-renderer modules from .simplates.renderers import Factory, Renderer Factory, Renderer # make pyflakes happy import warnings warnings.warn('aspen.renderers is deprecated and will be removed in a future version. ' 'Please use aspen.simplates.renderers instead.', Fu...
37
87
0.780781
0
0
0
0
0
0
0
0
198
0.594595
f1ad55c7e2b9846cac3302cc84dc78c54a2ce31b
3,562
py
Python
coursework/src/highscore.py
SpeedoDevo/G51FSE
bf5e203d936965e254eff1efa0b74edc368a6cda
[ "MIT" ]
null
null
null
coursework/src/highscore.py
SpeedoDevo/G51FSE
bf5e203d936965e254eff1efa0b74edc368a6cda
[ "MIT" ]
null
null
null
coursework/src/highscore.py
SpeedoDevo/G51FSE
bf5e203d936965e254eff1efa0b74edc368a6cda
[ "MIT" ]
null
null
null
import pygame import sys import collections # for ordered dict import pickle # for saving and loading highscores from constants import (SCREEN_WIDTH, SCREEN_HEIGHT, RED, GREEN, GREY, BLACK, WHITE) # class that shows, saves and loads highscores class ScoreTable(pygame.sprite.Sprite): # passing in bg so that it's ne...
37.893617
168
0.588433
3,317
0.931218
0
0
0
0
0
0
898
0.252106
f1afaf0a95380f8c421a56c623e2af9bfd01fd81
27,795
py
Python
BAT/BAT.py
baba-hashimoto/BAT.py
8c7ad986dd0854961175079b98ce4f6507fee87a
[ "MIT" ]
null
null
null
BAT/BAT.py
baba-hashimoto/BAT.py
8c7ad986dd0854961175079b98ce4f6507fee87a
[ "MIT" ]
null
null
null
BAT/BAT.py
baba-hashimoto/BAT.py
8c7ad986dd0854961175079b98ce4f6507fee87a
[ "MIT" ]
1
2022-03-26T11:34:20.000Z
2022-03-26T11:34:20.000Z
#!/usr/bin/env python2 import glob as glob import os as os import re import shutil as shutil import signal as signal import subprocess as sp import sys as sys from lib import build from lib import scripts from lib import setup from lib import analysis ion_def = [] poses_list = [] poses_def = [] release_eq = [] trans...
43.565831
188
0.612916
0
0
0
0
0
0
0
0
5,569
0.20036
f1b05065492f951ddbe7f464e95a73ced555ef67
693
py
Python
mooringlicensing/migrations/0184_auto_20210630_1422.py
jawaidm/mooringlicensing
b22e74209da8655c8ad3af99e00f36d17c8ef73f
[ "Apache-2.0" ]
null
null
null
mooringlicensing/migrations/0184_auto_20210630_1422.py
jawaidm/mooringlicensing
b22e74209da8655c8ad3af99e00f36d17c8ef73f
[ "Apache-2.0" ]
2
2021-03-05T06:48:11.000Z
2021-03-26T08:14:17.000Z
mooringlicensing/migrations/0184_auto_20210630_1422.py
jawaidm/mooringlicensing
b22e74209da8655c8ad3af99e00f36d17c8ef73f
[ "Apache-2.0" ]
2
2021-09-19T15:45:19.000Z
2021-10-05T05:07:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-06-30 06:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mooringlicensing', '0183_auto_20210629_1156'), ] operations = [ migrations...
33
281
0.620491
534
0.770563
0
0
0
0
0
0
295
0.425685
f1b0c5d59ac79b7bc53e1a8befc59467c9a655ae
3,188
py
Python
judge/download.py
tokusumi/judge-cli
e6883ba55dc37e8ca2f328105a4df57b0b3145ba
[ "MIT" ]
null
null
null
judge/download.py
tokusumi/judge-cli
e6883ba55dc37e8ca2f328105a4df57b0b3145ba
[ "MIT" ]
6
2021-04-04T06:19:30.000Z
2021-09-18T16:48:41.000Z
judge/download.py
tokusumi/judge-cli
e6883ba55dc37e8ca2f328105a4df57b0b3145ba
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional, Tuple import typer from onlinejudge import utils from pydantic.networks import HttpUrl from pydantic.types import DirectoryPath from judge.schema import JudgeConfig from judge.tools.download import DownloadArgs, LoginForm, SaveArgs from judge.tools.download import...
30.653846
88
0.631117
328
0.102886
0
0
0
0
0
0
661
0.20734
f1b1cfe08adc3b1c3d213a90411b75dbb6594980
682
py
Python
labs/Bonus_Labs/custom/filter_plugins/ntc.py
ryanaa08/NPA
45173efa60713858bb8b1d884fe12c50fe69920c
[ "BSD-Source-Code" ]
1
2021-11-06T20:39:22.000Z
2021-11-06T20:39:22.000Z
labs/Bonus_Labs/custom/filter_plugins/ntc.py
krishnakadiyala/NPAcourse
74f097107839d990b44adcee69d4f949696a332c
[ "BSD-Source-Code" ]
null
null
null
labs/Bonus_Labs/custom/filter_plugins/ntc.py
krishnakadiyala/NPAcourse
74f097107839d990b44adcee69d4f949696a332c
[ "BSD-Source-Code" ]
null
null
null
import re import difflib from ansible import errors def diff(pre_change, post_change=''): try: netdiff = list( difflib.unified_diff( pre_change.splitlines(), post_change.splitlines() ) ) if netdiff: header = ''.join(netdif...
22.733333
74
0.527859
145
0.21261
0
0
0
0
0
0
74
0.108504
f1b716086bee59aea60d9505833a19bb60e79bc5
161
py
Python
smart_note_diploma/core/urls.py
yerkebulan19971212/dipploma
d274088aa477dadd7971950b80ef9ea3ea366a6b
[ "MIT" ]
null
null
null
smart_note_diploma/core/urls.py
yerkebulan19971212/dipploma
d274088aa477dadd7971950b80ef9ea3ea366a6b
[ "MIT" ]
null
null
null
smart_note_diploma/core/urls.py
yerkebulan19971212/dipploma
d274088aa477dadd7971950b80ef9ea3ea366a6b
[ "MIT" ]
null
null
null
from django.urls import path from .api.view import get_all_countries_view app_name = "core" urlpatterns = [ path('all-countries', get_all_countries_view) ]
20.125
49
0.770186
0
0
0
0
0
0
0
0
21
0.130435