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
1ee6223fd2e062c2275cc15eb431ef19acbf60cf
1,653
py
Python
app/api.py
dedenbangkit/crime-analysis
741ae2730800f0863216a7ab6a719cf6e53292cf
[ "Apache-2.0" ]
null
null
null
app/api.py
dedenbangkit/crime-analysis
741ae2730800f0863216a7ab6a719cf6e53292cf
[ "Apache-2.0" ]
null
null
null
app/api.py
dedenbangkit/crime-analysis
741ae2730800f0863216a7ab6a719cf6e53292cf
[ "Apache-2.0" ]
null
null
null
#1 DR Number 11 Victim Age 22 Crime Description #2 Date Reported 12 Victim Sex 23 Crime Code 1 #3 Date Occurred 13 Victim Descent 24 Crime Code 2 #4 Time Occurred 14 Premise Code 25 Crime Code 3 #5 Area ID 15 Premise Description 26 Crime Co...
42.384615
101
0.60859
#1 DR Number 11 Victim Age 22 Crime Description #2 Date Reported 12 Victim Sex 23 Crime Code 1 #3 Date Occurred 13 Victim Descent 24 Crime Code 2 #4 Time Occurred 14 Premise Code 25 Crime Code 3 #5 Area ID 15 Premise Description 26 Crime Co...
0
0
0
0
0
876
0
0
46
8ebc8a2918c9c21f2aa39aefa94285eb226094db
119
py
Python
spiderman/spiderman/models/__init__.py
AnthonyZero/search-engine-sprout
de2172de2a2a426341c6564f41cd7c36a67ebd7a
[ "Apache-2.0" ]
null
null
null
spiderman/spiderman/models/__init__.py
AnthonyZero/search-engine-sprout
de2172de2a2a426341c6564f41cd7c36a67ebd7a
[ "Apache-2.0" ]
null
null
null
spiderman/spiderman/models/__init__.py
AnthonyZero/search-engine-sprout
de2172de2a2a426341c6564f41cd7c36a67ebd7a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 ''' @author: AnthonyZero @file: __init__.py.py @time: 2019/5/9 22:35 @desc: '''
14.875
21
0.655462
#!/usr/bin/env python # encoding: utf-8 ''' @author: AnthonyZero @file: __init__.py.py @time: 2019/5/9 22:35 @desc: '''
0
0
0
0
0
0
0
0
0
5bee45eb5697ca2e166cce22afda116c0b5e4627
801
py
Python
untitled5.py
skotha903/vscode-remote-try-python
1e42fa8b34a037a52252423e162aa26c78d08333
[ "MIT" ]
null
null
null
untitled5.py
skotha903/vscode-remote-try-python
1e42fa8b34a037a52252423e162aa26c78d08333
[ "MIT" ]
null
null
null
untitled5.py
skotha903/vscode-remote-try-python
1e42fa8b34a037a52252423e162aa26c78d08333
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 16 10:46:14 2022 @author: Admin """ import csv import numpy import datetime from datetime import date import random import sys start = datetime.strftime("31-10-2019", "%d-%m-%Y") today=date.today() end=today.strftime("%d-%m-%Y") date_generated = [start + da...
25.03125
90
0.576779
# -*- coding: utf-8 -*- """ Created on Sun Jan 16 10:46:14 2022 @author: Admin """ import csv import numpy import datetime from datetime import date import random import sys start = datetime.strftime("31-10-2019", "%d-%m-%Y") today=date.today() end=today.strftime("%d-%m-%Y") date_generated = [start + da...
0
0
0
0
0
0
0
0
0
40bda0b85d0a861ff1f1859e9a80916a13683a38
3,208
py
Python
melodi/urls.py
AshutoshTomar/melodi
ead8dbbbf8ce9c302577a19fc11fa57dc1ac6123
[ "MIT" ]
null
null
null
melodi/urls.py
AshutoshTomar/melodi
ead8dbbbf8ce9c302577a19fc11fa57dc1ac6123
[ "MIT" ]
null
null
null
melodi/urls.py
AshutoshTomar/melodi
ead8dbbbf8ce9c302577a19fc11fa57dc1ac6123
[ "MIT" ]
1
2022-01-31T16:13:16.000Z
2022-01-31T16:13:16.000Z
"""melodi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
49.353846
84
0.681421
"""melodi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
0
0
0
0
0
0
0
60
66
d29bac0bdeff2c86a090dd37250fbfd8ed66e6cd
25,414
py
Python
sdk/python/pulumi_azure/kusto/attached_database_configuration.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/kusto/attached_database_configuration.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/kusto/attached_database_configuration.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import _utilities __all__ = ['AttachedDatabaseConfigurationArgs', 'AttachedDatabaseConfiguration']
53.167364
268
0.692374
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
0
21,598
0
3,330
0
0
0
41
136
b14a067e4355c8261c9e5aa7c7a6b4d91ec2e70f
1,250
py
Python
setup.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
null
null
null
setup.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
9
2021-06-08T21:45:01.000Z
2021-12-03T15:39:48.000Z
setup.py
fabric-testbed/OrchestratorClient
ea8904d8c9d3e63f471b2a51ae5b5b4e5e0ca763
[ "MIT" ]
null
null
null
# coding: utf-8 """ Fabric Orchestrator API This is Fabric Orchestrator API # noqa: E501 OpenAPI spec version: 1.0.0 Contact: kthare10@unc.edu Generated by: https://github.com/swagger-api/swagger-codegen.git """ from setuptools import setup, find_packages # noqa: H301 from fabric_cf import __V...
25.510204
68
0.7016
# coding: utf-8 """ Fabric Orchestrator API This is Fabric Orchestrator API # noqa: E501 OpenAPI spec version: 1.0.0 Contact: kthare10@unc.edu Generated by: https://github.com/swagger-api/swagger-codegen.git """ from setuptools import setup, find_packages # noqa: H301 from fabric_cf import __V...
0
0
0
0
0
0
0
0
0
046c048f8fb44a1f9bde6a3e556453ef1c2a5640
1,520
py
Python
laboratorium_6/zadanie_13.py
MiZych/wdi
da3f3128ed60a2fad22d85f2ef869068fcdd51ae
[ "MIT" ]
null
null
null
laboratorium_6/zadanie_13.py
MiZych/wdi
da3f3128ed60a2fad22d85f2ef869068fcdd51ae
[ "MIT" ]
null
null
null
laboratorium_6/zadanie_13.py
MiZych/wdi
da3f3128ed60a2fad22d85f2ef869068fcdd51ae
[ "MIT" ]
null
null
null
from math import sqrt while True: print("Program wyznaczajcy pierwiastki rwniania kwadratowego ax^2 + bx + c") first = int(input("Podaj wpoczynnik liczby a: ")) second = int(input("Podaj wpoczynnik liczby b: ")) third = int(input("Podaj wpoczynnik liczby c: ")) delta = (second ** 2) - (4*(first * t...
50.666667
121
0.542763
from math import sqrt while True: print("Program wyznaczający pierwiastki równiania kwadratowego ax^2 + bx + c") first = int(input("Podaj wpołczynnik liczby a: ")) second = int(input("Podaj wpołczynnik liczby b: ")) third = int(input("Podaj wpołczynnik liczby c: ")) delta = (second ** 2) - (4*(firs...
26
0
0
0
0
0
0
0
0
07f3d81ca1c654c970e9f57105ab74f7595e1878
60
py
Python
top2vec/__init__.py
MackieBlackburn/Top2Vec
f65ed58263cce4e4e1c436298dad55a467e5497d
[ "BSD-3-Clause" ]
null
null
null
top2vec/__init__.py
MackieBlackburn/Top2Vec
f65ed58263cce4e4e1c436298dad55a467e5497d
[ "BSD-3-Clause" ]
null
null
null
top2vec/__init__.py
MackieBlackburn/Top2Vec
f65ed58263cce4e4e1c436298dad55a467e5497d
[ "BSD-3-Clause" ]
null
null
null
__version__ = '1.0.16'
15
35
0.766667
from top2vec.Top2Vec import Top2Vec __version__ = '1.0.16'
0
0
0
0
0
0
0
14
22
47997c45d80b14c8ef9bfa8ae2a0f0a51ad41392
1,192
py
Python
problems/230.kth-smallest-element-in-a-bst.py
lucasheriques/leetcode-solutions
cd36b5df46a75a0cb17569faf9cf56186864f68a
[ "MIT" ]
null
null
null
problems/230.kth-smallest-element-in-a-bst.py
lucasheriques/leetcode-solutions
cd36b5df46a75a0cb17569faf9cf56186864f68a
[ "MIT" ]
null
null
null
problems/230.kth-smallest-element-in-a-bst.py
lucasheriques/leetcode-solutions
cd36b5df46a75a0cb17569faf9cf56186864f68a
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=230 lang=python3 # # [230] Kth Smallest Element in a BST # # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # Assuming the tree is balanced: # We first found the lowest value that i...
29.073171
81
0.591443
# # @lc app=leetcode id=230 lang=python3 # # [230] Kth Smallest Element in a BST # # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # Assuming the tree is balanced: # We first found the lowest value that i...
0
0
0
383
0
0
0
0
22
35a0b7cac88c27f0d68a632bb78d0f4affae8a9a
469
py
Python
PRU/systemsetup.py
snilloO/rev-seg-mia
72209e4b90cd77ff927aadd397c90ef9a0baf110
[ "MIT" ]
null
null
null
PRU/systemsetup.py
snilloO/rev-seg-mia
72209e4b90cd77ff927aadd397c90ef9a0baf110
[ "MIT" ]
null
null
null
PRU/systemsetup.py
snilloO/rev-seg-mia
72209e4b90cd77ff927aadd397c90ef9a0baf110
[ "MIT" ]
null
null
null
# Path to preprocssed BraTS training dataset (hdf5 file) BRATS_PATH = '../../../dataset/Mydataset/processed/data_3D_train.hdf5' # Path to preprocssed BraTS validation dataset (hdf5 file) BRATS_VAL_PATH = '../../../dataset/Mydataset/processed/data_3D.hdf5' #Define a location for checkpoints (with trailing slas...
36.076923
71
0.731343
# Path to preprocssed BraTS training dataset (hdf5 file) BRATS_PATH = '../../../dataset/Mydataset/processed/data_3D_train.hdf5' # Path to preprocssed BraTS validation dataset (hdf5 file) BRATS_VAL_PATH = '../../../dataset/Mydataset/processed/data_3D.hdf5' #Define a location for checkpoints (with trailing slas...
0
0
0
0
0
0
0
0
0
9e210a5f8f5c90fef6be309ebe3c068c3d17f144
85
py
Python
mppsolar/version.py
palmtech/mpp-solar
ccca6e13c38e802e833f920af2d899f3e2e682e1
[ "MIT" ]
132
2017-10-31T10:57:21.000Z
2022-03-26T02:54:53.000Z
mppsolar/version.py
palmtech/mpp-solar
ccca6e13c38e802e833f920af2d899f3e2e682e1
[ "MIT" ]
124
2018-08-31T21:58:47.000Z
2022-03-22T22:37:55.000Z
mppsolar/version.py
palmtech/mpp-solar
ccca6e13c38e802e833f920af2d899f3e2e682e1
[ "MIT" ]
84
2018-07-17T21:31:42.000Z
2022-02-20T12:20:54.000Z
__version__ = "0.9.03" __version_comment__ = "add results_topic to json_mqtt output"
28.333333
61
0.788235
__version__ = "0.9.03" __version_comment__ = "add results_topic to json_mqtt output"
0
0
0
0
0
0
0
0
0
34650552c80dbd607b0ad8d9b36582b395d557d1
1,752
py
Python
sw/chaac_logger/chaac_reset.py
alvarop/chaac
a86d3c71acf3f87584ba260cbfe207b3a09213ad
[ "MIT" ]
21
2019-01-27T03:15:27.000Z
2021-07-03T06:40:40.000Z
sw/chaac_logger/chaac_reset.py
alvarop/chaac
a86d3c71acf3f87584ba260cbfe207b3a09213ad
[ "MIT" ]
1
2021-07-08T04:46:42.000Z
2021-07-08T04:46:42.000Z
sw/chaac_logger/chaac_reset.py
alvarop/chaac
a86d3c71acf3f87584ba260cbfe207b3a09213ad
[ "MIT" ]
3
2019-02-19T19:57:30.000Z
2020-07-11T11:27:51.000Z
#!/usr/bin/env python """ Decode incoming packets from weather station and save to db """ import argparse import os import serial from serial_packet.serial_packet import decode_packet parser = argparse.ArgumentParser() parser.add_argument("--port", help="device to connect to") parser.add_argument("uid", help="uid to...
27.809524
91
0.708904
#!/usr/bin/env python """ Decode incoming packets from weather station and save to db """ import argparse import os import serial import sys import time from datetime import datetime from chaac import packets from serial_packet.serial_packet import decode_packet, encode_packet parser = argparse.ArgumentParser() pars...
0
0
0
0
0
822
0
6
111
49ba02a3a4fad6078a84b2c70eb2eb3f355b62df
2,611
py
Python
laundro/migrations/0005_create_gallery_model.py
celelstine/laundroxpress
224a02902457e5e8662b1fa16e90098f56bff6f1
[ "MIT" ]
null
null
null
laundro/migrations/0005_create_gallery_model.py
celelstine/laundroxpress
224a02902457e5e8662b1fa16e90098f56bff6f1
[ "MIT" ]
null
null
null
laundro/migrations/0005_create_gallery_model.py
celelstine/laundroxpress
224a02902457e5e8662b1fa16e90098f56bff6f1
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-11-12 10:32 import laundro.models
46.625
204
0.587897
# Generated by Django 2.2.16 on 2020-11-12 10:32 from django.db import migrations, models import django.db.models.deletion import laundro.models import laundro.vallidators import uuid class Migration(migrations.Migration): dependencies = [ ('laundro', '0004_create_order_model'), ] operations = ...
0
0
0
2,402
0
0
0
25
112
5daa36c1af8259c8f5ba5af5f1877e8522dca0d2
5,666
py
Python
py/984_blend_0313-1.py
KazukiOnodera/Microsoft-Malware-Prediction
103cbf7c4fc98ae584e1aa9d1c220bb79ddbbd80
[ "MIT" ]
24
2019-03-14T05:03:16.000Z
2021-07-16T05:14:05.000Z
py/984_blend_0313-1.py
xwc940512/Microsoft-Malware-Prediction
103cbf7c4fc98ae584e1aa9d1c220bb79ddbbd80
[ "MIT" ]
1
2019-05-20T10:06:33.000Z
2019-05-20T10:06:33.000Z
py/984_blend_0313-1.py
xwc940512/Microsoft-Malware-Prediction
103cbf7c4fc98ae584e1aa9d1c220bb79ddbbd80
[ "MIT" ]
8
2019-03-14T06:28:38.000Z
2019-05-21T14:58:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 13 08:20:21 2019 @author: Kazuki """ import numpy as np import pandas as pd import utils SUBMIT_FILE_PATH = '../output/0313-1.csv.gz' COMMENT = 'mean(ireko*7) + mean(tosh*6) + mean(onodera*2) + mean(nyanp*3) + mean(nejumi*2)' EXE_SUBMIT = True ...
40.471429
140
0.566008
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 13 08:20:21 2019 @author: Kazuki """ import numpy as np import pandas as pd import utils SUBMIT_FILE_PATH = '../output/0313-1.csv.gz' COMMENT = 'mean(ireko*7) + mean(tosh*6) + mean(onodera*2) + mean(nyanp*3) + mean(nejumi*2)' EXE_SUBMIT = True ...
0
0
0
0
0
262
0
0
23
3dace781f47b306ed066c0078f695d847efabee2
1,170
py
Python
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_0_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_0_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_0_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import numpy as np #Load file dt=pd.read_csv("sevn_output/output_0.csv") print(dt) #Give a look to the columns print(dt.columns) time_ranges=((0,1),(1,10),(10,50),(300,500)) plt.figure(figsize=(12,10)) for i,timer in enumerate(time_ranges): tlow,tup=timer ...
30
90
0.682051
import pandas as pd import matplotlib.pyplot as plt import numpy as np #Load file dt=pd.read_csv("sevn_output/output_0.csv") print(dt) #Give a look to the columns print(dt.columns) time_ranges=((0,1),(1,10),(10,50),(300,500)) plt.figure(figsize=(12,10)) for i,timer in enumerate(time_ranges): tlow,tup=timer ...
0
0
0
0
0
0
0
0
0
884de86078ac864d895b5af637d0b23f5832a323
308
py
Python
OpenCV/OpenCV_1.py
akasschrodinger/Autumn-of-Automation
2a8d10bcae4dda349c7f46ab4c42f8717051c82c
[ "MIT" ]
null
null
null
OpenCV/OpenCV_1.py
akasschrodinger/Autumn-of-Automation
2a8d10bcae4dda349c7f46ab4c42f8717051c82c
[ "MIT" ]
null
null
null
OpenCV/OpenCV_1.py
akasschrodinger/Autumn-of-Automation
2a8d10bcae4dda349c7f46ab4c42f8717051c82c
[ "MIT" ]
null
null
null
import cv2 import sys img=cv2.imread("image.jpg") if img is None: sys.exit("Could not find the image") cv2.imshow("Display image", img) k= cv2.waitKey(0) gray_img= cv2.cvtColor(img, cv2.COLOR_BGR2GREY) cv2.imwrite("new image.png", gray_img) cv2.imshow("new image grayscale", gray_img) cv2.waitKey(0)
16.210526
47
0.730519
import cv2 import sys img=cv2.imread("image.jpg") if img is None: sys.exit("Could not find the image") cv2.imshow("Display image", img) k= cv2.waitKey(0) gray_img= cv2.cvtColor(img, cv2.COLOR_BGR2GREY) cv2.imwrite("new image.png", gray_img) cv2.imshow("new image grayscale", gray_img) cv2.waitKey(0)
0
0
0
0
0
0
0
0
0
9d483342f493b0804e9ce81e2784fda4820f10aa
860
py
Python
market/migrations/0017_auto_20180521_2105.py
zhanhailiu/Market
640975c2d83edcdc9ab6ab1723e4efaaec00904d
[ "MIT" ]
null
null
null
market/migrations/0017_auto_20180521_2105.py
zhanhailiu/Market
640975c2d83edcdc9ab6ab1723e4efaaec00904d
[ "MIT" ]
null
null
null
market/migrations/0017_auto_20180521_2105.py
zhanhailiu/Market
640975c2d83edcdc9ab6ab1723e4efaaec00904d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-21 13:05
29.655172
144
0.604651
# Generated by Django 2.0.5 on 2018-05-21 13:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('market', '0016_instationmessage'), ] operations = [ migrations.AddField( model_name='userprofile', name='is_manager'...
0
0
0
746
0
0
0
19
46
3a18d2254c9c00f03274fa0ba637cfde1dc21d92
327
py
Python
app/clients/migrations/0015_remove_payment_balance.py
swelanauguste/nca_database_1
128ac73e5cf62ea03f65c375d5b1f01785bb6e0c
[ "MIT" ]
null
null
null
app/clients/migrations/0015_remove_payment_balance.py
swelanauguste/nca_database_1
128ac73e5cf62ea03f65c375d5b1f01785bb6e0c
[ "MIT" ]
null
null
null
app/clients/migrations/0015_remove_payment_balance.py
swelanauguste/nca_database_1
128ac73e5cf62ea03f65c375d5b1f01785bb6e0c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-09 11:46
18.166667
47
0.590214
# Generated by Django 3.2.7 on 2021-11-09 11:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('clients', '0014_payment_balance'), ] operations = [ migrations.RemoveField( model_name='payment', name='balance', ),...
0
0
0
221
0
0
0
11
46
b3149d6ed1fef68c22152195674f3e731dc0c5d9
71
py
Python
errors.py
QIAN-Yuqi/QGIS_CraterCounts_Plugin
224b641ab36a55937483337f3c0faf1a201a3139
[ "BSD-3-Clause" ]
null
null
null
errors.py
QIAN-Yuqi/QGIS_CraterCounts_Plugin
224b641ab36a55937483337f3c0faf1a201a3139
[ "BSD-3-Clause" ]
null
null
null
errors.py
QIAN-Yuqi/QGIS_CraterCounts_Plugin
224b641ab36a55937483337f3c0faf1a201a3139
[ "BSD-3-Clause" ]
1
2020-07-30T15:19:10.000Z
2020-07-30T15:19:10.000Z
# -*- coding: utf-8 -*-
11.833333
35
0.633803
# -*- coding: utf-8 -*- class CircleCraterError(Exception): pass
0
0
0
23
0
0
0
0
23
8246a579cfedb726b1b9250ba02b5f36df7f6c08
438
py
Python
ex3_vrf_conf.py
ramyacr97/RamyaPython
27ae8c88ec1459372d422fa5f97baa415898f875
[ "Apache-2.0" ]
null
null
null
ex3_vrf_conf.py
ramyacr97/RamyaPython
27ae8c88ec1459372d422fa5f97baa415898f875
[ "Apache-2.0" ]
4
2021-03-31T19:20:41.000Z
2021-12-13T20:25:28.000Z
ex3_vrf_conf.py
ramyacr97/RamyaPython
27ae8c88ec1459372d422fa5f97baa415898f875
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals, print_function from jinja2 import FileSystemLoader from jinja2.environment import Environment env = Environment() env.loader = FileSystemLoader('.') my_val = { "vrf_name": 'blue', "rd_number": '100:1', "ipv4_enabled": 1, "ipv6_enabled": 0, } template_file = 'vrf_...
27.375
55
0.746575
from __future__ import unicode_literals, print_function from jinja2 import FileSystemLoader, StrictUndefined from jinja2.environment import Environment env = Environment() env.loader = FileSystemLoader('.') my_val = { "vrf_name": 'blue', "rd_number": '100:1', "ipv4_enabled": 1, "ipv6_enabled": 0, } temp...
0
0
0
0
0
0
0
17
0
b4259299d88cf2e0d1668679563a46095927a396
299
py
Python
output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.unsigned_byte.schema_instance.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_2_xsd.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_2 import NistschemaSvIvAtomicUnsignedByteMinInclusive2 __all__ = [ "NistschemaSvIvAtomicUnsignedByteMinInclusive2", ]
49.833333
230
0.909699
from output.models.nist_data.atomic.unsigned_byte.schema_instance.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_2_xsd.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_2 import NistschemaSvIvAtomicUnsignedByteMinInclusive2 __all__ = [ "NistschemaSvIvAtomicUnsignedByteMinInclusive2", ]
0
0
0
0
0
0
0
0
0
306065401f54d2a1e303b7a691ac230729c2d712
15,708
py
Python
airbyte-integrations/connectors/source-github/source_github/streams.py
rclmenezes/airbyte
84ba3e79b3d223954fc2d997df02ff35c9d39840
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-github/source_github/streams.py
rclmenezes/airbyte
84ba3e79b3d223954fc2d997df02ff35c9d39840
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-github/source_github/streams.py
rclmenezes/airbyte
84ba3e79b3d223954fc2d997df02ff35c9d39840
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
36.445476
135
0.658009
# # MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
0
0
0
13,716
0
0
0
105
592
c193130d418e8d11d0dff08176581e2e8529293d
2,877
py
Python
Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/lib/ops/system/software.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
46
2017-05-15T11:15:08.000Z
2018-07-02T03:32:52.000Z
Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/lib/ops/system/software.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
null
null
null
Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/lib/ops/system/software.py
dendisuhubdy/grokmachine
120a21a25c2730ed356739231ec8b99fc0575c8b
[ "BSD-3-Clause" ]
24
2017-05-17T03:26:17.000Z
2018-07-09T07:00:50.000Z
import dsz import dsz.cmd import dsz.version import ops import ops.cmd import ops.db import ops.project import ops.files.dirs import ops.system.registry PACKAGES_TAG = 'OPS_PACKAGES_TAG' PROGRAM_FILES_32_TAG = 'OPS_32_BIT_PROGRAM_FILES_TAG' PROGRAM_FILES_64_TAG = 'OPS_64_BIT_PROGRAM_FILES_TAG' SOFTWARE_32...
56.411765
195
0.767119
import dsz import dsz.cmd import dsz.version import dsz.script import ops import ops.cmd import ops.db import ops.project import ops.files.dirs import ops.system.registry import ops.system.environment import ntpath from datetime import timedelta, datetime PACKAGES_TAG = 'OPS_PACKAGES_TAG' PROGRAM_FILES_...
0
0
0
0
0
2,197
0
15
166
5104d20fbff4c3e0f4a59b7aa670a1292ffd002e
1,019
py
Python
test/diagnosis.py
pazara18/swe-project-group30
6283ba5efa21e490ff4b21315762e402fc21f4a9
[ "Apache-2.0" ]
null
null
null
test/diagnosis.py
pazara18/swe-project-group30
6283ba5efa21e490ff4b21315762e402fc21f4a9
[ "Apache-2.0" ]
null
null
null
test/diagnosis.py
pazara18/swe-project-group30
6283ba5efa21e490ff4b21315762e402fc21f4a9
[ "Apache-2.0" ]
null
null
null
import pyautogui as pg from time import sleep sleep(3) test_type = 0 #0 valid patient id with data,1 valid patient id without data, 2 invalid patient id, 3 non-existent patient id, 4 invalid type 2 missing digits in patient id if not test_type: national_id = "11111111111" press_key('tab',8) pg.write(nat...
24.261905
171
0.668302
import pyautogui as pg from time import sleep def press_key(key, n=1): for _ in range(n): pg.press(key) sleep(3) test_type = 0 #0 valid patient id with data,1 valid patient id without data, 2 invalid patient id, 3 non-existent patient id, 4 invalid type 2 missing digits in patient id if not test_type: ...
0
0
0
0
0
48
0
0
23
fdc25edaddab7cfa858c0cb2378d9912ff812db3
253
py
Python
nested_q_4.py
Samridhi-88/nested_list
1087cf46db5520fd569ea67caef77c0af77a95b5
[ "MIT" ]
null
null
null
nested_q_4.py
Samridhi-88/nested_list
1087cf46db5520fd569ea67caef77c0af77a95b5
[ "MIT" ]
null
null
null
nested_q_4.py
Samridhi-88/nested_list
1087cf46db5520fd569ea67caef77c0af77a95b5
[ "MIT" ]
null
null
null
number=30 n=[10,11,12,13,14,17,18,19] l=len(n) i=0 m=[] while i<l: j=0 a=[] while j<l: if n[i]+n[j]==number and n[i]<n[j]: a.append(n[i]) a.append(n[j]) m.append(a) j=j+1 i=i+1 print(m)
15.8125
43
0.422925
number=30 n=[10,11,12,13,14,17,18,19] l=len(n) i=0 m=[] while i<l: j=0 a=[] while j<l: if n[i]+n[j]==number and n[i]<n[j]: a.append(n[i]) a.append(n[j]) m.append(a) j=j+1 i=i+1 print(m)
0
0
0
0
0
0
0
0
0
44f41867d1f323516f4c2838afa79515cea3e404
512
py
Python
ies_manifold/__init__.py
yuchaz/independent_coordinate_search
bf0ecc129ced723960bd085ca94958df8740898f
[ "BSD-2-Clause" ]
null
null
null
ies_manifold/__init__.py
yuchaz/independent_coordinate_search
bf0ecc129ced723960bd085ca94958df8740898f
[ "BSD-2-Clause" ]
null
null
null
ies_manifold/__init__.py
yuchaz/independent_coordinate_search
bf0ecc129ced723960bd085ca94958df8740898f
[ "BSD-2-Clause" ]
null
null
null
# Author: Yu-Chia Chen <yuchaz@uw.edu> # LICENSE: Simplified BSD
42.666667
69
0.820313
# Author: Yu-Chia Chen <yuchaz@uw.edu> # LICENSE: Simplified BSD from ._configure import setup_color_palettes, tqdm, color_hex from .coord_search import projected_volume, greedy_coordinate_search from .regu_path import zeta_search from .utils import compute_radius_embeddings, compute_tangent_plane from .plotter import...
0
0
0
0
0
0
0
292
155
246ad046b9d65de1fd9384d9dbcbb55310f30a78
2,280
py
Python
nose2/config.py
deeplow/nose2
eb0394160e24afe760e984d93dbece8351dbae7a
[ "BSD-2-Clause" ]
637
2015-01-12T02:02:53.000Z
2022-03-30T19:47:48.000Z
nose2/config.py
deeplow/nose2
eb0394160e24afe760e984d93dbece8351dbae7a
[ "BSD-2-Clause" ]
276
2015-01-02T19:14:06.000Z
2022-03-18T04:03:08.000Z
nose2/config.py
deeplow/nose2
eb0394160e24afe760e984d93dbece8351dbae7a
[ "BSD-2-Clause" ]
127
2015-01-08T12:02:10.000Z
2022-01-10T20:52:29.000Z
TRUE_VALS = set(["1", "t", "true", "on", "yes", "y"]) __unittest = True
27.804878
77
0.560526
TRUE_VALS = set(["1", "t", "true", "on", "yes", "y"]) __unittest = True class Config(object): """Configuration for a plugin or other entities. Encapsulates configuration for a single plugin or other element. Corresponds to a :class:`ConfigParser.Section` but provides an extended interface for extrac...
0
0
0
2,184
0
0
0
0
23
de875490f837d59f9ce351ddd6aa48d63da54459
702
py
Python
2020/9/1.py
hectcastro/aoc
6b5a6a103eaa1cb89ef8c799ae9411750448968b
[ "Apache-2.0" ]
null
null
null
2020/9/1.py
hectcastro/aoc
6b5a6a103eaa1cb89ef8c799ae9411750448968b
[ "Apache-2.0" ]
18
2021-05-12T05:30:23.000Z
2022-03-16T12:05:51.000Z
2020/9/1.py
hectcastro/aoc
6b5a6a103eaa1cb89ef8c799ae9411750448968b
[ "Apache-2.0" ]
null
null
null
import sys PREAMBLE_SIZE = 25 if __name__ == "__main__": print(handler(sys.stdin))
23.4
64
0.639601
import sys from typing import List, TextIO PREAMBLE_SIZE = 25 def is_valid(number: int, preamble: List[int]) -> bool: for i in preamble: for j in preamble: if i + j == number: return True return False def handler(raw_port_output: TextIO) -> int: port_output: List[int...
0
0
0
0
0
532
0
10
68
bb0c9a42bebd1ec65c008fad5558c35c98129975
1,005
py
Python
quantum_wavepacket/quantum_wavepacket/tests/test_wavepacket.py
dllahr/projects
0d40e9a974d82aeca940542044bb32eb24192e66
[ "MIT" ]
null
null
null
quantum_wavepacket/quantum_wavepacket/tests/test_wavepacket.py
dllahr/projects
0d40e9a974d82aeca940542044bb32eb24192e66
[ "MIT" ]
null
null
null
quantum_wavepacket/quantum_wavepacket/tests/test_wavepacket.py
dllahr/projects
0d40e9a974d82aeca940542044bb32eb24192e66
[ "MIT" ]
1
2019-12-21T20:36:23.000Z
2019-12-21T20:36:23.000Z
import logging import unittest import quantum_wavepacket logger = logging.getLogger(quantum_wavepacket.LOGGER_NAME) if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG, format=quantum_wavepacket.LOG_FORMAT) unittest.main()
34.655172
82
0.717413
import logging import unittest import quantum_wavepacket import numpy import quantum_wavepacket.wavepacket as wp logger = logging.getLogger(quantum_wavepacket.LOGGER_NAME) class TestWavepacket(unittest.TestCase): def test_calc_norm_coef(self): my_wp = wp.Wavepacket(state_coefs=numpy.array([1.0, 2.0])) ...
0
0
0
677
0
0
0
12
67
9140de60cc5b76b29e331c551600ccc36db6f492
1,067
py
Python
recimies_site/social/migrations/0006_alter_ingredient_unit.py
steeznson/recimies
7318eeffeb82b5918145787bebeaaacd2f44adce
[ "MIT" ]
null
null
null
recimies_site/social/migrations/0006_alter_ingredient_unit.py
steeznson/recimies
7318eeffeb82b5918145787bebeaaacd2f44adce
[ "MIT" ]
10
2020-02-25T20:30:33.000Z
2021-12-16T20:09:51.000Z
recimies_site/social/migrations/0006_alter_ingredient_unit.py
steeznson/recimies
7318eeffeb82b5918145787bebeaaacd2f44adce
[ "MIT" ]
1
2020-10-24T17:30:32.000Z
2020-10-24T17:30:32.000Z
# Generated by Django 3.2.7 on 2021-10-23 14:07
56.157895
730
0.545455
# Generated by Django 3.2.7 on 2021-10-23 14:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('social', '0005_auto_20211023_1338'), ] operations = [ migrations.AlterField( model_name='ingredient', name='unit', ...
0
0
0
953
0
0
0
19
46
a51204565a4721b79a3fdc875dc3d8315b28f309
1,118
py
Python
python_version/autoconf.py
richardpct/macos-packages
40af37a8a332ec4768c455fec76f2fe5057fa66f
[ "MIT" ]
null
null
null
python_version/autoconf.py
richardpct/macos-packages
40af37a8a332ec4768c455fec76f2fe5057fa66f
[ "MIT" ]
null
null
null
python_version/autoconf.py
richardpct/macos-packages
40af37a8a332ec4768c455fec76f2fe5057fa66f
[ "MIT" ]
null
null
null
#!/usr/bin/python # Package: autoconf # System: MacOS High Sierra # Author: richard pct """autoconf""" import fileinput, re from subprocess import check_call, CalledProcessError pkg_version = "2.69" pkg_name = "autoconf-" + pkg_version pkg_src = pkg_name + ".tar.gz" pkg_url = "http://ftp.gnu.org/gnu/autoconf" hash_...
24.304348
79
0.65653
#!/usr/bin/python # Package: autoconf # System: MacOS High Sierra # Author: richard pct """autoconf""" import fileinput, re from subprocess import check_call, CalledProcessError pkg_version = "2.69" pkg_name = "autoconf-" + pkg_version pkg_src = pkg_name + ".tar.gz" pkg_url = "http://ftp.gnu.org/gnu/autoconf" hash_...
0
0
0
0
0
0
0
0
0
de9c35900b82f3211c9b2fa183d0252c2109c5b0
243
py
Python
test/test_main.py
smrrazavian/APIs
15da51d304eeaac01e1934c28cdc28176e34accb
[ "Unlicense" ]
null
null
null
test/test_main.py
smrrazavian/APIs
15da51d304eeaac01e1934c28cdc28176e34accb
[ "Unlicense" ]
1
2021-10-30T09:18:54.000Z
2021-11-01T09:21:51.000Z
test/test_main.py
smrrazavian/APIs
15da51d304eeaac01e1934c28cdc28176e34accb
[ "Unlicense" ]
null
null
null
from fastapi.testclient import TestClient from app.main import app client = TestClient(app)
20.25
41
0.744856
from fastapi.testclient import TestClient from app.main import app from app.models import Numbers import pytest client = TestClient(app) def test_read_main(): response = client.get("/add/{a}/{b}") assert response.status_code == 200
0
0
0
0
0
81
0
1
67
5dc7ee426f4ff047e254702f4723850dbe7622b9
8,395
py
Python
model/output.py
liuxiaokaiA/truck_scheduling
c883528913aaa7b802fe7d81974efac0fd3f43e8
[ "MIT" ]
null
null
null
model/output.py
liuxiaokaiA/truck_scheduling
c883528913aaa7b802fe7d81974efac0fd3f43e8
[ "MIT" ]
null
null
null
model/output.py
liuxiaokaiA/truck_scheduling
c883528913aaa7b802fe7d81974efac0fd3f43e8
[ "MIT" ]
null
null
null
# coding: utf-8 # import sys reload(sys) sys.setdefaultencoding('utf8')
45.625
120
0.538177
# coding: utf-8 # 模块状态信息的输出 from global_data import Bases, Trucks, Orders, Destinations import numpy as np from model.base_model.base import Base from model.base_model.base_.type import Truck_status from model.base_model.order import Order from model.base_model.truck import Truck from model.base_model.base_.data_recor...
819
0
0
0
0
7,595
0
178
270
bea590167cacfdbb2956ce2941cd41980fbeba39
4,469
py
Python
cogs/pubsub.py
perplexistential/twitch-creamery
5d8a636600b480644696d74375cc12d2b5c9ea6d
[ "MIT" ]
null
null
null
cogs/pubsub.py
perplexistential/twitch-creamery
5d8a636600b480644696d74375cc12d2b5c9ea6d
[ "MIT" ]
null
null
null
cogs/pubsub.py
perplexistential/twitch-creamery
5d8a636600b480644696d74375cc12d2b5c9ea6d
[ "MIT" ]
1
2022-02-17T23:10:31.000Z
2022-02-17T23:10:31.000Z
# Copyright Alex Morais (thatsamorais@gmail.com) for perplexistential """The PubSub cog example.""" from twitchio.ext import commands def prepare(bot: commands.Bot, data={}): """Load our cog with this module.""" bot.add_cog(Cog(bot, data=data))
39.901786
88
0.545536
# Copyright Alex Morais (thatsamorais@gmail.com) for perplexistential """The PubSub cog example.""" import os from twitchio.ext import commands, pubsub class Cog(commands.Cog): """Cog.""" def __init__(self, bot, data={}): """init.""" self.bot = bot self.data = data self.bot....
0
3,964
0
206
0
0
0
-4
46
40eb7614cc9d161dbe52c940644e7e858d8fef6f
7,517
py
Python
cinder/volume/drivers/dell/dell_storagecenter_iscsi.py
alexpilotti/cinder-ci-fixes
c0ed2ab8cc6b1197e426cd6c58c3b582624d1cfd
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell/dell_storagecenter_iscsi.py
alexpilotti/cinder-ci-fixes
c0ed2ab8cc6b1197e426cd6c58c3b582624d1cfd
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell/dell_storagecenter_iscsi.py
alexpilotti/cinder-ci-fixes
c0ed2ab8cc6b1197e426cd6c58c3b582624d1cfd
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Dell Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
46.98125
79
0.486896
# Copyright 2015 Dell Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
0
0
0
6,575
0
0
0
85
134
80588f768bcc6365c07658cb921bb4f045a6a19f
987
py
Python
hackathon/LLF/neuron_factor_tree/nfs_cnn/data_e.py
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
1
2021-12-27T19:14:03.000Z
2021-12-27T19:14:03.000Z
hackathon/LLF/neuron_factor_tree/nfs_cnn/data_e.py
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
null
null
null
hackathon/LLF/neuron_factor_tree/nfs_cnn/data_e.py
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
null
null
null
from data import DataLoader import os TESTDIR = "C:/Users/Administrator/Desktop/neuron_factor_tree_test/test_1" eval_path = TESTDIR + "/data/morpho_eval/L4_BC/C060998B-I1.CNG.nfss" class_map = {"L4_BC": 1, "L4_PC": 2, "L4_SC": 3, "L5_MC": 4, "L5_PC": 5, "L6_PC": 6, "L23_BC": 7, "L23_MC"...
44.863636
121
0.637285
from data import DataLoader import os TESTDIR = "C:/Users/Administrator/Desktop/neuron_factor_tree_test/test_1" eval_path = TESTDIR + "/data/morpho_eval/L4_BC/C060998B-I1.CNG.nfss" class_map = {"L4_BC": 1, "L4_PC": 2, "L4_SC": 3, "L5_MC": 4, "L5_PC": 5, "L6_PC": 6, "L23_BC": 7, "L23_MC"...
0
0
0
0
0
0
0
0
0
3fb53847b9b3b2df88c0cb755e9f5cdbe84455a8
1,076
py
Python
test/coverage.py
uael/libadt
0607c5ce31609a1513e0b59d256637f5db0c419b
[ "Unlicense" ]
191
2015-01-14T17:03:19.000Z
2019-11-08T15:51:12.000Z
test/coverage.py
uael/libadt
0607c5ce31609a1513e0b59d256637f5db0c419b
[ "Unlicense" ]
21
2015-01-14T17:00:26.000Z
2019-02-06T18:52:25.000Z
test/coverage.py
uael/libadt
0607c5ce31609a1513e0b59d256637f5db0c419b
[ "Unlicense" ]
27
2015-01-06T21:40:01.000Z
2019-09-10T13:51:12.000Z
import re def parse_gcov( gcovfile ): """Parses a .gcov file and returns a report array of line coverage """ report = [] ignore_block = False with open( gcovfile ) as gcov: for line in gcov: tokens = line.split(':') if len(tokens) < 2: continue count = tokens[0].strip() ...
24.454545
68
0.533457
import re def parse_gcov( gcovfile ): """Parses a .gcov file and returns a report array of line coverage """ report = [] ignore_block = False with open( gcovfile ) as gcov: for line in gcov: tokens = line.split(':') if len(tokens) < 2: continue count = tokens[0].strip() ...
0
0
0
0
0
0
0
0
0
70130ecb6a5f71a43a815b9b2668f29ae5e8f2bf
84,033
py
Python
epyseg/deeplearning/deepl.py
jo-mueller/EPySeg
4b5c875eb91ba5ce6954efcad29921612d759682
[ "BSD-3-Clause" ]
14
2020-07-06T07:41:18.000Z
2022-02-09T11:01:46.000Z
epyseg/deeplearning/deepl.py
jo-mueller/EPySeg
4b5c875eb91ba5ce6954efcad29921612d759682
[ "BSD-3-Clause" ]
4
2020-07-07T18:58:41.000Z
2022-02-08T13:52:49.000Z
epyseg/deeplearning/deepl.py
jo-mueller/EPySeg
4b5c875eb91ba5ce6954efcad29921612d759682
[ "BSD-3-Clause" ]
3
2020-07-06T13:44:17.000Z
2022-03-14T10:45:36.000Z
import os os.environ['SM_FRAMEWORK'] = 'tf.keras' # set env var for changing the segmentation_model framework # sm.set_framework('tf.keras') # alternative fix = changing framework on the fly # logging from epyseg.tools.logger import TA_logger logger = TA_logger() if __name__ == '__main__': deepTA = EZDeepLearni...
46.045479
228
0.560565
import os from tensorflow.python.keras.callbacks import ReduceLROnPlateau from epyseg.postprocess.filtermask import simpleFilter from epyseg.postprocess.refine_v2 import RefineMaskUsingSeeds os.environ['SM_FRAMEWORK'] = 'tf.keras' # set env var for changing the segmentation_model framework import traceback import m...
2
2,963
0
77,361
0
0
0
333
443
e492d1e7a9fd26474f08f5db86d5282833afb4ec
2,677
py
Python
zhima/send_email.py
ericgibert/zhima
f62015d98a13b0ead720fc816812db2e33cb7fa9
[ "MIT" ]
null
null
null
zhima/send_email.py
ericgibert/zhima
f62015d98a13b0ead720fc816812db2e33cb7fa9
[ "MIT" ]
null
null
null
zhima/send_email.py
ericgibert/zhima
f62015d98a13b0ead720fc816812db2e33cb7fa9
[ "MIT" ]
null
null
null
""" Wrapper to send email """ # Import smtplib for the actual sending function import smtplib # Here are the email package modules we'll need from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def send_email(subject, from_, to_, ...
31.494118
82
0.573777
""" Wrapper to send email """ # Import smtplib for the actual sending function import smtplib # Here are the email package modules we'll need from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def send_email(subject, from_, to_, ...
51
0
0
0
0
0
0
0
0
8a06813fc62dccdaa678be22bdd9fcc6c841915d
3,946
py
Python
keepaAPI/plotting.py
alexzhangwh/keepaAPI
1c3d5ba07b07d4abf0b5b2c751ee05af2d9a1225
[ "Apache-2.0" ]
null
null
null
keepaAPI/plotting.py
alexzhangwh/keepaAPI
1c3d5ba07b07d4abf0b5b2c751ee05af2d9a1225
[ "Apache-2.0" ]
null
null
null
keepaAPI/plotting.py
alexzhangwh/keepaAPI
1c3d5ba07b07d4abf0b5b2c751ee05af2d9a1225
[ "Apache-2.0" ]
null
null
null
""" Plotting module product data returned from keepa interface module """ import warnings import numpy as np from keepaAPI import keepaTime, ParseCSV try: import matplotlib.pyplot as plt plt_loaded = True except BaseException as e: plt_loaded = False warnings.warn('keepaAPI plotting unavailable: %s' % ...
30.353846
79
0.592499
""" Plotting module product data returned from keepa interface module """ import datetime import warnings import numpy as np from keepaAPI import keepaTime, ParseCSV try: import matplotlib.pyplot as plt plt_loaded = True except BaseException as e: plt_loaded = False warnings.warn('keepaAPI plotting una...
0
0
0
0
0
0
0
-6
22
a8327a79a955c7a79cc8e1b1777516a3f8462800
41,932
py
Python
flask_user/views.py
brunoresende1991/mult
e62e949a021db92ca74a9023423724ab26b583d7
[ "BSD-2-Clause" ]
5
2019-07-09T13:48:18.000Z
2021-05-04T19:19:25.000Z
flask_user/views.py
brunoresende1991/mult
e62e949a021db92ca74a9023423724ab26b583d7
[ "BSD-2-Clause" ]
null
null
null
flask_user/views.py
brunoresende1991/mult
e62e949a021db92ca74a9023423724ab26b583d7
[ "BSD-2-Clause" ]
2
2020-07-10T15:06:05.000Z
2020-09-08T15:52:51.000Z
# -*- coding: utf-8 -*- """ This file contains view functions for Flask-User forms. :copyright: (c) 2013 by Ling Thio :author: Ling Thio (ling.thio@gmail.com) :license: Simplified BSD License, see LICENSE.txt for more details.""" from datetime import datetime from flask import current_app, flash, redirect...
35.445478
115
0.640895
# -*- coding: utf-8 -*- """ This file contains view functions for Flask-User forms. :copyright: (c) 2013 by Ling Thio :author: Ling Thio (ling.thio@gmail.com) :license: Simplified BSD License, see LICENSE.txt for more details.""" from datetime import datetime from flask import current_app, flash, redirect...
46
18,650
0
0
0
4,098
0
89
529
132f3cdcb9a78626e7e5b0d774416e2514d96e9a
481
py
Python
tests/snippets/comprehensions.py
ZapAnton/RustPython
61e752e2b014239865c74c6997429a80433ee38a
[ "MIT" ]
null
null
null
tests/snippets/comprehensions.py
ZapAnton/RustPython
61e752e2b014239865c74c6997429a80433ee38a
[ "MIT" ]
null
null
null
tests/snippets/comprehensions.py
ZapAnton/RustPython
61e752e2b014239865c74c6997429a80433ee38a
[ "MIT" ]
null
null
null
x = [1, 2, 3] y = [a*a+1 for a in x] assert y == [2, 5, 10] z = [(b, c) for b in x for c in y] # print(z) assert z == [ (1, 2), (1, 5), (1, 10), (2, 2), (2, 5), (2, 10), (3, 2), (3, 5), (3, 10)] v = {b * 2 for b in x} # TODO: how to check set equality? # assert v == {2, 6, 4} u = {str(b): b-2 for b in ...
16.033333
34
0.428274
x = [1, 2, 3] y = [a*a+1 for a in x] assert y == [2, 5, 10] z = [(b, c) for b in x for c in y] # print(z) assert z == [ (1, 2), (1, 5), (1, 10), (2, 2), (2, 5), (2, 10), (3, 2), (3, 5), (3, 10)] v = {b * 2 for b in x} # TODO: how to check set equality? # assert v == {2, 6, 4} u = {str(b): b-2 for b in ...
0
0
0
0
0
0
0
0
0
11bec05caecf5fb0b8acb2a5f46985f326aa49fc
941
py
Python
Heap/11_06_k_largest_element.py
misscindy/Interview
eab43da97e61fcc3d0278408f8f4ea709eed14e6
[ "CC0-1.0" ]
null
null
null
Heap/11_06_k_largest_element.py
misscindy/Interview
eab43da97e61fcc3d0278408f8f4ea709eed14e6
[ "CC0-1.0" ]
1
2015-04-23T20:05:24.000Z
2015-04-23T20:07:45.000Z
Heap/11_06_k_largest_element.py
misscindy/Interview
eab43da97e61fcc3d0278408f8f4ea709eed14e6
[ "CC0-1.0" ]
null
null
null
import random if __name__ == "__main__": test_cases = [ ([3, 2, 1, 3], sorted([3, 2, 1, 3])), # ([3, 2, 5, 4, 3, -2, 1], sorted([3, 2, 5, 4, 3, -2, 1])), # ([1, -2, -5], sorted([1, -2, -5])), # ([1], sorted([1])), # ([1], sorted([1])), ] for test_case, exp i...
21.883721
67
0.444208
import random def partition(a, lo, high): if lo == high: return lo pivot_ndx = random.randint(lo, high) print lo, high, pivot_ndx a[lo], a[pivot_ndx] = a[pivot_ndx], a[lo] pivot = a[lo] i, j = lo + 1, high while i < j: while i < high and a[i] < pivot: i += 1 ...
0
0
0
0
0
450
0
0
23
3a076ea7dce954701aeba8c35e7845b47e64b4ab
1,005
py
Python
pygenesys/commodity/demand.py
arfc/pygenesys
2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4
[ "BSD-3-Clause" ]
1
2021-05-27T18:28:48.000Z
2021-05-27T18:28:48.000Z
pygenesys/commodity/demand.py
arfc/pygenesys
2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4
[ "BSD-3-Clause" ]
34
2021-05-31T18:52:46.000Z
2022-03-07T17:57:13.000Z
pygenesys/commodity/demand.py
arfc/pygenesys
2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4
[ "BSD-3-Clause" ]
2
2021-05-27T18:30:46.000Z
2021-06-01T14:09:48.000Z
""" This file contains pre-defined demand commodities. """ from pygenesys.commodity.commodity import DemandCommodity ELC_DEMAND = DemandCommodity(comm_name='ELC_DEMAND', comm_label='d', units='GWh', description='End-use electricit...
33.5
72
0.578109
""" This file contains pre-defined demand commodities. """ from pygenesys.commodity.commodity import DemandCommodity ELC_DEMAND = DemandCommodity(comm_name='ELC_DEMAND', comm_label='d', units='GWh', description='End-use electricit...
0
0
0
0
0
0
0
0
0
16d305c44e869c162ab0766a22ed605ca4ee02e6
2,272
py
Python
tools/model_surgery/paired_weights_to_arbitrary_length.py
myfavouritekk/TPN
b346774cddeb0b9e0c1d8ed1f91a69f00436456d
[ "MIT" ]
74
2017-04-07T04:06:52.000Z
2022-01-30T01:40:10.000Z
tools/model_surgery/paired_weights_to_arbitrary_length.py
wulongyuan/TPN
b346774cddeb0b9e0c1d8ed1f91a69f00436456d
[ "MIT" ]
8
2017-07-19T06:54:02.000Z
2018-08-28T07:38:52.000Z
tools/model_surgery/paired_weights_to_arbitrary_length.py
wulongyuan/TPN
b346774cddeb0b9e0c1d8ed1f91a69f00436456d
[ "MIT" ]
28
2017-04-07T03:50:52.000Z
2019-02-28T04:18:15.000Z
#!/usr/bin/env python import sys import os.path as osp this_dir = osp.dirname(__file__) sys.path.insert(0, osp.join(this_dir, '../../external/caffe-mpi/build/install/python/')) import caffe import argparse import numpy as np if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('de...
34.953846
92
0.685739
#!/usr/bin/env python import sys import os.path as osp this_dir = osp.dirname(__file__) sys.path.insert(0, osp.join(this_dir, '../../external/caffe-mpi/build/install/python/')) import caffe import argparse import cPickle import numpy as np if __name__ == '__main__': parser = argparse.ArgumentParser() parser.a...
0
0
0
0
0
0
0
-7
22
6e61dde0bc7fe9016cd616ba4bf53969c384dd51
6,792
py
Python
tests/test_openexchangerates.py
carstickers/django-prices-openexchangerates
c8c73941d696ca2f9ee33a89e99adb151dc8fc66
[ "BSD-3-Clause" ]
34
2015-01-28T20:56:58.000Z
2021-09-08T18:14:49.000Z
tests/test_openexchangerates.py
carstickers/django-prices-openexchangerates
c8c73941d696ca2f9ee33a89e99adb151dc8fc66
[ "BSD-3-Clause" ]
33
2015-01-27T10:29:39.000Z
2019-12-06T15:45:05.000Z
tests/test_openexchangerates.py
carstickers/django-prices-openexchangerates
c8c73941d696ca2f9ee33a89e99adb151dc8fc66
[ "BSD-3-Clause" ]
15
2015-01-27T10:27:23.000Z
2021-12-21T16:10:21.000Z
# coding: utf-8 from decimal import Decimal # import mock RATES = { 'EUR': Decimal(2), 'GBP': Decimal(4), 'BTC': Decimal(10)}
34.653061
79
0.724823
# coding: utf-8 import functools from decimal import Decimal # import mock import pytest from prices import ( Money, TaxedMoney, MoneyRange, TaxedMoneyRange, percentage_discount) from django_prices_openexchangerates import exchange_currency from django_prices_openexchangerates.models import ConversionRate, get_rat...
0
317
0
30
0
5,482
0
210
592
63ee2ed06ff034a7abc65334ba103046ca1427e1
1,208
py
Python
Section_3/Exercise_16.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_3/Exercise_16.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_3/Exercise_16.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
1
2021-11-21T09:38:33.000Z
2021-11-21T09:38:33.000Z
""" Mamy zdefiniowan n-elementow tablic liczb cakowitych. Prosz napisa funkcj zwracajc warto typu bool oznaczajc, czy w tablicy istnieje dokadnie jeden element najmniejszy i dokadnie jeden element najwikszy (liczba elementw najmniejszych oznacza liczb takich elementw o tej samej wartoci). """ from random import randint...
30.2
105
0.60596
""" Mamy zdefiniowaną n-elementową tablicę liczb całkowitych. Proszę napisać funkcję zwracającą wartość typu bool oznaczającą, czy w tablicy istnieje dokładnie jeden element najmniejszy i dokładnie jeden element największy (liczba elementów najmniejszych oznacza liczbę takich elementów o tej samej wartości). """ from r...
40
0
0
0
0
662
0
0
23
6754ba3020b776e36d418c2620eada0d3804e047
2,537
py
Python
pytorch_widedeep/models/tabnet/tab_net_utils.py
5uperpalo/pytorch-widedeep
c95c327671a21780f33f3fefdeba8e2c96aa426b
[ "MIT" ]
1
2021-08-23T15:16:13.000Z
2021-08-23T15:16:13.000Z
pytorch_widedeep/models/tabnet/tab_net_utils.py
sxjscience/pytorch-widedeep
0c79deb5de7b5005613fd926dee726f3227f5375
[ "MIT" ]
null
null
null
pytorch_widedeep/models/tabnet/tab_net_utils.py
sxjscience/pytorch-widedeep
0c79deb5de7b5005613fd926dee726f3227f5375
[ "MIT" ]
null
null
null
import numpy as np from scipy.sparse import csc_matrix from pytorch_widedeep.wdtypes import WideDeep def create_explain_matrix(model: WideDeep) -> csc_matrix: """ Returns a sparse matrix used to compute the feature importances after training Parameters ---------- model: WideDeep obje...
32.525641
103
0.597556
import numpy as np from scipy.sparse import csc_matrix from pytorch_widedeep.wdtypes import WideDeep def create_explain_matrix(model: WideDeep) -> csc_matrix: """ Returns a sparse matrix used to compute the feature importances after training Parameters ---------- model: WideDeep obje...
0
0
0
0
0
291
0
0
23
463020468c19069c5b033fc09f0f255228079c8f
849
py
Python
swallow/processes/_plot_output.py
cedadev/swallow
b47c9ffcf5040ce4eadf6072d24db71efe3532a4
[ "BSD-3-Clause" ]
null
null
null
swallow/processes/_plot_output.py
cedadev/swallow
b47c9ffcf5040ce4eadf6072d24db71efe3532a4
[ "BSD-3-Clause" ]
30
2019-07-05T12:53:07.000Z
2022-03-15T16:22:24.000Z
swallow/processes/_plot_output.py
cedadev/swallow
b47c9ffcf5040ce4eadf6072d24db71efe3532a4
[ "BSD-3-Clause" ]
null
null
null
adaq_home = '/gws/smf/j04/cedaproc/cedawps/adaq/src/adaq_toolbox-ADAQ_Python_v7.1'
24.257143
82
0.669022
import os import subprocess adaq_home = '/gws/smf/j04/cedaproc/cedawps/adaq/src/adaq_toolbox-ADAQ_Python_v7.1' def run_adaq_script(script_name, args=None): if args == None: args = [] script_path = os.path.join(adaq_home, 'adaqscripts', script_name) cmd = ['python', script_path...
0
0
0
0
0
690
0
-16
90
aed6def8a4878be168b6b1849d034f0d31806595
802
py
Python
getPiPlateData.py
rxa254/MoodCube
dd5741321e8aa47d94bf0f6157e10046def57f73
[ "BSD-3-Clause" ]
1
2017-08-06T14:44:00.000Z
2017-08-06T14:44:00.000Z
getPiPlateData.py
rxa254/MoodCube
dd5741321e8aa47d94bf0f6157e10046def57f73
[ "BSD-3-Clause" ]
4
2017-06-08T06:46:50.000Z
2017-09-07T03:46:30.000Z
getPiPlateData.py
rxa254/MoodCube
dd5741321e8aa47d94bf0f6157e10046def57f73
[ "BSD-3-Clause" ]
3
2017-05-25T07:25:52.000Z
2020-04-15T03:36:45.000Z
#!/usr/bin/env python from __future__ import division import time, sys, signal import argparse import numpy as np import piplates.DAQCplate as DAQC parser = argparse.ArgumentParser(description='Acquire Data from Pi Plate') parser.add_argument('-f','--fsample', dest='sample_frequency', metavar='f...
21.675676
74
0.660848
#!/usr/bin/env python from __future__ import division import time, sys, signal import argparse import numpy as np import piplates.DAQCplate as DAQC parser = argparse.ArgumentParser(description='Acquire Data from Pi Plate') parser.add_argument('-f','--fsample', dest='sample_frequency', metavar='f...
0
0
0
0
0
0
0
0
0
6e8ffbc0cf08670898229413cf751fa6c81f299f
12,531
py
Python
tests/cli/admin/cloud_test.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
tests/cli/admin/cloud_test.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
tests/cli/admin/cloud_test.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
import click
33.416
88
0.540101
import importlib import unittest import click import click.testing import mock from treadmill.infra import constants, connection class CloudTest(unittest.TestCase): def setUp(self): self.patched = mock.patch( 'treadmill.infra.utils.cli_callbacks.pkg_resources.resource_string', # noqa ...
0
11,499
0
878
0
0
0
6
134
d650cabb41bcc0acde439968961eaf8331d13659
167
py
Python
genomicsurveillance/types.py
mg14/genomicsurveillance
3eaa1410691e26506aca4800a8662f029a39ef5c
[ "MIT" ]
4
2021-05-27T00:16:31.000Z
2021-11-12T11:29:56.000Z
genomicsurveillance/types.py
mg14/genomicsurveillance
3eaa1410691e26506aca4800a8662f029a39ef5c
[ "MIT" ]
3
2021-03-05T11:43:23.000Z
2021-03-10T14:42:19.000Z
genomicsurveillance/types.py
mg14/genomicsurveillance
3eaa1410691e26506aca4800a8662f029a39ef5c
[ "MIT" ]
3
2021-03-05T11:50:52.000Z
2021-08-04T18:10:47.000Z
# type declarations from typing import Callable from jax.numpy import DeviceArray Model = Callable[[DeviceArray], DeviceArray] Guide = Callable[[DeviceArray], None]
20.875
44
0.790419
# type declarations from typing import Callable from jax.numpy import DeviceArray Model = Callable[[DeviceArray], DeviceArray] Guide = Callable[[DeviceArray], None]
0
0
0
0
0
0
0
0
0
5defb67f9d8d897358e0b30a868c1614bd4417c4
9,561
py
Python
episcanpy/count_matrix/_atac_mtx.py
le-ander/epiScanpy
f36c4c4e5ba65693464e3dfa954f8c2778ad603c
[ "BSD-3-Clause" ]
null
null
null
episcanpy/count_matrix/_atac_mtx.py
le-ander/epiScanpy
f36c4c4e5ba65693464e3dfa954f8c2778ad603c
[ "BSD-3-Clause" ]
null
null
null
episcanpy/count_matrix/_atac_mtx.py
le-ander/epiScanpy
f36c4c4e5ba65693464e3dfa954f8c2778ad603c
[ "BSD-3-Clause" ]
null
null
null
#import pysam import bamnostic as bs import numpy as np import anndata as ad import pandas as pd from scipy.sparse import csc_matrix MOUSE = ['1', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '2', '3', '4', '5', '6', '7', '8', '9','X', 'Y'] HUMAN = ['1', '10', '11', '12', '13', '14', '15', '16'...
38.552419
118
0.578182
#import pysam import bamnostic as bs import numpy as np import anndata as ad import pandas as pd from scipy.sparse import csc_matrix MOUSE = ['1', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '2', '3', '4', '5', '6', '7', '8', '9','X', 'Y'] HUMAN = ['1', '10', '11', '12', '13', '14', '15', '1...
0
0
0
0
0
0
0
2
0
57a201d407b706ab2f37249bfc6caccb8445fcd8
611
py
Python
moodtracker/mood/tasks.py
danielvinson/mood-tracker
39c694b2bff977155f5f3ed8083601da9da3723b
[ "Apache-2.0" ]
1
2018-01-24T18:53:02.000Z
2018-01-24T18:53:02.000Z
moodtracker/mood/tasks.py
danielvinson/mood-tracker
39c694b2bff977155f5f3ed8083601da9da3723b
[ "Apache-2.0" ]
2
2020-02-11T23:40:40.000Z
2020-06-05T17:36:02.000Z
moodtracker/mood/tasks.py
danielvinson/mood-tracker
39c694b2bff977155f5f3ed8083601da9da3723b
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals # Celery task file - defines tasks which can be run asyncronously or on timers
27.772727
78
0.693944
from __future__ import absolute_import, unicode_literals from celery import shared_task from django.contrib.auth.models import User from mood import util # Celery task file - defines tasks which can be run asyncronously or on timers @shared_task def ask_for_mood(user_id): try: user = User.objects.get(i...
0
352
0
0
0
0
0
31
92
4006d422adf8adb324785b2bec16f85c968218ee
2,811
py
Python
miscc/utils.py
Collapsar-G/Recommended-system
687cedd8d8fa7354363bf7d2ee482bb172abd6a2
[ "Apache-2.0" ]
null
null
null
miscc/utils.py
Collapsar-G/Recommended-system
687cedd8d8fa7354363bf7d2ee482bb172abd6a2
[ "Apache-2.0" ]
null
null
null
miscc/utils.py
Collapsar-G/Recommended-system
687cedd8d8fa7354363bf7d2ee482bb172abd6a2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @Author : Collapsar-G @License : (C) Copyright 2021-* @Contact : gjf840513468@gmail.com @File : $Visualization.py @Time : $2021.4.8 $16:50 @Desc : """ import json def data_loat_att(type_data, split=""): """ attributes :pa...
27.028846
136
0.628602
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @Author : Collapsar-G @License : (C) Copyright 2021-* @Contact : gjf840513468@gmail.com @File : $Visualization.py @Time : $2021.4.8 $16:50 @Desc : 工具人 """ import json import numpy as np import torch from miscc.config import cfg def da...
45
0
0
0
0
2,012
0
-5
160
1d311ebc646108a1083f4372ab8bfebfe5e66f03
9,124
py
Python
transfers.py
ykivva/Consistency_LS
11ad36c8ddad7dec2bbc3e49850186dba8e7985c
[ "MIT" ]
null
null
null
transfers.py
ykivva/Consistency_LS
11ad36c8ddad7dec2bbc3e49850186dba8e7985c
[ "MIT" ]
null
null
null
transfers.py
ykivva/Consistency_LS
11ad36c8ddad7dec2bbc3e49850186dba8e7985c
[ "MIT" ]
null
null
null
import torch.nn as nn from modules.percep_nets import Dense1by1Net from modules.depth_nets import UNetDepth from modules.unet import UNet, UNetOld2, UNetReshade from modules.resnet import ResNetClass pretrained_transfers = { ('normal', 'principal_curvature'): (lambda: Dense1by1Net(), f"{OLD_MODELS_DIR}/...
43.037736
126
0.662648
import os, sys, math, random, itertools, functools from collections import namedtuple import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.checkpoint import checkpoint as util_checkpoint from torchvision import models from utils import * from models import Trainable...
0
0
0
3,319
0
0
0
230
361
043a12e21dcbc59135fbf55324181c27942104e7
1,140
py
Python
home/migrations/0006_student.py
dikshaRaj/Diksha
0086d89a39c272670e8e499934d7bea93af438c4
[ "bzip2-1.0.6" ]
null
null
null
home/migrations/0006_student.py
dikshaRaj/Diksha
0086d89a39c272670e8e499934d7bea93af438c4
[ "bzip2-1.0.6" ]
8
2019-12-04T23:24:47.000Z
2022-02-10T09:14:21.000Z
home/migrations/0006_student.py
dikshaRaj/Diksha
0086d89a39c272670e8e499934d7bea93af438c4
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-20 06:36
42.222222
151
0.626316
# Generated by Django 2.2.2 on 2019-06-20 06:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0005_auto_20190620_0949'), ] operations = [ migrations.CreateModel( name='Student', ...
0
0
0
993
0
0
0
30
68
1c2cfa1530e0657a58165e5b7d251745010afaf6
113,256
py
Python
pysnmp-with-texts/DATALINK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DATALINK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DATALINK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DATALINK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DATALINK-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:37:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
104.191352
8,402
0.772807
# # PySNMP MIB module DATALINK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DATALINK-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:37:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
0
0
0
0
0
0
0
0
0
5db6fe1d0f8291478851eaaf3e7785b396cfe0db
2,439
py
Python
switch_nexa.py
vinnyspb/nexa-controller-rpi
d2ad70ec64fa6d4473bb70c239fcd075b9edf1b1
[ "MIT" ]
22
2015-04-23T10:44:13.000Z
2022-03-25T18:22:05.000Z
switch_nexa.py
vinnyspb/nexa-controller-rpi
d2ad70ec64fa6d4473bb70c239fcd075b9edf1b1
[ "MIT" ]
4
2016-08-25T10:58:30.000Z
2019-12-29T10:36:06.000Z
switch_nexa.py
vinnyspb/nexa-controller-rpi
d2ad70ec64fa6d4473bb70c239fcd075b9edf1b1
[ "MIT" ]
6
2015-12-06T11:57:40.000Z
2022-02-20T09:40:06.000Z
import RPi.GPIO as GPIO
28.694118
112
0.592456
import logging import time import RPi.GPIO as GPIO class NexaSwitcher: def __init__(self, data_pin, transmitter_code): self._data_pin = data_pin self._transmitter_code = transmitter_code logging.info("Created NexaSwitcher for data PIN #" + str(self._data_pin) + " and transmitter code: " +...
0
0
0
2,363
0
0
0
-17
67
c8d6af351cf794f85d5f8251200d7b23a1a722d5
651
py
Python
examples/test.py
slavad/greens
5beada89deee372e312aa55db20eb3219f917ab0
[ "MIT" ]
null
null
null
examples/test.py
slavad/greens
5beada89deee372e312aa55db20eb3219f917ab0
[ "MIT" ]
null
null
null
examples/test.py
slavad/greens
5beada89deee372e312aa55db20eb3219f917ab0
[ "MIT" ]
null
null
null
main()
23.25
58
0.588326
import greens.functions as gf import pdb import numpy as np def test_green_fun_01(R_in,R_out,R_,n,t,n_root,n_R): dR=(R_out-R_in)/(n_R-1) l=1.0/(4.0-2*n) x_out = 1.0 x_in = (R_in/R_out)**(1.0-n/2.0) root = gf.rootslipunova(n_root,l,x_in,x_out) R=R_in while R <= R_out: Sigma,Mdot = gf...
0
0
0
0
0
538
0
-6
112
3ccae97fc8547f20734b1f9e27572f403d54e0c5
938
py
Python
NewScriptAtom.py
vlmarch/rhino-tools
491a17859f33613192e7a1d175ad7cee80521cba
[ "MIT" ]
null
null
null
NewScriptAtom.py
vlmarch/rhino-tools
491a17859f33613192e7a1d175ad7cee80521cba
[ "MIT" ]
null
null
null
NewScriptAtom.py
vlmarch/rhino-tools
491a17859f33613192e7a1d175ad7cee80521cba
[ "MIT" ]
null
null
null
import rhinoscriptsyntax as rs from os import popen def NewScriptAtom(): """Create a new Python script in Atom.app for Rhino.""" file_name = rs.SaveFileName ("Save", "Text Files (*.py)|*.py|All Files (*.*)|*.*||") if not file_name:return py_template = """# Built-in # Other Libs # Rhinoceros impor...
20.844444
88
0.688699
import rhinoscriptsyntax as rs from os import popen def NewScriptAtom(): """Create a new Python script in Atom.app for Rhino.""" file_name = rs.SaveFileName ("Save", "Text Files (*.py)|*.py|All Files (*.*)|*.*||") if not file_name:return py_template = """# Built-in # Other Libs # Rhinoceros impor...
0
0
0
0
0
0
0
0
0
c61d4c832207af0cb7506b1ab81270ccb735f074
621
py
Python
backend/celery/worker.py
AlexanderBerardino/police-data-trust
587fe2bc1e7f048e2308d89803abb20f4e619aab
[ "MIT" ]
16
2021-03-02T21:32:52.000Z
2022-03-15T23:13:06.000Z
backend/celery/worker.py
AlexanderBerardino/police-data-trust
587fe2bc1e7f048e2308d89803abb20f4e619aab
[ "MIT" ]
173
2021-03-03T01:35:36.000Z
2022-03-30T03:17:58.000Z
backend/celery/worker.py
AlexanderBerardino/police-data-trust
587fe2bc1e7f048e2308d89803abb20f4e619aab
[ "MIT" ]
36
2021-03-03T00:27:20.000Z
2022-03-29T23:07:57.000Z
from celery import Celery from celery.schedules import crontab from celery.utils.log import get_task_logger logger = get_task_logger(__name__) # Array of all URLs for partner api endpoints urls = ["https://f21c7154-fa77-4f81-89f1-2f254714f45c.mock.pstmn.io/api"] app = Celery("tasks") app.conf.broker_url = "redis:/...
23.884615
78
0.692432
from celery import Celery from celery.schedules import crontab from celery.utils.log import get_task_logger logger = get_task_logger(__name__) # Array of all URLs for partner api endpoints urls = ["https://f21c7154-fa77-4f81-89f1-2f254714f45c.mock.pstmn.io/api"] app = Celery("tasks") app.conf.broker_url = "redis:/...
0
0
0
0
0
0
0
0
0
fbb53bfb15272a4289a811293c72e445999faa4d
5,413
py
Python
store_backend/plugins/services/manager.py
ethanhou99/ChRIS_store
a02a383ffb7936d8df29ba09d2c71c8620a9a9d2
[ "MIT" ]
null
null
null
store_backend/plugins/services/manager.py
ethanhou99/ChRIS_store
a02a383ffb7936d8df29ba09d2c71c8620a9a9d2
[ "MIT" ]
null
null
null
store_backend/plugins/services/manager.py
ethanhou99/ChRIS_store
a02a383ffb7936d8df29ba09d2c71c8620a9a9d2
[ "MIT" ]
null
null
null
""" Plugin manager module that provides functionality to add, modify and delete plugins to the plugins django app. """ import os import sys if "DJANGO_SETTINGS_MODULE" not in os.environ: # django needs to be loaded (eg. when this script is run from the command line) sys.path.append(os.path.join(os.path.dirnam...
39.510949
90
0.638093
""" Plugin manager module that provides functionality to add, modify and delete plugins to the plugins django app. """ import os import sys import json from argparse import ArgumentParser if "DJANGO_SETTINGS_MODULE" not in os.environ: # django needs to be loaded (eg. when this script is run from the command line)...
0
647
0
3,970
0
0
0
90
156
7c69c981d9ff21f82f1396e449711b7f7849f1f4
454
py
Python
desafios/desafio034.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
1
2020-10-26T04:33:14.000Z
2020-10-26T04:33:14.000Z
desafios/desafio034.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
desafios/desafio034.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
salario = float(input("\033[1;32mInforme o salario R$: \033[m")) if salario > 1250: aumento = 10 else: aumento = 15 salario_novo = salario + salario*aumento/100 print("\033[1;31mSalario antigo\033[m \033[1;32mR$: {0:.2f} reais\033[m\033[1;31m.\033[m".format(salario)) print("\033[1;31mSalario com\033[m \033[1...
34.923077
116
0.665198
salario = float(input("\033[1;32mInforme o salario R$: \033[m")) if salario > 1250: aumento = 10 else: aumento = 15 salario_novo = salario + salario*aumento/100 print("\033[1;31mSalario antigo\033[m \033[1;32mR$: {0:.2f} reais\033[m\033[1;31m.\033[m".format(salario)) print("\033[1;31mSalario com\033[m \033[1...
0
0
0
0
0
0
0
0
0
00aa56cd7d0bbe75356a78209801c31b884fccd9
1,740
py
Python
experimentation/data_load.py
rohandholakia1/MlOps
dcd09a2ecef9dc6bfbba9e54c1df40557514ab73
[ "MIT" ]
null
null
null
experimentation/data_load.py
rohandholakia1/MlOps
dcd09a2ecef9dc6bfbba9e54c1df40557514ab73
[ "MIT" ]
null
null
null
experimentation/data_load.py
rohandholakia1/MlOps
dcd09a2ecef9dc6bfbba9e54c1df40557514ab73
[ "MIT" ]
null
null
null
# azureml-core of version 1.0.72 or higher is required # azureml-dataprep[pandas] of version 1.1.34 or higher is required from azureml.core import Workspace, Dataset # upload the local file to a datastore on the cloud subscription_id = 'b3ec17a5-8d95-4801-9a7e-9ee6a85637c7' resource_group = 'D_RG_Data_Sandbox' work...
28.064516
108
0.756322
# azureml-core of version 1.0.72 or higher is required # azureml-dataprep[pandas] of version 1.1.34 or higher is required from azureml.core import Workspace, Dataset # upload the local file to a datastore on the cloud subscription_id = 'b3ec17a5-8d95-4801-9a7e-9ee6a85637c7' resource_group = 'D_RG_Data_Sandbox' work...
0
0
0
0
0
0
0
0
0
2f59ea7cec3f32163f3aaa5e074a52c326673b3d
873
py
Python
src/loadguard/project/dataset/__init__.py
loadguard/runner
2219fe8efd6fe02457341391f1e8cbadd7c65c69
[ "MIT" ]
2
2022-01-19T11:27:58.000Z
2022-01-19T11:49:56.000Z
src/loadguard/project/dataset/__init__.py
loadguard/runner
2219fe8efd6fe02457341391f1e8cbadd7c65c69
[ "MIT" ]
null
null
null
src/loadguard/project/dataset/__init__.py
loadguard/runner
2219fe8efd6fe02457341391f1e8cbadd7c65c69
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ # loadguard.project.datasets This file is a part of LoadGuard Runner. (c) 2021, Deepnox SAS. This module provides utilities to manage datasets. """ import os CURRENT_PATH = os.path.dirname(__file__) LG_HOME = os.path.abspath(os.path.join(CURRENT_PATH, '..', '..')) LG_RESOURCES_DATASET_DI...
23.594595
73
0.657503
#!/usr/bin/env python3 """ # loadguard.project.datasets This file is a part of LoadGuard Runner. (c) 2021, Deepnox SAS. This module provides utilities to manage datasets. """ import csv import os CURRENT_PATH = os.path.dirname(__file__) LG_HOME = os.path.abspath(os.path.join(CURRENT_PATH, '..', '..')) LG_RESOURCE...
0
0
0
466
0
0
0
-11
46
8300816e81b88cd760e0f95d47c31c2a0b46341c
2,709
py
Python
RBOT250/src/install/learning_tf2_py/lib/python3.8/site-packages/learning_tf2_py/turtle_tf2_broadcaster.py
DSHRIMP/RBOT_250_Assignment_3
6c5fcf39d9fdb22d4c340b8ab0bcbda0351650e9
[ "CC0-1.0" ]
null
null
null
RBOT250/src/install/learning_tf2_py/lib/python3.8/site-packages/learning_tf2_py/turtle_tf2_broadcaster.py
DSHRIMP/RBOT_250_Assignment_3
6c5fcf39d9fdb22d4c340b8ab0bcbda0351650e9
[ "CC0-1.0" ]
null
null
null
RBOT250/src/install/learning_tf2_py/lib/python3.8/site-packages/learning_tf2_py/turtle_tf2_broadcaster.py
DSHRIMP/RBOT_250_Assignment_3
6c5fcf39d9fdb22d4c340b8ab0bcbda0351650e9
[ "CC0-1.0" ]
null
null
null
# Copyright 2021 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
31.5
76
0.674788
# Copyright 2021 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
0
0
0
1,735
0
134
0
54
183
023a4e7038df8a16ff8fa351d8eafbd1c485ae45
1,921
py
Python
gnuradio-3.7.13.4/grc/gui/Colors.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/grc/gui/Colors.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/grc/gui/Colors.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2008,2013 Free Software Foundation, Inc. This file is part of GNU Radio GNU Radio Companion is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any l...
38.42
83
0.757939
""" Copyright 2008,2013 Free Software Foundation, Inc. This file is part of GNU Radio GNU Radio Companion is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any l...
0
0
0
0
0
58
0
0
26
0cf4b4b55cdeaeb2dc8bb893756eb1b6a734a4a3
7,815
py
Python
wishes/parser.py
htmue/python-wishes
b0238525465ba9e3ee4fbc9a26e40d663dfb6740
[ "Unlicense" ]
null
null
null
wishes/parser.py
htmue/python-wishes
b0238525465ba9e3ee4fbc9a26e40d663dfb6740
[ "Unlicense" ]
null
null
null
wishes/parser.py
htmue/python-wishes
b0238525465ba9e3ee4fbc9a26e40d663dfb6740
[ "Unlicense" ]
null
null
null
# -*- coding:utf-8 -*- # Created by Hans-Thomas on 2011-05-11. #============================================================================= # parser.py --- Parse features #============================================================================= from __future__ import print_function, unicode_literals #.........
32.974684
110
0.599232
# -*- coding:utf-8 -*- # Created by Hans-Thomas on 2011-05-11. #============================================================================= # parser.py --- Parse features #============================================================================= from __future__ import print_function, unicode_literals import os...
0
1,133
0
6,071
0
0
0
-21
226
c4814e50541340e9e7d05531fddba99dcd14524a
5,544
py
Python
app/server/server/settings.py
SweetCase-Cobalto/MicroCloudChip-NATURAL
74dd2e9d423bd1f43b35f98fe1102364d9c08f46
[ "MIT" ]
null
null
null
app/server/server/settings.py
SweetCase-Cobalto/MicroCloudChip-NATURAL
74dd2e9d423bd1f43b35f98fe1102364d9c08f46
[ "MIT" ]
null
null
null
app/server/server/settings.py
SweetCase-Cobalto/MicroCloudChip-NATURAL
74dd2e9d423bd1f43b35f98fe1102364d9c08f46
[ "MIT" ]
null
null
null
""" Django settings for server project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import random ...
28.142132
114
0.664141
""" Django settings for server project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import random ...
120
0
0
0
0
0
0
0
0
ce5d4d653b4eb02540b1ddde1373d75566078f31
3,309
py
Python
vision/cv.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
vision/cv.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
vision/cv.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
def create_hist(array): """ Create Histogram from 2D Numpy Array """ # Histogram as a dictionary hist = {} rows, cols = array.shape # Iterate through the array for r in range(rows): for c in range(cols): if hist.get(array[r][c]) is None: hist[arr...
25.259542
65
0.488969
import numpy as np def create_hist(array): """ Create Histogram from 2D Numpy Array """ # Histogram as a dictionary hist = {} rows, cols = array.shape # Iterate through the array for r in range(rows): for c in range(cols): if hist.get(array[r][c]) is None: ...
0
0
0
0
0
2,647
0
-3
114
9ba53bee17c1433f9e9fbc21454db9cebb65f00c
4,554
py
Python
dsp/filters/allpass.py
nick-thompson/dsp
bf0d9903398dda3f0a52c648baaef20d4a6bb37a
[ "MIT" ]
10
2017-01-10T21:32:44.000Z
2021-12-21T17:29:51.000Z
dsp/filters/allpass.py
nick-thompson/dsp
bf0d9903398dda3f0a52c648baaef20d4a6bb37a
[ "MIT" ]
null
null
null
dsp/filters/allpass.py
nick-thompson/dsp
bf0d9903398dda3f0a52c648baaef20d4a6bb37a
[ "MIT" ]
3
2017-01-11T09:08:07.000Z
2021-06-15T17:50:33.000Z
""" Module defining a first order allpass filter with modulating coefficients. """ import matplotlib.pyplot as plt import numpy as np from wavetable.oscillators import StandardOscillator, RealTimeResamplingOscillator from wavetable.wavetable import WaveType if __name__ == '__main__': # Show the frequency respons...
31.846154
82
0.587835
""" Module defining a first order allpass filter with modulating coefficients. """ import matplotlib.pyplot as plt import numpy as np from scipy import signal from wavetable.oscillators import StandardOscillator, RealTimeResamplingOscillator from wavetable.wavetable import WaveType class AllpassFilter: """ F...
0
0
0
3,206
0
0
0
3
46
3b3400c2008345eb81e9bf25a0f37482d0b2b52f
8,598
py
Python
StimControl/Experiments/Disparity.py
chrox/RealTimeElectrophy
e1a331b23d0a034894a0185324de235091e54bf0
[ "BSD-2-Clause" ]
4
2016-07-16T01:22:32.000Z
2019-01-07T16:23:54.000Z
StimControl/Experiments/Disparity.py
chrox/RealTimeElectrophy
e1a331b23d0a034894a0185324de235091e54bf0
[ "BSD-2-Clause" ]
null
null
null
StimControl/Experiments/Disparity.py
chrox/RealTimeElectrophy
e1a331b23d0a034894a0185324de235091e54bf0
[ "BSD-2-Clause" ]
null
null
null
# Disparity threshold experiment # # Copyright (C) 2010-2013 Huang Xin # # See LICENSE.TXT that came with this file. from StimControl.LightStim.Core import DefaultScreen DefaultScreen(['left','right'],bgcolor=(0.5,0.5,0.5))
40.17757
93
0.647011
# Disparity threshold experiment # # Copyright (C) 2010-2013 Huang Xin # # See LICENSE.TXT that came with this file. from StimControl.LightStim.FrameControl import FrameSweep from StimControl.LightStim.LightData import dictattr from StimControl.LightStim.Core import DefaultScreen from StimControl.LightStim.Target imp...
0
0
0
7,756
0
0
0
233
383
aa7daa776b1f0098666af9f1dc91c699c487cacd
51,813
py
Python
functions.py
fromdatavistodatascience/venmo
fdaceed5491ef80c6f3dadd00e8e323eaccb6b37
[ "MIT" ]
null
null
null
functions.py
fromdatavistodatascience/venmo
fdaceed5491ef80c6f3dadd00e8e323eaccb6b37
[ "MIT" ]
null
null
null
functions.py
fromdatavistodatascience/venmo
fdaceed5491ef80c6f3dadd00e8e323eaccb6b37
[ "MIT" ]
null
null
null
# Functions for venmo classification project import pandas as pd import numpy as np import psycopg2 import pymongo import datetime import requests import matplotlib.pyplot as plt from gensim.models.doc2vec import Doc2Vec, TaggedDocument import emoji import regex import nltk from nltk.corpus import stopwords, wordnet im...
48.650704
129
0.657653
# Functions for venmo classification project import pandas as pd import numpy as np import psycopg2 import pymongo import json import datetime import pickle import requests import matplotlib.pyplot as plt from gensim.models.doc2vec import Doc2Vec, TaggedDocument import emoji import regex import nltk from nltk import Fr...
45
0
0
0
0
578
0
38
200
527dc9fdce50dd83cfa5f1a965b7aeadf8f56506
1,735
py
Python
tests/sample_files/sample_env.py
att-innovate/rainman2
edd07c03a9d33a2e44b3a333fc28dc73c8cbe56e
[ "MIT" ]
2
2018-06-19T16:52:25.000Z
2018-06-25T22:05:38.000Z
tests/sample_files/sample_env.py
att-innovate/rainman2
edd07c03a9d33a2e44b3a333fc28dc73c8cbe56e
[ "MIT" ]
null
null
null
tests/sample_files/sample_env.py
att-innovate/rainman2
edd07c03a9d33a2e44b3a333fc28dc73c8cbe56e
[ "MIT" ]
1
2020-09-15T03:06:08.000Z
2020-09-15T03:06:08.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Sample environment for testing """ from collections import OrderedDict from collections import namedtuple __author__ = 'Ari Saha (arisaha@icloud.com)' __date__ = 'Friday, April 6th 2018, 11:18:56 am' ACTIONS = { 0: 'UP', 1: 'DOWN', 2: 'LEFT', 3: '...
20.654762
57
0.565994
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Sample environment for testing """ from collections import OrderedDict from collections import namedtuple from rainman2.lib.environment import environment_template __author__ = 'Ari Saha (arisaha@icloud.com)' __date__ = 'Friday, April 6th 2018, 11:18:56 am' ACTIO...
0
201
0
857
0
0
0
36
45
2a1bdd5ecc4d600ce7f55b1d9c44542eb79cba59
248
py
Python
MUNDO 2/Aulas/Aula13 - Estrutura de rep. FOR.py
LeonMarqs/Curso-Em-Video-Python3
fd774af030ac3b385c03213441d7ac7fad46efca
[ "MIT" ]
1
2020-02-12T18:45:28.000Z
2020-02-12T18:45:28.000Z
MUNDO 2/Aulas/Aula13 - Estrutura de rep. FOR.py
LeonMarqs/Curso-Em-Video-Python3
fd774af030ac3b385c03213441d7ac7fad46efca
[ "MIT" ]
null
null
null
MUNDO 2/Aulas/Aula13 - Estrutura de rep. FOR.py
LeonMarqs/Curso-Em-Video-Python3
fd774af030ac3b385c03213441d7ac7fad46efca
[ "MIT" ]
null
null
null
# Contar de trs pra frente for c in range(6, 0, -1): print(c) # Pulando de 2 em 2 for c in range(0, 10, 2): print(c) # somar valores s = 0 for c in range(0, 4): n = int(input('Digite um valor: ')) s += n print('Fim')
17.714286
40
0.540323
# Contar de trás pra frente for c in range(6, 0, -1): print(c) # Pulando de 2 em 2 for c in range(0, 10, 2): print(c) # somar valores s = 0 for c in range(0, 4): n = int(input('Digite um valor: ')) s += n print('Fim')
2
0
0
0
0
0
0
0
0
8e66c65bb646d4e958701b78bc9e8e6e34864a15
953
py
Python
sac.py
arezaz/PyReach
44d89c6ead18cf39b87bde0281ee6ed3911bdfd7
[ "MIT" ]
null
null
null
sac.py
arezaz/PyReach
44d89c6ead18cf39b87bde0281ee6ed3911bdfd7
[ "MIT" ]
null
null
null
sac.py
arezaz/PyReach
44d89c6ead18cf39b87bde0281ee6ed3911bdfd7
[ "MIT" ]
null
null
null
#%% train sac import os from stable_baselines import SAC from stable_baselines.sac.policies import LnMlpPolicy from stable_baselines.bench import Monitor import Arm2DEnv as ae from utils import SaveOnBestTrainingRewardCallback, snap_code #%% sac log_dir_root = './sandbox/sac/' os.makedirs(log_dir_root, exist_ok=True)...
30.741935
125
0.806925
#%% train sac import os import gym import numpy as np from stable_baselines import SAC from stable_baselines.sac.policies import MlpPolicy from stable_baselines.sac.policies import LnMlpPolicy from stable_baselines.common.noise import NormalActionNoise from stable_baselines.bench import Monitor from stable_baselines.co...
0
0
0
0
0
0
0
91
110
1301a3975e7a6ad4b155c3c0c2132b499e59a3ab
421
py
Python
weCodeBlog/migrations/0005_alter_post_body.py
ridaomar/weCode
80f36f1e407da545158c595364a77175a136c4ae
[ "MIT" ]
null
null
null
weCodeBlog/migrations/0005_alter_post_body.py
ridaomar/weCode
80f36f1e407da545158c595364a77175a136c4ae
[ "MIT" ]
null
null
null
weCodeBlog/migrations/0005_alter_post_body.py
ridaomar/weCode
80f36f1e407da545158c595364a77175a136c4ae
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-12 18:36
21.05
71
0.619952
# Generated by Django 3.2.6 on 2021-08-12 18:36 import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('weCodeBlog', '0004_auto_20210808_1505'), ] operations = [ migrations.AlterField( model_name='post', n...
0
0
0
292
0
0
0
12
68
879754e708d40c126315ddceba46b9afec79e064
135
py
Python
doyle/__init__.py
magarcia/doyle
dbed83c7ef24eaea5a1668565a3ab87418ea9f08
[ "ISC" ]
2
2016-04-11T10:07:41.000Z
2018-02-25T12:12:25.000Z
doyle/__init__.py
magarcia/doyle
dbed83c7ef24eaea5a1668565a3ab87418ea9f08
[ "ISC" ]
5
2016-04-14T17:48:12.000Z
2016-04-14T17:54:25.000Z
doyle/__init__.py
magarcia/doyle
dbed83c7ef24eaea5a1668565a3ab87418ea9f08
[ "ISC" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Martin Garcia' __email__ = 'newluxfero@gmail.com' __version__ = '0.1.0'
16.875
34
0.674074
# -*- coding: utf-8 -*- from .doyle import cli __author__ = 'Martin Garcia' __email__ = 'newluxfero@gmail.com' __version__ = '0.1.0'
0
0
0
0
0
0
0
1
23
ce9901dec293a72e2f21514b5a5b4f5f57007ba2
4,924
py
Python
shell/inject/BFDBackdoors/backdoor.py
vasco2016/shellsploit-framework
04eb4a0449acaba0b70c40a78c61a0d5e2527406
[ "MIT" ]
61
2017-06-13T13:48:38.000Z
2022-03-02T17:43:45.000Z
shell/inject/BFDBackdoors/backdoor.py
T0mcat3r/shellsploit-framework
04eb4a0449acaba0b70c40a78c61a0d5e2527406
[ "MIT" ]
null
null
null
shell/inject/BFDBackdoors/backdoor.py
T0mcat3r/shellsploit-framework
04eb4a0449acaba0b70c40a78c61a0d5e2527406
[ "MIT" ]
28
2017-08-15T05:38:27.000Z
2020-12-31T03:39:38.000Z
#!/usr/bin/env python ''' BackdoorFactory (BDF) v3 - FOUNTAINPATCH Many thanks to Ryan O'Neill --ryan 'at' codeslum <d ot> org-- Without him, I would still be trying to do stupid things with the elf format. Also thanks to Silvio Cesare with his 1998 paper (http://vxheaven.org/lib/vsc01.html) which these ELF patching ...
31.974026
80
0.660032
#!/usr/bin/env python ''' BackdoorFactory (BDF) v3 - FOUNTAINPATCH Many thanks to Ryan O'Neill --ryan 'at' codeslum <d ot> org-- Without him, I would still be trying to do stupid things with the elf format. Also thanks to Silvio Cesare with his 1998 paper (http://vxheaven.org/lib/vsc01.html) which these ELF patching ...
0
442
0
2,232
0
0
0
21
134
136f9915fd1e1613c1e79d60e389b251aea354b9
1,960
py
Python
src/figRatesVsAge.py
iossifovlab/denovoInHighAndLowRiskPaper
9513adb3b2a2e5b5958a4bb53b682f4295b7edd1
[ "MIT" ]
null
null
null
src/figRatesVsAge.py
iossifovlab/denovoInHighAndLowRiskPaper
9513adb3b2a2e5b5958a4bb53b682f4295b7edd1
[ "MIT" ]
null
null
null
src/figRatesVsAge.py
iossifovlab/denovoInHighAndLowRiskPaper
9513adb3b2a2e5b5958a4bb53b682f4295b7edd1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import matplotlib as mpl if len(sys.argv) > 1: mpl.use('Agg') from diData import loadEVS, persons, CN from collections import defaultdict EVS = loadEVS(['Small scale de novo in SSC']) CNT = defaultdict(lambda : {pid:0 for pid,pd in persons.items() if pd.coll == 'SSC'}) for e in...
22.790698
103
0.595408
#!/usr/bin/env python import sys import matplotlib as mpl if len(sys.argv) > 1: mpl.use('Agg') from pylab import * from diData import loadEVS, persons, CN from scipy import stats from collections import defaultdict EVS = loadEVS(['Small scale de novo in SSC']) CNT = defaultdict(lambda : {pid:0 for pid,pd in per...
0
0
0
0
0
833
0
0
68
b90d48ca9cc35124a0296ecf00fceec422af1580
8,576
py
Python
config/settings.py
djcheckup/djcheckup.com
dd24a3ee9564d35c790e1aebde6f9a46da1c504f
[ "BSD-3-Clause" ]
null
null
null
config/settings.py
djcheckup/djcheckup.com
dd24a3ee9564d35c790e1aebde6f9a46da1c504f
[ "BSD-3-Clause" ]
1
2020-09-21T10:09:28.000Z
2020-09-21T10:09:28.000Z
config/settings.py
djcheckup/djcheckup.com
dd24a3ee9564d35c790e1aebde6f9a46da1c504f
[ "BSD-3-Clause" ]
1
2020-10-14T05:07:44.000Z
2020-10-14T05:07:44.000Z
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ from pathlib ...
27.754045
110
0.658582
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ from pathlib ...
0
0
0
0
0
0
0
0
0
e3352bc6c5bae17def97fd4d01ac5e1feb5dc12c
1,226
py
Python
year2017/day01/test_solver.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
year2017/day01/test_solver.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
year2017/day01/test_solver.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
import year2017.day01.reader as reader import year2017.day01.solver as solver
29.902439
56
0.501631
import pytest from assertpy import assert_that import year2017.day01.reader as reader import year2017.day01.solver as solver @pytest.mark.parametrize('puzzle, expected', [([1, 1, 2, 2], 3), ([1, 1, 1, 1], 4), ([1, 2, 3, 4], 0), ...
0
1,004
0
0
0
0
0
3
136
12c9a1d4f123509ab1750d6702ce80f7a53cfedc
1,198
py
Python
homeslick/tests/test_homeshick.py
cscutcher/homeslick
882832b735f207c1dc23476f5aa274fc85c0bcbc
[ "Unlicense" ]
null
null
null
homeslick/tests/test_homeshick.py
cscutcher/homeslick
882832b735f207c1dc23476f5aa274fc85c0bcbc
[ "Unlicense" ]
null
null
null
homeslick/tests/test_homeshick.py
cscutcher/homeslick
882832b735f207c1dc23476f5aa274fc85c0bcbc
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Test Homeshick object """ import logging DEV_LOGGER = logging.getLogger(__name__)
26.043478
85
0.663606
# -*- coding: utf-8 -*- """ Test Homeshick object """ import logging import unittest import os import tempfile from homeslick import context from homeslick.homeshick import Homeshick DEV_LOGGER = logging.getLogger(__name__) class TestHomeshick(unittest.TestCase): ''' Test Castle object ''' TEST_NAME ...
0
0
0
949
0
0
0
4
133
f5f8ad455d36b7977dbac8727f6e6224c237013f
3,490
py
Python
monero_glue/protocol/key_image_sync.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
20
2018-04-05T22:06:10.000Z
2021-09-18T10:43:44.000Z
monero_glue/protocol/key_image_sync.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
null
null
null
monero_glue/protocol/key_image_sync.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
5
2018-08-06T15:06:04.000Z
2021-07-16T01:58:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Dusan Klinec, ph4r05, 2018
32.616822
81
0.622063
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Dusan Klinec, ph4r05, 2018 from monero_glue.messages import ( Failure, FailureType, MoneroExportedKeyImage, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncStepAck, Moner...
0
0
2,428
536
0
0
0
329
112
685d261200fbca399c1c06b72a93283b6344f090
36,735
py
Python
fmt_hypergrind_amd.py
thatrandomlurker-divamoddingtools/NoesisImporters
4b12a41f753ed27844b70b4b7a2233cffb865115
[ "MIT" ]
null
null
null
fmt_hypergrind_amd.py
thatrandomlurker-divamoddingtools/NoesisImporters
4b12a41f753ed27844b70b4b7a2233cffb865115
[ "MIT" ]
null
null
null
fmt_hypergrind_amd.py
thatrandomlurker-divamoddingtools/NoesisImporters
4b12a41f753ed27844b70b4b7a2233cffb865115
[ "MIT" ]
null
null
null
# Script by Thatrandomlurker/RhythmProtogen int_Endian = 0 # Check that this is a supported file. won't immediately break if the model is a different format than expected, but will log a notice.
48.272011
191
0.509487
# Script by Thatrandomlurker/RhythmProtogen from inc_noesis import * import noesis import rapi import struct # for building the buffers import os # check if file exists int_Endian = 0 def registerNoesisTypes(): handle = noesis.register("Go! Go! Hypergrind Model", ".amd") noesis.setHandlerTypeChe...
0
0
0
34,945
0
1,217
0
-35
401
3114c1850dd7d35add49c0c66d9a0d150c581758
10,288
py
Python
quadtrees/trees.py
dwrodri/LQTLD3
c703733da76c3e1c56e8152e2544aca5eb9e8586
[ "BSD-3-Clause" ]
7
2018-07-09T18:02:59.000Z
2022-03-19T14:02:34.000Z
quadtrees/trees.py
dwrodri/LQTLD3
c703733da76c3e1c56e8152e2544aca5eb9e8586
[ "BSD-3-Clause" ]
null
null
null
quadtrees/trees.py
dwrodri/LQTLD3
c703733da76c3e1c56e8152e2544aca5eb9e8586
[ "BSD-3-Clause" ]
null
null
null
# TODO: figure out argparse # CELL SPEC: [[0, 0, 'G', sys.maxsize, sys.maxsize, sys.maxsize, sys.maxsize]] # ^ ^ ^ ^ ^ ^ ^ # address | | | | | | # generation | | | | ...
43.778723
113
0.527702
import numpy import sys import png # TODO: figure out argparse # CELL SPEC: [[0, 0, 'G', sys.maxsize, sys.maxsize, sys.maxsize, sys.maxsize]] # ^ ^ ^ ^ ^ ^ ^ # address | | | | | | # generation | |...
0
0
0
9,038
0
0
0
-31
89
8c5a5b9e5a07dbc4c2b79e49e7cc3eddf86551b6
211
py
Python
Backjoon/2693/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
Backjoon/2693/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
Backjoon/2693/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
import sys testcase = int(sys.stdin.readline().rstrip()) data = [ map(int, sys.stdin.readline().split()) for i in range(testcase)] for array in data: _arr = list(array) _arr.sort() print(_arr[-3])
21.1
73
0.649289
import sys testcase = int(sys.stdin.readline().rstrip()) data = [ map(int, sys.stdin.readline().split()) for i in range(testcase)] for array in data: _arr = list(array) _arr.sort() print(_arr[-3])
0
0
0
0
0
0
0
0
0
3f0df4d22170787f2dbc8fd33b7f9cefef26ed35
925
py
Python
auths/migrations/0007_auto_20191225_0817.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
auths/migrations/0007_auto_20191225_0817.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
auths/migrations/0007_auto_20191225_0817.py
vbacaksiz/KTU-MEBSIS
e1afaa07a16e00ff9be3f39b728603b64f08590e
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2019-12-25 08:17
38.541667
245
0.624865
# Generated by Django 3.0 on 2019-12-25 08:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auths', '0006_auto_20191225_0751'), ] operations = [ migrations.AlterField( model_name='userprofile', name='working_ar...
66
0
0
780
0
0
0
19
46
8a3b327a8c323d907a4fa9607ba53b7d9627f3f1
1,855
py
Python
djangogram/users/views.py
hoonjae4/djangogram
e5b5b86afbbb73ef3b9ada04c8dbeb8fb205bff3
[ "MIT" ]
null
null
null
djangogram/users/views.py
hoonjae4/djangogram
e5b5b86afbbb73ef3b9ada04c8dbeb8fb205bff3
[ "MIT" ]
null
null
null
djangogram/users/views.py
hoonjae4/djangogram
e5b5b86afbbb73ef3b9ada04c8dbeb8fb205bff3
[ "MIT" ]
null
null
null
# login . # request #from .
37.857143
80
0.629111
from django.shortcuts import render from django.contrib.auth import authenticate,login from django.http import HttpResponseRedirect from django.urls import reverse from .forms import SignUpForm def main(request): if request.method == 'GET': return render(request, 'users/main.html') elif request.method =...
621
0
0
0
0
1,371
0
84
154
6880c4d3f2e77fe0a90240c5fd6a9a3c08f69c97
1,258
py
Python
tests/linux_benchmarks/mnist_benchmark_test.py
bltb/PerfKitBenchmarker
903eb82d4e7ee5ed2ac2953cf6ce1b80459497ed
[ "Apache-2.0" ]
null
null
null
tests/linux_benchmarks/mnist_benchmark_test.py
bltb/PerfKitBenchmarker
903eb82d4e7ee5ed2ac2953cf6ce1b80459497ed
[ "Apache-2.0" ]
null
null
null
tests/linux_benchmarks/mnist_benchmark_test.py
bltb/PerfKitBenchmarker
903eb82d4e7ee5ed2ac2953cf6ce1b80459497ed
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.105263
74
0.730525
# Copyright 2015 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
0
0
0
412
0
0
0
49
90
41c2447fdd320e50951815a6ec3376dfd56aac0f
235
py
Python
world-2/2-2-input.py
udanielnogueira/Python.CursoEmVideo
3783af84813d9fa785eee61180793a15754c79b3
[ "MIT" ]
null
null
null
world-2/2-2-input.py
udanielnogueira/Python.CursoEmVideo
3783af84813d9fa785eee61180793a15754c79b3
[ "MIT" ]
null
null
null
world-2/2-2-input.py
udanielnogueira/Python.CursoEmVideo
3783af84813d9fa785eee61180793a15754c79b3
[ "MIT" ]
null
null
null
# contagem n = int(input('n: ')) for i in range(0, n): print(i) # contagem do usurio li = int(input('limite inferior: ')) lf = int(input('limite superior: ')) pa = int(input('passo: ')) for i in range(li, lf, pa): print(i)
16.785714
36
0.595745
# contagem n = int(input('n: ')) for i in range(0, n): print(i) # contagem do usuário li = int(input('limite inferior: ')) lf = int(input('limite superior: ')) pa = int(input('passo: ')) for i in range(li, lf, pa): print(i)
2
0
0
0
0
0
0
0
0
645c064f4cae0a68be6309c42e0aea925a85d9a2
1,057
py
Python
pyodine/util/git_adapter.py
trimitri/jokarus
3e05ddd8de26b5df00c87dc6b4b8e6fbd93c0372
[ "Apache-2.0" ]
1
2018-10-29T00:18:50.000Z
2018-10-29T00:18:50.000Z
pyodine/util/git_adapter.py
trimitri/jokarus
3e05ddd8de26b5df00c87dc6b4b8e6fbd93c0372
[ "Apache-2.0" ]
null
null
null
pyodine/util/git_adapter.py
trimitri/jokarus
3e05ddd8de26b5df00c87dc6b4b8e6fbd93c0372
[ "Apache-2.0" ]
null
null
null
"""Provide access to selected git functions.""" import subprocess GIT_PATH = '/usr/bin/git' """Where to find the "git" command?""" def get_revision() -> str: """return the git revision of current directory as a human-readable string. :raises OSError: Couldn't get revision from git. """ try: ...
37.75
100
0.630085
"""Provide access to selected git functions.""" import subprocess GIT_PATH = '/usr/bin/git' """Where to find the "git" command?""" def get_revision() -> str: """return the git revision of current directory as a human-readable string. :raises OSError: Couldn't get revision from git. """ try: ...
0
0
0
0
0
0
0
0
0
001ce2865a77fe40a46b8c76c80c4ad40f6c415a
1,603
py
Python
tests/broker/test_continent.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
tests/broker/test_continent.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
tests/broker/test_continent.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
#!/usr/bin/env python # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2015,2016 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
34.847826
74
0.66126
#!/usr/bin/env python # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2015,2016 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
0
0
0
251
0
0
0
19
46
c6bcd357e31911335eae32e7a3c9aa27c50ddd50
2,124
py
Python
ibis/backends/mysql/tests/test_client.py
rtpsw/ibis
d7318fdf87121cd8fadbcf0369a2b217aab3053a
[ "Apache-2.0" ]
1
2022-03-22T10:39:37.000Z
2022-03-22T10:39:37.000Z
ibis/backends/mysql/tests/test_client.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
ibis/backends/mysql/tests/test_client.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
null
null
null
import ibis.expr.datatypes as dt MYSQL_TYPES = [ ("tinyint", dt.int8), ("int1", dt.int8), ("boolean", dt.int8), ("smallint", dt.int16), ("int2", dt.int16), ("mediumint", dt.int32), ("int3", dt.int32), ("int", dt.int32), ("int4", dt.int32), ("integer", dt.int32), ("bigint", d...
29.915493
76
0.591337
import pytest from pytest import param import ibis import ibis.expr.datatypes as dt MYSQL_TYPES = [ ("tinyint", dt.int8), ("int1", dt.int8), ("boolean", dt.int8), ("smallint", dt.int16), ("int2", dt.int16), ("mediumint", dt.int32), ("int3", dt.int32), ("int", dt.int32), ("int4", dt...
0
738
0
0
0
0
0
-15
90
a62fd904a980b311278c73106c27b95c78ac28f9
2,437
py
Python
service/sampledata.py
knly/finch
14729ab8e7697e96bd0e003f061afc5348f9b3fb
[ "MIT" ]
1
2016-09-04T04:08:21.000Z
2016-09-04T04:08:21.000Z
service/sampledata.py
knly/finch
14729ab8e7697e96bd0e003f061afc5348f9b3fb
[ "MIT" ]
null
null
null
service/sampledata.py
knly/finch
14729ab8e7697e96bd0e003f061afc5348f9b3fb
[ "MIT" ]
null
null
null
import random import markdown c = Course.objects.create(title="Quantum Mechanics", description="Understanding the foundations of modern physics.") content1 = markdown.markdown("# Lesson 1 \n\n Let's learn using a **simple derivation** of the equation. \n\n [![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/IsX5iUKNT2k/...
62.487179
305
0.677062
from service.models import * from service.engine import * import datetime import random import markdown c = Course.objects.create(title="Quantum Mechanics", description="Understanding the foundations of modern physics.") content1 = markdown.markdown("# Lesson 1 \n\n Let's learn using a **simple derivation** of the equ...
0
0
0
0
0
0
0
8
66
d6d61d292d58358321e0720e9f8277c855acac31
4,287
py
Python
scripts/datasets/ncaltech101_data_maker.py
SensorsINI/v2e_exps_public
d3ec8c2ecda29eb8cae8dd47869449f8cdcbd87a
[ "MIT" ]
3
2022-01-03T15:29:24.000Z
2022-03-04T13:43:37.000Z
scripts/datasets/ncaltech101_data_maker.py
SensorsINI/v2e_exps_public
d3ec8c2ecda29eb8cae8dd47869449f8cdcbd87a
[ "MIT" ]
null
null
null
scripts/datasets/ncaltech101_data_maker.py
SensorsINI/v2e_exps_public
d3ec8c2ecda29eb8cae8dd47869449f8cdcbd87a
[ "MIT" ]
null
null
null
"""V2E N-Caltech101 dataset maker. Use V2E to simulate the entire dataset. For Ideal range: - threshold: 0.2-0.5 - sigma: 0.03-0.05 - cutoff_hz: 0 - leak_rate_hz: 0 - shot_noise_rate_hz: 0 For bright light range: - threshold: 0.2-0.5 - sigma: 0.03-0.05 - cutoff_hz: 80-120 - leak_r...
30.621429
70
0.645206
"""V2E N-Caltech101 dataset maker. Use V2E to simulate the entire dataset. For Ideal range: - threshold: 0.2-0.5 - sigma: 0.03-0.05 - cutoff_hz: 0 - leak_rate_hz: 0 - shot_noise_rate_hz: 0 For bright light range: - threshold: 0.2-0.5 - sigma: 0.03-0.05 - cutoff_hz: 80-120 - leak_r...
0
0
0
0
0
0
0
0
0
73e42b9e195e427811c556eb94bda481ef1fb3d0
5,168
py
Python
PSTAT160BHW4.py
Njfritter/UCSB-PSTAT-160B
b3a38a0e70a3199302735e3ac240240f8c51f54e
[ "MIT" ]
null
null
null
PSTAT160BHW4.py
Njfritter/UCSB-PSTAT-160B
b3a38a0e70a3199302735e3ac240240f8c51f54e
[ "MIT" ]
1
2018-05-16T18:39:55.000Z
2018-05-16T18:39:55.000Z
PSTAT160BHW4.py
Njfritter/UCSB-PSTAT-160B
b3a38a0e70a3199302735e3ac240240f8c51f54e
[ "MIT" ]
null
null
null
""" This is the Python HW 4 for PSTAT 160B Prof Ichiba TA: Mousavi Section: W 1:00 - 1:50pm """ # Import libraries from __future__ import division # In this exercise we shall simulate the two-dimensional Poisson process # (Poisson Point Process in the plane and its subsets such as a square and a disc). Part_A() P...
30.222222
97
0.714783
""" This is the Python HW 4 for PSTAT 160B Prof Ichiba TA: Mousavi Section: W 1:00 - 1:50pm """ # Import libraries from __future__ import division import random import math import matplotlib.pyplot as plt import numpy as np # In this exercise we shall simulate the two-dimensional Poisson process # (Poisson Point Pr...
0
0
0
0
0
4,654
0
-11
180
d112d0c0983286e64fde7e2e4dbf51168f64cb57
10,200
py
Python
skdecide/builders/discrete_optimization/vrp/solver/solver_ortools.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
skdecide/builders/discrete_optimization/vrp/solver/solver_ortools.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
skdecide/builders/discrete_optimization/vrp/solver/solver_ortools.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
from __future__ import print_function from ortools.constraint_solver import routing_enums_pb2 def create_data_model(): """Stores the data for the problem.""" data = {} data['distance_matrix'] = [ [ 0, 548, 776, 696, 582, 274, 502, 194, 308, 194, 536, 502, 388, 354, 468, 776...
43.220339
119
0.580392
from __future__ import print_function from ortools.constraint_solver import routing_enums_pb2 from ortools.constraint_solver import pywrapcp import numpy as np from skdecide.builders.discrete_optimization.vrp.vrp_model import length, BasicCustomer, VrpProblem, \ VrpProblem2D, VrpSolution, Customer2D from skdecide.b...
0
0
0
6,404
0
0
0
432
223
eff302442a7315fd9fdd7001c7ff5ff79dabfd4a
8,046
py
Python
pythonface/pyface-group.py
pjgpetecodes/mscognitive
c8954c7a2f0610a755522bcbeac3de07b4a7f49f
[ "MIT" ]
null
null
null
pythonface/pyface-group.py
pjgpetecodes/mscognitive
c8954c7a2f0610a755522bcbeac3de07b4a7f49f
[ "MIT" ]
null
null
null
pythonface/pyface-group.py
pjgpetecodes/mscognitive
c8954c7a2f0610a755522bcbeac3de07b4a7f49f
[ "MIT" ]
null
null
null
from azure.cognitiveservices.vision.face import FaceClient from msrest.authentication import CognitiveServicesCredentials from azure.cognitiveservices.vision.face.models import TrainingStatusType import os import uuid import glob import time import sys import json ################################################# # ...
41.689119
196
0.745339
from azure.cognitiveservices.vision.face import FaceClient from msrest.authentication import CognitiveServicesCredentials from azure.cognitiveservices.vision.face.models import TrainingStatusType, Person import os import uuid import glob import time import sys import json #############################################...
0
0
0
0
0
0
0
8
0