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
7ff7c5aa6f6f14131c4950482cfd7bb7a6bb5225
465
py
Python
src/sima/simo/thrustcoefficientmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/simo/thrustcoefficientmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/simo/thrustcoefficientmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# Generated with ThrustCoefficientModel #
25.833333
51
0.63871
# Generated with ThrustCoefficientModel # from enum import Enum from enum import auto class ThrustCoefficientModel(Enum): """""" INTERNAL = auto() FORWARD = auto() SEPARATE = auto() def label(self): if self == ThrustCoefficientModel.INTERNAL: return "Internal" if self ...
0
0
0
356
0
0
0
0
67
8377d92f2dad655376004eb338f17a383500ea46
1,973
py
Python
app/rvp.py
LaxmanJonchhen12/CollegePredictor
cc9894932b5a2490be726231a25317abd91a4552
[ "MIT" ]
null
null
null
app/rvp.py
LaxmanJonchhen12/CollegePredictor
cc9894932b5a2490be726231a25317abd91a4552
[ "MIT" ]
null
null
null
app/rvp.py
LaxmanJonchhen12/CollegePredictor
cc9894932b5a2490be726231a25317abd91a4552
[ "MIT" ]
null
null
null
# This function is used to predict the rank using Linear Regression
32.344262
92
0.546883
# This function is used to predict the rank using Linear Regression import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression def pvr(perc,pwd,category): rvp = pd.read_csv('rvp_cleaned.csv') if(pwd == 'YES'): if(categ...
0
0
0
0
0
1,716
0
54
135
62caa386835ecba019407705b4c9672547a70553
1,524
py
Python
ietf/person/migrations/0005_populate_person_name_from_draft.py
omunroe-com/ietfdb2
aeaae292fbd55aca1b6043227ec105e67d73367f
[ "BSD-3-Clause" ]
2
2021-11-20T03:40:56.000Z
2021-11-20T03:40:59.000Z
ietf/person/migrations/0005_populate_person_name_from_draft.py
omunroe-com/ietfdb2
aeaae292fbd55aca1b6043227ec105e67d73367f
[ "BSD-3-Clause" ]
null
null
null
ietf/person/migrations/0005_populate_person_name_from_draft.py
omunroe-com/ietfdb2
aeaae292fbd55aca1b6043227ec105e67d73367f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-05-10 05:28 from __future__ import unicode_literals
31.75
106
0.597769
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-05-10 05:28 from __future__ import unicode_literals import sys from django.db import migrations import debug # pyflakes:ignore def populate_person_name_from_draft(apps, schema_editor): Submission = apps.get_model('subm...
0
0
0
192
0
1,044
0
-9
183
64b86bc86487c6ebdc528defe1c83a9af4f88357
341
py
Python
tests/test05.py
urain39/retry.py
eb94b2ed413acf8cc01dcabedae2c5bd26552bf0
[ "Apache-2.0" ]
null
null
null
tests/test05.py
urain39/retry.py
eb94b2ed413acf8cc01dcabedae2c5bd26552bf0
[ "Apache-2.0" ]
2
2019-04-22T11:06:32.000Z
2019-08-31T09:43:12.000Z
tests/test05.py
urain39/retry.py
eb94b2ed413acf8cc01dcabedae2c5bd26552bf0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 touch()
17.05
65
0.639296
#!/usr/bin/env python3 from time import sleep from random import random from retry import retry def retry_when(errors): def handler(err, cnt): print("Error: retry wait 3s..(cnt: {0} / 3)".format(cnt)) sleep(3 * random()) return retry(errors, 3, handler) @retry_when((Exception,)) def touch():...
0
27
0
0
0
161
0
7
112
33b418c90ca620217447920080642be24e6914b4
2,369
py
Python
evil_mystery_word_tests.py
gcrowder/mystery_word
4c137ee967b50cd73d3f4a0fc16fc020fb64a4bb
[ "MIT" ]
null
null
null
evil_mystery_word_tests.py
gcrowder/mystery_word
4c137ee967b50cd73d3f4a0fc16fc020fb64a4bb
[ "MIT" ]
null
null
null
evil_mystery_word_tests.py
gcrowder/mystery_word
4c137ee967b50cd73d3f4a0fc16fc020fb64a4bb
[ "MIT" ]
null
null
null
import unittest test_words = ['i', 'spoke', 'to', 'several', 'people', 'with', 'delayed', 'sleep', 'phase', 'a', 'condition', 'that', 'congressional'] if __name__ == '__main__': unittest.main()
50.404255
151
0.691431
import unittest import evil_mystery_word test_words = ['i', 'spoke', 'to', 'several', 'people', 'with', 'delayed', 'sleep', 'phase', 'a', 'condition', 'that', 'congressional'] class TestMysteryWord(unittest.TestCase): def test_assert_equal_get_words(self): self.assertEqual(evil_mystery_word.get_words('te...
0
0
0
2,120
0
0
0
3
45
9c02a0d2ded9b1473f1949fd209fb901dbcbd3f0
1,521
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/cameras/migrations/0005_auto_20200922_0641.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
176
2019-07-03T00:20:15.000Z
2022-03-14T07:51:22.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/cameras/migrations/0005_auto_20200922_0641.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
121
2019-06-24T20:47:27.000Z
2022-03-28T02:16:18.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/cameras/migrations/0005_auto_20200922_0641.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
144
2019-06-18T18:48:43.000Z
2022-03-31T12:14:46.000Z
# Generated by Django 3.0.8 on 2020-09-22 06:41 import json import uuid def gen_default_lines(): """gen_default_lines.""" template = { "useCountingLine": True, "countingLines": [ { "id": "$UUID_PLACE_HOLDER", "type": "Line", "label":...
24.934426
70
0.505588
# Generated by Django 3.0.8 on 2020-09-22 06:41 import json import uuid from django.db import migrations, models def gen_default_lines(): """gen_default_lines.""" template = { "useCountingLine": True, "countingLines": [ { "id": "$UUID_PLACE_HOLDER", ...
0
0
0
558
0
0
0
19
46
55c861095f41496f18d15d8407e0534f63665b7f
4,702
py
Python
driver/driver.py
alexanderwasey/turtlebot_software
e82311b6aa79cda438b70767b8bcfd8867a12f5e
[ "Unlicense" ]
null
null
null
driver/driver.py
alexanderwasey/turtlebot_software
e82311b6aa79cda438b70767b8bcfd8867a12f5e
[ "Unlicense" ]
null
null
null
driver/driver.py
alexanderwasey/turtlebot_software
e82311b6aa79cda438b70767b8bcfd8867a12f5e
[ "Unlicense" ]
null
null
null
from __future__ import absolute_import
35.621212
143
0.59698
from __future__ import absolute_import import math import threading from time import sleep import rospy from geometry_msgs.msg import Twist from nav_msgs.msg import Odometry from tf.transformations import euler_from_quaternion import collisions from .exceptions import MovementObstructed from .odometry import Odometer...
0
0
0
4,335
0
0
0
60
268
ca4c4d9b56284401ce5b6bc065cbf3e68910ad02
282
py
Python
examples/pup/hub_shared/imu_tilt.py
thesynman/pybricks-api
fbbb81caf0703d3d862d5417416adb9295754de0
[ "MIT" ]
51
2020-04-02T10:03:45.000Z
2022-03-27T23:49:39.000Z
examples/pup/hub_shared/imu_tilt.py
thesynman/pybricks-api
fbbb81caf0703d3d862d5417416adb9295754de0
[ "MIT" ]
77
2020-03-22T17:32:14.000Z
2022-03-28T18:02:43.000Z
examples/pup/hub_shared/imu_tilt.py
thesynman/pybricks-api
fbbb81caf0703d3d862d5417416adb9295754de0
[ "MIT" ]
25
2020-03-18T23:35:17.000Z
2022-01-01T12:52:01.000Z
# ExampleHub = TechnicHub PrimeHub from pybricks.hubs import ExampleHub from pybricks.tools import wait # Initialize the hub. hub = ExampleHub() while True: # Read the tilt values. pitch, roll = hub.imu.tilt() # Print the result. print(pitch, roll) wait(200)
18.8
36
0.695035
# ExampleHub = TechnicHub PrimeHub from pybricks.hubs import ExampleHub from pybricks.tools import wait # Initialize the hub. hub = ExampleHub() while True: # Read the tilt values. pitch, roll = hub.imu.tilt() # Print the result. print(pitch, roll) wait(200)
0
0
0
0
0
0
0
0
0
05f94477fa2f36f4f2654bf1865c7c6ae2afcb4c
20,771
py
Python
lib/modeling/fast_rcnn_heads.py
szrlee/Detectron.pytorch
b64f94305a8df184c863100de3840cbb78c25008
[ "MIT" ]
null
null
null
lib/modeling/fast_rcnn_heads.py
szrlee/Detectron.pytorch
b64f94305a8df184c863100de3840cbb78c25008
[ "MIT" ]
null
null
null
lib/modeling/fast_rcnn_heads.py
szrlee/Detectron.pytorch
b64f94305a8df184c863100de3840cbb78c25008
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.init as init # ---------------------------------------------------------------------------- # # Box heads # ---------------------------------------------------------------------------- #
44.006356
117
0.625584
import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from torch.autograd import Variable from core.config import cfg import nn as mynn import utils.net as net_utils import utils.boxes as box_utils import numpy as np class fast_rcnn_outputs(nn.Module): def __init__(self,...
0
0
0
9,715
0
10,456
0
32
339
fbf27276f4103c076213cca870f14ffe216028dc
2,181
py
Python
swmm_baseline_model.py
UVAdMIST/smart_stormwater_rl
0f0245e68a8ae15240df040bbda9ea5165f8f91f
[ "MIT" ]
null
null
null
swmm_baseline_model.py
UVAdMIST/smart_stormwater_rl
0f0245e68a8ae15240df040bbda9ea5165f8f91f
[ "MIT" ]
null
null
null
swmm_baseline_model.py
UVAdMIST/smart_stormwater_rl
0f0245e68a8ae15240df040bbda9ea5165f8f91f
[ "MIT" ]
2
2020-12-05T20:40:45.000Z
2021-04-15T13:41:18.000Z
""" Created by Benjamin Bowes, 4-19-19 This script records depth and flood values at each swmm model time step and plots them. """ from pyswmm import Simulation, Nodes, Links, Subcatchments import matplotlib.pyplot as plt from smart_stormwater_rl.pyswmm_utils import save_out control_time_step = 900 # contro...
27.607595
110
0.687758
""" Created by Benjamin Bowes, 4-19-19 This script records depth and flood values at each swmm model time step and plots them. """ from pyswmm import Simulation, Nodes, Links, Subcatchments import matplotlib.pyplot as plt from smart_stormwater_rl.pyswmm_utils import save_out control_time_step = 900 # contro...
0
0
0
0
0
0
0
0
0
dad5bc5b9e7f8ed1a87ec3dc22a74bb63f3dfde1
839
py
Python
p748_shortest_completing_word.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p748_shortest_completing_word.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p748_shortest_completing_word.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
fn = Solution().shortestCompletingWord print(fn(licensePlate="1s3 PSt", words=["step", "steps", "stripe", "stepple"])) print(fn(licensePlate="1s3 456", words=["looks", "pest", "stew", "show"]))
31.074074
79
0.52801
class Solution: def shortestCompletingWord(self, licensePlate, words): """ :type licensePlate: str :type words: List[str] :rtype: str """ from collections import Counter import re plate = Counter(re.findall(r'[a-z]', licensePlate.lower())) best...
0
0
0
620
0
0
0
0
22
b8d034f6b7d5c2af9e03f103b4f28ec9eb63efce
2,187
py
Python
ALPR/alvr.py
juanmapf97/license-plate-detection
ea26395312bc5c464b8843071ea1e2c11536aa7a
[ "Unlicense" ]
null
null
null
ALPR/alvr.py
juanmapf97/license-plate-detection
ea26395312bc5c464b8843071ea1e2c11536aa7a
[ "Unlicense" ]
2
2021-03-09T21:59:08.000Z
2021-12-09T01:15:39.000Z
ALPR/alvr.py
juanmapf97/license-plate-detection
ea26395312bc5c464b8843071ea1e2c11536aa7a
[ "Unlicense" ]
1
2019-11-14T18:27:59.000Z
2019-11-14T18:27:59.000Z
import pytesseract pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files\\Tesseract-OCR\\tesseract.exe' # Get text from a cropped image of a license plate # Detect a license plate in a picture
31.695652
103
0.644262
import numpy as np import cv2 import imutils import pytesseract from PIL import Image pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files\\Tesseract-OCR\\tesseract.exe' # Get text from a cropped image of a license plate def getText(plate): return pytesseract.image_to_string(plate, config='--psm 11') #p...
0
0
0
0
0
1,867
0
-21
132
103fae9bb4a78dc0aaf46943b00526332eca3cc7
2,442
py
Python
bin/CMakeModules.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
11
2020-07-05T02:39:32.000Z
2022-03-20T18:52:44.000Z
bin/CMakeModules.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
null
null
null
bin/CMakeModules.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
4
2020-09-03T20:36:32.000Z
2022-01-19T07:42:21.000Z
#!/usr/bin/env python """ CMakeModules.py ================== This copies cmake/Modules into the installation directory which is necessary to allow building against the release. Usage Example --------------- Note that the destination directory is deleted and populated on every run :: [blyth@localhost ~]$ C...
30.525
198
0.612613
#!/usr/bin/env python """ CMakeModules.py ================== This copies cmake/Modules into the installation directory which is necessary to allow building against the release. Usage Example --------------- Note that the destination directory is deleted and populated on every run :: [blyth@localhost ~]$ C...
0
0
0
1,189
0
0
0
17
23
56c076b268f48c00c66e04609c9a6a07a074d74d
821
py
Python
web-app/__init__.py
mohshawky5193/otakumeter
a227699724300890c775e8076d99e2cd313ae7a7
[ "Apache-2.0" ]
null
null
null
web-app/__init__.py
mohshawky5193/otakumeter
a227699724300890c775e8076d99e2cd313ae7a7
[ "Apache-2.0" ]
null
null
null
web-app/__init__.py
mohshawky5193/otakumeter
a227699724300890c775e8076d99e2cd313ae7a7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 13 00:32:45 2020 @author: mam22 """ from flask import Flask app = Flask(__name__) app.secret_key = b'_5#y2L"F4Q8z\n\xec]/' if __name__ == "__main__": app.run(debug=False)
25.65625
76
0.732034
# -*- coding: utf-8 -*- """ Created on Mon Jan 13 00:32:45 2020 @author: mam22 """ from flask import Flask, render_template,request,jsonify,session from get_anime_characters_from_database import get_anime_characters_for_quiz import gc app = Flask(__name__) app.secret_key = b'_5#y2L"F4Q8z\n\xec]/' @app.route('/') de...
0
358
0
0
0
0
0
84
155
c4fdf0c6cbd74c43432e5f0a564c6078532ba5d6
271
py
Python
chexpert-model/train_set_create_script.py
stanfordmlgroup/CheXseg
ca345d7c4523816c174aafd2c40929345b38b2b2
[ "MIT" ]
7
2021-05-19T20:55:42.000Z
2022-03-22T05:20:59.000Z
chexpert-model/train_set_create_script.py
subratac/CheXseg
fb5c411ce08e394cd4a2a87d963843942bdc2021
[ "MIT" ]
null
null
null
chexpert-model/train_set_create_script.py
subratac/CheXseg
fb5c411ce08e394cd4a2a87d963843942bdc2021
[ "MIT" ]
3
2021-05-19T20:52:39.000Z
2021-09-01T01:57:25.000Z
from create_semi_supervised_train_set import filter_train_set if __name__ == "__main__": for i in [10, 100, 500, 1000]: for task in LOCALIZATION_TASKS: print("FILTERING TASK: ", task) filter_train_set(task, i)
30.111111
61
0.675277
from create_semi_supervised_train_set import filter_train_set from constants import * if __name__ == "__main__": for i in [10, 100, 500, 1000]: for task in LOCALIZATION_TASKS: print("FILTERING TASK: ", task) filter_train_set(task, i)
0
0
0
0
0
0
0
2
22
fb6bb8c209a40fe449dfa2e32402e823f9231e15
2,927
py
Python
lib/couchBase.py
philipsales/airflow-couchbase-elasticsearch
f9bf06d88956d3e2322a7dfa6207becbdc1d1769
[ "MIT" ]
null
null
null
lib/couchBase.py
philipsales/airflow-couchbase-elasticsearch
f9bf06d88956d3e2322a7dfa6207becbdc1d1769
[ "MIT" ]
null
null
null
lib/couchBase.py
philipsales/airflow-couchbase-elasticsearch
f9bf06d88956d3e2322a7dfa6207becbdc1d1769
[ "MIT" ]
null
null
null
from log.config import logging logger = logging.getLogger("couchbase.connection")
25.452174
95
0.565767
import sys import json import time import requests from couchbase.bucket import Bucket from couchbase.n1ql import N1QLQuery, N1QLError from couchbase.exceptions import CouchbaseTransientError, CouchbaseNetworkError from requests.exceptions import RequestException from log.config import set_log_config, logging logger...
0
0
0
2,515
0
0
0
104
224
518e0b3db8f6a55f6f0898c3512d7a0b274ceb3d
1,510
py
Python
scripts/cluster_scores.py
MathiasMeuleman/measure-clustering
3451ab50c9d77eb83f211ab6bf713bd3ac545926
[ "MIT" ]
null
null
null
scripts/cluster_scores.py
MathiasMeuleman/measure-clustering
3451ab50c9d77eb83f211ab6bf713bd3ac545926
[ "MIT" ]
null
null
null
scripts/cluster_scores.py
MathiasMeuleman/measure-clustering
3451ab50c9d77eb83f211ab6bf713bd3ac545926
[ "MIT" ]
null
null
null
import numpy as np from score_analysis.measure_clusterer import MeasureClusterer from util.dirs import get_musicdata_scores, get_parts if __name__ == '__main__': for score in get_musicdata_scores(follow_parts=False): print('Clustering {}...'.format(score.name)) dist_matrix_path = score / 'dist_mat...
45.757576
82
0.650331
import numpy as np from score_analysis.measure_clusterer import MeasureClusterer from util.dirs import get_musicdata_scores, get_parts if __name__ == '__main__': for score in get_musicdata_scores(follow_parts=False): print('Clustering {}...'.format(score.name)) dist_matrix_path = score / 'dist_mat...
0
0
0
0
0
0
0
0
0
0918eb9886d1a8986e1dd632ee80b02436a057fa
898
py
Python
corehq/form_processor/migrations/0031_add_details_field_to_case_transaction.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/form_processor/migrations/0031_add_details_field_to_case_transaction.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/form_processor/migrations/0031_add_details_field_to_case_transaction.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import
30.965517
224
0.643653
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.db import models, migrations import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('form_processor', '0030_casetransaction_revoked'), ] operations = [ ...
0
0
0
705
0
0
0
21
67
df0e4bc6c01a3fd360af919cd7a376f61a4072b9
521
py
Python
spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
5
2019-06-24T14:15:54.000Z
2021-05-14T23:16:31.000Z
spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
2
2018-06-19T09:56:18.000Z
2018-11-20T12:02:44.000Z
spkcspider/apps/spider/migrations/0009_auto_20190929_2117.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-29 21:17
27.421053
170
0.612284
# Generated by Django 2.2.5 on 2019-09-29 21:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('spider_base', '0008_auto_20190817_1815'), ] operations = [ migrations.AlterField( model_name='assignedprotection', n...
0
0
0
407
0
0
0
19
46
078602765783dfcc956246aa743f95305b6d12fc
15,033
py
Python
LoopStructural/interpolators/structured_grid.py
saward/LoopStructural
541f0500a5387f2a337c5e715828d2c9e4cfe7b2
[ "MIT" ]
null
null
null
LoopStructural/interpolators/structured_grid.py
saward/LoopStructural
541f0500a5387f2a337c5e715828d2c9e4cfe7b2
[ "MIT" ]
null
null
null
LoopStructural/interpolators/structured_grid.py
saward/LoopStructural
541f0500a5387f2a337c5e715828d2c9e4cfe7b2
[ "MIT" ]
null
null
null
""" Cartesian grid for fold interpolator """ import logging logger = logging.getLogger(__name__)
31.985106
83
0.490321
""" Cartesian grid for fold interpolator """ import logging import numpy as np logger = logging.getLogger(__name__) class StructuredGrid: """ """ def __init__(self, origin=np.zeros(3), nsteps=np.array([10, 10, 10]), step_vector=np.ones(3), ...
0
451
0
14,439
0
0
0
-3
46
1b090d276d8aa2518c7d0b005d01bc2541f16d3d
500
py
Python
core/features/steps/access_system.py
rodrigoncalves/anato-hub
bb6c5a39bfbc247476a6ef4fe410c972b5e561c4
[ "MIT" ]
null
null
null
core/features/steps/access_system.py
rodrigoncalves/anato-hub
bb6c5a39bfbc247476a6ef4fe410c972b5e561c4
[ "MIT" ]
null
null
null
core/features/steps/access_system.py
rodrigoncalves/anato-hub
bb6c5a39bfbc247476a6ef4fe410c972b5e561c4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
23.809524
65
0.72
# -*- coding: utf-8 -*- from behave import given, when, then from selenium import webdriver from should_dsl import should @given(u'que o usuário abre o navegador') def open_browser(context): context.driver = webdriver.Firefox() @when(u'acessa a url "{url}"') def access_localhost(context, url): context.drive...
2
305
0
0
0
0
0
32
135
37c9c251d957221d52ff1c6d37ee2af1d18657a1
3,387
py
Python
projects/crontab/logic/stock_monitor.py
kingking888/crawler-pyspider
29ba13905c73081097df9ef646a5c8194eb024be
[ "Apache-2.0" ]
1
2021-12-07T15:48:51.000Z
2021-12-07T15:48:51.000Z
projects/crontab/logic/stock_monitor.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
null
null
null
projects/crontab/logic/stock_monitor.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
1
2021-11-10T07:12:02.000Z
2021-11-10T07:12:02.000Z
""" """ if __name__ == '__main__': StockMonitor().run()
34.561224
112
0.574255
""" 仓库服务的库存监控 """ from alarm.page.ding_talk import DingTalk from crontab.config import prod_filter_warehouse_ids, ROBOT_TOKEN from crontab.model.mysql.order_goods import OrderGoods from crontab.model.mysql.order_info import OrderInfo from crontab.model.mysql.product import Product class StockMonitor: def __init_...
246
0
0
2,954
0
0
0
154
133
629a216e731ea8a603abf2d42e522179e0ccd8ae
439
py
Python
tfim/data/utils.py
c0de2eat/tf-img-models
c8e13cd11d2ad86acb42952751ace46419795555
[ "MIT" ]
null
null
null
tfim/data/utils.py
c0de2eat/tf-img-models
c8e13cd11d2ad86acb42952751ace46419795555
[ "MIT" ]
null
null
null
tfim/data/utils.py
c0de2eat/tf-img-models
c8e13cd11d2ad86acb42952751ace46419795555
[ "MIT" ]
null
null
null
__all__ = ["batchify"]
23.105263
77
0.694761
import tensorflow as tf __all__ = ["batchify"] def batchify( dataset: tf.data.Dataset, batch_size: int, *, shuffle: bool = False, buffer_size: int = None ) -> tf.data.Dataset: if shuffle: dataset = dataset.shuffle(buffer_size, reshuffle_each_iteration=True) dataset = dataset.batc...
0
0
0
0
0
366
0
2
45
0f682671465213324b8c7e9ef554ca565045e8a6
565
py
Python
macstract.py
balthebladre/macstract
5beb4c7a1435022825e9caf9f316aa6dd71e96ba
[ "MIT" ]
null
null
null
macstract.py
balthebladre/macstract
5beb4c7a1435022825e9caf9f316aa6dd71e96ba
[ "MIT" ]
null
null
null
macstract.py
balthebladre/macstract
5beb4c7a1435022825e9caf9f316aa6dd71e96ba
[ "MIT" ]
null
null
null
# shebang goes here import argparse parser = argparse.ArgumentParser(description='TODO') parser.add_argument('destination', help='Destination to copy files') parser.add_argument('-f',action='count',help='Force script to copy all files regardless of size') args = parser.parse_args() if __name__ == "__main__": des...
26.904762
97
0.704425
# shebang goes here import argparse, shutil parser = argparse.ArgumentParser(description='TODO') parser.add_argument('destination', help='Destination to copy files') parser.add_argument('-f',action='count',help='Force script to copy all files regardless of size') args = parser.parse_args() def copy_verbose(source_pa...
0
0
0
0
0
170
0
8
23
29a592057919ed377e4b419360a1a74f50986bc0
941
py
Python
setup.py
deathbeds/ktop
b9ff55af75980526337ea1903bda83ccf1bf2f1e
[ "BSD-3-Clause" ]
null
null
null
setup.py
deathbeds/ktop
b9ff55af75980526337ea1903bda83ccf1bf2f1e
[ "BSD-3-Clause" ]
1
2018-01-19T17:11:40.000Z
2018-01-19T17:11:40.000Z
setup.py
deathbeds/ktop
b9ff55af75980526337ea1903bda83ccf1bf2f1e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from os.path import dirname, join from setuptools import setup, find_packages name = "ktop" brand = "ripxl" full_name = "Dead Pixel Collective" with open(join(dirname(__file__), "src", name, "__init__.py")) as fp: for i, line in enumerate(fp.readlines()): if line.startswith("__versio...
28.515152
73
0.650372
#!/usr/bin/env python from os.path import dirname, join from setuptools import setup, find_packages name = "ktop" brand = "ripxl" full_name = "Dead Pixel Collective" with open(join(dirname(__file__), "src", name, "__init__.py")) as fp: for i, line in enumerate(fp.readlines()): if line.startswith("__versio...
0
0
0
0
0
0
0
0
0
437ab89d95677cae1c788b6a5c326d70ad6d4f3a
4,313
py
Python
gradient_and_color_libary.py
nkowdley/CarND-Advanced-Lane-Lines
620f2e3dd2a5c7a4ee528018592fb0fb651d8cee
[ "MIT" ]
null
null
null
gradient_and_color_libary.py
nkowdley/CarND-Advanced-Lane-Lines
620f2e3dd2a5c7a4ee528018592fb0fb651d8cee
[ "MIT" ]
null
null
null
gradient_and_color_libary.py
nkowdley/CarND-Advanced-Lane-Lines
620f2e3dd2a5c7a4ee528018592fb0fb651d8cee
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A python library for the Udacity Project Advanced Lane Lines This library is designed to abstract away some useful functions, so that using this code for images/video becomes almost like calling an API """ # The following globals are designed to make development/debug easier. In a more rea...
44.927083
105
0.697426
#!/usr/bin/env python """ A python library for the Udacity Project Advanced Lane Lines This library is designed to abstract away some useful functions, so that using this code for images/video becomes almost like calling an API """ import numpy as np import cv2 import glob import pickle from pprint import pprint # T...
0
0
0
0
0
3,384
0
-28
251
20417b9c67d97dbf17f6edb3acd987f7ead23169
1,016
py
Python
sample-sentiment.py
EEICHS/Twotter2
964c312df6c00186031312924b5d8a8872a6753b
[ "MIT" ]
null
null
null
sample-sentiment.py
EEICHS/Twotter2
964c312df6c00186031312924b5d8a8872a6753b
[ "MIT" ]
null
null
null
sample-sentiment.py
EEICHS/Twotter2
964c312df6c00186031312924b5d8a8872a6753b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Natural Language Processing example performing # sentiment analysis and setting a Belleds light to # a color matching sentiment. # # Example usage: # echo "I hate you and I'm having a terrible day" | ./sample-sentiment.py # => user is angry, light turns red # echo "I love chocolate. So awesome...
28.222222
101
0.700787
#!/usr/bin/env python3 # Natural Language Processing example performing # sentiment analysis and setting a Belleds light to # a color matching sentiment. # # Example usage: # echo "I hate you and I'm having a terrible day" | ./sample-sentiment.py # => user is angry, light turns red # echo "I love chocolate. So awesome...
0
0
0
0
0
0
0
0
0
b62c597f195dcf743fb3a167a9eaed18cc862a19
158
py
Python
Codeforces/B_Valerii_Against_Everyone.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/B_Valerii_Against_Everyone.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/B_Valerii_Against_Everyone.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
for _ in range(int(input())): n=int(input()) l=list(map(int,input().split())) if len(set(l))<n: print("YES") else: print("NO")
22.571429
36
0.493671
for _ in range(int(input())): n=int(input()) l=list(map(int,input().split())) if len(set(l))<n: print("YES") else: print("NO")
0
0
0
0
0
0
0
0
0
372cd338d7801eac151b4a42aaafdb47487007b8
3,692
py
Python
auto_pose/test/aae_retina_webcam_pose.py
dfraska-ftl/AugmentedAutoencoder
ef000e82c1b64ab72bdb203ed1f4ce6fcd536829
[ "MIT" ]
null
null
null
auto_pose/test/aae_retina_webcam_pose.py
dfraska-ftl/AugmentedAutoencoder
ef000e82c1b64ab72bdb203ed1f4ce6fcd536829
[ "MIT" ]
null
null
null
auto_pose/test/aae_retina_webcam_pose.py
dfraska-ftl/AugmentedAutoencoder
ef000e82c1b64ab72bdb203ed1f4ce6fcd536829
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
41.022222
134
0.592362
import cv2 import numpy as np import os import argparse import configparser from webcam_video_stream import WebcamVideoStream from auto_pose.ae.utils import get_dataset_path from aae_retina_pose_estimator import AePoseEstimator def main(): parser = argparse.ArgumentParser() parser.add_argument("-test_config",...
0
0
0
0
0
3,401
0
52
200
4c77f6d85b11a737eb2343a49ac72153de3cce51
1,656
py
Python
gammapy/datasets/data/poisson_stats_image/fit_sherpa.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/data/poisson_stats_image/fit_sherpa.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/data/poisson_stats_image/fit_sherpa.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Compute results with Sherpa""" from __future__ import print_function, division # __doctest_skip__ __doctest_skip__ = ['*'] import numpy as np import sherpa.astro.ui as sau sau.load_data('counts.fits.gz') sau.set_source('normgauss2d.source + const2d.bac...
30.109091
78
0.737319
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Compute results with Sherpa""" from __future__ import print_function, division # __doctest_skip__ __doctest_skip__ = ['*'] import numpy as np import sherpa.astro.ui as sau sau.load_data('counts.fits.gz') sau.set_source('normgauss2d.source + const2d.bac...
0
0
0
0
0
0
0
0
0
b19060aa18c8c5ed4dce0857e401f13ce6d76e4c
8,765
py
Python
abusehelper/tools/botnet/commands.py
AbuseSA/abusehelper
3e953632d20317c6bfe7eeb987ea9104d8f2a957
[ "MIT" ]
117
2015-11-30T09:52:52.000Z
2021-11-24T23:58:13.000Z
abusehelper/tools/botnet/commands.py
AbuseSA/abusehelper
3e953632d20317c6bfe7eeb987ea9104d8f2a957
[ "MIT" ]
57
2015-12-08T10:06:57.000Z
2018-03-28T11:13:11.000Z
abusehelper/tools/botnet/commands.py
AbuseSA/abusehelper
3e953632d20317c6bfe7eeb987ea9104d8f2a957
[ "MIT" ]
29
2016-02-08T08:24:30.000Z
2022-03-31T13:53:15.000Z
# Helpers # Instance # Commands
26.560606
80
0.538049
import os import re import sys import time import errno import signal import select from botnet import Command # Helpers def popen(*args, **keys): import subprocess defaults = { "stdout": subprocess.PIPE, "stderr": subprocess.PIPE, "stdin": subprocess.PIPE, "close_fds": True...
0
582
0
5,770
588
1,342
0
-65
499
bc3a92e3a48e9127358372dd8af00e971b51c372
5,792
py
Python
db_repository/versions/019_migration.py
calcutec/flask-burtonblog
23b02f81f7772f2f50a382bb885b4fb008e4f815
[ "BSD-3-Clause" ]
null
null
null
db_repository/versions/019_migration.py
calcutec/flask-burtonblog
23b02f81f7772f2f50a382bb885b4fb008e4f815
[ "BSD-3-Clause" ]
null
null
null
db_repository/versions/019_migration.py
calcutec/flask-burtonblog
23b02f81f7772f2f50a382bb885b4fb008e4f815
[ "BSD-3-Clause" ]
null
null
null
pre_meta = MetaData() post_meta = MetaData() exifstats = Table('exifstats', pre_meta, Column('id', INTEGER, primary_key=True, nullable=False), Column('post_id', INTEGER), Column('date_time', TIMESTAMP), Column('exposure_program', VARCHAR(length=80)), Column('fNumber', VARCHAR(length=16)), Colum...
50.807018
77
0.718577
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() exifstats = Table('exifstats', pre_meta, Column('id', INTEGER, primary_key=True, nullable=False), Column('post_id', INTEGER), Column('date_time', TIMESTAMP), Column('exposur...
0
0
0
0
0
4,014
0
18
113
0096c5c037b19dd74046c09319dfafc30e3bd9fe
1,206
py
Python
string-operations/A3_2.py
hscup/assignment
fab1c8589f45fba1fe0cbb14a138dc60bbcd942d
[ "MIT" ]
null
null
null
string-operations/A3_2.py
hscup/assignment
fab1c8589f45fba1fe0cbb14a138dc60bbcd942d
[ "MIT" ]
null
null
null
string-operations/A3_2.py
hscup/assignment
fab1c8589f45fba1fe0cbb14a138dc60bbcd942d
[ "MIT" ]
null
null
null
# this list will store the test scores we will read from the file scores = [] # Ask the user for a file name file_name = input('Please enter the file name: ') # open the file for reading with open(file_name, 'r') as score_file: for line in score_file: # Convert the test score in the current line to a num...
32.594595
79
0.689884
# this list will store the test scores we will read from the file scores = [] # Ask the user for a file name file_name = input('Please enter the file name: ') # open the file for reading with open(file_name, 'r') as score_file: for line in score_file: # Convert the test score in the current line to a num...
3
0
0
0
0
0
0
0
0
579a5de7477fdf1cb772d87478442f27b0aefd8a
1,040
py
Python
#4_Task.O'zgaruvchilar.py
ShukurDev/Examples-in-Python
94d9d977efeb7bb0a3a5cd258d58b74e1bd9a0f6
[ "Unlicense" ]
1
2021-10-09T17:12:07.000Z
2021-10-09T17:12:07.000Z
#4_Task.O'zgaruvchilar.py
Shukurali777/Python_Tasks
94d9d977efeb7bb0a3a5cd258d58b74e1bd9a0f6
[ "Unlicense" ]
null
null
null
#4_Task.O'zgaruvchilar.py
Shukurali777/Python_Tasks
94d9d977efeb7bb0a3a5cd258d58b74e1bd9a0f6
[ "Unlicense" ]
null
null
null
# "Hello World!" matnini yangi o'zgaruvchiga yuklang va print() yordamida konsolga chiqaring a = "Hello World!" print(a) # xabar deb nomlangan o'zgaruvchiga biror matn yuklang va konsolga chiqaring, # keyin esa o'zgaruvchiga yangi qiymat berib uni ham konsolga chiqaring. xabar = "Shuningdek o'zgaruvchilarga Pythonda ...
54.736842
365
0.7875
# "Hello World!" matnini yangi o'zgaruvchiga yuklang va print() yordamida konsolga chiqaring a = "Hello World!" print(a) # xabar deb nomlangan o'zgaruvchiga biror matn yuklang va konsolga chiqaring, # keyin esa o'zgaruvchiga yangi qiymat berib uni ham konsolga chiqaring. xabar = "Shuningdek o'zgaruvchilarga Pythonda ...
0
0
0
0
0
0
0
0
0
50864039f63f91a92b3c4c41238a0131c77470e4
599
py
Python
AGC/agc001-agc050/agc041/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
AGC/agc001-agc050/agc041/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
AGC/agc001-agc050/agc041/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': main()
23.038462
56
0.480801
# -*- coding: utf-8 -*- def main(): n, a, b = map(int, input().split()) diff = b - a # See: # https://img.atcoder.jp/agc041/editorial.pdf # KeyInsight: 移動パターンを分解する # ◯:A, Bの位置の偶奇が一致しているかどうかの場合分け # :A, Bの位置の偶奇が不一致のときに,片方が端部まで移動する # ×:上記のcaseでの最短roundを計算する部分 if diff...
341
0
0
0
0
389
0
0
25
fd87b3f2c7adc035b5a80f6f65ae2db670b41d19
213,697
py
Python
mdfstudio/blocks/v4_blocks.py
hyundai-autoever-opensource/mdfstudio-hkmc
ac0e5ed657855c058116c69144fabac7b3601c41
[ "OML" ]
null
null
null
mdfstudio/blocks/v4_blocks.py
hyundai-autoever-opensource/mdfstudio-hkmc
ac0e5ed657855c058116c69144fabac7b3601c41
[ "OML" ]
null
null
null
mdfstudio/blocks/v4_blocks.py
hyundai-autoever-opensource/mdfstudio-hkmc
ac0e5ed657855c058116c69144fabac7b3601c41
[ "OML" ]
null
null
null
# -*- coding: utf-8 -*- """ classes that implement the blocks for MDF version 4 Edit history Author : yda Date : 2020-11-12 Package name changed - asammdf to mdfstudio Functions --------- * Channel.metadata - Get rid of b" text when decoding byte type data * Channel.__init__ - Set ...
35.480159
139
0.483984
# -*- coding: utf-8 -*- """ classes that implement the blocks for MDF version 4 Edit history Author : yda Date : 2020-11-12 Package name changed - asammdf to mdfstudio Functions --------- * Channel.metadata - Get rid of b" text when decoding byte type data * Channel.__init__ - Set ...
0
1,220
0
210,131
0
0
0
270
794
dea172b81061f1df2c8f672d6fa72284f9fe92cd
2,791
py
Python
lsp/server/daemon.py
paulovap/pinelang
bfe76be96423d2098275d6c7d1598b72cf9617be
[ "BSD-3-Clause" ]
3
2020-08-19T10:04:01.000Z
2021-12-23T11:09:48.000Z
lsp/server/daemon.py
paulovap/pinelang
bfe76be96423d2098275d6c7d1598b72cf9617be
[ "BSD-3-Clause" ]
null
null
null
lsp/server/daemon.py
paulovap/pinelang
bfe76be96423d2098275d6c7d1598b72cf9617be
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import logging logger = logging.getLogger('lsp-daemon') hdlr = logging.FileHandler('/Users/ppinheiro/git_tree/pinelang/lsp/server/lsp-daemon.log') formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s') hdlr.setFormatter(formatter) logger.addHandler(hdlr) logger.setLev...
30.67033
95
0.640631
#!/usr/bin/env python3 import asyncore, socket import sys import threading import logging logger = logging.getLogger('lsp-daemon') hdlr = logging.FileHandler('/Users/ppinheiro/git_tree/pinelang/lsp/server/lsp-daemon.log') formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s') hdlr.setFormatter(formatte...
0
0
0
1,654
0
0
0
-3
67
758678212654c7b045c5fe936f5a93ec54475534
3,594
py
Python
students/k3342/laboratory_works/Litvinova_Elizaveta/laboratory_work_2/django_hotel/hotel_app/migrations/0001_initial.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3342/laboratory_works/Litvinova_Elizaveta/laboratory_work_2/django_hotel/hotel_app/migrations/0001_initial.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3342/laboratory_works/Litvinova_Elizaveta/laboratory_work_2/django_hotel/hotel_app/migrations/0001_initial.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
# Generated by Django 3.0.8 on 2020-07-02 10:30
46.675325
168
0.567334
# Generated by Django 3.0.8 on 2020-07-02 10:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
154
0
0
3,337
0
0
0
41
90
ab94d8784cdf3b4540eb9295805739df84f1e91b
469
py
Python
library/lib_study/141_i18n_gettext.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
library/lib_study/141_i18n_gettext.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
library/lib_study/141_i18n_gettext.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
# internationalization (I18N) and localization (L10N) # gettext GNU(i18n) """ gettext GNU xgettext: po(portable object) msgfmt: pomo(machine object) gettext: https://blog.csdn.net/handsomekang/article/details/78747504 """ # https://www.gnu.org/software/gettext/ # windows http://gnuwin32.sourceforge.net/packages/...
26.055556
74
0.780384
# internationalization (I18N) 国际化 and localization (L10N) 本土化 # gettext 是GNU国际化与本地化(i18n)函数库 """ gettext 是一套 GNU下的国际化工具。主要有工具: xgettext: 从源码中抽取字符串,生成po文件(portable object) msgfmt: 将po文件编译成mo文件(machine object) gettext: 进行翻译 https://blog.csdn.net/handsomekang/article/details/78747504 """ # https://www.gnu.org/software/g...
201
0
0
0
0
0
0
0
0
0f39174d0598c3845e6a8b5a2c1545bbd65ccd7e
7,484
py
Python
Courses/Cryptography DIT250-TDA352/Assignment 4/Implementation/tb_block_cipher.py
itismesam/Courses-1
7669c4460be02b8bbaea2ae79182af2667e9e6b2
[ "MIT" ]
40
2020-09-30T13:45:50.000Z
2022-03-10T10:22:19.000Z
Courses/Cryptography DIT250-TDA352/Assignment 4/Implementation/tb_block_cipher.py
itismesam/Courses-1
7669c4460be02b8bbaea2ae79182af2667e9e6b2
[ "MIT" ]
null
null
null
Courses/Cryptography DIT250-TDA352/Assignment 4/Implementation/tb_block_cipher.py
itismesam/Courses-1
7669c4460be02b8bbaea2ae79182af2667e9e6b2
[ "MIT" ]
24
2020-10-06T07:05:38.000Z
2022-03-10T10:23:29.000Z
import numpy as np # Declare 'global' variables, matrices used for function P and also S_boxes lambd = np.loadtxt(open("matrix.txt", "rb"), delimiter=" ", skiprows=0) lambd_inv = np.loadtxt(open("matrix_inv.txt", "rb"), delimiter=" ", skiprows=0) S_box = {'00':'67', '01':'64', '02':'14', '03':'35', '04':'60',...
35.638095
120
0.561865
import numpy as np # Declare 'global' variables, matrices used for function P and also S_boxes lambd = np.loadtxt(open("matrix.txt", "rb"), delimiter=" ", skiprows=0) lambd_inv = np.loadtxt(open("matrix_inv.txt", "rb"), delimiter=" ", skiprows=0) S_box = {'00':'67', '01':'64', '02':'14', '03':'35', '04':'60',...
0
0
0
0
0
5,218
0
0
178
4755948769114a4ff01f3bed64d1d7df80cc03d0
1,441
py
Python
api/src/opentrons/hardware_control/emulation/scripts/run_app.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
2
2015-11-10T17:49:51.000Z
2016-01-15T04:43:37.000Z
api/src/opentrons/hardware_control/emulation/scripts/run_app.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
2
2022-02-15T03:28:35.000Z
2022-02-28T01:34:18.000Z
api/src/opentrons/hardware_control/emulation/scripts/run_app.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
"""Script for starting up emulation up with module emulators.""" import logging import asyncio from argparse import ArgumentParser from opentrons.hardware_control.emulation.scripts.run_module_emulator import (emulator_builder) from opentrons.hardware_control.emulation.settings import Settings def main() -> None: ...
26.2
84
0.687023
"""Script for starting up emulation up with module emulators.""" import logging import asyncio from argparse import ArgumentParser from typing import List from opentrons.hardware_control.emulation.app import Application from opentrons.hardware_control.emulation.scripts.run_module_emulator import ( emulator_builder...
0
0
559
0
0
0
0
89
90
5499f0f0a20f64c154562ea3dead6cf06a9f5d87
12,839
py
Python
mmseg/models/backbones/ddrnet.py
evgeniya-egupova/mmsegmentation
3857f19321ad6af41c8a6af364898ee050225f4c
[ "Apache-2.0" ]
null
null
null
mmseg/models/backbones/ddrnet.py
evgeniya-egupova/mmsegmentation
3857f19321ad6af41c8a6af364898ee050225f4c
[ "Apache-2.0" ]
null
null
null
mmseg/models/backbones/ddrnet.py
evgeniya-egupova/mmsegmentation
3857f19321ad6af41c8a6af364898ee050225f4c
[ "Apache-2.0" ]
null
null
null
# The original repo: https://github.com/ydhongHIT/DDRNet import torch.nn as nn BatchNorm2d = nn.SyncBatchNorm bn_mom = 0.1 def conv3x3(in_planes, out_planes, stride=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, pa...
34.888587
103
0.569671
# The original repo: https://github.com/ydhongHIT/DDRNet import torch import torch.nn as nn import torch.nn.functional as F from mmcv.runner import load_checkpoint from mmcv.utils.parrots_wrapper import _BatchNorm from mmseg.utils import get_root_logger from ..builder import BACKBONES BatchNorm2d = nn.S...
0
6,194
0
5,976
0
0
0
75
244
fc196d4a53af9df4c92f8c39711e2ba76da88a58
72
py
Python
AtC_Beg_Con_061-070/ABC063/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Beg_Con_061-070/ABC063/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Beg_Con_061-070/ABC063/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
a, b = map(int, input().split()) print(a + b if a + b < 10 else "error")
36
39
0.555556
a, b = map(int, input().split()) print(a + b if a + b < 10 else "error")
0
0
0
0
0
0
0
0
0
86f9c59c82df8db520fe842e19c4ec432bfd83be
6,609
py
Python
tests/common/platform/transceiver_utils.py
arista-northwest/sonic-mgmt
ef83219cf68b03693aedf22c22a040000a491a64
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
tests/common/platform/transceiver_utils.py
arista-northwest/sonic-mgmt
ef83219cf68b03693aedf22c22a040000a491a64
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
tests/common/platform/transceiver_utils.py
arista-northwest/sonic-mgmt
ef83219cf68b03693aedf22c22a040000a491a64
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
""" Helper script for checking status of transceivers This script contains re-usable functions for checking status of transceivers. """ import logging import re def parse_transceiver_info(output_lines): """ @summary: Parse the list of transceiver from DB table TRANSCEIVER_INFO content @param output_lines...
47.207143
118
0.70752
""" Helper script for checking status of transceivers This script contains re-usable functions for checking status of transceivers. """ import logging import re def parse_transceiver_info(output_lines): """ @summary: Parse the list of transceiver from DB table TRANSCEIVER_INFO content @param output_lines...
0
0
0
0
0
0
0
0
0
a0f305a25e2af26b289000c2eb32a910738fd39a
2,051
py
Python
utils/load.py
Vlammar/SAM
0627db502c541d7f1aa601d8b788ac4985610f58
[ "MIT" ]
null
null
null
utils/load.py
Vlammar/SAM
0627db502c541d7f1aa601d8b788ac4985610f58
[ "MIT" ]
null
null
null
utils/load.py
Vlammar/SAM
0627db502c541d7f1aa601d8b788ac4985610f58
[ "MIT" ]
null
null
null
if __name__ == '__main__': print('Labels:', get_label_list()) bl = batchLoader(100,path_msdi=msdi_path) for i in range(10): X,y=bl.load(i) print(X.shape,len(y)) #print(X[1]) """ print('Labels:', get_label_list()) bl = batchLoader(100,path_msdi=msdi_path) for i in range(10): for batch in bl.loadBatch...
26.986842
81
0.678693
from msdi_io import * class batchLoader(): def __init__(self,batch_size,path_msdi,max_size=30712): self.i = 0 self.batch_size= batch_size self.path_msdi = path_msdi self.max_size = max_size self.msdi = get_msdi_dataframe(msdi_path) def load(self,batch_nb,img_size): batch_size = min(self.i+self.batch...
0
0
0
1,623
0
0
0
0
45
12651f8b860f73c5c65274cede5661efe213867f
364
py
Python
habu/lib/arpoison.py
optimustoaster/habu
9ab5e7b8dd3b81b25dc48d4afc9f731a1b7489f0
[ "BSD-3-Clause" ]
461
2017-05-27T15:35:13.000Z
2019-11-30T23:13:15.000Z
habu/lib/arpoison.py
dolboBobo/habu
d9f2df6ac66b7527f7a731f943af07726ff7e2e2
[ "BSD-3-Clause" ]
10
2017-10-12T09:43:23.000Z
2019-06-21T17:25:09.000Z
habu/lib/arpoison.py
dolboBobo/habu
d9f2df6ac66b7527f7a731f943af07726ff7e2e2
[ "BSD-3-Clause" ]
108
2017-09-23T19:55:23.000Z
2019-11-30T19:08:32.000Z
from scapy.all import conf conf.verb = 0 if __name__ == '__main__': pass
18.2
46
0.678571
from scapy.all import arpcachepoison, conf import ipaddress conf.verb = 0 def arpoison(target1, target2, interval=5): try: ipaddress.ip_address(target1) ipaddress.ip_address(target2) except ValueError: print("Bad IP address") return 1 arpcachepoison(target1, target2, inte...
0
0
0
0
0
228
0
11
45
3465ddbd9219f8f87ae8022db65d60033f1cb870
1,472
py
Python
api/app.py
RomanZorkin/contracts_accounting
0b4d0427a2b5fffc3b8c012318a9e19f9f7c734f
[ "MIT" ]
null
null
null
api/app.py
RomanZorkin/contracts_accounting
0b4d0427a2b5fffc3b8c012318a9e19f9f7c734f
[ "MIT" ]
null
null
null
api/app.py
RomanZorkin/contracts_accounting
0b4d0427a2b5fffc3b8c012318a9e19f9f7c734f
[ "MIT" ]
null
null
null
from fastapi import FastAPI import api.sql_handler as sql_handler app = FastAPI()
20.444444
46
0.66644
from typing import Optional from fastapi import FastAPI import api.sql_handler as sql_handler app = FastAPI() @app.get("/items/") def read_item(num: str): #reg_num = f'{item_id}/{str(year)[2:4]}' query_sd = sql_handler.filter_query(num) #print('query', query_sd) return query_sd @app.get("/all"...
0
1,037
0
0
0
0
0
6
344
4f30702fc2c746d02e7b4301d70f095f4cb60cab
258
py
Python
env/lib/python3.8/site-packages/munch/python3_compat.py
CristianCristanchoT/predyctiva
d745f9d687dc0de0a1615ee219b86a9d68571782
[ "MIT" ]
563
2015-02-27T02:02:06.000Z
2022-03-25T04:40:33.000Z
env/lib/python3.8/site-packages/munch/python3_compat.py
CristianCristanchoT/predyctiva
d745f9d687dc0de0a1615ee219b86a9d68571782
[ "MIT" ]
64
2015-04-11T22:24:11.000Z
2022-02-02T12:39:57.000Z
env/lib/python3.8/site-packages/munch/python3_compat.py
CristianCristanchoT/predyctiva
d745f9d687dc0de0a1615ee219b86a9d68571782
[ "MIT" ]
84
2015-01-05T22:50:13.000Z
2022-03-30T15:25:06.000Z
try: from collections.abc import Mapping # pylint: disable=unused-import except ImportError: # Legacy Python
36.857143
72
0.763566
from six import u, iteritems, iterkeys # pylint: disable=unused-import try: from collections.abc import Mapping # pylint: disable=unused-import except ImportError: # Legacy Python from collections import Mapping # pylint: disable=unused-import
0
0
0
0
0
0
0
27
113
aa7e0f5e47e2bde49afce7d49dcdd9eaf4af6e16
1,429
py
Python
src/mergedictionaries/sources/hunspell.py
nasqueron/merge-dictionaries
657fb61165e33ad7dbb6f9641c6cf10752acf9e6
[ "BSD-2-Clause" ]
null
null
null
src/mergedictionaries/sources/hunspell.py
nasqueron/merge-dictionaries
657fb61165e33ad7dbb6f9641c6cf10752acf9e6
[ "BSD-2-Clause" ]
null
null
null
src/mergedictionaries/sources/hunspell.py
nasqueron/merge-dictionaries
657fb61165e33ad7dbb6f9641c6cf10752acf9e6
[ "BSD-2-Clause" ]
null
null
null
# ------------------------------------------------------------- # Merge dictionaries :: Sources :: Hunspell # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project: Nasqueron # Description: Find Hunspell personal dictionaries # License: BSD-2-Clause # -------------------...
25.070175
79
0.572428
# ------------------------------------------------------------- # Merge dictionaries :: Sources :: Hunspell # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project: Nasqueron # Description: Find Hunspell personal dictionaries # License: BSD-2-Clause # -------------------...
0
0
0
0
0
934
0
-12
138
40c308d59966bf697eb149c92d9e696ab0203863
4,056
py
Python
neutron/tests/tools.py
NeCTAR-RC/neutron
acf78cc3c88aff638180819419a65145a9a79695
[ "Apache-2.0" ]
null
null
null
neutron/tests/tools.py
NeCTAR-RC/neutron
acf78cc3c88aff638180819419a65145a9a79695
[ "Apache-2.0" ]
null
null
null
neutron/tests/tools.py
NeCTAR-RC/neutron
acf78cc3c88aff638180819419a65145a9a79695
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 NEC Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
33.245902
79
0.68072
# Copyright (c) 2013 NEC Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
0
0
0
1,891
0
371
0
-7
206
fee871b0271a48d9b790a885e40bd17abcb886b4
13,024
py
Python
nyc311calendar/__init__.py
elahd/nyc311calendar
d34c586d78b7c46bcb349a023a3441514872d4ed
[ "MIT" ]
null
null
null
nyc311calendar/__init__.py
elahd/nyc311calendar
d34c586d78b7c46bcb349a023a3441514872d4ed
[ "MIT" ]
null
null
null
nyc311calendar/__init__.py
elahd/nyc311calendar
d34c586d78b7c46bcb349a023a3441514872d4ed
[ "MIT" ]
null
null
null
"""NYC 311 Calendar API.""" from __future__ import annotations import logging __version__ = "v0.4" log = logging.getLogger(__name__)
35.487738
248
0.557125
"""NYC 311 Calendar API.""" from __future__ import annotations from dataclasses import dataclass from datetime import date from datetime import datetime from datetime import timedelta from enum import Enum import logging import aiohttp from nyc311calendar.services import Parking from nyc311calendar.services import Sa...
0
3,205
7,854
1,152
0
0
0
226
447
152c41e86c139479e0885fc6932483535d7e9ae4
424
py
Python
traffic_monitor/migrations/0010_auto_20200915_0115.py
mcdomx/monitor
55082a3ea985224b819e4e2b7e13f44e70ac0b74
[ "MIT" ]
1
2020-09-23T14:36:30.000Z
2020-09-23T14:36:30.000Z
traffic_monitor/migrations/0010_auto_20200915_0115.py
mcdomx/monitor
55082a3ea985224b819e4e2b7e13f44e70ac0b74
[ "MIT" ]
3
2021-09-08T02:32:20.000Z
2022-03-12T00:49:29.000Z
traffic_monitor/migrations/0010_auto_20200915_0115.py
mcdomx/monitor
55082a3ea985224b819e4e2b7e13f44e70ac0b74
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-15 01:15
22.315789
68
0.634434
# Generated by Django 3.1.1 on 2020-09-15 01:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('traffic_monitor', '0009_monitor_detector_sleep_throttle'), ] operations = [ migrations.AlterField( model_name='monitor', ...
0
0
0
310
0
0
0
19
46
a7cd484b213c5d28189470f9ac0948f312244ea2
392
py
Python
Problems/LeetCode/217-ContainsDuplicate.py
bvlqz/code
2908aaf1b83391aaf9d8012888766151b7aa404b
[ "MIT" ]
null
null
null
Problems/LeetCode/217-ContainsDuplicate.py
bvlqz/code
2908aaf1b83391aaf9d8012888766151b7aa404b
[ "MIT" ]
null
null
null
Problems/LeetCode/217-ContainsDuplicate.py
bvlqz/code
2908aaf1b83391aaf9d8012888766151b7aa404b
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/contains-duplicate/
23.058824
51
0.469388
# https://leetcode.com/problems/contains-duplicate/ class Solution(object): def containsDuplicate(self, nums): """ :type nums: List[int] :rtype: bool """ hashmap = {} for num in nums: if num in hashmap: return True else: ...
0
0
0
305
0
0
0
0
23
93db3adffb4df3438a37f2afd5aab9a38af98dc5
419
py
Python
PicImageSearch/__init__.py
Coder-Sakura/PicImageSearch
f947d0aa5648f39763f35295e7d67b9ec2eecca8
[ "MIT" ]
null
null
null
PicImageSearch/__init__.py
Coder-Sakura/PicImageSearch
f947d0aa5648f39763f35295e7d67b9ec2eecca8
[ "MIT" ]
null
null
null
PicImageSearch/__init__.py
Coder-Sakura/PicImageSearch
f947d0aa5648f39763f35295e7d67b9ec2eecca8
[ "MIT" ]
null
null
null
__author__ = "kitUIN" __license__ = "MIT License" __contributors__ = ["kitUIN", "lleans", "chinoll", "NekoAria"] __email__ = "kulujun@gmail.com"
22.052632
62
0.735084
from .ascii2d import Ascii2D from .Async import * from .baidu import BaiDu from .google import Google from .iqdb import Iqdb from .saucenao import SauceNAO from .tracemoe import ( TraceMoe, TraceMoeAnilist, TraceMoeMe, TraceMoeNorm, TraceMoeResponse, ) __author__ = "kitUIN" __license__ = "MIT Licen...
0
0
0
0
0
0
0
119
154
28f789dd413a4c18c704650f20ff868e730364e3
372
py
Python
AdventOfCode_14_1.py
Trapper007/A-beautiful-code-in-Python
80c4209a7f74e5693b576fe636f667b7195e8b5f
[ "MIT" ]
1
2019-03-02T19:57:25.000Z
2019-03-02T19:57:25.000Z
AdventOfCode_14_1.py
Trapper007/A-beautiful-code-in-Python
80c4209a7f74e5693b576fe636f667b7195e8b5f
[ "MIT" ]
null
null
null
AdventOfCode_14_1.py
Trapper007/A-beautiful-code-in-Python
80c4209a7f74e5693b576fe636f667b7195e8b5f
[ "MIT" ]
null
null
null
import time start = time.perf_counter() receips = '37' von = 509671 bis = von + 10 elf1, elf2 = 0,1 for i in range(bis): score = int(receips[elf1]) + int(receips[elf2]) receips += str(score) lr = len(receips) elf1 = (elf1 + int(receips[elf1])+ 1) % lr elf2 = (elf2 + int(receips[elf2])+ 1) % lr print(r...
19.578947
49
0.63172
import time start = time.perf_counter() receips = '37' von = 509671 bis = von + 10 elf1, elf2 = 0,1 for i in range(bis): score = int(receips[elf1]) + int(receips[elf2]) receips += str(score) lr = len(receips) elf1 = (elf1 + int(receips[elf1])+ 1) % lr elf2 = (elf2 + int(receips[elf2])+ 1) % lr print(r...
0
0
0
0
0
0
0
0
0
6295ec734f390a221241926822cf5e28aefa8cba
739
py
Python
src/atcoder/abc030/c/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
1
2021-07-11T03:20:10.000Z
2021-07-11T03:20:10.000Z
src/atcoder/abc030/c/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
39
2021-07-10T05:21:09.000Z
2021-12-15T06:10:12.000Z
src/atcoder/abc030/c/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
null
null
null
main()
17.186047
56
0.514208
import typing import sys import numpy as np import numba as nb @nb.njit((nb.i8, nb.i8, nb.i8[:], nb.i8[:]), cache=True) def solve( x: int, y: int, a: np.ndarray, b: np.ndarray, ) -> typing.NoReturn: n, m = len(a), len(b) t = 0 cnt = 0 i = j = 0 while True: while i < n and a[i] < t: i += 1...
0
370
0
0
0
247
0
-25
137
00584a9365e7c5ed315adc5f133b60601b132525
1,124
py
Python
imgur.py
chrispwns/CLimgur
88067613a2402bd57a98dd850f9afcff9faa4d89
[ "MIT" ]
null
null
null
imgur.py
chrispwns/CLimgur
88067613a2402bd57a98dd850f9afcff9faa4d89
[ "MIT" ]
null
null
null
imgur.py
chrispwns/CLimgur
88067613a2402bd57a98dd850f9afcff9faa4d89
[ "MIT" ]
null
null
null
import argparse import os from credentials import get, set from upload import upload def main(): """ get command line options and upload the file(s) accordingly :return: None """ parser = argparse.ArgumentParser() options = parser.add_mutually_exclusive_group() options.add_arg...
31.222222
102
0.651246
import argparse import os from credentials import get, set from upload import upload def main(): """ get command line options and upload the file(s) accordingly :return: None """ parser = argparse.ArgumentParser() options = parser.add_mutually_exclusive_group() options.add_arg...
0
0
0
0
0
0
0
0
0
fb599016f8722c293bf9ec3a554475aa2b959f18
174
py
Python
run.py
lijingui2010/ProxyPool
3d4f732c8305458fb26619b67c617313afbea605
[ "Apache-2.0" ]
null
null
null
run.py
lijingui2010/ProxyPool
3d4f732c8305458fb26619b67c617313afbea605
[ "Apache-2.0" ]
null
null
null
run.py
lijingui2010/ProxyPool
3d4f732c8305458fb26619b67c617313afbea605
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': main()
11.6
39
0.591954
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from proxypool.schedule import Schedule def main(): s = Schedule() s.run() if __name__ == '__main__': main()
0
0
0
0
0
21
0
18
46
e0edd158e303079b903487fb1bb3457afbac7308
3,670
py
Python
Participants/triple-dungeon/tests.py
python-discord/game-jam-2020
cdcb1c2c9246825518a29b05cc39a679b36d666e
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
triple-dungeon/tests.py
n0remac/game-jam-2020
1a80bd538cf3221a6f15cc9e56d17d17720e8d03
[ "MIT" ]
18
2020-04-18T07:01:02.000Z
2020-10-31T12:13:48.000Z
triple-dungeon/tests.py
n0remac/game-jam-2020
1a80bd538cf3221a6f15cc9e56d17d17720e8d03
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
""" tests.py A file dedicated to testing our game and ensuring it can run. Integrate this into your IDE's workflow to ensure the game runs from top to bottom. The tests used here should test all of our game's features as best they can. """
27.185185
95
0.571662
""" tests.py A file dedicated to testing our game and ensuring it can run. Integrate this into your IDE's workflow to ensure the game runs from top to bottom. The tests used here should test all of our game's features as best they can. """ import pytest from typing import Pattern, List class TestGame: """ T...
0
1,504
0
1,757
0
0
0
3
161
a2c9b8e0ec74db319bbcc2c4933fbffa9c1d9f46
5,676
py
Python
fingerprint/server/server.py
ghoshishan/comp-sec
f1bec8fc68814bc421337069e58a67447baf2a89
[ "MIT" ]
null
null
null
fingerprint/server/server.py
ghoshishan/comp-sec
f1bec8fc68814bc421337069e58a67447baf2a89
[ "MIT" ]
null
null
null
fingerprint/server/server.py
ghoshishan/comp-sec
f1bec8fc68814bc421337069e58a67447baf2a89
[ "MIT" ]
null
null
null
import server.dbhandler as dbhandler
35.254658
96
0.633897
import json import logging import pathlib from phe import paillier, EncryptedNumber, PaillierPublicKey import server.dbhandler as dbhandler class Server(): """ Implements functionality related to cloud biometric storage and processing. Return values to the client: store_template(): ...
0
0
0
5,510
0
0
0
15
112
9d0eabb05c63acbbe873538689cef1f4401e916d
196
py
Python
ex021.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
ex021.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
ex021.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
# Faa um programa em Python que abra e reproduza o udio de um arquivo MP3. from pygame import mixer # pip3 install pygame mixer.init() mixer.music.load('ex021.ogg') mixer.music.play() input()
21.777778
76
0.75
# Faça um programa em Python que abra e reproduza o áudio de um arquivo MP3. from pygame import mixer # pip3 install pygame mixer.init() mixer.music.load('ex021.ogg') mixer.music.play() input()
4
0
0
0
0
0
0
0
0
4f02c85f8c577d5e5aacb66bd08e0065f5306739
2,884
py
Python
reinforcement_learning/rl_traveling_salesman_vehicle_routing_coach/src/evaluate-coach.py
rituraj17/amazon-sagemaker-examples
b435bb2efb9d94da0cca64d007b44e75dc1675e3
[ "Apache-2.0" ]
4
2018-12-03T08:14:15.000Z
2019-01-25T04:06:20.000Z
reinforcement_learning/rl_traveling_salesman_vehicle_routing_coach/src/evaluate-coach.py
ragavvenkatesan/amazon-sagemaker-examples
555e84714d8004210bf8bbf254313a021bb2372e
[ "Apache-2.0" ]
null
null
null
reinforcement_learning/rl_traveling_salesman_vehicle_routing_coach/src/evaluate-coach.py
ragavvenkatesan/amazon-sagemaker-examples
555e84714d8004210bf8bbf254313a021bb2372e
[ "Apache-2.0" ]
2
2019-01-03T04:52:53.000Z
2019-01-13T06:46:51.000Z
import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() # consumes the hyper-parameters parser.add_argument('--bucket_name', type=str) parser.add_argument('--input_data_dir', type=str, default='/opt/ml/input/data/') parser.add_argument('--output_data_dir', type=str, defaul...
41.797101
115
0.755895
from rl_coach.agents.clipped_ppo_agent import ClippedPPOAgentParameters from rl_coach.environments.gym_environment import GymVectorEnvironment from rl_coach.graph_managers.basic_rl_graph_manager import BasicRLGraphManager from rl_coach.graph_managers.graph_manager import ScheduleParameters from rl_coach.base_parameters...
0
0
0
0
0
1,887
0
315
267
bb2c4d24e323fbe9a91177fedb196262bb2b4c3e
2,070
py
Python
models.py
byCM/Project-5
f504687819ee8e3a041fad4c8978803e095a6844
[ "BSD-3-Clause" ]
null
null
null
models.py
byCM/Project-5
f504687819ee8e3a041fad4c8978803e095a6844
[ "BSD-3-Clause" ]
null
null
null
models.py
byCM/Project-5
f504687819ee8e3a041fad4c8978803e095a6844
[ "BSD-3-Clause" ]
null
null
null
DATABASE = SqliteDatabase('journal.db')
26.202532
65
0.579227
import datetime from flask.ext.bcrypt import generate_password_hash from flask.ext.login import UserMixin from peewee import * DATABASE = SqliteDatabase('journal.db') class User(UserMixin, Model): username = CharField(unique=True) email = CharField(unique=True) password = CharField(max_length=100) jo...
0
757
0
966
0
92
0
39
169
b70c025efaaeacb71bccea9b6bad94e23f08c8b4
5,662
py
Python
admin/tests/test_restriction_areas.py
vvmruder/c2cgeoportal
2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
admin/tests/test_restriction_areas.py
vvmruder/c2cgeoportal
2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
admin/tests/test_restriction_areas.py
vvmruder/c2cgeoportal
2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# pylint: disable=no-self-use
39.873239
107
0.651713
# pylint: disable=no-self-use import json import pytest import re from geoalchemy2.shape import from_shape from shapely.geometry import box, Polygon, shape from . import AbstractViewsTests @pytest.fixture(scope='function') @pytest.mark.usefixtures('dbsession', 'transact') def restriction_area_test_data(dbsession, ...
0
5,422
0
0
0
0
0
27
180
44ce39ef5ce4e2fb2f3af39ce433a9ebd41b5670
3,293
py
Python
paper_updater/paper_updater.py
abnormalend/minecraft_aws_tools
1db289d6d4d266798fda795487fc3725189f430b
[ "MIT" ]
null
null
null
paper_updater/paper_updater.py
abnormalend/minecraft_aws_tools
1db289d6d4d266798fda795487fc3725189f430b
[ "MIT" ]
null
null
null
paper_updater/paper_updater.py
abnormalend/minecraft_aws_tools
1db289d6d4d266798fda795487fc3725189f430b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests import boto3 from os import listdir from os.path import isfile, join import re def install_paper(mc_version, paper_build): """This will download the paper jar""" url = "https://papermc.io/api/v2/projects/paper" mc_version = requests.get(url).json()['versions'][-1] if mc_...
43.906667
186
0.697844
#!/usr/bin/python3 import requests import boto3 from os import listdir from os.path import isfile, join import re def install_paper(mc_version, paper_build): """This will download the paper jar""" url = "https://papermc.io/api/v2/projects/paper" mc_version = requests.get(url).json()['versions'][-1] if mc_...
0
0
0
0
0
0
0
0
0
e07abf23c0b702a9441d51f706497dd10bcfb0b2
158
py
Python
python/core/poccore/simple.py
xmnlab/poc-multi-api
0b7814ed16c885aa63a8c63829e503879aab6837
[ "MIT" ]
null
null
null
python/core/poccore/simple.py
xmnlab/poc-multi-api
0b7814ed16c885aa63a8c63829e503879aab6837
[ "MIT" ]
null
null
null
python/core/poccore/simple.py
xmnlab/poc-multi-api
0b7814ed16c885aa63a8c63829e503879aab6837
[ "MIT" ]
1
2022-03-23T04:48:51.000Z
2022-03-23T04:48:51.000Z
from __future__ import annotations
22.571429
49
0.696203
from __future__ import annotations def avg_list(values: list) -> float | int | None: size = len(values) return sum(values) / size if size else None
0
0
0
0
0
99
0
0
23
16d9c7495eec1e0c8a647e37e4e6440ea07a3d42
7,176
py
Python
python/py_diff_pd/env/duck_env_3d.py
brokencuph/diff_pd
2c30ecfa39762c5fc78dea9c7a226000e9fc5c15
[ "MIT" ]
4
2022-03-11T20:13:17.000Z
2022-03-31T00:49:59.000Z
python/py_diff_pd/env/duck_env_3d.py
brokencuph/diff_pd
2c30ecfa39762c5fc78dea9c7a226000e9fc5c15
[ "MIT" ]
null
null
null
python/py_diff_pd/env/duck_env_3d.py
brokencuph/diff_pd
2c30ecfa39762c5fc78dea9c7a226000e9fc5c15
[ "MIT" ]
2
2022-03-11T20:13:24.000Z
2022-03-12T03:38:46.000Z
from py_diff_pd.common.project_path import root_path
39.866667
103
0.578038
import time from pathlib import Path import numpy as np import os from py_diff_pd.env.env_base import EnvBase from py_diff_pd.common.common import create_folder, ndarray, print_info from py_diff_pd.common.tet_mesh import tetrahedralize, read_tetgen_file, generate_tet_mesh, tet2obj from py_diff_pd.common.tri_mesh impo...
0
0
0
6,452
0
0
0
360
311
965fae10a84a055b5ea1a275c65d5f8c61898dea
5,483
py
Python
core_functionality/tree_generation.py
yT0n1/D3MEAP-Projekt
138a10da2eba7b57d79a7b051f687652c1e05f86
[ "BSD-Source-Code" ]
null
null
null
core_functionality/tree_generation.py
yT0n1/D3MEAP-Projekt
138a10da2eba7b57d79a7b051f687652c1e05f86
[ "BSD-Source-Code" ]
null
null
null
core_functionality/tree_generation.py
yT0n1/D3MEAP-Projekt
138a10da2eba7b57d79a7b051f687652c1e05f86
[ "BSD-Source-Code" ]
null
null
null
if __name__ == '__main__': trees_8 = [approximate_tree(6,2),approximate_tree(6,3), approximate_tree(6,4), approximate_tree(6,5), prime_factor_tree(6,True), prime_factor_tree(6,False), one_vs_all_split(6), one_split_tree(6)] for tree in trees_8: d...
34.702532
100
0.638884
import functools import operator from statistics import mean import math from anytree import LevelOrderIter, RenderTree, DoubleStyle from anytree.exporter import DotExporter from sympy.ntheory import factorint from core_functionality.solver_node import SolverNode def add_split_ratios(root: SolverNode): [node.se...
0
0
0
0
0
4,568
0
88
477
aace844a7e6eb350de4791c2e075aba9b776e445
1,312
py
Python
workflow/migrations/0030_auto_20180907_0704.py
sannleen/TolaActivity
b47154339c3a45583063ecad43b0b16ae2f8f36e
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0030_auto_20180907_0704.py
sannleen/TolaActivity
b47154339c3a45583063ecad43b0b16ae2f8f36e
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0030_auto_20180907_0704.py
sannleen/TolaActivity
b47154339c3a45583063ecad43b0b16ae2f8f36e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-09-07 14:04 from __future__ import unicode_literals
35.459459
234
0.682927
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-09-07 14:04 from __future__ import unicode_literals import django.contrib.postgres.fields.hstore from django.db import migrations from django.db.utils import ProgrammingError def create_fields(apps, schema_editor): # If fields are not there, add them. ...
0
0
0
165
0
862
0
57
113
b38399eca97c3af45e2e3f94f974bfee6c0723a3
243
py
Python
src/tf_components/visualization/clip_uint8.py
YorkUCVIL/Wavelet-Flow
8d6d63fa116ec44299c32f37e66817594510f644
[ "MIT" ]
59
2020-10-28T03:09:05.000Z
2022-01-29T22:10:04.000Z
src/tf_components/visualization/clip_uint8.py
YorkUCVIL/Wavelet-Flow
8d6d63fa116ec44299c32f37e66817594510f644
[ "MIT" ]
4
2020-12-24T11:00:40.000Z
2021-05-22T06:14:27.000Z
src/tf_components/visualization/clip_uint8.py
YorkUCVIL/Wavelet-Flow
8d6d63fa116ec44299c32f37e66817594510f644
[ "MIT" ]
2
2020-10-29T01:15:03.000Z
2021-04-20T11:55:51.000Z
import tensorflow as tf def clip_uint8(im_in): ''' clips a float value between 0 and 255 and casts to uint8 ''' with tf.variable_scope(None,default_name='clip_uint8'): im = tf.clip_by_value(im_in, 0, 255) return tf.cast(im, tf.uint8)
24.3
57
0.72428
import tensorflow as tf def clip_uint8(im_in): ''' clips a float value between 0 and 255 and casts to uint8 ''' with tf.variable_scope(None,default_name='clip_uint8'): im = tf.clip_by_value(im_in, 0, 255) return tf.cast(im, tf.uint8)
0
0
0
0
0
0
0
0
0
63002ce1ff3038ce8ac0dd5d1bea693d67e52bcf
4,899
py
Python
tests/python/xgboost/05_FraudDetection_GPU.py
cclauss/h2o4gpu
1bb161694ce67500383b7b3a542b349aa13ed7fe
[ "Apache-2.0" ]
null
null
null
tests/python/xgboost/05_FraudDetection_GPU.py
cclauss/h2o4gpu
1bb161694ce67500383b7b3a542b349aa13ed7fe
[ "Apache-2.0" ]
null
null
null
tests/python/xgboost/05_FraudDetection_GPU.py
cclauss/h2o4gpu
1bb161694ce67500383b7b3a542b349aa13ed7fe
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ :copyright: 2017-2018 H2O.ai, Inc. :license: Apache License Version 2.0 (see LICENSE for details) """ # # Experiment 05: Credit card Fraud (GPU version) # # This experiment uses the data from the Kaggle dataset [Credit Card Fraud Detection](https://www.kaggle.com/dalpozz/creditcardfraud). The dat...
18.077491
224
0.684221
# coding: utf-8 """ :copyright: 2017-2018 H2O.ai, Inc. :license: Apache License Version 2.0 (see LICENSE for details) """ # # Experiment 05: Credit card Fraud (GPU version) # # This experiment uses the data from the Kaggle dataset [Credit Card Fraud Detection](https://www.kaggle.com/dalpozz/creditcardfraud). The dat...
0
0
0
0
0
0
0
10
23
e11e8e6035a55dc0f762b22093fc412f27524ef8
1,002
py
Python
setup.py
ronin-gw/cqstat
44333c1904134358d1c54f03a68cd33b12f43b2a
[ "MIT" ]
2
2018-04-14T09:09:53.000Z
2020-03-16T09:41:00.000Z
setup.py
ronin-gw/cqstat
44333c1904134358d1c54f03a68cd33b12f43b2a
[ "MIT" ]
null
null
null
setup.py
ronin-gw/cqstat
44333c1904134358d1c54f03a68cd33b12f43b2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.dirname(__file__), "README.rst")) as f: readme = f.read() setup( name="cqstat", version="1.0.0", description="A colorful command line tool substitutes for Grid Engine qstat command", long_description=r...
28.628571
89
0.623752
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.dirname(__file__), "README.rst")) as f: readme = f.read() setup( name="cqstat", version="1.0.0", description="A colorful command line tool substitutes for Grid Engine qstat command", long_description=r...
0
0
0
0
0
0
0
0
0
32dc22f4e3c16a0278bb7582299d84a2f85d06da
2,555
py
Python
_app/list_fields.py
Wilfongjt/lb-data
eca16bcec6cae5822146dfce8ea56e5f533c7f87
[ "MIT" ]
null
null
null
_app/list_fields.py
Wilfongjt/lb-data
eca16bcec6cae5822146dfce8ea56e5f533c7f87
[ "MIT" ]
6
2020-04-15T10:15:30.000Z
2020-07-10T16:12:42.000Z
_app/list_fields.py
Wilfongjt/lb-data
eca16bcec6cae5822146dfce8ea56e5f533c7f87
[ "MIT" ]
null
null
null
''' common lists of fields getFields is all fields in table ''' if __name__ == "__main__": main()
42.583333
125
0.592172
from pathlib import Path from context_dict import ContextDict from pprint import pprint ''' common lists of fields getFields is all fields in table ''' class FieldList(list): def __init__(self, tbl_dictionary, test_list=[]): self.tbl_dictionary = tbl_dictionary self.test_list = test_list ...
0
0
0
868
0
1,448
0
22
112
97fcddf59fc7a873b57616f4f62ce172821bdab4
3,783
py
Python
src/app.py
pralphv/hkportfolioanalysis-backend
6dbf6f17e6ebd95e28ee042126b34408dde4f520
[ "MIT" ]
null
null
null
src/app.py
pralphv/hkportfolioanalysis-backend
6dbf6f17e6ebd95e28ee042126b34408dde4f520
[ "MIT" ]
1
2021-03-31T19:44:25.000Z
2021-03-31T19:44:25.000Z
src/app.py
pralphv/hkportfolioanalysis-backend
6dbf6f17e6ebd95e28ee042126b34408dde4f520
[ "MIT" ]
1
2020-11-27T17:56:38.000Z
2020-11-27T17:56:38.000Z
import logging import os from dotenv import load_dotenv from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware load_dotenv() send_slack_msg('HKPORTFOLIOANALYSIS BACKEND has been initiated') logging.basicConfig(level=logging.INFO, format="%(asctime)s:%(levelname)s: %(message)s") LAST_CACHE...
28.877863
96
0.663759
from datetime import datetime, time import logging import json import os import requests import traceback from dotenv import load_dotenv from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from src import models from src import data from src import finance_stats load_dotenv() def send_sla...
0
1,977
0
0
0
590
0
1
247
0fc95fa6d9d133629c0cae5b197980cb3d74544d
1,033
py
Python
main.py
Nandan-18/Validator
1c148428d7183ce5ff13a90b611d21ba280c2ba6
[ "MIT" ]
null
null
null
main.py
Nandan-18/Validator
1c148428d7183ce5ff13a90b611d21ba280c2ba6
[ "MIT" ]
null
null
null
main.py
Nandan-18/Validator
1c148428d7183ce5ff13a90b611d21ba280c2ba6
[ "MIT" ]
null
null
null
# Main Program import validate print(""" --------------------------------------------------- | MENU | --------------------------------------------------- | 1. Generate a 4 digit OTP | | 2. Generate a Captcha of...
30.382353
80
0.332043
# Main Program import validate print(""" --------------------------------------------------- | MENU | --------------------------------------------------- | 1. Generate a 4 digit OTP | | 2. Generate a Captcha of...
0
0
0
0
0
0
0
0
0
06a2db0bc48e822702191bdf15744004cd1e9e57
7,428
py
Python
tools/train_utils/kd_train_utilsv2.py
EmiyaNing/OpenPCDet
41ff28209cb000b51626a0ed8593b0adbe3dd447
[ "Apache-2.0" ]
null
null
null
tools/train_utils/kd_train_utilsv2.py
EmiyaNing/OpenPCDet
41ff28209cb000b51626a0ed8593b0adbe3dd447
[ "Apache-2.0" ]
null
null
null
tools/train_utils/kd_train_utilsv2.py
EmiyaNing/OpenPCDet
41ff28209cb000b51626a0ed8593b0adbe3dd447
[ "Apache-2.0" ]
null
null
null
import torch def compact_batch(tensor_list): ''' Write some code to pad the teacher predicts.... ''' bs, ch, fix = tensor_list[0].shape max_ch = ch pad_tensor_list = [] for tensor in tensor_list: if max_ch < tensor.shape[1]: max_ch = tensor.shape[1] for tensor ...
38.092308
152
0.645396
import glob import os import torch import tqdm import numpy as np from torch.nn.utils import clip_grad_norm_ def compact_batch(tensor_list): ''' Write some code to pad the teacher predicts.... ''' bs, ch, fix = tensor_list[0].shape max_ch = ch pad_tensor_list = [] for tensor in tensor_...
0
0
0
0
0
6,595
0
-14
248
80ee24721b08cf08f3111c7ddfe447b96cee264b
5,199
py
Python
src/datasets.py
mhilmiasyrofi/DeepConcolic
87180ff4dafe5413f92cdd4839b087c5fb8a7f33
[ "BSD-3-Clause" ]
null
null
null
src/datasets.py
mhilmiasyrofi/DeepConcolic
87180ff4dafe5413f92cdd4839b087c5fb8a7f33
[ "BSD-3-Clause" ]
null
null
null
src/datasets.py
mhilmiasyrofi/DeepConcolic
87180ff4dafe5413f92cdd4839b087c5fb8a7f33
[ "BSD-3-Clause" ]
null
null
null
# NB: do NOT import utils as this disables eager execution that seems # to be required for proper operations of `tf.summary`. import os # --- default_datadir = os.getenv ('DC_DATADIR') or \ os.getenv ('TMPDIR', default = '/tmp') + '/sklearn_data' image_kinds = set (('image', 'greyscale_image',)) no...
39.687023
111
0.612425
# NB: do NOT import utils as this disables eager execution that seems # to be required for proper operations of `tf.summary`. import os import tensorflow as tf import numpy as np from sklearn.model_selection import train_test_split # --- default_datadir = os.getenv ('DC_DATADIR') or \ os.getenv ('TM...
0
0
0
0
0
4,076
0
62
246
36407867a0511a19c71db75ca6674120653ca797
549
py
Python
recipes/Python/576823_Prints_full_name_all_occurrences_given_filename_/recipe-576823.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/576823_Prints_full_name_all_occurrences_given_filename_/recipe-576823.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/576823_Prints_full_name_all_occurrences_given_filename_/recipe-576823.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
"""Prints full name of all occurrences of given filename in your PATH. Usage: findinpath.py filename""" import sys if __name__ == '__main__': sys.exit(main())
20.333333
70
0.595628
"""Prints full name of all occurrences of given filename in your PATH. Usage: findinpath.py filename""" import os import sys def main(): if len(sys.argv) < 2: print __doc__ return 2 filename = sys.argv[1] status = 1 sep = ';' if sys.platform == 'win32' else ':' for path in os.en...
0
0
0
0
0
350
0
-12
46
8ac8892a88323ab858f7b429e11a4795b84f7c8a
711
py
Python
elevenclock/globals.py
kinr0k/ElevenClock
f52fdc024491e16c266af2710f9012a2dd6927a7
[ "Apache-2.0" ]
null
null
null
elevenclock/globals.py
kinr0k/ElevenClock
f52fdc024491e16c266af2710f9012a2dd6927a7
[ "Apache-2.0" ]
null
null
null
elevenclock/globals.py
kinr0k/ElevenClock
f52fdc024491e16c266af2710f9012a2dd6927a7
[ "Apache-2.0" ]
null
null
null
import io app: QApplication = None buffer: io.StringIO = None old_stdout: io.StringIO = None trayIcon: QSystemTrayIcon = None sw: QScrollArea = None tempDir: str = None
23.7
80
0.763713
import io from types import FunctionType from PySide2.QtGui import * from PySide2.QtCore import * from PySide2.QtWidgets import * def loadTimeFormat(): raise NotImplementedError("loadTimeFormat function has not been defined!") def updateIfPossible(): raise NotImplementedError("updateIfPossible function has...
0
0
0
0
0
312
0
32
189
ec03486350601be93a93d2185352a42728bc4237
5,680
py
Python
dev/google_communicator/worker.py
dapatil211/deep_architect
feadfb545d166216e27532ea47e8efa178e0d142
[ "MIT" ]
272
2017-05-01T08:14:15.000Z
2022-02-02T15:21:24.000Z
dev/google_communicator/worker.py
dapatil211/deep_architect
feadfb545d166216e27532ea47e8efa178e0d142
[ "MIT" ]
16
2017-09-25T02:19:40.000Z
2022-02-10T00:37:09.000Z
dev/google_communicator/worker.py
dapatil211/deep_architect
feadfb545d166216e27532ea47e8efa178e0d142
[ "MIT" ]
35
2017-05-10T14:39:40.000Z
2021-01-17T10:09:34.000Z
import deep_architect.utils as ut from google.cloud import pubsub_v1 import logging logging.basicConfig() publisher = pubsub_v1.PublisherClient() subscriber = pubsub_v1.SubscriberClient() results_topic = None arch_subscription = None specified = False evaluated = False arch_data = None started = False if __name...
32.272727
112
0.602113
import argparse import pickle import json import time import threading import pprint import deep_architect.utils as ut from google.cloud import pubsub_v1 from deep_architect.contrib.misc.datasets.loaders import (load_cifar10, load_mnist) from deep_architect.con...
0
0
0
0
0
4,489
0
438
404
6da44c69fddd3660960a30116a68e21ca2c73ed2
337
py
Python
2020/05-seccon4b/rev-mask/sol.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
25
2019-03-06T11:55:56.000Z
2021-05-21T22:07:14.000Z
2020/05-seccon4b/rev-mask/sol.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2020-06-25T07:27:15.000Z
2020-06-25T07:27:15.000Z
2020/05-seccon4b/rev-mask/sol.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2019-02-14T00:42:28.000Z
2019-02-14T00:42:28.000Z
import angr import claripy project = angr.Project("./mask") argv1 = claripy.BVS("argv1",100*8) initial_state = project.factory.entry_state(args=["./mask",argv1]) sm = project.factory.simulation_manager(initial_state) sm.explore(find=0x4012d6) found = sm.found[0] solution = found.solver.eval(argv1, cast_to=bytes) print...
28.083333
66
0.765579
import angr import claripy project = angr.Project("./mask") argv1 = claripy.BVS("argv1",100*8) initial_state = project.factory.entry_state(args=["./mask",argv1]) sm = project.factory.simulation_manager(initial_state) sm.explore(find=0x4012d6) found = sm.found[0] solution = found.solver.eval(argv1, cast_to=bytes) print...
0
0
0
0
0
0
0
0
0
e73584a958e92931104e842e71cf07417d8fe8d1
2,123
py
Python
Plugins/Aspose.BarCode Java for Jython/asposebarcode/WorkingWithBarcode/UtilityFeatures/CodeText.py
aspose-barcode/Aspose.BarCode-for-Java
00a0ef02cb58fda84b47939f7f8c0e2e5ca9fb65
[ "MIT" ]
10
2016-05-09T07:05:51.000Z
2019-05-22T07:31:49.000Z
Plugins/Aspose.BarCode Java for Jython/asposebarcode/WorkingWithBarcode/UtilityFeatures/CodeText.py
aspose-barcode/Aspose.BarCode-for-Java
00a0ef02cb58fda84b47939f7f8c0e2e5ca9fb65
[ "MIT" ]
3
2017-05-01T08:36:07.000Z
2019-01-09T21:16:13.000Z
Plugins/Aspose.BarCode Java for Jython/asposebarcode/WorkingWithBarcode/UtilityFeatures/CodeText.py
aspose-barcode/Aspose.BarCode-for-Java
00a0ef02cb58fda84b47939f7f8c0e2e5ca9fb65
[ "MIT" ]
14
2016-04-09T07:27:37.000Z
2021-05-26T10:42:26.000Z
if __name__ == '__main__': CodeText()
29.082192
83
0.66227
from asposebarcode import Settings from com.aspose.barcode import BarCodeBuilder from com.aspose.barcode import Symbology from com.aspose.barcode import CodeLocation from com.aspose.barcode import BarCodeImageFormat from java.awt import Color class CodeText: def __init__(self): # Set appearance of...
0
0
0
1,806
0
0
0
111
155
ddba732acdf4ef9caaeb7a5549b3b5239f2a356f
919
py
Python
thai2transformers/utils.py
modem888/thai2transformers
04716ecb9a88c1b1ea08d63511265245d53b1eb9
[ "Apache-2.0" ]
64
2020-02-28T04:15:23.000Z
2022-03-13T16:01:21.000Z
thai2transformers/utils.py
modem888/thai2transformers
04716ecb9a88c1b1ea08d63511265245d53b1eb9
[ "Apache-2.0" ]
28
2021-01-27T04:43:30.000Z
2022-01-26T10:27:47.000Z
thai2transformers/utils.py
modem888/thai2transformers
04716ecb9a88c1b1ea08d63511265245d53b1eb9
[ "Apache-2.0" ]
17
2020-06-11T07:54:44.000Z
2021-11-24T07:45:22.000Z
from typing import Dict, Union, List def get_dict_val(root:Dict, keys:Union[str, List[str]]): """ Access a nested object in root by item sequence. Args: root: Dict target object for accessing the value keys: Union[str, Tuple[str, str]] a key or a list of key (for n...
24.837838
71
0.527748
import operator from functools import reduce from typing import Tuple, Dict, Union, List def get_dict_val(root:Dict, keys:Union[str, List[str]]): """ Access a nested object in root by item sequence. Args: root: Dict target object for accessing the value keys: Union[str, Tuple[...
0
0
0
0
0
0
0
8
44
99125d4e0dedd2344f832eb145a95dc92be6d0fd
432
py
Python
gen_progs/are_anagram.py
kmad1729/python_notes
8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4
[ "Unlicense" ]
null
null
null
gen_progs/are_anagram.py
kmad1729/python_notes
8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4
[ "Unlicense" ]
null
null
null
gen_progs/are_anagram.py
kmad1729/python_notes
8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from collections import Counter def are_anagrams(*args): 'return True if args are anagrams' if len(args) < 2: raise TypeError("expected 2 or more arguments") c = Counter(args[0]) return all(c == Counter(a) for a in args[1:]) arg1 = "appel apple aplep leapp".split() #pri...
25.411765
65
0.659722
#!/usr/bin/env python3 from collections import Counter def are_anagrams(*args): 'return True if args are anagrams' if len(args) < 2: raise TypeError("expected 2 or more arguments") c = Counter(args[0]) return all(c == Counter(a) for a in args[1:]) arg1 = "appel apple aplep leapp".split() #pri...
0
0
0
0
0
0
0
0
0
0b8346220088348f5f4c59fadca6fb18df8090a6
2,475
py
Python
src/menu/menu.py
KrbDevelopment/LCD-Matrix
f5064ace1bb42b7e8cacbf91434bf0064a6812a6
[ "MIT" ]
null
null
null
src/menu/menu.py
KrbDevelopment/LCD-Matrix
f5064ace1bb42b7e8cacbf91434bf0064a6812a6
[ "MIT" ]
null
null
null
src/menu/menu.py
KrbDevelopment/LCD-Matrix
f5064ace1bb42b7e8cacbf91434bf0064a6812a6
[ "MIT" ]
null
null
null
import os font_path = os.path.join('assets', 'Font.ttf')
31.730769
126
0.64404
from src.wrapper.sh1106 import Screen from src.modules.clock_module import Module as ClockModule from src.modules.temperature_module import Module as TemperatureModule from PIL import Image, ImageDraw, ImageFont import os font_path = os.path.join('assets', 'Font.ttf') class MenuItem: def __init__(self, title, mod...
0
0
0
2,137
0
0
0
124
157
195456e3400acb5aee9e58c89dd74b7d13410202
665
py
Python
tasks/python3/util.py
greck2908/worldview
d17c463080218ce0a3d922be3dc8da5152860391
[ "NASA-1.3" ]
592
2015-01-19T15:32:19.000Z
2022-03-22T02:33:23.000Z
tasks/python3/util.py
katarenamatos/worldview
d98949a772eb19d99c14c4dc8128241ec9f72798
[ "NASA-1.3" ]
2,515
2016-01-05T17:20:04.000Z
2022-03-30T15:56:46.000Z
tasks/python3/util.py
katarenamatos/worldview
d98949a772eb19d99c14c4dc8128241ec9f72798
[ "NASA-1.3" ]
208
2015-03-07T23:40:06.000Z
2022-03-29T16:59:42.000Z
# dict_merge from # http://blog.impressiver.com/post/31434674390/deep-merge-multiple-python-dicts
26.6
79
0.645113
from copy import deepcopy # dict_merge from # http://blog.impressiver.com/post/31434674390/deep-merge-multiple-python-dicts def dict_merge(target, *args): # Merge multiple dicts if len(args) > 1: for obj in args: dict_merge(target, obj) return target # Recursively merge dicts and set non-dict valu...
0
0
0
0
0
519
0
4
44
f8b6bfc8ac13bb89cab24d2120e69c1251599616
63
py
Python
cursoPy/main.py
joninhasmcz/newProjects
3d8d329f36a6cdfe544ea3c70d4daf6618510c7d
[ "MIT" ]
null
null
null
cursoPy/main.py
joninhasmcz/newProjects
3d8d329f36a6cdfe544ea3c70d4daf6618510c7d
[ "MIT" ]
null
null
null
cursoPy/main.py
joninhasmcz/newProjects
3d8d329f36a6cdfe544ea3c70d4daf6618510c7d
[ "MIT" ]
null
null
null
frase = 'curso em video python' print('{}'.format(frase[9:21]))
31.5
31
0.666667
frase = 'curso em video python' print('{}'.format(frase[9:21]))
0
0
0
0
0
0
0
0
0
ea98d4ceea31a24d64f90ec7870a09620e86a15e
512
py
Python
tools/port-finder.py
EijiEternal/ddos-toolkit-sakura
b71d1e5b3431c9f24312605b3f6ac7868bd960e9
[ "MIT" ]
2
2021-01-20T15:11:51.000Z
2022-03-31T07:33:21.000Z
tools/port-finder.py
EijiEternal/ddos-toolkit-sakura
b71d1e5b3431c9f24312605b3f6ac7868bd960e9
[ "MIT" ]
null
null
null
tools/port-finder.py
EijiEternal/ddos-toolkit-sakura
b71d1e5b3431c9f24312605b3f6ac7868bd960e9
[ "MIT" ]
null
null
null
from pip._vendor.distlib.compat import raw_input import subprocess import pyfiglet pf = pyfiglet.figlet_format("S-PF", font="5lineoblique") print(pf) print("ip example 192.168.1.1") ipadd = raw_input("Ip-Address" r"""-------->>>> """) print("Port range example 20-40") pr = raw_input("Port-range" r"""-----...
22.26087
57
0.585938
from pip._vendor.distlib.compat import raw_input import subprocess import pyfiglet pf = pyfiglet.figlet_format("S-PF", font="5lineoblique") print(pf) print("ip example 192.168.1.1") ipadd = raw_input("Ip-Address" r"""-------->>>> """) print("Port range example 20-40") pr = raw_input("Port-range" r"""-----...
0
0
0
0
0
0
0
0
0
b301f2fef09a7157e294444991d6968096a53b68
1,764
py
Python
vec2graph/usage_realtime.py
lizaku/vec2graph
337c73d6ae0c19284710fccb9a1d1b139ef6cfbd
[ "MIT" ]
23
2019-06-29T20:27:52.000Z
2022-02-12T08:39:52.000Z
vec2graph/usage_realtime.py
lizaku/vec2graph
337c73d6ae0c19284710fccb9a1d1b139ef6cfbd
[ "MIT" ]
5
2019-07-09T14:26:41.000Z
2021-12-20T19:27:26.000Z
vec2graph/usage_realtime.py
lizaku/vec2graph
337c73d6ae0c19284710fccb9a1d1b139ef6cfbd
[ "MIT" ]
4
2020-05-12T15:55:35.000Z
2021-09-19T14:54:39.000Z
#!/usr/bin/env python import argparse import logging import os import webbrowser from example_usage import load_embeddings from vec2graph import visualize logging.basicConfig( format="%(asctime)s : %(levelname)s : %(message)s", level=logging.INFO ) parser = argparse.ArgumentParser() parser.add_argument( "-m...
26.727273
86
0.628118
#!/usr/bin/env python import argparse import logging import os import webbrowser from example_usage import load_embeddings from vec2graph import visualize logging.basicConfig( format="%(asctime)s : %(levelname)s : %(message)s", level=logging.INFO ) parser = argparse.ArgumentParser() parser.add_argument( "-m...
0
0
0
0
0
0
0
0
0
0f5c4f724bc0a9e005f10e32d01ea5dad0a16231
973
py
Python
colections/stratify_dataset.py
vanducng/learning-spark
b7e93361b1ae37fbcd718c4d7034b8355b65fd94
[ "MIT" ]
null
null
null
colections/stratify_dataset.py
vanducng/learning-spark
b7e93361b1ae37fbcd718c4d7034b8355b65fd94
[ "MIT" ]
null
null
null
colections/stratify_dataset.py
vanducng/learning-spark
b7e93361b1ae37fbcd718c4d7034b8355b65fd94
[ "MIT" ]
null
null
null
# Way 1 from pyspark.sql import functions as F def stratified_split_train_test(df, frac, label, join_on, seed=42): """ stratfied split of a dataframe in train and test set. inspiration gotten from: https://stackoverflow.com/a/47672336/1771155 https://stackoverflow.com/a/39889263/1771155""" fractio...
33.551724
98
0.720452
# Way 1 from pyspark.sql import functions as F def stratified_split_train_test(df, frac, label, join_on, seed=42): """ stratfied split of a dataframe in train and test set. inspiration gotten from: https://stackoverflow.com/a/47672336/1771155 https://stackoverflow.com/a/39889263/1771155""" fractio...
0
0
0
0
0
0
0
0
0
8a756757db5f5a2c1ab33799cedb5c92d5153f89
2,366
py
Python
scripts/makeelectrodes.py
flyingfalling/nvisutils
b1a36f2968c9e2bee323ac9e64081860b35ccd2b
[ "MIT" ]
null
null
null
scripts/makeelectrodes.py
flyingfalling/nvisutils
b1a36f2968c9e2bee323ac9e64081860b35ccd2b
[ "MIT" ]
null
null
null
scripts/makeelectrodes.py
flyingfalling/nvisutils
b1a36f2968c9e2bee323ac9e64081860b35ccd2b
[ "MIT" ]
null
null
null
#REV: read it, separate it, use freq to make timings ;) #REV: convert from old 7-el to 49-el, pain in the butt. #REV: assume I have 0, 2, 4, 6, 8, 10, 12, makes 7 electrodes, at 150 spacing ugh. #REV: I *think* 0 is x=50, 2 is x=200, 4 is x=350, 6 is x=500 #REV: Just do single correlations, if right now electrodes go...
25.717391
204
0.532544
#REV: read it, separate it, use freq to make timings ;) #REV: convert from old 7-el to 49-el, pain in the butt. #REV: assume I have 0, 2, 4, 6, 8, 10, 12, makes 7 electrodes, at 150 spacing ugh. #REV: I *think* 0 is x=50, 2 is x=200, 4 is x=350, 6 is x=500 #REV: Just do single correlations, if right now electrodes go...
0
0
0
0
0
757
0
0
22
4a533f28e1d77428d3cc7befc42ad01e05e6f27d
2,912
py
Python
files/app.py
pnoj/judge-executor
3b90c3f9da7c9a912cd40ded4abf409ebae15297
[ "MIT" ]
null
null
null
files/app.py
pnoj/judge-executor
3b90c3f9da7c9a912cd40ded4abf409ebae15297
[ "MIT" ]
null
null
null
files/app.py
pnoj/judge-executor
3b90c3f9da7c9a912cd40ded4abf409ebae15297
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__)
34.258824
160
0.637706
import requests from flask import Flask, request import os import info import isolate app = Flask(__name__) @app.route('/') def status(): executor_status = { "language": info.language, "status": config['status'], } return executor_status @app.route('/compile', methods=["POST"]) def compi...
0
2,709
0
0
0
0
0
-26
181
bfd6b1e2de49c5421669e4fb87b28ce26ecd3f61
5,397
py
Python
cogs/hl.py
achueves/AceBot
30cce6206df49ddb18dc4af03c146a564f3594ea
[ "MIT" ]
1
2021-09-04T04:52:13.000Z
2021-09-04T04:52:13.000Z
cogs/hl.py
achueves/AceBot
30cce6206df49ddb18dc4af03c146a564f3594ea
[ "MIT" ]
null
null
null
cogs/hl.py
achueves/AceBot
30cce6206df49ddb18dc4af03c146a564f3594ea
[ "MIT" ]
null
null
null
DELETE_EMOJI = '\N{Put Litter in Its Place Symbol}' DEFAULT_LANG = 'py' lang_converter = LangConverter(1, 32)
29.653846
112
0.699092
import re import disnake from disnake.ext import commands from ids import AHK_GUILD_ID from cogs.mixins import AceMixin from utils.context import is_mod from utils.converters import LengthConverter DELETE_EMOJI = '\N{Put Litter in Its Place Symbol}' DEFAULT_LANG = 'py' class LangConverter(LengthConverter): async ...
0
4,528
224
212
0
25
0
44
248
ab1858651821aadefadd0d2abb750bbdf4eb9e94
1,304
py
Python
inference.py
hukefei/SOLO-master
fcc034470ea7b4dee39d6071d179695df8a3a61b
[ "BSD-2-Clause" ]
2
2020-11-11T12:39:31.000Z
2020-12-25T01:44:15.000Z
inference.py
hukefei/SOLO-master
fcc034470ea7b4dee39d6071d179695df8a3a61b
[ "BSD-2-Clause" ]
null
null
null
inference.py
hukefei/SOLO-master
fcc034470ea7b4dee39d6071d179695df8a3a61b
[ "BSD-2-Clause" ]
null
null
null
from mmdet.apis import init_detector, inference_detector, show_result_ins import os, glob config_file = 'cfg/aug_solov2_tuned.py' # download the checkpoint from model zoo and put it in `checkpoints/` checkpoint_file = 'work_dirs/solov2_tianchi_tuned.pth' # build the model from a config file and a checkpoint file mode...
36.222222
93
0.706288
from mmdet.apis import init_detector, inference_detector, show_result_pyplot, show_result_ins import mmcv import os, glob, time config_file = 'cfg/aug_solov2_tuned.py' # download the checkpoint from model zoo and put it in `checkpoints/` checkpoint_file = 'work_dirs/solov2_tianchi_tuned.pth' # build the model from a ...
0
0
0
0
0
0
0
16
22
f36bff001773a91726a85ac58fcc47dc05c722f7
690
py
Python
sara_flexbe_states/src/sara_flexbe_states/SetKey.py
WalkingMachine/sara_behaviors
fcb55d274331915cd39d7d444546f17a39f85a44
[ "BSD-3-Clause" ]
5
2018-05-07T19:58:08.000Z
2021-04-21T10:49:05.000Z
sara_flexbe_states/src/sara_flexbe_states/SetKey.py
WalkingMachine/sara_behaviors
fcb55d274331915cd39d7d444546f17a39f85a44
[ "BSD-3-Clause" ]
21
2017-05-26T01:20:06.000Z
2021-01-26T23:03:36.000Z
sara_flexbe_states/src/sara_flexbe_states/SetKey.py
WalkingMachine/sara_behaviors
fcb55d274331915cd39d7d444546f17a39f85a44
[ "BSD-3-Clause" ]
2
2019-07-22T07:21:20.000Z
2019-11-11T20:49:22.000Z
# !/usr/bin/env python ''' Created on 21.09.2017 @author: Philippe La Madeleine '''
19.166667
77
0.542029
# !/usr/bin/env python import rospy from flexbe_core import EventState, Logger ''' Created on 21.09.2017 @author: Philippe La Madeleine ''' class SetKey(EventState): ''' Set a Key to a predefined Value -- Value object The desired value. <# Key object The key to set. <...
0
0
0
524
0
0
0
12
68
2a35b3d501774ece5d4197fc8383e2d539d999ae
1,001
py
Python
chapter4_特征提取/C4_1_y_2.py
busyyang/python_sound_open
91bc284f0ed538c1e8756a1a1475956191b4ae86
[ "Apache-2.0" ]
165
2020-06-10T03:39:17.000Z
2022-03-28T08:37:32.000Z
chapter4_特征提取/C4_1_y_2.py
shangminghao/python_sound_open
91bc284f0ed538c1e8756a1a1475956191b4ae86
[ "Apache-2.0" ]
3
2020-11-20T03:00:56.000Z
2021-08-05T01:30:32.000Z
chapter4_特征提取/C4_1_y_2.py
shangminghao/python_sound_open
91bc284f0ed538c1e8756a1a1475956191b4ae86
[ "Apache-2.0" ]
66
2020-06-02T01:57:24.000Z
2022-03-16T07:54:59.000Z
data, fs = soundBase('C4_1_y.wav').audioread() data -= np.mean(data) data /= np.max(data) IS = 0.25 wlen = 200 inc = 80 N = len(data) time = [i / fs for i in range(N)] wnd = np.hamming(wlen) NIS = int((IS * fs - wlen) // inc + 1) thr1 = 1.1 thr2 = 1.3 voiceseg, vsl, SF, NF, Rum = vad_corr(data, wnd, inc, ...
26.342105
71
0.601399
from chapter2_基础.soundBase import * from chapter4_特征提取.end_detection import * data, fs = soundBase('C4_1_y.wav').audioread() data -= np.mean(data) data /= np.max(data) IS = 0.25 wlen = 200 inc = 80 N = len(data) time = [i / fs for i in range(N)] wnd = np.hamming(wlen) NIS = int((IS * fs - wlen) // inc + 1)...
18
0
0
0
0
0
0
28
46
86e323cb7f7044782cf0f45004b7d35357193803
2,022
py
Python
src/models/production_model_selection.py
mfalila/backorder_analytics_mlops
48d11bb49d50b49432a706f425b6ff66fee282dc
[ "MIT" ]
3
2022-01-16T13:03:29.000Z
2022-02-20T04:07:56.000Z
src/models/production_model_selection.py
mfalila/backorder_analytics_mlops
48d11bb49d50b49432a706f425b6ff66fee282dc
[ "MIT" ]
null
null
null
src/models/production_model_selection.py
mfalila/backorder_analytics_mlops
48d11bb49d50b49432a706f425b6ff66fee282dc
[ "MIT" ]
null
null
null
import argparse from tensorflow.python.saved_model import signature_constants key = signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY if __name__ == '__main__': args = argparse.ArgumentParser() args.add_argument("--config", default="params.yaml") parsed_args = args.parse_args() data...
34.271186
90
0.641939
import os import mlflow import argparse from pprint import pprint import src.data.load_data from mlflow.tracking import MlflowClient from tensorflow.python.saved_model import signature_constants key = signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY def log_production_model(config_path): confi...
0
0
0
0
0
1,496
0
7
140
5b6c64494de90271c124598c79749f9c3e927a18
370
py
Python
chapter6/6.1/Personal.py
yifengyou/crazy-python
28099bd5011de6981a7c5412783952cc7601ae0c
[ "Unlicense" ]
null
null
null
chapter6/6.1/Personal.py
yifengyou/crazy-python
28099bd5011de6981a7c5412783952cc7601ae0c
[ "Unlicense" ]
null
null
null
chapter6/6.1/Personal.py
yifengyou/crazy-python
28099bd5011de6981a7c5412783952cc7601ae0c
[ "Unlicense" ]
null
null
null
# coding:utf-8 # File Name Personal # Author : yifengyou # Date : 2021/07/18 p = Person() print(p.name, p.age) p.name = '' p.say("python") print(p.name,p.age)
18.5
49
0.578378
# coding:utf-8 # File Name: Personal # Author : yifengyou # Date : 2021/07/18 class Person: hair = 'black' def __init__(self, name='microease', age=24): self.name = name self.age = age def say(self, content): print(content) p = Person() print(p.name, p.age) p.na...
24
0
0
162
0
0
0
0
22
47e9ba085b3b42c97883bd839c3f0d513046826f
511
py
Python
profiles_api/urls.py
ravenours251/profiles-rest-api
43e15414f9c18089f03f12311c6910a853981b97
[ "MIT" ]
1
2021-03-08T14:33:31.000Z
2021-03-08T14:33:31.000Z
profiles_api/urls.py
ravenours251/profiles-rest-api
43e15414f9c18089f03f12311c6910a853981b97
[ "MIT" ]
null
null
null
profiles_api/urls.py
ravenours251/profiles-rest-api
43e15414f9c18089f03f12311c6910a853981b97
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from . import views router = DefaultRouter() router.register('hello-viewset',views.HelloViewSet, basename='hello_viewset') router.register('profiles',views.ProfileViewSet,basename='Profiles') router.register('feed',views.UserProfile...
34.066667
77
0.772994
from django.urls import path,include from rest_framework.routers import DefaultRouter from . import views router = DefaultRouter() router.register('hello-viewset',views.HelloViewSet, basename='hello_viewset') router.register('profiles',views.ProfileViewSet,basename='Profiles') router.register('feed',views.UserProfileF...
0
0
0
0
0
0
0
-1
0
19d6f4fa418e033137082f40a4f913e6f9d8b45c
133
py
Python
jarbas/dashboard/urls.py
vbarceloscs/serenata-de-amor
87e6c8932469478d177372ed7b6311cd66a71efe
[ "MIT" ]
3,001
2016-08-08T17:43:36.000Z
2018-02-09T19:13:35.000Z
jarbas/dashboard/urls.py
vbarceloscs/serenata-de-amor
87e6c8932469478d177372ed7b6311cd66a71efe
[ "MIT" ]
259
2016-08-08T09:53:23.000Z
2018-01-24T13:30:27.000Z
jarbas/dashboard/urls.py
vbarceloscs/serenata-de-amor
87e6c8932469478d177372ed7b6311cd66a71efe
[ "MIT" ]
674
2016-08-08T22:04:04.000Z
2018-02-05T15:30:15.000Z
from django.urls import path from jarbas.public_admin.sites import public_admin urlpatterns = [ path('', public_admin.urls) ]
14.777778
50
0.75188
from django.urls import path from jarbas.public_admin.sites import public_admin urlpatterns = [ path('', public_admin.urls) ]
0
0
0
0
0
0
0
0
0