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
0b17dc1ba266c3902679d315702c8fa0f208d5e0
15,862
py
Python
carpyncho.py
DrDub/carpyncho-py
6394faf9da6dfa393d3d06bfff004f10c7e4cd29
[ "BSD-3-Clause" ]
null
null
null
carpyncho.py
DrDub/carpyncho-py
6394faf9da6dfa393d3d06bfff004f10c7e4cd29
[ "BSD-3-Clause" ]
null
null
null
carpyncho.py
DrDub/carpyncho-py
6394faf9da6dfa393d3d06bfff004f10c7e4cd29
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2020, Juan B Cabral # License: BSD-3-Clause # Full Text: https://github.com/carpyncho/carpyncho-py/blob/master/LICENSE # ============================================================================= # DOCS # =============================================...
28.683544
111
0.532468
11,809
0.744484
0
0
11,875
0.748645
0
0
9,105
0.574013
0b18861c6f4339a1ca04dfd8300878200d15cac5
498
py
Python
visual_data/app/utils.py
SaidLopez/django_start
2932d4433b022a729b2afaaf13baf678aafc4b0a
[ "MIT" ]
null
null
null
visual_data/app/utils.py
SaidLopez/django_start
2932d4433b022a729b2afaaf13baf678aafc4b0a
[ "MIT" ]
null
null
null
visual_data/app/utils.py
SaidLopez/django_start
2932d4433b022a729b2afaaf13baf678aafc4b0a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import base64 from io import BytesIO def get_graph(): buffer = BytesIO() plt.savefig(buffer, format='png') buffer.seek(0) image_png = buffer.getvalue() graph = base64.b64encode(image_png) graph = graph.decode('utf-8') buffer.close() return graph def get_...
19.92
39
0.654618
0
0
0
0
0
0
0
0
22
0.044177
0b1891b092271e40a79284fe9042e306de9c61a6
26,953
py
Python
qradar_utilities.py
intel471/titan_qradar_sync
43d2d2bfcd18c3383e8f4f0377788a0d2f3844a7
[ "MIT" ]
1
2021-08-23T08:41:56.000Z
2021-08-23T08:41:56.000Z
qradar_utilities.py
intel471/titan_qradar_sync
43d2d2bfcd18c3383e8f4f0377788a0d2f3844a7
[ "MIT" ]
null
null
null
qradar_utilities.py
intel471/titan_qradar_sync
43d2d2bfcd18c3383e8f4f0377788a0d2f3844a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 import time from typing import List, Dict import json import requests from requests.exceptions import HTTPError from urllib3.exceptions import InsecureRequestWarning from json_utilities import json_get from titan_qradar_sync_config import TitanQRadarSyncConfig class QRadarUtilities: def...
59.630531
365
0.61559
26,662
0.989203
0
0
0
0
0
0
3,759
0.139465
0b19361cb7bec29a8393dd2d4d6342be97e9c458
1,664
py
Python
src/polls/polls/project/migrations/0002_shoppingitem_shoppinglist.py
Valeriu92/Shopping_list
3614dfc6691c28cf88db8af77ba246a9c4943794
[ "MIT" ]
null
null
null
src/polls/polls/project/migrations/0002_shoppingitem_shoppinglist.py
Valeriu92/Shopping_list
3614dfc6691c28cf88db8af77ba246a9c4943794
[ "MIT" ]
6
2021-03-19T08:45:06.000Z
2021-09-22T19:19:21.000Z
src/polls/polls/project/migrations/0002_shoppingitem_shoppinglist.py
Valeriu92/Shopping_list
3614dfc6691c28cf88db8af77ba246a9c4943794
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-06-21 14:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('project', '0001_initial'), ] operations = [ migrations.CreateModel( name='ShoppingList', ...
42.666667
146
0.597356
1,538
0.924279
0
0
0
0
0
0
297
0.178486
0b195f0b6c15b4019237a4ae8b5b8c84db5c27fd
2,766
py
Python
utils.py
cswzhang/RESD
87370182b8717a7fde007937c6e3e2fff02fb593
[ "Apache-2.0" ]
1
2021-11-29T09:32:48.000Z
2021-11-29T09:32:48.000Z
utils.py
cswzhang/RESD
87370182b8717a7fde007937c6e3e2fff02fb593
[ "Apache-2.0" ]
null
null
null
utils.py
cswzhang/RESD
87370182b8717a7fde007937c6e3e2fff02fb593
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import logging import numpy as np import pandas as pd from sklearn import metrics from sklearn.linear_model import LogisticRegression from sklearn.multiclass import OneVsRestClassifier from sklearn.preprocessing import LabelBinarizer from sklearn.utils import shuffle logging.basicConfig(format='%(level...
35.922078
93
0.60376
0
0
0
0
0
0
0
0
182
0.065799
0b1a7603f0853665e4cb6bd2c490cfde38e7a664
2,505
py
Python
misc/make_struct.py
kwrobert/nanowire
2dd003e9e1898b2ae9f78a261b3ce1406ec717b8
[ "Apache-2.0", "MIT" ]
null
null
null
misc/make_struct.py
kwrobert/nanowire
2dd003e9e1898b2ae9f78a261b3ce1406ec717b8
[ "Apache-2.0", "MIT" ]
null
null
null
misc/make_struct.py
kwrobert/nanowire
2dd003e9e1898b2ae9f78a261b3ce1406ec717b8
[ "Apache-2.0", "MIT" ]
1
2019-06-23T01:26:44.000Z
2019-06-23T01:26:44.000Z
import os import glob import argparse as ap import shutil as sh import re def main(): parser = ap.ArgumentParser(description="""Uses minimum basis term file to extract the data for a simulation that used the minimum number of basis terms for each frequency""") parser.add_argument('min_file',type=str,help="...
40.403226
125
0.591617
0
0
0
0
0
0
0
0
691
0.275848
0b1af5ee826d4553c7214ee6c50908fbb0aba15f
1,291
py
Python
rurina5/test2.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
rurina5/test2.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
rurina5/test2.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
from input import flip from utilities.surface import * import utilities.time as time from nodes import Control, init from shape import draw import pygame import pygame.key as key from event import get, typename2 from input import map screen = pygame.display.set_mode((800, 800), pygame.RESIZABLE) _mask = AlphaSurface(...
25.82
131
0.640589
0
0
0
0
0
0
0
0
315
0.243997
0b1b43897511e51e58442813b0108b29ef96226a
15,379
py
Python
Lab3/turingmachine.py
PedroDeSanti/PCS3616
f39454013f14aba01155f145ba48385cb102c942
[ "MIT" ]
null
null
null
Lab3/turingmachine.py
PedroDeSanti/PCS3616
f39454013f14aba01155f145ba48385cb102c942
[ "MIT" ]
null
null
null
Lab3/turingmachine.py
PedroDeSanti/PCS3616
f39454013f14aba01155f145ba48385cb102c942
[ "MIT" ]
null
null
null
# turingmachine.py - implementation of the Turing machine model # # Copyright 2014 Jeffrey Finkelstein. # # This file is part of turingmachine. # # turingmachine is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation,...
39.534704
115
0.629755
7,915
0.514663
0
0
0
0
0
0
9,079
0.59035
0b1b5ca00bb0a54148f31c9c2c856cd992807448
14,274
py
Python
stdlib2-src/dist-packages/quodlibet/formats/xiph.py
ch1huizong/Scode
c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895
[ "MIT" ]
null
null
null
stdlib2-src/dist-packages/quodlibet/formats/xiph.py
ch1huizong/Scode
c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895
[ "MIT" ]
null
null
null
stdlib2-src/dist-packages/quodlibet/formats/xiph.py
ch1huizong/Scode
c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895
[ "MIT" ]
null
null
null
# Copyright 2004-2005 Joe Wreschnig, Michael Urman # 2009-2014 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation import sys import base64 import mutagen fro...
28.153846
76
0.570478
11,748
0.823035
0
0
0
0
0
0
2,150
0.150624
0b1b93c744caf57fd123170dd118feda4553c189
413
py
Python
test find weather.py
jacblo/tests-and-early-projects
16ca33498fe336b089e24981e148ad81e57adb13
[ "CC0-1.0" ]
null
null
null
test find weather.py
jacblo/tests-and-early-projects
16ca33498fe336b089e24981e148ad81e57adb13
[ "CC0-1.0" ]
null
null
null
test find weather.py
jacblo/tests-and-early-projects
16ca33498fe336b089e24981e148ad81e57adb13
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 5 23:04:10 2020 @author: y3 749e8aa818a63c61c31acd7ee948d6d8 """ import requests api_address = "https://api.openweathermap.org/data/2.5/weather?q=" api_key_url = "&APPID=749e8aa818a63c61c31acd7ee948d6d8" city_name = "Bet shemesh,IL" weather_data...
24.294118
69
0.745763
0
0
0
0
0
0
0
0
256
0.619855
0b1c2d8897a8a76a29c7ff91737c1d331580a06a
17,750
py
Python
customer_match/cli.py
Esquire-Digital/customer-match-translator
7b1530bed0fc1a7a9bfc898e31daad6dacc30ddd
[ "MIT" ]
null
null
null
customer_match/cli.py
Esquire-Digital/customer-match-translator
7b1530bed0fc1a7a9bfc898e31daad6dacc30ddd
[ "MIT" ]
null
null
null
customer_match/cli.py
Esquire-Digital/customer-match-translator
7b1530bed0fc1a7a9bfc898e31daad6dacc30ddd
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import click import sys import csv import time import pandas as pd import country_converter as coco import hashlib import phonenumbers from tqdm import tqdm from uszipcode import SearchEngine HEADER_TRANSLATIONS = { "email1": "Email", "phone1": "Phone", "person_country": "Count...
32.809612
214
0.633915
304
0.017127
0
0
2,797
0.157577
0
0
9,421
0.530761
0b1c55f58b7ea7cb439e436ac338143526ad5ff4
2,383
py
Python
pwndbg/color/__init__.py
R2S4X/pwndbg
351d479f08a43c71d30a8d8c098b7657bbb9ef0e
[ "MIT" ]
287
2015-03-23T17:22:49.000Z
2022-01-06T19:57:21.000Z
pwndbg/color/__init__.py
R2S4X/pwndbg
351d479f08a43c71d30a8d8c098b7657bbb9ef0e
[ "MIT" ]
28
2015-04-13T19:59:44.000Z
2016-05-27T19:09:55.000Z
pwndbg/color/__init__.py
R2S4X/pwndbg
351d479f08a43c71d30a8d8c098b7657bbb9ef0e
[ "MIT" ]
42
2015-04-17T18:13:00.000Z
2020-07-23T08:37:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import re import pwndbg.memoize NORMAL = "\x1b[0m" BLACK = "\x1b[30m" RED = "\x1b[31m" GREEN ...
31.355263
99
0.666807
0
0
0
0
143
0.060008
0
0
279
0.117079
0b1d9491c3c3b996bb1b47ef4c74d5c4882e9c92
1,473
py
Python
private_inference/app/commons.py
xiyueyiwan/private-ml-for-health
c77181d0628b3a04c411a01f7e402fccb4d34e09
[ "MIT" ]
28
2020-11-01T09:19:37.000Z
2022-03-31T07:23:42.000Z
private_inference/app/commons.py
HongleGuo/private-ml-for-health
98b66920c659422bc963d70964f780b76fa67a48
[ "MIT" ]
2
2021-03-19T11:39:04.000Z
2021-04-21T12:48:52.000Z
private_inference/app/commons.py
HongleGuo/private-ml-for-health
98b66920c659422bc963d70964f780b76fa67a48
[ "MIT" ]
11
2021-03-17T02:28:08.000Z
2022-03-31T07:23:48.000Z
import io from PIL import Image from torchvision import models import torch import torchvision.transforms as transforms import torch.nn as nn import torch.nn.functional as F import urllib import os def get_model_from_global_agent(): global_model = models.squeezenet1_1(pretrained=True) global_model.classifier[1...
35.926829
105
0.706721
0
0
0
0
0
0
0
0
171
0.11609
9bc4cf79003c2ee2dd4622a00c59cd89da0d7b15
1,599
py
Python
eg-retracepoly.py
Cocodidou/projetFusee
9ce85fb3463b1039e4a2e414c055b680ba909fb8
[ "Unlicense" ]
null
null
null
eg-retracepoly.py
Cocodidou/projetFusee
9ce85fb3463b1039e4a2e414c055b680ba909fb8
[ "Unlicense" ]
null
null
null
eg-retracepoly.py
Cocodidou/projetFusee
9ce85fb3463b1039e4a2e414c055b680ba909fb8
[ "Unlicense" ]
null
null
null
# line drawing as shape, where drawing doesn't "lift pen from paper" # coords are given as a list from (0,0), and sublists can be used to # branch off then return to a particular point # # drawing the outline of a polygon, then retracing the steps backwards, # renders the polygon outline as opposed to filling it impor...
25.790323
71
0.594121
131
0.081926
0
0
0
0
0
0
374
0.233896
9bc4ea9a9e8106e96e6d58d6d3b3f711f0e09666
1,671
py
Python
migrations/versions/25276717e6b8_.py
myfreeweb/crawllog
e86bda8adb7201e4382b774332e51b26297d008c
[ "Unlicense" ]
3
2016-04-04T22:19:45.000Z
2020-11-08T03:11:12.000Z
migrations/versions/25276717e6b8_.py
unrelentingtech/crawllog
e86bda8adb7201e4382b774332e51b26297d008c
[ "Unlicense" ]
1
2016-04-05T14:36:36.000Z
2016-06-18T17:59:16.000Z
migrations/versions/25276717e6b8_.py
myfreeweb/crawllog
e86bda8adb7201e4382b774332e51b26297d008c
[ "Unlicense" ]
null
null
null
"""Initial schema Revision ID: 25276717e6b8 Revises: None Create Date: 2016-03-25 17:58:19.963883 """ # revision identifiers, used by Alembic. revision = '25276717e6b8' down_revision = None from alembic import op import sqlalchemy as sa def downgrade(): op.drop_table('server_log') op.drop_table('user') ...
30.381818
65
0.661281
0
0
0
0
0
0
0
0
446
0.266906
9bc53ea3709915443ca7298e421e40de7c28933a
911
py
Python
Day 15/FLOW016.py
arpit1920/Python-Codechef-Problems
a8d2d48140c93c70fc2de9da90a967f3d43036a1
[ "MIT" ]
null
null
null
Day 15/FLOW016.py
arpit1920/Python-Codechef-Problems
a8d2d48140c93c70fc2de9da90a967f3d43036a1
[ "MIT" ]
null
null
null
Day 15/FLOW016.py
arpit1920/Python-Codechef-Problems
a8d2d48140c93c70fc2de9da90a967f3d43036a1
[ "MIT" ]
null
null
null
""" This Code is Contributed by Arpit Bhushan Sharma Codechef-@koderarpit Github - @arpit1920 Kaggle - arpit3043 Mail - [email protected] Two integers A and B are the inputs. Write a program to find GCD and LCM of A and B. Input The first line contains an integer T, total number of testcases. Then follow T...
20.244444
85
0.643249
0
0
0
0
0
0
0
0
677
0.73667
9bc5c0aaba0c3abcdcd825f0ec975266b287ad70
4,270
py
Python
recupero/migrations/0001_initial.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
6
2020-03-16T02:51:16.000Z
2020-11-10T00:58:01.000Z
recupero/migrations/0001_initial.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
204
2019-09-19T02:00:57.000Z
2022-02-10T10:48:52.000Z
recupero/migrations/0001_initial.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
3
2019-09-16T22:59:24.000Z
2022-03-21T22:52:44.000Z
# Generated by Django 2.2.4 on 2019-10-22 00:36 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('cie10_django', '0001_initial'), ('nhpgd_django', '0001_initial'), ...
56.184211
204
0.638642
4,119
0.963734
0
0
0
0
0
0
1,185
0.277258
9bc97edd815322dc6a747c2ab760525b0de68666
1,057
py
Python
main(terminal).py
fcondo/GUI-sudoku-solver
6d5af3790d1e1c13402bdc6fa6f8ae4ed79121d2
[ "Apache-2.0" ]
null
null
null
main(terminal).py
fcondo/GUI-sudoku-solver
6d5af3790d1e1c13402bdc6fa6f8ae4ed79121d2
[ "Apache-2.0" ]
null
null
null
main(terminal).py
fcondo/GUI-sudoku-solver
6d5af3790d1e1c13402bdc6fa6f8ae4ed79121d2
[ "Apache-2.0" ]
null
null
null
""" main(terminal).py Author: Fabio Condomitti """ from solver import print_grid, solve def main(): sudoku_grid = [ [0,8,0, 0,0,0, 2,0,0], [0,0,0, 0,8,4, 0,9,0], [0,0,6, 3,2,0, 0,1,0], [0,9,7, 0,0,0, 0,8,0], ...
27.102564
49
0.325449
0
0
0
0
0
0
0
0
107
0.10123
9bc9a25d3b23e0b184104f975e4e6a31a9862183
2,239
py
Python
win/ass_commander.py
janakhpon/PersonalAssistant
bacd6743d23d139af1199df12c7bf99d092764b1
[ "MIT" ]
null
null
null
win/ass_commander.py
janakhpon/PersonalAssistant
bacd6743d23d139af1199df12c7bf99d092764b1
[ "MIT" ]
null
null
null
win/ass_commander.py
janakhpon/PersonalAssistant
bacd6743d23d139af1199df12c7bf99d092764b1
[ "MIT" ]
null
null
null
import subprocess import os import requests import pyttsx3 from bs4 import BeautifulSoup class Commander: def __init__(self): self.confirm = ["yes", "ok", "go on", "sure", "do it", "yeah", "yaa", "Imm", "confirm", "of course"] self.cancel = ["nope", "no", "noo", "not yet", "don't", "do not", "stop...
38.603448
126
0.529701
2,147
0.95891
0
0
0
0
0
0
696
0.310853
9bc9bcdd30f3d72eeeddaa6891ef97194fa18480
251
py
Python
circular.py
beninato8/pokemon-go
35c24a8fe948ebea7e4471282f9fe23888b91a7c
[ "MIT" ]
null
null
null
circular.py
beninato8/pokemon-go
35c24a8fe948ebea7e4471282f9fe23888b91a7c
[ "MIT" ]
4
2021-06-02T00:54:46.000Z
2022-03-12T00:58:36.000Z
circular.py
beninato8/pokemon-go
35c24a8fe948ebea7e4471282f9fe23888b91a7c
[ "MIT" ]
null
null
null
def rotations(l): out = [] for i in range(len(l)): a = shift(l, i) out += [a] return out def shift(l, n): return l[n:] + l[:n] if __name__ == '__main__': l = [0,1,2,3,4] for x in rotations(l): print(x)
17.928571
27
0.47012
0
0
0
0
0
0
0
0
10
0.039841
9bca087d33ec78af86014248cb1d2a83ed4c9f78
423
py
Python
GetDataFrame.py
Adhmir/mcdm
c1d8bec4f3628f5d95ee7cd3bfdfb9ff54783dce
[ "MIT" ]
null
null
null
GetDataFrame.py
Adhmir/mcdm
c1d8bec4f3628f5d95ee7cd3bfdfb9ff54783dce
[ "MIT" ]
null
null
null
GetDataFrame.py
Adhmir/mcdm
c1d8bec4f3628f5d95ee7cd3bfdfb9ff54783dce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 28 17:41:18 2021 @author: Adhmir Renan Voltoni Gomes """ import pandas as pd import MCDM_V_001 as mcdm def pegar_dados(): file_path = mcdm.label_file["text"] excel_filename = r"{}".format(file_path) if excel_filename[-4:] == ".csv": df = ...
23.5
45
0.617021
0
0
0
0
0
0
0
0
125
0.295508
9bca5af1c759f195927e0d826898e9abc033b944
742
py
Python
Individual task.py
IsSveshuD/lab_2_11
db922488c813610b42272bd93b1975956a8d986f
[ "MIT" ]
null
null
null
Individual task.py
IsSveshuD/lab_2_11
db922488c813610b42272bd93b1975956a8d986f
[ "MIT" ]
null
null
null
Individual task.py
IsSveshuD/lab_2_11
db922488c813610b42272bd93b1975956a8d986f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # _*_ coding: utf-8 -*- # Используя замыкания функций, объявите внутреннюю функцию, # которая принимает в качестве аргумента коллекцию (список # или кортеж) и возвращает или минимальное значение, или # максимальное, в зависимости от значения параметра type внешней # функции. Если type равен «max»...
28.538462
64
0.722372
0
0
0
0
0
0
0
0
906
0.814748
9bcb27a7d1f03b098af4f51756f0b10851a103ba
2,561
py
Python
cmsplugin_remote_form/migrations/0005_auto_20200429_1442.py
georgmzimmer/cmsplugin-remote-form
804e67ccc18964223247b39cc6e359f977a16556
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_remote_form/migrations/0005_auto_20200429_1442.py
georgmzimmer/cmsplugin-remote-form
804e67ccc18964223247b39cc6e359f977a16556
[ "BSD-3-Clause" ]
1
2020-02-13T17:30:13.000Z
2020-02-13T17:30:13.000Z
cmsplugin_remote_form/migrations/0005_auto_20200429_1442.py
georgmzimmer/cmsplugin-remote-form
804e67ccc18964223247b39cc6e359f977a16556
[ "BSD-3-Clause" ]
4
2020-01-16T03:52:18.000Z
2020-04-29T19:35:16.000Z
# Generated by Django 2.2.12 on 2020-04-29 18:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cmsplugin_remote_form', '0004_remoteform_notification_emails'), ] operations = [ migrations.AlterField( model_name='extrafield'...
52.265306
741
0.646232
2,467
0.963296
0
0
0
0
0
0
1,123
0.438501
9bcb2e6ea72e15c7c10a699c8ebe55ab4cd553e3
17,348
py
Python
model.py
bfMendonca/CarND-Behavioral-Cloning-P3
564b8e0c542292acdc6daf3829522cdcd98a1c95
[ "MIT" ]
null
null
null
model.py
bfMendonca/CarND-Behavioral-Cloning-P3
564b8e0c542292acdc6daf3829522cdcd98a1c95
[ "MIT" ]
null
null
null
model.py
bfMendonca/CarND-Behavioral-Cloning-P3
564b8e0c542292acdc6daf3829522cdcd98a1c95
[ "MIT" ]
null
null
null
import csv import cv2 import numpy as np import pandas as pd import sys from datetime import datetime from numpy.random import RandomState import keras import tensorflow as tf from keras.models import Sequential from keras.callbacks import ModelCheckpoint from keras.layers import Flatten, Dense, Lambda, Cropping2D, C...
37.468683
112
0.654427
0
0
1,141
0.065771
0
0
0
0
4,898
0.282338
9bcf66aa506518f09109e3c3f1caf8194c4a6b3a
1,418
py
Python
tools/debug_discovery.py
s1rd4v3/homebridge-tuya-web-es6-js
4d02d05117f88e4a4251158716ef0677a2af92db
[ "MIT" ]
172
2020-05-17T10:51:17.000Z
2022-03-21T08:54:00.000Z
tools/debug_discovery.py
s1rd4v3/homebridge-tuya-web-es6-js
4d02d05117f88e4a4251158716ef0677a2af92db
[ "MIT" ]
303
2020-05-17T20:42:57.000Z
2022-03-30T07:37:32.000Z
tools/debug_discovery.py
s1rd4v3/homebridge-tuya-web-es6-js
4d02d05117f88e4a4251158716ef0677a2af92db
[ "MIT" ]
85
2020-05-02T13:24:22.000Z
2022-03-23T15:48:04.000Z
# The script is intended to get a list of all devices available via Tuya Home Assistant API endpoint. import requests import pprint # CHANGE THIS - BEGINNING USERNAME = "" PASSWORD = "" REGION = "eu" # cn, eu, us COUNTRY_CODE = "1" # Your account country code, e.g., 1 for USA or 86 for China BIZ_TYPE = "smart_life" # ...
31.511111
101
0.703808
0
0
0
0
0
0
0
0
717
0.505642
9bd1df98ec0a7f71b2cc5017976bf6fbcc6f9846
3,562
py
Python
yamtbx/dataproc/adxv.py
7l2icj/kamo_clone
5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6
[ "BSD-3-Clause" ]
16
2016-05-20T11:19:40.000Z
2021-01-01T19:44:23.000Z
yamtbx/dataproc/adxv.py
7l2icj/kamo_clone
5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6
[ "BSD-3-Clause" ]
4
2017-03-10T00:51:11.000Z
2021-02-07T17:18:46.000Z
yamtbx/dataproc/adxv.py
7l2icj/kamo_clone
5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6
[ "BSD-3-Clause" ]
9
2016-12-15T16:00:06.000Z
2021-09-10T08:34:14.000Z
""" (c) RIKEN 2015. All rights reserved. Author: Keitaro Yamashita This software is released under the new BSD License; see LICENSE. """ import socket import subprocess import time import os import getpass import tempfile class Adxv: def __init__(self, adxv_bin=None, no_adxv_beam_center=True): self.adxv_...
33.603774
131
0.609208
3,322
0.932622
0
0
0
0
0
0
858
0.240876
9bd2380bf4dfb9713249af00b966084de05b5ade
4,661
py
Python
model/net.py
JiazeWang/Luna16
5ef7f4b539cc1ca72291e93d17cc18f408a3119d
[ "MIT" ]
47
2020-08-04T19:06:15.000Z
2022-03-17T08:46:48.000Z
model/net.py
JiazeWang/Luna16
5ef7f4b539cc1ca72291e93d17cc18f408a3119d
[ "MIT" ]
10
2020-08-06T13:07:58.000Z
2021-09-08T02:22:48.000Z
model/net.py
JiazeWang/Luna16
5ef7f4b539cc1ca72291e93d17cc18f408a3119d
[ "MIT" ]
22
2020-08-06T13:21:58.000Z
2022-03-16T04:14:04.000Z
import torch from torch import nn from configs import ANCHOR_SIZES class PostRes(nn.Module): def __init__(self, n_in, n_out, stride=1): super(PostRes, self).__init__() self.conv1 = nn.Conv3d(n_in, n_out, kernel_size=3, stride=stride, padding=1) self.bn1 = nn.BatchNorm3d(n_out) self...
40.885965
111
0.556104
4,588
0.984338
0
0
0
0
0
0
46
0.009869
9bd2b6d1890b4393a8dfbeef61de65778cef6198
5,743
py
Python
multiWindowTest.py
LukasHegenbarth/lableImg
82d96193889cd41d25cc38b3425172a47034baf9
[ "MIT" ]
2
2021-01-31T16:24:17.000Z
2021-11-06T14:52:34.000Z
multiWindowTest.py
LukasHegenbarth/lableImg
82d96193889cd41d25cc38b3425172a47034baf9
[ "MIT" ]
null
null
null
multiWindowTest.py
LukasHegenbarth/lableImg
82d96193889cd41d25cc38b3425172a47034baf9
[ "MIT" ]
1
2021-07-09T06:47:03.000Z
2021-07-09T06:47:03.000Z
import codecs import distutils.spawn import os.path import platform import re import subprocess import sys from collections import defaultdict from functools import partial try: from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtWebEngineWidgets import QWebE...
35.233129
99
0.673516
4,577
0.79697
0
0
0
0
0
0
1,286
0.223925
9bd2ef61ca9a089dc9825ad4627fb4388dc0d5d8
571
py
Python
api/accounts/urls.py
paurushofficial/InvitationApi
35a33fab52bf9d2269b804d8b5e9958b41f7506c
[ "Apache-2.0" ]
null
null
null
api/accounts/urls.py
paurushofficial/InvitationApi
35a33fab52bf9d2269b804d8b5e9958b41f7506c
[ "Apache-2.0" ]
null
null
null
api/accounts/urls.py
paurushofficial/InvitationApi
35a33fab52bf9d2269b804d8b5e9958b41f7506c
[ "Apache-2.0" ]
null
null
null
from django.urls import path from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, TokenVerifyView, ) from . views import * urlpatterns = [ path('register/', UserRegisterView.as_view()), path('logout/', LogoutView.as_view()), path('token/', TokenObtainPairView.as_...
30.052632
77
0.718039
0
0
0
0
0
0
0
0
125
0.218914
9bd32e9affe9d4798bdc0f0e2c528ef20a36adfd
3,450
py
Python
PhyTestOnline/PhyTestOnline.py
JerryLife/PhyTestOnline
c3ca3ec396195e587b7409b492e3848daffca6fd
[ "MIT" ]
1
2016-12-12T06:09:29.000Z
2016-12-12T06:09:29.000Z
PhyTestOnline/PhyTestOnline.py
JerryLife/PhyTestOnline
c3ca3ec396195e587b7409b492e3848daffca6fd
[ "MIT" ]
null
null
null
PhyTestOnline/PhyTestOnline.py
JerryLife/PhyTestOnline
c3ca3ec396195e587b7409b492e3848daffca6fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2016 Jerry Life import urllib import urllib2 import re import xlwt START_PAGE = 0 # start page ALL_PAGE = 82 # number of all pages class PhyTestOnline(object): """ This class is specially for a HUST Physics Test Online providing a crawler to downloa...
34.5
109
0.553623
3,223
0.934203
0
0
0
0
0
0
1,088
0.315362
9bd4563be99dc04513758c49ad620fb919be44b1
7,554
py
Python
examples/pytorch/DROCC/main_tabular.py
KimSangYeon-DGU/EdgeML
a1021dfa1238b764e33476318d299206f20599e2
[ "MIT" ]
null
null
null
examples/pytorch/DROCC/main_tabular.py
KimSangYeon-DGU/EdgeML
a1021dfa1238b764e33476318d299206f20599e2
[ "MIT" ]
null
null
null
examples/pytorch/DROCC/main_tabular.py
KimSangYeon-DGU/EdgeML
a1021dfa1238b764e33476318d299206f20599e2
[ "MIT" ]
null
null
null
from __future__ import print_function import os import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader, Dataset from collections import OrderedDict import numpy as np from edgeml_pytorch.trainer.drocc_trainer import DROCCTra...
41.966667
105
0.622452
1,281
0.169579
0
0
0
0
0
0
1,625
0.215118
9bd475cdfb843175aafda09a546901e32a2f92de
1,518
py
Python
funcs.py
amsynist/gmail_counter_deleter
44c7ff780a13d7aae7a1ccee96abfc3b63dcc77a
[ "MIT" ]
null
null
null
funcs.py
amsynist/gmail_counter_deleter
44c7ff780a13d7aae7a1ccee96abfc3b63dcc77a
[ "MIT" ]
null
null
null
funcs.py
amsynist/gmail_counter_deleter
44c7ff780a13d7aae7a1ccee96abfc3b63dcc77a
[ "MIT" ]
null
null
null
import re import imaplib def checkinbox(user,passw,imapserver): imap = imaplib.IMAP4_SSL(imapserver) try: imap.login(user,passw) print("Connecting and Fetching required info,Please Wait..") select_folder = input("Enter the folder : ") imap.select(select_folder) status, messages =...
34.5
70
0.614625
0
0
0
0
0
0
0
0
541
0.35639
9bd59710cf5b8329b4da0192b5e1698bf07e999d
13,736
py
Python
plugin-python/proto/pyvcloudprovider_pb2_grpc.py
srinarayanant/terraform-provider-vcloud-director-1
1e805550e69fb5284d4a746a2f86326ec72c565f
[ "BSD-2-Clause" ]
null
null
null
plugin-python/proto/pyvcloudprovider_pb2_grpc.py
srinarayanant/terraform-provider-vcloud-director-1
1e805550e69fb5284d4a746a2f86326ec72c565f
[ "BSD-2-Clause" ]
null
null
null
plugin-python/proto/pyvcloudprovider_pb2_grpc.py
srinarayanant/terraform-provider-vcloud-director-1
1e805550e69fb5284d4a746a2f86326ec72c565f
[ "BSD-2-Clause" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from proto import catalog_item_pb2 as proto_dot_catalog__item__pb2 from proto import pyvcloudprovider_pb2 as proto_dot_pyvcloudprovider__pb2 from proto import vapp_pb2 as proto_dot_vapp__pb2 class PyVcloudProviderStub(object): """I...
40.759644
79
0.683241
8,604
0.626383
0
0
0
0
0
0
2,238
0.16293
9bd599d6657b8c94098c98e04397485d867aa089
1,820
py
Python
bot/triggers/commands/math.py
elihschiff/Rubber-Duck-Python
24dea3b64a8a46368cd8dd995c800375f355b55e
[ "MIT" ]
7
2020-07-07T20:58:14.000Z
2021-12-23T02:51:20.000Z
bot/triggers/commands/math.py
elihschiff/Rubber-Duck-Python
24dea3b64a8a46368cd8dd995c800375f355b55e
[ "MIT" ]
null
null
null
bot/triggers/commands/math.py
elihschiff/Rubber-Duck-Python
24dea3b64a8a46368cd8dd995c800375f355b55e
[ "MIT" ]
1
2020-03-29T13:36:43.000Z
2020-03-29T13:36:43.000Z
from . import Command from .. import utils import wolframalpha class Math(Command): names = ["math", "calc", "calculate", "solve"] description = "Solves a math problem" usage = "!math [expression]" examples = "!math d/dx sin(x)^2" show_in_help = True async def execute_command(self, client, ms...
37.142857
101
0.503297
1,754
0.963736
0
0
0
0
1,541
0.846703
442
0.242857
9bd5d5dda5851509b8acc46153917b825b7624b6
854
py
Python
home/forms.py
Legaeldan/siobhan-mcgowan-photography
76ad93baf9792f194a48b7e3d42d274f35152fc0
[ "W3C" ]
null
null
null
home/forms.py
Legaeldan/siobhan-mcgowan-photography
76ad93baf9792f194a48b7e3d42d274f35152fc0
[ "W3C" ]
4
2021-06-08T21:02:03.000Z
2022-01-13T02:21:06.000Z
home/forms.py
Legaeldan/siobhan-mcgowan-photography
76ad93baf9792f194a48b7e3d42d274f35152fc0
[ "W3C" ]
1
2020-03-31T14:39:06.000Z
2020-03-31T14:39:06.000Z
from django import forms class ContactForm(forms.Form): user_name = forms.CharField(max_length=60, label='', required=True, widget=forms.TextInput(attrs={'placeholder': 'Your Name'})) user_email = forms.EmailField(label='', required=True) message = forms.CharField(label='', required=True, widget=forms.Te...
42.7
131
0.651054
820
0.960187
0
0
0
0
0
0
192
0.224824
9bd5f6eb4686ccd15c9d2237b780310a0cf0d3f6
6,517
py
Python
lasttester/components/configs/ftp.py
gitdachong/lasttester
4c637d7704e9d577050e666f6ce01fc5d3752044
[ "MIT" ]
null
null
null
lasttester/components/configs/ftp.py
gitdachong/lasttester
4c637d7704e9d577050e666f6ce01fc5d3752044
[ "MIT" ]
null
null
null
lasttester/components/configs/ftp.py
gitdachong/lasttester
4c637d7704e9d577050e666f6ce01fc5d3752044
[ "MIT" ]
null
null
null
#coding:utf-8 import ftplib import os from ...core import constants from . import base class Configurer(base.Configurer): def __init__(self,config): self._config = config self._key = constants.KEY_CONFIGURER_INSTANCES self._results = {} self.instance = ftplib.FTP() self.inst...
35.612022
100
0.577566
6,488
0.986468
0
0
0
0
0
0
437
0.066444
9bd6f70a62ad5148b40fc54e7119d371615bc893
4,248
py
Python
util/load.py
juvalen/mb-checker
d1c869cf38af4bed409b901fe260feb54523bd6e
[ "MIT" ]
12
2020-02-01T18:43:51.000Z
2022-03-18T17:53:43.000Z
util/load.py
juvalen/mb-checker
d1c869cf38af4bed409b901fe260feb54523bd6e
[ "MIT" ]
6
2019-10-19T18:32:16.000Z
2021-09-16T13:34:13.000Z
util/load.py
juvalen/mb-checker
d1c869cf38af4bed409b901fe260feb54523bd6e
[ "MIT" ]
null
null
null
# Name: load.py # Date: June 2019 # Function: goes trough a bookmark file checking the status of each URL # Input: bookmark file in json format # Output: new text and json files including those URLs according with their status import os import ast try: import requests except: sys.stderr.write("%s: Please inst...
28.897959
96
0.545433
0
0
0
0
0
0
0
0
1,590
0.374294
9bd75770d8f779d1f6be976a5153f3df87d94f4e
1,248
py
Python
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cuda/errors.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cuda/errors.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1
2018-04-03T22:37:40.000Z
2018-04-03T23:53:43.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cuda/errors.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
from __future__ import print_function, absolute_import import numbers class KernelRuntimeError(RuntimeError): def __init__(self, msg, tid=None, ctaid=None): self.tid = tid self.ctaid = ctaid self.msg = msg t = ("An exception was raised in thread=%s block=%s\n" "\t%s")...
29.714286
82
0.563301
352
0.282051
0
0
0
0
0
0
245
0.196314
9bd8035c6b3b5723ba2c49f36471229439b947c4
1,013
py
Python
gitrack/exceptions.py
AuHau/giTrack
802ee23513d60b2379f0f5968e595288d5b6c31d
[ "MIT" ]
5
2019-02-19T10:56:56.000Z
2020-11-28T11:37:45.000Z
gitrack/exceptions.py
AuHau/giTrack
802ee23513d60b2379f0f5968e595288d5b6c31d
[ "MIT" ]
63
2019-01-21T21:44:28.000Z
2022-03-21T14:01:11.000Z
gitrack/exceptions.py
AuHau/giTrack
802ee23513d60b2379f0f5968e595288d5b6c31d
[ "MIT" ]
2
2019-01-04T19:31:52.000Z
2020-12-10T21:40:09.000Z
class GitrackException(Exception): """ General giTrack's exception """ pass class ConfigException(GitrackException): """ Exception related to Config functionality. """ pass class InitializedRepoException(GitrackException): """ Raised when user tries to initialized repo that ...
19.862745
88
0.691017
990
0.977295
0
0
0
0
0
0
313
0.308983
9bd93ddac308f79528b349ef3589bc678b64c99a
4,617
py
Python
Protheus_WebApp/Modules/SIGAPLS/PLSA809TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGAPLS/PLSA809TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGAPLS/PLSA809TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
18
2019-06-07T17:41:34.000Z
2022-01-31T18:17:31.000Z
from tir import Webapp import unittest from tir.technologies.apw_internal import ApwInternal import datetime import time DateSystem = datetime.datetime.today().strftime('%d/%m/%Y') DateVal = datetime.datetime(2120, 5, 17) """------------------------------------------------------------------- /*/{Protheus.doc} PLSA809T...
41.594595
185
0.718648
4,066
0.877807
0
0
359
0.077504
0
0
2,275
0.491149
9bda521421d444cb1361c910a70adc7a47fdcd9f
80,233
py
Python
sympy/integrals/rubi/rubi_tests/tests/test_hyperbolic_sine.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/integrals/rubi/rubi_tests/tests/test_hyperbolic_sine.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/integrals/rubi/rubi_tests/tests/test_hyperbolic_sine.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
import sys from sympy.external import import_module matchpy = import_module("matchpy") if not matchpy: #bin/test will not execute any tests now disabled = True if sys.version_info[:2] < (3, 6): disabled = True from sympy.integrals.rubi.utility_function import ( sympy_op_factory, Int, ...
251.514107
2,469
0.511161
0
0
0
0
0
0
0
0
7,540
0.093976
9bdab67b4c98abd166793cc86942cb2809dc9195
3,759
py
Python
P13pt/mascril/modules/lockin2gates.py
green-mercury/P13pt
38c4f079ec071b5b2651415d7bcb03be7a8a1dab
[ "MIT" ]
3
2019-08-27T16:32:29.000Z
2019-09-28T06:56:14.000Z
P13pt/mascril/modules/lockin2gates.py
DamienFruleux/P13pt
a2cd74e97b8b2e5fb518886237575ae769229e49
[ "MIT" ]
4
2018-10-29T22:06:54.000Z
2019-02-28T12:39:03.000Z
P13pt/mascril/modules/lockin2gates.py
DamienFruleux/P13pt
a2cd74e97b8b2e5fb518886237575ae769229e49
[ "MIT" ]
1
2019-02-13T13:29:18.000Z
2019-02-13T13:29:18.000Z
from __future__ import print_function from P13pt.mascril.measurement import MeasurementBase from P13pt.mascril.parameter import Sweep, String, Folder, Boolean from P13pt.drivers.bilt import Bilt, BiltVoltageSource, BiltVoltMeter from P13pt.drivers.zilockin import ZILockin import time import numpy as np import os clas...
34.172727
117
0.554403
3,380
0.899175
0
0
0
0
0
0
1,046
0.278265
9bdb227b8986247b3e187af1afb2dd0572b47533
1,281
py
Python
scripts/parse_coredump_bin.py
lucasdietrich/AVRTOS
a8a3b7890ed54fbb1bd718fd13b0eb620ecf9b13
[ "Apache-2.0" ]
3
2021-12-10T21:16:03.000Z
2022-03-20T08:09:53.000Z
scripts/parse_coredump_bin.py
Adecy/atmega328p-multithreading
b0f2da9f31fba7bcccf5f06f827af87494a0bcb3
[ "Apache-2.0" ]
null
null
null
scripts/parse_coredump_bin.py
Adecy/atmega328p-multithreading
b0f2da9f31fba7bcccf5f06f827af87494a0bcb3
[ "Apache-2.0" ]
null
null
null
import re import struct from typing import List class Core: def __init__(self): self.registers = [] def SP(self) -> int: return self.registers[0] def PC(self) -> int: return self.registers[1] def SREG(self) -> int: return self.registers[-1] def r(self, i: int) ...
19.707692
91
0.552693
523
0.408275
0
0
0
0
0
0
206
0.160812
9bdd49b2261226a6e0a3e0a8388b9e1d582f8dd9
1,046
py
Python
src/utils/time_helpers.py
pdkary/black-scholes-plus
1df6d0e18416900ce9380e5428da58af6bb785fa
[ "MIT" ]
2
2021-02-18T04:22:55.000Z
2021-02-20T23:40:29.000Z
src/utils/time_helpers.py
pdkary/black-scholes-plus
1df6d0e18416900ce9380e5428da58af6bb785fa
[ "MIT" ]
null
null
null
src/utils/time_helpers.py
pdkary/black-scholes-plus
1df6d0e18416900ce9380e5428da58af6bb785fa
[ "MIT" ]
null
null
null
from datetime import datetime,timedelta import re def get_time_to_expiry(maturity): if maturity ==0: return 0 # Today's date day_0 = datetime.today() # Maturity date date_format = "%Y-%m-%d" day_exp = datetime.strptime(maturity, date_format) # Delta date: i.e. 1 day, 0:00:00 dat...
27.526316
54
0.629063
0
0
0
0
0
0
0
0
144
0.137667
9bdd52b91453871245afa987abaad8fffe050c55
484
py
Python
scripts/publish_source.py
apguerrera/DreamFrames
ad6c7c081378f02010583dbdcb33e8ff112dd94b
[ "MIT" ]
2
2020-06-09T02:12:21.000Z
2021-02-06T07:33:31.000Z
scripts/publish_source.py
apguerrera/DreamFrames
ad6c7c081378f02010583dbdcb33e8ff112dd94b
[ "MIT" ]
null
null
null
scripts/publish_source.py
apguerrera/DreamFrames
ad6c7c081378f02010583dbdcb33e8ff112dd94b
[ "MIT" ]
2
2019-05-01T01:53:42.000Z
2020-05-11T14:11:56.000Z
from brownie import * from .contract_addresses import * import time def publish(): if network.show_active() == "development": return False else: return True def main(): publish_Goober_nft() def publish_Goober_nft(): dream_frames_NFT_address = CONTRACTS[network.show_active()]["drea...
24.2
83
0.706612
0
0
0
0
0
0
0
0
33
0.068182
9bde10aee3baf3325c77d739728c73601b1e2704
1,787
py
Python
examples/demo_classic.py
ria02/InquirerPy
e748d21846ae91553cfb78f61464e35432e04bea
[ "MIT" ]
120
2021-01-17T08:57:14.000Z
2022-03-19T16:17:41.000Z
examples/demo_classic.py
ria02/InquirerPy
e748d21846ae91553cfb78f61464e35432e04bea
[ "MIT" ]
37
2021-01-29T12:10:11.000Z
2022-03-08T04:47:39.000Z
examples/demo_classic.py
ria02/InquirerPy
e748d21846ae91553cfb78f61464e35432e04bea
[ "MIT" ]
5
2021-04-29T21:57:14.000Z
2022-02-01T12:34:21.000Z
# NOTE: Following example requires boto3 package. import boto3 from InquirerPy import prompt from InquirerPy.exceptions import InvalidArgument from InquirerPy.validator import PathValidator client = boto3.client("s3") def get_bucket(_): return [bucket["Name"] for bucket in client.list_buckets()["Buckets"]] de...
24.819444
74
0.593173
0
0
0
0
0
0
0
0
639
0.357583
9bdfb44396698ccfce25133f1a6c45d37c79360e
1,999
py
Python
python/level1_single_api/9_amct/amct_pytorch/tensor_decompose/src/common/model.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
25
2020-11-20T09:01:35.000Z
2022-03-29T10:35:38.000Z
python/level1_single_api/9_amct/amct_pytorch/tensor_decompose/src/common/model.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
5
2021-02-28T20:49:37.000Z
2022-03-04T21:50:27.000Z
python/level1_single_api/9_amct/amct_pytorch/tensor_decompose/src/common/model.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
16
2020-12-06T07:26:13.000Z
2022-03-01T07:51:55.000Z
""" # Copyright 2021 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 a...
30.287879
74
0.608304
1,340
0.670335
0
0
0
0
0
0
1,001
0.50075
9bdfc1ceca2e6426e5eb5dda16444705d6a08581
7,211
py
Python
layers/poky/scripts/lib/argparse_oe.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
53
2018-02-28T08:51:32.000Z
2022-02-28T06:49:23.000Z
layers/poky/scripts/lib/argparse_oe.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
27
2018-01-25T00:26:53.000Z
2020-08-09T05:20:04.000Z
layers/poky/scripts/lib/argparse_oe.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
51
2018-02-21T04:46:08.000Z
2022-03-02T04:20:41.000Z
import sys import argparse from collections import defaultdict, OrderedDict class ArgumentUsageError(Exception): """Exception class you can raise (and catch) in order to show the help""" def __init__(self, message, subcommand=None): self.message = message self.subcommand = subcommand class Arg...
40.740113
125
0.61947
6,937
0.962002
0
0
0
0
0
0
1,605
0.222577
9be072e436a510815bc7fcb98815452de49a5068
491
py
Python
datahub/omis/invoice/migrations/0006_invoice_contact_email.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/omis/invoice/migrations/0006_invoice_contact_email.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/omis/invoice/migrations/0006_invoice_contact_email.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
# Generated by Django 2.0.1 on 2018-01-03 15:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('omis_invoice', '0005_populate_billing_fields'), ] operations = [ migrations.AddField( model_name='invoice', name='co...
25.842105
139
0.645621
398
0.810591
0
0
0
0
0
0
178
0.362525
9be124ef67f3b453a9c7cec4c9b6b95772c4ee79
71
py
Python
src/waldur_openstack/openstack/__init__.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_openstack/openstack/__init__.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_openstack/openstack/__init__.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
default_app_config = 'waldur_openstack.openstack.apps.OpenStackConfig'
35.5
70
0.873239
0
0
0
0
0
0
0
0
49
0.690141
9be66a9b0c5bd06f8460d9a3b8c3707b90aaf766
1,513
py
Python
bin/system-setup.py
filipecosta90/readies
ffd48b39cd7c124e08eb3d770a0e0581445ffa37
[ "BSD-3-Clause" ]
9
2019-12-17T17:57:54.000Z
2022-02-04T15:43:35.000Z
bin/system-setup.py
filipecosta90/readies
ffd48b39cd7c124e08eb3d770a0e0581445ffa37
[ "BSD-3-Clause" ]
87
2021-01-06T08:59:37.000Z
2022-02-16T05:10:03.000Z
bin/system-setup.py
filipecosta90/readies
ffd48b39cd7c124e08eb3d770a0e0581445ffa37
[ "BSD-3-Clause" ]
11
2019-12-11T13:30:23.000Z
2022-01-06T12:21:26.000Z
#!/bin/sh ''''[ ! -z $VIRTUAL_ENV ] && exec python -u -- "$0" ${1+"$@"}; command -v python3 > /dev/null && exec python3 -u -- "$0" ${1+"$@"}; exec python2 -u -- "$0" ${1+"$@"} # ''' import sys import os import argparse HERE = os.path.dirname(__file__) ROOT = os.path.abspath(os.path.join(HERE, "..")) sys.path.insert(0...
29.666667
171
0.540648
556
0.367482
0
0
0
0
0
0
792
0.523463
9be827bbd8f9d8f8bfa67b4e37d5499806d0fe07
1,261
py
Python
server/block-pyhook.py
Strangemother/python-websocket-server
d52ae1708ddc13e81360ce3dd01d826db81e0204
[ "MIT" ]
null
null
null
server/block-pyhook.py
Strangemother/python-websocket-server
d52ae1708ddc13e81360ce3dd01d826db81e0204
[ "MIT" ]
null
null
null
server/block-pyhook.py
Strangemother/python-websocket-server
d52ae1708ddc13e81360ce3dd01d826db81e0204
[ "MIT" ]
null
null
null
import pyHook from threading import Timer import win32gui import logging class blockInput(): def OnKeyboardEvent(self,event): return False def OnMouseEvent(self,event): return False def unblock(self): logging.info(" -- Unblock!") if self.t.is_alive(): ...
24.25
66
0.563045
877
0.69548
0
0
0
0
0
0
43
0.0341
9be85a856102dd5c673bbdbba790b94ac201e3f7
302
py
Python
algorithms/implementation/cut_the_sticks.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/cut_the_sticks.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/cut_the_sticks.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
def make_cut(l): smallest = min(l) return [ x - smallest for x in l if x - smallest > 0 ] length = int(input()) current = list( map( int, input().split() ) ) while current: print(len(current)) current = make_cut(current)
12.583333
31
0.490066
0
0
0
0
0
0
0
0
0
0
9be888d23e35c264f22caee9146fdcf281c9f560
2,631
py
Python
datasets.py
RAMitchell/GLM-Benchmarks
68a5e2a45f299231dded8227cb6b40cbfefd589a
[ "MIT" ]
1
2020-12-28T09:27:24.000Z
2020-12-28T09:27:24.000Z
datasets.py
RAMitchell/GLM-Benchmarks
68a5e2a45f299231dded8227cb6b40cbfefd589a
[ "MIT" ]
null
null
null
datasets.py
RAMitchell/GLM-Benchmarks
68a5e2a45f299231dded8227cb6b40cbfefd589a
[ "MIT" ]
null
null
null
import gzip import numpy as np import os import pandas as pd import shutil import sys import tarfile import urllib import zipfile from scipy.sparse import vstack from sklearn import datasets from sklearn.externals.joblib import Memory if sys.version_info[0] >= 3: from urllib.request import urlretrieve else: fr...
26.049505
101
0.645382
0
0
0
0
2,242
0.852147
0
0
404
0.153554
9bebc0cc96c6c240408e6ad6840dd2690e533560
2,458
py
Python
lv_set/Main.py
Ramesh-X/Level-Set
95e01171a284f2aadfd1eb88dde1c26e4f4878e9
[ "MIT" ]
122
2017-11-10T09:31:17.000Z
2022-03-30T03:33:02.000Z
lv_set/Main.py
Ramesh-X/Level-Set
95e01171a284f2aadfd1eb88dde1c26e4f4878e9
[ "MIT" ]
1
2018-11-05T05:38:50.000Z
2018-11-05T07:44:08.000Z
lv_set/Main.py
Ramesh-X/Level-Set
95e01171a284f2aadfd1eb88dde1c26e4f4878e9
[ "MIT" ]
61
2017-11-06T04:49:25.000Z
2022-03-10T08:41:26.000Z
""" This python code demonstrates an edge-based active contour model as an application of the Distance Regularized Level Set Evolution (DRLSE) formulation in the following paper: C. Li, C. Xu, C. Gui, M. D. Fox, "Distance Regularized Level Set Evolution and Its Application to Image Segmentation", IEEE Trans. Im...
31.113924
120
0.650936
0
0
0
0
0
0
0
0
1,361
0.553702
9becb4cf172ca0bea4ede6f78c4348b44117361b
2,421
py
Python
object_detection/handlers.py
pavelbystrov1/detection_bot
b48c360ae0ddf93ad87edd5609f00e6f1b57a5c6
[ "Apache-2.0" ]
null
null
null
object_detection/handlers.py
pavelbystrov1/detection_bot
b48c360ae0ddf93ad87edd5609f00e6f1b57a5c6
[ "Apache-2.0" ]
null
null
null
object_detection/handlers.py
pavelbystrov1/detection_bot
b48c360ae0ddf93ad87edd5609f00e6f1b57a5c6
[ "Apache-2.0" ]
null
null
null
""" bot handlers """ import os from pymongo import MongoClient from utils import main_keyboard import settings from db import get_or_create_user, save_detected_defects, save_car_counts from db import defects_stat, cars_stat from processing import process_picture from cars_counting import detect_all_autos from dl import...
37.246154
97
0.736473
0
0
0
0
0
0
0
0
697
0.267357
9bee7b095f164de13e05289910aabe44e6f21162
873
py
Python
src/utils.py
Martins6/stats-img-processing
0254b451543770319e7b629dd00dd09cf763a3a5
[ "Unlicense" ]
null
null
null
src/utils.py
Martins6/stats-img-processing
0254b451543770319e7b629dd00dd09cf763a3a5
[ "Unlicense" ]
1
2022-01-13T03:51:44.000Z
2022-01-13T03:51:44.000Z
src/utils.py
Martins6/stats-img-processing
0254b451543770319e7b629dd00dd09cf763a3a5
[ "Unlicense" ]
null
null
null
import os import matplotlib.pyplot as plt def biplot(score,coeff,pcax_index,pcay_index,labels=None): pcax=pcax_index pcay=pcay_index pca1=pcax-1 pca2=pcay-1 xs = score[:,pca1] ys = score[:,pca2] n=score.shape[1] scalex = 1.0/(xs.max()- xs.min()) scaley = 1.0/(ys.max()- ys.min()) ...
29.1
103
0.562428
0
0
0
0
0
0
0
0
58
0.066438
9beffefe216348049fb0a4b50410d3ac25cedf08
176
py
Python
minigame/button.py
AndrewCarterUK/MiniGame
6d699c045e84ee3834f23eb0483245195438eff7
[ "MIT" ]
null
null
null
minigame/button.py
AndrewCarterUK/MiniGame
6d699c045e84ee3834f23eb0483245195438eff7
[ "MIT" ]
null
null
null
minigame/button.py
AndrewCarterUK/MiniGame
6d699c045e84ee3834f23eb0483245195438eff7
[ "MIT" ]
null
null
null
import abc class Button(abc.ABC): @abc.abstractmethod def register_callback(self, callabck): pass @abc.abstractmethod def pressed(self): pass
16
42
0.647727
163
0.926136
0
0
130
0.738636
0
0
0
0
9bf1a15848cc787927ffbf31caa854fbcd128fdd
4,384
py
Python
Polynomial_vec.py
chapman-phys227-2016s/hw-7-malfa100
8002e45f8435aeb66a93b4f30331b21ddaf99ef5
[ "MIT" ]
null
null
null
Polynomial_vec.py
chapman-phys227-2016s/hw-7-malfa100
8002e45f8435aeb66a93b4f30331b21ddaf99ef5
[ "MIT" ]
null
null
null
Polynomial_vec.py
chapman-phys227-2016s/hw-7-malfa100
8002e45f8435aeb66a93b4f30331b21ddaf99ef5
[ "MIT" ]
null
null
null
""" File: Polynomial_vec.py Copyright (c) 2016 Andrew Malfavon License: MIT Exercise 7.27 Description: Use vectorized expressions in the Polynomial class. """ import numpy as np import unittest as ut class Polynomial: def __init__(self, coefficients): if isinstance(coefficients, np.ndarray): s...
35.072
101
0.57208
4,116
0.938869
0
0
0
0
0
0
768
0.175182
9bf1fa19b0bbd61d2f84487789a9ba6eac519047
18,637
py
Python
OOP/Shop_OOP.py
Deego88/MPP_Assignment
f28ec02d1dbfb0f6079b87a99510771502e46c78
[ "MIT" ]
null
null
null
OOP/Shop_OOP.py
Deego88/MPP_Assignment
f28ec02d1dbfb0f6079b87a99510771502e46c78
[ "MIT" ]
null
null
null
OOP/Shop_OOP.py
Deego88/MPP_Assignment
f28ec02d1dbfb0f6079b87a99510771502e46c78
[ "MIT" ]
null
null
null
# Student:Richard Deegan # Student NUmber: G00387896 # Import libraries import os import csv #****** CREATE DATA CLASS******# # Create a data class for Product class Product: def __init__(self, name, price=0): self.name = name self.price = price def __repr__(self): ...
37.803245
141
0.489403
17,927
0.960461
0
0
0
0
0
0
6,964
0.373105
9bf23ce8f874e49f7dbc801b56d74fadb35d9f6f
2,607
py
Python
7/assembly.py
Keilan/advent-of-code-2018
3f3b4952c3633df4008e734da15e219fa67ec635
[ "MIT" ]
null
null
null
7/assembly.py
Keilan/advent-of-code-2018
3f3b4952c3633df4008e734da15e219fa67ec635
[ "MIT" ]
null
null
null
7/assembly.py
Keilan/advent-of-code-2018
3f3b4952c3633df4008e734da15e219fa67ec635
[ "MIT" ]
null
null
null
import sys import copy def find_available(graph, steps): return [s for s in steps if s not in graph] def trim_graph(graph, item): removed_keys = [] for step, items in graph.items(): if item in items: items.remove(item) if len(items) == 0: removed_keys.appe...
27.442105
72
0.589567
0
0
0
0
0
0
0
0
461
0.176832
9bf246a2909d52a0002e7bef877a273448d9ca53
14,502
py
Python
server.py
andersonsso/vogon
dd6b812c0a48c2ff99bb7690536e0b2e46f226bc
[ "Apache-2.0" ]
98
2015-01-20T05:57:01.000Z
2022-01-04T12:03:39.000Z
server.py
andersonsso/vogon
dd6b812c0a48c2ff99bb7690536e0b2e46f226bc
[ "Apache-2.0" ]
13
2016-08-28T05:58:59.000Z
2021-01-14T10:55:01.000Z
server.py
andersonsso/vogon
dd6b812c0a48c2ff99bb7690536e0b2e46f226bc
[ "Apache-2.0" ]
57
2015-01-24T09:23:34.000Z
2021-12-09T06:18:27.000Z
#!/usr/bin/python # vim: set fileencoding=utf-8 : # Copyright 2019 Google Inc. 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/LIC...
35.284672
88
0.635912
901
0.062129
0
0
9,761
0.67308
0
0
5,339
0.368156
9bf2b2dc723f4b7d00b4319b8189354d02aff030
4,318
py
Python
3/konks_lab_3.py
exucutional/study_comp_math
c73b6f00e86b2d19c4cb81c377ca4706d70b2831
[ "MIT" ]
null
null
null
3/konks_lab_3.py
exucutional/study_comp_math
c73b6f00e86b2d19c4cb81c377ca4706d70b2831
[ "MIT" ]
null
null
null
3/konks_lab_3.py
exucutional/study_comp_math
c73b6f00e86b2d19c4cb81c377ca4706d70b2831
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Lab 02 # # ## Solving a system of nonlinear equations # # ### Konks Eric, Б01-818 # # IV.12.7.д # $$\begin{cases} x^7 - 5x^2y^4 + 1510 = 0 \\ y^3 - 3x^4y - 105 = 0 \end{cases}$$ # $$\begin{cases} x_{n+1} = \sqrt{\frac{x_n^7 + 1510}{5y_n^4}} \\ y_{n+1} = \sqrt[3]{3x_{n}^4y...
22.968085
130
0.556739
1,944
0.439223
0
0
0
0
0
0
865
0.195436
9bf3343933efdd880c3c62f4485b50df56cf0721
9,035
py
Python
tictactoe.py
pauloue/tictactoe-turtle
017127dee455828ed355dac29c9b9be4439d5cdb
[ "MIT" ]
1
2021-02-12T03:08:27.000Z
2021-02-12T03:08:27.000Z
tictactoe.py
pauloue/tictactoe-turtle
017127dee455828ed355dac29c9b9be4439d5cdb
[ "MIT" ]
null
null
null
tictactoe.py
pauloue/tictactoe-turtle
017127dee455828ed355dac29c9b9be4439d5cdb
[ "MIT" ]
1
2018-05-23T09:29:24.000Z
2018-05-23T09:29:24.000Z
#!/usr/bin/env python3 """A tic tac toe game with an unbeatable AI that uses the Python turtle module. The AI player chooses it's move using the minimax algorithm. """ from ttt_util import TicTacToeUI, HumanPlayer, BotPlayer from random import shuffle class TicTacToe: def __init__(self, player1, player2): ...
37.962185
78
0.563365
8,568
0.948312
0
0
0
0
0
0
2,956
0.327172
9bf3bc1a17de012e467867d34b900bdba5a0b239
21,722
py
Python
cjktools/tests/resources/test_tatoeba.py
pganssle/cjktools
853dec98177b5552eab4ea18ca2ce481aff28d2d
[ "BSD-3-Clause" ]
17
2016-04-09T00:47:53.000Z
2020-06-09T10:16:10.000Z
cjktools/tests/resources/test_tatoeba.py
pganssle/cjktools
853dec98177b5552eab4ea18ca2ce481aff28d2d
[ "BSD-3-Clause" ]
7
2016-04-19T20:14:11.000Z
2016-12-23T11:09:56.000Z
cjktools/tests/resources/test_tatoeba.py
pganssle/cjktools
853dec98177b5552eab4ea18ca2ce481aff28d2d
[ "BSD-3-Clause" ]
6
2015-12-10T02:28:32.000Z
2021-10-17T05:23:14.000Z
# -*- coding: utf-8 -*- # # test_tatoeba.py # cjktools # from __future__ import unicode_literals import os from .._common import to_unicode_stream, to_string_stream import unittest from six import text_type from functools import partial from datetime import datetime from cjktools.resources import tatoeba, auto_f...
34.154088
83
0.564727
21,430
0.938924
0
0
8,578
0.375832
0
0
4,335
0.189932
9bf44b2d04766a196cb4f85df49ddd09eb5801af
65
py
Python
sql/__init__.py
realDragonium/small-flask-project
5688210418997dbdf5b38e0ce77750eab7eefd3a
[ "Unlicense" ]
null
null
null
sql/__init__.py
realDragonium/small-flask-project
5688210418997dbdf5b38e0ce77750eab7eefd3a
[ "Unlicense" ]
null
null
null
sql/__init__.py
realDragonium/small-flask-project
5688210418997dbdf5b38e0ce77750eab7eefd3a
[ "Unlicense" ]
null
null
null
from .sql_models import SQLQuiz, SQLQuestion, SQLAnswerOption
13
61
0.815385
0
0
0
0
0
0
0
0
0
0
9bf4cfbcb37e69da790172521eacefd9fe4daf66
899
py
Python
setup.py
fabaff/penin
6a93984357b4478907746225bfadea0bfc8b681c
[ "Apache-2.0" ]
4
2019-06-04T04:14:42.000Z
2021-04-02T17:25:28.000Z
setup.py
fabaff/penin
6a93984357b4478907746225bfadea0bfc8b681c
[ "Apache-2.0" ]
null
null
null
setup.py
fabaff/penin
6a93984357b4478907746225bfadea0bfc8b681c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """PenIn setup script.""" from setuptools import setup, find_packages from penin.core.version import get_version VERSION = get_version() readme_file = open("README.md", "r") LONG_DESCRIPTION = readme_file.read() readme_file.close() setup( name="penin", version=VERSION, description=...
32.107143
74
0.716352
0
0
0
0
0
0
0
0
356
0.395996
9bf5111951f211230177602f66faaa2faeecb8c9
65
py
Python
tyled/tileset/orthogonal/__init__.py
kfields/tyled
65f57c3f060c369d1e3875d94363a03a11fe7c3e
[ "MIT" ]
1
2020-04-14T09:25:25.000Z
2020-04-14T09:25:25.000Z
tyled/tileset/orthogonal/__init__.py
kfields/tyled
65f57c3f060c369d1e3875d94363a03a11fe7c3e
[ "MIT" ]
2
2021-09-08T01:52:49.000Z
2022-01-13T02:32:08.000Z
tyled/tileset/orthogonal/__init__.py
kfields/tyled
65f57c3f060c369d1e3875d94363a03a11fe7c3e
[ "MIT" ]
null
null
null
from tyled.tileset.orthogonal.orthogonal import OrthogonalTileset
65
65
0.907692
0
0
0
0
0
0
0
0
0
0
9bf527aac7e8ff43497cfbcad130e15221237397
107
py
Python
run_length_encoding.py
wolfd/jpeg-svg
42370757ec98642b57486c7d2fd3fae7df9bc271
[ "MIT" ]
null
null
null
run_length_encoding.py
wolfd/jpeg-svg
42370757ec98642b57486c7d2fd3fae7df9bc271
[ "MIT" ]
null
null
null
run_length_encoding.py
wolfd/jpeg-svg
42370757ec98642b57486c7d2fd3fae7df9bc271
[ "MIT" ]
null
null
null
import typing as T import numpy as np def decode_run_length(compressed: T.Iterable[int]): compressed
15.285714
51
0.766355
0
0
0
0
0
0
0
0
0
0
9bf7c5e1835265f229893ed245fb8e8ced3ce5f3
3,556
py
Python
pdf2data/data.py
inducer/pdf2data
7554c998148ac29adc9993643dff649a9108619a
[ "MIT" ]
11
2019-08-10T18:01:24.000Z
2021-07-05T20:22:02.000Z
pdf2data/data.py
inducer/pdf2data
7554c998148ac29adc9993643dff649a9108619a
[ "MIT" ]
null
null
null
pdf2data/data.py
inducer/pdf2data
7554c998148ac29adc9993643dff649a9108619a
[ "MIT" ]
6
2019-09-01T07:56:50.000Z
2021-06-20T12:16:52.000Z
__copyright__ = "Copyright (C) 2019 Andreas Kloeckner" __license__ = """ 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, ...
31.192982
78
0.667885
0
0
0
0
0
0
0
0
1,731
0.486783
9bfb702a893a75e9d3f590535033334c0f14a5ea
3,742
py
Python
exact/exact/tagger_messages/management/commands/testdb.py
maubreville/Exact
2f4ce50054bfe5350a106ef3fa1a2f03c90bbbef
[ "MIT" ]
43
2020-01-29T17:19:21.000Z
2022-03-29T11:11:32.000Z
exact/exact/tagger_messages/management/commands/testdb.py
maubreville/Exact
2f4ce50054bfe5350a106ef3fa1a2f03c90bbbef
[ "MIT" ]
41
2020-01-31T09:31:31.000Z
2022-02-24T15:55:21.000Z
exact/exact/tagger_messages/management/commands/testdb.py
maubreville/Exact
2f4ce50054bfe5350a106ef3fa1a2f03c90bbbef
[ "MIT" ]
16
2020-02-11T18:26:32.000Z
2021-07-30T09:05:15.000Z
from django.core.management.base import BaseCommand from exact.users.models import User, Team, TeamMembership from exact.tagger_messages.models import TeamMessage, GlobalMessage from datetime import timedelta from django.utils import timezone from random import randint from faker import Faker import sys faker = Faker(...
43.011494
155
0.615714
3,417
0.913148
0
0
0
0
0
0
150
0.040086
9bfd1efc408b89ae999c37acf631f9234b2c8e00
1,529
py
Python
Libraries/Simplynet.py
frknayk/WeightVis
255114ed0981467e29c5a28d0130af24373db1f1
[ "MIT" ]
2
2021-02-24T06:00:27.000Z
2022-02-16T11:14:25.000Z
Libraries/Simplynet.py
frknayk/WeightVis
255114ed0981467e29c5a28d0130af24373db1f1
[ "MIT" ]
1
2020-07-28T09:14:53.000Z
2020-07-28T09:17:47.000Z
Libraries/Simplynet.py
frknayk/WeightVis
255114ed0981467e29c5a28d0130af24373db1f1
[ "MIT" ]
null
null
null
import numpy as np import pickle from Libraries.Enums import NNLibs from Libraries.Reader import Reader #TODO Complete read() function for SimplyNet #TODO SimplyNet init(self,path) - path should go to read's parameter(like torch) class SimplyNet(Reader): def __init__(self,path): self.weights_list = [] ...
30.58
80
0.589274
1,296
0.847613
0
0
0
0
0
0
443
0.289732
9bfe168e6a6c1653360f3b09a3512b52d2922a38
2,636
py
Python
code/python/archive/c0103_timestamp_records.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
code/python/archive/c0103_timestamp_records.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
code/python/archive/c0103_timestamp_records.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
from datetime import datetime from dateutil import tz import glob import os import pandas as pd import sys import time def timestamp_records(): """ """ print("running format_source") sensors = ['EDA', 'HR', 'TEMP'] path_folders = os.path.join('..', '..', 'source_measurements', 'PMR', 'ref' )...
31.380952
137
0.546282
0
0
0
0
0
0
0
0
419
0.158953
9bfea3c6d3e9981e8fc5494581fd8d33faa52aee
15,114
py
Python
NVIDIA/benchmarks/ssd/implementations/pytorch/utils.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
NVIDIA/benchmarks/ssd/implementations/pytorch/utils.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
NVIDIA/benchmarks/ssd/implementations/pytorch/utils.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# MIT License # # Copyright (c) 2018 kuangliu # # 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, modify, merge, pub...
34.905312
92
0.580918
10,181
0.673614
0
0
254
0.016806
0
0
5,931
0.392418
9bfeddde243de4b1d35ced3b1d4b4c7363007028
90
py
Python
src/rubinlander/parsers/lsstdoc/__init__.py
lsst-sqre/rubin-lander-plugin
f570acb92629493e640baf632bd7ceee78516efd
[ "MIT" ]
null
null
null
src/rubinlander/parsers/lsstdoc/__init__.py
lsst-sqre/rubin-lander-plugin
f570acb92629493e640baf632bd7ceee78516efd
[ "MIT" ]
6
2021-04-19T06:07:06.000Z
2022-03-07T03:02:22.000Z
src/rubinlander/parsers/lsstdoc/__init__.py
lsst-sqre/rubin-lander-plugin
f570acb92629493e640baf632bd7ceee78516efd
[ "MIT" ]
null
null
null
from rubinlander.parsers.lsstdoc.parser import LsstDocParser __all__ = ["LsstDocParser"]
22.5
60
0.822222
0
0
0
0
0
0
0
0
15
0.166667
9bfeed4ac7968ce26851e608ac8b9ee8b625a069
961
py
Python
network/__init__.py
nivilo/Chase
921e4b0bf2ca2cbd1a315156287f2af0e8a19c6c
[ "MIT" ]
68
2018-07-23T03:49:17.000Z
2022-01-11T04:56:32.000Z
network/__init__.py
mpalaiokostas/Chase
921e4b0bf2ca2cbd1a315156287f2af0e8a19c6c
[ "MIT" ]
null
null
null
network/__init__.py
mpalaiokostas/Chase
921e4b0bf2ca2cbd1a315156287f2af0e8a19c6c
[ "MIT" ]
30
2018-07-24T20:35:20.000Z
2021-11-23T00:56:07.000Z
import abc from config import MODEL_DIR class Network: __metaclass__ = abc.ABCMeta @abc.abstractmethod def __init__(self): self.model = None self.model_history = None self.X_train = None self.X_test = None self.y_train = None self.y_test = None @abc.a...
20.891304
65
0.650364
917
0.954214
0
0
561
0.583767
0
0
0
0
9bffb8d4ff59f69668f6f2eebe842833a4a032ab
3,000
py
Python
rdfdatabank/lib/reqclassifier.py
dataflow/RDFDatabank
8a3abd28fefc62cbbfb9f77e7ddc920e23794f34
[ "MIT" ]
4
2016-01-10T09:05:22.000Z
2019-09-09T09:57:25.000Z
rdfdatabank/lib/reqclassifier.py
dataflow/RDFDatabank
8a3abd28fefc62cbbfb9f77e7ddc920e23794f34
[ "MIT" ]
null
null
null
rdfdatabank/lib/reqclassifier.py
dataflow/RDFDatabank
8a3abd28fefc62cbbfb9f77e7ddc920e23794f34
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) 2012 University of Oxford 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, modif...
44.776119
89
0.726333
0
0
0
0
0
0
0
0
1,897
0.632333
50007b22b789b5bf2347dd946c7516260c7c35b4
31,291
py
Python
gui/apod_linux_config.py
danahynes/APOD_Linux
fe2bb52e77be77628dc99251cb2c43ec30ddea69
[ "WTFPL" ]
null
null
null
gui/apod_linux_config.py
danahynes/APOD_Linux
fe2bb52e77be77628dc99251cb2c43ec30ddea69
[ "WTFPL" ]
null
null
null
gui/apod_linux_config.py
danahynes/APOD_Linux
fe2bb52e77be77628dc99251cb2c43ec30ddea69
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 #------------------------------------------------------------------------------# # Filename: apod_linux_config.py / \ # # Project : APOD_Linux | () | # # Date : 06/23/2021 ...
36.769683
80
0.580934
26,967
0.861813
0
0
0
0
0
0
5,544
0.177176
50038d02e89c3e78533be863fdaf0e1d485f0ce8
1,083
py
Python
setup.py
marianaalbano/python_mail
4f222894a2faa0714b2211ee9210af8f5cb5f1ed
[ "MIT" ]
null
null
null
setup.py
marianaalbano/python_mail
4f222894a2faa0714b2211ee9210af8f5cb5f1ed
[ "MIT" ]
null
null
null
setup.py
marianaalbano/python_mail
4f222894a2faa0714b2211ee9210af8f5cb5f1ed
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #-*- coding: utf-8 -*- import setuptools longdesc = """ Esse módulo foi criado com o objetivo de realizar a busca de mensagens na caixa de e-mail de forma simplificada e intuitiva utilizando o módulo imaplib para conexão. A instalação pode ser feita utilizando: ``pip install git+https://github.co...
34.935484
189
0.715605
0
0
0
0
0
0
0
0
783
0.71769
5003a46189d875f28555bd972e68fab9ee40bd4b
2,156
py
Python
visualize/MultiPersonVisualizer/Scene.py
ys1998/motion-forecast
ef8fa9d597906a756f28952a731f6bc8d178f2bf
[ "MIT" ]
null
null
null
visualize/MultiPersonVisualizer/Scene.py
ys1998/motion-forecast
ef8fa9d597906a756f28952a731f6bc8d178f2bf
[ "MIT" ]
null
null
null
visualize/MultiPersonVisualizer/Scene.py
ys1998/motion-forecast
ef8fa9d597906a756f28952a731f6bc8d178f2bf
[ "MIT" ]
null
null
null
import vtk class Scene(object): def __init__(self): self.sceneSources = list() self.sceneMappers = list() self.sceneActors = list() self.sceneLights = list() self.sceneSources.append(vtk.vtkCubeSource()) self.sceneSources[-1].SetXLength(50000) self.sceneSou...
38.5
89
0.651206
2,143
0.99397
0
0
0
0
0
0
341
0.158163
5003c44eefcd2839eee365d7fdc0530270ef3daa
7,856
py
Python
db-scripts/refseq.py
Zorino/BacterialDB-Fetcher
dbdf0a2e82f742ac642230d122675f7dafc21add
[ "CC-BY-4.0" ]
6
2017-12-29T22:47:55.000Z
2021-05-09T20:35:36.000Z
db-scripts/refseq.py
Zorino/BacterialDB-Fetcher
dbdf0a2e82f742ac642230d122675f7dafc21add
[ "CC-BY-4.0" ]
1
2018-08-20T08:48:49.000Z
2018-08-20T08:48:49.000Z
db-scripts/refseq.py
Zorino/BacterialDB-Fetcher
dbdf0a2e82f742ac642230d122675f7dafc21add
[ "CC-BY-4.0" ]
4
2017-02-23T20:35:50.000Z
2021-05-07T20:52:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: maxime déraspe # email: [email protected] # date: 2017-08-24 # version: 0.01 from subprocess import call import os import argparse import gzip import re import glob from Bio import SeqIO #from Bio.SeqFeature import FeatureLocation def open_file(f):...
30.332046
118
0.565046
0
0
0
0
0
0
0
0
1,465
0.186458
5004ed5f387e0978045f2498de54cc45f0d3b5ef
2,875
py
Python
cobras_ts/notebookquerier_images.py
achenbachsven/learningSkript
7af067cbf0c8d7eed010806923f8af2e38977be2
[ "BSD-3-Clause" ]
null
null
null
cobras_ts/notebookquerier_images.py
achenbachsven/learningSkript
7af067cbf0c8d7eed010806923f8af2e38977be2
[ "BSD-3-Clause" ]
3
2020-03-24T15:59:06.000Z
2022-02-10T01:53:37.000Z
cobras_ts/notebookquerier_images.py
achenbachsven/learningSkript
7af067cbf0c8d7eed010806923f8af2e38977be2
[ "BSD-3-Clause" ]
null
null
null
import sys import matplotlib.pyplot as plt import matplotlib.image as mpimg import random from cobras_ts.querier import Querier from IPython import display def _query_yes_no(question, default="yes"): """Ask a yes/no question via raw_input() and return their answer. "question" is a string that is presented t...
34.22619
105
0.594087
1,538
0.534957
0
0
0
0
0
0
752
0.261565
50079bd502e213830c9687dc496863d92ba09cde
4,669
py
Python
train.py
yjang43/WaveNet
fb0edafa813ea2c5be706aceb7ac41802a5d423b
[ "MIT" ]
null
null
null
train.py
yjang43/WaveNet
fb0edafa813ea2c5be706aceb7ac41802a5d423b
[ "MIT" ]
null
null
null
train.py
yjang43/WaveNet
fb0edafa813ea2c5be706aceb7ac41802a5d423b
[ "MIT" ]
null
null
null
import os import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from dataclasses import dataclass from argparse import ArgumentParser from tqdm import tqdm from torch.utils.data import DataLoader from data import VCTKAudio from model import WaveNet def set_option(): parse...
32.880282
131
0.618762
0
0
0
0
0
0
0
0
773
0.16556
5008bf50f1c889a0cb8f758f821ceff1b2688937
1,933
py
Python
swmmio/version_control/tests/compare_inp.py
jennwuu/swmmio
6918ecfb69c10333cbc65ce0ab6554f8a04ef8f9
[ "MIT" ]
76
2016-04-26T14:04:02.000Z
2022-03-24T10:10:29.000Z
swmmio/version_control/tests/compare_inp.py
Kimi-Monica/swmmio
54dd6c1f7a3e47db5702b1f703beca0a8945a250
[ "MIT" ]
94
2016-05-06T15:32:51.000Z
2022-02-10T08:03:30.000Z
swmmio/version_control/tests/compare_inp.py
Kimi-Monica/swmmio
54dd6c1f7a3e47db5702b1f703beca0a8945a250
[ "MIT" ]
26
2016-09-01T22:51:47.000Z
2022-02-09T09:13:23.000Z
import os def remove_comments_and_crlf(inp_path, comment_string=';', overwrite=False): tmpfilename = os.path.splitext(os.path.basename(inp_path))[0] + '_mod.inp' tmpfilepath = os.path.join(os.path.dirname(inp_path), tmpfilename) with open (inp_path) as oldf: with open(tmpfilepath, 'w') as newf: ...
33.327586
78
0.53492
0
0
0
0
0
0
0
0
592
0.30626
50098859afc4b632919855885ac4d97901250f2d
221
py
Python
codeforces/math数学/1000/1023B两个玩具.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/math数学/1000/1023B两个玩具.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/math数学/1000/1023B两个玩具.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/1023/A def f(ll): n,k = ll #1e14 f = k//2 + 1 e = min(k-1,n) return max(0,e-f+1) l = list(map(int,input().split())) print(f(l))
17
50
0.552036
0
0
0
0
0
0
0
0
77
0.348416
500afac65e9dcc07d02e6f844d28cdea7099e875
9,956
py
Python
nwb/combine_messages.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
32
2015-08-21T14:14:44.000Z
2017-08-31T09:33:14.000Z
nwb/combine_messages.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
24
2015-11-18T11:17:04.000Z
2019-12-31T19:44:18.000Z
nwb/combine_messages.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
18
2015-10-07T03:04:41.000Z
2022-03-11T18:52:20.000Z
import re import pprint pp = pprint.PrettyPrinter(indent=4) from sys import version_info # py3, for checking type of input def combine_messages(messages): """ Combines messages that have one or more integers in them, such as "trial001" "trial002", into a single message like "trial# (#=1-2)". Thi...
44.64574
108
0.569004
0
0
0
0
0
0
0
0
6,077
0.610386
500cdcbd8b9588b7badc6c30cf7210ed1d19b9b3
639
py
Python
webapp/app/encryptioncontext/migrations/0001_initial.py
aws-samples/aws-secrets-manager-credential-rotation-without-container-restart
11ad22e8f1d55bf48af219fecdd4ba208c88dff4
[ "MIT-0" ]
3
2021-08-10T21:05:32.000Z
2021-11-08T10:25:57.000Z
webapp/app/encryptioncontext/migrations/0001_initial.py
aws-samples/aws-secrets-manager-credential-rotation-without-container-restart
11ad22e8f1d55bf48af219fecdd4ba208c88dff4
[ "MIT-0" ]
null
null
null
webapp/app/encryptioncontext/migrations/0001_initial.py
aws-samples/aws-secrets-manager-credential-rotation-without-container-restart
11ad22e8f1d55bf48af219fecdd4ba208c88dff4
[ "MIT-0" ]
1
2021-08-10T21:05:33.000Z
2021-08-10T21:05:33.000Z
# Generated by Django 3.0.1 on 2020-01-02 22:21 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CustomerProfile', fields=[ ('id', models.Au...
26.625
114
0.588419
546
0.85446
0
0
0
0
0
0
115
0.179969
500def4cbc4626bb2afe20baf06a6df2008bf456
509
py
Python
spec/python/test_cast_nested.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
11
2018-04-01T03:58:15.000Z
2021-08-14T09:04:55.000Z
spec/python/test_cast_nested.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
73
2016-07-20T10:27:15.000Z
2020-12-17T18:56:46.000Z
spec/python/test_cast_nested.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
37
2016-08-15T08:25:56.000Z
2021-08-28T14:48:46.000Z
# Autogenerated from KST: please remove this line if doing any edits by hand! import unittest from cast_nested import CastNested class TestCastNested(unittest.TestCase): def test_cast_nested(self): with CastNested.from_file('src/switch_opcodes.bin') as r: self.assertEqual(r.opcodes_0_str.valu...
36.357143
77
0.719057
376
0.738703
0
0
0
0
0
0
119
0.233792
500ef1d473debd5ed56d175f4b097ca7c05550eb
6,390
py
Python
person/person_processor.py
RuizheYang/deeplearning-proj
f2b0a11cb622a43f55038da577661ba9656e0573
[ "Apache-2.0" ]
null
null
null
person/person_processor.py
RuizheYang/deeplearning-proj
f2b0a11cb622a43f55038da577661ba9656e0573
[ "Apache-2.0" ]
null
null
null
person/person_processor.py
RuizheYang/deeplearning-proj
f2b0a11cb622a43f55038da577661ba9656e0573
[ "Apache-2.0" ]
null
null
null
""" Model Description @author: Xiayu Li @contact: [email protected] @version: 0.1 @license: Apache Licence @file: person_processor.py @time: 2019/11/14 3:08 PM """ import json import os from typing import List, Tuple, Dict from allennlp.predictors.predictor import Predictor from allennlp.modules.token_embedders...
86.351351
2,387
0.684507
2,987
0.27869
0
0
0
0
0
0
7,019
0.65488
500f0349827ded93b1215069df6a905dce9513ac
1,130
py
Python
application/__init__.py
ppawlo97/si-summer-2020
ddbb4e29ba9da9af9aaf658df07f891e36737d10
[ "MIT" ]
null
null
null
application/__init__.py
ppawlo97/si-summer-2020
ddbb4e29ba9da9af9aaf658df07f891e36737d10
[ "MIT" ]
3
2021-05-21T16:19:13.000Z
2022-02-10T00:50:32.000Z
application/__init__.py
ppawlo97/si-summer-2020
ddbb4e29ba9da9af9aaf658df07f891e36737d10
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO) from flask import Flask from application.config import Config app = Flask(__name__) app.config.from_object(Config) from application.models.classifiers.CNNClassifier import CNNClassifier from application.models.classifiers.MLPClassifier import MLPClassifier fro...
35.3125
84
0.79115
0
0
0
0
0
0
0
0
139
0.123009
5010b73121964b1e2039f7c97a78c65b09242001
21,089
py
Python
CalibTracker/SiStripChannelGain/test/Cosmic_B38/InputFiles_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibTracker/SiStripChannelGain/test/Cosmic_B38/InputFiles_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibTracker/SiStripChannelGain/test/Cosmic_B38/InputFiles_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
'rfio:///?svcClass=cmscaf&path=/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/ALCARECO/CRAFT_V2P_StreamALCARECOTkAlCosmics0T_v7/0014/80C4285C-779E-DD11-9889-001617E30CA4.root', 'rfio:///?svcClass=cmscaf&path=/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/ALCARECO/CRAFT_V2P_StreamALCARECOTkAlCosmics0T_v7...
183.382609
184
0.843283
0
0
0
0
0
0
0
0
20,862
0.989236
5011d21366dcb69f240f7e58a464b1188024fc1b
1,410
py
Python
mpf/devices/ball_device/ball_device_state_handler.py
Wolfmarsh/mpf
ad71f381ce8a0e65f28958e51cf8a8b38a6154fb
[ "MIT" ]
null
null
null
mpf/devices/ball_device/ball_device_state_handler.py
Wolfmarsh/mpf
ad71f381ce8a0e65f28958e51cf8a8b38a6154fb
[ "MIT" ]
null
null
null
mpf/devices/ball_device/ball_device_state_handler.py
Wolfmarsh/mpf
ad71f381ce8a0e65f28958e51cf8a8b38a6154fb
[ "MIT" ]
null
null
null
"""Base class for ball device handlers.""" import asyncio from mpf.core.utility_functions import Util class BallDeviceStateHandler: """Base class for ball device handler.""" __slots__ = ["ball_device", "machine", "_task"] def __init__(self, ball_device): """Initialise handler. Args: ...
27.647059
91
0.611348
1,304
0.924823
0
0
0
0
248
0.175887
346
0.24539
501249edf828430cf33dfa53f6c8ad7a2568f14d
500
py
Python
valtypes/__init__.py
vanburgerberg/constypes
e1a527d21a30782e1e5bfc1005f18791e29fdeb2
[ "MIT" ]
2
2021-08-30T20:08:49.000Z
2021-11-28T13:16:54.000Z
valtypes/__init__.py
vanburgerberg/valtypes
e1a527d21a30782e1e5bfc1005f18791e29fdeb2
[ "MIT" ]
null
null
null
valtypes/__init__.py
vanburgerberg/valtypes
e1a527d21a30782e1e5bfc1005f18791e29fdeb2
[ "MIT" ]
null
null
null
from .validator import ( And, Attr, Chain, Const, Contains, ExcMax, ExcMin, Float, Macro, Max, Min, MultipleOf, Not, Or, Pattern, Proto, Type, Validator, Xor, ) __all__ = [ "And", "Attr", "Chain", "Const", "Validator", ...
11.363636
24
0.436
0
0
0
0
0
0
0
0
134
0.268
5012f3d859038bf6c7551a9b09f30a8dc7a2a8ae
7,549
py
Python
ml_techniques/tests/tests.py
tgquintela/ml_techniques_in_python
242ff12b32edb313c983394f3153a8b7eb8ce183
[ "MIT" ]
null
null
null
ml_techniques/tests/tests.py
tgquintela/ml_techniques_in_python
242ff12b32edb313c983394f3153a8b7eb8ce183
[ "MIT" ]
null
null
null
ml_techniques/tests/tests.py
tgquintela/ml_techniques_in_python
242ff12b32edb313c983394f3153a8b7eb8ce183
[ "MIT" ]
null
null
null
import numpy as np import unittest from itertools import product from ml_techniques.svm import * class PermutationDataTest(unittest.TestCase): def testpropershape(self): data = np.random.random((10, 4)) labels = np.random.randint(0, 2, 10)*2-1 data_per = permut_data(data) self.a...
33.700893
77
0.601537
7,430
0.984236
0
0
0
0
0
0
303
0.040138
501312c476ded79ec6cb9b0965b516133cb44842
430
bzl
Python
deps/deno/repository.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
1
2021-11-05T09:13:57.000Z
2021-11-05T09:13:57.000Z
deps/deno/repository.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
9
2021-12-02T13:25:52.000Z
2022-01-26T14:24:05.000Z
deps/deno/repository.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def deno_repository(): # Get Deno archive http_archive( name = "deno-amd64", build_file = "//ext/deno:BUILD", sha256 = "7b883e3c638d21dd1875f0108819f2f13647b866ff24965135e679c743013f46", type = "zip", u...
35.833333
112
0.669767
0
0
0
0
0
0
0
0
273
0.634884
501610d9ff0b5e179cb5002235857a130ed0cb4e
8,184
py
Python
src/oci/ai_vision/models/detected_language.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_vision/models/detected_language.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_vision/models/detected_language.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
38.971429
253
0.669599
7,644
0.934018
0
0
7,674
0.937683
0
0
5,946
0.72654
501674bfb30dc18bcd6f3983353a1c018cbc6af0
1,905
py
Python
source-code/Word Ladder 127.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Word Ladder 127.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Word Ladder 127.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
# 127. Word Ladder # [email protected] # Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that: # Only one letter can be changed at a time. # Each transformed word must exist in the word list. Note that beginWord i...
32.288136
162
0.607874
862
0.452493
0
0
0
0
0
0
1,198
0.628871
5017d91a4f43fb84e8e4e3ab54b9dd80d44b71a3
2,530
py
Python
lexer/groovylexer.py
rhyolight/pygments-groovy
b80282f873d09d5709508078179a41a69a8c3ed4
[ "BSD-3-Clause" ]
1
2016-05-08T23:59:33.000Z
2016-05-08T23:59:33.000Z
lexer/groovylexer.py
rhyolight/pygments-groovy
b80282f873d09d5709508078179a41a69a8c3ed4
[ "BSD-3-Clause" ]
null
null
null
lexer/groovylexer.py
rhyolight/pygments-groovy
b80282f873d09d5709508078179a41a69a8c3ed4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Lexer for the Groovy programming language http://groovy.codehaus.org """ from pygments.lexer import RegexLexer class GroovyLexer(RegexLexer): """ For `Groovy <http://groovy.codehaus.org/>`_ source code. """ name = 'Groovy' aliases = ['groovy'] filenames = [...
39.53125
86
0.462451
2,381
0.941107
0
0
0
0
0
0
1,249
0.493676
5019020d7b680c6e2d3cae1add3c2247c0136f62
10,243
py
Python
official/nlp/modeling/layers/cls_head.py
e10101/models
5c3e08b7697f0035b8731607277dc4e47e18317c
[ "Apache-2.0" ]
1
2021-12-03T00:11:14.000Z
2021-12-03T00:11:14.000Z
official/nlp/modeling/layers/cls_head.py
e10101/models
5c3e08b7697f0035b8731607277dc4e47e18317c
[ "Apache-2.0" ]
2
2021-03-24T23:09:46.000Z
2021-03-25T18:42:10.000Z
official/nlp/modeling/layers/cls_head.py
e10101/models
5c3e08b7697f0035b8731607277dc4e47e18317c
[ "Apache-2.0" ]
1
2021-03-26T02:26:42.000Z
2021-03-26T02:26:42.000Z
# Copyright 2021 The TensorFlow 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 applica...
35.689895
80
0.691399
8,131
0.79381
0
0
412
0.040223
0
0
4,097
0.39998
501a6e4b0542dfab3ece831a797cbcd4d5a9b0c2
7,119
py
Python
oembed/migrations/0001_initial.py
EightMedia/djangoembed
ee325f7375c48405f9c3e7e2c0fa7f5a08fafd48
[ "MIT" ]
8
2015-02-06T19:18:49.000Z
2021-01-01T05:46:02.000Z
oembed/migrations/0001_initial.py
EightMedia/djangoembed
ee325f7375c48405f9c3e7e2c0fa7f5a08fafd48
[ "MIT" ]
null
null
null
oembed/migrations/0001_initial.py
EightMedia/djangoembed
ee325f7375c48405f9c3e7e2c0fa7f5a08fafd48
[ "MIT" ]
5
2015-03-15T11:41:26.000Z
2018-03-08T09:45:26.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.conf import settings from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'StoredOEmbed' db.create_table('oembed_storedoembed', ( ...
62.447368
197
0.606827
6,958
0.977384
0
0
0
0
0
0
4,227
0.593763