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
8044be3f76a1e16d32b5f385fa802022a7352190
696
py
Python
examples/basic/colormaps.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
1
2022-03-22T21:49:29.000Z
2022-03-22T21:49:29.000Z
examples/basic/colormaps.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
examples/basic/colormaps.py
mikami520/vedo
1a3abcf3f1e495287e8934d9b5bb07b511ab8be5
[ "MIT" ]
null
null
null
""" Example usage of cmap() to assign a color to each mesh vertex by looking it up in matplotlib database of colormaps """ print(__doc__) from vedo import Plotter, Mesh, dataurl # these are the some matplotlib color maps maps = [ "afmhot", "binary", "bone", "cool", "coolwarm", "copper", "gi...
20.470588
67
0.630747
0
0
0
0
0
0
0
0
326
0.468391
8045e28b5450ff355612318f9bf36e0b5119a567
2,696
py
Python
Class.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
Class.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
Class.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
''' class <name>: <suite> Assignments & def in <suite> create attributes of the class''' # Object Construction # Idea: All bank accounts have a balance and an account holder # The account class should add those attributes to each of its instances ''' When a class is called: 1. New instance of t...
28.378947
100
0.690653
671
0.248887
0
0
0
0
0
0
2,005
0.743694
8046ad6d9a8257734d7ffc0c589a44d7c637794d
250
py
Python
db_connect.py
brandon-schabel/web_scraper_playground
1ae4e3b96fb5697b3f8cdf8fa03d2c54c43262e0
[ "MIT" ]
null
null
null
db_connect.py
brandon-schabel/web_scraper_playground
1ae4e3b96fb5697b3f8cdf8fa03d2c54c43262e0
[ "MIT" ]
12
2020-09-04T14:35:09.000Z
2022-03-08T22:27:48.000Z
db_connect.py
brandon-schabel/web_scraper_playground
1ae4e3b96fb5697b3f8cdf8fa03d2c54c43262e0
[ "MIT" ]
null
null
null
from mongoengine import * from secrets import db_host, db_port, db_user, db_password from schemas import Profile connect('t_database', port=db_port, host=db_host, username=db_user, password=db_password ) def get_profiles(): return Profile.objects
31.25
90
0.808
0
0
0
0
0
0
0
0
12
0.048
804722837c4840e9969d880b8c1cd1c26b6ab238
2,435
py
Python
plugins/virustotal_yara/komand_virustotal_yara/actions/scan_file/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/virustotal_yara/komand_virustotal_yara/actions/scan_file/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/virustotal_yara/komand_virustotal_yara/actions/scan_file/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Scans a file using Yara" class Input: FILE = "file" RULES = "rules" class Output: RESULTS = "results" class ScanFileInput(komand.Input): schema = json.loads(""" { "type": "object", ...
20.123967
105
0.464887
2,346
0.96345
0
0
0
0
0
0
1,997
0.820123
804a41b943270e181d9be77bf29f7d8d5707a582
2,054
py
Python
p.py
jen-soft/tools
5a7203caebc90061c47fabb8b9bdb5c0128d3b1e
[ "Apache-2.0" ]
1
2019-05-03T14:51:49.000Z
2019-05-03T14:51:49.000Z
p.py
jen-soft/tools
5a7203caebc90061c47fabb8b9bdb5c0128d3b1e
[ "Apache-2.0" ]
null
null
null
p.py
jen-soft/tools
5a7203caebc90061c47fabb8b9bdb5c0128d3b1e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """# - - - data-edit: 2018-04-28(05:30) name: Jen-Soft-Print (JSP) author: jen-soft email: jen.soft.master@gmail.com license: Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 description: short tools for using in inter...
23.883721
73
0.601266
27
0.013145
76
0.037001
0
0
0
0
781
0.380234
804d136e8e7766f94db77c9aeeb01f986bf70336
302
py
Python
app/core/validators.py
petoandroide/recipe-app-api
bcd4376f4eee91c8ce1a6982afc7ca1be92eb9e9
[ "MIT" ]
null
null
null
app/core/validators.py
petoandroide/recipe-app-api
bcd4376f4eee91c8ce1a6982afc7ca1be92eb9e9
[ "MIT" ]
null
null
null
app/core/validators.py
petoandroide/recipe-app-api
bcd4376f4eee91c8ce1a6982afc7ca1be92eb9e9
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.core.validators import validate_email def emailValidator(email): '''Checks if an email is valid''' try: validate_email(str(email)) except ValidationError: raise ValidationError(f'{email} is not a valid email')
30.2
62
0.731788
0
0
0
0
0
0
0
0
64
0.211921
804dac7d85f8d3c3dc9a7cd520102b787d29f816
2,695
py
Python
ooobuild/dyn/rendering/panose_midline.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/rendering/panose_midline.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/rendering/panose_midline.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
40.833333
114
0.735065
822
0.305009
0
0
0
0
0
0
964
0.357699
804fc7ed324daf636f71ef91cd44679bdebec4f6
8,887
py
Python
ligeor/fitting/twogaussian.py
gecheline/ligeor
34c33628741fb7eedd59660672b0557d48dfe4ff
[ "MIT" ]
1
2021-09-21T07:18:14.000Z
2021-09-21T07:18:14.000Z
ligeor/fitting/twogaussian.py
gecheline/ligeor
34c33628741fb7eedd59660672b0557d48dfe4ff
[ "MIT" ]
null
null
null
ligeor/fitting/twogaussian.py
gecheline/ligeor
34c33628741fb7eedd59660672b0557d48dfe4ff
[ "MIT" ]
null
null
null
import numpy as np from ligeor.fitting.sampler import EmceeSampler from ligeor.models.twogaussian import TwoGaussianModel from ligeor.utils.lcutils import * class EmceeSamplerTwoGaussian(EmceeSampler): def __init__(self, filename='', times = [], fluxes = [], sigmas = [], period_init=1, t0_ini...
44.435
131
0.519073
8,728
0.982109
0
0
0
0
0
0
3,202
0.360302
8051fa690a144c0f791b552a283da2ac591cf7d6
2,078
py
Python
pygres/pygres.py
jorgeviz/pygres
acc1db1bc67316f399396998424d3709e624ba0c
[ "MIT" ]
null
null
null
pygres/pygres.py
jorgeviz/pygres
acc1db1bc67316f399396998424d3709e624ba0c
[ "MIT" ]
null
null
null
pygres/pygres.py
jorgeviz/pygres
acc1db1bc67316f399396998424d3709e624ba0c
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import psycopg2 from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT from .errors import PygresError from .model import Model class Pygres(object): conn = None curs = None model = Model config = None q = None def __init__(self, config, **kwargs): self.conf...
28.861111
84
0.57026
1,922
0.924483
0
0
0
0
0
0
278
0.133718
80528ba8b913933d890570ec5f6820eefc0bb674
478
py
Python
bin/rdbox/rdbox_node.py
rdbox-intec/rdbox-middleware
e7469c68ba745187d1db5514494663a3593164df
[ "MIT" ]
4
2019-04-25T06:30:18.000Z
2020-03-21T05:46:38.000Z
bin/rdbox/rdbox_node.py
fukuta-tatsuya-intec/rdbox-middleware
fc1612c655438aaebe5ec289764854b5fa887e09
[ "MIT" ]
21
2020-01-10T02:22:55.000Z
2021-09-27T07:30:46.000Z
bin/rdbox/rdbox_node.py
rdbox-intec/rdbox-middleware
e7469c68ba745187d1db5514494663a3593164df
[ "MIT" ]
5
2019-06-21T06:18:05.000Z
2020-09-18T02:28:25.000Z
#!/usr/bin/env python3 # coding: utf-8 class RdboxNode(object): def __init__(self, hostname, ip, location): self.hostname = hostname self.ip = ip self.location = location def __repr__(self): return "<RdboxNode '%s' : '%s' : '%s'>" % (self.hostname, self.ip, self.location) ...
21.727273
89
0.604603
436
0.912134
0
0
0
0
0
0
69
0.144351
80531b697895746684ba9714966e08d58ab136a8
9,185
py
Python
sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/joywalk_sm.py
sweetie-bot-project/sweetie_bot_flexbe_behaviors
d8511564bb9d6125838b4373263fb68a8b858d70
[ "BSD-3-Clause" ]
null
null
null
sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/joywalk_sm.py
sweetie-bot-project/sweetie_bot_flexbe_behaviors
d8511564bb9d6125838b4373263fb68a8b858d70
[ "BSD-3-Clause" ]
null
null
null
sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/joywalk_sm.py
sweetie-bot-project/sweetie_bot_flexbe_behaviors
d8511564bb9d6125838b4373263fb68a8b858d70
[ "BSD-3-Clause" ]
1
2019-12-23T05:06:26.000Z
2019-12-23T05:06:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
46.624365
170
0.632771
7,945
0.864997
0
0
0
0
0
0
4,130
0.449646
8053471a9ddfed22d7cd5f0e66617f4be8f9c913
789
py
Python
see-escalation-find-all.py
footoredo/pytorch-a2c-ppo-acktr-gail
3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0
[ "MIT" ]
null
null
null
see-escalation-find-all.py
footoredo/pytorch-a2c-ppo-acktr-gail
3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0
[ "MIT" ]
null
null
null
see-escalation-find-all.py
footoredo/pytorch-a2c-ppo-acktr-gail
3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0
[ "MIT" ]
null
null
null
import os from pathlib import Path import joblib import json import numpy as np import sys DIR = "./sync-results/escalation-gw/find-all-50-other-play/" for folder in sorted(Path(os.path.abspath(DIR)).iterdir(), key=os.path.getmtime): try: full_path = os.path.join(DIR, folder, "findings.obj") try: ...
28.178571
81
0.623574
0
0
0
0
0
0
0
0
142
0.179975
8053ce47f182fba88eda0f37079062c6b26f462b
5,697
py
Python
cte/1.xml2txt/app.py
xiabo0816/zhuanli
fe21210b00f7da0cb258c0050deaf475eac128a5
[ "Unlicense" ]
null
null
null
cte/1.xml2txt/app.py
xiabo0816/zhuanli
fe21210b00f7da0cb258c0050deaf475eac128a5
[ "Unlicense" ]
null
null
null
cte/1.xml2txt/app.py
xiabo0816/zhuanli
fe21210b00f7da0cb258c0050deaf475eac128a5
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from lxml import etree import lxml import argparse import os import argparse from tqdm import tqdm import time import threading import regex from io import StringIO, BytesIO import zipfile def get_args_parser(): parser = argparse.ArgumentParser(description='XML application parser') pa...
32.554286
108
0.585922
528
0.091619
0
0
0
0
0
0
930
0.161374
8055c84498ba5381887804f95d4c2b79522549aa
1,057
py
Python
release/stubs.min/System/Windows/Controls/__init___parts/InkCanvasClipboardFormat.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Windows/Controls/__init___parts/InkCanvasClipboardFormat.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Windows/Controls/__init___parts/InkCanvasClipboardFormat.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class InkCanvasClipboardFormat(Enum,IComparable,IFormattable,IConvertible): """ Specifies the formats that an System.Windows.Controls.InkCanvas will accept from the Clipboard. enum InkCanvasClipboardFormat,values: InkSerializedFormat (0),Text (1),Xaml (2) """ def __eq__(self,*args): """ x.__eq__(y) ...
28.567568
215
0.682119
1,053
0.996216
0
0
0
0
0
0
543
0.513718
80565e10fd9e73420aa3d1a44436994e9aca11f5
1,858
py
Python
tests/correctly_installed.py
lifengjin/transition-amr-parser
ec1f854fda520de97fc4e4c5f5e03133aab0560f
[ "Apache-2.0" ]
1
2021-07-08T08:24:21.000Z
2021-07-08T08:24:21.000Z
tests/correctly_installed.py
lifengjin/transition-amr-parser
ec1f854fda520de97fc4e4c5f5e03133aab0560f
[ "Apache-2.0" ]
null
null
null
tests/correctly_installed.py
lifengjin/transition-amr-parser
ec1f854fda520de97fc4e4c5f5e03133aab0560f
[ "Apache-2.0" ]
1
2021-07-08T08:24:22.000Z
2021-07-08T08:24:22.000Z
import torch import subprocess from torch.utils.cpp_extension import CUDAExtension def check_cuda_torch_binary_vs_bare_metal(): # command line CUDA cuda_dir = torch.utils.cpp_extension.CUDA_HOME cuda_call = [cuda_dir + "/bin/nvcc", "-V"] raw_output = subprocess.check_output(cuda_call, universal_newli...
32.034483
93
0.667922
0
0
0
0
0
0
0
0
491
0.264263
8056f250d94ce7f3866f728e1e595d1a463b4b91
437
py
Python
publications/migrations/0015_auto_20201015_0250.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
publications/migrations/0015_auto_20201015_0250.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
publications/migrations/0015_auto_20201015_0250.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2020-10-14 23:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('publications', '0014_auto_20201002_1350'), ] operations = [ migrations.AlterField( model_name='stgknowledgeproducttranslation', ...
23
73
0.633867
344
0.787185
0
0
0
0
0
0
132
0.302059
80570e057a980aa667e5b87368933ad6ee43efcd
6,120
py
Python
DeblurGANv2/project_lib/losses.py
gcinbis/deep-generative-models-spring20
d377bd63d5e79539477cca47c71462e5cc12adfa
[ "MIT" ]
18
2020-07-06T10:47:26.000Z
2021-05-30T11:43:17.000Z
DeblurGANv2/project_lib/losses.py
gcinbis/deep-generative-models-course-projects
d377bd63d5e79539477cca47c71462e5cc12adfa
[ "MIT" ]
1
2022-03-12T00:39:12.000Z
2022-03-12T00:39:12.000Z
DeblurGANv2/project_lib/losses.py
gcinbis/deep-generative-models-spring20
d377bd63d5e79539477cca47c71462e5cc12adfa
[ "MIT" ]
2
2020-07-13T20:46:44.000Z
2020-10-01T13:15:25.000Z
import torch import torch.nn as nn import torchvision.models as models import torchvision.transforms as transforms import random class ScoreSamples(): """ Keeps the scores in lists of a predefined size to take inner expectations in the Discriminator and generator adverserial losses. """ def __...
36.213018
151
0.658007
2,090
0.341503
0
0
0
0
0
0
2,502
0.408824
8058352e8e1025b9c39b593adc41b94758599897
1,102
py
Python
expense/expense_entry.py
thinkstack-co/ConnectPyse
ded8b426250aee352598f33ad08b7bcc3c6a3017
[ "MIT" ]
23
2017-01-24T05:44:05.000Z
2021-11-26T17:08:01.000Z
expense/expense_entry.py
thinkstack-co/ConnectPyse
ded8b426250aee352598f33ad08b7bcc3c6a3017
[ "MIT" ]
10
2017-01-14T21:11:10.000Z
2019-06-16T21:10:29.000Z
expense/expense_entry.py
thinkstack-co/ConnectPyse
ded8b426250aee352598f33ad08b7bcc3c6a3017
[ "MIT" ]
16
2017-01-24T02:28:19.000Z
2021-07-13T17:23:22.000Z
from ..cw_model import CWModel class ExpenseEntry(CWModel): def __init__(self, json_dict=None): self.id = None # (Integer) self.company = None # **(CompanyReference) self.chargeToId = None # (Integer) self.chargeToType = None # **(Enum) self.type = None # *(...
38
64
0.587114
1,064
0.965517
0
0
0
0
0
0
348
0.315789
8058bafda972807f55fe861789d44c2fc4fc0172
3,255
py
Python
PPAS_agent/dqn_agent/metrics.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
multi_agents/dqn_agent/metrics.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
multi_agents/dqn_agent/metrics.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
# !/usr/bin/hfo_env python3 # encoding utf-8 from collections import namedtuple """ This module is used to test the agent previous trained """ EpisodeMetrics = namedtuple( 'EpisodeMetrics', ['touched_ball', 'passed_ball', 'scored_goal'] ) class GameMetrics: def __init__(self): self.num_ep = 0 ...
33.90625
79
0.634101
3,006
0.923502
0
0
0
0
0
0
483
0.148387
8058d1cb85bb6ca5a109da8af0c99c070a0a0578
600
py
Python
cubework/module/_entry_module.py
kurisusnowdeng/Cubework
56c0d35f87765efc8f2b6d47a4ccea6f2ec626aa
[ "Apache-2.0" ]
null
null
null
cubework/module/_entry_module.py
kurisusnowdeng/Cubework
56c0d35f87765efc8f2b6d47a4ccea6f2ec626aa
[ "Apache-2.0" ]
null
null
null
cubework/module/_entry_module.py
kurisusnowdeng/Cubework
56c0d35f87765efc8f2b6d47a4ccea6f2ec626aa
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn class CubeModule(nn.Module): def __init__(self, module: nn.Module, **kwargs): super().__init__() # copy values self.__dict__ = module.__dict__.copy() # copy methods for name, attr in module.__class__.__dict__.items(): if name not in ["__ini...
31.578947
70
0.598333
575
0.958333
0
0
0
0
0
0
46
0.076667
8059c8bced6969b16c10dee35527aef3f9e904b2
2,607
py
Python
ooobuild/lo/frame/desktop_task.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/frame/desktop_task.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/frame/desktop_task.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
28.648352
124
0.693517
1,375
0.527426
0
0
799
0.306483
0
0
1,461
0.560414
8059d95151962aa5136040ec15fa0c5096751c9d
83,265
py
Python
sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
5
2015-04-16T08:36:17.000Z
2017-05-12T17:20:12.000Z
sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
null
null
null
sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
4
2015-03-19T14:39:51.000Z
2019-01-23T08:22:55.000Z
# Copyright (C) 2005, 2006, 2007 Michael Bayer mike_mp@zzzcomputing.com # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Define the base components of SQL expression trees.""" from sqlalchemy import util, exceptions, logging from sqla...
34.421248
253
0.628752
69,333
0.832679
219
0.00263
0
0
0
0
30,543
0.366817
3374f0de05ac6c8c99f55e6ea413524eae8ce723
19,218
py
Python
horizomer/benchmark/reformat_input.py
biocore/horizomer
6b30d7f3b79f4f4ce7cc6502f5b820c9b53ab52e
[ "BSD-3-Clause" ]
8
2017-10-17T12:27:07.000Z
2021-08-09T14:34:05.000Z
horizomer/benchmark/reformat_input.py
biocore/WGS-HGT
6b30d7f3b79f4f4ce7cc6502f5b820c9b53ab52e
[ "BSD-3-Clause" ]
59
2015-09-11T22:22:39.000Z
2017-05-30T18:31:15.000Z
horizomer/benchmark/reformat_input.py
biocore/WGS-HGT
6b30d7f3b79f4f4ce7cc6502f5b820c9b53ab52e
[ "BSD-3-Clause" ]
9
2015-09-10T17:55:22.000Z
2017-02-22T05:47:13.000Z
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2015--, The Horizomer Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ----------------------...
33.834507
79
0.584972
0
0
0
0
3,937
0.20486
0
0
9,570
0.497971
337678c4ca17db22b704fe8316b0715ec39a1903
11,318
py
Python
nbs/17_callback.tracker.py
huangyingw/fastai_fastai
68ff76a21b2f70f44fb91885abcb73c1c213ec1a
[ "Apache-2.0" ]
1
2022-02-06T22:11:10.000Z
2022-02-06T22:11:10.000Z
nbs/17_callback.tracker.py
huangyingw/fastai_fastai
68ff76a21b2f70f44fb91885abcb73c1c213ec1a
[ "Apache-2.0" ]
null
null
null
nbs/17_callback.tracker.py
huangyingw/fastai_fastai
68ff76a21b2f70f44fb91885abcb73c1c213ec1a
[ "Apache-2.0" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py # split_at_heading: true # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.6.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ...
38.107744
448
0.690758
5,356
0.473228
0
0
3,202
0.282912
0
0
3,992
0.352712
3377756caf446ee92705d76468e482dd3c3c56ac
110
py
Python
contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py
endothermicdev/lightning
c7d359baf455e5260dc5d126b05211279e186ef8
[ "MIT" ]
null
null
null
contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py
endothermicdev/lightning
c7d359baf455e5260dc5d126b05211279e186ef8
[ "MIT" ]
null
null
null
contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py
endothermicdev/lightning
c7d359baf455e5260dc5d126b05211279e186ef8
[ "MIT" ]
null
null
null
__base_version__ = "1.0" __post_version__ = "222" __gitversion__ = "f1c797df2966237244527c1c6343dbe9bc765342"
27.5
59
0.827273
0
0
0
0
0
0
0
0
52
0.472727
3377a3bd3f3d919bab7ca9757f1c2cbb6e8c4e7b
8,248
py
Python
MCTS.py
arijitnoobstar/OnitamaDeepRL
e561b22fe7728f51c1f1a078dfb19aa008bf010e
[ "Apache-2.0" ]
3
2021-05-16T08:43:09.000Z
2021-05-31T16:23:43.000Z
MCTS.py
mion666459/OnitamaAI
e561b22fe7728f51c1f1a078dfb19aa008bf010e
[ "Apache-2.0" ]
null
null
null
MCTS.py
mion666459/OnitamaAI
e561b22fe7728f51c1f1a078dfb19aa008bf010e
[ "Apache-2.0" ]
1
2021-05-28T10:07:50.000Z
2021-05-28T10:07:50.000Z
from std_imports import * # random policy function used for MCTS def randomPolicy(state): while not state.isTerminal(): try: action = random.choice(state.getPossibleActions()) except IndexError: state.show_game_state raise Exception("Non-terminal state has no possible action...
36.334802
148
0.615907
7,311
0.886397
0
0
0
0
0
0
1,721
0.208657
3377ab4d402bece3c10bbb704ed335b82b661b18
614
py
Python
plotting/plot_BPT.py
griffij/QuakeRates
70069bb271a1987e72fcbdf3aa0c0a8a79591580
[ "Apache-2.0" ]
null
null
null
plotting/plot_BPT.py
griffij/QuakeRates
70069bb271a1987e72fcbdf3aa0c0a8a79591580
[ "Apache-2.0" ]
null
null
null
plotting/plot_BPT.py
griffij/QuakeRates
70069bb271a1987e72fcbdf3aa0c0a8a79591580
[ "Apache-2.0" ]
null
null
null
"""Plot some basic BPT distributions """ import os, sys from matplotlib import pyplot as plt import numpy as np from scipy.stats import expon, gamma, weibull_min, invgauss mu = 100 alphas = [ 0.5, 1., 2., 5., 10.] #alpha = 1 x_vals = np.arange(0, 4*mu) # Plot for a range of alpha values for alpha in alphas: bpt = ...
24.56
59
0.710098
0
0
0
0
0
0
0
0
143
0.232899
3377d7cced7a6e1a455c13090ea445c75d6794d8
2,125
py
Python
vang/tfs/create_release_definition.py
mattiasl/scripts
e9245ce432b0dd5743506654ada52e017d0b6be0
[ "Apache-2.0" ]
6
2018-01-31T09:59:18.000Z
2020-06-09T08:55:22.000Z
vang/tfs/create_release_definition.py
mattiasl/scripts
e9245ce432b0dd5743506654ada52e017d0b6be0
[ "Apache-2.0" ]
null
null
null
vang/tfs/create_release_definition.py
mattiasl/scripts
e9245ce432b0dd5743506654ada52e017d0b6be0
[ "Apache-2.0" ]
2
2018-11-19T09:56:46.000Z
2020-06-08T10:53:11.000Z
#!/usr/bin/env python3 import argparse from json import dumps from sys import argv from vang.tfs.api import call from vang.tfs.definition_utils import get_definition, get_definition_name def get_release_definition(template, project, repo, branch, comment=None): return get_definition(template, ...
34.836066
114
0.632
0
0
0
0
0
0
0
0
546
0.256941
33785c10eb7a2f5238f0edbd3dfe035be9261d0c
341
py
Python
torchio/transforms/intensity_transform.py
soumickmj/torchio
5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c
[ "MIT" ]
1
2021-01-22T21:49:30.000Z
2021-01-22T21:49:30.000Z
torchio/transforms/intensity_transform.py
soumickmj/torchio
5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c
[ "MIT" ]
null
null
null
torchio/transforms/intensity_transform.py
soumickmj/torchio
5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c
[ "MIT" ]
null
null
null
from .transform import Transform class IntensityTransform(Transform): """Transform that modifies voxel intensities only.""" @staticmethod def get_images(sample): return sample.get_images(intensity_only=True) @staticmethod def get_images_dict(sample): return sample.get_images_dict(...
26.230769
58
0.741935
305
0.894428
0
0
200
0.58651
0
0
53
0.155425
3378ef303c12c8524e4216c752fb54e286c0e239
1,483
py
Python
ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-06T18:35:57.000Z
2021-04-30T07:16:42.000Z
ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-05T13:39:28.000Z
2021-12-09T04:37:30.000Z
ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
8
2020-09-25T10:07:15.000Z
2022-03-11T06:26:30.000Z
#!/usr/bin/env python # To use the API, copy these 4 lines on each Python file you create from niryo_one_python_api.niryo_one_api import * import rospy import time rospy.init_node('niryo_one_example_python_api') print "--- Start" n = NiryoOne() try: # Calibrate robot first n.calibrate_auto() print "Cal...
24.716667
67
0.708024
0
0
0
0
0
0
0
0
523
0.352664
33792464f4f074a587385ef57184dc0702fd16c5
1,560
py
Python
lib/coloraide/spaces/din99o_lch.py
CodeByZach/sublime_color_helper
9d881e1f036c886fedd94b026735c4727b7a34d3
[ "MIT" ]
14
2021-12-07T02:40:08.000Z
2022-01-24T19:38:17.000Z
lib/coloraide/spaces/din99o_lch.py
CodeByZach/sublime_color_helper
9d881e1f036c886fedd94b026735c4727b7a34d3
[ "MIT" ]
null
null
null
lib/coloraide/spaces/din99o_lch.py
CodeByZach/sublime_color_helper
9d881e1f036c886fedd94b026735c4727b7a34d3
[ "MIT" ]
null
null
null
"""Din99o Lch class.""" from ..spaces import RE_DEFAULT_MATCH from .lch import Lch from .. import util import math import re from ..util import MutableVector ACHROMATIC_THRESHOLD = 0.0000000002 def lch_to_lab(lch: MutableVector) -> MutableVector: """Din99o Lch to lab.""" l, c, h = lch h = util.no_nan(h)...
24
100
0.627564
561
0.359615
0
0
302
0.19359
0
0
439
0.28141
3379417d5fd88f05297c00144ec0950b728cbbcd
949
py
Python
data-prep/download_weather_data.py
DanteLore/tfl-cycles
21a1be93824fbbe4cfadd182755b7979ffbf84f0
[ "MIT" ]
1
2020-03-25T11:18:22.000Z
2020-03-25T11:18:22.000Z
data-prep/download_weather_data.py
DanteLore/tfl-cycles
21a1be93824fbbe4cfadd182755b7979ffbf84f0
[ "MIT" ]
null
null
null
data-prep/download_weather_data.py
DanteLore/tfl-cycles
21a1be93824fbbe4cfadd182755b7979ffbf84f0
[ "MIT" ]
null
null
null
import os import requests import re HEATHROW_URL= "https://www.metoffice.gov.uk/pub/data/weather/uk/climate/stationdata/heathrowdata.txt" WEATHER_DIR = "../data/weather" HEATHROW_FILE = WEATHER_DIR + "/heathrow.csv" HEADER ="year,month,maximum_temp,minimum_temp,days_of_air_frost,total_rainfall,total_sunshine\n" if __...
35.148148
116
0.635406
0
0
0
0
0
0
0
0
367
0.386723
3379ae605f4fe6dee7ca30fd5cb645c46ab4b219
4,277
py
Python
scripts/real_data_novility.py
vafaei-ar/pymce
c01197b74fb515a0d6e400310c4d5c0ffad0f3c9
[ "BSD-3-Clause" ]
16
2019-09-11T12:53:15.000Z
2021-12-09T12:07:51.000Z
scripts/real_data_novility.py
vafaei-ar/pymce
c01197b74fb515a0d6e400310c4d5c0ffad0f3c9
[ "BSD-3-Clause" ]
null
null
null
scripts/real_data_novility.py
vafaei-ar/pymce
c01197b74fb515a0d6e400310c4d5c0ffad0f3c9
[ "BSD-3-Clause" ]
3
2019-12-12T08:55:44.000Z
2021-08-23T04:37:53.000Z
# coding: utf-8 # In[1]: import drama as drm import numpy as np import matplotlib.pylab as plt from matplotlib import gridspec from sklearn.metrics import roc_auc_score import os import glob import h5py import scipy.io as sio get_ipython().magic(u'matplotlib inline') # In[12]: fils = sorted(glob.glob('../data...
28.324503
106
0.588964
0
0
0
0
0
0
0
0
1,669
0.390227
337bbbb38e7729936c71cb97a400bd904bc7035f
1,362
py
Python
podcasts/models.py
bycristhian/vurapy
12e35fb9373131181b1b8d4d5701fbbf4231dab8
[ "MIT" ]
null
null
null
podcasts/models.py
bycristhian/vurapy
12e35fb9373131181b1b8d4d5701fbbf4231dab8
[ "MIT" ]
null
null
null
podcasts/models.py
bycristhian/vurapy
12e35fb9373131181b1b8d4d5701fbbf4231dab8
[ "MIT" ]
null
null
null
# Django from django.db import models # Models from django.contrib.auth.models import User class Tag(models.Model): name = models.CharField(max_length=20, unique=True, blank=False, null=False) is_active = models.BooleanField(default=True) created_at = models.DateTimeField(auto_now_add=True) updated...
35.842105
94
0.763583
1,260
0.92511
0
0
0
0
0
0
100
0.073421
337bbc68170b4d83cd1dddafc374df6001cdf9ef
2,776
py
Python
server/receiver.py
ZeroxTM/IDEA-HMK-Cryptor-1
85dfa02aa1b941dd0245a27c46ddf02ef0fad1fa
[ "MIT" ]
null
null
null
server/receiver.py
ZeroxTM/IDEA-HMK-Cryptor-1
85dfa02aa1b941dd0245a27c46ddf02ef0fad1fa
[ "MIT" ]
null
null
null
server/receiver.py
ZeroxTM/IDEA-HMK-Cryptor-1
85dfa02aa1b941dd0245a27c46ddf02ef0fad1fa
[ "MIT" ]
null
null
null
__author__ = "Adam Mahameed" __copyright__ = "2020 HMK-IDEA-Cryptor" __credits__ = ["Adam Mahameed"] __license__ = "MIT" __email__ = "adam.mah315@gmail.com" from Cryptors.DSA import DSA from Cryptors.HMKnapsack import HMKnapsack from pckgIDEA.IDEA import IDEA KEY_SIZE = 128 class Receiver(): def __init__(self, ...
38.027397
114
0.615274
2,496
0.899135
0
0
0
0
0
0
1,094
0.394092
337cb864f978111a5b51a0b099bf07d31bd9e99e
1,562
py
Python
apis_server/decorators.py
ilyde-platform/ilyde-apis
cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04
[ "Apache-2.0" ]
null
null
null
apis_server/decorators.py
ilyde-platform/ilyde-apis
cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04
[ "Apache-2.0" ]
null
null
null
apis_server/decorators.py
ilyde-platform/ilyde-apis
cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # # Copyright (c) 2020-2021 Hopenly srl. # # This file is part of Ilyde. # # 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 #...
31.24
106
0.685659
0
0
0
0
0
0
0
0
826
0.528809
337f01f7fab004df576400a43f1c3869a2c046af
557
py
Python
rclpy/examples_rclpy_topics/examples_rclpy_topics/subscriber.py
AtsukiYokota/examples_rclpy
51c8d10623672ab91c88be3fd699e92fc0c07c41
[ "Apache-2.0" ]
null
null
null
rclpy/examples_rclpy_topics/examples_rclpy_topics/subscriber.py
AtsukiYokota/examples_rclpy
51c8d10623672ab91c88be3fd699e92fc0c07c41
[ "Apache-2.0" ]
null
null
null
rclpy/examples_rclpy_topics/examples_rclpy_topics/subscriber.py
AtsukiYokota/examples_rclpy
51c8d10623672ab91c88be3fd699e92fc0c07c41
[ "Apache-2.0" ]
null
null
null
import rclpy from rclpy.node import Node from std_msgs.msg import String class MinimalSubscriber(Node): def __init__(self): super().__init__('minimal_subscriber') self.subscription = self.create_subscription( String, 'chatter', self.listener_callback) def listener_callback(self, ...
21.423077
54
0.694794
290
0.520646
0
0
0
0
0
0
39
0.070018
337f1b5807ffa83c345e8dafa91086d6a8ed3380
719
py
Python
py/2015/day10/aoc_day_10.py
cs-cordero/advent-of-code
614b8f78b43c54ef180a7dc411a0d1366a62944f
[ "MIT" ]
null
null
null
py/2015/day10/aoc_day_10.py
cs-cordero/advent-of-code
614b8f78b43c54ef180a7dc411a0d1366a62944f
[ "MIT" ]
null
null
null
py/2015/day10/aoc_day_10.py
cs-cordero/advent-of-code
614b8f78b43c54ef180a7dc411a0d1366a62944f
[ "MIT" ]
2
2019-12-01T15:33:27.000Z
2020-12-14T05:37:23.000Z
from typing import Generator, Tuple def break_string(string: str) -> Generator[Tuple[int, int], None, None]: i = 0 while i < len(string): count = 0 current_digit = string[i] while i < len(string) and string[i] == current_digit: count += 1 i += 1 yield (s...
26.62963
72
0.617524
0
0
312
0.433936
0
0
0
0
63
0.087622
337f84cd9b42ebbb50233035031025d016c02ef3
676
py
Python
app/main/forms.py
Charles-Ndugire/personal-blog
a56a80ea7602b713d08724d33636bf4e69fc9b06
[ "MIT" ]
null
null
null
app/main/forms.py
Charles-Ndugire/personal-blog
a56a80ea7602b713d08724d33636bf4e69fc9b06
[ "MIT" ]
4
2021-06-08T22:09:18.000Z
2022-03-12T00:44:04.000Z
app/main/forms.py
Charles-Ndugire/personal-blog
a56a80ea7602b713d08724d33636bf4e69fc9b06
[ "MIT" ]
1
2020-12-17T20:22:39.000Z
2020-12-17T20:22:39.000Z
from . import main from flask_wtf import FlaskForm from wtforms import SubmitField,StringField,TextAreaField,SelectField from wtforms.validators import Required from ..models import Article,Comment class ArticleUploadForm(FlaskForm): article = TextAreaField('Article',validators=[Required()]) category = StringF...
35.578947
77
0.761834
472
0.698225
0
0
0
0
0
0
86
0.127219
337f8be8a863ba3c83c574bea3199d4c04528548
2,526
py
Python
russian_roulette.py
Study-Repos-Forks/Python-1
49353458404e5cb0e01deb0497c8d3cdc5e2e73f
[ "MIT" ]
null
null
null
russian_roulette.py
Study-Repos-Forks/Python-1
49353458404e5cb0e01deb0497c8d3cdc5e2e73f
[ "MIT" ]
null
null
null
russian_roulette.py
Study-Repos-Forks/Python-1
49353458404e5cb0e01deb0497c8d3cdc5e2e73f
[ "MIT" ]
null
null
null
""" author: Ataba29 the code is just a russian roulette game against the computer """ from random import randrange import time def main(): # create the gun and set the bullet numOfRounds = 6 gun = [0, 0, 0, 0, 0, 0] bullet = randrange(0, 6) gun[bullet] = 1 player = False # is player ...
26.3125
96
0.511876
0
0
0
0
0
0
0
0
1,084
0.429137
337f94e07f01f382312d5a5834d2533c67169194
2,318
py
Python
entrepot/models.py
HunterPen/PmpApi
c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd
[ "Apache-2.0" ]
null
null
null
entrepot/models.py
HunterPen/PmpApi
c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd
[ "Apache-2.0" ]
null
null
null
entrepot/models.py
HunterPen/PmpApi
c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd
[ "Apache-2.0" ]
null
null
null
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey has `on_delete` set to the desired behavior. # * Remove `managed = False` lines if ...
32.194444
104
0.710095
1,730
0.746333
0
0
0
0
0
0
570
0.245902
33812b3b1b19a16b3d3f2a404fb13f942417dd99
500
py
Python
tests/page_template/test_page_template.py
Crown-Commercial-Service/govuk-frontend-jinja
ddbe208a976ffa4ca330881c506c5200dfa69851
[ "MIT" ]
7
2019-09-25T13:59:35.000Z
2021-06-30T11:13:22.000Z
tests/page_template/test_page_template.py
Crown-Commercial-Service/govuk-frontend-jinja
ddbe208a976ffa4ca330881c506c5200dfa69851
[ "MIT" ]
23
2019-08-20T10:52:49.000Z
2021-06-02T14:21:16.000Z
tests/page_template/test_page_template.py
Crown-Commercial-Service/govuk-frontend-jinja
ddbe208a976ffa4ca330881c506c5200dfa69851
[ "MIT" ]
6
2019-08-29T14:02:25.000Z
2021-04-10T20:20:23.000Z
import pytest import govuk_frontend_jinja @pytest.fixture def env(loader): return govuk_frontend_jinja.Environment( # for some reason the page_template tests only pass with trim_blocks=False loader=loader, autoescape=True, keep_trailing_newline=True, trim_blocks=False, ...
23.809524
82
0.716
0
0
0
0
305
0.61
0
0
74
0.148
33821cb4b0dc7fb87562a852e4ad10758b596f2a
1,044
py
Python
pip_services3_expressions-3.3.4/test/calculator/functions/test_FunctionCollection.py
pip-services3-python/pip-services3-expressions-python
4ea237fbbba32e62f920e6be3bd48e6cc02184e5
[ "MIT" ]
null
null
null
pip_services3_expressions-3.3.4/test/calculator/functions/test_FunctionCollection.py
pip-services3-python/pip-services3-expressions-python
4ea237fbbba32e62f920e6be3bd48e6cc02184e5
[ "MIT" ]
null
null
null
pip_services3_expressions-3.3.4/test/calculator/functions/test_FunctionCollection.py
pip-services3-python/pip-services3-expressions-python
4ea237fbbba32e62f920e6be3bd48e6cc02184e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pip_services3_expressions.calculator.functions.DelegatedFunction import DelegatedFunction from pip_services3_expressions.calculator.functions.FunctionCollection import FunctionCollection from pip_services3_expressions.variants.Variant import Variant class TestFunctionCollection: def...
29.828571
96
0.700192
761
0.728927
0
0
0
0
0
0
53
0.050766
33879c2c16b04f8a3a3b96376e81baf0112fecb9
24,698
py
Python
python/swagger_client/models/vehicle.py
chenxy285/directions-api-clients
2abbeb16a23f4dc5aaaaff45d17750f2b65e6502
[ "Apache-2.0" ]
26
2017-06-15T17:30:09.000Z
2021-12-04T10:45:30.000Z
python/swagger_client/models/vehicle.py
chenxy285/directions-api-clients
2abbeb16a23f4dc5aaaaff45d17750f2b65e6502
[ "Apache-2.0" ]
34
2017-05-24T05:50:04.000Z
2020-12-01T20:34:59.000Z
python/swagger_client/models/vehicle.py
chenxy285/directions-api-clients
2abbeb16a23f4dc5aaaaff45d17750f2b65e6502
[ "Apache-2.0" ]
45
2017-05-24T04:02:09.000Z
2022-01-18T00:21:39.000Z
# coding: utf-8 """ GraphHopper Directions API With the [GraphHopper Directions API](https://www.graphhopper.com/products/) you can integrate A-to-B route planning, turn-by-turn navigation, route optimization, isochrone calculations and other tools in your application. The GraphHopper Directions API consist...
51.886555
8,986
0.661916
15,300
0.619483
0
0
10,252
0.415094
0
0
18,057
0.731112
3387b51e3563f6d6eb4cedcfdeb3889d5b8b22d7
134,317
py
Python
pysnmp_mibs/Printer-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2017-04-21T13:48:08.000Z
2022-01-06T19:42:52.000Z
pysnmp_mibs/Printer-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
1
2020-05-05T16:42:25.000Z
2020-05-05T16:42:25.000Z
pysnmp_mibs/Printer-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2020-02-08T20:28:49.000Z
2021-09-14T13:36:46.000Z
# # PySNMP MIB module Printer-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/Printer-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:12:48 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( Obje...
234.001742
10,859
0.735603
15,182
0.113031
0
0
0
0
0
0
73,429
0.546684
3388d44d8af3d576a8808c5daeaa2f3d405dd800
183
py
Python
builder/Builder Pattern/BeforeBuilder3/__main__.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
builder/Builder Pattern/BeforeBuilder3/__main__.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
builder/Builder Pattern/BeforeBuilder3/__main__.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
from computer import Computer from mycomputer import MyComputer builder = MyComputer() builder.build_computer() computer = builder.get_computer() computer.display()
14.076923
34
0.743169
0
0
0
0
0
0
0
0
0
0
3389cc520bcd5c3160afa507c80f7f8499a2e5ea
3,563
py
Python
tutorials/mechanisms/tutorial_michaelismenten.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
13
2020-11-05T10:59:13.000Z
2022-03-21T01:38:31.000Z
tutorials/mechanisms/tutorial_michaelismenten.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
4
2022-01-27T10:23:40.000Z
2022-03-10T18:16:06.000Z
tutorials/mechanisms/tutorial_michaelismenten.py
AQ18/skimpy
435fc50244f2ca815bbb39d525a82a4692f5c0ac
[ "Apache-2.0" ]
6
2020-08-04T17:01:33.000Z
2022-03-21T01:38:32.000Z
# -*- coding: utf-8 -*- """ .. module:: skimpy :platform: Unix, Windows :synopsis: Simple Kinetic Models in Python .. moduleauthor:: SKiMPy team [---------] Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland Licens...
30.982609
89
0.657311
0
0
0
0
0
0
0
0
1,136
0.318832
338a7321f8c4550125a8a900551b7bd850eac6f3
981
py
Python
WebScrapping/makePrelimTable.py
marcsze/pythonPrograms
b2fdc42f73a83948debdb4049f3b715854005579
[ "MIT" ]
null
null
null
WebScrapping/makePrelimTable.py
marcsze/pythonPrograms
b2fdc42f73a83948debdb4049f3b715854005579
[ "MIT" ]
null
null
null
WebScrapping/makePrelimTable.py
marcsze/pythonPrograms
b2fdc42f73a83948debdb4049f3b715854005579
[ "MIT" ]
null
null
null
#! Python def getInput(datafile): links = open(datafile, 'r') dataTable = [] for line in links: goodLine = line.strip('\n') dataTable.append(goodLine) links.close() return dataTable def createOutput(dataTable): finalTable = {} namesfile = [] x = 1 for i, data in enumerate(dataTable): temppoint =...
18.166667
59
0.611621
0
0
0
0
0
0
0
0
91
0.092762
338ab460ecb80227bb2b6281bfef9dd2c57a9757
619
py
Python
UVa Online Judge/v104/10433.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
1
2021-12-08T08:58:43.000Z
2021-12-08T08:58:43.000Z
UVa Online Judge/v104/10433.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v104/10433.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 10433.py # Description: UVa Online Judge - 10433 # ============================================================================= while True:...
28.136364
79
0.421648
0
0
0
0
0
0
0
0
364
0.588045
338ae74dca21eed87e61216b0a5b0cf376536b58
1,317
py
Python
api/movies.py
saequus/fastapi-movies
a19f1e08058905ea97f9d3a0141419e7859b44ad
[ "MIT" ]
null
null
null
api/movies.py
saequus/fastapi-movies
a19f1e08058905ea97f9d3a0141419e7859b44ad
[ "MIT" ]
null
null
null
api/movies.py
saequus/fastapi-movies
a19f1e08058905ea97f9d3a0141419e7859b44ad
[ "MIT" ]
null
null
null
from fastapi.exceptions import HTTPException from typing import List from api.models import MovieIn, MovieOut from fastapi import APIRouter from api.db import get_all_movies, get_movie, add_movie, update_movie, delete_movie movies_router = APIRouter() @movies_router.get('/', response_model=List[MovieOut]) async def...
29.266667
83
0.740319
0
0
0
0
1,051
0.798026
835
0.634017
70
0.053151
338b47629bf7031021974abb8c0b90be4d32aca3
10,457
py
Python
recursive_knn/evaluation.py
tseste/Recursive-K-Nearest-Neighbors
5e35c643dc8c530102554492c56bfcf05b242298
[ "Apache-2.0" ]
1
2022-02-06T16:08:44.000Z
2022-02-06T16:08:44.000Z
recursive_knn/evaluation.py
tseste/Recursive-K-Nearest-Neighbors
5e35c643dc8c530102554492c56bfcf05b242298
[ "Apache-2.0" ]
null
null
null
recursive_knn/evaluation.py
tseste/Recursive-K-Nearest-Neighbors
5e35c643dc8c530102554492c56bfcf05b242298
[ "Apache-2.0" ]
null
null
null
"""Evaluators for the recommender model.""" import numpy as np import pandas as pd class Evaluator: """RMSE, RMSUE, MAE, MAUE evaluators wrapper.""" def _preprocessing(self, test_file, predictions_file): test = pd.read_csv(test_file) predictions = pd.read_csv(predictions_file) test = ...
49.093897
79
0.573396
10,371
0.991776
0
0
3,903
0.373243
0
0
1,403
0.134168
338be541f52d9a06d46fa449b50022083cb76cc6
7,465
py
Python
SupportFiles/DataStore.py
Esri/ops-server-config
5768cf45eb9e9aeba0f68c15cdd452287b8af746
[ "Apache-2.0" ]
40
2015-01-13T14:15:00.000Z
2021-11-28T21:22:09.000Z
SupportFiles/DataStore.py
Esri/ops-server-config
5768cf45eb9e9aeba0f68c15cdd452287b8af746
[ "Apache-2.0" ]
919
2015-01-13T13:39:01.000Z
2020-05-26T23:00:08.000Z
SupportFiles/DataStore.py
Esri/ops-server-config
5768cf45eb9e9aeba0f68c15cdd452287b8af746
[ "Apache-2.0" ]
19
2015-01-12T23:49:04.000Z
2017-11-03T20:58:47.000Z
#!/usr/bin/env python #------------------------------------------------------------------------------ # Copyright 2014 Esri # 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.apac...
39.08377
166
0.674481
0
0
0
0
0
0
0
0
2,961
0.396651
338c0d32d73279205660cc399fdf740c48040908
180
py
Python
farmers/admin.py
qinyanjuidavid/Raki
2bca3e6a6f410619c699be8c45cd2cad8aa08e0c
[ "MIT" ]
null
null
null
farmers/admin.py
qinyanjuidavid/Raki
2bca3e6a6f410619c699be8c45cd2cad8aa08e0c
[ "MIT" ]
null
null
null
farmers/admin.py
qinyanjuidavid/Raki
2bca3e6a6f410619c699be8c45cd2cad8aa08e0c
[ "MIT" ]
null
null
null
from django.contrib import admin from farmers.models import ProductCategory from accounts.models import Product admin.site.register(ProductCategory) admin.site.register(Product)
22.5
42
0.85
0
0
0
0
0
0
0
0
0
0
338c93743bd1e61375a780236ff4f85d60b88ab1
518
py
Python
python/comTest.py
BYU-ELC/StalkerCar
a5681ea7e4f87ab24a70ac69d89c4f095fa4ab8c
[ "MIT" ]
null
null
null
python/comTest.py
BYU-ELC/StalkerCar
a5681ea7e4f87ab24a70ac69d89c4f095fa4ab8c
[ "MIT" ]
null
null
null
python/comTest.py
BYU-ELC/StalkerCar
a5681ea7e4f87ab24a70ac69d89c4f095fa4ab8c
[ "MIT" ]
1
2021-05-20T22:46:34.000Z
2021-05-20T22:46:34.000Z
import serial import time import struct def pack(value): return struct.pack('>B', value) def main(): ser = serial.Serial("/dev/ttyUSB0", 9600) time.sleep(3) ser.reset_input_buffer() ser.reset_output_buffer() time.sleep(5) val = 100 while True: val = val + 10 ser.write(...
18.5
45
0.559846
0
0
0
0
0
0
0
0
28
0.054054
338c9535d561db6ca060d229712697b437641c99
25
py
Python
tests/__init__.py
Edward-Knight/option6
2948695eb8ff1b22fa2ce9c04f85b736bc98d8c2
[ "MIT" ]
1
2021-02-08T23:20:59.000Z
2021-02-08T23:20:59.000Z
tests/__init__.py
Edward-Knight/option6
2948695eb8ff1b22fa2ce9c04f85b736bc98d8c2
[ "MIT" ]
1
2021-02-09T10:51:23.000Z
2021-02-09T10:51:23.000Z
tests/__init__.py
Edward-Knight/option6
2948695eb8ff1b22fa2ce9c04f85b736bc98d8c2
[ "MIT" ]
null
null
null
"""Tests for option6."""
12.5
24
0.6
0
0
0
0
0
0
0
0
24
0.96
338cf86ec7a4e1f1f89c0508d51c1f20e29168e9
6,865
py
Python
basalt_utils/src/basalt_utils/sb3_compat/cnns.py
viniciusguigo/kairos_minerl_basalt
8f76e1d293dbcf62653ed3f7f326bd090a0af6f0
[ "MIT" ]
26
2021-12-07T09:52:06.000Z
2022-03-13T20:08:44.000Z
basalt_utils/src/basalt_utils/sb3_compat/cnns.py
viniciusguigo/kairos_minerl_basalt
8f76e1d293dbcf62653ed3f7f326bd090a0af6f0
[ "MIT" ]
null
null
null
basalt_utils/src/basalt_utils/sb3_compat/cnns.py
viniciusguigo/kairos_minerl_basalt
8f76e1d293dbcf62653ed3f7f326bd090a0af6f0
[ "MIT" ]
2
2021-12-11T18:29:26.000Z
2022-01-12T18:46:42.000Z
import torch from torch import nn from torchvision.models.resnet import BasicBlock as BasicResidualBlock from stable_baselines3.common.preprocessing import preprocess_obs NETWORK_ARCHITECTURE_DEFINITIONS = { 'BasicCNN': [ {'out_dim': 32, 'kernel_size': 8, 'stride': 4}, {'out_dim': 64, 'ker...
39.682081
115
0.549745
3,312
0.482447
0
0
0
0
0
0
1,957
0.285069
338d83b7371c778eb8246ad2bf2e81f4adcd89e3
540
py
Python
components/samples/policy_sample_hello_world.py
microsoft/Guardinel
bc49c4fe051c3e533064c7043e1cee39cfb25d3a
[ "MIT" ]
2
2022-01-26T07:34:44.000Z
2022-03-29T19:51:45.000Z
components/samples/policy_sample_hello_world.py
microsoft/Guardinel
bc49c4fe051c3e533064c7043e1cee39cfb25d3a
[ "MIT" ]
null
null
null
components/samples/policy_sample_hello_world.py
microsoft/Guardinel
bc49c4fe051c3e533064c7043e1cee39cfb25d3a
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from core.interfaces.task import Task from core.utils.constants import Constants class HelloWorldPolicy(Task): def execute(self, input_entity): if input_entity.project == 'TestProject': return self.result(Constants.FAIL...
25.714286
97
0.709259
382
0.707407
0
0
0
0
0
0
164
0.303704
338f0a2db55b72cc006a86c0ed71c0ac219d23d4
208
py
Python
round-2/02_non-decreasing-digits.py
deshmukhmayur/tcs-codevita6-round1
975bd639b187fa6897d2acf58611a7e793b4072d
[ "MIT" ]
null
null
null
round-2/02_non-decreasing-digits.py
deshmukhmayur/tcs-codevita6-round1
975bd639b187fa6897d2acf58611a7e793b4072d
[ "MIT" ]
null
null
null
round-2/02_non-decreasing-digits.py
deshmukhmayur/tcs-codevita6-round1
975bd639b187fa6897d2acf58611a7e793b4072d
[ "MIT" ]
1
2020-06-11T17:44:22.000Z
2020-06-11T17:44:22.000Z
''' Numbers with non-decreasing digits ''' N = int(input().strip()) i = N while i > 0: digits = list(str(i)) if digits == sorted(digits): print(i) break i -= 1 else: print(i)
13.866667
34
0.528846
0
0
0
0
0
0
0
0
42
0.201923
33905ae40451741da5c46e95e498c29dec6bfbfa
499
py
Python
tests/test_util.py
EJEmmett/functimer
1ab5f996947e0cfa0ac3a62490d451fa7277170b
[ "MIT" ]
1
2021-04-22T05:37:38.000Z
2021-04-22T05:37:38.000Z
tests/test_util.py
EJEmmett/functimer
1ab5f996947e0cfa0ac3a62490d451fa7277170b
[ "MIT" ]
1
2021-05-12T05:24:23.000Z
2021-05-12T05:24:23.000Z
tests/test_util.py
EJEmmett/functimer
1ab5f996947e0cfa0ac3a62490d451fa7277170b
[ "MIT" ]
2
2021-04-22T19:06:47.000Z
2021-05-07T01:05:52.000Z
import pytest from functimer import Unit, get_unit @pytest.mark.parametrize( "_input, expected", [ ("0.2 ns", Unit.NANOSECOND), ("0.2 µs", Unit.MICROSECOND), ("0.2 ms", Unit.MILLISECOND), ("0.2 s", Unit.SECOND), ("0.2 m", Unit.MINUTE), ], ) def test_get_unit(_input...
22.681818
87
0.627255
0
0
0
0
319
0.638
0
0
57
0.114
33913e22e191281d606b63b42006c5680fa71cd5
1,713
py
Python
services/core-api/app/api/now_applications/models/state_of_land.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
services/core-api/app/api/now_applications/models/state_of_land.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
services/core-api/app/api/now_applications/models/state_of_land.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.schema import FetchedValue from sqlalchemy.ext.associationproxy import association_proxy from app.api.utils.models_mixins import Base from app.extensions import db from app.api.constants import * class StateOfLand(Base): __tablename__ = "state_of_la...
42.825
99
0.781086
1,449
0.845884
0
0
0
0
0
0
85
0.049621
33914240e2f08e4c90bdfd6dc63f3281d766e6db
2,118
py
Python
tests/scree_clean.py
scicubator/countGauss
7e744c3de1de342d72ef10da76c0c3b4605d70d4
[ "BSD-2-Clause" ]
null
null
null
tests/scree_clean.py
scicubator/countGauss
7e744c3de1de342d72ef10da76c0c3b4605d70d4
[ "BSD-2-Clause" ]
null
null
null
tests/scree_clean.py
scicubator/countGauss
7e744c3de1de342d72ef10da76c0c3b4605d70d4
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division import numpy as np import pylab as plt from collections import Counter from fcube.fcube import countGauss_projection import pickle def gauss_sim(X, k, alg='gauss'): m, n = np.shape(X) idxT = Counter() if alg == 'gauss': G = np.random.randn(n, k) Z = np.dot(X...
26.148148
77
0.567989
0
0
0
0
0
0
0
0
261
0.123229
33915e863355adfd8513a6d2e255775deb45bc7f
2,151
py
Python
mysite/urls.py
reven-tang/ITMP
8d6686edb19fcc26c9cf1f7e14037f9d38a6e702
[ "BSD-2-Clause" ]
null
null
null
mysite/urls.py
reven-tang/ITMP
8d6686edb19fcc26c9cf1f7e14037f9d38a6e702
[ "BSD-2-Clause" ]
11
2020-06-05T19:40:52.000Z
2022-03-11T23:38:17.000Z
mysite/urls.py
reven-tang/ITMP
8d6686edb19fcc26c9cf1f7e14037f9d38a6e702
[ "BSD-2-Clause" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
38.410714
92
0.694561
0
0
0
0
0
0
0
0
1,240
0.564406
33917df8bb8c466c8ba78fdbfec2000af41b6daa
295
py
Python
output/models/ms_data/particles/particles_r020_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/particles/particles_r020_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/particles/particles_r020_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.particles.particles_r020_xsd.particles_r020 import ( B, R, Doc, ) from output.models.ms_data.particles.particles_r020_xsd.particles_r020_imp import ( ImpElem1, ImpElem2, ) __all__ = [ "B", "R", "Doc", "ImpElem1", "ImpElem2", ]
16.388889
83
0.654237
0
0
0
0
0
0
0
0
31
0.105085
3394941e3268a64cf5954ed9a5f7931c7cb4e39a
502
py
Python
basiclive/core/lims/migrations/0045_auto_20191231_1956.py
znarthur/basic-live
79c194311de05af2e1bb21d1bc8c6c14dda356d0
[ "BSD-3-Clause" ]
null
null
null
basiclive/core/lims/migrations/0045_auto_20191231_1956.py
znarthur/basic-live
79c194311de05af2e1bb21d1bc8c6c14dda356d0
[ "BSD-3-Clause" ]
1
2020-12-03T15:27:09.000Z
2020-12-03T15:27:09.000Z
basiclive/core/lims/migrations/0045_auto_20191231_1956.py
znarthur/basic-live
79c194311de05af2e1bb21d1bc8c6c14dda356d0
[ "BSD-3-Clause" ]
1
2021-09-28T21:06:09.000Z
2021-09-28T21:06:09.000Z
# Generated by Django 3.0.1 on 2020-01-01 01:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lims', '0044_auto_20191231_1805'), ] operations = [ migrations.AlterField( model_name='guide', name='kind', ...
26.421053
172
0.603586
409
0.814741
0
0
0
0
0
0
160
0.318725
33956487d1a7473e4e9523d340a69d50a0cca0c9
5,303
py
Python
replace_text_with_number.py
nacbotics5/web-scraping-with-python
5c5d89d58173ee2e6491283d7d5ba0a413d6961c
[ "BSD-3-Clause" ]
3
2019-07-03T13:10:21.000Z
2020-01-09T10:34:12.000Z
replace_text_with_number.py
nacbotics5/web-scraping-with-python
5c5d89d58173ee2e6491283d7d5ba0a413d6961c
[ "BSD-3-Clause" ]
null
null
null
replace_text_with_number.py
nacbotics5/web-scraping-with-python
5c5d89d58173ee2e6491283d7d5ba0a413d6961c
[ "BSD-3-Clause" ]
1
2021-11-08T18:53:12.000Z
2021-11-08T18:53:12.000Z
#-*-coding:utf8;-*- import re from random import choice class sub(object): """ a simple text to number evaluating class """ def text_to_number(self,text): '''convert a number written as text to its real number equivalence''' text = text.lower() text = re.sub(r"ten", "10", text) ...
44.191667
77
0.51518
5,236
0.987366
0
0
0
0
0
0
1,824
0.343956
3396be485614286e00e27c90f1b8e8de4bc1c013
1,217
py
Python
migrations/0017_auto_20170404_1023.py
gtoffoli/commons-cops
e4b1f556c550e25bb2e6a9eabe8db963877c08d3
[ "MIT" ]
5
2016-11-13T02:41:02.000Z
2020-01-20T10:01:26.000Z
migrations/0017_auto_20170404_1023.py
gtoffoli/commons
8b51a08a37c6d0b38fd4ecde82c20036c2dc168f
[ "MIT" ]
null
null
null
migrations/0017_auto_20170404_1023.py
gtoffoli/commons
8b51a08a37c6d0b38fd4ecde82c20036c2dc168f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('commons', '0016_auto_20170223_1149'), ] operations = [ migrations.AddField( model_name='oer', name='...
40.566667
393
0.646672
1,108
0.910435
0
0
0
0
0
0
493
0.405094
33970f006ffccfa842f4d3fd1b3f034367fb3e03
1,827
py
Python
tools/kv_seek_account_history.py
torquem-ch/silksnake
68794838e8c2be036f158b2a842ba9201be610a3
[ "Apache-2.0" ]
3
2020-09-16T14:47:58.000Z
2021-03-08T13:26:40.000Z
tools/kv_seek_account_history.py
torquem-ch/silksnake
68794838e8c2be036f158b2a842ba9201be610a3
[ "Apache-2.0" ]
null
null
null
tools/kv_seek_account_history.py
torquem-ch/silksnake
68794838e8c2be036f158b2a842ba9201be610a3
[ "Apache-2.0" ]
1
2021-03-15T11:02:08.000Z
2021-03-15T11:02:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """The kv_seek_account_history command allows to query the KV 'History of Accounts' table.""" import argparse import context # pylint: disable=unused-import from silksnake.helpers.dbutils import tables from silksnake.remote import kv_metadata from silksnake.remote import...
44.560976
120
0.732348
0
0
0
0
0
0
0
0
594
0.325123
3397df0d3ea3148ec7c1c0a5b963316189d8f5a8
790
py
Python
fundamentals/sensors/dht11.py
etech-sw/iot-labs
7d5fe9b096ddeca769cbea35119a744cebefacb4
[ "MIT" ]
null
null
null
fundamentals/sensors/dht11.py
etech-sw/iot-labs
7d5fe9b096ddeca769cbea35119a744cebefacb4
[ "MIT" ]
null
null
null
fundamentals/sensors/dht11.py
etech-sw/iot-labs
7d5fe9b096ddeca769cbea35119a744cebefacb4
[ "MIT" ]
null
null
null
#! /usr/bin/env python # Sample Demo program to interface with the DHT11 # Created by Etech-SW import adafruit_dht import board import time dhtSensor = adafruit_dht.DHT11(board.D4) try: while True: try: humidity = dhtSensor.humidity temp_c = dhtSensor.temperature temp_f = temp_c * (9 / 5) + 32 print(...
21.351351
88
0.643038
0
0
0
0
0
0
0
0
238
0.301266
3398a39589c44cb218330153bc2c034273d76a03
18,460
py
Python
bokeh/view_files_bokeh_jupyter.py
alexnaoki/EC-LHC
5efb4647ae88156c94eaa59ab8304a9433155977
[ "MIT" ]
2
2021-04-04T16:04:18.000Z
2021-04-29T18:21:10.000Z
bokeh/view_files_bokeh_jupyter.py
alexnaoki/EC-LHC
5efb4647ae88156c94eaa59ab8304a9433155977
[ "MIT" ]
null
null
null
bokeh/view_files_bokeh_jupyter.py
alexnaoki/EC-LHC
5efb4647ae88156c94eaa59ab8304a9433155977
[ "MIT" ]
null
null
null
import ipywidgets import numpy as np import pandas as pd import pathlib from scipy.stats import linregress from bokeh.io import push_notebook, show, output_notebook from bokeh.plotting import figure from bokeh.models import ColumnDataSource, RangeTool, Circle, Slope, Label, Legend, LegendItem, LinearColorMapper from bo...
53.819242
395
0.605146
18,056
0.978115
0
0
0
0
0
0
5,279
0.28597
339936181114473bdbde659c33ee962d60edd775
1,115
py
Python
plot.py
lcesquivel10/ejercicio-13-14-lcesquivel10-
6756d9f6391c64a2eaf8f97a49088e2b519d783c
[ "MIT" ]
null
null
null
plot.py
lcesquivel10/ejercicio-13-14-lcesquivel10-
6756d9f6391c64a2eaf8f97a49088e2b519d783c
[ "MIT" ]
null
null
null
plot.py
lcesquivel10/ejercicio-13-14-lcesquivel10-
6756d9f6391c64a2eaf8f97a49088e2b519d783c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt DATA_14 = np.loadtxt("Poincare_1.400000.dat") DATA_144 = np.loadtxt("Poincare_1.440000.dat") DATA_1465 = np.loadtxt("Poincare_1.465000.dat") Omega_14 = DATA_14[:,[0,0]] Theta_14 = DATA_14[:,[1,1]] time_14 = DATA_14[:,[2,2]] Omega_144 = DATA_144[:,[0,0]]...
23.229167
48
0.686099
0
0
0
0
0
0
0
0
210
0.188341
339a53d4f6fa3fd905d716af13d24b3cd89cc1f5
614
py
Python
biblib/views/__init__.py
nemanjamart/biblib-service
7c5c57a678b7dffdafd6550cde13d8b3dd610d46
[ "MIT" ]
4
2017-02-25T19:44:42.000Z
2019-06-24T15:43:12.000Z
biblib/views/__init__.py
nemanjamart/biblib-service
7c5c57a678b7dffdafd6550cde13d8b3dd610d46
[ "MIT" ]
107
2015-05-14T17:34:08.000Z
2022-03-29T14:07:33.000Z
biblib/views/__init__.py
nemanjamart/biblib-service
7c5c57a678b7dffdafd6550cde13d8b3dd610d46
[ "MIT" ]
11
2015-05-13T19:22:38.000Z
2022-02-03T17:29:34.000Z
""" Place holder for the views. The current views file would be too large and can get annoying to scroll when reading the source code. """ # Constant definitions DEFAULT_LIBRARY_NAME_PREFIX = 'Untitled Library' DEFAULT_LIBRARY_DESCRIPTION = 'My ADS library' USER_ID_KEYWORD = 'X-Adsws-Uid' from .base_view import BaseVi...
36.117647
77
0.832248
0
0
0
0
0
0
0
0
207
0.337134
339a81a0255bdf3a1fa6edb8c4f81f8eb4bca8c0
101
py
Python
scripts/portal/profession11.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
9
2021-04-26T11:59:29.000Z
2021-12-20T13:15:27.000Z
scripts/portal/profession11.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/portal/profession11.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
6
2021-07-14T06:32:05.000Z
2022-02-06T02:32:56.000Z
# Herb Town (251000000) => Ardentmill sm.setReturnField() sm.setReturnPortal() sm.warp(910001000, 6)
20.2
37
0.752475
0
0
0
0
0
0
0
0
37
0.366337
339ac37d7664917be8732e0d113fe2befac05d73
1,153
py
Python
zxc.py
AlexMcArrow/zxc
061a2be2d9d3b4ab3de3cb19d31ade6e9b8e1f85
[ "MIT" ]
null
null
null
zxc.py
AlexMcArrow/zxc
061a2be2d9d3b4ab3de3cb19d31ade6e9b8e1f85
[ "MIT" ]
null
null
null
zxc.py
AlexMcArrow/zxc
061a2be2d9d3b4ab3de3cb19d31ade6e9b8e1f85
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import os import sys import signal global version, command_list version = "0.0.1" command_list = { 'exit': {'run': 'cl_exit', 'info': 'Exit from ZXC-shell'}, 'help': {'run': 'cl_help', 'info': 'Show help page'} } def cl_exit(): print("ZXC shutdown") sys.exit(0) def cl_he...
20.963636
80
0.585429
0
0
0
0
0
0
0
0
278
0.24111
339ba2d3a11f75dfeb2cbc077b4331d86e729ee7
2,292
py
Python
pubsub/google/cloud/pubsub_v1/subscriber/_helper_threads.py
MatiasApi/CourseBV11
7a291238d5b0879e97acdabe037afaf1b0b7d60b
[ "Apache-2.0" ]
2
2018-02-01T06:30:24.000Z
2018-04-12T15:39:56.000Z
pubsub/google/cloud/pubsub_v1/subscriber/_helper_threads.py
MatiasApi/CourseBV11
7a291238d5b0879e97acdabe037afaf1b0b7d60b
[ "Apache-2.0" ]
7
2020-03-24T15:50:06.000Z
2021-06-08T19:57:39.000Z
pubsub/google/cloud/pubsub_v1/subscriber/_helper_threads.py
MatiasApi/CourseBV11
7a291238d5b0879e97acdabe037afaf1b0b7d60b
[ "Apache-2.0" ]
1
2018-09-19T05:55:27.000Z
2018-09-19T05:55:27.000Z
# Copyright 2017, Google LLC 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 a...
33.217391
76
0.653141
1,325
0.578098
0
0
0
0
0
0
1,621
0.707243
339c1f600d7f4334f4115d74c3d7300b5e97c507
2,918
py
Python
Aulas/Módulos_Python/Pillow-Redimensionando_varias_imagens_automaticamente/app.py
edersonhs/Python3_Basico_Ao_Avancado
a15754a6fbca407d5a7a7ed4116c2710b4635594
[ "MIT" ]
null
null
null
Aulas/Módulos_Python/Pillow-Redimensionando_varias_imagens_automaticamente/app.py
edersonhs/Python3_Basico_Ao_Avancado
a15754a6fbca407d5a7a7ed4116c2710b4635594
[ "MIT" ]
null
null
null
Aulas/Módulos_Python/Pillow-Redimensionando_varias_imagens_automaticamente/app.py
edersonhs/Python3_Basico_Ao_Avancado
a15754a6fbca407d5a7a7ed4116c2710b4635594
[ "MIT" ]
null
null
null
""" Pillow - Módulo python com diversas funções para manipular imagens """ import os from PIL import Image # Importando o Pillow def main(main_images_folder, new_width=800): if not os.path.isdir(main_images_folder): # Levantando exceção caso o dir não exista raise NotADirectoryError(f'{main_images_fol...
42.911765
120
0.594928
0
0
0
0
0
0
0
0
1,257
0.428718
339d7b0cb0ef6b311050d45855e1289f86442cca
47
py
Python
hello.py
ydeath/Hello
147d2f36599cfa45dddf621d5b0a6c43a156d72b
[ "MIT" ]
null
null
null
hello.py
ydeath/Hello
147d2f36599cfa45dddf621d5b0a6c43a156d72b
[ "MIT" ]
null
null
null
hello.py
ydeath/Hello
147d2f36599cfa45dddf621d5b0a6c43a156d72b
[ "MIT" ]
null
null
null
print("你好") def add(): return 1+1 add()
5.875
14
0.510638
0
0
0
0
0
0
0
0
8
0.156863
339de6a85f644b9eef18049dc419cf13ca337bcc
2,244
py
Python
morpheus_core/tests/helpers.py
morpheus-project/morpheus-framework
7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e
[ "MIT" ]
null
null
null
morpheus_core/tests/helpers.py
morpheus-project/morpheus-framework
7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e
[ "MIT" ]
2
2020-12-12T07:49:18.000Z
2021-02-19T06:08:46.000Z
morpheus_core/tests/helpers.py
morpheus-project/morpheus-framework
7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e
[ "MIT" ]
null
null
null
# MIT License # Copyright 2020 Ryan Hausen # # 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, publis...
30.324324
83
0.675579
0
0
0
0
0
0
0
0
1,309
0.583333
339f1367bb18969ae77f9bd1b8128ef049276813
11,456
py
Python
healthSuggestionsServer/healthSuggestions/migrations/0001_initial.py
tiagoaf5/HealthSuggestions
37fb892e2d568e36b62f41b1898329852e3e3d81
[ "Apache-2.0" ]
null
null
null
healthSuggestionsServer/healthSuggestions/migrations/0001_initial.py
tiagoaf5/HealthSuggestions
37fb892e2d568e36b62f41b1898329852e3e3d81
[ "Apache-2.0" ]
null
null
null
healthSuggestionsServer/healthSuggestions/migrations/0001_initial.py
tiagoaf5/HealthSuggestions
37fb892e2d568e36b62f41b1898329852e3e3d81
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='CHVConcept', fields=[ ...
44.23166
123
0.5625
11,318
0.987954
0
0
0
0
0
0
2,148
0.1875
339fba9fb9d40d9ccf925b4d2e2cfb5e809276fb
2,115
py
Python
ni_python_styleguide/_utils/string_helpers.py
ni/ni-python-styleguide
abad986d4fe4c0fbcdce957c5cbc50abcc88937d
[ "MIT" ]
4
2020-07-13T16:10:37.000Z
2020-07-24T01:59:30.000Z
ni_python_styleguide/_utils/string_helpers.py
ni/ni-python-styleguide
abad986d4fe4c0fbcdce957c5cbc50abcc88937d
[ "MIT" ]
6
2020-07-07T21:04:21.000Z
2020-07-27T20:51:13.000Z
ni_python_styleguide/_utils/string_helpers.py
ni/ni-python-styleguide
abad986d4fe4c0fbcdce957c5cbc50abcc88937d
[ "MIT" ]
2
2020-07-07T20:56:43.000Z
2020-07-27T12:24:00.000Z
import pathlib from typing import List, Optional import ni_python_styleguide._utils class InMultiLineStringChecker: """Provide utility methods to decide if line is within a multiline string.""" def __init__(self, error_file: Optional[str] = None, *_, lines: Optional[List[str]] = None): """Cache off ...
36.465517
99
0.615603
2,027
0.958392
0
0
225
0.106383
0
0
520
0.245863
339fd5019bcf3e66f6989dfa1432c8cae6fca4a6
335
py
Python
Chapter 01/Chap01_Example1.128.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.128.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.128.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
x = [1,2,3,4] b1 = bytes(x) print(b1) # --- BY1 print(type(b1)) # --- BY2 print(b1[1]) # --- BY3 print(b1[-3]) # --- BY4 for i in b1: print(i) # --- BY5 size1 = 3 arr1 = bytes(size1) print(arr1)# --- BY6 st1 = "Python is interesting." # string with encoding 'utf-8' arr2 = bytes(st1, 'utf-8') print...
19.705882
31
0.537313
0
0
0
0
0
0
0
0
131
0.391045
33a03729db5cacd804492efa6480f629af44b442
2,454
py
Python
tests/unit/test_format_control.py
rogerhil/pip
7616583dbb2dcbda5a19d78873642d6751fbf017
[ "MIT" ]
7,089
2015-01-01T10:48:04.000Z
2022-03-31T08:47:02.000Z
tests/unit/test_format_control.py
rogerhil/pip
7616583dbb2dcbda5a19d78873642d6751fbf017
[ "MIT" ]
8,417
2015-01-01T13:03:16.000Z
2022-03-31T17:40:27.000Z
tests/unit/test_format_control.py
rogerhil/pip
7616583dbb2dcbda5a19d78873642d6751fbf017
[ "MIT" ]
2,663
2015-01-02T04:02:12.000Z
2022-03-30T02:30:46.000Z
from optparse import Values from typing import FrozenSet, List, Set import pytest from pip._internal.cli import cmdoptions from pip._internal.cli.base_command import Command from pip._internal.cli.status_codes import SUCCESS from pip._internal.models.format_control import FormatControl class SimpleCommand(Command):...
33.162162
87
0.662184
377
0.153627
0
0
557
0.226976
0
0
421
0.171557
33a046627ebe9b3fc3a1aedef6dc7d98597fd36f
1,742
py
Python
test/test_files/function_test.py
Accruent/robotframework-historic-parser
07b0c551167a9e4cd8a0450e42d59865075f288e
[ "MIT" ]
null
null
null
test/test_files/function_test.py
Accruent/robotframework-historic-parser
07b0c551167a9e4cd8a0450e42d59865075f288e
[ "MIT" ]
31
2021-04-12T11:23:52.000Z
2022-03-31T13:51:36.000Z
test/test_files/function_test.py
Accruent/robotframework-historic-parser
07b0c551167a9e4cd8a0450e42d59865075f288e
[ "MIT" ]
null
null
null
"""Unit tests for functions used in Robot Framework Historic Parser""" import os import sys import unittest from unittest.mock import patch from robotframework_historic_parser.parserargs import parse_options from robotframework_historic_parser.rfhistoricparser import get_time_in_min, rfhistoric_parser ROOT_PATH = os....
39.590909
96
0.703215
1,379
0.791619
0
0
442
0.253731
0
0
758
0.435132
33a083ea109985fd4ee17df5e384f1dd2fed888a
7,984
py
Python
8-puzzle_Solver.py
koyalbhartia/8-Puzzle-Solver
40a95a879278a8e5a673dbe36fe27121b639079c
[ "MIT" ]
null
null
null
8-puzzle_Solver.py
koyalbhartia/8-Puzzle-Solver
40a95a879278a8e5a673dbe36fe27121b639079c
[ "MIT" ]
null
null
null
8-puzzle_Solver.py
koyalbhartia/8-Puzzle-Solver
40a95a879278a8e5a673dbe36fe27121b639079c
[ "MIT" ]
null
null
null
# # Copyright 2019 Koyal Bhartia # @file 8-puzzle solver.py # @author Koyal Bhartia # @date 26/02/2019 # @version 1.0 # # @brief This is the code to solve the 8-puzzle # # @Description This code has functions which returns all the possible paths that can be # traversed given any goal matrix. Given any inpu...
32.587755
135
0.602204
0
0
0
0
0
0
0
0
3,179
0.398171
33a08dcd91bbe763d87b01062553bff707b8c79e
498
py
Python
dev/python/2019-07-15 memtest.py
konung-yaropolk/pyABF
b5620e73ac5d060129b844da44f8b2611536ac56
[ "MIT" ]
74
2017-11-06T17:53:48.000Z
2022-03-27T12:14:46.000Z
dev/python/2019-07-15 memtest.py
konung-yaropolk/pyABF
b5620e73ac5d060129b844da44f8b2611536ac56
[ "MIT" ]
116
2018-01-16T21:36:29.000Z
2022-03-31T11:46:04.000Z
dev/python/2019-07-15 memtest.py
konung-yaropolk/pyABF
b5620e73ac5d060129b844da44f8b2611536ac56
[ "MIT" ]
30
2018-06-28T13:19:53.000Z
2022-03-25T02:52:48.000Z
""" Refactor the membrane test module to provide a clean interface. You can always refactor the core later. """ import os import sys PATH_HERE = os.path.abspath(os.path.dirname(__file__)) PATH_DATA = os.path.abspath(PATH_HERE+"../../../data/abfs/") PATH_SRC = os.path.abspath(PATH_HERE+"../../../src/") sys.path.insert(...
24.9
63
0.73494
0
0
0
0
0
0
0
0
169
0.339357
33a17f05aeaa5e9c684038bbf304e11283df433a
22,112
py
Python
interface_legacy.py
andersonic/cs232
8fdcbb7904db73c5f66a2bf28ad7621742f17d5b
[ "MIT" ]
null
null
null
interface_legacy.py
andersonic/cs232
8fdcbb7904db73c5f66a2bf28ad7621742f17d5b
[ "MIT" ]
null
null
null
interface_legacy.py
andersonic/cs232
8fdcbb7904db73c5f66a2bf28ad7621742f17d5b
[ "MIT" ]
null
null
null
from selenium import webdriver, common from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains import math import time import os import demjson driver = None all_pokemon_data = demjson.decode(open('pokemon_data.txt', 'r').read()) own_team = [] opponent_team = [N...
33.91411
113
0.58769
6,315
0.285514
0
0
0
0
0
0
4,505
0.20368
33a1ecfefab953e0ef22c8338a8a4681b64e6d18
5,583
py
Python
qemu/scripts/simplebench/bench-backup.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
qemu/scripts/simplebench/bench-backup.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
qemu/scripts/simplebench/bench-backup.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python3 # # Bench backup block-job # # Copyright (c) 2020 Virtuozzo International GmbH. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
33.232143
78
0.573706
233
0.041734
0
0
0
0
0
0
2,232
0.399785
33a21d7938cdc340b65ce10dbd789a12aaddb5a0
328
py
Python
code/misc/join_judgements.py
flnasc/dr_concept_searching
176552d178016773bed671a865a8c4316413d629
[ "Apache-2.0" ]
4
2019-03-01T17:02:31.000Z
2021-09-01T08:49:00.000Z
code/misc/join_judgements.py
flnasc/dr_concept_searching
176552d178016773bed671a865a8c4316413d629
[ "Apache-2.0" ]
null
null
null
code/misc/join_judgements.py
flnasc/dr_concept_searching
176552d178016773bed671a865a8c4316413d629
[ "Apache-2.0" ]
null
null
null
import pandas as pd if __name__ == '__main__': experts = pd.read_csv('../result_analysis/SM-judgements.csv', index_col=0) res = pd.read_csv('results_wmd_top_20.csv', index_col=0) print(experts) print(res) joined = res.join(experts, how='left', sort=False) joined.to_csv('wmd_top_20_w_raw_judgemen...
41
78
0.710366
0
0
0
0
0
0
0
0
111
0.338415
33a373190b827a351885ecf3e533cf0e0735ebe0
5,221
py
Python
typer/core/models.py
BartoszMakowski/typer
26e0d0cdae183e66bb6a0e32ba39ecdb8215883d
[ "Apache-2.0" ]
3
2019-03-15T23:43:26.000Z
2021-07-05T10:21:48.000Z
typer/core/models.py
BartoszMakowski/typer
26e0d0cdae183e66bb6a0e32ba39ecdb8215883d
[ "Apache-2.0" ]
null
null
null
typer/core/models.py
BartoszMakowski/typer
26e0d0cdae183e66bb6a0e32ba39ecdb8215883d
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator from django.contrib.auth.models import User from django.utils import timezone from datetime import datetime BET_SIDE = ( (0, 'X'), (1, '1'), (2, '2') ) class Wallet(models.Model): owner = models.ForeignKey(User, null=Fa...
47.036036
106
0.574794
4,985
0.950792
0
0
0
0
0
0
829
0.158116
33a49dcb8909ea1581dc4d90f918e7844abada00
223
py
Python
WD/Cwiczenia/Kwadraty_w_petli.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/Kwadraty_w_petli.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/Kwadraty_w_petli.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
#2 ćwiczenia #zadanie 7 ile=input("Podaj ile chcesz wczytać liczb: ") ile=int(ile) for i in range(ile): liczba=input("Podaj liczbę numer "+str(i)+": ") liczba=int(liczba) print(str(liczba**2))
18.583333
52
0.609865
0
0
0
0
0
0
0
0
86
0.380531
33a4a6bd6696b6d3f7f614b451cc33496d9165fa
952
py
Python
tests/unit/gui/test_gui.py
matthewgdv/iohandler
1df420dd3ae2e022d0aa4db864fd4af0dbd665cc
[ "MIT" ]
1
2019-08-28T17:03:27.000Z
2019-08-28T17:03:27.000Z
tests/unit/gui/test_gui.py
matthewgdv/iohandler
1df420dd3ae2e022d0aa4db864fd4af0dbd665cc
[ "MIT" ]
null
null
null
tests/unit/gui/test_gui.py
matthewgdv/iohandler
1df420dd3ae2e022d0aa4db864fd4af0dbd665cc
[ "MIT" ]
null
null
null
class TestGui: def test_start(self): # synced assert True def test_end(self): # synced assert True def test_closeEvent(self): # synced assert True class TestThreePartGui: def test_start(self): # synced assert True class TestHtmlGui: pass class TestSystemTr...
17.962264
50
0.629202
939
0.986345
0
0
0
0
0
0
104
0.109244
33a50dbaa0813b3110776fb56ba164bbe1899b09
42,617
py
Python
paida-3.2.1_2.10.1/paida/paida_gui/swing/PRoot.py
AshleyChraya/HubbleConstant-ConstraintsForVCG
634c15d296147ec1cdc3c92af1fbbfeb17844586
[ "MIT" ]
null
null
null
paida-3.2.1_2.10.1/paida/paida_gui/swing/PRoot.py
AshleyChraya/HubbleConstant-ConstraintsForVCG
634c15d296147ec1cdc3c92af1fbbfeb17844586
[ "MIT" ]
null
null
null
paida-3.2.1_2.10.1/paida/paida_gui/swing/PRoot.py
AshleyChraya/HubbleConstant-ConstraintsForVCG
634c15d296147ec1cdc3c92af1fbbfeb17844586
[ "MIT" ]
null
null
null
from paida.paida_core.PAbsorber import * from paida.paida_core.IFillStyle import * from paida.paida_core.ILineStyle import * from paida.paida_core.IMarkerStyle import * from paida.paida_core.ITextStyle import * from javax.swing import JFrame, JPanel, JScrollPane, JTree, JLayeredPane, SwingUtilities, JMenuBar from java...
33.19081
135
0.728653
41,128
0.965061
0
0
0
0
0
0
791
0.018561
33a75081559c2db05093b5e5fa2039ed3fd9fb10
2,550
py
Python
extra_metrics/config.py
fw-dev/useful_dashboard_info
514607b8f35c6b9ed0cfbc386ae74a94fb25fbc6
[ "MIT" ]
null
null
null
extra_metrics/config.py
fw-dev/useful_dashboard_info
514607b8f35c6b9ed0cfbc386ae74a94fb25fbc6
[ "MIT" ]
1
2020-11-27T15:13:34.000Z
2020-11-27T15:13:34.000Z
extra_metrics/config.py
johncclayton/useful_dashboard_info
514607b8f35c6b9ed0cfbc386ae74a94fb25fbc6
[ "MIT" ]
null
null
null
import configparser import os from extra_metrics.logs import logger def read_config_helper(cfg): logger.info(f"loading the configuration from file {ExtraMetricsConfiguration.DEFAULT_CFG_FILE_LOCATION}") with open(ExtraMetricsConfiguration.DEFAULT_CFG_FILE_LOCATION, 'r') as f: cfg.read_configuration(f)...
36.956522
109
0.743922
2,189
0.858431
0
0
0
0
0
0
338
0.132549
33a85b389cf87637147eaf9b17700c63e40bbe3a
271
py
Python
IEV.py
cptchloroplast/rosalind
7ed0f7005c124a498c877ce5e1141e9fbb04bf7b
[ "MIT" ]
null
null
null
IEV.py
cptchloroplast/rosalind
7ed0f7005c124a498c877ce5e1141e9fbb04bf7b
[ "MIT" ]
null
null
null
IEV.py
cptchloroplast/rosalind
7ed0f7005c124a498c877ce5e1141e9fbb04bf7b
[ "MIT" ]
null
null
null
# http://rosalind.info/problems/iev/ from sys import argv f = open(argv[1], 'r') a = f.readline().strip().split(' ') f.close() a = map(int, a) r = 2*(a[0]*1 + a[1]*1 + a[2]*1 + a[3]*.75 + a[4]*.5 + a[5]*0) w = open('results_' + argv[1], 'w') w.write(str(r)) w.close()
19.357143
62
0.535055
0
0
0
0
0
0
0
0
55
0.202952
33a86174001ff2478e49f557e437ae892e69708a
674
py
Python
vyper/interfaces/ERC20.py
Solexplorer/vyper
135edd6a91d47c72de105066d6e6c1bdfe9ea66e
[ "MIT" ]
1
2021-04-23T21:48:20.000Z
2021-04-23T21:48:20.000Z
vyper/interfaces/ERC20.py
Solexplorer/vyper
135edd6a91d47c72de105066d6e6c1bdfe9ea66e
[ "MIT" ]
null
null
null
vyper/interfaces/ERC20.py
Solexplorer/vyper
135edd6a91d47c72de105066d6e6c1bdfe9ea66e
[ "MIT" ]
1
2020-01-27T05:21:39.000Z
2020-01-27T05:21:39.000Z
interface_code = """ # Events Transfer: event({_from: indexed(address), _to: indexed(address), _value: uint256}) Approval: event({_owner: indexed(address), _spender: indexed(address), _value: uint256}) # Functions @constant @public def totalSupply() -> uint256: pass @constant @public def balanceOf(_owner: address...
19.823529
88
0.707715
0
0
0
0
0
0
0
0
656
0.973294
33a915e7cad061d0d037885bed31be7570f8f117
8,371
py
Python
utils/pitch_tools.py
ishine/DiffSinger
d5dbe05ee1c7da0878393c73129089a67d0fe935
[ "MIT" ]
null
null
null
utils/pitch_tools.py
ishine/DiffSinger
d5dbe05ee1c7da0878393c73129089a67d0fe935
[ "MIT" ]
null
null
null
utils/pitch_tools.py
ishine/DiffSinger
d5dbe05ee1c7da0878393c73129089a67d0fe935
[ "MIT" ]
null
null
null
######### # world ######### import librosa import parselmouth import numpy as np import torch import torch.nn.functional as F from pycwt import wavelet from scipy.interpolate import interp1d gamma = 0 mcepInput = 3 # 0 for dB, 3 for magnitude alpha = 0.45 en_floor = 10 ** (-80 / 20) FFT_SIZE = 2048 f0_bin = 256 f0_...
29.684397
120
0.616533
0
0
0
0
0
0
0
0
1,597
0.190778
33aae5bb3474518a6cd449ce9569ad5e5b7042ed
5,101
py
Python
PicoMorseKeyboard.py
batica81/PicoMorseKeyboard
ef6d3ebcd88cff99f5621a99936af4eaa52344ce
[ "Unlicense" ]
null
null
null
PicoMorseKeyboard.py
batica81/PicoMorseKeyboard
ef6d3ebcd88cff99f5621a99936af4eaa52344ce
[ "Unlicense" ]
null
null
null
PicoMorseKeyboard.py
batica81/PicoMorseKeyboard
ef6d3ebcd88cff99f5621a99936af4eaa52344ce
[ "Unlicense" ]
null
null
null
# This code is taken from many places and many authors and compiled by YU4HAK :) # Raspberry Pi Pico is needed to use this app! Maybe I will do an Arduino version in the future. # Basic purpose of the app is to take input from serial port and turn it into Morse code. # Then it plays it via sound, light or by actin...
31.103659
127
0.525191
0
0
0
0
0
0
0
0
2,285
0.447951
33acc4d1af1b7c1d0e85a3e15fd3afe129aa64f2
864
py
Python
codev/core/utils.py
baseclue/codev
7965ffc036ea217e05ca1f566e7b1917c0a67887
[ "Apache-2.0" ]
4
2016-03-21T12:20:52.000Z
2017-02-02T09:08:19.000Z
codev/core/utils.py
baseclue/codev
7965ffc036ea217e05ca1f566e7b1917c0a67887
[ "Apache-2.0" ]
null
null
null
codev/core/utils.py
baseclue/codev
7965ffc036ea217e05ca1f566e7b1917c0a67887
[ "Apache-2.0" ]
null
null
null
def parse_options(inp): parsed = inp.split(':', 1) name = parsed[0] options = parsed[1] if len(parsed) == 2 else '' return name, options class Ident(object): def __init__(self, *args): self._ident = args def as_tuple(self): return tuple(filter(None, self._ident)) def as_s...
23.351351
80
0.596065
702
0.8125
0
0
0
0
0
0
29
0.033565
33ada33136433bca8fd26edece8e3606edc757f1
356
py
Python
thread_utils/workers.py
HaowenWeiJohn/RealityNavigationSPS
3b2dee74aab43ba317f835bc1f7deae71c1a8128
[ "MIT" ]
1
2021-05-02T09:21:46.000Z
2021-05-02T09:21:46.000Z
thread_utils/workers.py
HaowenWeiJohn/RealityNavigationSPS
3b2dee74aab43ba317f835bc1f7deae71c1a8128
[ "MIT" ]
null
null
null
thread_utils/workers.py
HaowenWeiJohn/RealityNavigationSPS
3b2dee74aab43ba317f835bc1f7deae71c1a8128
[ "MIT" ]
null
null
null
import time import cv2 import pyqtgraph as pg from PyQt5.QtCore import QObject from PyQt5.QtCore import pyqtSignal from pylsl import local_clock from config import config_ui from utils.sim import sim_openBCI_eeg, sim_unityLSL, sim_inference import pyautogui import numpy as np from utils.ui_utils import dialog_pop...
19.777778
66
0.837079
0
0
0
0
0
0
0
0
35
0.097765
33adf871176f308c3d1cec5a1bbe0e2478662b96
1,527
py
Python
lib/surface/filestore/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/filestore/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/filestore/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 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/LICENSE-2.0 # # Unless requir...
35.511628
79
0.732809
117
0.076621
0
0
0
0
0
0
1,255
0.821873
33aee8ec5f804002be0706994434360ebd7b80a1
1,589
py
Python
verilog/dv/vdp_lite/video_frame/process_rgbs.py
dan-rodrigues/caravel_vdp_lite
2123ae5c92927a8492d77eee7ec7b998da39bacb
[ "Apache-2.0" ]
12
2020-12-20T01:53:05.000Z
2021-06-20T21:05:38.000Z
verilog/dv/vdp_lite/video_frame/process_rgbs.py
dan-rodrigues/caravel
2123ae5c92927a8492d77eee7ec7b998da39bacb
[ "Apache-2.0" ]
null
null
null
verilog/dv/vdp_lite/video_frame/process_rgbs.py
dan-rodrigues/caravel
2123ae5c92927a8492d77eee7ec7b998da39bacb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # process_rgbs.py # # Copyright (C) 2020 Dan Rodrigues <danrr.gh.oss@gmail.com> # # SPDX-License-Identifier: Apache-2.0 import png import struct import sys # Read sim generated log of RGBS output: log_file = open("rgbs.log", "rb") raw_log = log_file.read() log_file.close() image_width = 640 ...
21.767123
102
0.605412
0
0
0
0
0
0
0
0
450
0.283197