hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
4
247
max_forks_repo_name
stringlengths
4
130
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
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
759471eca6eb7bbbb400247ad8d624471bce9b4f
979
py
Python
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
109
2017-07-17T03:32:09.000Z
2022-02-27T18:24:18.000Z
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
175
2017-07-16T21:41:40.000Z
2021-03-19T22:28:19.000Z
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
68
2017-07-16T20:52:38.000Z
2022-01-08T18:24:17.000Z
import packerlicious.post_processor as post_processor
23.309524
53
0.694586
import pytest import packerlicious.post_processor as post_processor class TestDockerImportPostProcessor(object): def test_required_fields_missing(self): b = post_processor.DockerImport() with pytest.raises(ValueError) as excinfo: b.to_dict() assert 'required' in str(excinfo....
0
0
0
814
0
0
0
-8
114
c52b8d9492fbb8787f001b52ab150ed32d5cac19
35
py
Python
labs/hello_world.py
MHSRoboticsCode/2015
410f427439d1641146329bfdd74667054a21a658
[ "MIT" ]
null
null
null
labs/hello_world.py
MHSRoboticsCode/2015
410f427439d1641146329bfdd74667054a21a658
[ "MIT" ]
null
null
null
labs/hello_world.py
MHSRoboticsCode/2015
410f427439d1641146329bfdd74667054a21a658
[ "MIT" ]
null
null
null
# 2015 lab 1 print('Hello World')
8.75
20
0.657143
# 2015 lab 1 print('Hello World')
0
0
0
0
0
0
0
0
0
4ba48eedc7d1435806e6452e35a6fdf621660ae9
34,930
py
Python
contents/character/generator/CharacterOccupation.py
jakenjarvis/Lakshmi
de805f7488c1a6b3a4e0d3804be7ecd6c814b446
[ "Apache-2.0" ]
1
2020-08-24T01:31:20.000Z
2020-08-24T01:31:20.000Z
contents/character/generator/CharacterOccupation.py
jakenjarvis/Lakshmi
de805f7488c1a6b3a4e0d3804be7ecd6c814b446
[ "Apache-2.0" ]
null
null
null
contents/character/generator/CharacterOccupation.py
jakenjarvis/Lakshmi
de805f7488c1a6b3a4e0d3804be7ecd6c814b446
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
50.696662
191
0.378586
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import List, Dict import math import random import aiohttp import asyncio import discord from discord.ext import commands, tasks from contents.character.Investigator import Investigator class CharacterOccupation(): def __init__(self, occupa...
14,448
0
0
29,828
0
0
0
22
213
16dedf6977b981f036df8a226d0c212ce61fd47e
4,570
py
Python
src/passutil/pu.py
aaronstanek/password-generator
68f6f2ea1721a2ed52333eff842580db3b0a5307
[ "MIT" ]
3
2020-08-16T22:55:38.000Z
2022-01-24T23:31:01.000Z
src/passutil/pu.py
aaronstanek/password-generator
68f6f2ea1721a2ed52333eff842580db3b0a5307
[ "MIT" ]
null
null
null
src/passutil/pu.py
aaronstanek/password-generator
68f6f2ea1721a2ed52333eff842580db3b0a5307
[ "MIT" ]
null
null
null
# Copyright Aaron Stanek 2021 # See LICENSE for more details import sys if sys.version_info[0] != 3 or sys.version_info[1] < 6: raise Exception("Python Password Utility requires Python 3.6 or later. Compatibility with any major versions after Python 3 is not guaranteed.") import hashlib # try to use S...
40.803571
149
0.645733
# Copyright Aaron Stanek 2021 # See LICENSE for more details import sys if sys.version_info[0] != 3 or sys.version_info[1] < 6: raise Exception("Python Password Utility requires Python 3.6 or later. Compatibility with any major versions after Python 3 is not guaranteed.") import hashlib import secrets ...
0
0
0
568
0
3,252
0
24
144
632ddc4d9d2feb4191d7326623588355a5544aa5
12,824
py
Python
dl_multi/archive/tfrecord.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
1
2020-04-14T10:19:37.000Z
2020-04-14T10:19:37.000Z
dl_multi/archive/tfrecord.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
null
null
null
dl_multi/archive/tfrecord.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
null
null
null
# =========================================================================== # tfrecords_utils.py------------------------------------------------------- # =========================================================================== """ The following functions can be used to convert a value to a type compatible with ...
42.889632
265
0.523316
# =========================================================================== # tfrecords_utils.py------------------------------------------------------- # =========================================================================== """ The following functions can be used to convert a value to a type compatible with ...
0
0
0
0
0
2,016
0
-1
199
fe6bb1216cba74208ecaf186e28830bf6199ceab
298
py
Python
TAO/Firewall/EXPLOITS/ELCO/fosho/requests/packages/oreos/core.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
46
2017-05-15T11:15:08.000Z
2018-07-02T03:32:52.000Z
TAO/Firewall/EXPLOITS/ELCO/fosho/requests/packages/oreos/core.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
null
null
null
TAO/Firewall/EXPLOITS/ELCO/fosho/requests/packages/oreos/core.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
24
2017-05-17T03:26:17.000Z
2018-07-09T07:00:50.000Z
# -*- coding: utf-8 -*- """ oreos.core ~~~~~~~~~~ The creamy white center. """ from .monkeys import SimpleCookie def dict_from_string(s): '''''' cookies = dict() c = SimpleCookie() c.load(s) for k,v in c.items(): cookies.update({k: v.value}) return cookies
11.92
36
0.550336
# -*- coding: utf-8 -*- """ oreos.core ~~~~~~~~~~ The creamy white center. """ from .monkeys import SimpleCookie def dict_from_string(s): '''''' cookies = dict() c = SimpleCookie() c.load(s) for k,v in c.items(): cookies.update({k: v.value}) return cookies
0
0
0
0
0
0
0
0
0
73087379e75dba0f7af39e96d3b3fb511649fe52
1,189
py
Python
tests/spec/Spec/get_op_for_request_test.py
terencehonles/bravado-core
382db874b7b838dcfd169b0ce490d6a447ad6ff2
[ "BSD-3-Clause" ]
122
2015-04-22T17:31:18.000Z
2021-11-08T10:29:57.000Z
tests/spec/Spec/get_op_for_request_test.py
terencehonles/bravado-core
382db874b7b838dcfd169b0ce490d6a447ad6ff2
[ "BSD-3-Clause" ]
364
2015-04-10T22:19:23.000Z
2022-02-25T08:55:10.000Z
tests/spec/Spec/get_op_for_request_test.py
terencehonles/bravado-core
382db874b7b838dcfd169b0ce490d6a447ad6ff2
[ "BSD-3-Clause" ]
118
2015-04-20T15:11:53.000Z
2021-12-09T10:03:34.000Z
# -*- coding: utf-8 -*-
34.970588
73
0.748528
# -*- coding: utf-8 -*- from bravado_core.spec import Spec def test_found_with_no_basepath(petstore_dict): del petstore_dict['basePath'] petstore_spec = Spec.from_dict(petstore_dict) op = petstore_spec.get_op_for_request('GET', '/pet/{petId}') assert op == petstore_spec.resources['pet'].operations['ge...
0
0
0
0
0
1,010
0
13
137
c2c13dd46a699d262d613a09feddc7cbd6846840
26,334
py
Python
btk20_src/lib/mkBeamforming.py
musiclvme/distant_speech_recognition
60f867383488ac45c2fa3a5433736fdf00dd4f1d
[ "MIT" ]
136
2018-12-06T06:35:44.000Z
2022-03-27T15:07:42.000Z
btk20_src/lib/mkBeamforming.py
musiclvme/distant_speech_recognition
60f867383488ac45c2fa3a5433736fdf00dd4f1d
[ "MIT" ]
25
2018-12-03T04:33:24.000Z
2021-07-28T22:01:37.000Z
btk20_src/lib/mkBeamforming.py
musiclvme/distant_speech_recognition
60f867383488ac45c2fa3a5433736fdf00dd4f1d
[ "MIT" ]
68
2019-01-08T06:33:30.000Z
2021-11-17T09:33:10.000Z
import sys #from pygsl import * import pygsl.errors as errors APPZERO = 1.0E-20 # @memo fun_MK() and dfun_MK() are call back functions for pygsl. # You can easily implement a new MK beamformer by writing a new class derived from # a class 'MKSubbandBeamformer' which have methods, normalizeWa( wa ), # ...
39.9
156
0.57853
import sys import string import numpy from numpy import * import os.path import pickle import re from types import FloatType import getopt, sys import copy import gzip from btk.common import * from btk.stream import * from btk.feature import * from btk.matrix import * from btk.utils import * #from pygsl import * from...
0
0
0
21,060
0
3,322
0
-11
599
729aa5c6d73fb9c3f5750c80708fb9fd5acd69bc
312
py
Python
esuits/answer_history/forms.py
junkhp/esuits_junki
88293381d80184130adf5f6f96c47b9c79c294f2
[ "MIT" ]
2
2021-01-24T14:27:36.000Z
2021-01-24T16:15:43.000Z
esuits/answer_history/forms.py
junkhp/esuits_junki
88293381d80184130adf5f6f96c47b9c79c294f2
[ "MIT" ]
9
2021-02-01T03:20:59.000Z
2021-03-06T08:15:04.000Z
esuits/answer_history/forms.py
junkhp/esuiets_junki
88293381d80184130adf5f6f96c47b9c79c294f2
[ "MIT" ]
1
2021-02-07T03:41:01.000Z
2021-02-07T03:41:01.000Z
# -*- coding: utf-8 -*-
22.285714
46
0.564103
# -*- coding: utf-8 -*- from django import forms class AnswerHistoryCheckForm(forms.Form): select = forms.ChoiceField( required=True, disabled=False, widget=forms.RadioSelect(attrs={ 'id': 'hisradio', 'class': 'ans-history-radio-input' }) )
0
0
0
239
0
0
0
3
45
804b636892a7fa4562d5a1284dc781a81b3adfd3
1,433
py
Python
splitter_bulk.py
rainyleaf/Lexical-Diversity
8b01e9ab2661e0485e9079a7927f31701065c001
[ "MIT" ]
null
null
null
splitter_bulk.py
rainyleaf/Lexical-Diversity
8b01e9ab2661e0485e9079a7927f31701065c001
[ "MIT" ]
null
null
null
splitter_bulk.py
rainyleaf/Lexical-Diversity
8b01e9ab2661e0485e9079a7927f31701065c001
[ "MIT" ]
null
null
null
import os target_names = ['-to-process.txt.subbed', '_to_process.txt.subbed', '_to-process.txt.subbed', '-to_process.txt.subbed', '-tp.txt.subbed', '_tp.txt.subbed'] target = "-Processing" for dirname, dirs, files in os.walk('.'): if target in dirname and 'tagged' not in dirname: for filename in f...
49.413793
158
0.545708
import os target_names = ['-to-process.txt.subbed', '_to_process.txt.subbed', '_to-process.txt.subbed', '-to_process.txt.subbed', '-tp.txt.subbed', '_tp.txt.subbed'] target = "-Processing" for dirname, dirs, files in os.walk('.'): if target in dirname and 'tagged' not in dirname: for filename in f...
0
0
0
0
0
0
0
0
0
ade430af24e23c85d8a37decc033be928a493686
4,600
py
Python
src/xinput.py
ypar/treqtl
7c8ab7310edd83bc7f7950b45d4338341da07ce2
[ "MIT" ]
null
null
null
src/xinput.py
ypar/treqtl
7c8ab7310edd83bc7f7950b45d4338341da07ce2
[ "MIT" ]
null
null
null
src/xinput.py
ypar/treqtl
7c8ab7310edd83bc7f7950b45d4338341da07ce2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ### # YoSon # @treqtl/xinput.py # produce xtreqtl input files by matching rs numbers from trait and iv summary statistics ### from sys import argv if __name__ == '__main__': # if main, run test with input files ewkdir = argv[1] efile = argv[2] gwkdir = argv[3] outdf = xinput(...
50
356
0.619565
#!/usr/bin/env python3 ### # YoSon # @treqtl/xinput.py # produce xtreqtl input files by matching rs numbers from trait and iv summary statistics ### import pandas as pd import numpy as np import os, sys from sys import argv from os import walk from treqtl_input import read_dir def xinput(ewkdir, efile, gwkdir): ...
0
0
0
0
0
4,116
0
-2
135
26538207d5f5a691a112b07bba26c641ec81cf61
265
py
Python
aioli_openapi/__init__.py
jimorie/aioli-openapi
5a5ea6471d332adc8361ad39af7421e4686811fd
[ "MIT" ]
null
null
null
aioli_openapi/__init__.py
jimorie/aioli-openapi
5a5ea6471d332adc8361ad39af7421e4686811fd
[ "MIT" ]
null
null
null
aioli_openapi/__init__.py
jimorie/aioli-openapi
5a5ea6471d332adc8361ad39af7421e4686811fd
[ "MIT" ]
null
null
null
from aioli import Package from .controller import HttpController from .service import OpenApiService from .config import ConfigSchema export = Package( controllers=[HttpController], services=[OpenApiService], config=ConfigSchema, auto_meta=True )
20.384615
38
0.777358
from aioli import Package from .controller import HttpController from .service import OpenApiService from .config import ConfigSchema export = Package( controllers=[HttpController], services=[OpenApiService], config=ConfigSchema, auto_meta=True )
0
0
0
0
0
0
0
0
0
e4919b9cf916abaae343f9577cf24c5bd7884722
4,629
py
Python
nlptasks/task_classification_cnn_roc_prf.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
4
2021-06-16T02:26:18.000Z
2021-09-24T11:06:51.000Z
nlptasks/task_classification_cnn_roc_prf.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
null
null
null
nlptasks/task_classification_cnn_roc_prf.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, auc import itertools import numpy as np import tensorflow as tf from tensorflow.keras.preprocessing import sequence from tensorflow.keras.models import Model from tensorflow.keras.layers import Input from tensorflow.keras.layers import Dense, Dropou...
27.885542
110
0.680709
import matplotlib.pyplot as plt from sklearn.metrics import roc_auc_score from sklearn.metrics import roc_curve, auc import itertools import numpy as np import tensorflow as tf from tensorflow.keras.preprocessing import sequence from tensorflow.keras.models import Model from tensorflow.keras.layers import Input from te...
165
0
0
0
0
0
0
42
66
5059b12edbc2fec8ad15300670e5c0628bc4149c
534
py
Python
botx/clients/types/options.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/types/options.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/types/options.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Special options for messages from bot."""
29.666667
84
0.754682
"""Special options for messages from bot.""" from pydantic import BaseModel from botx.models.messages.sending.options import NotificationOptions class ResultOptions(BaseModel): """Configuration for command result or notification that is send to BotX API.""" #: send message only when stealth mode is enabled....
0
0
0
364
0
0
0
56
68
48ece775f281cd9e1431d40945120826992d65c2
2,877
py
Python
source/reports/orderReports.py
MatheusDiass/BOBs_Pizzaria_Anchieta
b52188cb6411a07b67a76b0e53f3828f9cf0012d
[ "MIT" ]
2
2020-05-23T21:57:29.000Z
2020-05-23T22:03:06.000Z
source/reports/orderReports.py
MatheusDiass/BOBs_Pizzaria_Anchieta
b52188cb6411a07b67a76b0e53f3828f9cf0012d
[ "MIT" ]
1
2020-05-31T18:15:47.000Z
2020-05-31T18:15:47.000Z
source/reports/orderReports.py
MatheusDiass/BOBs_Pizzaria_Anchieta
b52188cb6411a07b67a76b0e53f3828f9cf0012d
[ "MIT" ]
null
null
null
# Import sqlite3 para tratar os erros # Importado para formatar a data # Importa a funo de relatrio de pedidos # Exibe todos os pedidos # Exibe todos os pedidos de acordo com o periodo informado
36.884615
93
0.572471
# Import sqlite3 para tratar os erros import _sqlite3 # Importado para formatar a data from datetime import date, datetime # Importa a função de relatório de pedidos from source.db.tblOrder import selectAllOrderInformation, selectAllOrderBetweenDate # Exibe todos os pedidos def allOrderInformationReports(): try:...
26
0
0
0
0
2,486
0
70
110
2c65584e8066d874578c2f9877a23e7292123209
1,480
py
Python
files/029 - distinct powers.py
farukara/Project-Euler-problems
806fdbd797edd9929728b43cc428a55df50e1c01
[ "MIT" ]
null
null
null
files/029 - distinct powers.py
farukara/Project-Euler-problems
806fdbd797edd9929728b43cc428a55df50e1c01
[ "MIT" ]
null
null
null
files/029 - distinct powers.py
farukara/Project-Euler-problems
806fdbd797edd9929728b43cc428a55df50e1c01
[ "MIT" ]
null
null
null
#!python3 # coding: utf-8 # Consider all integer combinations of ab for 2 a 5 and 2 b 5: # # 22=4, 23=8, 24=16, 25=32 # 32=9, 33=27, 34=81, 35=243 # 42=16, 43=64, 44=256, 45=1024 # 52=25, 53=125, 54=625, 55=3125 # If they are then placed in numerical order, with any repeats removed, we get the following sequence o...
24.666667
123
0.608784
#!python3 # coding: utf-8 # Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5: # # 22=4, 23=8, 24=16, 25=32 # 32=9, 33=27, 34=81, 35=243 # 42=16, 43=64, 44=256, 45=1024 # 52=25, 53=125, 54=625, 55=3125 # If they are then placed in numerical order, with any repeats removed, we get the following sequen...
24
0
0
0
0
295
0
0
46
d6fffbc360e40f3fa206c22120a91856dbfad8a1
167
py
Python
build.py
findgriffin/quotesforclare
5433e9b3b3a8b42133069ff91a902ff0d53cf0da
[ "MIT" ]
null
null
null
build.py
findgriffin/quotesforclare
5433e9b3b3a8b42133069ff91a902ff0d53cf0da
[ "MIT" ]
null
null
null
build.py
findgriffin/quotesforclare
5433e9b3b3a8b42133069ff91a902ff0d53cf0da
[ "MIT" ]
null
null
null
import markdown with open("index.md", 'r') as md: output = markdown.markdown(md.read()) with open("public/index.html", 'w') as out: out.write(output)
23.857143
47
0.628743
import markdown with open("index.md", 'r') as md: output = markdown.markdown(md.read()) with open("public/index.html", 'w') as out: out.write(output)
0
0
0
0
0
0
0
0
0
b7c908fd071d0ff5c30f1ca4c527eb71f4aa62d3
10,342
py
Python
MCFundamental.py
aaleti/NeighboursSimilarFitness
bf087bfb8e77c79f085388fccf8aa63088f8d610
[ "Unlicense" ]
null
null
null
MCFundamental.py
aaleti/NeighboursSimilarFitness
bf087bfb8e77c79f085388fccf8aa63088f8d610
[ "Unlicense" ]
null
null
null
MCFundamental.py
aaleti/NeighboursSimilarFitness
bf087bfb8e77c79f085388fccf8aa63088f8d610
[ "Unlicense" ]
null
null
null
from numpy.linalg import inv import numpy as np import matplotlib.cbook as cbook from scipy.stats import mode import pandas as pd files = ["3","4","5","6","7","8","9"] Ptype=["nsf","no_nsf"] data=[] datafitnesses=[] for fNumber in files: iterations=0 if(fNumber=="9"): iterations=100 else: i...
47.009091
127
0.314929
from numpy.linalg import inv import numpy as np import pykov import matplotlib.pyplot as plt import matplotlib.cbook as cbook from itertools import cycle import matplotlib from matplotlib.pyplot import * import brewer2mpl import seaborn as sns from scipy.stats import ks_2samp from scipy.stats import mode import pandas ...
0
0
0
0
0
0
0
20
176
ddf6603ab028bfe68570d800eb542a92f989c9b8
6,947
py
Python
goal-depth-detection-host/main.py
jonathandao0/depthai-frc
9f1b4fc9e049f252e5f8fc53da02b9ed43d80b5a
[ "MIT" ]
3
2021-11-23T17:00:55.000Z
2022-02-17T20:23:50.000Z
goal-depth-detection-host/main.py
jonathandao0/depthai-frc
9f1b4fc9e049f252e5f8fc53da02b9ed43d80b5a
[ "MIT" ]
null
null
null
goal-depth-detection-host/main.py
jonathandao0/depthai-frc
9f1b4fc9e049f252e5f8fc53da02b9ed43d80b5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import logging parser = argparse.ArgumentParser() parser.add_argument('-d', dest='debug', action="store_true", default=False, help='Start in Debug Mode') args = parser.parse_args() log = logging.getLogger(__name__) if __name__ == '__main__': log.info("Starting goal-dept...
37.349462
137
0.57622
#!/usr/bin/env python3 import argparse import cv2 import depthai as dai import socket from pipelines import goal_edge_depth_detection import logging from common import target_finder from common.mjpeg_stream import MjpegStream from networktables.util import NetworkTables from common.utils import FPSHandler parser = ...
0
0
0
6,231
0
0
0
77
224
9a28ad71df48836ad852013ab4decef7364b3e68
2,513
py
Python
ruspy/test/estimation_tests/test_estimation.py
MaxBlesch/ruspy
5e7fb9e584c7e0d4935f4669e108bbf4e05209c6
[ "MIT" ]
13
2019-09-10T12:00:16.000Z
2022-03-19T13:30:12.000Z
ruspy/test/estimation_tests/test_estimation.py
MaxBlesch/ruspy
5e7fb9e584c7e0d4935f4669e108bbf4e05209c6
[ "MIT" ]
45
2019-02-17T19:39:00.000Z
2021-08-23T17:38:40.000Z
ruspy/test/estimation_tests/test_estimation.py
MaxBlesch/ruspy
5e7fb9e584c7e0d4935f4669e108bbf4e05209c6
[ "MIT" ]
9
2019-05-03T03:48:37.000Z
2022-03-19T13:30:13.000Z
""" This module contains unit tests, for the most important functions of ruspy.estimation.estimation_cost_parameters. The values to compare the results with are saved in resources/estimation_test. The setting of the test is documented in the inputs section in test module. """
31.024691
87
0.712296
""" This module contains unit tests, for the most important functions of ruspy.estimation.estimation_cost_parameters. The values to compare the results with are saved in resources/estimation_test. The setting of the test is documented in the inputs section in test module. """ import numpy as np import pytest from numpy...
0
609
0
0
0
971
0
267
382
eb4c17d2f6bc5d50a6467e03c3892b0132914fb1
6,123
py
Python
exercises/adaboost_scenario.py
dani3lwinter/IML.HUJI
46b5e001b92d7bac3b7efa2278d0236b69159895
[ "MIT" ]
null
null
null
exercises/adaboost_scenario.py
dani3lwinter/IML.HUJI
46b5e001b92d7bac3b7efa2278d0236b69159895
[ "MIT" ]
null
null
null
exercises/adaboost_scenario.py
dani3lwinter/IML.HUJI
46b5e001b92d7bac3b7efa2278d0236b69159895
[ "MIT" ]
null
null
null
import numpy as np from typing import Tuple import plotly.graph_objects as go pio.renderers.default = "browser" def generate_data(n: int, noise_ratio: float) -> Tuple[np.ndarray, np.ndarray]: """ Generate a dataset in R^2 of specified size Parameters ---------- n: int Number of samples ...
41.09396
117
0.594317
from itertools import product import numpy as np from typing import Tuple from IMLearn.learners.classifiers import DecisionStump from IMLearn.metalearners import AdaBoost from utils import * import plotly.graph_objects as go from plotly.subplots import make_subplots pio.renderers.default = "browser" def generate_da...
0
0
0
0
0
3,329
0
79
133
47a3628be6d06fce60c6aa3b96f418edd831bdb8
2,375
py
Python
test.py
yhZhai/wtalc-pytorch
e8016e7849b026132d16f64852711083d735edf2
[ "MIT" ]
1
2020-05-11T00:28:47.000Z
2020-05-11T00:28:47.000Z
test.py
yhZhai/wtalc-pytorch
e8016e7849b026132d16f64852711083d735edf2
[ "MIT" ]
null
null
null
test.py
yhZhai/wtalc-pytorch
e8016e7849b026132d16f64852711083d735edf2
[ "MIT" ]
null
null
null
import torch.optim as optim # torch.set_default_tensor_type('torch.FloatTensor')
38.934426
116
0.664842
import torch import torch.nn.functional as F import torch.optim as optim from model import Model from video_dataset import Dataset from tensorboard_logger import log_value import utils import numpy as np from torch.autograd import Variable from classificationMAP import getClassificationMAP as cmAP from detect...
0
0
0
0
0
1,909
0
101
278
7fe3b91986972c5ce11f9efef5923c262ae5e073
38,655
py
Python
Steel/bolts_IC_gui.py
hotmailbox/Structural-Engineering
f34dcaec728fbb3e3a05c6f29ed5dabc621550cb
[ "BSD-3-Clause" ]
152
2017-08-14T10:06:19.000Z
2022-03-07T04:48:49.000Z
Steel/bolts_IC_gui.py
hotmailbox/Structural-Engineering
f34dcaec728fbb3e3a05c6f29ed5dabc621550cb
[ "BSD-3-Clause" ]
15
2017-08-13T23:30:18.000Z
2021-03-25T05:08:49.000Z
Steel/bolts_IC_gui.py
hotmailbox/Structural-Engineering
f34dcaec728fbb3e3a05c6f29ed5dabc621550cb
[ "BSD-3-Clause" ]
52
2017-11-09T09:58:07.000Z
2022-02-09T16:58:38.000Z
''' BSD 3-Clause License Copyright (c) 2019, Donald N. Bockoven III All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this l...
45.31653
464
0.543837
''' BSD 3-Clause License Copyright (c) 2019, Donald N. Bockoven III All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this l...
0
0
0
36,680
0
132
0
-2
219
04a9f8fe3911032dc6684bf8e345fde7a20c24c1
3,355
py
Python
python/surf/devices/silabs/_Si5345Lite.py
qarlosalberto/surf
69df91296d77efc9e812da051841545e320ebf69
[ "BSD-3-Clause-LBNL" ]
2
2021-05-13T19:56:51.000Z
2021-05-21T13:33:02.000Z
python/surf/devices/silabs/_Si5345Lite.py
qarlosalberto/surf
69df91296d77efc9e812da051841545e320ebf69
[ "BSD-3-Clause-LBNL" ]
null
null
null
python/surf/devices/silabs/_Si5345Lite.py
qarlosalberto/surf
69df91296d77efc9e812da051841545e320ebf69
[ "BSD-3-Clause-LBNL" ]
null
null
null
#----------------------------------------------------------------------------- # This file is part of 'SLAC Firmware Standard Library'. # It is subject to the license terms in the LICENSE.txt file found in the # top-level directory of this distribution and at: # https://confluence.slac.stanford.edu/display/ppareg/LI...
37.277778
96
0.491803
#----------------------------------------------------------------------------- # This file is part of 'SLAC Firmware Standard Library'. # It is subject to the license terms in the LICENSE.txt file found in the # top-level directory of this distribution and at: # https://confluence.slac.stanford.edu/display/ppareg/LI...
0
1,633
0
1,001
0
0
0
-28
112
1453a426e851b72a4844eed7230b164334c62ea5
620
py
Python
thinkpython_allen_downey/exercise_6_2.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
thinkpython_allen_downey/exercise_6_2.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
thinkpython_allen_downey/exercise_6_2.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
# def hypotenuse(x, y): # return 0.0 # # print(hypotenuse(3, 4)) # # def hypotenuse(x, y): # square_x = x**2 # square_y = y**2 # print('square_x is', square_x) # print('square_y is', square_y) # return 0.0 # # print(hypotenuse(3, 4)) # # def hypotenuse(x, y): # from math import sqrt # sq...
20
45
0.58871
# def hypotenuse(x, y): # return 0.0 # # print(hypotenuse(3, 4)) # # def hypotenuse(x, y): # square_x = x**2 # square_y = y**2 # print('square_x is', square_x) # print('square_y is', square_y) # return 0.0 # # print(hypotenuse(3, 4)) # # def hypotenuse(x, y): # from math import sqrt # sq...
0
0
0
0
0
55
0
0
23
d7e66a021ecddeb23f0dbeb0f0551cb3b5f1cf3d
1,074
py
Python
ecosystem/plot_stargazers.py
sealuzh/docker-ecosystem-paper
5c8b253062796baf5d154bc6f9660a7d05d3dad5
[ "Apache-2.0" ]
5
2017-05-19T15:41:46.000Z
2021-08-03T16:52:56.000Z
ecosystem/plot_stargazers.py
sealuzh/docker-ecosystem-paper
5c8b253062796baf5d154bc6f9660a7d05d3dad5
[ "Apache-2.0" ]
1
2019-11-18T09:26:23.000Z
2019-11-18T09:26:23.000Z
ecosystem/plot_stargazers.py
sealuzh/docker-ecosystem-paper
5c8b253062796baf5d154bc6f9660a7d05d3dad5
[ "Apache-2.0" ]
1
2017-05-20T13:54:14.000Z
2017-05-20T13:54:14.000Z
#!/usr/bin/env python # Plots stargazers of repositories. import pandas as pd import matplotlib.pyplot as plt import numpy as np from sklearn.neighbors import KernelDensity # Based on: https://jakevdp.github.io/blog/2013/12/01/kernel-density-estimation/ def kde_sklearn(x, x_grid, bandwidth=0.2, **kwargs): """Kerne...
28.263158
83
0.72905
#!/usr/bin/env python # Plots stargazers of repositories. import pandas as pd import matplotlib.pyplot as plt import numpy as np from sklearn.neighbors import KernelDensity # Based on: https://jakevdp.github.io/blog/2013/12/01/kernel-density-estimation/ def kde_sklearn(x, x_grid, bandwidth=0.2, **kwargs): """Kerne...
0
0
0
0
0
0
0
0
0
bcd58dc314a69f1b85201cceac9b86fb58297c42
21,978
py
Python
contrail-topology/contrail_topology/controller.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
contrail-topology/contrail_topology/controller.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
contrail-topology/contrail_topology/controller.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. #
47.16309
105
0.503231
# # Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. # from analytic_client import AnalyticApiClient import time, socket, os from topology_uve import LinkUve import gevent from gevent.lock import Semaphore from opserver.consistent_schdlr import ConsistentScheduler from topology_config_handler import Topol...
0
0
0
21,352
0
0
0
202
354
f31a318e5b8203dfd8fa0fa413989c87bccad9bd
2,821
py
Python
scratch.py
derekvantilborg/molml_tools
5a5baaa21a4b3b91e59c1a350d04db3fd5102e4e
[ "MIT" ]
null
null
null
scratch.py
derekvantilborg/molml_tools
5a5baaa21a4b3b91e59c1a350d04db3fd5102e4e
[ "MIT" ]
null
null
null
scratch.py
derekvantilborg/molml_tools
5a5baaa21a4b3b91e59c1a350d04db3fd5102e4e
[ "MIT" ]
null
null
null
# conda install scikit-learn # conda install -c conda-forge scikit-optimize # conda install -c conda-forge rdkit import pandas as pd # from Tools.Clustering.butina import cluster_molecules from molml.Datastructures.molecule import Dataset from molml.Data import read_csv from molml.Representations.descriptors import ec...
28.785714
125
0.720312
# conda install scikit-learn # conda install -c conda-forge scikit-optimize # conda install -c conda-forge rdkit import pandas as pd # from Tools.Clustering.butina import cluster_molecules from molml.Datastructures.molecule import Dataset from molml.Data import read_csv from molml.Representations.descriptors import ec...
0
0
0
0
0
17
0
-3
45
8a643272ae06be634a32e0ab7072e549a34dede7
2,217
py
Python
4/vendor/gistfile1.py
JarryShaw/HelloWorld
669984fa415e9bb65f5b7c261ec4f87ffbe56c6d
[ "Apache-2.0" ]
1
2017-12-22T14:15:08.000Z
2017-12-22T14:15:08.000Z
4/vendor/gistfile1.py
JarryShaw/HelloWorld
669984fa415e9bb65f5b7c261ec4f87ffbe56c6d
[ "Apache-2.0" ]
1
2018-01-16T09:22:52.000Z
2018-01-16T09:22:52.000Z
4/vendor/gistfile1.py
JarryShaw/HelloWorld
669984fa415e9bb65f5b7c261ec4f87ffbe56c6d
[ "Apache-2.0" ]
1
2018-01-16T07:50:00.000Z
2018-01-16T07:50:00.000Z
alphabet = "0123456789." code = input() grid = [] variables = [] loops = 10 for i in range(100): grid.append(00) while code[0] != "3" or code[1] != "." or code[-1] != "4": code = input("Code invalid. ") code += "000000" i = 2 while i < len(code) - 6: variables = [] variables.append(int(code[i+1] + ...
28.063291
71
0.412269
alphabet = "0123456789." code = input() grid = [] variables = [] loops = 10 for i in range(100): grid.append(00) while code[0] != "3" or code[1] != "." or code[-1] != "4": code = input("Code invalid. ") code += "000000" i = 2 while i < len(code) - 6: variables = [] variables.append(int(code[i+1] + ...
0
0
0
0
0
0
0
0
0
faaa8707ba2e3914afcd146434676d67944dc037
7,959
py
Python
paasta_tools/paastaapi/models/marathon_autoscaling_info.py
rohangulati/paasta
4539e39159424bfbdeddcb243ca337bcd1eb1a06
[ "Apache-2.0" ]
null
null
null
paasta_tools/paastaapi/models/marathon_autoscaling_info.py
rohangulati/paasta
4539e39159424bfbdeddcb243ca337bcd1eb1a06
[ "Apache-2.0" ]
null
null
null
paasta_tools/paastaapi/models/marathon_autoscaling_info.py
rohangulati/paasta
4539e39159424bfbdeddcb243ca337bcd1eb1a06
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Paasta API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """
33.868085
181
0.650333
# coding: utf-8 """ Paasta API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from...
0
3,780
0
3,776
0
0
0
10
128
7851d839dad479e83abf6f0e090c76610a28cb3d
5,100
py
Python
pymvg/test/test_first_principles.py
hop-soellingeraj/pymvg
2b99ccb459063f34dbe801bdbbfcf1209b1fb3e5
[ "MIT" ]
84
2015-04-23T02:22:08.000Z
2022-02-22T01:58:53.000Z
pymvg/test/test_first_principles.py
hop-soellingeraj/pymvg
2b99ccb459063f34dbe801bdbbfcf1209b1fb3e5
[ "MIT" ]
8
2019-10-23T00:04:01.000Z
2021-11-22T18:58:08.000Z
pymvg/test/test_first_principles.py
hop-soellingeraj/pymvg
2b99ccb459063f34dbe801bdbbfcf1209b1fb3e5
[ "MIT" ]
18
2015-10-12T23:14:24.000Z
2021-11-22T18:46:38.000Z
#!/usr/bin/env python import os DRAW=int(os.environ.get('DRAW','0')) if DRAW: if __name__=='__main__': test_simple_projection() test_lookat()
32.075472
80
0.604706
#!/usr/bin/env python import numpy as np from pymvg.test.utils import _build_points_3d, make_M import os from pymvg.util import normalize from pymvg.camera_model import CameraModel DRAW=int(os.environ.get('DRAW','0')) if DRAW: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from p...
0
0
0
0
68
4,512
0
108
260
a9795bb69cedbf18f80dc8b60dec3a74eb7e7217
23
py
Python
colored_graph/__init__.py
SyrianSpock/colored-graph
dd182bcff8f09b7e38b73142c713abdc0e276919
[ "MIT" ]
null
null
null
colored_graph/__init__.py
SyrianSpock/colored-graph
dd182bcff8f09b7e38b73142c713abdc0e276919
[ "MIT" ]
null
null
null
colored_graph/__init__.py
SyrianSpock/colored-graph
dd182bcff8f09b7e38b73142c713abdc0e276919
[ "MIT" ]
null
null
null
name = "colored_graph"
11.5
22
0.73913
name = "colored_graph"
0
0
0
0
0
0
0
0
0
6f94639bb7da81753f9a1947683bcad48ae1179f
7,143
py
Python
Connect4/bot.py
iridia-ulb/AI-book
965c6e217a8d2371c64a7e01e7b9145302bcf40f
[ "MIT" ]
2
2021-12-24T21:08:46.000Z
2022-03-16T20:30:14.000Z
Connect4/bot.py
iridia-ulb/AI-book
965c6e217a8d2371c64a7e01e7b9145302bcf40f
[ "MIT" ]
null
null
null
Connect4/bot.py
iridia-ulb/AI-book
965c6e217a8d2371c64a7e01e7b9145302bcf40f
[ "MIT" ]
null
null
null
YELLOW_PLAYER = 1 RED_PLAYER = -1 PLAYERS = {1: "Yellow", -1: "Red"}
32.766055
105
0.557749
import random import math from common import ( ROW_COUNT, COLUMN_COUNT, MINIMAX, MONTE_CARLO, RANDOM, RANDOM_IMPR, Observer, ) YELLOW_PLAYER = 1 RED_PLAYER = -1 PLAYERS = {1: "Yellow", -1: "Red"} class Bot(Observer): """ This class handles the different bots that were used. I...
0
0
0
6,869
0
0
0
89
112
4db5922ca0eda76dacac4a88ee4dc802601c0259
1,501
py
Python
ML Services/03.VS Code の利用/01.NativeScoreing_Linux.py
MasayukiOzawa/SQLServer-Util
7dd1f9ab411955b85026c78e6e901ea4c57788f8
[ "MIT" ]
64
2016-06-15T07:39:40.000Z
2022-03-22T02:19:50.000Z
ML Services/03.VS Code の利用/01.NativeScoreing_Linux.py
MasayukiOzawa/SQLServer-Util
7dd1f9ab411955b85026c78e6e901ea4c57788f8
[ "MIT" ]
1
2016-09-24T17:41:04.000Z
2016-11-09T01:31:17.000Z
ML Services/03.VS Code の利用/01.NativeScoreing_Linux.py
MasayukiOzawa/SQLServer-Util
7dd1f9ab411955b85026c78e6e901ea4c57788f8
[ "MIT" ]
20
2017-03-07T19:20:00.000Z
2022-03-22T02:34:50.000Z
from revoscalepy import rx_lin_mod, rx_serialize_model, rx_summary import pandas as pd import pyodbc conn_str = 'Driver=SQL Server;Server=<Server Name>;Database=MLDB;Uid=<User Name>;Pwd=<Password>;' cnxn = pyodbc.connect(conn_str) cnxn.setencoding("utf-8") inputsql = 'select "RentalCount", "Year", "Month", "Day", "Wee...
40.567568
138
0.756163
from revoscalepy import rx_lin_mod, rx_serialize_model, rx_summary import pandas as pd import pyodbc import os conn_str = 'Driver=SQL Server;Server=<Server Name>;Database=MLDB;Uid=<User Name>;Pwd=<Password>;' cnxn = pyodbc.connect(conn_str) cnxn.setencoding("utf-8") inputsql = 'select "RentalCount", "Year", "Month", "...
0
0
0
0
0
0
0
-12
22
b08b481c6d54dd8f5ce2e1219e53ea74e1b33134
1,625
py
Python
mushroom_rl/utils/features.py
PuzeLiu/mushroom-rl
99942b425e66b4ddcc26009d7105dde23841e95d
[ "MIT" ]
344
2020-01-10T09:45:02.000Z
2022-03-30T09:48:28.000Z
mushroom_rl/utils/features.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
44
2020-01-23T03:00:56.000Z
2022-03-25T17:14:22.000Z
mushroom_rl/utils/features.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
93
2020-01-10T21:17:58.000Z
2022-03-31T17:58:52.000Z
import numpy as np def uniform_grid(n_centers, low, high): """ This function is used to create the parameters of uniformly spaced radial basis functions with 25% of overlap. It creates a uniformly spaced grid of ``n_centers[i]`` points in each ``ranges[i]``. Also returns a vector containing the ap...
27.083333
78
0.547077
import numpy as np def uniform_grid(n_centers, low, high): """ This function is used to create the parameters of uniformly spaced radial basis functions with 25% of overlap. It creates a uniformly spaced grid of ``n_centers[i]`` points in each ``ranges[i]``. Also returns a vector containing the ap...
0
0
0
0
0
0
0
0
0
c9d22a7bf9b5dc1a732883747a14d59630652d12
16,528
py
Python
inquiry_artifacts.py
saadxan/ExchangeBuddy
5fa8b67feb8517fcb170b5207af6dbee864921d5
[ "MIT" ]
null
null
null
inquiry_artifacts.py
saadxan/ExchangeBuddy
5fa8b67feb8517fcb170b5207af6dbee864921d5
[ "MIT" ]
null
null
null
inquiry_artifacts.py
saadxan/ExchangeBuddy
5fa8b67feb8517fcb170b5207af6dbee864921d5
[ "MIT" ]
null
null
null
import PyQt5.QtCore as QtCore import PyQt5.QtGui as QtGui import PyQt5.QtWidgets as QtWidgets
35.391863
120
0.615138
from PyQt5.QtChart import * import PyQt5.QtCore as QtCore import PyQt5.QtGui as QtGui import PyQt5.QtWidgets as QtWidgets import config import nav import yfinance as yf class ReturnButton(QtWidgets.QPushButton): def __init__(self): super(ReturnButton, self).__init__("Return") self.clicked.connec...
0
0
0
15,850
0
172
0
-13
411
ac895a9dfd95f6ee6833018750b52a1c10056528
2,206
py
Python
tryalgo/dinic.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/dinic.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/dinic.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Maximum flow by Dinic # jill-jnn vie et christoph drr - 2015-2018 from collections import deque from sys import setrecursionlimit from tryalgo.graph import add_reverse_arcs setrecursionlimit(5010) # necessary for big graphs # snip{ def dinic(graph, capacity, sourc...
31.070423
76
0.560743
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Maximum flow by Dinic # jill-jênn vie et christoph dürr - 2015-2018 from collections import deque from sys import setrecursionlimit from tryalgo.graph import add_reverse_arcs setrecursionlimit(5010) # necessary for big graphs # snip{ def dinic(graph, capacity, sou...
8
0
0
0
0
0
0
0
0
6a518aff98243781610501ac5c19e19219a5d6bf
17,572
py
Python
examples/pytorch/text-classification/run_xnli.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
5
2020-09-01T09:15:48.000Z
2020-09-15T03:25:05.000Z
examples/pytorch/text-classification/run_xnli.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
2
2022-03-08T04:58:59.000Z
2022-03-19T03:45:14.000Z
examples/pytorch/text-classification/run_xnli.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
3
2020-08-20T04:46:25.000Z
2020-10-14T08:39:13.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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. ...
39.665914
119
0.66936
#!/usr/bin/env python # coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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. ...
0
4,140
0
0
0
11,527
0
275
313
0d6a499f18fa307168dbe254580e20c8d352547c
2,243
py
Python
spar_python/data_generation/progress_reporters.py
nathanawmk/SPARTA
6eeb28b2dd147088b6e851876b36eeba3e700f16
[ "BSD-2-Clause" ]
37
2017-06-09T13:55:23.000Z
2022-01-28T12:51:17.000Z
spar_python/data_generation/progress_reporters.py
nathanawmk/SPARTA
6eeb28b2dd147088b6e851876b36eeba3e700f16
[ "BSD-2-Clause" ]
null
null
null
spar_python/data_generation/progress_reporters.py
nathanawmk/SPARTA
6eeb28b2dd147088b6e851876b36eeba3e700f16
[ "BSD-2-Clause" ]
5
2017-06-09T13:55:26.000Z
2021-11-11T03:51:56.000Z
# ***************************************************************** # Copyright 2015 MIT Lincoln Laboratory # Project: SPAR # Authors: JCH # Description: Various classes to inform user of progress # # Modifications: # Date Name Modification # ---- ---- ...
32.507246
75
0.544806
# ***************************************************************** # Copyright 2015 MIT Lincoln Laboratory # Project: SPAR # Authors: JCH # Description: Various classes to inform user of progress # # Modifications: # Date Name Modification # ---- ---- ...
0
0
0
1,379
0
0
0
-6
46
9902f0b6820f734ff15a736daf7d31ba2b2b9405
10,053
py
Python
better_storylines/src/models.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
better_storylines/src/models.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
better_storylines/src/models.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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...
38.079545
79
0.693723
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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...
0
9,184
0
0
0
0
0
-8
137
a31127b72b7d21ee24259615b6d11002355968cb
1,513
py
Python
Structural/composite.py
TheVikingGent/DesignPatterns4Python
ace9f577d9700fe290d80822230acb8e87833bc2
[ "MIT" ]
null
null
null
Structural/composite.py
TheVikingGent/DesignPatterns4Python
ace9f577d9700fe290d80822230acb8e87833bc2
[ "MIT" ]
null
null
null
Structural/composite.py
TheVikingGent/DesignPatterns4Python
ace9f577d9700fe290d80822230acb8e87833bc2
[ "MIT" ]
null
null
null
# Good old composite pattern # This is used when we want to create a hierachy of instances that contain other instances, # but we want to operate on all instances somewhat equally # Here the composite instances can contain other composites or leafs # All implement the operation method, where the composite will be sure...
26.086207
91
0.682089
import abc # Good old composite pattern # This is used when we want to create a hierachy of instances that contain other instances, # but we want to operate on all instances somewhat equally # Here the composite instances can contain other composites or leafs # All implement the operation method, where the composite w...
0
0
0
729
0
0
0
-11
91
d6b0e492861296d87420523ace08720910f389af
735
py
Python
bin/change_table_engine.py
Osso/dotfiles
26a079e140f9f9ba8117d42aa25a049807965093
[ "MIT" ]
3
2017-04-21T20:56:10.000Z
2019-06-10T09:24:14.000Z
bin/change_table_engine.py
Osso/dotfiles
26a079e140f9f9ba8117d42aa25a049807965093
[ "MIT" ]
null
null
null
bin/change_table_engine.py
Osso/dotfiles
26a079e140f9f9ba8117d42aa25a049807965093
[ "MIT" ]
null
null
null
#!/usr/bin/env python engine = 'innodb' host = 'localhost' db_name = '' user = '' passwd = '' skip_tables = () import MySQLdb db = MySQLdb.connect(user=user, passwd=passwd, db=db_name, host=host) c = db.cursor() c.execute("show tables") row = c.fetchone() while row: table = row[0] print 'Converting Table: %...
23.709677
116
0.623129
#!/usr/bin/env python engine = 'innodb' host = 'localhost' db_name = '' user = '' passwd = '' skip_tables = () import MySQLdb db = MySQLdb.connect(user=user, passwd=passwd, db=db_name, host=host) c = db.cursor() c.execute("show tables") row = c.fetchone() while row: table = row[0] print 'Converting Table: %...
0
0
0
0
0
0
0
0
0
b72d18c6f62c214e3983921081d4f4cd19c26629
247
py
Python
codechef/may_long_challenge/bella-ciao.py
abhishek-parashar/Right-From-Scratch
e596344b0db95cfdeba876676885f062ef5f7c23
[ "Apache-2.0" ]
null
null
null
codechef/may_long_challenge/bella-ciao.py
abhishek-parashar/Right-From-Scratch
e596344b0db95cfdeba876676885f062ef5f7c23
[ "Apache-2.0" ]
null
null
null
codechef/may_long_challenge/bella-ciao.py
abhishek-parashar/Right-From-Scratch
e596344b0db95cfdeba876676885f062ef5f7c23
[ "Apache-2.0" ]
null
null
null
t = int(input()) while(t>0): a=list(map(int,input().split(' '))) D=a[0] d=a[1] p=a[2] q=a[3] remainder=D%d n=D//d value=(n*p*d) + (d*q*(n*(n-1)//2))+(p*remainder+(remainder*q*n)) print(value,"\n") t=t-1
19
68
0.453441
t = int(input()) while(t>0): a=list(map(int,input().split(' '))) D=a[0] d=a[1] p=a[2] q=a[3] remainder=D%d n=D//d value=(n*p*d) + (d*q*(n*(n-1)//2))+(p*remainder+(remainder*q*n)) print(value,"\n") t=t-1
0
0
0
0
0
0
0
0
0
42a0c1b65965757cd699b5f4010098cef1cf0aa6
1,506
py
Python
twoject/urls.py
Daniel-Muruthi/poladapi
6a7c6d7a78f66c3ae2a2fdf6bebfc68c009aee36
[ "MIT" ]
null
null
null
twoject/urls.py
Daniel-Muruthi/poladapi
6a7c6d7a78f66c3ae2a2fdf6bebfc68c009aee36
[ "MIT" ]
null
null
null
twoject/urls.py
Daniel-Muruthi/poladapi
6a7c6d7a78f66c3ae2a2fdf6bebfc68c009aee36
[ "MIT" ]
null
null
null
"""twoject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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...
41.833333
82
0.73838
"""twoject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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...
0
0
0
0
0
0
0
87
66
4017feb743106024d7f6df30d888f397fc590313
1,640
py
Python
src/stat_logger.py
Waterkin/stocknet-code
6df878b599963e9fe31603dd55f78fd56e92f7d9
[ "MIT" ]
null
null
null
src/stat_logger.py
Waterkin/stocknet-code
6df878b599963e9fe31603dd55f78fd56e92f7d9
[ "MIT" ]
null
null
null
src/stat_logger.py
Waterkin/stocknet-code
6df878b599963e9fe31603dd55f78fd56e92f7d9
[ "MIT" ]
null
null
null
''' Date: 2022-01-11 16:05:39 LastEditors: Waterking LastEditTime: 2022-01-12 18:21:49 FilePath: /stocknet-code/src/stat_logger.py ''' #!/usr/local/bin/python import metrics as metrics
38.139535
142
0.681707
''' Date: 2022-01-11 16:05:39 LastEditors: Waterking LastEditTime: 2022-01-12 18:21:49 FilePath: /stocknet-code/src/stat_logger.py ''' #!/usr/local/bin/python import metrics as metrics from ConfigLoader import logger def print_batch_stat(n_iter, train_batch_loss, train_batch_n_acc, train_batch_size): iter_str = '...
0
0
0
0
0
1,351
0
10
91
6b3f6344429debb4b2157d0a395536e9054d9037
59,437
py
Python
rpm_s3/vendor/createrepo/createrepo/__init__.py
stackstate-lab/rpm-s3
6c7929fc6034a93787ab5596876c8d00826486db
[ "BSD-2-Clause" ]
null
null
null
rpm_s3/vendor/createrepo/createrepo/__init__.py
stackstate-lab/rpm-s3
6c7929fc6034a93787ab5596876c8d00826486db
[ "BSD-2-Clause" ]
null
null
null
rpm_s3/vendor/createrepo/createrepo/__init__.py
stackstate-lab/rpm-s3
6c7929fc6034a93787ab5596876c8d00826486db
[ "BSD-2-Clause" ]
null
null
null
# 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 your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
41.88654
536
0.549876
# 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 your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
0
0
0
57,618
0
0
0
198
707
0eeccddff39a938a9bf70a0b4760664618aed5eb
11,176
py
Python
BERT/bert_utils.py
HenryPaik1/paper_implement
fe1204209ab0830d8c58618218a8f2c0a1325721
[ "MIT" ]
null
null
null
BERT/bert_utils.py
HenryPaik1/paper_implement
fe1204209ab0830d8c58618218a8f2c0a1325721
[ "MIT" ]
null
null
null
BERT/bert_utils.py
HenryPaik1/paper_implement
fe1204209ab0830d8c58618218a8f2c0a1325721
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import json def create_pretrain_mask(tokens, mask_cnt, vocab_list): """ masking subwords(15% of entire subwords) - mask_cnt: len(subwords) * 0.15 - [MASK]: 80% of masking candidate token - original token: 10% of masking candidate token - ano...
38.013605
114
0.548676
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader import json def create_pretrain_mask(tokens, mask_cnt, vocab_list): """ masking subwords(15% of entire subwords) - mask_cnt: len(subwords) * 0.15 - [MASK]: 80% of maski...
96
0
0
1,736
0
761
0
37
110
bda34656d83aebce4f85163d20f15b0987373b21
735
py
Python
covidscholar_web/scraping/journal_prediction.py
COVID-19-Text-Mining/website
d0314290d61431ddf694d64d96fb15fc872110cd
[ "MIT" ]
null
null
null
covidscholar_web/scraping/journal_prediction.py
COVID-19-Text-Mining/website
d0314290d61431ddf694d64d96fb15fc872110cd
[ "MIT" ]
null
null
null
covidscholar_web/scraping/journal_prediction.py
COVID-19-Text-Mining/website
d0314290d61431ddf694d64d96fb15fc872110cd
[ "MIT" ]
null
null
null
from matscholar import Rester import bson import tqdm import os import pymongo client = pymongo.MongoClient('mongodb+srv://%s:%s@matstract-kve41.mongodb.net/test:27017' % (os.getenv('ATLAS_USER_RW'), os.getenv('ATLAS_USER_PASSWORD_RW')), authSource='admin') db = client['matstract_db'] c = ...
26.25
115
0.647619
from matscholar import Rester import bson import tqdm import os import pymongo client = pymongo.MongoClient('mongodb+srv://%s:%s@matstract-kve41.mongodb.net/test:27017' % (os.getenv('ATLAS_USER_RW'), os.getenv('ATLAS_USER_PASSWORD_RW')), authSource='admin') db = client['matstract_db'] c = ...
0
0
0
0
0
0
0
0
0
637ffeeae8697f699c352d40c502c391e37f239e
6,353
py
Python
opensnips/old/docker-images/rasa/snips_services/rasa_snips_extensions.py
syntithenai/opensnips
dd3dc629082ab8400da6fcdbf7d4ad5baf877848
[ "BSD-2-Clause" ]
57
2017-12-28T22:50:20.000Z
2022-01-25T16:05:36.000Z
opensnips/old/docker-images/rasa/snips_services/rasa_snips_extensions.py
syntithenai/opensnips
dd3dc629082ab8400da6fcdbf7d4ad5baf877848
[ "BSD-2-Clause" ]
28
2018-04-18T06:45:20.000Z
2022-03-08T22:50:50.000Z
opensnips/old/docker-images/rasa/snips_services/rasa_snips_extensions.py
syntithenai/opensnips
dd3dc629082ab8400da6fcdbf7d4ad5baf877848
[ "BSD-2-Clause" ]
18
2017-12-27T01:57:14.000Z
2021-03-02T14:13:06.000Z
#!/usr/local/bin/python # -*-: coding utf-8 -*- """ Snips core and nlu server. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os # Customised Agent class to use custom SnipsDomain and pass core server thro...
43.217687
186
0.668031
#!/usr/local/bin/python # -*-: coding utf-8 -*- """ Snips core and nlu server. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from rasa_core.agent import Agent import os import os.path import re from rasa_core.do...
0
2,996
0
2,145
0
0
0
336
404
5d0af14cacf81bc84d5e76077f5732b56de324b1
4,688
py
Python
mainBIDIRLSTM.py
SqrtPapere/SentimentAnalysis_CNN
e802780c8f7b6747832cb53b9a4391e9494c73a7
[ "MIT" ]
17
2018-02-02T14:09:23.000Z
2020-08-06T21:02:49.000Z
mainBIDIRLSTM.py
SqrtPapere/SentimentAnalysis_CNN
e802780c8f7b6747832cb53b9a4391e9494c73a7
[ "MIT" ]
null
null
null
mainBIDIRLSTM.py
SqrtPapere/SentimentAnalysis_CNN
e802780c8f7b6747832cb53b9a4391e9494c73a7
[ "MIT" ]
1
2018-09-10T21:33:14.000Z
2018-09-10T21:33:14.000Z
# https://machinelearningmastery.com/predict-sentiment-movie-reviews-using-deep-learning/ import numpy as np from keras.preprocessing.sequence import pad_sequences from keras.callbacks import EarlyStopping, TensorBoard, ModelCheckpoint from keras.layers import Embedding, Dense, Input, Dropout from keras.models import...
32.783217
337
0.760666
# https://machinelearningmastery.com/predict-sentiment-movie-reviews-using-deep-learning/ import os import numpy as np from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from keras.utils import to_categorical from keras.callbacks import EarlyStopping, TensorBoard, Mo...
8
0
0
0
0
484
0
71
113
db1ac4b09e1eda87653b1a76cc69bb491c457300
602
py
Python
atools/lib/moieties/multiple_ports/nh.py
dubosese/atools
9d6f9e08310f3abb62aa6ec9e6003dcf9b87b513
[ "MIT" ]
null
null
null
atools/lib/moieties/multiple_ports/nh.py
dubosese/atools
9d6f9e08310f3abb62aa6ec9e6003dcf9b87b513
[ "MIT" ]
null
null
null
atools/lib/moieties/multiple_ports/nh.py
dubosese/atools
9d6f9e08310f3abb62aa6ec9e6003dcf9b87b513
[ "MIT" ]
3
2020-05-11T15:56:03.000Z
2021-08-19T01:16:26.000Z
if __name__ == '__main__': nh = NH()
27.363636
76
0.518272
import mbuild as mb class NH(mb.Compound): """A nitrogen with a hydrogen and two open ports. """ def __init__(self): super(NH, self).__init__() mb.load('nh.pdb', compound=self, relative_to_module=self.__module__) self.translate(-self[0].pos) self.add(mb.Port(anchor=self[0], ...
0
0
0
516
0
0
0
-2
45
68ba827dc155847247b30954d6c05b08b801fa7d
1,287
py
Python
ThreeBotPackages/threebot/blog/package.py
Pishoy/jumpscaleX_threebot
781e839857fecfa601a31d98d86d304e3a6b3b4e
[ "Apache-2.0" ]
null
null
null
ThreeBotPackages/threebot/blog/package.py
Pishoy/jumpscaleX_threebot
781e839857fecfa601a31d98d86d304e3a6b3b4e
[ "Apache-2.0" ]
null
null
null
ThreeBotPackages/threebot/blog/package.py
Pishoy/jumpscaleX_threebot
781e839857fecfa601a31d98d86d304e3a6b3b4e
[ "Apache-2.0" ]
null
null
null
__version__ = "0.0.1"
27.382979
65
0.609169
from Jumpscale import j import os __version__ = "0.0.1" class Package(j.baseclasses.threebot_package): def _init(self, **kwargs): self.branch = kwargs["package"].branch or "master" os.environ["dev"] = "0" self.DEV = os.environ.get("dev") def prepare(self): j.builders.runtimes...
0
0
0
1,206
0
0
0
-10
67
b4bb3da2bc5ad348643bcaf9d44ca34ee09b2c5d
15,534
py
Python
instrosetta/interfaces/optomechanics/filter_wheel_pb2_grpc.py
jmosbacher/instrosetta-python
b323ee4d3db0b7d8e22ec731dac521c967e5323d
[ "MIT" ]
null
null
null
instrosetta/interfaces/optomechanics/filter_wheel_pb2_grpc.py
jmosbacher/instrosetta-python
b323ee4d3db0b7d8e22ec731dac521c967e5323d
[ "MIT" ]
null
null
null
instrosetta/interfaces/optomechanics/filter_wheel_pb2_grpc.py
jmosbacher/instrosetta-python
b323ee4d3db0b7d8e22ec731dac521c967e5323d
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
57.962687
143
0.810609
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from instrosetta.interfaces.optomechanics import filter_wheel_pb2 as instrosetta_dot_interfaces_dot_optomechanics_dot_filter__wheel__pb2 class FilterWheelStub(object): # missing associated documentation comment in .proto file pass ...
0
0
0
9,822
0
5,420
0
105
114
fa6cf6b2736d1fc6ebd9c3b07176a84c77cb8f2b
3,274
py
Python
Discrete_Structures/Exams/Exam_Ch_05_Sequences/Fibo_Exam.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
null
null
null
Discrete_Structures/Exams/Exam_Ch_05_Sequences/Fibo_Exam.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
null
null
null
Discrete_Structures/Exams/Exam_Ch_05_Sequences/Fibo_Exam.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
null
null
null
print('hello') """ Compare the number of operations and the time needed to compute Fibonacci numbers recursively versus that needed to compute them iteratively """ # recursive work # Python program to display the Fibonacci sequence import time recursive_data = Data_tracker() number_of_terms = 40 recursive_data.s...
27.745763
87
0.703726
print('hello') """ Compare the number of operations and the time needed to compute Fibonacci numbers recursively versus that needed to compute them iteratively """ class Data_tracker: def __init__(self): self.data = [] self.number_of_times_function_called = 0 self.if_count = 0 self...
0
0
0
1,094
0
373
0
0
46
2bc0aff7c339f85f8d7761d9cc25bcfe9cb86616
23,532
py
Python
commands/arch/network.py
naterh/openstack-guest-agents-unix
b6262b190d355f6469d95f462be0db53e3eb7ede
[ "Apache-2.0" ]
15
2015-01-06T21:58:24.000Z
2018-11-27T09:34:14.000Z
commands/arch/network.py
naterh/openstack-guest-agents-unix
b6262b190d355f6469d95f462be0db53e3eb7ede
[ "Apache-2.0" ]
9
2015-03-06T02:11:29.000Z
2021-03-13T07:13:45.000Z
commands/arch/network.py
naterh/openstack-guest-agents-unix
b6262b190d355f6469d95f462be0db53e3eb7ede
[ "Apache-2.0" ]
18
2015-03-05T21:28:09.000Z
2020-09-16T11:07:21.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2011 Openstack, 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...
31.8
91
0.582738
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2011 Openstack, 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...
0
0
0
0
0
11,829
0
0
184
59a26a64c2087146b79e13ddeb5f087f09ca346a
405
py
Python
2019/day8/day8p2.py
darkterbear/advent-of-code-2015
543d5a70c4b4c84081602cfa3d0ba05fe0693e54
[ "MIT" ]
null
null
null
2019/day8/day8p2.py
darkterbear/advent-of-code-2015
543d5a70c4b4c84081602cfa3d0ba05fe0693e54
[ "MIT" ]
2
2019-12-01T20:03:18.000Z
2021-05-11T22:41:00.000Z
2019/day8/day8p2.py
darkterbear/advent-of-code-2015
543d5a70c4b4c84081602cfa3d0ba05fe0693e54
[ "MIT" ]
null
null
null
file = open('./input') w = 25 h = 6 ppl = 25 * 6 line = file.readline() layers = [] for start in range(0, len(line), ppl): layer = line[start:start+ppl] layers.append([int(pixel) for pixel in layer]) img = [] for i in range(ppl): for layer in layers: if layer[i] != 2: img.append(lay...
16.875
50
0.548148
file = open('./input') w = 25 h = 6 ppl = 25 * 6 line = file.readline() layers = [] for start in range(0, len(line), ppl): layer = line[start:start+ppl] layers.append([int(pixel) for pixel in layer]) img = [] for i in range(ppl): for layer in layers: if layer[i] != 2: img.append(lay...
0
0
0
0
0
0
0
0
0
1341ac4d38b8fda3bf9982fdf4b559b6ffc792e4
7,383
py
Python
sdk/python/pulumi_azure_native/media/v20200201preview/media_graph.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/media/v20200201preview/media_graph.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/media/v20200201preview/media_graph.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from ... import _utilities, _tables __all__ = ['MediaGraph']
40.565934
372
0.63592
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
0
2,438
0
4,511
0
0
0
32
156
b7f149b954644c463a51e9ebf379826302cf2926
3,210
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/word-ladder-ii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/word-ladder-ii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/word-ladder-ii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(b^(d/2)), b is the branch factor of bfs, d is the result depth # Space: O(w * l), w is the number of words, l is the max length of words # Time: O(b^d), b is the branch factor of bfs, d is the result depth # Space: O(w * l), w is the number of words, l is the max length of words
36.477273
153
0.523364
# Time: O(b^(d/2)), b is the branch factor of bfs, d is the result depth # Space: O(w * l), w is the number of words, l is the max length of words from collections import defaultdict from string import ascii_lowercase class Solution(object): def findLadders(self, beginWord, endWord, wordList): """ ...
0
0
0
2,798
0
0
0
27
90
52fc3fbf8e15f41bb79aedf817ef0eba6c4362d9
551
py
Python
app.py
patbahls/simple-slash-commands
feba84924db94d478c104108a245a4e120009a6a
[ "Apache-2.0" ]
null
null
null
app.py
patbahls/simple-slash-commands
feba84924db94d478c104108a245a4e120009a6a
[ "Apache-2.0" ]
null
null
null
app.py
patbahls/simple-slash-commands
feba84924db94d478c104108a245a4e120009a6a
[ "Apache-2.0" ]
null
null
null
from bottle import run import os if __name__ == '__main__': port_config = int(os.getenv('PORT', 5000)) run(host='0.0.0.0', port=port_config)
26.238095
79
0.678766
from bottle import run,post,request,response,route import os import urllib @post('/test') def simple_test(): return "Hello World!" @route('/path',method="post") def gen_path_3(): postdata = request.forms.get("text") output_path = str("sndwserv:/" + urllib.quote(postdata)) package = {"response_type": "...
0
312
0
0
0
0
0
20
68
99037d2d3a9ce73ad64ac10eb1f078ef701d0abc
921
py
Python
main.py
Fabricio872/popcorn-detector
7ebf92a05d9761632ef63db5ebfbe61791b25e1f
[ "MIT" ]
null
null
null
main.py
Fabricio872/popcorn-detector
7ebf92a05d9761632ef63db5ebfbe61791b25e1f
[ "MIT" ]
null
null
null
main.py
Fabricio872/popcorn-detector
7ebf92a05d9761632ef63db5ebfbe61791b25e1f
[ "MIT" ]
null
null
null
duration = 50 # in seconds warmup_time = 2 # in seconds max_pop_time = 3 # in seconds time pop_threshold = 15 # in volume units min_pop_time = 512 # in milliseconds pop_times = [] if __name__ == '__main__': main()
24.236842
88
0.648208
import time as time_lib import numpy as np import sounddevice as sd duration = 50 # in seconds warmup_time = 2 # in seconds max_pop_time = 3 # in seconds time pop_threshold = 15 # in volume units min_pop_time = 512 # in milliseconds pop_times = [] def pop_time(): return time_lib.time() - pop_times[-1] de...
0
0
0
0
0
554
0
2
136
13b4db6faf2877c8928a23eab3d719532df2d032
2,076
py
Python
RBM/Function.py
Shoeboxam/Neural_Network
61da4c2e4f6603a08042612d5ff2fe334ee7b20f
[ "MIT" ]
3
2017-03-11T07:21:46.000Z
2017-09-01T20:12:06.000Z
RBM/Function.py
Shoeboxam/Neural_Network
61da4c2e4f6603a08042612d5ff2fe334ee7b20f
[ "MIT" ]
null
null
null
RBM/Function.py
Shoeboxam/Neural_Network
61da4c2e4f6603a08042612d5ff2fe334ee7b20f
[ "MIT" ]
null
null
null
# Functions specific to restricted boltzmann machines # Adapted from MFP/Functions.py import numpy as np # BASIS FUNCTIONS: Regression # Diagonalize first dimension of an n-dimensional array tau = 1 # Sigmoid threshold unit basis_logistic = Function('basis', 'logistic', # Commonly known as 'Sigmoid' ...
31.454545
107
0.545279
# Functions specific to restricted boltzmann machines # Adapted from MFP/Functions.py import numpy as np class Function(object): def __init__(self, usage, name, evaluators): self.usage = usage self.name = name self._evaluator = evaluators def __call__(self, *args, d=0): # The...
0
0
0
427
0
56
0
0
45
5d50bf14a02af4c7549f9d42e27dbbd297324aa3
367
py
Python
manet/data/__init__.py
jonasteuwen/manet-old
fb20c98f7e5c89a5ffe89d851ee84e7b65c5e229
[ "BSD-2-Clause" ]
1
2021-02-23T04:51:19.000Z
2021-02-23T04:51:19.000Z
manet/data/__init__.py
jonasteuwen/manet-old
fb20c98f7e5c89a5ffe89d851ee84e7b65c5e229
[ "BSD-2-Clause" ]
null
null
null
manet/data/__init__.py
jonasteuwen/manet-old
fb20c98f7e5c89a5ffe89d851ee84e7b65c5e229
[ "BSD-2-Clause" ]
1
2021-02-23T04:51:20.000Z
2021-02-23T04:51:20.000Z
# encoding: utf-8
22.9375
77
0.683924
# encoding: utf-8 from manet.utils import read_image import os def curr_path(fn): dirname = os.path.dirname(os.path.realpath(__file__)) return os.path.join(dirname, fn) def prob_map(name='one'): prob, metadata = read_image(curr_path('prediction_{}.nrrd'.format(name))) prob = prob[0] metadata['sp...
0
0
0
0
0
256
0
1
90
01695a3f6dfb24dd21ee39aa1da81801ab132d5e
621
py
Python
src/cogs/ide/ide.py
Kraots/Jarvide
75d8405dc836b1acf9c4b2abaf85fd769e6e424a
[ "MIT" ]
null
null
null
src/cogs/ide/ide.py
Kraots/Jarvide
75d8405dc836b1acf9c4b2abaf85fd769e6e424a
[ "MIT" ]
null
null
null
src/cogs/ide/ide.py
Kraots/Jarvide
75d8405dc836b1acf9c4b2abaf85fd769e6e424a
[ "MIT" ]
null
null
null
from disnake.ext import commands def setup(bot: commands.Bot) -> None: """Setup Ide cog""" bot.add_cog(Ide(bot))
24.84
80
0.671498
from .dialogs import OpenView from src.utils import EmbedFactory from disnake.ext import commands class Ide(commands.Cog): """Ide cog""" def __init__(self, bot: commands.Bot): self.bot = bot @commands.command() @commands.max_concurrency(1, commands.BucketType.channel) async def ide(self,...
0
293
0
115
0
0
0
21
67
7ed307be5ec1a721f724f1bc0d44636969fa0963
957
py
Python
deps/cmark/tools/make_entities_inc.py
cboettig/hash-archive
2f50fdc2929f60447b00561901d59c4ce83651c3
[ "MIT" ]
1,212
2015-03-26T19:08:16.000Z
2022-01-10T08:32:45.000Z
SymbolExtractorAndRenamer/cmark/tools/make_entities_inc.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
114
2015-03-26T18:30:53.000Z
2017-07-21T16:25:36.000Z
SymbolExtractorAndRenamer/cmark/tools/make_entities_inc.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
76
2015-07-29T14:39:04.000Z
2021-04-12T07:31:47.000Z
# Creates C data structures for binary lookup table of entities, # using python's html5 entity data. # Usage: python3 tools/make_entities_inc.py > src/entities.inc import html entities5 = html.entities.html5 # remove keys without semicolons. For some reason the list # has duplicates of a few things, like auml, one ...
29
101
0.69697
# Creates C data structures for binary lookup table of entities, # using python's html5 entity data. # Usage: python3 tools/make_entities_inc.py > src/entities.inc import html entities5 = html.entities.html5 # remove keys without semicolons. For some reason the list # has duplicates of a few things, like auml, one ...
0
0
0
0
0
0
0
0
0
3b0460cc9b63041c3382b63ad2dae215e4a417a0
1,128
py
Python
Python/LearnPythonTheHardWay/ex31.py
bryarcole/The-Portfolio
62c2573ce4f007dccf5be1d67daf97286d6b4a5e
[ "MIT" ]
null
null
null
Python/LearnPythonTheHardWay/ex31.py
bryarcole/The-Portfolio
62c2573ce4f007dccf5be1d67daf97286d6b4a5e
[ "MIT" ]
null
null
null
Python/LearnPythonTheHardWay/ex31.py
bryarcole/The-Portfolio
62c2573ce4f007dccf5be1d67daf97286d6b4a5e
[ "MIT" ]
null
null
null
print "You enter a dark room with two doors. Do you go thorugh door #1 or door # 2" door = raw_input(">" ) if door == "1": print "Theres a giant bear here earting a cheescake. What do you do?" print "Option '1'. Take the cake" print "Option '2'. Scream at the bear." bear = raw_input("> ") if bea...
34.181818
83
0.636525
print "You enter a dark room with two doors. Do you go thorugh door #1 or door # 2" door = raw_input(">" ) if door == "1": print "Theres a giant bear here earting a cheescake. What do you do?" print "Option '1'. Take the cake" print "Option '2'. Scream at the bear." bear = raw_input("> ") if bea...
0
0
0
0
0
0
0
0
0
216c7186aa0df89e03e4f63334c276700d96765c
2,881
py
Python
settings/Julich_chopper_modes_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/Julich_chopper_modes_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/Julich_chopper_modes_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
line0.timing_system.channels.hsc.delay = 4.97e-06 line0.Phase [s] = 5.4527e-06 line0.ChopX = 36.78 line0.ChopY = 30.11 line0.description = 'S-1t' line0.updated = '2019-05-30 14:18:48' line1.timing_system.channels.hsc.delay = 0.0 line1.ChopX = 36.78 line1.ChopY = 31.136 line1.description = 'S-1' line1.updated = '2019-05...
33.5
94
0.737244
line0.timing_system.channels.hsc.delay = 4.97e-06 line0.Phase [s] = 5.4527e-06 line0.ChopX = 36.78 line0.ChopY = 30.11 line0.description = 'S-1t' line0.updated = '2019-05-30 14:18:48' line1.timing_system.channels.hsc.delay = 0.0 line1.ChopX = 36.78 line1.ChopY = 31.136 line1.description = 'S-1' line1.updated = '2019-05...
0
0
0
0
0
0
0
0
0
0f65b48452a107e448f515377b6c8ebc0545e05b
1,520
py
Python
example/classifier_shogun.py
vishalbelsare/jubakit
f6252ba627ce4e2e42eb9aafaaf05c882bc1c678
[ "MIT" ]
12
2016-04-11T04:49:08.000Z
2019-02-08T01:43:46.000Z
example/classifier_shogun.py
vishalbelsare/jubakit
f6252ba627ce4e2e42eb9aafaaf05c882bc1c678
[ "MIT" ]
138
2016-04-11T05:57:48.000Z
2020-09-26T03:09:31.000Z
example/classifier_shogun.py
vishalbelsare/jubakit
f6252ba627ce4e2e42eb9aafaaf05c882bc1c678
[ "MIT" ]
10
2016-04-11T03:18:45.000Z
2018-04-14T10:11:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals """ Using Classifier and String Features ======================================== This is a famous `shogun` classifier example that predicts family name of Shogun from his first name. """ ...
27.142857
110
0.710526
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals """ Using Classifier and String Features ======================================== This is a famous `shogun` classifier example that predicts family name of Shogun from his first name. """ ...
0
0
0
0
0
0
0
0
0
e48653b6767ad90aa0abfd6ebe35c13ae15166f0
1,024
py
Python
labs/lab-10/fileScale.py
schnur/oss-repo-template
d9e3ea7cae43dd1dd1ff7acef8b1249f3a95a848
[ "MIT" ]
null
null
null
labs/lab-10/fileScale.py
schnur/oss-repo-template
d9e3ea7cae43dd1dd1ff7acef8b1249f3a95a848
[ "MIT" ]
null
null
null
labs/lab-10/fileScale.py
schnur/oss-repo-template
d9e3ea7cae43dd1dd1ff7acef8b1249f3a95a848
[ "MIT" ]
null
null
null
from PIL import Image import matplotlib.pyplot as plt import numpy as np from PIL import ImageOps '''def turnWhite(imageName, newName): img = Image.open(imageName+'.png') img = img.convert("RGBA") datas = img.getdata() newData = [] for item in datas: if item[3]!=0: newData.appe...
22.26087
66
0.636719
from PIL import Image import matplotlib.pyplot as plt import numpy as np from PIL import ImageOps '''def turnWhite(imageName, newName): img = Image.open(imageName+'.png') img = img.convert("RGBA") datas = img.getdata() newData = [] for item in datas: if item[3]!=0: newData.appe...
0
0
0
0
0
0
0
0
0
a636144d3d5c2b26863dc0a67f5fc0f3e314319a
1,813
py
Python
hemp/web/services/nso.py
nobuhikosekiya/sbx_multi_ios
9a8e540617d46fd98f466d89e1f9af4f8a1797aa
[ "MIT" ]
64
2018-08-18T01:13:18.000Z
2021-12-09T17:46:35.000Z
hemp/web/services/nso.py
nobuhikosekiya/sbx_multi_ios
9a8e540617d46fd98f466d89e1f9af4f8a1797aa
[ "MIT" ]
45
2018-08-16T21:26:11.000Z
2021-12-13T19:58:20.000Z
hemp/web/services/nso.py
nobuhikosekiya/sbx_multi_ios
9a8e540617d46fd98f466d89e1f9af4f8a1797aa
[ "MIT" ]
37
2018-09-23T04:09:53.000Z
2021-11-11T16:39:37.000Z
import os import requests from base64 import b64encode BASE_URL = os.getenv("NSO_URL", "http://localhost:8080") API_ROOT = BASE_URL + '/api/running' NSO_USERNAME = os.getenv("NSO_USERNAME", "admin") NSO_PASSWORD = os.getenv("NSO_PASSWORD", "admin") HEADERS = { 'Content-Type': "application/vnd.yang.data+json", ...
32.375
73
0.599559
import os import requests from base64 import b64encode from flask import render_template BASE_URL = os.getenv("NSO_URL", "http://localhost:8080") API_ROOT = BASE_URL + '/api/running' NSO_USERNAME = os.getenv("NSO_USERNAME", "admin") NSO_PASSWORD = os.getenv("NSO_PASSWORD", "admin") HEADERS = { 'Content-Type': "a...
0
0
0
0
0
740
0
12
91
5963efd1925be94ab61751d8d9cca058c69ecbc8
1,453
py
Python
scripts/vcftools_pi_region.py
godzilla-but-nicer/INFO590-term-project
4c8270cfb667ef38c4c4bd5bd0c010949280ce75
[ "MIT" ]
null
null
null
scripts/vcftools_pi_region.py
godzilla-but-nicer/INFO590-term-project
4c8270cfb667ef38c4c4bd5bd0c010949280ce75
[ "MIT" ]
null
null
null
scripts/vcftools_pi_region.py
godzilla-but-nicer/INFO590-term-project
4c8270cfb667ef38c4c4bd5bd0c010949280ce75
[ "MIT" ]
1
2020-11-02T00:23:08.000Z
2020-11-02T00:23:08.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd import sys # load a datafile, handle some command line args smoothing = int(sys.argv[2]) # window size for smoothing data_file = sys.argv[1] name = data_file.split('/')[-1].split('.')[0] # used in output df = pd.read_csv(data_file, index_col=None, ...
33.790698
120
0.734343
import matplotlib.pyplot as plt import numpy as np import pandas as pd import sys # load a datafile, handle some command line args smoothing = int(sys.argv[2]) # window size for smoothing data_file = sys.argv[1] name = data_file.split('/')[-1].split('.')[0] # used in output df = pd.read_csv(data_file, index_col=None, ...
0
0
0
0
0
0
0
0
0
77497299eae4d24d8b5e97a524c3c366fa1194ce
678
py
Python
app/__init__.py
toledoneto/sistema_login
79223decd228c18f52bf8fed2b79361455ad7fa2
[ "MIT" ]
null
null
null
app/__init__.py
toledoneto/sistema_login
79223decd228c18f52bf8fed2b79361455ad7fa2
[ "MIT" ]
null
null
null
app/__init__.py
toledoneto/sistema_login
79223decd228c18f52bf8fed2b79361455ad7fa2
[ "MIT" ]
null
null
null
from bottle import Bottle, TEMPLATE_PATH from bottle.ext import sqlalchemy from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base #from sqlalchemy.orm import sessionmaker Base = declarative_base() engine = create_engine('sqlite:///database.db', echo = True) #create_session...
28.25
61
0.699115
from bottle import Bottle, TEMPLATE_PATH from bottle.ext import sqlalchemy from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base #from sqlalchemy.orm import sessionmaker Base = declarative_base() engine = create_engine('sqlite:///database.db', echo = True) #create_session...
0
0
0
0
0
0
0
22
47
944b1a4eae46848bf72f467c30cdf93199d1913b
211
py
Python
plgx-esp/tests/test_celery/test_celery.py
eclecticiq/eiq-er-ce
ebb12d5c4e0ee144f8166576924b8ce8dc5dfc94
[ "MIT" ]
null
null
null
plgx-esp/tests/test_celery/test_celery.py
eclecticiq/eiq-er-ce
ebb12d5c4e0ee144f8166576924b8ce8dc5dfc94
[ "MIT" ]
null
null
null
plgx-esp/tests/test_celery/test_celery.py
eclecticiq/eiq-er-ce
ebb12d5c4e0ee144f8166576924b8ce8dc5dfc94
[ "MIT" ]
2
2021-11-12T10:25:02.000Z
2022-03-30T06:33:52.000Z
# # -*- coding: utf-8 -*-
23.444444
47
0.663507
# # -*- coding: utf-8 -*- from polylogyx.celery.tasks import example_task class TestCelery: def test_celery_simple(self,celery_worker): res = example_task.delay(1, 2) assert res.get() == 3
0
0
0
113
0
0
0
26
45
1707c9e1271bd1f3982869b3232fb3258eeb474a
6,242
py
Python
methods/mahalanobis_ensemble.py
christophbrgr/ood_detection_framework
c3b7e3064ed8ee4aeb112cd2ab946ee41636f79f
[ "MIT" ]
7
2021-07-26T14:28:51.000Z
2021-11-18T13:20:00.000Z
methods/mahalanobis_ensemble.py
christophbrgr/ood_detection_framework
c3b7e3064ed8ee4aeb112cd2ab946ee41636f79f
[ "MIT" ]
null
null
null
methods/mahalanobis_ensemble.py
christophbrgr/ood_detection_framework
c3b7e3064ed8ee4aeb112cd2ab946ee41636f79f
[ "MIT" ]
null
null
null
import torch.nn as nn
32.175258
155
0.60141
import torch import torch.nn as nn import numpy as np from torch.autograd import Variable import sys from tqdm import tqdm from util import helpers from util.mahalanobis_lib import get_Mahalanobis_score, sample_estimator, sample_estimator_cifar10 from util.metrics import get_metrics def eval(path_in, path_out, model...
0
0
0
0
0
5,887
0
86
246
6f7644da3b3841b77e76a862a2ddd1f5d134c822
5,824
py
Python
custom_components/unifiprotect/number.py
mjdyson/unifiprotect
42846cc4e3c77dc93e7008d45919bdc0965fd336
[ "MIT" ]
546
2019-12-28T13:37:24.000Z
2022-03-29T18:48:54.000Z
custom_components/unifiprotect/number.py
mjdyson/unifiprotect
42846cc4e3c77dc93e7008d45919bdc0965fd336
[ "MIT" ]
358
2020-01-01T11:17:24.000Z
2022-02-03T17:34:00.000Z
custom_components/unifiprotect/number.py
mjdyson/unifiprotect
42846cc4e3c77dc93e7008d45919bdc0965fd336
[ "MIT" ]
51
2020-01-12T21:35:06.000Z
2022-02-01T06:26:27.000Z
"""This component provides number entities for UniFi Protect.""" from __future__ import annotations import logging from homeassistant.const import ENTITY_CATEGORY_CONFIG _LOGGER = logging.getLogger(__name__) _KEY_WDR = "wdr_value" _KEY_MIC_LEVEL = "mic_level" _KEY_ZOOM_POS = "zoom_position" _KEY_SENSITIVITY = "sensit...
30.176166
81
0.685783
"""This component provides number entities for UniFi Protect.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta import logging from typing import Callable, Sequence from homeassistant.components.number import NumberEntity, NumberEntityDescription from homeassistant...
0
720
953
675
0
0
0
312
381
af8460c21a11a051c1a66f7447d560926f9c0c4f
2,929
py
Python
Food_recognition/detection.py
KiaKafaei1/Data_Science_Portfolio
9bfa29632d664c6bad9589106e47a455041f0d2c
[ "MIT" ]
null
null
null
Food_recognition/detection.py
KiaKafaei1/Data_Science_Portfolio
9bfa29632d664c6bad9589106e47a455041f0d2c
[ "MIT" ]
null
null
null
Food_recognition/detection.py
KiaKafaei1/Data_Science_Portfolio
9bfa29632d664c6bad9589106e47a455041f0d2c
[ "MIT" ]
null
null
null
import torch import torch.nn as nn # run GPU .... if(torch.cuda.is_available()): device = torch.device("cuda") print(device, torch.cuda.get_device_name(0)) else: device= torch.device("cpu") print(device) size = (7, 7)
35.719512
141
0.694776
import matplotlib import numpy as np import pandas as pd import torch import torchvision import torch.nn as nn import torch.nn.functional as F from torchvision import transforms import cv2 from PIL import Image import matplotlib.pyplot as plt import glob import os from IPython.display import clear_output from skimage.i...
0
0
0
2,289
0
0
0
28
375
c31bb9d4e562c5d10b963674924d5c37a9969fc1
3,860
py
Python
cctbx/examples/maximum_subgroups.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
cctbx/examples/maximum_subgroups.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
cctbx/examples/maximum_subgroups.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
""" Construct all subgroup graphs and their relations between them from a single space group. """ from __future__ import absolute_import, division, print_function import sys if __name__=="__main__": if len(sys.argv)>1: run_single( sys.argv[1],True,True ) else: run_all()
29.022556
159
0.639119
""" Construct all subgroup graphs and their relations between them from a single space group. """ from __future__ import absolute_import, division, print_function from cctbx import sgtbx from cctbx.sgtbx import show_cosets from cctbx.sgtbx import pointgroup_tools from cctbx.development import debug_utils import sys ...
0
0
0
0
0
3,307
0
55
204
9563a427a32e6e758e49cc28d99803a1391285d3
771
py
Python
src/turn_definitions_into_lists.py
yizhongw/natural-instructions
f4430d16168a5aafb3d05458c2d21c0ff3da258a
[ "Apache-2.0" ]
null
null
null
src/turn_definitions_into_lists.py
yizhongw/natural-instructions
f4430d16168a5aafb3d05458c2d21c0ff3da258a
[ "Apache-2.0" ]
null
null
null
src/turn_definitions_into_lists.py
yizhongw/natural-instructions
f4430d16168a5aafb3d05458c2d21c0ff3da258a
[ "Apache-2.0" ]
null
null
null
tasks_path = 'tasks/' if __name__ == "__main__": update_definitions(tasks_path)
30.84
93
0.57847
import json import os from os import listdir, path from os.path import isfile, join tasks_path = 'tasks/' def update_definitions(tasks_path): files = [join(tasks_path, f) for f in listdir(tasks_path) if isfile(join(tasks_path, f))] files.sort() for file in files: if file.endswith('.json'): ...
0
0
0
0
0
579
0
-4
110
2926d3868b170bf1ba0ad2e82deaf83a8c9c3225
281
py
Python
sklearn_export/estimator/scaler/Scaler.py
zwelz3/sklearn-export
6692d94f8a592e8f3c9f21d672d8aa814e4d1473
[ "MIT" ]
4
2019-03-02T14:18:36.000Z
2021-11-09T08:10:32.000Z
sklearn_export/estimator/scaler/Scaler.py
zwelz3/sklearn-export
6692d94f8a592e8f3c9f21d672d8aa814e4d1473
[ "MIT" ]
3
2019-05-03T03:54:36.000Z
2022-02-14T03:57:24.000Z
sklearn_export/estimator/scaler/Scaler.py
zwelz3/sklearn-export
6692d94f8a592e8f3c9f21d672d8aa814e4d1473
[ "MIT" ]
1
2022-02-21T00:46:29.000Z
2022-02-21T00:46:29.000Z
# -*- coding: utf-8 -*-
23.416667
57
0.669039
# -*- coding: utf-8 -*- from sklearn_export.Template import Template class Scaler(Template): def __init__(self, estimator, **kwargs): # pylint: disable=unused-argument super(Scaler, self).__init__(estimator, **kwargs) self.estimator_type = 'scaler'
0
0
0
187
0
0
0
23
46
c5d5dc0bb745afa2ef1f37a5aa65c490fd7217c8
1,825
py
Python
taxamo/models/settlement_daily_stats_schema.py
piotrts/taxamo-python
be3b46a6ec320166999987b65384376be6f57111
[ "Apache-2.0" ]
null
null
null
taxamo/models/settlement_daily_stats_schema.py
piotrts/taxamo-python
be3b46a6ec320166999987b65384376be6f57111
[ "Apache-2.0" ]
null
null
null
taxamo/models/settlement_daily_stats_schema.py
piotrts/taxamo-python
be3b46a6ec320166999987b65384376be6f57111
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2014-2015 Taxamo, Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
32.589286
80
0.609315
#!/usr/bin/env python """ Copyright 2014-2015 Taxamo, Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
0
0
0
1,170
0
0
0
0
22
991fef1f4303fe203a73f3df4e34225e6fa1dab8
464
py
Python
bs4/webscraping26.py
dirleif/aprendendo-scraping
0850897c019402c897e9ec58160a13aec2e02665
[ "MIT" ]
null
null
null
bs4/webscraping26.py
dirleif/aprendendo-scraping
0850897c019402c897e9ec58160a13aec2e02665
[ "MIT" ]
null
null
null
bs4/webscraping26.py
dirleif/aprendendo-scraping
0850897c019402c897e9ec58160a13aec2e02665
[ "MIT" ]
null
null
null
""" usando Requests trabalhando com proxies """ # importando modulo Requests import requests # proxies free # http://www.ultrapoxies.com/ # https://www.hide-my-ip.com/pt/proxylist.shtml url = 'https://www.hide-my-ip.com/pt/proxylist.shtml' #proxies = {'https':'169.57.157.148:8123'} proxies = {'http':'183.181.164.210:...
23.2
53
0.711207
""" usando Requests trabalhando com proxies """ # importando modulo Requests import requests # proxies free # http://www.ultrapoxies.com/ # https://www.hide-my-ip.com/pt/proxylist.shtml url = 'https://www.hide-my-ip.com/pt/proxylist.shtml' #proxies = {'https':'169.57.157.148:8123'} proxies = {'http':'183.181.164.210:...
0
0
0
0
0
0
0
0
0
9db9efe8ddc2a5122785c3852ab6fdde4c29dac3
2,226
py
Python
well_plate_project/data_etl/backup_test/circle_detection_test1.py
MthBr/well-plate-light-driven-predictions
d313c5ff8f589516cb6f65f422626faed5bf6dd2
[ "MIT" ]
null
null
null
well_plate_project/data_etl/backup_test/circle_detection_test1.py
MthBr/well-plate-light-driven-predictions
d313c5ff8f589516cb6f65f422626faed5bf6dd2
[ "MIT" ]
null
null
null
well_plate_project/data_etl/backup_test/circle_detection_test1.py
MthBr/well-plate-light-driven-predictions
d313c5ff8f589516cb6f65f422626faed5bf6dd2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 2 12:52:01 2020 Circle Detection inspiration: https://stackoverflow.com/questions/58109962/how-to-optimize-circle-detection-with-python-opencv @author: modal """ #%% INIT image_file_name = 'a2_a_cropped.jpg' from well_plate_project.config import d...
29.289474
96
0.734951
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 2 12:52:01 2020 Circle Detection inspiration: https://stackoverflow.com/questions/58109962/how-to-optimize-circle-detection-with-python-opencv @author: modal """ #%% INIT image_file_name = 'a2_a_cropped.jpg' from well_plate_project.config import d...
0
0
0
0
0
0
0
0
0
3ff82c5368207c58022b160e3ec4b8cc0c639d88
797
py
Python
roomai/games/texasholdem/__init__.py
tonyxxq/RoomAI
5f28e31e659dd7808127c3c3cc386e6892a93982
[ "MIT" ]
1
2018-11-29T01:57:18.000Z
2018-11-29T01:57:18.000Z
roomai/games/texasholdem/__init__.py
tonyxxq/RoomAI
5f28e31e659dd7808127c3c3cc386e6892a93982
[ "MIT" ]
null
null
null
roomai/games/texasholdem/__init__.py
tonyxxq/RoomAI
5f28e31e659dd7808127c3c3cc386e6892a93982
[ "MIT" ]
null
null
null
#!/bin/python
66.416667
84
0.844417
#!/bin/python from roomai.games.texasholdem.TexasHoldemUtil import PokerCard from roomai.games.texasholdem.TexasHoldemUtil import AllCardsPattern from roomai.games.texasholdem.TexasHoldemUtil import AllPokerCards from roomai.games.texasholdem.TexasHoldemUtil import Stage from roomai.game...
0
0
0
0
0
0
0
563
220
75cb2322f9d26771a35d036696a241bea5cf6af4
237
py
Python
FindPrimeNumbers.py
KrishnaR7626/MiscProjects
b9ddfd515db282f8ace8663a2995b96f4462fbe1
[ "MIT" ]
null
null
null
FindPrimeNumbers.py
KrishnaR7626/MiscProjects
b9ddfd515db282f8ace8663a2995b96f4462fbe1
[ "MIT" ]
null
null
null
FindPrimeNumbers.py
KrishnaR7626/MiscProjects
b9ddfd515db282f8ace8663a2995b96f4462fbe1
[ "MIT" ]
null
null
null
# An inefficient way I could think of to find prime numbers. i = int(input("enter max ")) t=1 while t<i: m=1 c=0 while m<i: if t%m==0: c+=1 m+=1 if c<=2: print(t) t+=1
16.928571
61
0.443038
# An inefficient way I could think of to find prime numbers. i = int(input("enter max ")) t=1 while t<i: m=1 c=0 while m<i: if t%m==0: c+=1 m+=1 if c<=2: print(t) t+=1
0
0
0
0
0
0
0
0
0
f24dc5a428b45036fe3c62ee34bb12fabbe4b11e
9,705
py
Python
pyzayo/cli/cli_cases.py
jeremyschulman/pyzayo
37869daf6ef2df8e0898bae7c3ddbb0139840751
[ "Apache-2.0" ]
1
2021-06-02T10:00:35.000Z
2021-06-02T10:00:35.000Z
pyzayo/cli/cli_cases.py
jeremyschulman/pyzayo
37869daf6ef2df8e0898bae7c3ddbb0139840751
[ "Apache-2.0" ]
null
null
null
pyzayo/cli/cli_cases.py
jeremyschulman/pyzayo
37869daf6ef2df8e0898bae7c3ddbb0139840751
[ "Apache-2.0" ]
null
null
null
""" This file contains the CLI code for the maintenance commands. References ---------- For the Rich package, colors are defined here: https://rich.readthedocs.io/en/latest/appendix/colors.html#appendix-colors """ # ----------------------------------------------------------------------------- # System Imports...
27.808023
89
0.544771
""" This file contains the CLI code for the maintenance commands. References ---------- For the Rich package, colors are defined here: https://rich.readthedocs.io/en/latest/appendix/colors.html#appendix-colors """ # ----------------------------------------------------------------------------- # System Imports...
0
1,966
0
0
0
0
0
14
159
76e40c766cef24dd61b56fdb2bd76ef6d34d6cf3
9,128
py
Python
sphinx/ext/todo.py
hnakamur/sphinx-deb
34e8fa6013e0567f12eabfd4f71e7a82ce63394e
[ "BSD-2-Clause" ]
1
2019-08-30T18:30:39.000Z
2019-08-30T18:30:39.000Z
rst/sphinx_ext/todo.py
rblack42/GitBuilder
1944ef2d6d3c6eaee44ffb663e6c20477046dd9c
[ "BSD-3-Clause" ]
null
null
null
rst/sphinx_ext/todo.py
rblack42/GitBuilder
1944ef2d6d3c6eaee44ffb663e6c20477046dd9c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.ext.todo ~~~~~~~~~~~~~~~ Allow todos to be inserted into your documentation. Inclusion of todos can be switched of by a configuration variable. The todolist directive collects all todos of your project and lists them along with a backlink to the original loc...
34.059701
83
0.621385
# -*- coding: utf-8 -*- """ sphinx.ext.todo ~~~~~~~~~~~~~~~ Allow todos to be inserted into your documentation. Inclusion of todos can be switched of by a configuration variable. The todolist directive collects all todos of your project and lists them along with a backlink to the original loc...
0
0
0
1,476
0
6,250
0
236
601
3de596368d337615bd299ece0e4e7af6e12d504b
4,845
py
Python
anvil/distro.py
timjr/Openstack-Anvil
5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d
[ "Apache-2.0" ]
1
2021-06-29T06:09:58.000Z
2021-06-29T06:09:58.000Z
anvil/distro.py
timjr/Openstack-Anvil
5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d
[ "Apache-2.0" ]
null
null
null
anvil/distro.py
timjr/Openstack-Anvil
5a8199cfef2a7cd83d1886aaa6aa8e0b24cd589d
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (C) 2012 Yahoo! Inc. All Rights Reserved. # Copyright (C) 2012 New Dream Network, LLC (DreamHost) All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the Licens...
34.856115
92
0.631992
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (C) 2012 Yahoo! Inc. All Rights Reserved. # Copyright (C) 2012 New Dream Network, LLC (DreamHost) All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the Licens...
0
160
0
2,365
0
1,224
0
-23
292
6a1a8529b48ee2dd3186bee4c7ac52a024cdd64a
1,642
py
Python
indexd/guid/blueprint.py
rpatil524/indexd
119ff762f8432f29e1e29f86de432927fcc15d68
[ "Apache-2.0" ]
null
null
null
indexd/guid/blueprint.py
rpatil524/indexd
119ff762f8432f29e1e29f86de432927fcc15d68
[ "Apache-2.0" ]
null
null
null
indexd/guid/blueprint.py
rpatil524/indexd
119ff762f8432f29e1e29f86de432927fcc15d68
[ "Apache-2.0" ]
null
null
null
import flask blueprint = flask.Blueprint("guid", __name__) def _get_prefix(): """ Return prefix if it's configured to be prepended to all GUIDs and NOT set as an alias """ prefix = "" if flask.current_app.config["INDEX"]["driver"].config.get( "PREPEND_PREFIX" ) and not flask.cu...
26.918033
85
0.643118
import flask import uuid blueprint = flask.Blueprint("guid", __name__) @blueprint.route("/guid/mint", methods=["GET"]) def mint_guid(): """ Mint a GUID that is valid for this instance of indexd. The intention of this endpoint is to allow generating valid GUIDs to be indexed WITHOUT actually creating ...
0
1,077
0
0
0
0
0
-10
68
5d1578c6014c375d9157924675bda6431cc6dd3f
380
py
Python
myCalsite/myCalapp/admin.py
tanyabonilla/webproject
8c194faf68129a090a0309e601f92f4269c870ca
[ "MIT" ]
2
2019-11-04T00:01:56.000Z
2019-11-04T00:01:58.000Z
myCalsite/myCalapp/admin.py
tanyabonilla/webproject
8c194faf68129a090a0309e601f92f4269c870ca
[ "MIT" ]
7
2020-02-12T02:44:20.000Z
2022-02-10T08:35:10.000Z
myCalsite/myCalapp/admin.py
tanyabonilla/webproject
8c194faf68129a090a0309e601f92f4269c870ca
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models # Register your models here. admin.site.register(models.Event_user) #class EventueAdmin(admin.ModelAdmin): # list_display = ('title', 'description', 'get_date',) admin.site.register(models.Task_user) admin.site.register(models.User_Profile) admin.site.regi...
25.333333
59
0.784211
from django.contrib import admin from . import models # Register your models here. admin.site.register(models.Event_user) #class EventueAdmin(admin.ModelAdmin): # list_display = ('title', 'description', 'get_date',) admin.site.register(models.Task_user) admin.site.register(models.User_Profile) admin.site.regi...
0
0
0
0
0
0
0
0
0
ff93e5fa20d58d59950334f9e5af03021a4cde53
1,383
py
Python
django-project/projects/migrations/0003_auto_20180409_0843.py
KBIAnews/projects-hub
746decaa45099eacde5233548f8f86b9ac3f3ba5
[ "MIT" ]
null
null
null
django-project/projects/migrations/0003_auto_20180409_0843.py
KBIAnews/projects-hub
746decaa45099eacde5233548f8f86b9ac3f3ba5
[ "MIT" ]
null
null
null
django-project/projects/migrations/0003_auto_20180409_0843.py
KBIAnews/projects-hub
746decaa45099eacde5233548f8f86b9ac3f3ba5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-04-09 13:43 from __future__ import unicode_literals
34.575
143
0.611714
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-04-09 13:43 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import projects.models class Migration(migrations.Migration): dependencies = [ ('projects', '0002_auto_20180406_1501'),...
0
0
0
1,150
0
0
0
31
90
490d733beb9f11ded9bc8765a6acf522dd11c131
6,208
py
Python
rpcfit/gridata.py
cmla/rpcf
27bb3745e620632ae6df485688bd502645216b8b
[ "BSD-2-Clause" ]
4
2021-09-23T23:34:48.000Z
2022-02-10T22:39:59.000Z
rpcfit/gridata.py
cmla/rpcf
27bb3745e620632ae6df485688bd502645216b8b
[ "BSD-2-Clause" ]
1
2021-02-26T00:01:29.000Z
2021-03-01T11:36:48.000Z
rpcfit/gridata.py
cmla/rpcfit
27bb3745e620632ae6df485688bd502645216b8b
[ "BSD-2-Clause" ]
3
2021-06-08T03:11:15.000Z
2021-11-12T18:43:55.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 19 15:36:42 2020 @author: rakiki """ import numpy as np import rasterio # dataset construction def pointCube(dim1_left, dim1_right, dim2_left, dim2_right , alt_min, alt_max , grid_len, num_layers): ''' Constr...
43.71831
126
0.598905
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 19 15:36:42 2020 @author: rakiki """ import numpy as np import rasterio # dataset construction def pointCube(dim1_left, dim1_right, dim2_left, dim2_right , alt_min, alt_max , grid_len, num_layers): ''' Constr...
0
0
0
0
0
0
0
0
0
83e1ebe1564956bfb99de1ae2ec19d24bbf09722
183
py
Python
app/auth/__init__.py
changawa-antony/personal-blog
f3df93d6fca61d9ec5eb369d6420bf4b472aa8b3
[ "MIT" ]
null
null
null
app/auth/__init__.py
changawa-antony/personal-blog
f3df93d6fca61d9ec5eb369d6420bf4b472aa8b3
[ "MIT" ]
null
null
null
app/auth/__init__.py
changawa-antony/personal-blog
f3df93d6fca61d9ec5eb369d6420bf4b472aa8b3
[ "MIT" ]
null
null
null
from flask import Blueprint # Blueprint Configuration auth_bp = Blueprint( 'auth_bp', __name__, template_folder='templates', static_folder='static' )
18.3
32
0.737705
from flask import Blueprint # Blueprint Configuration auth_bp = Blueprint( 'auth_bp', __name__, template_folder='templates', static_folder='static' ) from . import views
0
0
0
0
0
0
0
-2
22
70c28e9f62ec12d576e81e52faba6eba41fa491c
16,064
py
Python
Loading/MonsterAi.py
crablab/cs1830_project
af0767a5860e18f5c7d58464704f186552a90ee6
[ "MIT" ]
null
null
null
Loading/MonsterAi.py
crablab/cs1830_project
af0767a5860e18f5c7d58464704f186552a90ee6
[ "MIT" ]
null
null
null
Loading/MonsterAi.py
crablab/cs1830_project
af0767a5860e18f5c7d58464704f186552a90ee6
[ "MIT" ]
null
null
null
import configparser config = configparser.ConfigParser() config.read_file(open('Classes/config')) MAP_WIDTH = int(config['MAP']['WIDTH']) MAP_HEIGHT = int(config['MAP']['HEIGHT'])
46.562319
178
0.573083
import time, random, configparser from Classes.Base.Vector import Vector from Loading.RandomGen import getRandomMagicWeapon, getRandomMagicCast, getRandomMonster from Classes.Super.Weapon import Weapon from Classes.Middle.Particle import Particle from Classes.Super.Monster import Monster from Loading.Objects import wea...
0
0
0
15,348
0
0
0
335
199
43420b779a5972d5118cb2683aaedd4b5ef5c244
6,930
py
Python
trac/web/href.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
trac/web/href.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
trac/web/href.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2004 Jonas Borgstrm <jonas@edgewall.com> # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of thi...
33.640777
79
0.611688
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2004 Jonas Borgström <jonas@edgewall.com> # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of th...
4
0
0
5,997
0
0
0
38
46
8471be6e1f242d055d1f1f40b27848b9460a6fca
601
py
Python
PC_Benewake_TFmini_LiDAR.py
Chastonay-GP/2020-raspberry-pi-water-level
ec89ca7c75a2cf3435267b3dede51266b0fff41d
[ "FSFAP" ]
null
null
null
PC_Benewake_TFmini_LiDAR.py
Chastonay-GP/2020-raspberry-pi-water-level
ec89ca7c75a2cf3435267b3dede51266b0fff41d
[ "FSFAP" ]
null
null
null
PC_Benewake_TFmini_LiDAR.py
Chastonay-GP/2020-raspberry-pi-water-level
ec89ca7c75a2cf3435267b3dede51266b0fff41d
[ "FSFAP" ]
null
null
null
import serial ser = serial.Serial('/dev/ttyUSB0',115200,timeout = 1) ser.write(0x42) ser.write(0x57) ser.write(0x02) ser.write(0x00) ser.write(0x00) ser.write(0x00) ser.write(0x01) ser.write(0x06) while(True): while(ser.in_waiting >= 9): #print ("a") if(('Y' == ser.read()) and ('Y' ...
23.115385
61
0.529118
import serial import time ser = serial.Serial('/dev/ttyUSB0',115200,timeout = 1) ser.write(0x42) ser.write(0x57) ser.write(0x02) ser.write(0x00) ser.write(0x00) ser.write(0x00) ser.write(0x01) ser.write(0x06) while(True): while(ser.in_waiting >= 9): #print ("a") if(('Y' == ser.read...
0
0
0
0
0
0
0
-10
23
6a15aade8cc353754c14f8437cf9834a8d068d77
5,376
py
Python
corehq/apps/reports/tests/test_sql_reports.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/reports/tests/test_sql_reports.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/reports/tests/test_sql_reports.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
DOMAIN = "test"
41.038168
109
0.635231
from datetime import datetime, time from django import test as unittest from django.test.client import RequestFactory from dimagi.utils.dates import DateSpan from corehq.apps.domain.shortcuts import create_domain from corehq.apps.users.models import WebUser from corehq.sql_db.connections import Session from corehq.u...
0
478
0
4,321
0
0
0
266
292
2f93144ea0e7a9ec3d12b51325d8760bd959ad44
6,201
py
Python
course1/week2/quiz2/PredictingHousePrices.py
eroicaleo/MachineLearningUW
c9addb23119e2db41e2a467baafe6bd2ce2acbcb
[ "MIT" ]
null
null
null
course1/week2/quiz2/PredictingHousePrices.py
eroicaleo/MachineLearningUW
c9addb23119e2db41e2a467baafe6bd2ce2acbcb
[ "MIT" ]
null
null
null
course1/week2/quiz2/PredictingHousePrices.py
eroicaleo/MachineLearningUW
c9addb23119e2db41e2a467baafe6bd2ce2acbcb
[ "MIT" ]
null
null
null
# coding: utf-8 # #Fire up graphlab create # In[35]: import graphlab # #Load some house sales data # # Dataset is from house sales in King County, the region where the city of Seattle, WA is located. # In[36]: sales = graphlab.SFrame('home_data.gl/') # In[37]: sales # #Exploring the data for housing sales...
19.938907
260
0.680213
# coding: utf-8 # #Fire up graphlab create # In[35]: import graphlab # #Load some house sales data # # Dataset is from house sales in King County, the region where the city of Seattle, WA is located. # In[36]: sales = graphlab.SFrame('home_data.gl/') # In[37]: sales # #Exploring the data for housing sales...
0
0
0
0
0
0
0
0
0
1f86701824cf61a12df75ebaea242b4272d39e29
18,076
py
Python
tests/wallet/test_cache_manager.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
415
2016-06-10T00:46:55.000Z
2021-10-16T00:56:06.000Z
tests/wallet/test_cache_manager.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
25
2016-06-11T13:48:59.000Z
2021-01-05T11:19:30.000Z
tests/wallet/test_cache_manager.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
109
2016-06-11T05:17:05.000Z
2021-12-22T11:02:22.000Z
import inspect import os.path from two1.blockchain.twentyone_provider import TwentyOneProvider from two1.wallet.cache_manager import CacheManager this_file_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) cm = CacheManager() dp = TwentyOneProvider()
46.112245
796
0.750553
import inspect import os.path import time from two1.blockchain.twentyone_provider import TwentyOneProvider from two1.bitcoin.hash import Hash from two1.wallet.cache_manager import CacheManager from two1.wallet.wallet_txn import WalletTransaction this_file_path = os.path.dirname(os.path.abspath(inspect.getfile(inspec...
0
0
0
0
0
17,618
0
34
135
b5843875e6ebc5bf39ab131cdc98ecca22a19925
2,696
py
Python
gmn/src/d1_gmn/app/middleware/session_cert.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
15
2016-10-28T13:56:52.000Z
2022-01-31T19:07:49.000Z
gmn/src/d1_gmn/app/middleware/session_cert.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
56
2017-03-16T03:52:32.000Z
2022-03-12T01:05:28.000Z
gmn/src/d1_gmn/app/middleware/session_cert.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
11
2016-05-31T16:22:02.000Z
2020-10-05T14:37:10.000Z
# This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2019 DataONE # # Licensed under the Apache License, Version 2.0 (the "License"); # you ma...
37.444444
87
0.738501
# This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2019 DataONE # # Licensed under the Apache License, Version 2.0 (the "License"); # you ma...
0
0
0
0
0
104
0
0
23
85357402a8301e1bda63a84a7fda7c6d2ae1162a
8,452
py
Python
swagger_client/models/get_fw_systems_200_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/models/get_fw_systems_200_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/models/get_fw_systems_200_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """
32.383142
176
0.635353
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GetFwSystems200Ok(object): """NOTE: This class is aut...
0
4,692
0
3,481
0
0
0
-31
105
dfea545de52865e245de45e9353a7cf90987e97d
288
py
Python
PF/Inicio.py
HectorR28/uip-iiiq-pc3
7fd3f0f8191a7442f4330ff54d72eb6e157a740e
[ "MIT" ]
null
null
null
PF/Inicio.py
HectorR28/uip-iiiq-pc3
7fd3f0f8191a7442f4330ff54d72eb6e157a740e
[ "MIT" ]
null
null
null
PF/Inicio.py
HectorR28/uip-iiiq-pc3
7fd3f0f8191a7442f4330ff54d72eb6e157a740e
[ "MIT" ]
null
null
null
import FormaPago import MenuOpciones if __name__ == '__main__': FormaPago.menuPagos() opc = input("Dijite el numero de la opcin que desea acceder: ") if opc == "1": MenuOpciones.OpcionCrear() elif opc == "2": MenuOpciones.OpcionCambiar()
24
69
0.618056
import FormaPago import MenuOpciones if __name__ == '__main__': FormaPago.menuPagos() opc = input("Dijite el numero de la opción que desea acceder: ") if opc == "1": MenuOpciones.OpcionCrear() elif opc == "2": MenuOpciones.OpcionCambiar()
2
0
0
0
0
0
0
0
0