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
e7dbbf31cdb2c338a7b379e15fa035c48dea2d84
1,491
py
Python
models/cnn/covnet4.py
pmwaniki/ppg-analysis
ae1c76ca8b0eb95a51e3f48eccb8d0a76e7abfbf
[ "MIT" ]
2
2022-02-23T05:36:48.000Z
2022-03-04T11:53:29.000Z
models/cnn/covnet4.py
pmwaniki/ppg-analysis
ae1c76ca8b0eb95a51e3f48eccb8d0a76e7abfbf
[ "MIT" ]
null
null
null
models/cnn/covnet4.py
pmwaniki/ppg-analysis
ae1c76ca8b0eb95a51e3f48eccb8d0a76e7abfbf
[ "MIT" ]
1
2022-01-15T03:31:30.000Z
2022-01-15T03:31:30.000Z
import torch.nn as nn # net=Convnet4(2,64,z_dim=32) # t=torch.randn((5,2,320,300)) # output=net(t) # output.shape
26.157895
57
0.625084
import torch.nn as nn import torch import torch.nn.functional as F def convblock(in_channels,out_channels,pooling=True): if pooling: return nn.Sequential( nn.BatchNorm2d(in_channels), nn.Conv2d(in_channels,out_channels,3,padding=1), # nn.BatchNorm2d(out_channels), nn.ReLU()...
0
0
0
814
0
445
0
1
113
0d32eda95a14559f5e27b04ec1d3aaa58203600c
2,891
py
Python
tdcsm-install.py
tdcoa/usage
408091f77360fe29e14186b60746fd7d60713e42
[ "MIT" ]
null
null
null
tdcsm-install.py
tdcoa/usage
408091f77360fe29e14186b60746fd7d60713e42
[ "MIT" ]
4
2020-07-21T18:42:22.000Z
2020-10-14T00:50:45.000Z
tdcsm-install.py
tdcoa/usage
408091f77360fe29e14186b60746fd7d60713e42
[ "MIT" ]
1
2020-08-05T20:09:41.000Z
2020-08-05T20:09:41.000Z
#! /usr/bin/env python import sys def check_python(): "Check if the correct python version is installed" if sys.version_info < (3, 0): raise SystemExit("Python2 is not supported. Try rerunning with python3 or download the latest **64-bit** version from https://www.python.org/downloads/") if sys.maxsize <= 2**32: ...
29.20202
155
0.667589
#! /usr/bin/env python import sys def check_python(): "Check if the correct python version is installed" if sys.version_info < (3, 0): raise SystemExit("Python2 is not supported. Try rerunning with python3 or download the latest **64-bit** version from https://www.python.org/downloads/") if sys.maxsize <= 2**32: ...
0
0
0
0
0
1,868
0
-7
185
18496a724ec7f11294f3696d4522309779f5f9f2
3,829
py
Python
fairness/algorithms/zafar/fair-classification-master/disparate_mistreatment/synthetic_data_demo/decision_boundary_demo.py
yashwarlord/fairness-comparison
366a4e4bb70498ac7498e4a98f50e3585f7881d3
[ "Apache-2.0" ]
146
2018-02-14T20:59:29.000Z
2022-03-26T00:44:28.000Z
fairness/algorithms/zafar/fair-classification-master/disparate_mistreatment/synthetic_data_demo/decision_boundary_demo.py
yashwarlord/fairness-comparison
366a4e4bb70498ac7498e4a98f50e3585f7881d3
[ "Apache-2.0" ]
6
2018-03-15T01:39:53.000Z
2021-11-15T17:47:02.000Z
fairness/algorithms/zafar/fair-classification-master/disparate_mistreatment/synthetic_data_demo/decision_boundary_demo.py
yashwarlord/fairness-comparison
366a4e4bb70498ac7498e4a98f50e3585f7881d3
[ "Apache-2.0" ]
50
2018-02-16T15:27:29.000Z
2022-03-01T08:59:28.000Z
import os, sys import numpy as np sys.path.insert(0, '../../fair_classification/') # the code for fair classification is in this directory import utils as ut import funcs_disp_mist as fdm import plot_syn_boundaries as psb def test_synthetic_data(): """ Generate the synthetic data """ data_type = 1 X, y, x_contr...
44.011494
217
0.68608
import os,sys import numpy as np from generate_synthetic_data import * sys.path.insert(0, '../../fair_classification/') # the code for fair classification is in this directory import utils as ut import funcs_disp_mist as fdm import plot_syn_boundaries as psb def test_synthetic_data(): """ Generate the synthetic d...
0
0
0
0
0
447
0
15
69
7d1f457eda8d5e9c802cfb9bf88971d19416931d
672
py
Python
app.py
labulel/web-scraping-challenge
02f5b49b99802ec018a1451387d4a5cba538213c
[ "Apache-2.0" ]
null
null
null
app.py
labulel/web-scraping-challenge
02f5b49b99802ec018a1451387d4a5cba538213c
[ "Apache-2.0" ]
null
null
null
app.py
labulel/web-scraping-challenge
02f5b49b99802ec018a1451387d4a5cba538213c
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_pymongo import PyMongo app = Flask(__name__) #use flask_pymongo to set up mongo connection app.config ["MONGO_URI"] = "mongodb://localhost:27017/mars_app" mongo = PyMongo(app) if __name__ =="__main__": app.run(debug = True)
24.888889
63
0.696429
from flask import Flask, render_template, redirect from flask_pymongo import PyMongo import scrape_mars app = Flask(__name__) #use flask_pymongo to set up mongo connection app.config ["MONGO_URI"] = "mongodb://localhost:27017/mars_app" mongo = PyMongo(app) @app.route("/") def index(): #Find Mars data Mars = ...
0
314
0
0
0
0
0
24
68
3e7fdd30f2753e8e86e5f06e72426a7a4a2ba883
3,669
py
Python
operators/teched21/unzip/script.py
thhapke/dilocal
1d3c1b7b1a4513e9bff7efd77f680f66014ff499
[ "MIT" ]
null
null
null
operators/teched21/unzip/script.py
thhapke/dilocal
1d3c1b7b1a4513e9bff7efd77f680f66014ff499
[ "MIT" ]
null
null
null
operators/teched21/unzip/script.py
thhapke/dilocal
1d3c1b7b1a4513e9bff7efd77f680f66014ff499
[ "MIT" ]
null
null
null
# For local development #from utils.mock_di_api import mock_api #api = mock_api(__file__,False) CREATE_SQL = False api.set_port_callback('input',on_input) # datatype: message
40.318681
133
0.624693
# For local development #from utils.mock_di_api import mock_api #api = mock_api(__file__,False) import pandas as pd import copy import zipfile import re import io from datetime import datetime CREATE_SQL = False def on_input(msg) : api.logger.info('Unzip: {}'.format(msg.attributes['zipfile'])) try : ...
0
0
0
0
0
3,366
0
-35
156
857067ba58d9c2f2c4f08cd9db43c47d2da1d464
1,663
py
Python
geolimes.py
akirsche/geoLIMES
09f0f93f244fcdf056ea870c2524af15d3d757db
[ "MIT" ]
null
null
null
geolimes.py
akirsche/geoLIMES
09f0f93f244fcdf056ea870c2524af15d3d757db
[ "MIT" ]
null
null
null
geolimes.py
akirsche/geoLIMES
09f0f93f244fcdf056ea870c2524af15d3d757db
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-
29.696429
130
0.644618
#!/usr/bin/env python # -*- coding: utf-8 -*- from json import JSONDecodeError, loads from os import makedirs from os.path import exists, isdir from urllib.error import HTTPError from cache import Cache from config import Config, ConfigNotValidError, load_config from logger import InfoLogger from mapper import Mapper...
0
0
0
1,292
0
0
0
101
223
37eda14ffda685570b9da0c62550b975235a9f69
1,715
py
Python
src/main/py/com/example/core/rdd/filter.py
brijeshdhaker/spark-python-examples
bb3504d21c073448c336c228f74449de68853b8d
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-18T16:23:56.000Z
2021-07-18T16:23:56.000Z
src/main/py/com/example/core/rdd/filter.py
brijeshdhaker/spark-python-examples
bb3504d21c073448c336c228f74449de68853b8d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/main/py/com/example/core/rdd/filter.py
brijeshdhaker/spark-python-examples
bb3504d21c073448c336c228f74449de68853b8d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# import sys import com.example.utils.commons as commons from pyspark.sql import SparkSession if __name__ == "__main__": if len(sys.argv) != 1: print("Usages: spark-file <in-path> <out-path>") sys.exit(-1) # spark = SparkSession \ .builder \ .master("spark://spark-master:7077")\ .appN...
28.583333
65
0.623324
# import sys import com.example.utils.commons as commons from pyspark.sql import SparkSession if __name__ == "__main__": if len(sys.argv) != 1: print("Usages: spark-file <in-path> <out-path>") sys.exit(-1) def m_filter(element): return element[4] > 30 # spark = SparkSession \ .builder \ ...
0
0
0
0
0
28
0
0
23
50130c0336ac4ecad32bf1cfe47a0d7871688d46
28,590
py
Python
sequential_tracing/source/source/library_tools/LibraryTools.py
ZhuangLab/Chromatin_Analysis_2020_cell
ecc0d3e92e8b9cb0dcf970c29440f91404055da6
[ "MIT" ]
19
2020-08-20T15:05:10.000Z
2021-08-17T19:31:07.000Z
sequential_tracing/source/source/library_tools/LibraryTools.py
zhengpuas47/Chromatin_Tracing_Analysis
850f6e068798408662aa40d20719e038a20176be
[ "MIT" ]
1
2020-12-07T12:48:49.000Z
2020-12-17T06:45:57.000Z
sequential_tracing/source/library_tools/LibraryTools.py
ZhuangLab/Chromatin_Analysis_2020_cell
ecc0d3e92e8b9cb0dcf970c29440f91404055da6
[ "MIT" ]
4
2020-08-21T07:39:25.000Z
2021-03-10T08:10:43.000Z
import numpy as np import os def seqrc(string): "returns the reverse complement of a sequence" dic_rc = constant_key_dict({'a':'t','c':'g','g':'c','t':'a','A':'T','C':'G','G':'C','T':'A'}) string_rc = "".join([dic_rc[c] for c in string][::-1]) return string_rc def getFastaWeb(chrom,pos1,pos2): "For ...
43.782542
216
0.591815
import numpy as np import os import pickle class constant_key_dict (dict): def __missing__ (self, key): return key def seqrc(string): "returns the reverse complement of a sequence" dic_rc = constant_key_dict({'a':'t','c':'g','g':'c','t':'a','A':'T','C':'G','G':'C','T':'A'}) string_rc = "".join([...
0
0
0
2,735
0
14,532
0
-8
810
9c74bc304474a90f922e3ba5e1d7784293623014
9,738
py
Python
plaso/storage/sqlite/merge_reader.py
infosecjosh/plaso
7b5fc33591c60e89afc231a451449d40e02d8985
[ "Apache-2.0" ]
null
null
null
plaso/storage/sqlite/merge_reader.py
infosecjosh/plaso
7b5fc33591c60e89afc231a451449d40e02d8985
[ "Apache-2.0" ]
null
null
null
plaso/storage/sqlite/merge_reader.py
infosecjosh/plaso
7b5fc33591c60e89afc231a451449d40e02d8985
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Merge reader for SQLite storage files.""" from __future__ import unicode_literals
33.235495
80
0.728692
# -*- coding: utf-8 -*- """Merge reader for SQLite storage files.""" from __future__ import unicode_literals import os import sqlite3 import zlib from plaso.containers import errors from plaso.containers import event_sources from plaso.containers import events from plaso.containers import reports from plaso.containe...
0
0
0
9,270
0
0
0
90
267
eb2a1467c4234db8a4875a5a94aa28520f59d682
1,113
py
Python
Cinema/migrations/0011_auto_20210614_1505.py
jmv21/oficial_project
1098dde46a80cff312a25f30ed0e560ce2c21e2b
[ "MIT" ]
null
null
null
Cinema/migrations/0011_auto_20210614_1505.py
jmv21/oficial_project
1098dde46a80cff312a25f30ed0e560ce2c21e2b
[ "MIT" ]
null
null
null
Cinema/migrations/0011_auto_20210614_1505.py
jmv21/oficial_project
1098dde46a80cff312a25f30ed0e560ce2c21e2b
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-06-14 21:05
29.289474
121
0.583109
# Generated by Django 3.2 on 2021-06-14 21:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Cinema', '0010_merge_0009_auto_20210611_1256_0009_auto_20210611_1549'), ] operations = [ migrations.RemoveField( model_name='purch...
0
0
0
1,001
0
0
0
19
46
0adf3b85c88c62deb19c2d6d5e8cf6f50a3e171b
435
py
Python
tests/basics/comprehension1.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
7
2019-10-18T13:41:39.000Z
2022-03-15T17:27:57.000Z
tests/basics/comprehension1.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
null
null
null
tests/basics/comprehension1.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
2
2020-06-23T09:10:15.000Z
2020-12-22T06:42:14.000Z
f() print("PASS")
20.714286
55
0.528736
def f(): # list comprehension print([a + 1 for a in range(5)]) print([(a, b) for a in range(3) for b in range(2)]) print([a * 2 for a in range(7) if a > 3]) print([a for a in [1, 3, 5]]) print([a for a in [a for a in range(4)]]) # dict comprehension d = {a : 2 * a for a in range(5)} ...
0
0
0
0
0
394
0
0
22
c7ea3b6ca37492c99d8961d4b45945fe7a2bbafc
8,679
py
Python
tensorflow_compression/python/distributions/round_adapters.py
SamuelMarks/compression
e5c0dcf2d4846a030abc5f91f75863b204357c35
[ "Apache-2.0" ]
1
2020-12-30T04:33:36.000Z
2020-12-30T04:33:36.000Z
tensorflow_compression/python/distributions/round_adapters.py
wwxn/compression
734ff910119bd24bbfdb08b6f6da906c789a57a1
[ "Apache-2.0" ]
null
null
null
tensorflow_compression/python/distributions/round_adapters.py
wwxn/compression
734ff910119bd24bbfdb08b6f6da906c789a57a1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.996429
80
0.686024
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
0
61
0
7,145
0
0
0
196
340
620fcc7b4276e841a11ec20ede451a0949a8feb1
714
py
Python
problems/A/TelephoneNumber.py
deveshbajpai19/CodeForces
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
55
2016-06-19T05:45:15.000Z
2022-03-31T15:18:53.000Z
problems/A/TelephoneNumber.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
null
null
null
problems/A/TelephoneNumber.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
25
2016-07-29T13:03:15.000Z
2021-09-17T01:45:45.000Z
__author__ = 'Devesh Bajpai' ''' https://codeforces.com/problemset/problem/1167/A Solution: From the first occurrence of 8 in the given string s, we should have at least 10 characters. Say that 8 exists on ith index. Then n - 1 - i + 1 = n - i would give the length of the longest string starting with 8. That should b...
23.032258
120
0.602241
__author__ = 'Devesh Bajpai' ''' https://codeforces.com/problemset/problem/1167/A Solution: From the first occurrence of 8 in the given string s, we should have at least 10 characters. Say that 8 exists on ith index. Then n - 1 - i + 1 = n - i would give the length of the longest string starting with 8. That should b...
0
0
0
0
0
123
0
0
23
5de25e56d03ec7529b49111e303f4cbcadddf004
1,952
py
Python
designate-8.0.0/designate/backend/impl_powerdns/migrate_repo/versions/009_cascade_domain_deletes.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
designate-8.0.0/designate/backend/impl_powerdns/migrate_repo/versions/009_cascade_domain_deletes.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
designate-8.0.0/designate/backend/impl_powerdns/migrate_repo/versions/009_cascade_domain_deletes.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hpe.com> # # 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/...
30.5
75
0.717213
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hpe.com> # # 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/...
0
0
0
0
0
1,134
0
47
68
eb12d1bb6f9cb70a43876fd387a56d535b88ed8e
463
py
Python
paginas/migrations/0004_publicacao_upload.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
paginas/migrations/0004_publicacao_upload.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
paginas/migrations/0004_publicacao_upload.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-03-08 23:22
23.15
72
0.62203
# Generated by Django 4.0 on 2022-03-08 23:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paginas', '0003_remove_publicacao_data_atualizacao_and_more'), ] operations = [ migrations.AddField( model_name='publicacao', ...
0
0
0
351
0
0
0
19
46
9f8596434453fada0ce44edab6fb4e92888b37c4
1,198
py
Python
.github/workflows/patch-asyncio.py
jwj019/SimpleITK-Notebooks
ade3741c3fa807a35b239f68b83f39c5f67e099f
[ "Apache-2.0" ]
657
2015-02-20T13:50:28.000Z
2022-03-31T11:42:22.000Z
.github/workflows/patch-asyncio.py
jwj019/SimpleITK-Notebooks
ade3741c3fa807a35b239f68b83f39c5f67e099f
[ "Apache-2.0" ]
100
2015-02-19T18:53:06.000Z
2022-03-29T15:20:39.000Z
.github/workflows/patch-asyncio.py
jwj019/SimpleITK-Notebooks
ade3741c3fa807a35b239f68b83f39c5f67e099f
[ "Apache-2.0" ]
313
2015-01-29T20:23:36.000Z
2022-03-23T06:34:21.000Z
from __future__ import print_function import fileinput import asyncio asyncLib = asyncio.__file__ lineNum = 0 # This script is used to address an issue on Windows with asyncio in the Tornado web server. # See links below for more information # https://github.com/tornadoweb/tornado/issues/2608 # https://www.tornadoweb...
35.235294
96
0.651085
from __future__ import print_function import fileinput import asyncio asyncLib = asyncio.__file__ lineNum = 0 # This script is used to address an issue on Windows with asyncio in the Tornado web server. # See links below for more information # https://github.com/tornadoweb/tornado/issues/2608 # https://www.tornadoweb...
0
0
0
0
0
0
0
0
0
74ce5869c1273641db819c7df939bc619b77d924
1,130
py
Python
pancan_fusion/fusion_outliers/abundance_calculations.py
ding-lab/griffin-fusion
cb2970f448dd3f50c678fcb755daa8f0b5a005a2
[ "MIT" ]
4
2019-09-02T15:03:22.000Z
2021-12-03T19:28:50.000Z
pancan_fusion/fusion_outliers/abundance_calculations.py
ding-lab/griffin-fusion
cb2970f448dd3f50c678fcb755daa8f0b5a005a2
[ "MIT" ]
null
null
null
pancan_fusion/fusion_outliers/abundance_calculations.py
ding-lab/griffin-fusion
cb2970f448dd3f50c678fcb755daa8f0b5a005a2
[ "MIT" ]
2
2020-09-15T02:37:22.000Z
2020-09-29T09:24:27.000Z
import sys import numpy ensg_gene = open(sys.argv[1], 'r') abun_file = open(sys.argv[2], 'r') output_file = open(sys.argv[3],'w') #set up ensg dict ensg_dict = {} gene_dict = {} gene_list = [] for line in ensg_gene: ensg, gene = line.strip().split() ensg_dict[ ensg ] = gene if gene not in gene_dict: gene_di...
26.904762
119
0.658407
import sys import numpy ensg_gene = open(sys.argv[1], 'r') abun_file = open(sys.argv[2], 'r') output_file = open(sys.argv[3],'w') #set up ensg dict ensg_dict = {} gene_dict = {} gene_list = [] for line in ensg_gene: ensg, gene = line.strip().split() ensg_dict[ ensg ] = gene if gene not in gene_dict: gene_di...
0
0
0
0
0
0
0
0
0
06149c92025f132045f0478d86818f166b5de67f
4,250
py
Python
src/silx/io/test/test_write_to_h5.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
94
2016-03-04T17:25:53.000Z
2022-03-18T18:05:23.000Z
src/silx/io/test/test_write_to_h5.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
2,841
2016-01-21T09:06:49.000Z
2022-03-18T14:53:56.000Z
src/silx/io/test/test_write_to_h5.py
t20100/silx
035cb286dd46f3f0cb3f819a3cfb6ce253c9933b
[ "CC0-1.0", "MIT" ]
71
2015-09-30T08:35:35.000Z
2022-03-16T07:16:28.000Z
# coding: utf-8 # /*########################################################################## # Copyright (C) 2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # i...
35.714286
86
0.624941
# coding: utf-8 # /*########################################################################## # Copyright (C) 2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # i...
0
0
0
0
0
256
0
12
49
3dd8ff67b12a905723423a8663578b8f649a0421
2,044
py
Python
robot/waffles_display.py
rsthomp/wafflesazoo
57a2542b6bd61036efa3fff8839909f774e1dd67
[ "MIT" ]
null
null
null
robot/waffles_display.py
rsthomp/wafflesazoo
57a2542b6bd61036efa3fff8839909f774e1dd67
[ "MIT" ]
null
null
null
robot/waffles_display.py
rsthomp/wafflesazoo
57a2542b6bd61036efa3fff8839909f774e1dd67
[ "MIT" ]
null
null
null
import pygame from rx import Observable from rx.concurrency import ThreadPoolScheduler from waffles_feels import waffles_feels from waffles_commands import WafflesCMD from waffles_pos import five_second_timer print('0') #Updates the actual displayed image based on waffle's reported emotional state. #Helper method...
24.926829
102
0.728474
import pygame import os import time import random import requests from rx import Observable, Observer from rx.concurrency import ThreadPoolScheduler from waffles_feels import waffles_feels from waffles_commands import WafflesCMD from waffles_pos import five_second_timer print('0') #Updates the actual displayed image...
0
0
0
566
0
309
0
-26
132
fd0600b8353e414fc31968043f51d0d27fbf8f12
22,203
py
Python
pm/models/situ_social_activity_family.py
aosojnik/pipeline-manager-features-models
e5232f1c1b2073253a1c505dc9fff0d3d839dd6c
[ "MIT" ]
null
null
null
pm/models/situ_social_activity_family.py
aosojnik/pipeline-manager-features-models
e5232f1c1b2073253a1c505dc9fff0d3d839dd6c
[ "MIT" ]
null
null
null
pm/models/situ_social_activity_family.py
aosojnik/pipeline-manager-features-models
e5232f1c1b2073253a1c505dc9fff0d3d839dd6c
[ "MIT" ]
null
null
null
################################################################################## ##########--this is an autogenerated python model definition for proDEX--######### ##--original file: Family_Assessment_v05_forprodex.dxi --## ################################################################################## situ_socia...
112.705584
209
0.85511
################################################################################## ##########--this is an autogenerated python model definition for proDEX--######### ##--original file: Family_Assessment_v05_forprodex.dxi --## ################################################################################## from .lib....
0
0
0
0
0
0
0
4
23
73203aca3d16bb92f993919016b4a09e053e902b
1,119
py
Python
chapter 3 - stacks and queues/3.2.py
anuraagdjain/cracking_the_coding_interview
09083b4c464f41d5752c7ca3d27ab7c992793619
[ "MIT" ]
null
null
null
chapter 3 - stacks and queues/3.2.py
anuraagdjain/cracking_the_coding_interview
09083b4c464f41d5752c7ca3d27ab7c992793619
[ "MIT" ]
null
null
null
chapter 3 - stacks and queues/3.2.py
anuraagdjain/cracking_the_coding_interview
09083b4c464f41d5752c7ca3d27ab7c992793619
[ "MIT" ]
null
null
null
if __name__ == "__main__": s = MinStack() s.add(5) s.add(-3) s.add(1) s.add(6) s.add(-1) print(s.pop()) print(s.get_min()) s.add(-10) s.pop()
18.966102
61
0.526363
class Node: def __init__(self, data): self.data = data self.next = None class Stack: def __init__(self): self.top = None def add(self, data): node = Node(data) node.next = self.top self.top = node def pop(self): item = self.top.data sel...
0
0
0
865
0
0
0
0
68
86eadf6b705f0089cbbe547b10a749f347fbf86f
1,755
py
Python
Moving-to-Melbourne---Housing-Again!/code.py
ANanade/ga-learner-dsmp-repo
ba5c06d039cfba6222998fccaca88e629c4bc3b8
[ "MIT" ]
null
null
null
Moving-to-Melbourne---Housing-Again!/code.py
ANanade/ga-learner-dsmp-repo
ba5c06d039cfba6222998fccaca88e629c4bc3b8
[ "MIT" ]
null
null
null
Moving-to-Melbourne---Housing-Again!/code.py
ANanade/ga-learner-dsmp-repo
ba5c06d039cfba6222998fccaca88e629c4bc3b8
[ "MIT" ]
null
null
null
# -------------- import numpy as np import pandas as pd from sklearn.model_selection import train_test_split # path- variable storing file path df = pd.read_csv(path) df.columns[range(5)] X = df.drop(['Price'], axis = 1) y= df.Price X_train,X_test,y_train,y_test = train_test_split(X , y , test_size = 0.3, r...
21.9375
92
0.707692
# -------------- import numpy as np import pandas as pd from sklearn.model_selection import train_test_split # path- variable storing file path df = pd.read_csv(path) df.columns[range(5)] X = df.drop(['Price'], axis = 1) y= df.Price X_train,X_test,y_train,y_test = train_test_split(X , y , test_size = 0.3, r...
0
0
0
0
0
0
0
0
23
0c177cb946bb0bcc84e16ee3f15e953374a97fbd
8,918
py
Python
Quadrotor_velocity_control.py
Ryan906k9/quadrotor_velocity_control
7e3f28d94c931d277394a8591a5925583642586c
[ "MIT" ]
null
null
null
Quadrotor_velocity_control.py
Ryan906k9/quadrotor_velocity_control
7e3f28d94c931d277394a8591a5925583642586c
[ "MIT" ]
null
null
null
Quadrotor_velocity_control.py
Ryan906k9/quadrotor_velocity_control
7e3f28d94c931d277394a8591a5925583642586c
[ "MIT" ]
null
null
null
import parl from parl.utils import logger from parl.utils import ReplayMemory # from rlschool import make_env # RLSchool from parl.algorithms import DDPG import paddle.fluid as fluid GAMMA = 0.99 # reward 0.9 0.999 TAU = 0.001 # target_model model ACTOR_LR = 0.0002 # Actor learning rate CRITIC_L...
32.429091
86
0.591837
import numpy as np import parl from parl.utils import logger from parl.utils import action_mapping # 将神经网络输出映射到对应的 实际动作取值范围 内 from parl.utils import ReplayMemory # 经验回放 from rlschool import make_env # 使用 RLSchool 创建飞行器环境 from parl.algorithms import DDPG class QuadrotorAgent(parl.Agent): def __init__(self, algo...
780
0
0
3,164
0
3,161
0
5
231
eb88fdadfb290aecfda1d0c370c0cbc8e4c3bdc2
3,189
py
Python
addons/rest_api/controllers/redisdb.py
Prescrypto/odooku
a6647e0e22bb5d41a2f025852df736a5c657a038
[ "Apache-2.0" ]
null
null
null
addons/rest_api/controllers/redisdb.py
Prescrypto/odooku
a6647e0e22bb5d41a2f025852df736a5c657a038
[ "Apache-2.0" ]
9
2017-09-07T18:42:16.000Z
2021-03-18T05:58:58.000Z
addons/rest_api/controllers/redisdb.py
Prescrypto/odooku
a6647e0e22bb5d41a2f025852df736a5c657a038
[ "Apache-2.0" ]
1
2018-10-16T20:45:10.000Z
2018-10-16T20:45:10.000Z
# -*- coding: utf-8 -*- import logging try: import simplejson as json except ImportError: _logger = logging.getLogger(__name__)
34.290323
83
0.56789
# -*- coding: utf-8 -*- import redis import logging try: import simplejson as json except ImportError: import json _logger = logging.getLogger(__name__) class RedisTokenStore(object): def __init__(self, host='localhost', port=6379, db=0, password=None): self.rs = redis.StrictRedis(host=host,...
0
0
0
2,998
0
0
0
-19
71
421f011ca77258f909f26458d6c8149223833f62
19,490
py
Python
model_multi_classifier.py
mbarbetti/lymphoma-classification
e1ec25302270388a4215d840b0c2925b043e1716
[ "MIT" ]
null
null
null
model_multi_classifier.py
mbarbetti/lymphoma-classification
e1ec25302270388a4215d840b0c2925b043e1716
[ "MIT" ]
null
null
null
model_multi_classifier.py
mbarbetti/lymphoma-classification
e1ec25302270388a4215d840b0c2925b043e1716
[ "MIT" ]
null
null
null
import os import pickle import numpy as np from tqdm import tqdm from argparse import ArgumentParser import optuna optuna.logging.set_verbosity ( optuna.logging.ERROR ) # silence Optuna during trials study import warnings warnings.filterwarnings ( "ignore", category = RuntimeWarning ) from sklearn.model_selection...
45.115741
172
0.579682
import os import pickle import numpy as np from tqdm import tqdm from argparse import ArgumentParser import optuna optuna.logging.set_verbosity ( optuna.logging.ERROR ) # silence Optuna during trials study import warnings warnings.filterwarnings ( "ignore", category = RuntimeWarning ) from sklearn.model_selec...
0
0
0
0
0
3,795
0
74
147
bfa57a625f2be19d4a30738c7fd3f863a0804ed1
6,048
py
Python
Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/windows/eventlogs.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Python.Fuzzbunch/Resources/Ops/PyScripts/windows/eventlogs.py
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Python.Fuzzbunch/Resources/Ops/PyScripts/windows/eventlogs.py
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
import dsz, dsz.cmd import ops, ops.pprint import sys from optparse import OptionParser if (__name__ == '__main__'): usage = 'python windows\\eventloqs.py [Options]\n-m, --monitor \n Runs in monitor mode, defaults to false\n-i, --interval [timeinterval]\n Interval between eventlogquery commands to use when r...
52.137931
408
0.581019
import dsz, dsz.cmd, dsz.control import ops, ops.pprint import ops.data import traceback, sys from optparse import OptionParser def monitorlogs(interval=300, classic=False, logname='', target=None, filters=[]): logquerycmd = 'eventlogquery ' if classic: logquerycmd += ' -classic ' elif (logname !=...
0
0
0
0
0
4,593
0
18
114
f01b4e41f742d0c8d1d8141475e3f06a6e34955a
15
py
Python
src/quiltz/testsupport/version.py
qwaneu/quiltz-testsupport
d28df8657818fae75208ed0cf50d417955e92ba4
[ "MIT" ]
null
null
null
src/quiltz/testsupport/version.py
qwaneu/quiltz-testsupport
d28df8657818fae75208ed0cf50d417955e92ba4
[ "MIT" ]
null
null
null
src/quiltz/testsupport/version.py
qwaneu/quiltz-testsupport
d28df8657818fae75208ed0cf50d417955e92ba4
[ "MIT" ]
null
null
null
version="0.2.1"
15
15
0.666667
version="0.2.1"
0
0
0
0
0
0
0
0
0
e68c325abae9f0d6f6a4ce2e2488f4c69bba4a5f
733
py
Python
src/oscar/management/commands/oscar_send_alerts.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/management/commands/oscar_send_alerts.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/management/commands/oscar_send_alerts.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import logging logger = logging.getLogger(__name__)
28.192308
73
0.665757
import logging from django.core.management.base import BaseCommand from django.utils.translation import ugettext_lazy as _ from oscar.apps.customer.alerts import utils logger = logging.getLogger(__name__) class Command(BaseCommand): """ Check stock records of products for availability and send ...
0
0
0
490
0
0
0
87
98
2ee02461bd282a5d55728439acfafc1cef05a08c
4,175
py
Python
conda_smithy/tests/test_lint_recipe.py
janschulz/conda-smithy
7474c0cd668c7141f7aa936cf5603dae3f76697e
[ "BSD-3-Clause" ]
null
null
null
conda_smithy/tests/test_lint_recipe.py
janschulz/conda-smithy
7474c0cd668c7141f7aa936cf5603dae3f76697e
[ "BSD-3-Clause" ]
null
null
null
conda_smithy/tests/test_lint_recipe.py
janschulz/conda-smithy
7474c0cd668c7141f7aa936cf5603dae3f76697e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import unittest if __name__ == '__main__': unittest.main()
35.381356
122
0.582754
from __future__ import print_function from collections import OrderedDict import os import shutil import subprocess import tempfile import textwrap import unittest import conda_smithy.lint_recipe as linter class Test_linter(unittest.TestCase): def test_bad_order(self): meta = OrderedDict([['package', []]...
0
0
0
3,871
0
0
0
-2
201
9c9ab098a56dd8c3910188c0bdf3b72a68d8d56c
1,732
py
Python
scripts/split_fasta.py
EnvGen/toolbox
a644560d989316fffd72c696e60c95ed713f6236
[ "MIT" ]
5
2018-07-02T06:34:09.000Z
2021-06-09T00:32:45.000Z
scripts/split_fasta.py
EnvGen/toolbox
a644560d989316fffd72c696e60c95ed713f6236
[ "MIT" ]
5
2016-09-23T08:52:53.000Z
2019-12-19T08:49:11.000Z
scripts/split_fasta.py
EnvGen/toolbox
a644560d989316fffd72c696e60c95ed713f6236
[ "MIT" ]
1
2020-04-28T18:45:56.000Z
2020-04-28T18:45:56.000Z
#!/usr/bin/env python """A script to split a fasta file into multiple smaller files. Output files will be <original>.xx.fasta """ from __future__ import print_function import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--outdir', '-o', help="...
27.935484
122
0.64261
#!/usr/bin/env python """A script to split a fasta file into multiple smaller files. Output files will be <original>.xx.fasta """ from __future__ import print_function import argparse import sys import os import re from os.path import join as ospj def header(row): regex = re.compile("^>") return regex.findall...
0
0
0
0
0
965
0
-24
157
6f9a31ec57f043ee015bf879c14c27a2999e8772
3,122
py
Python
database.py
luontonurkka/fetcher
439d3531b13dcf296c75c1a637dce4e7a7cf8b91
[ "MIT" ]
null
null
null
database.py
luontonurkka/fetcher
439d3531b13dcf296c75c1a637dce4e7a7cf8b91
[ "MIT" ]
null
null
null
database.py
luontonurkka/fetcher
439d3531b13dcf296c75c1a637dce4e7a7cf8b91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sqlite3 """ Under MIT-Licence, 2016 Perttu Rautaniemi """ def createtables(): """ Opening the database and tables, create tables if they dont exist """ conn = sqlite3.connect('LuontonurkkaDB.db') conn.execute('''CREATE TABLE `grid` ( `id` INTEGER NOT NULL, ...
29.17757
118
0.584241
# -*- coding: utf-8 -*- import dataset,codecs, Names, sqlite3 """ Under MIT-Licence, 2016 Perttu Rautaniemi """ def createtables(): """ Opening the database and tables, create tables if they dont exist """ conn = sqlite3.connect('LuontonurkkaDB.db') conn.execute('''CREATE TABLE `grid` ( `id...
0
0
0
0
0
1,855
0
23
22
f3ec3f1a6c80881e00dc45f2e1504d19fe743b75
2,316
py
Python
pyHMI/SimGas.py
sourceperl/pyHMI
61f2742181372a2cff24b6dec5af920dddc210c9
[ "MIT" ]
null
null
null
pyHMI/SimGas.py
sourceperl/pyHMI
61f2742181372a2cff24b6dec5af920dddc210c9
[ "MIT" ]
null
null
null
pyHMI/SimGas.py
sourceperl/pyHMI
61f2742181372a2cff24b6dec5af920dddc210c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
25.450549
96
0.58247
# -*- coding: utf-8 -*- import math import threading import time class GasPipe: def __init__(self, init_volume=50000, water_volume=10000): # private self._add_flow = 0 self._sub_flow = 0 self._stock_vol = init_volume self._water_vol = water_volume self._th_lock = t...
0
623
0
1,453
0
102
0
-25
136
48fa43f09fe1d7615ba3f343f7811f7cce4dd04f
826
py
Python
jp.atcoder/abc132/abc132_d/8438043.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc132/abc132_d/8438043.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc132/abc132_d/8438043.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
# 2019-11-15 00:35:39(JST) # import collections # import math # from string import ascii_lowercase, ascii_uppercase, digits # from bisect import bisect_left as bi_l, bisect_right as bi_r # import itertools # from scipy.misc import comb # float # import numpy as np mod = 10 ** 9 + 7 if __name__ == "__ma...
24.294118
63
0.576271
# 2019-11-15 00:35:39(JST) import operator as op import sys # import collections # import math # from string import ascii_lowercase, ascii_uppercase, digits # from bisect import bisect_left as bi_l, bisect_right as bi_r # import itertools from functools import reduce # from scipy.misc import comb # float ...
36
0
0
0
0
360
0
-4
118
d81256ff57e194d818c4e9bf8f9c6e8d5d916041
5,596
py
Python
gperc/cli.py
yashbonde/general-perceivers
3cc6d8fd7fd1da852cf8aef796c385eaa69f984f
[ "MIT" ]
4
2021-11-02T08:18:06.000Z
2021-12-25T13:45:06.000Z
gperc/cli.py
sanjibansg/general-perceivers
9b881637e017ea1a4d7131042634c9a2fcd8211f
[ "MIT" ]
1
2021-10-30T12:32:49.000Z
2021-10-30T12:32:49.000Z
gperc/cli.py
sanjibansg/general-perceivers
9b881637e017ea1a4d7131042634c9a2fcd8211f
[ "MIT" ]
2
2021-10-18T04:25:40.000Z
2021-11-21T11:33:38.000Z
r""" CLI === **DO NOT USE (WIP)** This module contains the command line interface for gperc. Is this really needed? I am not sure. But having something along the lines of CLI means that running orchestration jobs would be possible. Add code to your github actions by loading data from one place, dispatch this for trai...
36.575163
181
0.649571
r""" CLI === **DO NOT USE (WIP)** This module contains the command line interface for gperc. Is this really needed? I am not sure. But having something along the lines of CLI means that running orchestration jobs would be possible. Add code to your github actions by loading data from one place, dispatch this for trai...
0
0
0
3,177
0
0
0
64
159
1573d07b69f4d4df39e2799dd0eac8a72e2063a9
7,725
py
Python
andes_addon/minipmu.py
CURENT/andes_addon
5b71b3558b8f147ba463a686b4ee2d1ea3ed22eb
[ "BSD-3-Clause" ]
null
null
null
andes_addon/minipmu.py
CURENT/andes_addon
5b71b3558b8f147ba463a686b4ee2d1ea3ed22eb
[ "BSD-3-Clause" ]
null
null
null
andes_addon/minipmu.py
CURENT/andes_addon
5b71b3558b8f147ba463a686b4ee2d1ea3ed22eb
[ "BSD-3-Clause" ]
null
null
null
"""Python module to request PMU data from a running ANDES """ if __name__ == "__main__": mini = MiniPMU( name='TestPMU', dime_address='ipc:///tmp/dime', pmu_idx=[1], pmu_port=1414) mini.run()
32.322176
85
0.529968
"""Python module to request PMU data from a running ANDES """ import logging import time from .dime import Dime from numpy import array, ndarray, zeros from pypmu import Pmu from pypmu.frame import ConfigFrame2, HeaderFrame def get_logger(name): logger = logging.getLogger(name) if not logger.handlers: ...
0
116
0
6,797
0
365
0
30
181
0782dbc58a1f55d81bf13d773d0b85b00e6f8a04
39
py
Python
Chapter 03/Chap03_Example3.23.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.23.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.23.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
print("St-1") print(2/0) print("St-2")
9.75
13
0.589744
print("St-1") print(2/0) print("St-2")
0
0
0
0
0
0
0
0
0
43476669c0e07b4881c73f91b2a4e194e94da549
921
py
Python
setup.py
Neuroglycerin/neukrill-net-tools
133c68403128e6fcea6d6c8c8326b45443ef7f4e
[ "MIT" ]
null
null
null
setup.py
Neuroglycerin/neukrill-net-tools
133c68403128e6fcea6d6c8c8326b45443ef7f4e
[ "MIT" ]
null
null
null
setup.py
Neuroglycerin/neukrill-net-tools
133c68403128e6fcea6d6c8c8326b45443ef7f4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='neukrill-net', version='1.0', description='Neukrill-net NDSB tools', author='neuroglycerin', author_email='root@finlaymagui.re', packages=['neukrill_net'], tests_require=['pytest'], install_requires=['scipy==0...
29.709677
55
0.543974
#!/usr/bin/env python from distutils.core import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest...
0
0
0
222
0
0
0
34
45
82773881e1cd78cba0c3ed8588b4d786447d5b82
459
py
Python
tensornetwork/contractors/custom_path_solvers/__init__.py
khanhgithead/TensorNetwork
e12580f1749493dbe05f474d2fecdec4eaba73c5
[ "Apache-2.0" ]
1,681
2019-04-30T21:07:24.000Z
2022-03-31T14:51:19.000Z
tensornetwork/contractors/custom_path_solvers/__init__.py
khanhgithead/TensorNetwork
e12580f1749493dbe05f474d2fecdec4eaba73c5
[ "Apache-2.0" ]
671
2019-05-04T22:01:20.000Z
2022-03-31T16:02:55.000Z
tensornetwork/contractors/custom_path_solvers/__init__.py
khanhgithead/TensorNetwork
e12580f1749493dbe05f474d2fecdec4eaba73c5
[ "Apache-2.0" ]
394
2019-04-29T03:24:26.000Z
2022-03-11T14:16:21.000Z
#pylint: disable=line-too-long #pylint: disable=line-too-long
65.571429
127
0.891068
from tensornetwork.contractors.custom_path_solvers import pathsolvers from tensornetwork.contractors.custom_path_solvers import nconinterface #pylint: disable=line-too-long from tensornetwork.contractors.custom_path_solvers.pathsolvers import greedy_cost_solve, greedy_size_solve, full_solve_complete #pylint: disable=li...
0
0
0
0
0
0
0
309
88
33fa392b08f1093fd3a75a7d5b57799fd25b8e44
412
py
Python
filter_plugins/apiserver_proxy.py
ochinchina/KubeClus
2a90e33cd0334c0ff3136c955ed44333ecb5cc98
[ "MIT" ]
null
null
null
filter_plugins/apiserver_proxy.py
ochinchina/KubeClus
2a90e33cd0334c0ff3136c955ed44333ecb5cc98
[ "MIT" ]
null
null
null
filter_plugins/apiserver_proxy.py
ochinchina/KubeClus
2a90e33cd0334c0ff3136c955ed44333ecb5cc98
[ "MIT" ]
null
null
null
#!/usr/bin/python2
29.428571
84
0.68932
#!/usr/bin/python2 import os import yaml class FilterModule: def filters(self): return { "change_apiserver_proxy": self.change_apiserver_proxy} def change_apiserver_proxy( self, kubelet_conf, new_apiserver): conf = yaml.load( kubelet_conf ) conf['clusters'][0]['cluster']['server'] = "...
0
0
0
347
0
0
0
-22
68
3dc7b4c968696b2f37879db6704389aaa60185c0
2,775
py
Python
np_autoencoder.py
nirajjayantbolt/cs224u
b0321d4db5f2f6310081565d9ff74976aeb94b91
[ "Apache-2.0" ]
1
2022-02-07T21:41:10.000Z
2022-02-07T21:41:10.000Z
np_autoencoder.py
nirajjayantbolt/cs224u
b0321d4db5f2f6310081565d9ff74976aeb94b91
[ "Apache-2.0" ]
1
2020-02-23T05:11:20.000Z
2020-02-23T05:11:20.000Z
np_autoencoder.py
nirajjayantbolt/cs224u
b0321d4db5f2f6310081565d9ff74976aeb94b91
[ "Apache-2.0" ]
1
2020-05-04T01:50:08.000Z
2020-05-04T01:50:08.000Z
__author__ = "Christopher Potts" __version__ = "CS224u, Stanford, Spring 2020" if __name__ == '__main__': simple_example()
28.030303
74
0.625946
import numpy as np from np_model_base import NNModelBase import pandas as pd __author__ = "Christopher Potts" __version__ = "CS224u, Stanford, Spring 2020" class Autoencoder(NNModelBase): def __init__(self, **kwargs): super(Autoencoder, self).__init__(**kwargs) def prepare_output_data(self, y): ...
0
342
0
1,649
0
530
0
11
112
882146e24e886e028f11c2822c6ccc4856613a95
1,087
py
Python
admin/migrations/0002_auto_20180227_1101.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
4
2019-07-19T17:39:04.000Z
2022-03-22T21:02:15.000Z
admin/migrations/0002_auto_20180227_1101.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
53
2019-08-04T14:25:40.000Z
2022-03-26T20:30:55.000Z
admin/migrations/0002_auto_20180227_1101.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
3
2020-03-09T07:11:03.000Z
2020-09-11T01:22:50.000Z
# Generated by Django 2.0.2 on 2018-02-27 10:01
41.807692
98
0.680773
# Generated by Django 2.0.2 on 2018-02-27 10:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("admin", "0001_initial")] operations = [ migrations.RenameField( model_name="attendance", old_name="attendancestateid", new_name="attendancest...
0
0
0
973
0
0
0
19
46
912d668287be2cf55d3d6ac5fce530b7e78ab4c0
9,910
py
Python
test.py
Sanjana7395/face_segmentation
cc06c6adf639c9ce1a3c64608ff9190dbf25a5ce
[ "MIT" ]
22
2020-08-23T21:27:31.000Z
2022-03-03T09:11:34.000Z
test.py
Sanjana7395/face_segmentation
cc06c6adf639c9ce1a3c64608ff9190dbf25a5ce
[ "MIT" ]
7
2020-07-17T08:35:41.000Z
2021-09-07T11:35:23.000Z
test.py
Sanjana7395/face_segmentation
cc06c6adf639c9ce1a3c64608ff9190dbf25a5ce
[ "MIT" ]
10
2020-07-17T08:56:51.000Z
2022-03-29T08:53:48.000Z
import os import numpy as np import cv2 import argparse from sklearn.metrics import confusion_matrix import matplotlib.pyplot as plt import seaborn as sns from tensorflow.keras import Input from model import u_net from preprocessing.preprocess_utils import display from experiments import lip_hair_color def make_confu...
34.65035
79
0.560343
import os import numpy as np import cv2 import argparse from sklearn.metrics import confusion_matrix import matplotlib.pyplot as plt import seaborn as sns from tensorflow.keras import Input from model import u_net from preprocessing.preprocess_utils import display from experiments import lip_hair_color def make_confu...
0
0
0
0
0
0
0
0
0
45c7e65d5a58484022e55ea62f4b70c3fa489a01
475
py
Python
girder_rnascope/tilesource/tiff.py
abcsFrederick/RNAScope
9cb049f9c64f52e49afddfb32a286c90223bad78
[ "Apache-2.0" ]
null
null
null
girder_rnascope/tilesource/tiff.py
abcsFrederick/RNAScope
9cb049f9c64f52e49afddfb32a286c90223bad78
[ "Apache-2.0" ]
8
2019-09-25T14:07:14.000Z
2019-10-01T16:45:08.000Z
girder_rnascope/tilesource/tiff.py
cj-abcs/RNAScope
9cb049f9c64f52e49afddfb32a286c90223bad78
[ "Apache-2.0" ]
null
null
null
import large_image_source_tiff as tiff # from large_image.tilesource.base import GirderTileSource from .tiff_reader import TiledTiffDirectory tiff.TiledTiffDirectory = TiledTiffDirectory
27.941176
83
0.821053
import large_image_source_tiff as tiff # from large_image.tilesource.base import GirderTileSource from large_image_source_tiff import girder_source from .tiff_reader import TiledTiffDirectory tiff.TiledTiffDirectory = TiledTiffDirectory class TiffFileTileSource(tiff.TiffFileTileSource): cacheName = 'tilesource' ...
0
0
0
189
0
0
0
28
68
a324ee7a3459d4ec211befb07ccbe404786243a9
907
py
Python
scraper/storage_spiders/songvunet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/songvunet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/songvunet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='header_layer_2']/h1", 'price' : "//input[@name='price']/@value", 'category' : "//div[@class='thanh_dinh_huong']/a", ...
33.592593
83
0.62183
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='header_layer_2']/h1", 'price' : "//input[@name='price']/@value", 'category' : "//div[@class='thanh_dinh_huong']/a", ...
0
0
0
0
0
0
0
0
0
ac9be7a8b5a5c2a234164185c4e23dd581187a69
447
py
Python
cpdb/data/migrations/0107_remove_area_line_area_from_allegation.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/data/migrations/0107_remove_area_line_area_from_allegation.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/data/migrations/0107_remove_area_line_area_from_allegation.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
# Generated by Django 2.1.3 on 2019-01-08 04:17
20.318182
52
0.574944
# Generated by Django 2.1.3 on 2019-01-08 04:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('data', '0106_add_field_police_witnesses'), ] operations = [ migrations.RemoveField( model_name='allegation', name='areas', ...
0
0
0
341
0
0
0
11
46
69cc2165b44440845ddc93cd30a1945f73e4c1f1
2,262
py
Python
regularization/train_xgb.py
Fenkail/Deep_learning_basics
a395b5a78e9a742b7fbcf0bf9fe8a0f7022499a5
[ "Apache-2.0" ]
null
null
null
regularization/train_xgb.py
Fenkail/Deep_learning_basics
a395b5a78e9a742b7fbcf0bf9fe8a0f7022499a5
[ "Apache-2.0" ]
null
null
null
regularization/train_xgb.py
Fenkail/Deep_learning_basics
a395b5a78e9a742b7fbcf0bf9fe8a0f7022499a5
[ "Apache-2.0" ]
null
null
null
import numpy as np import time import xgboost as xgb from sklearn.model_selection import KFold from regularization.score import myFeval from sklearn.metrics import mean_squared_error from regularization.data_process import data_process s = time.time() X_train, y_train, X_test, train_len, test_len = data_process() prin...
34.8
106
0.631742
import numpy as np import time import xgboost as xgb from sklearn.model_selection import KFold from regularization.score import myFeval from sklearn.metrics import mean_squared_error from regularization.data_process import data_process s = time.time() X_train, y_train, X_test, train_len, test_len = data_process() prin...
242
0
0
0
0
0
0
0
0
834f9c87021cb2bb5137640f7ebb950dc0ac0eee
798
py
Python
system_tests/test_app_engine.py
yhuang/google-auth-library-python
ccf2e502e0b15633956c007fae92e2404a6418ad
[ "Apache-2.0" ]
1
2020-05-27T15:48:51.000Z
2020-05-27T15:48:51.000Z
system_tests/test_app_engine.py
yhuang/google-auth-library-python
ccf2e502e0b15633956c007fae92e2404a6418ad
[ "Apache-2.0" ]
null
null
null
system_tests/test_app_engine.py
yhuang/google-auth-library-python
ccf2e502e0b15633956c007fae92e2404a6418ad
[ "Apache-2.0" ]
1
2019-11-11T18:39:46.000Z
2019-11-11T18:39:46.000Z
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
34.695652
74
0.756892
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
0
0
0
0
0
144
0
0
23
c600576e5860966b3254155c8bab3c8a148fd251
180
py
Python
2d.py
tcstewar/ik2017
582156a9e3f888f2d1a5e27024e08ef97652e57c
[ "MIT" ]
5
2017-03-13T15:29:18.000Z
2017-03-14T14:54:54.000Z
comm.py
tcstewar/ik2017
582156a9e3f888f2d1a5e27024e08ef97652e57c
[ "MIT" ]
null
null
null
comm.py
tcstewar/ik2017
582156a9e3f888f2d1a5e27024e08ef97652e57c
[ "MIT" ]
null
null
null
import nengo model = nengo.Network() with model: a = nengo.Ensemble(n_neurons=100, dimensions=2, radius=1) stim = nengo.Node([0,0]) nengo.Connection(stim, a)
20
61
0.644444
import nengo model = nengo.Network() with model: a = nengo.Ensemble(n_neurons=100, dimensions=2, radius=1) stim = nengo.Node([0,0]) nengo.Connection(stim, a)
0
0
0
0
0
0
0
0
0
766d111951c2d783a6fb6d8bc5c9611421ae0867
1,428
py
Python
exec/12-2.py
MasazI/python-r-stan-bayesian-model-2
288876b31b6c3d74d523babc475d4794cd29680a
[ "MIT" ]
25
2020-07-11T11:07:28.000Z
2022-03-06T01:12:45.000Z
exec/12-2.py
MasazI/python-r-stan-bayesian-model-2
288876b31b6c3d74d523babc475d4794cd29680a
[ "MIT" ]
null
null
null
exec/12-2.py
MasazI/python-r-stan-bayesian-model-2
288876b31b6c3d74d523babc475d4794cd29680a
[ "MIT" ]
1
2021-05-06T08:48:55.000Z
2021-05-06T08:48:55.000Z
# # # Own Library if __name__ == '__main__': spm = SPM('data-ss2.txt', '../model/model12-2') spm.describe() spm.observe_ts() stan_data = spm.create_data() mcmc_sample = spm.fit(stan_data) # spm.create_figure(mcmc_sample, 'y_mean_pred') # spm.create_figure(mcmc_sample, 'm...
24.62069
89
0.587535
# 時系列予測の問題に季節項を導入する # 時系列データは、目的変数を観測値の要素の和に分解するのが定石 # Own Library import mcmc_tools import analysis_data as ad import seaborn as sns import matplotlib.pyplot as plt class SPM(ad.AnalysisData): def observe_ts(self): sns.lineplot(x=self.data['X'], y=self.data['Y']) plt.show() plt.close() ...
228
0
0
850
0
0
0
11
112
27588fd5f14b8212df3a99af54f72d43a28cfd8f
16,055
py
Python
legacy/ScopTester.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
87
2015-01-01T03:48:19.000Z
2021-11-23T16:23:24.000Z
legacy/ScopTester.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
189
2015-01-06T15:53:11.000Z
2019-05-31T13:19:45.000Z
legacy/ScopTester.py
CGATOxford/cgat
326aad4694bdfae8ddc194171bb5d73911243947
[ "BSD-2-Clause", "BSD-3-Clause" ]
56
2015-01-13T02:18:50.000Z
2022-01-05T10:00:59.000Z
################################################################################ # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as publish...
36.823394
120
0.482903
################################################################################ # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as publish...
0
0
0
12,957
0
0
0
0
178
9d68468167a5ad6a7cbcf83c2e4439a5b61db798
3,045
py
Python
tests/cookie_jar_test.py
p/webracer
3eb40b520bbf884c4458482fc3a05a9a9632d026
[ "BSD-2-Clause" ]
null
null
null
tests/cookie_jar_test.py
p/webracer
3eb40b520bbf884c4458482fc3a05a9a9632d026
[ "BSD-2-Clause" ]
null
null
null
tests/cookie_jar_test.py
p/webracer
3eb40b520bbf884c4458482fc3a05a9a9632d026
[ "BSD-2-Clause" ]
1
2019-04-13T07:43:28.000Z
2019-04-13T07:43:28.000Z
from . import utils from .apps import kitchen_sink_app utils.app_runner_setup(__name__, kitchen_sink_app.app, 8056) base_config = dict(host='localhost', port=8056)
34.213483
68
0.639409
import webracer import nose.plugins.attrib from . import utils from .apps import kitchen_sink_app utils.app_runner_setup(__name__, kitchen_sink_app.app, 8056) base_config = dict(host='localhost', port=8056) @nose.plugins.attrib.attr('client') class AgentWithoutCookieJarTest(webracer.WebTestCase): def test_reques...
0
2,813
0
0
0
0
0
-1
67
485e7adc798133d68d09418c1fa6da75a642fe2f
1,221
py
Python
examinations/models.py
CASDON-MYSTERY/studentapp
0fd942e963a10a02a6c9f358dd362cfd646eecc3
[ "MIT" ]
null
null
null
examinations/models.py
CASDON-MYSTERY/studentapp
0fd942e963a10a02a6c9f358dd362cfd646eecc3
[ "MIT" ]
null
null
null
examinations/models.py
CASDON-MYSTERY/studentapp
0fd942e963a10a02a6c9f358dd362cfd646eecc3
[ "MIT" ]
null
null
null
# Create your models here.
33
98
0.701065
from django.db import models from lectures.models import Day # Create your models here. class Exam_day_and_venue(models.Model): day = models.ForeignKey(Day, on_delete=models.CASCADE,related_name="examination_day") starting_time = models.TimeField("startin_time", auto_now=False, auto_now_add=False) closin...
0
0
0
1,085
0
0
0
17
90
cbb70d43a8d3ff65154e3094134aa202598e0698
520
py
Python
chapter_1/update_db_classes.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_1/update_db_classes.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_1/update_db_classes.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
"Step 3: Stepping Up to OOP" 'Adding Persistence' # Notice how we still fetch, update, and # reassign to keys to update the shelve. import shelve db = shelve.open('class-shelve') sue = db['sue'] sue.giveRaise(.25) db['sue'] = sue tom = db['tom'] tom.giveRaise(.20) db['tom'] = tom db.close() ''' class instance...
20
89
0.717308
"Step 3: Stepping Up to OOP" 'Adding Persistence' # Notice how we still fetch, update, and # reassign to keys to update the shelve. import shelve db = shelve.open('class-shelve') sue = db['sue'] sue.giveRaise(.25) db['sue'] = sue tom = db['tom'] tom.giveRaise(.20) db['tom'] = tom db.close() ''' class instance...
0
0
0
0
0
0
0
0
0
0a881db586e6a52a9d7f7a3a1b1799f27a90fb26
2,315
py
Python
src/wat/read_annotations.py
luiscarlosgph/keypoint-annotation-tool
390a328b5d0d02587a1d12784b7ef70363966036
[ "MIT" ]
6
2021-01-29T18:17:37.000Z
2022-03-08T22:17:26.000Z
src/wat/read_annotations.py
luiscarlosgph/keypoint-annotation-tool
390a328b5d0d02587a1d12784b7ef70363966036
[ "MIT" ]
null
null
null
src/wat/read_annotations.py
luiscarlosgph/keypoint-annotation-tool
390a328b5d0d02587a1d12784b7ef70363966036
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Exemplary script to read the annotations generated by the web application # in this repo. # # @author: Luis Carlos Garcia-Peraza Herrera (luiscarlos.gph@gmail.com). # @date : 20 Jan 2021. import argparse # My imports def parse_cmdline_params(): """ @brief Parse command line parameters...
30.866667
85
0.67689
#!/usr/bin/python # # Exemplary script to read the annotations generated by the web application # in this repo. # # @author: Luis Carlos Garcia-Peraza Herrera (luiscarlos.gph@gmail.com). # @date : 20 Jan 2021. import argparse import json import cv2 import numpy as np import os # My imports import wat.common def pa...
0
0
0
0
0
1,341
0
-40
179
85dc97c10a3b03dac2ae07effad2e7b455ad2038
2,802
py
Python
loaner/web_app/backend/api/loaner_endpoints.py
McDiesel/loaner
dcf5fa640ee9059a814650fa4432fa1116df78e9
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/loaner_endpoints.py
McDiesel/loaner
dcf5fa640ee9059a814650fa4432fa1116df78e9
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/loaner_endpoints.py
McDiesel/loaner
dcf5fa640ee9059a814650fa4432fa1116df78e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.791209
80
0.729479
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
0
0
0
122
0
0
0
0
46
f7f108f68a198ca04eb13f738f69699895622019
4,088
py
Python
DQM/SiPixelPhase1Track/python/SiPixelPhase1RecHits_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-03-09T19:47:49.000Z
2019-03-09T19:47:49.000Z
DQM/SiPixelPhase1Track/python/SiPixelPhase1RecHits_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQM/SiPixelPhase1Track/python/SiPixelPhase1RecHits_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-03-19T13:44:54.000Z
2019-03-19T13:44:54.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger SiPixelPhase1RecHitsNRecHits = DefaultHistoTrack.clone( name = "rechits", title = "RecHits", range_min = 0, range_max = 30, range_nbins = 30, xlabel...
30.281481
88
0.668297
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester from DQM.SiPixelPhase1Common.HistogramManager_cfi import * import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger SiPixelPhase1RecHitsNRecHits = DefaultHistoTrack.clone( name = "rechits", title = "RecHits", ...
0
0
0
0
0
0
0
37
22
632451821cd68317df541d0fbb2c8499a34ac64b
1,624
py
Python
add_doi_minting_date.py
caltechlibrary/caltechdata_api
69a986642942379a12fac64cbba4c08c4ae29cc3
[ "BSD-3-Clause" ]
7
2018-03-07T17:24:22.000Z
2022-02-01T20:01:30.000Z
add_doi_minting_date.py
caltechlibrary/caltechdata_api
69a986642942379a12fac64cbba4c08c4ae29cc3
[ "BSD-3-Clause" ]
7
2018-05-18T23:49:17.000Z
2021-07-22T23:40:26.000Z
add_doi_minting_date.py
caltechlibrary/caltechdata_api
69a986642942379a12fac64cbba4c08c4ae29cc3
[ "BSD-3-Clause" ]
null
null
null
import os, requests from progressbar import progressbar from caltechdata_api import get_metadata, caltechdata_edit def get_datacite_dates(prefix): """Get sumbitted date for DataCite DOIs with specific prefix""" doi_dates = {} doi_urls = {} url = ( "https://api.datacite.org/dois?query=prefix:" ...
34.553191
85
0.580665
import os, requests from progressbar import progressbar from caltechdata_api import get_metadata, caltechdata_edit def get_datacite_dates(prefix): """Get sumbitted date for DataCite DOIs with specific prefix""" doi_dates = {} doi_urls = {} url = ( "https://api.datacite.org/dois?query=prefix:" ...
0
0
0
0
0
0
0
0
0
80440041b109c31bfaff3f15a0eeac9320c0e9ea
457
py
Python
lecture_02/114_transformation_between_frames.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
11
2022-01-24T15:07:15.000Z
2022-03-29T12:58:05.000Z
lecture_02/114_transformation_between_frames.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
4
2022-03-16T06:06:45.000Z
2022-03-29T22:59:11.000Z
lecture_02/114_transformation_between_frames.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
20
2022-03-02T10:36:41.000Z
2022-03-09T00:12:33.000Z
"""Transformation between two frames. """ from compas.geometry import Frame from compas.geometry import Point from compas.geometry import Transformation F1 = Frame.worldXY() F2 = Frame([1.5, 1, 0], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15]) P = Point(2, 2, 2) # local point in F1 # transformation between 2 frames F1, ...
28.5625
65
0.719912
"""Transformation between two frames. """ from compas.geometry import Frame from compas.geometry import Point from compas.geometry import Transformation F1 = Frame.worldXY() F2 = Frame([1.5, 1, 0], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15]) P = Point(2, 2, 2) # local point in F1 # transformation between 2 frames F1, ...
0
0
0
0
0
0
0
0
0
6885620e6742d218394dec3d59818cd86ca65791
641
py
Python
instaapp/urls.py
Michellemukami/insta-clone
423aa3d2aacac82372a611f8f51ba487889a2f9d
[ "MIT" ]
null
null
null
instaapp/urls.py
Michellemukami/insta-clone
423aa3d2aacac82372a611f8f51ba487889a2f9d
[ "MIT" ]
4
2020-06-05T22:37:15.000Z
2021-09-08T01:15:10.000Z
instaapp/urls.py
Michellemukami/insta-clone
423aa3d2aacac82372a611f8f51ba487889a2f9d
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ url('^$',views.login_page,name = 'come'), url(r'^new/profile$', views.profile, name='profile'), url(r'^user/', views.user, name='user'), url(r'^search/', v...
30.52381
81
0.678627
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ url('^$',views.login_page,name = 'come'), url(r'^new/profile$', views.profile, name='profile'), url(r'^user/', views.user, name='user'), url(r'^search/', v...
0
0
0
0
0
0
0
0
0
5c78fbb9c800452caf6342bc4bd90b168a90e6ef
19,090
py
Python
autonomous_exploration/autonomous_exploration/autonomousExploration.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-06-27T02:01:22.000Z
2021-06-27T02:01:22.000Z
autonomous_exploration/autonomous_exploration/autonomousExploration.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:56:04.000Z
2021-09-30T10:26:13.000Z
autonomous_exploration/autonomous_exploration/autonomousExploration.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:52:28.000Z
2021-09-30T01:52:28.000Z
# Import ROS2 libraries # Import message files # Import other libraries ################################################################################################### if __name__ == '__main__': main()
40.274262
195
0.582556
# Import ROS2 libraries import rclpy from rclpy.node import Node from rclpy.action import ActionClient, ActionServer, GoalResponse, CancelResponse from rclpy.qos import QoSProfile from rclpy.callback_groups import ReentrantCallbackGroup from rclpy.executors import MultiThreadedExecutor # Import message files from geom...
0
0
861
16,888
0
421
0
332
375
36812059fa58166e6ee951d9dfb976bcdcdb394d
2,773
py
Python
loggers/progress_interface.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
loggers/progress_interface.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
loggers/progress_interface.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
2
2021-04-10T19:22:15.000Z
2022-03-08T19:37:56.000Z
from typing import Union try: # Assume we're a sub-module in a package. from utils import arguments as arg from base.abstract.tree_item import TreeInterface from loggers.extended_logger_interface import ExtendedLoggerInterface except ImportError: # Apparently no higher-level package has been imported, fa...
27.186275
107
0.653083
from abc import ABC, abstractmethod from enum import Enum from typing import Optional, Union, Iterable, NoReturn try: # Assume we're a sub-module in a package. from utils import arguments as arg from base.abstract.tree_item import TreeInterface from loggers.extended_logger_interface import ExtendedLoggerI...
0
1,487
0
146
0
0
0
74
547
06147a362cae90b4d400fabd85cb0b31d1338c1b
1,240
py
Python
CLASSIC PUZZLE - MEDIUM/mayan-calculation.py
martincourtois/CodinGame
4df9c8af5cb9c513880dd086da9bf3f201bd56ed
[ "Unlicense" ]
null
null
null
CLASSIC PUZZLE - MEDIUM/mayan-calculation.py
martincourtois/CodinGame
4df9c8af5cb9c513880dd086da9bf3f201bd56ed
[ "Unlicense" ]
null
null
null
CLASSIC PUZZLE - MEDIUM/mayan-calculation.py
martincourtois/CodinGame
4df9c8af5cb9c513880dd086da9bf3f201bd56ed
[ "Unlicense" ]
null
null
null
BASE=20 Sym2Base={} Base2Sym={} l, h = [int(i) for i in input().split()] for i in range(h): numeral=input() for j in range(BASE): idx=l*j STR=numeral[idx:idx+l] if j in Base2Sym: Base2Sym[j]+=[STR] else: Base2Sym[j]=[STR] for key,value in Base2Sym.items...
18.507463
55
0.537097
import sys import math BASE=20 Sym2Base={} Base2Sym={} l, h = [int(i) for i in input().split()] for i in range(h): numeral=input() for j in range(BASE): idx=l*j STR=numeral[idx:idx+l] if j in Base2Sym: Base2Sym[j]+=[STR] else: Base2Sym[j]=[STR] for key,...
0
0
0
0
0
0
0
-21
44
a197e2de1fc9100ea53ed671c6bed2bbd3b2ff67
5,551
py
Python
main.py
vutienhung260798/keras-retinanet
73e167cf0bd76563f1171699697343cf9945f53b
[ "Apache-2.0" ]
null
null
null
main.py
vutienhung260798/keras-retinanet
73e167cf0bd76563f1171699697343cf9945f53b
[ "Apache-2.0" ]
4
2020-01-28T22:22:00.000Z
2022-02-09T23:36:54.000Z
main.py
vutienhung260798/keras-retinanet
73e167cf0bd76563f1171699697343cf9945f53b
[ "Apache-2.0" ]
null
null
null
import os import shutil import numpy as np # from google.colab import drive # from google.colab import files # %matplotlib inline # # automatically reload modules when they have changed # %reload_ext autoreload # %autoreload 2 # # import keras # import keras_retinanet # import miscellaneous modules import os # set ...
33.239521
194
0.652495
import os import shutil import zipfile import urllib import xml.etree.ElementTree as ET import numpy as np import csv import pandas # from google.colab import drive # from google.colab import files # %matplotlib inline # # automatically reload modules when they have changed # %reload_ext autoreload # %autoreload 2 # ...
0
0
0
0
0
4,378
0
85
510
43ee1d4b0f5fd09b8583052db30dee40c388a21c
2,489
py
Python
Chapter06/descriptors_pythonic_2.py
TranQuangDuc/Clean-Code-in-Python
3c4b4a2fde2ccf28d2e0ec5002b2e1921704164e
[ "MIT" ]
402
2018-08-19T03:09:40.000Z
2022-03-30T08:10:26.000Z
Chapter06/descriptors_pythonic_2.py
TranQuangDuc/Clean-Code-in-Python
3c4b4a2fde2ccf28d2e0ec5002b2e1921704164e
[ "MIT" ]
3
2019-01-29T20:36:28.000Z
2022-03-02T02:16:23.000Z
Chapter06/descriptors_pythonic_2.py
TranQuangDuc/Clean-Code-in-Python
3c4b4a2fde2ccf28d2e0ec5002b2e1921704164e
[ "MIT" ]
140
2018-09-16T05:47:46.000Z
2022-03-31T03:20:30.000Z
"""Clean Code in Python - Chapter 6: Descriptors > A Pythonic Implementation """
28.94186
79
0.648855
"""Clean Code in Python - Chapter 6: Descriptors > A Pythonic Implementation """ class HistoryTracedAttribute: """Trace the values of this attribute into another one given by the name at ``trace_attribute_name``. """ def __init__(self, trace_attribute_name: str) -> None: self.trace_attribut...
0
0
0
2,358
0
0
0
0
46
71250c279386af28fe56d8a22bdf0dd78d63e5ee
2,621
py
Python
pypi_portal/tasks/pypi.py
SiddharthSudhakar/Flask-prod-app-structure
4213201ab007ec7b10bdb44c4c8acc6dd3dc59ca
[ "MIT" ]
565
2015-01-08T15:04:14.000Z
2022-03-20T16:43:28.000Z
pypi_portal/tasks/pypi.py
rams502/Flask-Large-Application-Example
f536c3dee4050634cf4dfe77a6bb116040e6cf14
[ "MIT" ]
4
2015-11-30T08:28:08.000Z
2016-12-09T08:54:26.000Z
pypi_portal/tasks/pypi.py
rams502/Flask-Large-Application-Example
f536c3dee4050634cf4dfe77a6bb116040e6cf14
[ "MIT" ]
138
2015-02-16T23:03:18.000Z
2021-11-04T01:17:40.000Z
"""Retrieve data from PyPI.""" from logging import getLogger LOG = getLogger(__name__) THROTTLE = 1 * 60 * 60
40.323077
120
0.695155
"""Retrieve data from PyPI.""" from distutils.version import LooseVersion from logging import getLogger import xmlrpclib from flask.ext.celery import single_instance from pypi_portal.extensions import celery, db, redis from pypi_portal.models.pypi import Package from pypi_portal.models.redis import POLL_SIMPLE_THROT...
0
2,223
0
0
0
0
0
128
158
4cce00aa5de582f5670857de07c52a8bef04a856
2,546
py
Python
quex/output/core/state_machine_coder.py
Liby99/quex
45f3d21d5df3307376e175cca2d8473e26cb5622
[ "MIT" ]
null
null
null
quex/output/core/state_machine_coder.py
Liby99/quex
45f3d21d5df3307376e175cca2d8473e26cb5622
[ "MIT" ]
1
2022-01-31T18:08:44.000Z
2022-01-31T18:08:44.000Z
quex/output/core/state_machine_coder.py
raccoonmonk/quex
20ffe451df9fd49bdc216ce45b8263fa228670e5
[ "MIT" ]
null
null
null
# Project Quex (http://quex.sourceforge.net); License: MIT; # (C) 2005-2020 Frank-Rene Schaefer; #_______________________________________________________________________________ import quex.output.core.state.core as state_coder import quex.output.core.state.entry as entry import quex.output.core.mega_...
38
88
0.706991
# Project Quex (http://quex.sourceforge.net); License: MIT; # (C) 2005-2020 Frank-Rene Schaefer; #_______________________________________________________________________________ import quex.output.core.state.core as state_coder import quex.output.core.state.entry as entry import quex.output.core.mega_...
0
0
0
0
448
127
0
30
69
0ca4b19554d9dc9108e289b3ba59d1f5db6441a4
21,179
py
Python
script/BuildConsolidatedFeaturesFile.py
smenon8/AnimalPhotoBias
0b97a8a6d51ad749b4338febdee9d67b80dc3853
[ "BSD-3-Clause" ]
2
2017-02-12T02:33:12.000Z
2021-06-21T09:03:34.000Z
script/BuildConsolidatedFeaturesFile.py
smenon8/AnimalWildlifeEstimator
0b97a8a6d51ad749b4338febdee9d67b80dc3853
[ "BSD-3-Clause" ]
14
2016-08-31T03:05:44.000Z
2017-06-02T17:37:29.000Z
script/BuildConsolidatedFeaturesFile.py
smenon8/AnimalPhotoBias
0b97a8a6d51ad749b4338febdee9d67b80dc3853
[ "BSD-3-Clause" ]
1
2016-04-29T20:33:45.000Z
2016-04-29T20:33:45.000Z
# python-3 # coding: utf-8 ''' Script Name: BuildConsolidatedFeaturesFile.py Created date : Sunday, 27th March Author : Sreejith Menon Description : buildFeatureFl(input file,output file) Reads from a csv file (taken as a parameter) containing a list of image GIDs. Extracts the below features from the IBEIS datas...
41.855731
161
0.656074
# python-3 # coding: utf-8 ''' Script Name: BuildConsolidatedFeaturesFile.py Created date : Sunday, 27th March Author : Sreejith Menon Description : buildFeatureFl(input file,output file) Reads from a csv file (taken as a parameter) containing a list of image GIDs. Extracts the below features from the IBEIS datas...
0
0
0
0
0
15,081
0
60
430
8e03e376e99bc71cbaabe97c09cb6c6de66197ff
18,642
py
Python
component/FileBrowser.py
timothyhalim/nuke-welcome-screen
563c91c535d8914892fa7c1f8bf29851b8397eb3
[ "Unlicense" ]
3
2021-04-12T19:17:19.000Z
2022-03-03T18:23:45.000Z
component/FileBrowser.py
timothyhalim/welcome-screen
563c91c535d8914892fa7c1f8bf29851b8397eb3
[ "Unlicense" ]
null
null
null
component/FileBrowser.py
timothyhalim/welcome-screen
563c91c535d8914892fa7c1f8bf29851b8397eb3
[ "Unlicense" ]
null
null
null
# TODO try: except:
35.508571
118
0.564639
# TODO import subprocess import sys import os import re from glob import glob try: from PySide2.QtWidgets import * from PySide2.QtGui import * from PySide2.QtCore import * except: from PySide.QtGui import * from PySide.QtCore import * def getDrives(): platform = sys.platform if p...
0
0
0
16,235
0
1,996
0
3
387
f3167a11f305bd52e84dacb04f8a81a811d44393
8,784
py
Python
NightlyTests/tensorflow/test_adaround.py
aaronkjones/aimet
08feb34573281f87c53301935652a02f8d573858
[ "BSD-3-Clause" ]
null
null
null
NightlyTests/tensorflow/test_adaround.py
aaronkjones/aimet
08feb34573281f87c53301935652a02f8d573858
[ "BSD-3-Clause" ]
null
null
null
NightlyTests/tensorflow/test_adaround.py
aaronkjones/aimet
08feb34573281f87c53301935652a02f8d573858
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python3.6 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
44.588832
118
0.677026
# /usr/bin/env python3.6 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
0
2,616
0
3,647
0
0
0
193
288
61205a6832b5abb6004146fd516d3addbef0ffaf
1,888
py
Python
test/test_7.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
test/test_7.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
test/test_7.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
import logging logging.basicConfig(level=logging.CRITICAL)
40.170213
191
0.603284
import unittest import logging logging.basicConfig(level=logging.CRITICAL) from aoc2019 import Amplifier class Day7(unittest.TestCase): def test_part1_a(self): phase_sequence = [4,3,2,1,0] code = [3,15,3,16,1002,16,10,16,1,16,15,15,4,15,99,0,0] chall = Amplifier(code=code, enable_l...
0
0
0
1,756
0
0
0
2
70
7012f9d95fc65ac47f73e994b77273ec96e31638
2,015
py
Python
crawling scripts/uber_eats.py
kulten/Restaurant-search-engine
ba9d90c5f97f3360757aa7e60d4e9a349943dab9
[ "MIT" ]
null
null
null
crawling scripts/uber_eats.py
kulten/Restaurant-search-engine
ba9d90c5f97f3360757aa7e60d4e9a349943dab9
[ "MIT" ]
null
null
null
crawling scripts/uber_eats.py
kulten/Restaurant-search-engine
ba9d90c5f97f3360757aa7e60d4e9a349943dab9
[ "MIT" ]
null
null
null
from selenium import webdriver import json from crawlpack.helpers import id_gen, connect chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option( "prefs",{'profile.managed_default_content_settings.javascript': 2}) driver = webdriver.Chrome(chrome_options=chrome_options) conn, cur = connect(...
51.666667
272
0.665509
import time from selenium import webdriver import json from crawlpack.helpers import id_gen, connect chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option( "prefs",{'profile.managed_default_content_settings.javascript': 2}) driver = webdriver.Chrome(chrome_options=chrome_options) conn, cu...
0
0
0
0
0
0
0
-10
22
1404028406d10381b34041ce381700c4c5e64506
990
py
Python
phiimages/tests.py
denn-is-njeruh/Instaclone
a2f3c36822c419bfeadc56adccce00ce77e1d16e
[ "MIT" ]
null
null
null
phiimages/tests.py
denn-is-njeruh/Instaclone
a2f3c36822c419bfeadc56adccce00ce77e1d16e
[ "MIT" ]
null
null
null
phiimages/tests.py
denn-is-njeruh/Instaclone
a2f3c36822c419bfeadc56adccce00ce77e1d16e
[ "MIT" ]
null
null
null
# Create your tests here.
35.357143
192
0.713131
from django.test import TestCase from .models import Image, Profile # Create your tests here. class TestProfileClass(TestCase): def setUp(self): self.new_profile = Profile(name = 'the_phi', profile_photo = 'image.jpg', bio = 'Dedicated coder') def test_instance(self): self.assertTrue(isinstance(self.new...
0
0
0
850
0
0
0
24
89
a8224b54c25f0f4161bab881ff1dc019d12d9b80
9,052
py
Python
pysnmp/NBS-SIGLANE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/NBS-SIGLANE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/NBS-SIGLANE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module NBS-SIGLANE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-SIGLANE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:07:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
127.492958
1,253
0.773089
# # PySNMP MIB module NBS-SIGLANE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-SIGLANE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:07:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
0
0
0
0
0
0
0
0
0
a36bc46d294cc96d17322dd9c9fdb9fa7f5bb8a7
685
py
Python
server/djangoapp/admin.py
AbdKenn/agfzb-CloudAppDevelopment_Capstone
78512461254dc398a1f55fa198b68de5a6731b2b
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
AbdKenn/agfzb-CloudAppDevelopment_Capstone
78512461254dc398a1f55fa198b68de5a6731b2b
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
AbdKenn/agfzb-CloudAppDevelopment_Capstone
78512461254dc398a1f55fa198b68de5a6731b2b
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import CarMake, CarModel # Register your models here. #admin.site.register(CarMake) #admin.site.register(CarModel) # CarModelInline class # CarModelAdmin class # CarMakeAdmin class with CarModelInline # Register models here admin.site.register(CarModel) admin.site.r...
25.37037
49
0.738686
from django.contrib import admin from .models import CarMake, CarModel # Register your models here. #admin.site.register(CarMake) #admin.site.register(CarModel) # CarModelInline class class CarModelInline(admin.StackedInline): model = CarModel #extra = 5 # CarModelAdmin class class CarModelAdmin(admin.M...
0
0
0
268
0
0
0
0
66
355d02ea714772075a1790c26bb4c418bc4e9aad
1,402
py
Python
semantic_segmentation/configs/_base_/models/upernet_convnext.py
ParikhKadam/ConvNeXt
d1fa8f6fef0a165b27399986cc2bdacc92777e40
[ "MIT" ]
3,453
2022-01-11T01:49:27.000Z
2022-03-31T12:35:56.000Z
semantic_segmentation/configs/_base_/models/upernet_convnext.py
ParikhKadam/ConvNeXt
d1fa8f6fef0a165b27399986cc2bdacc92777e40
[ "MIT" ]
80
2022-01-11T10:03:13.000Z
2022-03-31T05:22:48.000Z
semantic_segmentation/configs/_base_/models/upernet_convnext.py
ParikhKadam/ConvNeXt
d1fa8f6fef0a165b27399986cc2bdacc92777e40
[ "MIT" ]
398
2022-01-11T02:42:28.000Z
2022-03-31T06:30:47.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained=None, bac...
28.04
74
0.598431
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained=None, bac...
0
0
0
0
0
0
0
0
0
e6cdd09d28b8d706c93874dff659d7ce8d79506b
1,695
py
Python
tests/python/twitter/common/quantity/test_parsing.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
1,143
2015-01-05T04:19:24.000Z
2019-12-11T12:02:23.000Z
tests/python/twitter/common/quantity/test_parsing.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
144
2015-01-06T05:05:07.000Z
2019-12-12T18:02:37.000Z
tests/python/twitter/common/quantity/test_parsing.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
426
2015-01-08T08:33:41.000Z
2019-12-09T13:15:40.000Z
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
43.461538
100
0.60118
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
0
0
0
0
0
612
0
70
113
f394b02017f0e1636d2d430576fb8fa5688a4a89
79
py
Python
src/__init__.py
Tauseef-Hilal/iCODE-BOT
dd4efa9084c35d238f1170ff3af69eeeb055abec
[ "MIT" ]
1
2022-03-31T15:31:10.000Z
2022-03-31T15:31:10.000Z
src/__init__.py
Tauseef-Hilal/iCODE-BOT
dd4efa9084c35d238f1170ff3af69eeeb055abec
[ "MIT" ]
null
null
null
src/__init__.py
Tauseef-Hilal/iCODE-BOT
dd4efa9084c35d238f1170ff3af69eeeb055abec
[ "MIT" ]
null
null
null
__author__ = "Tauseef Hilal Tantary" __title__ = "iCODE-BOT" __version__ = 1.0
19.75
36
0.746835
__author__ = "Tauseef Hilal Tantary" __title__ = "iCODE-BOT" __version__ = 1.0
0
0
0
0
0
0
0
0
0
230d2beb84eb1c772ee30285ed46a43c88b22a1f
2,656
py
Python
sdk/python/pulumi_gcp/sql/database_instance.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/sql/database_instance.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/sql/database_instance.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import utilities, tables
40.242424
183
0.691642
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from .. import utilities, tables class DatabaseInstance(pulumi.CustomResource): """ Create...
0
0
0
2,378
0
0
0
0
45
3948742f2a5abc4ef05a2d984c85454b2d48e44f
4,121
py
Python
backend/apps/account/models.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
backend/apps/account/models.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
29
2020-06-05T19:57:11.000Z
2022-02-26T13:42:36.000Z
backend/apps/account/models.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model # Create your models here. # get_user_model()Model # Modeldjango.contrib.auth.models.User # settings.pyAUTH_USER_MODELModel # AUTH_USER_MODEL = "account.UserProfile" User = get_user_model() # class UserProfile
35.834783
94
0.677263
from django.db import models from django.contrib.auth.models import AbstractUser from django.contrib.auth import get_user_model # Create your models here. class UserProfile(AbstractUser): """ 自定义的用户Model 拓展字段gender, nick_name, mobile, qq """ GENDER_CHOICES = ( ('male', "男"), ('fe...
813
0
0
3,437
0
0
0
37
113
e885c149f86640e0c03b693520964b9ee91d4c2c
929
py
Python
record/list/migrations/0008_userorder.py
Brayton-Han/Brayton-s-Record
67cb6f7b17d8cb2c5f428079afb091f12b015f5c
[ "MIT" ]
null
null
null
record/list/migrations/0008_userorder.py
Brayton-Han/Brayton-s-Record
67cb6f7b17d8cb2c5f428079afb091f12b015f5c
[ "MIT" ]
null
null
null
record/list/migrations/0008_userorder.py
Brayton-Han/Brayton-s-Record
67cb6f7b17d8cb2c5f428079afb091f12b015f5c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-09 13:27
29.967742
77
0.482239
# Generated by Django 3.2.3 on 2021-06-09 13:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('list', '0007_delete_userorder'), ] operations = [ migrations.CreateModel( name='userorder', fields=[ ...
6
0
0
807
0
0
0
19
50
da8f7395117236400bc244fab6d42b66306497f6
1,857
py
Python
NN_PyTorch/12_RNN_regression.py
zhengxuanyu/NNByPytorch
f90b807a44234a48f914e03e45c9691f17eb3189
[ "MIT" ]
4
2019-03-17T07:51:20.000Z
2020-02-18T20:39:16.000Z
NN_PyTorch/12_RNN_regression.py
zhengxuanyu/NNByPytorch
f90b807a44234a48f914e03e45c9691f17eb3189
[ "MIT" ]
null
null
null
NN_PyTorch/12_RNN_regression.py
zhengxuanyu/NNByPytorch
f90b807a44234a48f914e03e45c9691f17eb3189
[ "MIT" ]
null
null
null
import torch from torch import nn import numpy as np import matplotlib.pyplot as plt # hyper parameters TIME_STEP = 10 INPUT_SIZE = 1 LR = 0.02 steps = np.linspace(0, np.pi * 2, 100, dtype=np.float32) x_np = np.sin(steps) y_np = np.cos(steps) plt.plot(steps, y_np, 'r-', label='target (cos)') plt.plot(...
24.434211
65
0.584276
import torch from torch import nn import numpy as np import matplotlib.pyplot as plt # hyper parameters TIME_STEP = 10 INPUT_SIZE = 1 LR = 0.02 steps = np.linspace(0, np.pi * 2, 100, dtype=np.float32) x_np = np.sin(steps) y_np = np.cos(steps) plt.plot(steps, y_np, 'r-', label='target (cos)') plt.plot(...
0
0
0
524
0
0
0
0
25
93243cb4b1ceea3e29fdf0c8924e9e481b0b1ddc
1,478
py
Python
deploy/create_dummy_notes.py
nonlinearfunction/gatsby-garden
ef8e60cf47300bcf709f20fb06ca4aa6f64c8a1c
[ "MIT" ]
null
null
null
deploy/create_dummy_notes.py
nonlinearfunction/gatsby-garden
ef8e60cf47300bcf709f20fb06ca4aa6f64c8a1c
[ "MIT" ]
null
null
null
deploy/create_dummy_notes.py
nonlinearfunction/gatsby-garden
ef8e60cf47300bcf709f20fb06ca4aa6f64c8a1c
[ "MIT" ]
3
2022-02-22T22:38:47.000Z
2022-02-25T15:17:49.000Z
import os import re import collections NOTES_DIR = '/home/dave/nonlinearfunction/gatsby-garden/_notes' md_files = [fname for fname in os.listdir(NOTES_DIR) if fname.endswith('.md')] existing_notes = [fname[:-3] for fname in md_files] refs = collections.defaultdict(int) linked_notes = set() for filename in md_files:...
32.844444
78
0.592693
import os import re import collections NOTES_DIR = '/home/dave/nonlinearfunction/gatsby-garden/_notes' md_files = [fname for fname in os.listdir(NOTES_DIR) if fname.endswith('.md')] existing_notes = [fname[:-3] for fname in md_files] refs = collections.defaultdict(int) linked_notes = set() for filename in md_files:...
0
0
0
0
0
0
0
0
0
0d16a7557165a155627b2b9afddb27bfca31e839
7,136
py
Python
configs/functions.py
jordimas/spacy
744783b56513f6d51baa40f3a4ccdac4a7b7533e
[ "MIT" ]
13
2021-05-20T18:51:48.000Z
2021-11-07T08:17:59.000Z
configs/functions.py
projecte-aina/spacy
9996d385a036551c7ba0b20d1f0be976bf9c9c02
[ "MIT" ]
3
2021-05-20T17:52:01.000Z
2021-06-22T20:10:24.000Z
configs/functions.py
projecte-aina/spacy
9996d385a036551c7ba0b20d1f0be976bf9c9c02
[ "MIT" ]
2
2021-06-19T16:37:12.000Z
2021-07-28T15:41:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 14 10:10:32 2021 @author: carlos.rodriguez1@bsc.es asier.gutierrez@bsc.es carme.armentano@bsc.es """
39.208791
134
0.565022
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 14 10:10:32 2021 @author: carlos.rodriguez1@bsc.es asier.gutierrez@bsc.es carme.armentano@bsc.es """ import spacy import os import json from typing import List, Tuple, Optional from thinc.api import Model from spacy.pipeline import Lemmatizer from ...
0
4,160
0
2,463
0
0
0
45
291
02f3a1ffa6d264785465aa55ffbca59961bdd325
5,918
py
Python
BLU.py
AdroitAdorKhan/EnergizedBlu
6c48bf9f1a91b37ff07086692a8afc92818d60fe
[ "MIT" ]
null
null
null
BLU.py
AdroitAdorKhan/EnergizedBlu
6c48bf9f1a91b37ff07086692a8afc92818d60fe
[ "MIT" ]
null
null
null
BLU.py
AdroitAdorKhan/EnergizedBlu
6c48bf9f1a91b37ff07086692a8afc92818d60fe
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Energized Blu import urllib.request import datetime import os import time File = 'energized/blu' List = [] # Thanks to all maintainers of hosts lists. Sources = [ 'https://raw.githubusercontent.com/AdroitAdorKhan/Energized/master/EnergizedHosts/EnergizedHosts', 'https:...
65.755556
932
0.723893
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Energized Blu import urllib.request import datetime import os import time File = 'energized/blu' List = [] # Thanks to all maintainers of hosts lists. Sources = [ 'https://raw.githubusercontent.com/AdroitAdorKhan/Energized/master/EnergizedHosts/EnergizedHosts', 'https:...
0
0
0
0
0
0
0
0
0
76b4ca5d35739f772e19658316215cfc154e9849
1,804
py
Python
rain_notice.py
NekoSarada1101/secretary-slack-bot
fba66ad8227ce71af32c756971bf10e2517267ea
[ "MIT" ]
null
null
null
rain_notice.py
NekoSarada1101/secretary-slack-bot
fba66ad8227ce71af32c756971bf10e2517267ea
[ "MIT" ]
12
2021-02-13T10:28:51.000Z
2021-02-28T03:24:14.000Z
rain_notice.py
NekoSarada1101/secretary-slack-bot
fba66ad8227ce71af32c756971bf10e2517267ea
[ "MIT" ]
null
null
null
if __name__ == "__main__": post_rain_notice()
33.407407
96
0.675721
import json import requests from settings import * def post_rain_notice(): weather_data = fetch_hourly_weather_data() # type: dict payload = create_rain_notice_payload(weather_data) # type: json if payload is not None: response = requests.post(SLACK_WEBHOOK_URL, payload) print(response) ...
549
0
0
0
0
1,446
0
-15
135
4a3c1abfc423f8d49d93f8f5e11b9a9e20bf58b5
15,365
py
Python
contrib/script/py/pybase/pyopmo.py
michaelweiss092/LillyMol
a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9
[ "Apache-2.0" ]
53
2018-06-01T13:16:15.000Z
2022-02-23T21:04:28.000Z
contrib/script/py/pybase/pyopmo.py
michaelweiss092/LillyMol
a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9
[ "Apache-2.0" ]
19
2018-08-14T13:43:18.000Z
2021-09-24T12:53:11.000Z
contrib/script/py/pybase/pyopmo.py
michaelweiss092/LillyMol
a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9
[ "Apache-2.0" ]
19
2018-10-23T19:41:01.000Z
2022-02-17T08:14:00.000Z
""" Contains Python "bindings" to molecule object and Python functions utilizing molecule object key functionalities The intent is to provide a Pythonic interface to mo utilities and, thus, enable easy/consistent use of mo from within python programs. Testing: $ python <path-to-location>/pymo.py """ import os import ...
37.844828
177
0.589391
""" Contains Python "bindings" to molecule object and Python functions utilizing molecule object key functionalities The intent is to provide a Pythonic interface to mo utilities and, thus, enable easy/consistent use of mo from within python programs. Testing: $ python <path-to-location>/pymo.py """ import os import ...
0
0
0
5,309
0
2,729
0
19
93
0154cd266d10abdb84725065fd8a7273dbc5e6fd
5,068
py
Python
tests/component/records/pandas/test_prep_for_csv.py
ellyteitsworth/records-mover
21cd56efc2d23cfff04ec1fdf582e5229546c418
[ "Apache-2.0" ]
null
null
null
tests/component/records/pandas/test_prep_for_csv.py
ellyteitsworth/records-mover
21cd56efc2d23cfff04ec1fdf582e5229546c418
[ "Apache-2.0" ]
null
null
null
tests/component/records/pandas/test_prep_for_csv.py
ellyteitsworth/records-mover
21cd56efc2d23cfff04ec1fdf582e5229546c418
[ "Apache-2.0" ]
null
null
null
# import pytz
41.203252
88
0.474743
import pandas as pd # import pytz import unittest from records_mover.records.pandas import prep_df_for_csv_output from records_mover.records.schema import RecordsSchema from records_mover.records import DelimitedRecordsFormat, ProcessingInstructions class TestPrepForCsv(unittest.TestCase): def test_prep_df_for_cs...
0
0
0
4,794
0
0
0
126
133
22da4ef049b9e8ecbc5351dab4a7e240d8f2b253
7,087
py
Python
pilanimate/__init__.py
jetstream0/PilAnimate
077eaec0bfc5119c64f08d7ad21e3451b1c39d29
[ "MIT" ]
null
null
null
pilanimate/__init__.py
jetstream0/PilAnimate
077eaec0bfc5119c64f08d7ad21e3451b1c39d29
[ "MIT" ]
null
null
null
pilanimate/__init__.py
jetstream0/PilAnimate
077eaec0bfc5119c64f08d7ad21e3451b1c39d29
[ "MIT" ]
null
null
null
#pilaniamte version 0.4.1
40.039548
248
0.686609
#pilaniamte version 0.4.1 from PIL import Image, ImageDraw, ImageOps, ImageFilter, ImageEnhance, ImageColor, ImageFont, ImageSequence import cv2 import numpy from time import sleep import os, math class Animation: def __init__(self, layer_num, size=(1600,900), fps=25, mode="RGBA", color=0): self.layers = [] ...
0
0
0
6,845
0
0
0
61
156
830c2187d7207e6add4a2133b9f662799d8fb3a2
5,938
py
Python
examples/alternatives_comparision.py
fossabot/IneqPy
f9329d465a922fcacdefd14858350ee40bc5b803
[ "MIT" ]
21
2018-06-22T07:56:40.000Z
2022-03-13T12:28:10.000Z
examples/alternatives_comparision.py
fossabot/IneqPy
f9329d465a922fcacdefd14858350ee40bc5b803
[ "MIT" ]
29
2017-08-11T20:07:42.000Z
2022-02-21T18:43:28.000Z
examples/alternatives_comparision.py
fossabot/IneqPy
f9329d465a922fcacdefd14858350ee40bc5b803
[ "MIT" ]
12
2017-05-21T15:30:48.000Z
2022-03-02T14:40:24.000Z
import numpy as np from pygsl import statistics as gsl_stat from scipy import stats as sp_stat import ineqpy as ineq from ineqpy import _statistics as ineq_stat # Generate random data x, w = ineq.utils.generate_data_to_test((60,90)) # Replicating weights x_rep, w_rep = ineq.utils.repeat_data_from_weighted(x, w) svy =...
24.436214
77
0.625126
import numpy as np from pygsl import statistics as gsl_stat from scipy import stats as sp_stat import ineqpy as ineq from ineqpy import _statistics as ineq_stat # Generate random data x, w = ineq.utils.generate_data_to_test((60,90)) # Replicating weights x_rep, w_rep = ineq.utils.repeat_data_from_weighted(x, w) svy =...
0
0
0
0
0
0
0
0
0
1189a746cd75b8a97b4ddd9fc9c698a877b7186a
1,681
py
Python
artbot_scraper/spiders/mayspace_spider.py
coreymcdermott/artbot
848e85d0be0c58b7803d4bd1631a0cef63abb72d
[ "MIT" ]
3
2016-03-04T02:53:05.000Z
2021-12-02T20:50:11.000Z
artbot_scraper/spiders/mayspace_spider.py
coreymcdermott/artbot
848e85d0be0c58b7803d4bd1631a0cef63abb72d
[ "MIT" ]
14
2020-02-11T21:53:12.000Z
2022-03-11T23:16:12.000Z
artbot_scraper/spiders/mayspace_spider.py
coreymcdermott/artbot
848e85d0be0c58b7803d4bd1631a0cef63abb72d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
45.432432
138
0.581202
# -*- coding: utf-8 -*- import re from scrapy import Spider, Request from dateutil import parser from artbot_scraper.items import EventItem from pytz import timezone class MaySpaceSpider(Spider): name = 'May Space' allowed_domains = ['mayspace.com.au'] ...
0
0
0
1,449
0
0
0
74
133
f4bf371008fb34e1b4a5fc3741ba4dc3f841a88a
771
py
Python
FortressOfSolitude/_FortressOfSolitude/superhero/forms.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
null
null
null
FortressOfSolitude/_FortressOfSolitude/superhero/forms.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
6
2021-07-26T14:07:30.000Z
2022-01-09T01:06:40.000Z
FortressOfSolitude/_FortressOfSolitude/superhero/forms.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
null
null
null
""" DBA 1337_TECH, AUSTIN TEXAS MAY 2021 Proof of Concept code, No liabilities or warranties expressed or implied. """
24.09375
73
0.635538
""" DBA 1337_TECH, AUSTIN TEXAS © MAY 2021 Proof of Concept code, No liabilities or warranties expressed or implied. """ from django import forms from django.contrib.auth.forms import UserCreationForm from django.urls import reverse from .models import User class RegisterForm(UserCreationForm): email = forms.Ch...
2
0
0
487
0
0
0
49
113
e8cf5a3c936963ef6dc97da97610e804ef344d5d
3,044
py
Python
src/main.py
loovien/meida-downloader
c69748081fad236f2de065c5ada37b08fb93cc4c
[ "MIT" ]
1
2021-05-30T04:16:02.000Z
2021-05-30T04:16:02.000Z
src/main.py
loovien/meida-downloader
c69748081fad236f2de065c5ada37b08fb93cc4c
[ "MIT" ]
1
2020-10-12T08:26:04.000Z
2020-10-12T08:26:04.000Z
src/main.py
loovien/mediaxz
c69748081fad236f2de065c5ada37b08fb93cc4c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # website: https://loovien.github.io # author: luowen<bigpao.luo@gmail.com> # time: 2018/9/29 21:41 # desc: import logging logger = logging.getLogger(__name__) if __name__ == '__main__': launch()
33.822222
105
0.685611
# -*- coding: utf-8 -*- # website: https://loovien.github.io # author: luowen<bigpao.luo@gmail.com> # time: 2018/9/29 21:41 # desc: from src.tools.video_builder import VideoBuilder import traceback import click import logging from src.crawl import CrawlFactory from src.logs import config_logging from src.pub.bilib imp...
12
2,349
0
0
0
63
0
80
315
e7a6afa2dd36970c65af2f61db86c15f038b1926
3,411
py
Python
shop/views.py
knkemree/django_ecommerce_website
19876976bc872cf4835778d12d82756c573cf3b9
[ "bzip2-1.0.6" ]
null
null
null
shop/views.py
knkemree/django_ecommerce_website
19876976bc872cf4835778d12d82756c573cf3b9
[ "bzip2-1.0.6" ]
8
2020-06-06T01:22:59.000Z
2022-01-13T02:14:24.000Z
shop/views.py
knkemree/django_ecommerce_website
19876976bc872cf4835778d12d82756c573cf3b9
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render # Create your views here.
33.441176
124
0.64204
from django.contrib import messages from django.shortcuts import render from django.shortcuts import render, get_object_or_404 from django.db.models import Q from home.models import Comment from .models import Category, Product, ProductImage from cart.forms import CartAddProductForm from django.views.generic import Lis...
0
0
0
637
0
2,181
0
170
356
27803b4ad91fcc3857fc8747877f3ed4b0d80420
95
py
Python
src/test/treadmill/test_turtle.py
chrisspen/homebot
cd1a5a2bddcb90d50a00e67b94297942827fbc61
[ "MIT" ]
8
2017-11-19T01:42:59.000Z
2021-02-08T09:18:58.000Z
src/test/treadmill/test_turtle.py
chrisspen/homebot
cd1a5a2bddcb90d50a00e67b94297942827fbc61
[ "MIT" ]
24
2017-02-14T16:50:02.000Z
2017-06-07T18:38:20.000Z
src/test/treadmill/test_turtle.py
chrisspen/homebot
cd1a5a2bddcb90d50a00e67b94297942827fbc61
[ "MIT" ]
6
2017-05-17T03:07:05.000Z
2019-11-14T09:33:06.000Z
#!/usr/bin/env python import turtle turtle.pen(fillcolor="black", pencolor="red", pensize=10)
19
57
0.736842
#!/usr/bin/env python import turtle turtle.pen(fillcolor="black", pencolor="red", pensize=10)
0
0
0
0
0
0
0
0
0
7d64d8829369775635a1ff730b531c30b755a45f
653
py
Python
1_Python/Desafios/062_PAv3.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
1_Python/Desafios/062_PAv3.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
1_Python/Desafios/062_PAv3.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
from termcolor import cprint, colored ni = float(input(colored('Primeiro termo da progresso aritmtica: ', 'blue'))) pa = float(input(colored('Razo da progresso aritmtica: ', 'blue'))) c = 0 p = 10 lp = [] lc = [] np = ni while c < p: while c < p: lp += [str(np)] ne = len(str(np)) np += pa ...
28.391304
79
0.517611
from termcolor import cprint, colored ni = float(input(colored('Primeiro termo da progressão aritmética: ', 'blue'))) pa = float(input(colored('Razão da progressão aritmética: ', 'blue'))) c = 0 p = 10 lp = [] lc = [] np = ni while c < p: while c < p: lp += [str(np)] ne = len(str(np)) np += ...
12
0
0
0
0
0
0
0
0
be22c1f97af81b9669c5b83a9ecd5bbdc4c94364
2,723
py
Python
django/contrib/sessions/backends/cached_db.py
webjunkie/django
5dbca13f3baa2e1bafd77e84a80ad6d8a074712e
[ "BSD-3-Clause" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
django/contrib/sessions/backends/cached_db.py
webjunkie/django
5dbca13f3baa2e1bafd77e84a80ad6d8a074712e
[ "BSD-3-Clause" ]
18
2015-01-14T07:51:48.000Z
2021-10-14T01:19:26.000Z
django/contrib/sessions/backends/cached_db.py
webjunkie/django
5dbca13f3baa2e1bafd77e84a80ad6d8a074712e
[ "BSD-3-Clause" ]
70
2015-01-01T00:33:24.000Z
2021-12-10T03:43:07.000Z
""" Cached, database-backed sessions. """ KEY_PREFIX = "django.contrib.sessions.cached_db" # At bottom to avoid circular import
32.035294
78
0.61513
""" Cached, database-backed sessions. """ import logging from django.contrib.sessions.backends.db import SessionStore as DBStore from django.core.cache import cache from django.core.exceptions import SuspiciousOperation from django.utils import timezone from django.utils.encoding import force_text KEY_PREFIX = "djan...
0
75
0
2,183
0
0
0
154
179
f81b9afe3d8b8d75a53275d7b14f783c96f2208d
7,968
py
Python
kbr/azure_utils.py
brugger/kbr-azure-utils
92257cef75b035eaac90de958d206dc199ca9ebc
[ "MIT" ]
null
null
null
kbr/azure_utils.py
brugger/kbr-azure-utils
92257cef75b035eaac90de958d206dc199ca9ebc
[ "MIT" ]
null
null
null
kbr/azure_utils.py
brugger/kbr-azure-utils
92257cef75b035eaac90de958d206dc199ca9ebc
[ "MIT" ]
null
null
null
import kbr.log_utils as logger from munch import munchify connection = munchify({}) def server_stop(id: str, compute_group:str, **kwargs): # done, needs testing """ stops a server """ connection.compute_client.virtual_machines.power_off(compute_group, id).result() logger.debug("Stopped server ...
35.891892
197
0.591114
from azure.identity import AzureCliCredential from azure.mgmt.resource import ResourceManagementClient from azure.mgmt.network import NetworkManagementClient from azure.mgmt.compute import ComputeManagementClient from azure.mgmt.storage import StorageManagementClient from azure.common.credentials import ServicePrincipa...
0
0
0
0
0
6,974
0
264
385
4a9a1be887c7457284810624885cb4c658d4c5b1
626
py
Python
scripts/dset64Test.py
tijyojwad/shasta
dffb41279bbc606d06f5323add40c0b1ebd5ae65
[ "BSD-3-Clause" ]
267
2018-07-31T16:12:24.000Z
2022-03-29T13:57:53.000Z
scripts/dset64Test.py
tijyojwad/shasta
dffb41279bbc606d06f5323add40c0b1ebd5ae65
[ "BSD-3-Clause" ]
140
2018-08-10T14:14:19.000Z
2022-02-18T22:05:05.000Z
scripts/dset64Test.py
tijyojwad/shasta
dffb41279bbc606d06f5323add40c0b1ebd5ae65
[ "BSD-3-Clause" ]
47
2018-09-28T18:29:37.000Z
2022-02-21T02:45:40.000Z
#!/usr/bin/python3 helpMessage = """ This runs a unit test for dset64/dset64-gccAtomic.hpp. Invoke with 5 arguments: - The number of items (vertices). - The number of union operations (edges). - The number of threads. - The number of union operations per batch. - The random seed. """ import shasta import sys if no...
17.388889
54
0.662939
#!/usr/bin/python3 helpMessage = """ This runs a unit test for dset64/dset64-gccAtomic.hpp. Invoke with 5 arguments: - The number of items (vertices). - The number of union operations (edges). - The number of threads. - The number of union operations per batch. - The random seed. """ import shasta import sys if no...
0
0
0
0
0
0
0
0
0
85bd3903c23b1449d55e1f1be2c9dacc1531e0c8
698
py
Python
math_lib/combinatorics.py
vesteny77/proj_euler
d12d6c6a6e6c717b5ab9d0415005945d983eea53
[ "MIT" ]
1
2021-12-27T22:18:51.000Z
2021-12-27T22:18:51.000Z
math_lib/combinatorics.py
vesteny77/proj_euler
d12d6c6a6e6c717b5ab9d0415005945d983eea53
[ "MIT" ]
null
null
null
math_lib/combinatorics.py
vesteny77/proj_euler
d12d6c6a6e6c717b5ab9d0415005945d983eea53
[ "MIT" ]
null
null
null
import math import doctest def pick(n, k): """ Return the number of ways to select k objects from n objects with order :param n: int :param k: int :return: int >>> pick(1, 0) 1 >>> pick(1, 2) 0 >>> pick(5, 2) 20 """ return math.factorial(n) // math.factorial(n - k) ...
17.897436
78
0.540115
import math import doctest def pick(n, k): """ Return the number of ways to select k objects from n objects with order :param n: int :param k: int :return: int >>> pick(1, 0) 1 >>> pick(1, 2) 0 >>> pick(5, 2) 20 """ return math.factorial(n) // math.factorial(n - k) ...
0
0
0
0
0
0
0
0
0
e0bf1326727788764078f2927151ee1302c33c40
1,129
py
Python
sms/utils/datetimes.py
NovelLab/sms
b9df8d22d8a5bd555a4c7f5bf9cdd0084f156ae9
[ "MIT" ]
null
null
null
sms/utils/datetimes.py
NovelLab/sms
b9df8d22d8a5bd555a4c7f5bf9cdd0084f156ae9
[ "MIT" ]
null
null
null
sms/utils/datetimes.py
NovelLab/sms
b9df8d22d8a5bd555a4c7f5bf9cdd0084f156ae9
[ "MIT" ]
null
null
null
"""Utility module for date and time controls.""" # Official Libraries from typing import Union # Thirdparty Libraries # My Modules __all__ = ( 'after_day_str_from', 'next_day_str_from', 'next_month_str_from', ) # Define Constants INT_STR = Union[int, str] # Main Functions
24.021277
74
0.692648
"""Utility module for date and time controls.""" # Official Libraries import datetime from typing import Union # Thirdparty Libraries from dateutil.relativedelta import relativedelta # My Modules __all__ = ( 'after_day_str_from', 'next_day_str_from', 'next_month_str_from', ) # D...
0
0
0
0
0
678
0
21
112