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
db4c9fb7ae81031adc5833740cfc20ab17a83afb
3,036
py
Python
docs/python/conf.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-29T03:48:42.000Z
2019-01-29T07:51:31.000Z
docs/python/conf.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-09T16:03:17.000Z
2019-02-13T13:58:28.000Z
docs/python/conf.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. import os import sys import shutil # Check these extensions were installed. import sphinx_gallery.gen_gallery # The package should be insta...
29.192308
118
0.635705
0
0
0
0
0
0
0
0
1,939
0.638669
db4cd73478117d82a5229f15076b8071351fd162
586
py
Python
traffic_sim/__main__.py
ngngardner/toc_project
15a111a2731b583f82e65c622d16d32af4fe3ae0
[ "MIT" ]
null
null
null
traffic_sim/__main__.py
ngngardner/toc_project
15a111a2731b583f82e65c622d16d32af4fe3ae0
[ "MIT" ]
null
null
null
traffic_sim/__main__.py
ngngardner/toc_project
15a111a2731b583f82e65c622d16d32af4fe3ae0
[ "MIT" ]
null
null
null
"""Traffic simulator code.""" import sys from os import path from traffic_sim.analysis import TrafficExperiment from traffic_sim.console import console if not __package__: _path = path.realpath(path.abspath(__file__)) sys.path.insert(0, path.dirname(path.dirname(_path))) def main(): """Run code from CL...
18.903226
57
0.643345
0
0
0
0
0
0
0
0
76
0.129693
db4d954b047874012d94933f5000302aa9b31037
1,500
py
Python
TSFpy/debug/sample_fibonacci.py
ooblog/TSF1KEV
f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d
[ "MIT" ]
null
null
null
TSFpy/debug/sample_fibonacci.py
ooblog/TSF1KEV
f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d
[ "MIT" ]
null
null
null
TSFpy/debug/sample_fibonacci.py
ooblog/TSF1KEV
f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: UTF-8 -*- from __future__ import division,print_function,absolute_import,unicode_literals import sys import os os.chdir(sys.path[0]) sys.path.append('/mnt/sda2/github/TSF1KEV/TSFpy') from TSF_io import * #from TSF_Forth import * from TSF_shuffle import * from TSF_match import * fro...
39.473684
315
0.675333
0
0
0
0
0
0
0
0
747
0.498
db4dff7ffc5831999b457d95fed00095a9bee6b8
6,545
py
Python
Tomboy2Evernote.py
rguptan/Tomboy2Evernote
2bee66537d080c13856811b806613ca6aaef8833
[ "MIT" ]
null
null
null
Tomboy2Evernote.py
rguptan/Tomboy2Evernote
2bee66537d080c13856811b806613ca6aaef8833
[ "MIT" ]
null
null
null
Tomboy2Evernote.py
rguptan/Tomboy2Evernote
2bee66537d080c13856811b806613ca6aaef8833
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import re import sys, getopt import glob import os def process_files(inputdir, outputdir): os.chdir(inputdir) enex_notes = [] output_filename = 'Tomboy2Evernote.enex' i = 0 for file in glob.glob("*.note"): note_file_path = inputdir + '/' + file ...
34.088542
119
0.60382
0
0
0
0
0
0
0
0
2,267
0.346265
db4e4eef4ddc738259fac8554c6c1cde5bc457e8
1,873
py
Python
demo.py
williamfzc/pyat
4e9792d4bfdc119d910eb88cf8a13a0ab7848518
[ "MIT" ]
20
2018-11-01T03:49:56.000Z
2020-07-23T12:19:20.000Z
demo.py
williamfzc/pyat
4e9792d4bfdc119d910eb88cf8a13a0ab7848518
[ "MIT" ]
2
2018-12-28T05:40:47.000Z
2019-05-20T02:23:29.000Z
demo.py
williamfzc/pyat
4e9792d4bfdc119d910eb88cf8a13a0ab7848518
[ "MIT" ]
14
2018-11-01T09:01:38.000Z
2021-06-09T07:40:45.000Z
from pyatool import PYAToolkit # 个性化的函数需要toolkit形参,即使不需要使用 def test_b(toolkit): return 'i am test_b, running on {}'.format(toolkit.device_id) # 封装adb命令成为方法 PYAToolkit.bind_cmd(func_name='test_a', command='shell pm list package | grep google') # 或者绑定个性化的函数 PYAToolkit.bind_func(real_func=test_b) # 是否需要log PYAToo...
20.811111
100
0.767218
0
0
0
0
0
0
0
0
1,388
0.58051
db4f84187c639afbc8e53e791899d9a207e520b3
1,791
py
Python
nnlab/nn/graph.py
nlab-mpg/nnlab
56aabb53fa7b86601b35c7b8c9e890d50e19d9af
[ "MIT" ]
null
null
null
nnlab/nn/graph.py
nlab-mpg/nnlab
56aabb53fa7b86601b35c7b8c9e890d50e19d9af
[ "MIT" ]
null
null
null
nnlab/nn/graph.py
nlab-mpg/nnlab
56aabb53fa7b86601b35c7b8c9e890d50e19d9af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division from six.moves import xrange, zip import tensorflow as tf from .tensor import Tensor class Graph(object): """The class for defining computational graph.""" def __init__(self, loss=None, modules...
33.166667
90
0.641541
1,566
0.874372
0
0
175
0.097711
0
0
324
0.180905
db5061768015e77516d7fdac7ebe34947ba071f8
18,798
py
Python
local-rotations.py
katiekruzan/masters-thesis
c9b89a0995957b5b50442b86ae8a38388f1fb720
[ "MIT" ]
null
null
null
local-rotations.py
katiekruzan/masters-thesis
c9b89a0995957b5b50442b86ae8a38388f1fb720
[ "MIT" ]
null
null
null
local-rotations.py
katiekruzan/masters-thesis
c9b89a0995957b5b50442b86ae8a38388f1fb720
[ "MIT" ]
null
null
null
""" Here we're going to code for the local rotations. We're doing an object oriented approach Left and right are in reference to the origin """ __version__ = 1.0 __author__ = 'Katie Kruzan' import string # just to get the alphabet easily iterable import sys # This just helps us in our printing from typing import Di...
36.500971
123
0.6223
9,230
0.49101
0
0
0
0
0
0
11,250
0.598468
db51ec07d8e04f942c3e7a0e0c331ea715cd23c8
19,075
py
Python
PT-FROST/frost.py
EtienneDavid/FROST
1cea124d69f07e3ac7e3ad074059d29c0849254c
[ "MIT" ]
2
2020-12-21T12:46:06.000Z
2021-03-02T08:28:15.000Z
PT-FROST/frost.py
yogsin/FROST
1cea124d69f07e3ac7e3ad074059d29c0849254c
[ "MIT" ]
null
null
null
PT-FROST/frost.py
yogsin/FROST
1cea124d69f07e3ac7e3ad074059d29c0849254c
[ "MIT" ]
2
2020-12-20T15:04:24.000Z
2021-11-21T12:29:02.000Z
import random import argparse import numpy as np import pandas as pd import os import time import string import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from tqdm import tqdm from model import WideResnet from cifar import get_train_loader, get_val_loader from ...
46.074879
131
0.618244
0
0
0
0
0
0
0
0
2,716
0.142385
db52db9f4875bf2abe871f56389adc2f255c93ca
8,456
py
Python
Logistic Regression/main.py
Frightera/LR-and-NN-for-Cancer-Data
54f8c9455af529c512efe012d8b3ed3f6b594a57
[ "MIT" ]
4
2021-03-10T22:18:35.000Z
2022-03-06T15:37:23.000Z
Logistic Regression/main.py
Frightera/LR-From-Scratch
54f8c9455af529c512efe012d8b3ed3f6b594a57
[ "MIT" ]
null
null
null
Logistic Regression/main.py
Frightera/LR-From-Scratch
54f8c9455af529c512efe012d8b3ed3f6b594a57
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt data = pd.read_csv("data.csv") data.info() """ Data columns (total 33 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 id 569 no...
35.830508
113
0.674078
0
0
0
0
0
0
0
0
4,917
0.581481
db5470b1f6ebd8cb49e975c2e7b8774a4d607820
2,446
py
Python
fine-tune/inference_embedding.py
LinHuiqing/nonparaSeq2seqVC_code
d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25
[ "MIT" ]
199
2019-12-13T03:11:21.000Z
2022-03-29T15:44:49.000Z
fine-tune/inference_embedding.py
LinHuiqing/nonparaSeq2seqVC_code
d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25
[ "MIT" ]
39
2019-12-16T20:08:45.000Z
2022-02-10T00:36:40.000Z
fine-tune/inference_embedding.py
LinHuiqing/nonparaSeq2seqVC_code
d40a0cb9dc11c77b8af56b8510e4ab041f2f2b25
[ "MIT" ]
57
2019-12-16T23:25:25.000Z
2022-03-28T18:04:16.000Z
import os import numpy as np import torch import argparse from hparams import create_hparams from model import lcm from train import load_model from torch.utils.data import DataLoader from reader import TextMelIDLoader, TextMelIDCollate, id2sp from inference_utils import plot_data parser = argparse.ArgumentParser() p...
33.054054
89
0.688062
0
0
0
0
0
0
0
0
273
0.111611
db555bcdcf43aa3bbda4391fd627c19482dc0997
68,250
py
Python
dalme_app/migrations/0001_initial.py
DALME/dalme
46f9a0011fdb75c5098b552104fc73b1062e16e9
[ "BSD-3-Clause" ]
6
2019-05-07T01:06:04.000Z
2021-02-19T20:45:09.000Z
dalme_app/migrations/0001_initial.py
DALME/dalme
46f9a0011fdb75c5098b552104fc73b1062e16e9
[ "BSD-3-Clause" ]
23
2018-09-14T18:01:42.000Z
2021-12-29T17:25:18.000Z
dalme_app/migrations/0001_initial.py
DALME/dalme
46f9a0011fdb75c5098b552104fc73b1062e16e9
[ "BSD-3-Clause" ]
1
2020-02-10T16:20:57.000Z
2020-02-10T16:20:57.000Z
# Generated by Django 3.1.2 on 2020-11-29 13:25 import dalme_app.models._templates from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_currentuser.middleware import uuid import wagtail.search.index class Migration(migrations.Migration): initia...
72.761194
257
0.636674
67,979
0.996029
0
0
0
0
0
0
13,176
0.193055
db55b37705e1ee35cb592342b49dbe69963ce12a
105
py
Python
django_app/DataEntrySystem/apps.py
Hezepeng/Financial-Acquisition-And-Editing-System
0781101e596a31d90bcfa3d67622472c04c6149f
[ "MIT" ]
null
null
null
django_app/DataEntrySystem/apps.py
Hezepeng/Financial-Acquisition-And-Editing-System
0781101e596a31d90bcfa3d67622472c04c6149f
[ "MIT" ]
null
null
null
django_app/DataEntrySystem/apps.py
Hezepeng/Financial-Acquisition-And-Editing-System
0781101e596a31d90bcfa3d67622472c04c6149f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DataentrysystemConfig(AppConfig): name = 'DataEntrySystem'
17.5
39
0.790476
68
0.647619
0
0
0
0
0
0
17
0.161905
db569a6325c560b769cb648e074b4a8fea4a1b00
3,954
py
Python
bombgame/recursive_bt_maze.py
JeFaProductions/bombgame2
fc2ca7c6606aecd2bec013ed307aa344a0adffc7
[ "MIT" ]
null
null
null
bombgame/recursive_bt_maze.py
JeFaProductions/bombgame2
fc2ca7c6606aecd2bec013ed307aa344a0adffc7
[ "MIT" ]
2
2019-04-04T13:53:11.000Z
2019-11-28T17:02:00.000Z
bombgame/recursive_bt_maze.py
JeFaProductions/bombgame2
fc2ca7c6606aecd2bec013ed307aa344a0adffc7
[ "MIT" ]
null
null
null
# recursive_bt_maze.py # # Author: Jens Gansloser # Created On: 16 Feb 2019 import os import random import numpy as np class RecursiveBTMaze: def __init__(self, width, height): if width % 2 == 0 or height % 2 == 0: raise ValueError("Width and height need to be odd.") self.width = wid...
28.861314
107
0.508346
3,831
0.968892
154
0.038948
172
0.0435
0
0
202
0.051088
db579a2c18ea2f40634d5108f68e0bca010002d0
5,608
py
Python
KV_Reader.py
Nibuja05/KVConverter
74f810df4ac82358f405eac9c2f56dce13b69302
[ "MIT" ]
2
2020-07-06T00:24:27.000Z
2021-09-20T20:16:36.000Z
KV_Reader.py
Nibuja05/KVConverter
74f810df4ac82358f405eac9c2f56dce13b69302
[ "MIT" ]
null
null
null
KV_Reader.py
Nibuja05/KVConverter
74f810df4ac82358f405eac9c2f56dce13b69302
[ "MIT" ]
null
null
null
import re import math class KVPart(): """docstring for KVPart""" def __init__(self, name, tab_count = 0): #super(KVPart, self).__init__() self.name = name self.values = [] self.tab_count = tab_count self.parent = None self.master = False def add_simple_value(self, value): self.values.append(value) ...
26.704762
131
0.684736
2,846
0.507489
0
0
0
0
0
0
927
0.1653
db587b6771666fcfb06093ced1689bf5fcf21ace
3,476
py
Python
scripts/updatetestsuiterefimages.py
PaulDoessel/appleseed
142908e05609cd802b3ab937ff27ef2b73dd3088
[ "MIT" ]
null
null
null
scripts/updatetestsuiterefimages.py
PaulDoessel/appleseed
142908e05609cd802b3ab937ff27ef2b73dd3088
[ "MIT" ]
null
null
null
scripts/updatetestsuiterefimages.py
PaulDoessel/appleseed
142908e05609cd802b3ab937ff27ef2b73dd3088
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any ...
39.954023
99
0.592923
0
0
210
0.060414
0
0
0
0
2,225
0.640104
db58e1a129781006da344d7eb154b8ae346ffb44
4,244
py
Python
raidquaza/poll/polls.py
Breee/raidquaza
308d643e71eddf6f6dc432c01322a02d604ac70e
[ "MIT" ]
2
2019-03-12T16:44:24.000Z
2020-04-13T21:06:20.000Z
raidquaza/poll/polls.py
Breee/raidquaza
308d643e71eddf6f6dc432c01322a02d604ac70e
[ "MIT" ]
5
2019-07-13T00:11:42.000Z
2021-07-29T11:55:39.000Z
raidquaza/poll/polls.py
Breee/raidquaza
308d643e71eddf6f6dc432c01322a02d604ac70e
[ "MIT" ]
null
null
null
from typing import List, Any import time from discord import Embed, Reaction from utils import uniquify # EMOJIS regional_indicator_A to regional_indicator_T reaction_emojies = ['\U0001F1E6', '\U0001F1E7', '\U0001F1E8', '\U0001F1E9', '\U00...
41.203883
119
0.583176
3,305
0.778746
0
0
0
0
698
0.164467
610
0.143732
db59947574fede70d491b2341a72a67a1fae3994
387
py
Python
Python/Regex and Parsing/Validating and Parsing Email Addresses.py
pavstar619/HackerRank
697ee46b6e621ad884a064047461d7707b1413cd
[ "MIT" ]
61
2017-04-27T13:45:12.000Z
2022-01-27T11:40:15.000Z
Python/Regex and Parsing/Validating and Parsing Email Addresses.py
fahad0193/HackerRank
eb6c95e16688c02921c1df6b6ea613667a251457
[ "MIT" ]
1
2017-06-24T14:16:06.000Z
2017-06-24T14:16:28.000Z
Python/Regex and Parsing/Validating and Parsing Email Addresses.py
fahad0193/HackerRank
eb6c95e16688c02921c1df6b6ea613667a251457
[ "MIT" ]
78
2017-07-05T11:48:20.000Z
2022-02-08T08:04:22.000Z
import email.utils as em import re class Main(): def __init__(self): self.n = int(input()) for i in range(self.n): self.s = em.parseaddr(input()) if re.match(r'^[a-zA-Z](\w|-|\.|_)+@[a-zA-Z]+\.[a-zA-Z]{0,3}$', self.s[1]): print(em.format...
24.1875
87
0.4677
297
0.767442
0
0
0
0
0
0
60
0.155039
db5e2687d797299a53905ef091a13e9ae1079979
2,814
py
Python
chatbot/train.py
codingsoo/virtaul_girlfriend
7343cb95cc8ab345b735fdb07cfac8176cc41f76
[ "Apache-2.0" ]
4
2017-02-04T04:51:23.000Z
2017-09-07T08:30:36.000Z
chatbot/train.py
HyungKen/Fake_love
21397e346c933cbbace59a9bd26c06789ff5c172
[ "MIT" ]
11
2017-02-03T06:23:27.000Z
2017-02-04T02:57:35.000Z
chatbot/train.py
HyungKen/Fake_love
21397e346c933cbbace59a9bd26c06789ff5c172
[ "MIT" ]
7
2017-02-03T04:16:48.000Z
2020-03-20T15:23:34.000Z
# -*- coding: utf-8 -*- import tensorflow as tf import random import math import os from config import FLAGS from model import Seq2Seq from dialog import Dialog def train(dialog, batch_size=100, epoch=100): model = Seq2Seq(dialog.vocab_size) with tf.Session() as sess: # TODO: 세션을 로드하고 로그를 위한 summar...
31.617978
84
0.638237
0
0
0
0
0
0
0
0
422
0.142857
db626314c3f603e0417951997ccb255cc99fda86
2,900
py
Python
evaluation/dmp_behavior.py
rock-learning/approxik
877d50d4d045457593a2fafefd267339a11de20f
[ "BSD-3-Clause" ]
1
2020-03-27T01:53:57.000Z
2020-03-27T01:53:57.000Z
evaluation/dmp_behavior.py
rock-learning/approxik
877d50d4d045457593a2fafefd267339a11de20f
[ "BSD-3-Clause" ]
null
null
null
evaluation/dmp_behavior.py
rock-learning/approxik
877d50d4d045457593a2fafefd267339a11de20f
[ "BSD-3-Clause" ]
1
2020-12-18T02:09:21.000Z
2020-12-18T02:09:21.000Z
# Author: Alexander Fabisch <Alexander.Fabisch@dfki.de> import numpy as np from bolero.representation import BlackBoxBehavior from bolero.representation import DMPBehavior as DMPBehaviorImpl class DMPBehavior(BlackBoxBehavior): """Dynamical Movement Primitive. Parameters ---------- execution_time : ...
28.712871
79
0.633103
2,702
0.931724
0
0
0
0
0
0
807
0.278276
db63fcffdf47984065f99dc88667ff4cd4c8ed3b
489
py
Python
logger.py
oxsoftdev/bitstampws-logger
5597010cad53cd55e949235fbc191f8b1aad344d
[ "MIT" ]
null
null
null
logger.py
oxsoftdev/bitstampws-logger
5597010cad53cd55e949235fbc191f8b1aad344d
[ "MIT" ]
null
null
null
logger.py
oxsoftdev/bitstampws-logger
5597010cad53cd55e949235fbc191f8b1aad344d
[ "MIT" ]
null
null
null
import logging.config import tornado from bitstampws import Client as Websocket import lib.configs.logging from lib.subscribers import SimpleLoggerSubscriber logging.config.dictConfig(lib.configs.logging.d) if __name__ == '__main__': with Websocket() as client: with SimpleLoggerSubscriber(client): ...
23.285714
56
0.678937
0
0
0
0
0
0
0
0
10
0.02045
db643ae984ce9c0d8dd5236851af05c04998a27b
6,746
py
Python
engine/tree.py
dougsc/gp
d144dd1f483150b26483077e6e5032f4f21a6d4e
[ "Apache-2.0" ]
null
null
null
engine/tree.py
dougsc/gp
d144dd1f483150b26483077e6e5032f4f21a6d4e
[ "Apache-2.0" ]
null
null
null
engine/tree.py
dougsc/gp
d144dd1f483150b26483077e6e5032f4f21a6d4e
[ "Apache-2.0" ]
null
null
null
import random from pprint import pformat from copy import deepcopy from utils.logger import GP_Logger from terminal_set import TerminalSet class Tree: @classmethod def log(cls): return GP_Logger.logger(cls.__name__) def __init__(self): self.terminal_set=None self.function_set=None self.function_...
40.154762
141
0.67225
6,605
0.979099
0
0
70
0.010377
0
0
1,051
0.155796
db64a112c82f9adeb1221b9eb9fef389c1ea9873
276
py
Python
src/pyrin/packaging/__init__.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/packaging/__init__.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/packaging/__init__.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ packaging package. """ from pyrin.packaging.base import Package class PackagingPackage(Package): """ packaging package class. """ NAME = __name__ COMPONENT_NAME = 'packaging.component' CONFIG_STORE_NAMES = ['packaging']
16.235294
42
0.655797
180
0.652174
0
0
0
0
0
0
121
0.438406
db64c7127d561a8ba836f248730b0617bfb376eb
368
py
Python
chap7/heapq_merge.py
marble-git/python-laoqi
74c4bb5459113e54ce64443e5da5a9c6a3052d6a
[ "MIT" ]
null
null
null
chap7/heapq_merge.py
marble-git/python-laoqi
74c4bb5459113e54ce64443e5da5a9c6a3052d6a
[ "MIT" ]
null
null
null
chap7/heapq_merge.py
marble-git/python-laoqi
74c4bb5459113e54ce64443e5da5a9c6a3052d6a
[ "MIT" ]
null
null
null
#coding:utf-8 ''' filename:heapq_merge.py chap:7 subject:4-2 conditions:heapq.merge,sorted_list:lst1,lst2 lst3=merged_list(lst1,lst2) is sorted solution:heapq.merge ''' import heapq lst1 = [1,3,5,7,9] lst2 = [2,4,6,8] if __name__ == '__main__': lst3 = heapq.merge(lst1,lst...
14.72
49
0.616848
0
0
0
0
0
0
0
0
219
0.595109
db64f80a8ca557a291741dc4fd34c7d58b0c51f0
7,181
py
Python
lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
"""Generated client library for serviceuser version v1.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.serviceuser.v1 import serviceuser_v1_messages as messages class ServiceuserV1(base_api.BaseApiClient): """Generat...
38.40107
179
0.709372
6,917
0.963236
0
0
0
0
0
0
3,217
0.447988
db654a453fae8398e895160a150ba86dbbcc20b1
1,966
py
Python
bindings/python/examples/feature_example.py
lithathampan/wav2letter
8abf8431d99da147cc4aefc289ad33626e13de6f
[ "BSD-3-Clause" ]
1
2020-07-27T20:51:32.000Z
2020-07-27T20:51:32.000Z
bindings/python/examples/feature_example.py
lithathampan/wav2letter
8abf8431d99da147cc4aefc289ad33626e13de6f
[ "BSD-3-Clause" ]
null
null
null
bindings/python/examples/feature_example.py
lithathampan/wav2letter
8abf8431d99da147cc4aefc289ad33626e13de6f
[ "BSD-3-Clause" ]
1
2021-09-27T16:18:20.000Z
2021-09-27T16:18:20.000Z
#!/usr/bin/env python3 # adapted from wav2letter/src/feature/test/MfccTest.cpp import itertools as it import os import sys from wav2letter.feature import FeatureParams, Mfcc def load_data(filename): path = os.path.join(data_path, filename) path = os.path.abspath(path) with open(path) as f: retu...
30.71875
86
0.657172
0
0
0
0
0
0
0
0
438
0.222787
db65bd23cd7117025faa3493e9ff0bcdc4419ed0
3,227
py
Python
app.py
shreyashack/PY_Message_Decryption
251a82ee26c529ff63668328230c9d494f4c9cfa
[ "MIT" ]
1
2020-11-18T10:01:13.000Z
2020-11-18T10:01:13.000Z
app.py
shreyashack/PY_Message_Decryption
251a82ee26c529ff63668328230c9d494f4c9cfa
[ "MIT" ]
null
null
null
app.py
shreyashack/PY_Message_Decryption
251a82ee26c529ff63668328230c9d494f4c9cfa
[ "MIT" ]
null
null
null
from tkinter import * import onetimepad class Message_Decrypt: def __init__(self,root): self.root=root self.root.title("Message Decryption") self.root.geometry("400x475") self.root.iconbitmap("logo368.ico") self.root.resizable(0,0) def on_enter1(e): but...
34.329787
154
0.577007
3,096
0.959405
0
0
0
0
0
0
752
0.233034
db66779a2882ba639d36d1d562ab73945afc92fc
1,317
py
Python
examples/rrbot_p2p_low_energy.py
abcamiletto/urdf2optcontrol
39b3f761a4685cc7d50b48793b6b2906c89b1694
[ "MIT" ]
null
null
null
examples/rrbot_p2p_low_energy.py
abcamiletto/urdf2optcontrol
39b3f761a4685cc7d50b48793b6b2906c89b1694
[ "MIT" ]
null
null
null
examples/rrbot_p2p_low_energy.py
abcamiletto/urdf2optcontrol
39b3f761a4685cc7d50b48793b6b2906c89b1694
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from urdf2optcontrol import optimizer from matplotlib import pyplot as plt import pathlib # URDF options urdf_path = pathlib.Path(__file__).parent.joinpath('urdf', 'rrbot.urdf').absolute() root = "link1" end = "link3" in_cond = [0] * 4 def my_cost_func(q, qd, qdd, ee_pos, u, t): return u....
21.241935
83
0.688686
0
0
0
0
0
0
0
0
226
0.171602
db66ffcc00192c85b05965750638c6febdb95b51
15,803
py
Python
SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py
fqc/SocketSample_Mina_Socket
f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d
[ "MIT" ]
23
2015-01-28T13:31:24.000Z
2020-03-11T18:11:45.000Z
SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py
fqc/SocketSample_Mina_Socket
f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d
[ "MIT" ]
1
2015-04-30T12:01:00.000Z
2015-04-30T13:33:38.000Z
SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py
fqc/SocketSample_Mina_Socket
f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d
[ "MIT" ]
10
2015-05-27T12:52:19.000Z
2021-01-13T13:35:11.000Z
""" Pooled PostgreSQL database backend for Django. Requires psycopg 2: http://initd.org/projects/psycopg2 """ from django import get_version as get_django_version from django.db.backends.postgresql_psycopg2.base import \ DatabaseWrapper as OriginalDatabaseWrapper from django.db.backends.signals import connection_c...
44.767705
124
0.627729
10,697
0.676897
0
0
0
0
0
0
5,177
0.327596
db682583f2b418b3755329c159971a743aab45f6
589
py
Python
backend/tests/test_api/test_api_auth.py
abodacs/fastapi-ml-skeleton
fa9a013d06e70cbaff9b9469db32246e41ce7e0f
[ "Apache-2.0" ]
null
null
null
backend/tests/test_api/test_api_auth.py
abodacs/fastapi-ml-skeleton
fa9a013d06e70cbaff9b9469db32246e41ce7e0f
[ "Apache-2.0" ]
3
2020-03-16T22:07:31.000Z
2021-06-25T15:33:38.000Z
backend/tests/test_api/test_api_auth.py
abodacs/fastapi-ml-skeleton
fa9a013d06e70cbaff9b9469db32246e41ce7e0f
[ "Apache-2.0" ]
null
null
null
# Skeleton from fastapi_skeleton.core import messages def test_auth_using_prediction_api_no_apikey_header(test_client) -> None: response = test_client.post("/api/model/predict") assert response.status_code == 400 assert response.json() == {"detail": messages.NO_API_KEY} def test_auth_using_prediction_ap...
34.647059
86
0.728353
0
0
0
0
0
0
0
0
99
0.168081
db68dcb7ad2aa62124559726780ed4b83d08a974
2,510
py
Python
docker/cleanup_generators.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
docker/cleanup_generators.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
docker/cleanup_generators.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
1
2019-07-14T14:54:15.000Z
2019-07-14T14:54:15.000Z
# Copyright 2016 Cisco Systems, 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/LICENSE-2.0 # # Unless requir...
31.772152
88
0.622709
0
0
0
0
0
0
0
0
1,240
0.494024
db693358ac60e6cb090422f46492eb2fca4b02bf
2,434
py
Python
object_detection/box_coders/mean_stddev_box_coder.py
ophirSarusi/TF_Object_Detection
e08ccd18c6f14586e048048a445cf5a10dbc7c4d
[ "MIT" ]
59
2018-09-23T09:34:24.000Z
2020-03-10T04:31:27.000Z
object_detection/box_coders/mean_stddev_box_coder.py
ophirSarusi/TF_Object_Detection
e08ccd18c6f14586e048048a445cf5a10dbc7c4d
[ "MIT" ]
46
2018-07-10T23:53:15.000Z
2022-02-06T03:31:47.000Z
object_detection/box_coders/mean_stddev_box_coder.py
ophirSarusi/TF_Object_Detection
e08ccd18c6f14586e048048a445cf5a10dbc7c4d
[ "MIT" ]
58
2018-09-23T10:31:47.000Z
2021-11-08T11:34:40.000Z
# Copyright 2017 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...
34.28169
81
0.671323
1,465
0.60189
0
0
47
0.01931
0
0
1,719
0.706245
db6a7657f91ac9f80bc299ba273000b77ee1c28c
490
py
Python
storage/aug_buffer.py
nsortur/equi_rl
83bd2ee9dfaab715e51b71ffff90ab990aaed5f8
[ "MIT" ]
9
2022-02-20T18:18:51.000Z
2022-03-24T03:04:44.000Z
storage/aug_buffer.py
nsortur/equi_rl
83bd2ee9dfaab715e51b71ffff90ab990aaed5f8
[ "MIT" ]
null
null
null
storage/aug_buffer.py
nsortur/equi_rl
83bd2ee9dfaab715e51b71ffff90ab990aaed5f8
[ "MIT" ]
2
2022-02-19T05:17:06.000Z
2022-02-21T20:53:26.000Z
from storage.buffer import QLearningBuffer from utils.torch_utils import ExpertTransition, augmentTransition from utils.parameters import buffer_aug_type class QLearningBufferAug(QLearningBuffer): def __init__(self, size, aug_n=9): super().__init__(size) self.aug_n = aug_n def add(self, transi...
25.789474
71
0.72449
329
0.671429
0
0
0
0
0
0
0
0
db6aa256e7b60e45c5a9fbde4a14ff7a63101137
3,544
py
Python
hlrl/torch/agents/wrappers/agent.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/agents/wrappers/agent.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/agents/wrappers/agent.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
import torch from typing import Any, Dict, List, OrderedDict, Tuple from hlrl.core.agents import RLAgent from hlrl.core.common.wrappers import MethodWrapper class TorchRLAgent(MethodWrapper): """ A torch agent that wraps its experiences as torch tensors. """ def __init__(self, agent:...
27.905512
79
0.577596
3,383
0.954571
0
0
0
0
0
0
1,569
0.44272
db6b5bcc7b8379dc6e51f6670d5ff0c0d562417c
649
py
Python
PixivConstant.py
NHOrus/PixivUtil2
facd6b1a21e4adf5edf1de4d4809e94e834246b6
[ "BSD-2-Clause" ]
null
null
null
PixivConstant.py
NHOrus/PixivUtil2
facd6b1a21e4adf5edf1de4d4809e94e834246b6
[ "BSD-2-Clause" ]
null
null
null
PixivConstant.py
NHOrus/PixivUtil2
facd6b1a21e4adf5edf1de4d4809e94e834246b6
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- PIXIVUTIL_VERSION = '20191220-beta1' PIXIVUTIL_LINK = 'https://github.com/Nandaka/PixivUtil2/releases' PIXIVUTIL_DONATE = 'https://bit.ly/PixivUtilDonation' # Log Settings PIXIVUTIL_LOG_FILE = 'pixivutil.log' PIXIVUTIL_LOG_SIZE = 10485760 PIXIVUTIL_LOG_COUNT = 10 PIXIVUTIL_LOG_FORMAT = "%(asct...
25.96
77
0.784284
0
0
0
0
0
0
0
0
222
0.342065
db6b74f1fcb56888f5ba09963ca5bb5ed146122f
8,906
py
Python
dynamic_schemas/views.py
Threemusketeerz/DSystems
cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c
[ "BSD-2-Clause" ]
1
2018-01-23T12:23:48.000Z
2018-01-23T12:23:48.000Z
dynamic_schemas/views.py
Threemusketeerz/DSystems
cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c
[ "BSD-2-Clause" ]
1
2018-01-19T08:43:59.000Z
2018-01-23T12:20:43.000Z
dynamic_schemas/views.py
Threemusketeerz/DSystems
cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c
[ "BSD-2-Clause" ]
null
null
null
from django.http import Http404 from django.shortcuts import render, redirect, reverse from django.views.generic import ListView from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from rest_framework import st...
32.50365
79
0.613631
6,293
0.706602
0
0
1,879
0.210981
0
0
2,367
0.265776
db6d31174807080316cb8c996b05fcc9ce69a5b7
40
py
Python
my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210725220637.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210725220637.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/example3a/main_20210725220637.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
import os.path import types import sys
8
14
0.8
0
0
0
0
0
0
0
0
0
0
db6ec26c39a9f24fdd4d35e11407f85831432a46
24,215
py
Python
api/views.py
conscience99/lyriko
0ecc9e4d5ec8e3d746fcb286209a1e7993548a66
[ "MIT" ]
null
null
null
api/views.py
conscience99/lyriko
0ecc9e4d5ec8e3d746fcb286209a1e7993548a66
[ "MIT" ]
null
null
null
api/views.py
conscience99/lyriko
0ecc9e4d5ec8e3d746fcb286209a1e7993548a66
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import response from rest_framework.serializers import Serializer from . import serializers from rest_framework.response import Response from rest_framework.views import APIView from django.views import View from rest_framework import status from . models import S...
38.436508
356
0.617097
19,901
0.821846
0
0
0
0
0
0
4,429
0.182903
db7042284fa2b7f2b0d11816372b28c2a0aa4dd3
1,755
py
Python
__dm__.py
AbhilashDatta/InstagramBot
21916fcfc621ae3185df8494b12aa35743c165f8
[ "MIT" ]
12
2021-07-17T09:19:07.000Z
2022-01-18T18:49:43.000Z
__dm__.py
kumarankm/InstagramBot
db08f0ae12f22b76d31f844a9ff7f037622e534f
[ "MIT" ]
1
2021-08-12T22:04:07.000Z
2021-08-13T14:14:10.000Z
__dm__.py
kumarankm/InstagramBot
db08f0ae12f22b76d31f844a9ff7f037622e534f
[ "MIT" ]
8
2021-07-17T09:19:19.000Z
2021-09-13T19:15:04.000Z
from selenium import webdriver from time import sleep from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait def Dm(driver,user,message): ''' This functio...
56.612903
193
0.699145
0
0
0
0
0
0
0
0
672
0.382906
db7052a530fb46c3cf9935b4a0d738b78df5d9c6
11,060
py
Python
mashov.py
Yotamefr/BeitBiram
84bd6abddf6ac865b502e0692561ee48d510ef7c
[ "MIT" ]
1
2020-12-31T07:32:28.000Z
2020-12-31T07:32:28.000Z
mashov.py
Yotamefr/BeitBiram
84bd6abddf6ac865b502e0692561ee48d510ef7c
[ "MIT" ]
null
null
null
mashov.py
Yotamefr/BeitBiram
84bd6abddf6ac865b502e0692561ee48d510ef7c
[ "MIT" ]
null
null
null
import requests from datetime import datetime import json from extras import Day, Lesson class PasswordError(Exception): pass class LoginFailed(Exception): pass class MashovAPI: """ MashovAPI Originally made by Xiddoc. Project can be found here: https://github.com/Xiddoc/MashovAPI Modifica...
34.88959
168
0.499458
10,969
0.991145
0
0
639
0.057739
0
0
3,558
0.321496
db705bf281d4e51af41d8edd5763fe3fe1cf7124
3,936
py
Python
lab6.py
jschmidtnj/CS115
fa2374f1ae9c9b63e572850a97af6086112d7a36
[ "MIT" ]
null
null
null
lab6.py
jschmidtnj/CS115
fa2374f1ae9c9b63e572850a97af6086112d7a36
[ "MIT" ]
null
null
null
lab6.py
jschmidtnj/CS115
fa2374f1ae9c9b63e572850a97af6086112d7a36
[ "MIT" ]
1
2022-01-03T01:44:39.000Z
2022-01-03T01:44:39.000Z
''' Created on 10/11/2017 @author: jschmid3@stevens.edu Pledge: I pledge my honor that I have abided by the Stevens Honor System -Joshua Schmidt CS115 - Lab 6 ''' def isOdd(n): '''Returns whether or not the integer argument is odd.''' #question 1: base_2 of 42: 101010 if n == 0: return False ...
33.641026
121
0.621697
0
0
0
0
0
0
0
0
2,382
0.605183
db713485817468ad0752428e7966eefdca79459b
4,233
py
Python
clover.py
imyz/25000
909b6ceaf326138b0684e6600f347a38fe68f9f0
[ "MIT" ]
8
2015-08-10T03:43:06.000Z
2022-01-18T21:23:31.000Z
clover.py
jcrocholl/25000
0607a9c2f5f16f0776d88e56460c6479921616cb
[ "MIT" ]
null
null
null
clover.py
jcrocholl/25000
0607a9c2f5f16f0776d88e56460c6479921616cb
[ "MIT" ]
6
2015-06-28T20:02:01.000Z
2018-01-06T17:37:38.000Z
#!/usr/bin/env python from math import * import sys def rotate(x, y, degrees): c = cos(pi * degrees / 180.0) s = sin(pi * degrees / 180.0) return x * c + y * s, y * c - x * s def move(verb, **kwargs): keys = kwargs.keys() keys.sort() words = [verb.upper()] for key in keys: words.a...
25.196429
64
0.632412
0
0
0
0
0
0
0
0
1,101
0.260099
db71abd1961c2779351e3978214beab6ac4916f7
915
py
Python
scripts/mnist_inference.py
asiakaczmar/noise2self
75daaf188c49bff0da22c235540da20f4eca9614
[ "MIT" ]
null
null
null
scripts/mnist_inference.py
asiakaczmar/noise2self
75daaf188c49bff0da22c235540da20f4eca9614
[ "MIT" ]
null
null
null
scripts/mnist_inference.py
asiakaczmar/noise2self
75daaf188c49bff0da22c235540da20f4eca9614
[ "MIT" ]
null
null
null
import torch from torchvision.datasets import MNIST from torchvision import transforms from torch.utils.data import DataLoader from scripts.utils import SyntheticNoiseDataset from models.babyunet import BabyUnet CHECKPOINTS_PATH = '../checkpoints/' mnist_test = MNIST('../inferred_data/MNIST', download=True, ...
31.551724
73
0.696175
0
0
0
0
0
0
0
0
84
0.091803
db73a20804b8cf971455500dd1ae60cb3137e6bf
4,321
py
Python
src/processing/augmentation.py
sdcubber/kaggle_carvana
44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f
[ "MIT" ]
null
null
null
src/processing/augmentation.py
sdcubber/kaggle_carvana
44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f
[ "MIT" ]
null
null
null
src/processing/augmentation.py
sdcubber/kaggle_carvana
44f6c7f1e80be2caa3c7ad4c7fb69067af45fe8f
[ "MIT" ]
null
null
null
# Script for data augmentation functions import numpy as np from collections import deque from PIL import Image import cv2 from data.config import * def imread_cv2(image_path): """ Read image_path with cv2 format (H, W, C) if image is '.gif' outputs is a numpy array of {0,1} """ image_format = ima...
36.931624
129
0.669058
0
0
0
0
0
0
0
0
1,412
0.326776
db73bf308ebc49eac8469a2ce4652a4342c9902b
295
py
Python
substitute_finder/templatetags/substitute_finder_extra.py
tohugaby/pur_beurre_web
c3bdacee50907eea79821e7a8b3fe0f349719d88
[ "MIT" ]
1
2020-01-05T18:58:51.000Z
2020-01-05T18:58:51.000Z
substitute_finder/templatetags/substitute_finder_extra.py
tohugaby/pur_beurre_web
c3bdacee50907eea79821e7a8b3fe0f349719d88
[ "MIT" ]
3
2020-06-05T18:35:47.000Z
2021-06-10T20:32:44.000Z
substitute_finder/templatetags/substitute_finder_extra.py
tomlemeuch/pur_beurre_web
c3bdacee50907eea79821e7a8b3fe0f349719d88
[ "MIT" ]
null
null
null
""" substitute_finder app custom templatetags module """ from django import template register = template.Library() @register.filter def range_tag(value, min_value=0): """ tag that return a range """ if value: return range(min_value, value) return range(min_value)
17.352941
48
0.688136
0
0
0
0
176
0.59661
0
0
95
0.322034
db74905cc0d77c3c1aff987d3c4f57d66e26cc16
1,905
py
Python
terrafirma/core/views/env.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
terrafirma/core/views/env.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
terrafirma/core/views/env.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse_lazy from django import views from django.views import generic as g_views from django.views.generic import base as b_views, edit as e_views from .. import forms, models class NewEnvView(e_views.CreateView): model = m...
30.238095
85
0.67979
1,623
0.851969
0
0
0
0
0
0
120
0.062992
db752d631ccf3257bd962fe18b4682f3220a6fa6
178
py
Python
geoviz/__init__.py
JustinGOSSES/geoviz
159b0665d9efcffe46061313c15ad09ced840d2d
[ "MIT" ]
6
2018-10-16T16:38:15.000Z
2018-10-22T13:56:13.000Z
geoviz/__init__.py
JustinGOSSES/geoviz
159b0665d9efcffe46061313c15ad09ced840d2d
[ "MIT" ]
5
2018-10-14T21:49:00.000Z
2018-11-12T18:59:48.000Z
geoviz/__init__.py
nathangeology/geoviz
5643e8880b4ecc241d4f8806743bf0441dd435c1
[ "MIT" ]
1
2019-05-30T23:36:29.000Z
2019-05-30T23:36:29.000Z
from load_las_data import LoadLasData from altair_log_plot import AltAirLogPlot from load_shapefile_data import LoadShpData from alitair_well_location_map import WellLocationMap
35.6
53
0.910112
0
0
0
0
0
0
0
0
0
0
db76b4e07eb1879ec4babded5e9e5a77166fce6b
424
py
Python
core/data/utils.py
ahmad-PH/auto_lcc
55a6ac0e92994f4eed9951a27b7aa0d834f9d804
[ "MIT" ]
2
2022-01-01T22:09:05.000Z
2022-01-01T23:00:43.000Z
core/data/utils.py
ahmad-PH/auto_lcc
55a6ac0e92994f4eed9951a27b7aa0d834f9d804
[ "MIT" ]
null
null
null
core/data/utils.py
ahmad-PH/auto_lcc
55a6ac0e92994f4eed9951a27b7aa0d834f9d804
[ "MIT" ]
null
null
null
import pickle import pandas as pd from typing import List, Tuple def load_libofc_df(data_path): def tuple_to_df(data: List[Tuple]) -> pd.DataFrame: return pd.DataFrame(data, columns=["class", "title", "synopsis", "id"]) with open(data_path, 'rb') as f: classes = pickle.load(f) train = ...
28.266667
79
0.660377
0
0
0
0
0
0
0
0
32
0.075472
db7701392b667ccf9ad8bc520bcd09b9ef9711c5
608
py
Python
apps/users/adminx.py
hhdMrLion/mxshop-api
1472ad0d959439ea80c1f8d8bfd3629c15d3017d
[ "Apache-2.0" ]
null
null
null
apps/users/adminx.py
hhdMrLion/mxshop-api
1472ad0d959439ea80c1f8d8bfd3629c15d3017d
[ "Apache-2.0" ]
null
null
null
apps/users/adminx.py
hhdMrLion/mxshop-api
1472ad0d959439ea80c1f8d8bfd3629c15d3017d
[ "Apache-2.0" ]
null
null
null
import xadmin from users.models import VerifyCode from xadmin import views class BaseSetting(object): # 添加主题功能 enable_themes = True user_bootswatch = True class GlobalSettings(object): # 全局配置,后端管理标题和页脚 site_title = '天天生鲜后台管理' site_footer = 'https://www.qnmlgb.top/' # 菜单收缩 ...
22.518519
58
0.708882
406
0.604167
0
0
0
0
0
0
167
0.248512
db777f4b56a68caa06eca0c2b86f08c668527cb4
2,717
py
Python
Archive/train_cnn.py
Yeok-c/Urban-Sound-Classification
98c46eb54266ef7b859d192e9bebe8a5d48e1708
[ "Apache-2.0" ]
null
null
null
Archive/train_cnn.py
Yeok-c/Urban-Sound-Classification
98c46eb54266ef7b859d192e9bebe8a5d48e1708
[ "Apache-2.0" ]
null
null
null
Archive/train_cnn.py
Yeok-c/Urban-Sound-Classification
98c46eb54266ef7b859d192e9bebe8a5d48e1708
[ "Apache-2.0" ]
null
null
null
### Load necessary libraries ### import numpy as np from sklearn.model_selection import KFold from sklearn.metrics import accuracy_score import tensorflow as tf from tensorflow import keras from sklearn.metrics import ConfusionMatrixDisplay model = get_network() model.summary() ### Train and evaluate via 10-Folds ...
40.552239
123
0.670225
0
0
0
0
0
0
0
0
756
0.278248
db77a4da0f8fc3044cf961cfd37d6efdc53cb0ed
274
py
Python
Python3/1436-Destination-City/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1436-Destination-City/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1436-Destination-City/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def destCity(self, paths: List[List[str]]) -> str: bads = set() cities = set() for u, v in paths: cities.add(u) cities.add(v) bads.add(u) ans = cities - bads return list(ans)[0]
24.909091
54
0.474453
273
0.99635
0
0
0
0
0
0
0
0
db77b07e8a875d39eb972f8b432c0f0db96a2c4f
6,105
py
Python
metaflow/plugins/kfp/tests/flows/resources_flow.py
zillow/metaflow
a42dc9eab04695f2b0a429874e607ed67d5a2b45
[ "Apache-2.0" ]
7
2020-07-24T17:07:58.000Z
2021-05-19T21:47:12.000Z
metaflow/plugins/kfp/tests/flows/resources_flow.py
zillow/metaflow
a42dc9eab04695f2b0a429874e607ed67d5a2b45
[ "Apache-2.0" ]
55
2020-07-20T16:56:27.000Z
2022-03-28T12:51:15.000Z
metaflow/plugins/kfp/tests/flows/resources_flow.py
zillow/metaflow
a42dc9eab04695f2b0a429874e607ed67d5a2b45
[ "Apache-2.0" ]
6
2020-10-15T18:38:35.000Z
2021-06-20T03:05:43.000Z
import os import pprint import subprocess import time from typing import Dict, List from kubernetes.client import ( V1EnvVar, V1EnvVarSource, V1ObjectFieldSelector, V1ResourceFieldSelector, ) from metaflow import FlowSpec, step, environment, resources, current def get_env_vars(env_resources: Dict[st...
30.073892
71
0.591646
3,395
0.556102
0
0
3,324
0.544472
0
0
1,716
0.281081
db79520622b9fcae917edbc819e1d1c2cae17bf8
5,951
py
Python
src/nb_utils/general.py
redfrexx/osm_association_rules
33975ce25047f9ab3b21e890bc5ed9bab59a0a2f
[ "BSD-3-Clause" ]
null
null
null
src/nb_utils/general.py
redfrexx/osm_association_rules
33975ce25047f9ab3b21e890bc5ed9bab59a0a2f
[ "BSD-3-Clause" ]
null
null
null
src/nb_utils/general.py
redfrexx/osm_association_rules
33975ce25047f9ab3b21e890bc5ed9bab59a0a2f
[ "BSD-3-Clause" ]
2
2021-05-10T10:19:13.000Z
2021-09-15T10:32:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Functions used for data handling """ __author__ = "Christina Ludwig, GIScience Research Group, Heidelberg University" __email__ = "christina.ludwig@uni-heidelberg.de" import os import yaml from shapely.geometry import box import numpy as np import pandas as pd import g...
40.482993
363
0.668627
0
0
0
0
0
0
0
0
2,494
0.419089
db7ad2b92a14b73e461a5d252d3a7ab245920c9f
3,922
py
Python
keystoneclient/auth/identity/v3/federated.py
darren-wang/ksc
fd096540e8e57b6bd7c923f4cb4ad6616d103cc8
[ "Apache-1.1" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/federated.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/federated.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
35.017857
77
0.63284
3,157
0.804946
0
0
3,189
0.813106
0
0
1,981
0.505099
db7bb396855ddfa537f07ed9527e3bc449422f2a
274
py
Python
bin/Python27/Lib/site-packages/tables/utilsExtension.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/tables/utilsExtension.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/tables/utilsExtension.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
from warnings import warn from tables.utilsextension import * _warnmsg = ("utilsExtension is pending deprecation, import utilsextension instead. " "You may use the pt2to3 tool to update your source code.") warn(_warnmsg, DeprecationWarning, stacklevel=2)
39.142857
85
0.751825
0
0
0
0
0
0
0
0
129
0.470803
db7cbd4afe84d62fa37ba5ff4602788af4116b50
802
py
Python
config.py
iDevHank/i18n
ec731b5d6fab330a868ebb9f9e11ff1caef629ef
[ "MIT" ]
null
null
null
config.py
iDevHank/i18n
ec731b5d6fab330a868ebb9f9e11ff1caef629ef
[ "MIT" ]
null
null
null
config.py
iDevHank/i18n
ec731b5d6fab330a868ebb9f9e11ff1caef629ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # The format of your own localizable method. # This is an example of '"string".localized' SUFFIX = '.localized' KEY = r'"(?:\\.|[^"\\])*"' LOCALIZABLE_RE = r'%s%s' % (KEY, SUFFIX) # Specify the path of localizable files in project. LOCALIZABLE_FILE_PATH = '' LOCALIZABLE_FILE_NAMES = ['Localizab...
33.416667
71
0.634663
0
0
0
0
0
0
0
0
455
0.567332
db7ce31c6a43ef5813c6d71caa6c1ea9655847e6
188
py
Python
dashboard_analytics/tasks/transaction_processor.py
Astewart1510/pvt-algoranddashboard
6fb6cf37b483339f24cc86f0a95fb2245be492ca
[ "MIT" ]
null
null
null
dashboard_analytics/tasks/transaction_processor.py
Astewart1510/pvt-algoranddashboard
6fb6cf37b483339f24cc86f0a95fb2245be492ca
[ "MIT" ]
null
null
null
dashboard_analytics/tasks/transaction_processor.py
Astewart1510/pvt-algoranddashboard
6fb6cf37b483339f24cc86f0a95fb2245be492ca
[ "MIT" ]
null
null
null
from dashboard_analytics.models import AccountType, InstrumentType, Account, Transaction def process_json_transactions(transactions): for txn in transactions: print(txn["pk"])
37.6
88
0.787234
0
0
0
0
0
0
0
0
4
0.021277
db7dbf749958b5f62cb5ff7deb97ed3b8e66afdf
1,771
py
Python
MuonGun/resources/scripts/histreduce.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
MuonGun/resources/scripts/histreduce.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
MuonGun/resources/scripts/histreduce.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#!/usr/bin/env python """ Add all (potentially gigantic) histograms in a group of files. """ import dashi import tables import os, sys, operator, shutil from optparse import OptionParser parser = OptionParser(usage="%prog [OPTIONS] infiles outfile", description=__doc__) parser.add_option("--blocksize", dest="blocksi...
31.070175
83
0.728967
0
0
0
0
0
0
0
0
450
0.254094
db7e13c9886abafe9915d05b01539badc566a636
2,108
py
Python
procrastinate/exceptions.py
ignaciocabeza/procrastinate
95ba8c7acdf39aa7a1216c19903802b4f65b65d1
[ "MIT" ]
null
null
null
procrastinate/exceptions.py
ignaciocabeza/procrastinate
95ba8c7acdf39aa7a1216c19903802b4f65b65d1
[ "MIT" ]
null
null
null
procrastinate/exceptions.py
ignaciocabeza/procrastinate
95ba8c7acdf39aa7a1216c19903802b4f65b65d1
[ "MIT" ]
null
null
null
import datetime class ProcrastinateException(Exception): """ Unexpected Procrastinate error. """ def __init__(self, message=None): if not message: message = self.__doc__ super().__init__(message) class TaskNotFound(ProcrastinateException): """ Task cannot be impo...
22.913043
84
0.675047
2,059
0.976755
0
0
0
0
0
0
1,104
0.523719
db7edea364132ddeeca859f58229a42b6ea2f0ae
534
py
Python
config/settings/local.py
vyshakTs/STORE_MANAGEMENT_SYSTEM
b6b82a02c0b512083c35a8656e191436552569a9
[ "CC0-1.0" ]
null
null
null
config/settings/local.py
vyshakTs/STORE_MANAGEMENT_SYSTEM
b6b82a02c0b512083c35a8656e191436552569a9
[ "CC0-1.0" ]
null
null
null
config/settings/local.py
vyshakTs/STORE_MANAGEMENT_SYSTEM
b6b82a02c0b512083c35a8656e191436552569a9
[ "CC0-1.0" ]
null
null
null
from .base import * DEBUG = True EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'SMS', 'USER': 'postgres', 'PASSWORD': 'password', 'HOST': 'localhost', 'PORT': '', }...
19.777778
64
0.617978
0
0
0
0
0
0
0
0
320
0.599251
db7efcd3ba8afeab68792a36832e16d7660931cd
1,097
py
Python
question3.py
haojunsng/foodpanda-dataeng
b1b9a5c615113a1b8727c9c7dfe7ad3e50059428
[ "MIT" ]
null
null
null
question3.py
haojunsng/foodpanda-dataeng
b1b9a5c615113a1b8727c9c7dfe7ad3e50059428
[ "MIT" ]
null
null
null
question3.py
haojunsng/foodpanda-dataeng
b1b9a5c615113a1b8727c9c7dfe7ad3e50059428
[ "MIT" ]
null
null
null
from functions import get_df, write_df import geopy from geopy import distance """ The function question3 takes in the latitude and longitude of potential distress locations, and returns the nearest port with essential provisions such as water, fuel_oil and diesel. """ def question3(dataset_name, latitude, longitude)...
36.566667
143
0.71103
0
0
0
0
0
0
0
0
340
0.309936
db808d5da5102b2f6086cfb47bc515cc8e85e1ce
6,587
py
Python
plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_communication/case.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
30.780374
93
0.591316
141
0.021406
176
0.026719
192
0.029148
2,549
0.386974
1,284
0.194929
db80f4198878eb7bd4645b74c2bea6781e993672
4,663
py
Python
examples/pybullet/vr_kuka_setup.py
q4a/bullet3
b077f74f5675fb9ca7bafd238f097f87bf6c0367
[ "Zlib" ]
12
2017-08-24T05:58:53.000Z
2021-07-15T17:32:26.000Z
examples/pybullet/vr_kuka_setup.py
mofed8461/BulletPhysics-EarthQuakeSimulation
d411684d0293a18039d4180f5bc8dab33d063fce
[ "Zlib" ]
null
null
null
examples/pybullet/vr_kuka_setup.py
mofed8461/BulletPhysics-EarthQuakeSimulation
d411684d0293a18039d4180f5bc8dab33d063fce
[ "Zlib" ]
2
2018-01-13T07:49:58.000Z
2020-10-21T02:48:25.000Z
import pybullet as p #p.connect(p.UDP,"192.168.86.100") p.connect(p.SHARED_MEMORY) p.resetSimulation() objects = [p.loadURDF("plane.urdf", 0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000)] objects = [p.loadURDF("samurai.urdf", 0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000)] objects = [p...
58.2875
121
0.749517
0
0
0
0
0
0
0
0
570
0.122239
db83659c6d0ac1aa7ea69a87f18b5fd2867e5ddc
3,651
py
Python
genomics_algo/utilities/string_cmp.py
SvoONs/genomics_algo
3174c1e9e685db12c5849ce5c7e3411f1922a4be
[ "MIT" ]
null
null
null
genomics_algo/utilities/string_cmp.py
SvoONs/genomics_algo
3174c1e9e685db12c5849ce5c7e3411f1922a4be
[ "MIT" ]
38
2020-11-11T21:26:56.000Z
2021-03-20T23:25:49.000Z
genomics_algo/utilities/string_cmp.py
SvoONs/genomics_algo
3174c1e9e685db12c5849ce5c7e3411f1922a4be
[ "MIT" ]
1
2020-11-13T21:38:43.000Z
2020-11-13T21:38:43.000Z
def longest_common_prefix(s1: str, s2: str) -> str: """ Finds the longest common prefix (substring) given two strings s1: First string to compare s2: Second string to compare Returns: Longest common prefix between s1 and s2 >>> longest_common_prefix("ACTA", "GCCT") '' >>> long...
28.97619
81
0.586962
0
0
0
0
0
0
0
0
2,562
0.701726
db836b59bf5fd8d655aefd6e4020d61dca742b2c
11,906
py
Python
whyqd/parsers/wrangling_parser.py
whythawk/whyqd
8ee41768d6788318458d41831200594b61777ccc
[ "BSD-3-Clause" ]
17
2020-02-21T14:41:24.000Z
2022-01-31T20:25:53.000Z
whyqd/parsers/wrangling_parser.py
whythawk/whyqd
8ee41768d6788318458d41831200594b61777ccc
[ "BSD-3-Clause" ]
null
null
null
whyqd/parsers/wrangling_parser.py
whythawk/whyqd
8ee41768d6788318458d41831200594b61777ccc
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from typing import Optional, Dict, List, Union, Type, TYPE_CHECKING from datetime import date, datetime import pandas as pd import numpy as np import re import locale try: locale.setlocale(locale.LC_ALL, "en_US.UTF-8") except locale.Error: # Readthedocs has a problem, but dif...
38.160256
128
0.534184
11,343
0.952713
0
0
0
0
0
0
6,123
0.514279
db83c7d51feb9c6d2d6569094bc6e9a0eb64b2ce
432
py
Python
0x02-python-import_modules/2-args.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x02-python-import_modules/2-args.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x02-python-import_modules/2-args.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 def args(args): lenn = len(args) - 1 if lenn == 0: print("0 arguments.") elif lenn == 1: print("{0} argument:".format(lenn)) print("{0}: {1}".format(lenn, args[lenn])) elif lenn > 1: print("{0} arguments:".format(lenn)) for i in range(lenn): ...
25.411765
52
0.518519
0
0
0
0
0
0
0
0
93
0.215278
db847e24bb7a6401d0b23e464a5ea391ad69edb8
89
py
Python
taurex/data/profiles/__init__.py
rychallener/TauREx3_public
eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677
[ "BSD-3-Clause" ]
10
2019-12-18T09:19:16.000Z
2021-06-21T11:02:06.000Z
taurex/data/profiles/__init__.py
rychallener/TauREx3_public
eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677
[ "BSD-3-Clause" ]
10
2020-03-24T18:02:15.000Z
2021-08-23T20:32:09.000Z
taurex/data/profiles/__init__.py
rychallener/TauREx3_public
eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677
[ "BSD-3-Clause" ]
8
2020-03-26T14:16:42.000Z
2021-12-18T22:11:25.000Z
""" These modules contain sub-modules related to defining various profiles in a model """
29.666667
81
0.775281
0
0
0
0
0
0
0
0
89
1
db8615ff95bbb42756435769fd0cc3b6f45c202c
503
py
Python
day-2/part_b.py
yuetsin/AoC
a7c5aea245ee6e77312352907fc4d1ac8eac2d3a
[ "CC0-1.0" ]
null
null
null
day-2/part_b.py
yuetsin/AoC
a7c5aea245ee6e77312352907fc4d1ac8eac2d3a
[ "CC0-1.0" ]
null
null
null
day-2/part_b.py
yuetsin/AoC
a7c5aea245ee6e77312352907fc4d1ac8eac2d3a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import re def get_input() -> list: with open('./input', 'r') as f: return [v for v in [v.strip() for v in f.readlines()] if v] lines = get_input() count = 0 for line in lines: lower, upper, char, password = re.split(r'-|: | ', line) lower, upper = int(lower) - 1, int(upp...
20.12
67
0.554672
0
0
0
0
0
0
0
0
72
0.143141
db867f235dd317f96cc49c5953d0a91169b52a4a
3,977
py
Python
src/tone.py
devanshslnk/HelpOff
bbeddc8bbb9d26bbc85f572d4769fc9fc92d5c4a
[ "MIT" ]
2
2018-10-08T06:01:42.000Z
2021-06-22T08:35:11.000Z
src/tone.py
devanshslnk/HelpOff
bbeddc8bbb9d26bbc85f572d4769fc9fc92d5c4a
[ "MIT" ]
null
null
null
src/tone.py
devanshslnk/HelpOff
bbeddc8bbb9d26bbc85f572d4769fc9fc92d5c4a
[ "MIT" ]
3
2018-10-09T19:04:14.000Z
2019-01-22T11:59:28.000Z
from __future__ import print_function import json from os.path import join, dirname from watson_developer_cloud import ToneAnalyzerV3 from watson_developer_cloud.tone_analyzer_v3 import ToneInput from pprint import pprint # If service instance provides API key authentication # service = ToneAnalyzerV3( # ## url i...
41.863158
755
0.681167
0
0
0
0
0
0
0
0
3,464
0.871008
db8707b6679e39765f15056eb4cf61c517a7c762
9,435
py
Python
hcloud/servers/domain.py
usmannasir/hcloud-python
2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d
[ "MIT" ]
1
2019-10-23T01:00:08.000Z
2019-10-23T01:00:08.000Z
hcloud/servers/domain.py
usmannasir/hcloud-python
2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d
[ "MIT" ]
null
null
null
hcloud/servers/domain.py
usmannasir/hcloud-python
2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d
[ "MIT" ]
1
2019-06-19T17:53:10.000Z
2019-06-19T17:53:10.000Z
# -*- coding: utf-8 -*- from hcloud.core.domain import BaseDomain from hcloud.helpers.descriptors import ISODateTime class Server(BaseDomain): """Server Domain :param id: int ID of the server :param name: str Name of the server (must be unique per project and a valid hostname as pe...
30.337621
147
0.598728
9,293
0.98495
0
0
0
0
0
0
5,388
0.571065
db874da91d4a01e76e9bd18e99b073b83ddddd62
6,050
py
Python
AutomationFramework/tests/interfaces/test_if_subif.py
sbarguil/Testing-framework
f3ef69f1c4f0aeafd02e222d846162c711783b15
[ "Apache-2.0" ]
1
2020-04-23T15:22:16.000Z
2020-04-23T15:22:16.000Z
AutomationFramework/tests/interfaces/test_if_subif.py
sbarguil/Testing-framework
f3ef69f1c4f0aeafd02e222d846162c711783b15
[ "Apache-2.0" ]
44
2020-08-13T19:35:41.000Z
2021-03-01T09:08:00.000Z
AutomationFramework/tests/interfaces/test_if_subif.py
sbarguil/Testing-framework
f3ef69f1c4f0aeafd02e222d846162c711783b15
[ "Apache-2.0" ]
6
2020-04-23T15:29:38.000Z
2022-03-03T14:23:38.000Z
import pytest from AutomationFramework.page_objects.interfaces.interfaces import Interfaces from AutomationFramework.tests.base_test import BaseTest class TestInterfacesSubInterfaces(BaseTest): test_case_file = 'if_subif.yml' @pytest.mark.parametrize('create_page_object_arg', [{'test_case_file': test_case_fi...
72.02381
120
0.615372
5,898
0.974876
0
0
5,758
0.951736
0
0
1,043
0.172397
db8779ff5f2f1e236cb5f3cfe96c63ab0de64f28
5,766
py
Python
keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/001_add_initial_tables.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # 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...
36.961538
79
0.620534
0
0
0
0
0
0
0
0
2,005
0.347728
db885085ce16df342f9eaff7d4d323eb7dc1a85c
15,984
py
Python
boa3_test/examples/ico.py
DanPopa46/neo3-boa
e4ef340744b5bd25ade26f847eac50789b97f3e9
[ "Apache-2.0" ]
null
null
null
boa3_test/examples/ico.py
DanPopa46/neo3-boa
e4ef340744b5bd25ade26f847eac50789b97f3e9
[ "Apache-2.0" ]
null
null
null
boa3_test/examples/ico.py
DanPopa46/neo3-boa
e4ef340744b5bd25ade26f847eac50789b97f3e9
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Union from boa3.builtin import NeoMetadata, metadata, public from boa3.builtin.contract import Nep17TransferEvent from boa3.builtin.interop.blockchain import get_contract from boa3.builtin.interop.contract import GAS, NEO, call_contract from boa3.builtin.interop.runtime import calling_scr...
33.509434
118
0.673486
0
0
0
0
12,857
0.804367
0
0
9,155
0.57276
db8859ce66203d2b7d494162105376778915c59d
20,640
py
Python
emotion_recognition.py
Partaourides/SERN
e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718
[ "MIT" ]
10
2019-05-07T02:20:02.000Z
2020-10-09T02:20:31.000Z
emotion_recognition.py
Partaourides/SERN
e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718
[ "MIT" ]
2
2020-06-27T13:09:03.000Z
2021-07-28T04:55:38.000Z
emotion_recognition.py
Partaourides/SERN
e6cc0a9a0cc3ac4b9a87e3ccdf5781792f85d718
[ "MIT" ]
1
2019-07-18T00:28:13.000Z
2019-07-18T00:28:13.000Z
import os # Restrict the script to run on CPU os.environ ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = "" # Import Keras Tensoflow Backend # from keras import backend as K import tensorflow as tf # Configure it to use only specific CPU Cores config = tf.ConfigProto(intra_op_parallelism_thre...
58.971429
128
0.463275
0
0
0
0
0
0
0
0
7,776
0.376744
db889090b0a80e5b1926c1a844e99f3562167374
1,779
py
Python
dashboard/rpc/alias.py
flaree/Toxic-Cogs
e33c3fe3a81c86ef3c89928b0a977fae13b916a9
[ "MIT" ]
null
null
null
dashboard/rpc/alias.py
flaree/Toxic-Cogs
e33c3fe3a81c86ef3c89928b0a977fae13b916a9
[ "MIT" ]
null
null
null
dashboard/rpc/alias.py
flaree/Toxic-Cogs
e33c3fe3a81c86ef3c89928b0a977fae13b916a9
[ "MIT" ]
null
null
null
import discord from redbot.core.bot import Red from redbot.core.commands import commands from redbot.core.utils.chat_formatting import humanize_list from .utils import permcheck, rpccheck class DashboardRPC_AliasCC: def __init__(self, cog: commands.Cog): self.bot: Red = cog.bot self.co...
32.345455
81
0.540191
1,578
0.887015
0
0
1,238
0.695897
969
0.544688
223
0.125351
db88f0e02537c3b3ec61c4fbd738d9a4605bd04a
6,939
py
Python
train.py
hafezgh/music_classification
68fa398b7d4455475d07ae17c3b6b94459a96ac7
[ "MIT" ]
1
2021-07-15T18:47:02.000Z
2021-07-15T18:47:02.000Z
train.py
hafezgh/music_classification
68fa398b7d4455475d07ae17c3b6b94459a96ac7
[ "MIT" ]
null
null
null
train.py
hafezgh/music_classification
68fa398b7d4455475d07ae17c3b6b94459a96ac7
[ "MIT" ]
null
null
null
import torch DEVICE = 'cuda' import math import torch.optim as optim from model import * import os import copy, gzip, pickle, time data_dir = './drive/MyDrive/music_classification/Data' classes = os.listdir(data_dir+'/images_original') def fit(model, train_loader, train_len, optimizer, criterion): model.train() ...
40.343023
118
0.607292
0
0
0
0
0
0
0
0
1,447
0.208531
db8a89f5042414f5dbf4f47067a5e2131c5f76b8
1,881
py
Python
dlk/core/schedulers/__init__.py
cstsunfu/dlkit
69e0efd372fa5c0ae5313124d0ba1ef55b535196
[ "Apache-2.0" ]
null
null
null
dlk/core/schedulers/__init__.py
cstsunfu/dlkit
69e0efd372fa5c0ae5313124d0ba1ef55b535196
[ "Apache-2.0" ]
null
null
null
dlk/core/schedulers/__init__.py
cstsunfu/dlkit
69e0efd372fa5c0ae5313124d0ba1ef55b535196
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 cstsunfu. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
30.836066
87
0.701223
349
0.18554
0
0
0
0
0
0
919
0.48857
db8bf109b16daade88fa4febce0557b98851466c
476
py
Python
doc/samples/pos.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
1,390
2015-01-01T21:11:47.000Z
2022-03-31T11:35:44.000Z
doc/samples/pos.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
393
2015-01-05T11:18:29.000Z
2022-03-20T11:46:46.000Z
doc/samples/pos.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
176
2015-01-07T16:58:56.000Z
2022-03-28T12:12:11.000Z
def task_pos_args(): def show_params(param1, pos): print('param1 is: {0}'.format(param1)) for index, pos_arg in enumerate(pos): print('positional-{0}: {1}'.format(index, pos_arg)) return {'actions':[(show_params,)], 'params':[{'name':'param1', 'shor...
34
63
0.44958
0
0
0
0
0
0
0
0
127
0.266807
db8c048cea31b2b7400108b7a16a198179252811
24,553
py
Python
projectq/backends/_qracksim/_simulator_test.py
vm6502q/ProjectQ
1eac4b1f529551dfc1668443eba0c68dee54120b
[ "Apache-2.0" ]
1
2019-08-29T19:04:27.000Z
2019-08-29T19:04:27.000Z
projectq/backends/_qracksim/_simulator_test.py
vm6502q/ProjectQ
1eac4b1f529551dfc1668443eba0c68dee54120b
[ "Apache-2.0" ]
6
2019-01-27T17:05:25.000Z
2020-02-24T00:15:59.000Z
projectq/backends/_qracksim/_simulator_test.py
vm6502q/ProjectQ
1eac4b1f529551dfc1668443eba0c68dee54120b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # 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 app...
33.680384
115
0.629455
1,588
0.064676
0
0
3,858
0.157129
0
0
2,095
0.085326
db8d61593765031987787c7a317fdb992cec34a2
779
py
Python
app/deps.py
jshwi/jss
b9f29d47c63cd57d0efc1abec37152e97a92049f
[ "MIT" ]
1
2021-11-07T14:50:00.000Z
2021-11-07T14:50:00.000Z
app/deps.py
jshwi/jss
b9f29d47c63cd57d0efc1abec37152e97a92049f
[ "MIT" ]
75
2021-09-30T03:33:57.000Z
2022-03-29T08:42:07.000Z
app/deps.py
jshwi/jss
b9f29d47c63cd57d0efc1abec37152e97a92049f
[ "MIT" ]
null
null
null
""" app.deps ======== Register dependencies that are not part of a ``Flask`` extension. """ from flask import Flask from redis import Redis from rq import Queue def init_app(app: Flask) -> None: """Register application helpers that are not ``Flask-`` extensions. As these are not ``Flask`` extensions they do...
29.961538
77
0.677792
0
0
0
0
0
0
0
0
568
0.72914
db8f2e8178561d3e8ad8161722df05fc9f1febff
55
py
Python
uncertainty/util/__init__.py
sangdon/intern2020_cocal
2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba
[ "Apache-2.0" ]
null
null
null
uncertainty/util/__init__.py
sangdon/intern2020_cocal
2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba
[ "Apache-2.0" ]
4
2020-09-02T04:20:06.000Z
2022-02-10T02:13:35.000Z
uncertainty/util/__init__.py
sangdon/intern2020_cocal
2f434b76fbf3426c6685fb92c5bbc2d32fcba7ba
[ "Apache-2.0" ]
1
2020-08-31T16:17:28.000Z
2020-08-31T16:17:28.000Z
from util.args import * from util.logger import Logger
18.333333
30
0.8
0
0
0
0
0
0
0
0
0
0
db8f8bf38af010e37a76dcb939676a34f09f75d2
1,693
py
Python
com_reader.py
plusterm/plusterm
45e9382accdaae7d51c65cab77e571bc6d264936
[ "MIT" ]
2
2018-01-10T16:20:45.000Z
2018-01-16T12:04:13.000Z
com_reader.py
plusterm/plusterm
45e9382accdaae7d51c65cab77e571bc6d264936
[ "MIT" ]
14
2018-01-10T12:56:43.000Z
2018-05-11T16:28:31.000Z
com_reader.py
plusterm/plusterm
45e9382accdaae7d51c65cab77e571bc6d264936
[ "MIT" ]
null
null
null
# from wx.lib.pubsub import pub from pubsub import pub import serial import threading import queue import time class ComReaderThread(threading.Thread): ''' Creates a thread that continously reads from the serial connection Puts result as a tuple (timestamp, data) in a queue ''' def __init__(self...
29.701754
74
0.517425
1,579
0.932664
0
0
0
0
0
0
325
0.191967
db8ff673815400dfc9c26d89afa7b79ffbf19f2f
1,032
py
Python
docker/app/app.py
ganeshkumarsv/datadog-cloudfoundry-buildpack
7c622dfc7990da83e5dfa4f474878a642fd40fd3
[ "Apache-2.0" ]
5
2018-04-19T18:33:06.000Z
2021-05-13T03:19:31.000Z
docker/app/app.py
ganeshkumarsv/datadog-cloudfoundry-buildpack
7c622dfc7990da83e5dfa4f474878a642fd40fd3
[ "Apache-2.0" ]
24
2018-05-04T13:42:24.000Z
2021-12-13T12:18:53.000Z
docker/app/app.py
ganeshkumarsv/datadog-cloudfoundry-buildpack
7c622dfc7990da83e5dfa4f474878a642fd40fd3
[ "Apache-2.0" ]
14
2018-05-04T13:29:34.000Z
2022-02-22T17:41:20.000Z
from flask import Flask from datadog import statsd import logging import os # This is a small example application # It uses tracing and dogstatsd on a sample flask application log = logging.getLogger("app") app = Flask(__name__) # The app has two routes, a basic endpoint and an exception endpoint @app.route("/") d...
27.891892
83
0.670543
0
0
0
0
349
0.338178
0
0
493
0.477713
db9205da95b6b253dd5132561aaf107f9a429836
1,135
py
Python
Data Structure using Python/Linked_List/2linked_list1.py
shubhamsah/OpenEDU
a4c68d05f67e7ce6d2305f4ca1567b8f4e95b835
[ "MIT" ]
1
2020-05-29T05:19:37.000Z
2020-05-29T05:19:37.000Z
Data Structure using Python/Linked_List/2linked_list1.py
Mithilesh1609/OpenEDU
85fa1f29285ab1e079e93f6ede3b0d5196ed9cd9
[ "MIT" ]
null
null
null
Data Structure using Python/Linked_List/2linked_list1.py
Mithilesh1609/OpenEDU
85fa1f29285ab1e079e93f6ede3b0d5196ed9cd9
[ "MIT" ]
1
2020-05-09T07:09:11.000Z
2020-05-09T07:09:11.000Z
# Lets create a linked list that has the following elements ''' 1. FE 2. SE 3. TE 4. BE ''' # Creating a Node class to create individual Nodes class Node: def __init__(self,data): self.__data = data self.__next = None def get_data(self): return self.__data ...
19.237288
61
0.572687
836
0.736564
0
0
0
0
0
0
200
0.176211
db92111d1426d48f852fa3b382344c31b99bb952
2,446
py
Python
monai/networks/blocks/selfattention.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
1
2022-03-16T01:18:43.000Z
2022-03-16T01:18:43.000Z
monai/networks/blocks/selfattention.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
monai/networks/blocks/selfattention.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) MONAI Consortium # 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, so...
38.825397
114
0.656582
1,720
0.703189
0
0
0
0
0
0
1,148
0.469338
db933a7c4e56e24f7c3bf21ad73b25c489317eb1
1,642
py
Python
api/tests/opentrons/commands/test_protocol_commands.py
mrakitin/opentrons
d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/commands/test_protocol_commands.py
mrakitin/opentrons
d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/commands/test_protocol_commands.py
mrakitin/opentrons
d9c7ed23d13cdb62bd1bc397dc2871d4bd5b77e9
[ "Apache-2.0" ]
null
null
null
import pytest from opentrons.commands import protocol_commands @pytest.mark.parametrize( argnames="seconds," "minutes," "expected_seconds," "expected_minutes," "expected_text", argvalues=[ [10, 0, 10, 0, "Delaying for 0 minutes and 10.0 seconds"], ...
35.695652
77
0.596224
0
0
0
0
1,284
0.781973
0
0
636
0.387333
db9557d7a7cbb9a18b934e17eeb9d696dbc28b20
1,467
py
Python
tests/test_histogram_source.py
ess-dmsc/just-bin-it
8fcd03337a8a88087f25c510c589d482bdd9e4ad
[ "BSD-2-Clause" ]
null
null
null
tests/test_histogram_source.py
ess-dmsc/just-bin-it
8fcd03337a8a88087f25c510c589d482bdd9e4ad
[ "BSD-2-Clause" ]
23
2018-12-04T11:50:37.000Z
2022-03-17T11:30:39.000Z
tests/test_histogram_source.py
ess-dmsc/just-bin-it
8fcd03337a8a88087f25c510c589d482bdd9e4ad
[ "BSD-2-Clause" ]
2
2019-07-24T11:13:41.000Z
2020-08-04T18:33:22.000Z
from unittest.mock import patch import pytest from just_bin_it.endpoints.sources import HistogramSource from tests.doubles.consumer import StubConsumer TEST_MESSAGE = b"this is a byte message" INVALID_FB = b"this is an invalid fb message" class TestHistogramSource: @pytest.fixture(autouse=True) def prepare...
30.5625
87
0.69666
1,222
0.832993
0
0
551
0.375596
0
0
156
0.106339
db95ca16068801b73d6de76c353700c64c6cc5f8
3,558
py
Python
lctools/shortcuts.py
novel/lc-tools
1b9032357e2e87aebd76d87664077caa5747c220
[ "Apache-2.0" ]
5
2015-03-24T11:04:18.000Z
2021-07-11T00:06:44.000Z
lctools/shortcuts.py
novel/lc-tools
1b9032357e2e87aebd76d87664077caa5747c220
[ "Apache-2.0" ]
null
null
null
lctools/shortcuts.py
novel/lc-tools
1b9032357e2e87aebd76d87664077caa5747c220
[ "Apache-2.0" ]
null
null
null
import getopt import sys from libcloud.compute.types import NodeState from lc import get_lc from printer import Printer def lister_main(what, resource=None, extension=False, supports_location=False, **kwargs): """Shortcut for main() routine for lister tools, e.g. lc-SOMETHING-list @param what: ...
28.693548
88
0.606239
0
0
0
0
0
0
0
0
1,275
0.358347
db97ce46b14abaf409f42c8462a567f6cfb0edfc
31,396
py
Python
tests/test_flash_vl.py
andr1976/thermo
42d10b3702373aacc88167d4046ea9af92abd570
[ "MIT" ]
380
2016-07-04T09:45:20.000Z
2022-03-20T18:09:45.000Z
tests/test_flash_vl.py
andr1976/thermo
42d10b3702373aacc88167d4046ea9af92abd570
[ "MIT" ]
104
2016-07-10T20:47:12.000Z
2022-03-22T20:43:39.000Z
tests/test_flash_vl.py
andr1976/thermo
42d10b3702373aacc88167d4046ea9af92abd570
[ "MIT" ]
96
2016-07-05T20:54:05.000Z
2022-02-23T03:06:02.000Z
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2020, Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
79.483544
862
0.701968
0
0
0
0
0
0
0
0
3,636
0.115811
db991c0b9d90667e802fd9ff394fd81d65368331
624
py
Python
ex38.py
YunMeMeThaw/python_exercises
151d5d3695d578059611ac09c94b3677442197d7
[ "MIT" ]
null
null
null
ex38.py
YunMeMeThaw/python_exercises
151d5d3695d578059611ac09c94b3677442197d7
[ "MIT" ]
null
null
null
ex38.py
YunMeMeThaw/python_exercises
151d5d3695d578059611ac09c94b3677442197d7
[ "MIT" ]
null
null
null
ten_things = "Apples Oranges cows Telephone Light Sugar" print ("Wait there are not 10 things in that list. Let's fix") stuff = ten_things.split(' ') more_stuff = {"Day", "Night", "Song", "Firebee", "Corn", "Banana", "Girl", "Boy"} while len(stuff) !=10: next_one = more_stuff.pop() print("Adding: ", next_one) ...
27.130435
62
0.647436
0
0
0
0
0
0
0
0
298
0.477564
db99d0c184b26e85aa45a341b38434f288a19023
700
py
Python
var/spack/repos/builtin/packages/diffmark/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/diffmark/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/diffmark/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Diffmark(AutotoolsPackage): """Diffmark is a DSL for transforming one string to another.""...
30.434783
73
0.688571
479
0.684286
0
0
0
0
0
0
432
0.617143
db9a10e90482e634cd4e39a1baf5cb649420edce
10,817
py
Python
bbp/comps/irikura_gen_srf.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
28
2017-10-31T09:16:30.000Z
2022-02-28T23:44:29.000Z
bbp/comps/irikura_gen_srf.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
37
2017-05-23T15:15:35.000Z
2022-02-05T09:13:18.000Z
bbp/comps/irikura_gen_srf.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
26
2017-09-21T17:43:33.000Z
2021-11-29T06:34:30.000Z
#!/usr/bin/env python """ Copyright 2010-2019 University Of Southern California Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
41.764479
104
0.524637
9,712
0.897846
0
0
0
0
0
0
2,873
0.2656
db9c6841dad833eb81be4efbbef24d978326ad58
11,120
py
Python
core/tests/test_models.py
EthanMarrs/digit2
207569a3b7a61282a2d0bd5f354a837ad81ef55d
[ "BSD-2-Clause" ]
null
null
null
core/tests/test_models.py
EthanMarrs/digit2
207569a3b7a61282a2d0bd5f354a837ad81ef55d
[ "BSD-2-Clause" ]
null
null
null
core/tests/test_models.py
EthanMarrs/digit2
207569a3b7a61282a2d0bd5f354a837ad81ef55d
[ "BSD-2-Clause" ]
null
null
null
"""test_models.py: runs tests on the models for digit.""" import pytest from core.models import (Grade, Subject, Question, Comment, Option, Topic, Block, ...
38.082192
95
0.629496
10,630
0.955935
0
0
0
0
0
0
2,621
0.235701
db9d8c67bcfd3a7c9d253f50f4a6bf8badfcdb9c
592
py
Python
betterbib/__init__.py
tbabej/betterbib
80a3c9040232d9988f9a1e4c40724b40b9b9ed85
[ "MIT" ]
null
null
null
betterbib/__init__.py
tbabej/betterbib
80a3c9040232d9988f9a1e4c40724b40b9b9ed85
[ "MIT" ]
null
null
null
betterbib/__init__.py
tbabej/betterbib
80a3c9040232d9988f9a1e4c40724b40b9b9ed85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from __future__ import print_function from betterbib.__about__ import ( __version__, __author__, __author_email__, __website__, ) from betterbib.tools import ( create_dict, decode, pybtex_to_dict, pybtex_to_bibtex_string, write, update, Journal...
18.5
59
0.701014
0
0
0
0
0
0
0
0
26
0.043919
db9da718184383db0fb17735d540dd6d59f6b655
5,830
py
Python
base/views.py
omololevy/my_portfolio
29f8892c3a6e40a9c05c85110301987005d2c5c1
[ "MIT" ]
2
2021-12-25T23:11:03.000Z
2021-12-26T07:09:35.000Z
base/views.py
omololevy/portfolio
29f8892c3a6e40a9c05c85110301987005d2c5c1
[ "MIT" ]
6
2022-01-15T15:38:36.000Z
2022-02-22T17:17:59.000Z
base/views.py
omololevy/my_portfolio
29f8892c3a6e40a9c05c85110301987005d2c5c1
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.core.mail import EmailMessage from django.conf import settings from django.template.loader imp...
25.911111
91
0.732247
0
0
0
0
1,644
0.28199
0
0
991
0.169983
db9dc14c3ce1122987ebe56a59b8a07194d400d2
30,282
py
Python
radioLib/pastebin/pastebin.py
hephaestus9/Radio
c1560c25def211ab6354fb0aa5cc935e2851c8f0
[ "MIT" ]
1
2021-05-17T08:31:07.000Z
2021-05-17T08:31:07.000Z
lib/pastebin/pastebin.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
null
null
null
lib/pastebin/pastebin.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################# # Pastebin.py - Python 3.2 Pastebin API. # Copyright (C) 2012 Ian Havelock # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as ...
38.186633
125
0.533848
28,568
0.943399
0
0
0
0
0
0
19,574
0.646391
dba0ab7feb9b0f1f06f733ef048e8a1aa5355e67
2,544
py
Python
app/requests.py
seron-ux/News-app
d22b256b26fb9fa2bb77658952139b9ddebb8f8c
[ "MIT" ]
1
2021-04-16T12:03:37.000Z
2021-04-16T12:03:37.000Z
app/requests.py
seron-ux/News-app
d22b256b26fb9fa2bb77658952139b9ddebb8f8c
[ "MIT" ]
null
null
null
app/requests.py
seron-ux/News-app
d22b256b26fb9fa2bb77658952139b9ddebb8f8c
[ "MIT" ]
null
null
null
import urllib.request,json from .models import News import requests News = News # Getting api key api_key = None # Getting the news base url base_url = None base_url2 = None def configure_request(app): global api_key,base_url,base_url2 api_key = app.config['NEWS_API_KEY'] base_url = app.config['NEWS_API...
26.5
109
0.688286
0
0
0
0
0
0
0
0
649
0.25511
dba12a8374326bf93ca2bf2928409a83d003c3d7
861
py
Python
leetcode/151_reverse _words_in_a_string.py
caoxudong/code_practice
cb960cf69d67ae57b35f0691d35e15c11989e6d2
[ "MIT" ]
1
2020-06-19T11:23:46.000Z
2020-06-19T11:23:46.000Z
leetcode/151_reverse _words_in_a_string.py
caoxudong/code_practice
cb960cf69d67ae57b35f0691d35e15c11989e6d2
[ "MIT" ]
null
null
null
leetcode/151_reverse _words_in_a_string.py
caoxudong/code_practice
cb960cf69d67ae57b35f0691d35e15c11989e6d2
[ "MIT" ]
null
null
null
""" Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". For C programmers: Try to solve it in-place in O(1) space. Clarification: * What constitutes a word? A sequence of non-space characters constitutes a word. * Could the inp...
28.7
86
0.680604
231
0.268293
0
0
0
0
0
0
674
0.782811
dba13534887cbe280b6557621729a3e4996855c7
1,250
py
Python
toontown/uberdog/DistributedInGameNewsMgr.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/uberdog/DistributedInGameNewsMgr.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/uberdog/DistributedInGameNewsMgr.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import socket, datetime, os from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.distributed.DistributedObject import DistributedObject from toontown.toonbase import ToontownGlobals from toontown.uberdog import InGameNewsResponses class DistributedInGameNewsMgr(DistributedObject):...
32.051282
92
0.728
979
0.7832
0
0
0
0
0
0
100
0.08
dba13fb4439b8ad0fa549819c5076a87665d49e6
3,540
py
Python
Day10/loops.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
Day10/loops.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
Day10/loops.py
azeemchaudhrry/30DaysofPython
8aa80c81967d87e4bc70254a41517d0303ca0599
[ "MIT" ]
null
null
null
# Day 10 Loops from countries import * # While Loop # count = 0 # while count < 5: # if count == 3: # break # print(count) # count = count + 1 # numbers = [0,2,3,4,5,6,7,8,9,10] # for number in numbers: # print(number) # language = 'Python' # for letter in language: # print(letter) # tp...
22.547771
150
0.530508
0
0
0
0
0
0
0
0
2,543
0.718362
dba3388df291e70cf8ca9ead3a8d7661985dbeac
10,412
py
Python
tessera-server/tessera/views_api.py
Dimas625/tessera
8e554f217220228fb8a0662fb5075cb839e9f1b1
[ "Apache-2.0" ]
379
2015-01-02T19:12:10.000Z
2016-12-05T05:41:47.000Z
tessera-server/tessera/views_api.py
Dimas625/tessera
8e554f217220228fb8a0662fb5075cb839e9f1b1
[ "Apache-2.0" ]
129
2015-01-07T04:21:05.000Z
2016-07-24T18:37:43.000Z
tessera-server/tessera/views_api.py
Dimas625/tessera
8e554f217220228fb8a0662fb5075cb839e9f1b1
[ "Apache-2.0" ]
44
2015-01-05T13:48:40.000Z
2016-11-23T07:11:41.000Z
# -*- mode:python -*- import flask import json import logging from datetime import datetime import inflection from functools import wraps from flask import request, url_for from werkzeug.exceptions import HTTPException from .client.api.model import * from . import database from . import helpers from .application imp...
34.25
104
0.634364
0
0
0
0
6,670
0.640607
0
0
3,441
0.330484