hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
de4f23bfb5a827684724b1fa6940e53745dbb142
1,166
py
Python
krpc_client.py
janismac/ksp_rtls_launch_to_rendezvous
195ebfb5aacf1a857aaaf0a69bf071d93d887efd
[ "Apache-2.0" ]
1
2020-11-07T15:53:19.000Z
2020-11-07T15:53:19.000Z
krpc_client.py
janismac/ksp_rtls_launch_to_rendezvous
195ebfb5aacf1a857aaaf0a69bf071d93d887efd
[ "Apache-2.0" ]
null
null
null
krpc_client.py
janismac/ksp_rtls_launch_to_rendezvous
195ebfb5aacf1a857aaaf0a69bf071d93d887efd
[ "Apache-2.0" ]
1
2020-11-07T15:56:06.000Z
2020-11-07T15:56:06.000Z
import sys import subprocess import time import json import krpc import math import scipy.integrate import numpy as np from PrePlanningChecklist import PrePlanningChecklist from PlannerUiPanel import PlannerUiPanel from MainUiPanel import MainUiPanel from ConfigUiPanel import ConfigUiPanel from AutopilotUiPanel import ...
25.911111
76
0.736707
0
0
0
0
0
0
0
0
55
0.04717
de4fbddd1a8e5c3c47f15c39acb99e707f22e65b
617
py
Python
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
import os from discord import Webhook, RequestsWebhookAdapter, Colour, Embed def send_alert(item): hook = os.environ.get("WEB_HOOK") webhook = Webhook.from_url(hook, adapter=RequestsWebhookAdapter()) embedVar = Embed(title="Stock Hunter") if item.in_stock: embedVar.description = "{} **IN STOC...
36.294118
110
0.666126
0
0
0
0
0
0
0
0
86
0.139384
de50a4c4fb04e2350cc10caa2aea9a7a75fcac8c
4,593
py
Python
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
#%% #https://github.com/timesler/facenet-pytorch from facenet_pytorch import MTCNN, extract_face import torch import numpy as np import mmcv, cv2 import os import matplotlib.pyplot as plt from PIL import Image # %% #%% device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') print('Running on...
29.254777
95
0.642717
0
0
0
0
0
0
0
0
1,231
0.268017
de51709d96e27d7e3576d5ee6ad6f2ebabdc7ebc
1,441
py
Python
launch/gazebo.launch.py
fly4future/fog_gazebo_resources
1af1aa2d3a5e7c67bf39605655ca96a154daa4b3
[ "BSD-3-Clause" ]
null
null
null
launch/gazebo.launch.py
fly4future/fog_gazebo_resources
1af1aa2d3a5e7c67bf39605655ca96a154daa4b3
[ "BSD-3-Clause" ]
null
null
null
launch/gazebo.launch.py
fly4future/fog_gazebo_resources
1af1aa2d3a5e7c67bf39605655ca96a154daa4b3
[ "BSD-3-Clause" ]
null
null
null
"""Launch Gazebo server and client with command line arguments.""" from launch import LaunchDescription from launch.substitutions import LaunchConfiguration from launch.actions import DeclareLaunchArgument from launch.actions import IncludeLaunchDescription from launch.actions import ExecuteProcess from launch.conditi...
38.945946
117
0.696738
0
0
0
0
0
0
0
0
314
0.217904
de5241403b212e20d0b5a9c1eb86d5461e49bad7
957
py
Python
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
from contextlib import contextmanager import torch.nn as nn @contextmanager def evaluate(module: nn.Module): """ A context manager for evaluating the module. Args: module: The module to switch to evaluating in the context. Returns: A generator for the context of the module. """ ...
20.804348
66
0.6186
0
0
860
0.898642
892
0.932079
0
0
474
0.495298
de53cfe343832488633720622d964252c48b5617
3,180
py
Python
test/test_postfix.py
JoseTomasTocino/toptal-calculator
baeb69fdeca81699d655e1f2f11f03f2a3972ab7
[ "Unlicense" ]
null
null
null
test/test_postfix.py
JoseTomasTocino/toptal-calculator
baeb69fdeca81699d655e1f2f11f03f2a3972ab7
[ "Unlicense" ]
null
null
null
test/test_postfix.py
JoseTomasTocino/toptal-calculator
baeb69fdeca81699d655e1f2f11f03f2a3972ab7
[ "Unlicense" ]
null
null
null
import unittest from calculator import tokens, evaluator from calculator.parser import tokenize, infix_to_postfix class MyTestPostfixCase(unittest.TestCase): def test_simple_operator(self): expression = "2 + 1" computed_token_list = tokenize(expression) postfix_token_list = infix_to_postf...
31.485149
70
0.646226
3,062
0.962893
0
0
0
0
0
0
100
0.031447
de55352cff35ae8596924966eb4c23a46054b461
1,124
py
Python
Weather API/app.py
TanushreeShaw/Weather
0bebe029536f579bbd9d28c07d3e33f3438a1a56
[ "MIT" ]
null
null
null
Weather API/app.py
TanushreeShaw/Weather
0bebe029536f579bbd9d28c07d3e33f3438a1a56
[ "MIT" ]
null
null
null
Weather API/app.py
TanushreeShaw/Weather
0bebe029536f579bbd9d28c07d3e33f3438a1a56
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import requests import json import os app = Flask(__name__) picfolder = os.path.join('static','pics') app.config['UPLOAD_FOLDER'] = picfolder @app.route('/temperature', methods=['POST']) def temperature(): pic1 = os.path.join(app.config['UPLO...
33.058824
152
0.670819
0
0
0
0
847
0.753559
0
0
291
0.258897
de559c2b5884fa9c7d514b793b602e0875f672ea
561
py
Python
core/urls.py
cybernetisk/internsystem
b81faa0deef08153032e56d5740173e5a6cf3ad9
[ "MIT" ]
null
null
null
core/urls.py
cybernetisk/internsystem
b81faa0deef08153032e56d5740173e5a6cf3ad9
[ "MIT" ]
38
2017-12-21T10:10:54.000Z
2022-03-07T20:54:37.000Z
core/urls.py
cybernetisk/internsystem
b81faa0deef08153032e56d5740173e5a6cf3ad9
[ "MIT" ]
6
2018-06-01T21:04:34.000Z
2020-01-14T15:26:26.000Z
from django.conf.urls import url from core.views import me from core.rest import CardViewSet, UserViewSet, NfcCardViewSet, GroupViewSet from core.utils import SharedAPIRootRouter # SharedAPIRootRouter is automatically imported in global urls config router = SharedAPIRootRouter() router.register(r"core/users", UserVie...
33
76
0.787879
0
0
0
0
0
0
0
0
157
0.279857
de5df9efa200676cbee6ac7078451697101f76eb
2,931
py
Python
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
1
2020-11-20T16:36:17.000Z
2020-11-20T16:36:17.000Z
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
null
null
null
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
null
null
null
from flora_tools.experiment import * class MeasureTimeIRQProcess(Experiment): def __init__(self): description = "Measures the time needed for an IRQ to be processed." Experiment.__init__(self, description) def run(self, bench, iterations=10000): self.iterations = iterations ...
37.576923
111
0.588536
2,891
0.986353
0
0
0
0
0
0
208
0.070966
de5e91c132fdc9f05dd13b11b8708a82b0c0f470
213
py
Python
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
from rest_framework import serializers from main.models import Suco class SucoSerializer(serializers.ModelSerializer): class Meta: model = Suco fields = ('nome', 'litros', 'link', 'qtd_disp')
26.625
55
0.704225
143
0.671362
0
0
0
0
0
0
30
0.140845
de5f40f2fa117e9d234c38567381795609e6e892
183
py
Python
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
1
2019-09-16T16:58:54.000Z
2019-09-16T16:58:54.000Z
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
null
null
null
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
null
null
null
from .matern_kernel import MaternKernel from .rbf_kernel import RBFKernel from .spectralgp_kernel import SpectralGPKernel __all__ = ["MaternKernel", "RBFKernel", "SpectralGPKernel"]
30.5
59
0.825137
0
0
0
0
0
0
0
0
43
0.234973
de61a2c63bd8bf8c89dfa8db3b212f5ada8c9268
271
py
Python
bc/recruitment/migrations/0018_merge_20200324_1630.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-02-27T07:27:17.000Z
2021-02-27T07:27:17.000Z
bc/recruitment/migrations/0018_merge_20200324_1630.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
null
null
null
bc/recruitment/migrations/0018_merge_20200324_1630.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-06-09T15:56:54.000Z
2021-06-09T15:56:54.000Z
# Generated by Django 2.2.10 on 2020-03-24 16:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("recruitment", "0017_merge_20200318_1104"), ("recruitment", "0013_image_block"), ] operations = []
19.357143
52
0.664207
185
0.682657
0
0
0
0
0
0
118
0.435424
de61aeb69172f0bbf84a85482ba65c30efe863a2
1,901
py
Python
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
import requests import os from datetime import datetime import pandas as pd def ensure_folder_exists(foldername): try: # Create tmp folder os.mkdir(foldername) print("Directory created: " + foldername) except FileExistsError: pass def download_and_save(url, filename): pri...
23.7625
78
0.711731
0
0
0
0
0
0
0
0
373
0.196213
de6435cdbc67360ee94636dc50bd704495e2b720
382
py
Python
dump/yoloCarAccident/generate.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
dump/yoloCarAccident/generate.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
dump/yoloCarAccident/generate.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
import os import yoloCarAccident as yc # yc.find('test.txt') f1 = open('result2.txt','r') i = 0 s = "" for lines in f1: if(i<80000): s += lines i+=1 else: f2 = open('test.txt','w') f2.write(s) f2.close() try: yc.find('test.txt') except ValueError: pass s = "" i = 0 # break # f2 = open('t...
13.172414
28
0.557592
0
0
0
0
0
0
0
0
144
0.376963
de65eb26862ea6588043a83de4e49020ae4daf2c
1,853
py
Python
socketserver_extra.py
sim642/pyqwebirc
cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e
[ "MIT" ]
null
null
null
socketserver_extra.py
sim642/pyqwebirc
cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e
[ "MIT" ]
2
2017-01-04T18:24:00.000Z
2017-01-04T18:50:32.000Z
socketserver_extra.py
sim642/pyqwebirc
cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e
[ "MIT" ]
null
null
null
import socketserver import socket class TextStreamRequestHandler(socketserver.BaseRequestHandler): """Define textual self.rfile and self.wfile for stream sockets.""" # Default buffer sizes for rfile, wfile. # We default rfile to buffered because otherwise it could be # really slow for large data (a g...
33.089286
88
0.652455
1,811
0.977334
0
0
0
0
0
0
679
0.366433
de681128c0eb4ded13f92d6720603223e15efc17
4,560
py
Python
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
2
2019-12-14T14:59:22.000Z
2020-01-30T16:17:28.000Z
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
null
null
null
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
1
2020-01-16T20:03:35.000Z
2020-01-16T20:03:35.000Z
#!/usr/bin/env python3 import os, sys sys.path.append(os.path.abspath(__file__ + "/../../")) # just so we can use 'libs' import torch.utils.data import torch.optim as optim from torch import nn import numpy as np import torch from libs.Loader import Dataset from libs.shufflenetv2 import ShuffleNetV2AutoEncoder BA...
35.905512
84
0.53114
3,979
0.872588
0
0
0
0
0
0
1,236
0.271053
de69814605b1835959a1ffdafc1b9774d60d18ad
75
py
Python
utils/__init__.py
bitst0rm-st3/AutomaticPackageReloader
b48699420ccadb3c1a8796a1a7275f70089f0934
[ "MIT" ]
null
null
null
utils/__init__.py
bitst0rm-st3/AutomaticPackageReloader
b48699420ccadb3c1a8796a1a7275f70089f0934
[ "MIT" ]
null
null
null
utils/__init__.py
bitst0rm-st3/AutomaticPackageReloader
b48699420ccadb3c1a8796a1a7275f70089f0934
[ "MIT" ]
null
null
null
from .progress_bar import ProgressBar from .read_config import read_config
25
37
0.866667
0
0
0
0
0
0
0
0
0
0
de6c1a64c58a8aca902a8fc78dd2204b84031a65
2,871
py
Python
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
#%% # PAGE EXAMPLE # {'title': 'Zuppa_di_pesce_(film)', # 'chains': [{'revisions': ['95861493', '95861612', '95973728'], # 'users': {'93.44.99.33': '', 'Kirk39': '63558', 'AttoBot': '482488'}, # 'len': 3, # 'start': '2018-04-01 04:54:40.0', # 'end': '2018-04-05 07:36:26.0'}], # 'n_chains': 1, # 'n_rever...
26.1
183
0.563915
0
0
0
0
0
0
0
0
887
0.308952
de6c4ab063a946c3b3fd6bbb89fa20997b2be723
5,105
py
Python
src/carts/views.py
dhaval6552/ecommerce-2
ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737
[ "MIT" ]
null
null
null
src/carts/views.py
dhaval6552/ecommerce-2
ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737
[ "MIT" ]
null
null
null
src/carts/views.py
dhaval6552/ecommerce-2
ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import AuthenticationForm from django.core.urlresolvers import reverse from django.views.generic.base import View from django.views.generic.detail import SingleObjectMixin,DetailView from django.shortcuts import render,get_object_or_404,redirect from django.http import HttpResponseRedirec...
33.807947
92
0.582174
4,563
0.89383
0
0
0
0
0
0
416
0.081489
de71e1c800cd0628725b2dd49b907881044e1b6d
721
py
Python
Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
22
2015-02-26T09:07:18.000Z
2020-05-10T16:22:05.000Z
Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
123
2016-04-05T18:32:41.000Z
2022-03-13T21:09:21.000Z
Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
56
2015-03-19T22:26:37.000Z
2021-12-06T02:52:02.000Z
#!/usr/bin/python ''' Created on May 23, 2012 @author: Charlie ''' import unittest from mock import patch import xml.etree.ElementTree as ET from TestCgiMainBase import TestCgiMainBase @patch('cgi.FieldStorage') class TestCgiMainXml(TestCgiMainBase): def tearDown(self): pass def testName(self, MockC...
24.862069
71
0.647712
455
0.631068
0
0
482
0.668516
0
0
181
0.25104
de725902f24523dc4f0cb06e33505cadc76a710c
38,783
py
Python
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
from enum import Enum import random import collections import numpy as np # ####################################################################### # Data Types ####################################################################### # class DivideRatio(Enum): DR_8 = ('0', 8.0, '8') DR_643 = ('1', 64.0/3, '64/...
30.610103
79
0.592682
17,220
0.444009
0
0
3,536
0.091174
0
0
4,631
0.119408
de72e8f348089a00d8a491df1f651cf4a945ca9c
1,500
py
Python
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
1
2021-06-15T21:01:53.000Z
2021-06-15T21:01:53.000Z
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
''' Given an n x n matrix where each of the rows and columns are sorted in ascending order, return the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth distinct element. Input: matrix = [[1,5,9],[10,11,13],[12,13,15]], k = 8 Output: 13 Explanation: The elem...
24.193548
134
0.611333
439
0.292667
0
0
0
0
0
0
1,050
0.7
de73b0477272b09621a0a7e87406fe9c6c2a1f06
5,088
py
Python
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
from unittest import TestCase from unittest.mock import Mock import numpy as np from pathfinding.domain.angle import Angle from pathfinding.domain.coord import Coord from vision.domain.image import Image from vision.domain.rectangle import Rectangle from vision.infrastructure.cvVisionException import CameraDoesNotExi...
45.428571
117
0.725825
4,702
0.924135
0
0
0
0
0
0
15
0.002948
de758aaeb7ae98b14c58fbe707173fad48237087
8,753
py
Python
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
3
2022-03-19T21:30:10.000Z
2022-03-30T08:20:48.000Z
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
from .feature_maps import * import torch.nn as nn class LayerGradientComputation: """ Abstract base class that can be used as a second base class for layers that support the computation of gradient features """ def __init__(self): super().__init__() # in case this is used with multiple i...
44.207071
118
0.682052
7,733
0.883469
0
0
0
0
0
0
4,250
0.485548
de759ba42ef02e88463fee41b02959bd0f0ddd2c
35,389
py
Python
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
3
2021-02-01T06:47:06.000Z
2022-01-09T05:54:35.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
4
2019-10-23T09:52:36.000Z
2022-03-11T23:17:23.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
null
null
null
from configparser import ConfigParser from configparser import DuplicateSectionError from PyQt5 import QtCore, QtGui, QtWidgets from pinsey import Constants from pinsey.Utils import clickable, center, picture_grid, horizontal_line, resolve_message_sender, name_set, windows from pinsey.gui.MessageWindow import MessageW...
50.700573
121
0.628755
34,531
0.975755
0
0
0
0
0
0
5,733
0.161999
de7659b57f254205c0bc591d8af1e1375127f4d8
336
py
Python
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
from os import system as c i = "ipconfig" input(c(i)) # import win32clipboard # from time import sleep as wait # set clipboard data # while True: # win32clipboard.OpenClipboard() # win32clipboard.EmptyClipboard() # win32clipboard.SetClipboardText('Clipboard Blocked!') # win32clipboard.CloseClipboard() ...
24
59
0.720238
0
0
0
0
0
0
0
0
282
0.839286
de766a3b6f5c4477c098e9f336005c2394afbbc1
1,506
py
Python
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : emails.py @Contact : [email protected] @License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/9/27 10:22 下午 wuxiaoqiang 1.0 None """ import as...
34.227273
108
0.625498
0
0
0
0
181
0.111728
966
0.596296
719
0.443827
de76f5e1a1407299a65c28e63772cca898458059
13,487
py
Python
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
import time import copy import random import logging from functools import partial import numpy as np import torch from torch.utils.data import DataLoader from transformers import DistilBertModel, DistilBertForSequenceClassification, DistilBertTokenizer, AlbertModel, AlbertForSequenceClassification, DistilBertTokenize...
46.993031
456
0.671091
10,790
0.80003
0
0
981
0.072737
0
0
1,675
0.124194
de775456d4d41592b9970922b77c527e29122163
4,542
py
Python
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # scomdominfo.py - Report information folds and classes of a list of SCOP sids # # File: scomdominfo.py # Author: Alex Stivala # Created: November 2008 # # $Id: scopdominfo.py 3009 2009-12-08 03:01:48Z alexs $ # ...
30.689189
148
0.610524
0
0
0
0
0
0
0
0
2,660
0.585645
de79c16d6df471bd5320f3fc4154354634f400a7
1,334
py
Python
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
1
2021-09-17T10:19:30.000Z
2021-09-17T10:19:30.000Z
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT from tools.test import * import os class ModelHandler: def __init__(self): # Setup device self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') torch.backends.cudnn.benchmark = True base_d...
34.205128
93
0.614693
1,223
0.916792
0
0
0
0
0
0
240
0.17991
de79c50bcf2db093ce388c48ecf4f5cdef4ddb45
10,842
py
Python
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
1
2021-11-23T14:04:36.000Z
2021-11-23T14:04:36.000Z
import torch import torch.nn as nn from torch.nn import (TransformerEncoder, TransformerDecoder, TransformerEncoderLayer, TransformerDecoderLayer) from torch import Tensor from typing import Iterable, List import math import os import numpy as np try: from janome.tokenizer import Tokenizer ex...
36.14
168
0.620365
5,721
0.504053
0
0
0
0
0
0
1,673
0.147401
de7a78e426a815b7bd976727be3160a469af797a
9,185
py
Python
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
1
2019-01-30T13:18:02.000Z
2019-01-30T13:18:02.000Z
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
null
null
null
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2012 Opera Software ASA # # 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 ...
27.665663
163
0.706369
0
0
0
0
0
0
0
0
1,547
0.168427
de7b6b105a985b6f30d92b604636b34c85675300
498
py
Python
Alp/cap_alp/E.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
2
2021-03-17T12:08:22.000Z
2021-03-17T12:11:10.000Z
Alp/cap_alp/E.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
null
null
null
Alp/cap_alp/E.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
1
2021-03-17T11:49:39.000Z
2021-03-17T11:49:39.000Z
def for_E(): for row in range(7): for col in range(5): if (col==0 ) or (row==0 or row==3 or row==6): print("*",end=" ") else: print(end=" ") print() def while_E(): i=0 while i<7: j=0 while j<5: ...
22.636364
58
0.317269
0
0
0
0
0
0
0
0
20
0.040161
de7c4534ed26f1d3158aaf6b53415fa79e0c249d
574
py
Python
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
from flask import Flask from loguru import logger from flasgger import Swagger from patron.api import api_bp logger.add("api.log", format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {message}", rotation="500 MB") template = { "swagger": "2.0", "info": { "title": "PATRON", "description": "", ...
19.793103
102
0.602787
0
0
0
0
0
0
0
0
198
0.344948
de7dc549a1952d8dda02b33f493f1bb859b37917
735
py
Python
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
1
2018-08-31T09:39:11.000Z
2018-08-31T09:39:11.000Z
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pylab as plt def step_function(x): y = x > 0 return y.astype(np.int) def sigmoid(x): return 1 / (1 + np.exp(-x)) def relu(x): return np.maximum(0, x) def AND(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.7 tmp = np.sum(w * x) + b...
17.093023
31
0.469388
0
0
0
0
0
0
0
0
0
0
de8007cfcf1b7fa53b4609e54f0ca14a7d5ba1bb
210
py
Python
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
3
2019-07-23T15:14:03.000Z
2020-11-10T06:12:18.000Z
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
null
null
null
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
3
2020-03-04T23:40:20.000Z
2021-11-04T16:41:10.000Z
# with tidy long table fig, ax = plt.subplots() sns.violinplot(x='station', y='no2', data=data_tidy[data_tidy['datetime'].dt.year == 2011], palette="GnBu_d", ax=ax) ax.set_ylabel("NO$_2$ concentration (µg/m³)")
52.5
116
0.704762
0
0
0
0
0
0
0
0
86
0.40566
de82bbe06365e1885857bfec2f5eb9144e01b08c
1,729
py
Python
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
""" Project: dncnn Author: khalil MEFTAH Date: 2021-11-26 DnCNN: Deep Neural Convolutional Network for Image Denoising model implementation """ import torch from torch import nn import torch.nn.functional as F # helper functions def eval_decorator(fn): def inner(model, *args, **kwargs): was_training = m...
25.80597
142
0.638519
1,246
0.720648
0
0
85
0.049161
0
0
197
0.113939
de848d1a58c8622dd6042ce58386b34d78eaa285
41,886
py
Python
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
88
2017-01-19T03:15:24.000Z
2022-03-30T16:22:19.000Z
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
null
null
null
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
22
2017-01-20T10:22:31.000Z
2022-02-10T18:55:36.000Z
#!/usr/bin/python from __future__ import print_function import logging from fabric.api import task,run,local,put,get,execute,settings from fabric.decorators import * from fabric.context_managers import shell_env,quiet from fabric.exceptions import * from fabric.utils import puts,fastprint from time import sleep from c...
36.549738
172
0.542138
0
0
158
0.003772
39,477
0.942487
0
0
13,129
0.313446
de852461942a9c2a911b8c95e145d87c827bf61c
651
py
Python
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
6
2015-02-01T18:08:41.000Z
2021-06-20T16:24:11.000Z
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
2
2020-02-11T21:19:13.000Z
2020-06-05T16:38:44.000Z
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
1
2016-05-17T20:16:25.000Z
2016-05-17T20:16:25.000Z
from django import forms from mezzanine.blog.forms import BlogPostForm from .models import BlogPost # These fields need to be in the form, hidden, with default values, # since it posts to the blog post admin, which includes these fields # and will use empty values instead of the model defaults, without # these spe...
26.04
73
0.723502
248
0.380952
0
0
0
0
0
0
382
0.58679
de86c719ac9ffce9e1f273be9d0dc93bbd224576
14,533
py
Python
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
4
2020-06-05T18:21:18.000Z
2021-06-10T20:17:31.000Z
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2019-03-02 15:56 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('reviews', '0021_auto_20190302_1514')...
113.539063
1,908
0.637515
14,319
0.985275
0
0
0
0
0
0
4,759
0.327462
de876b3ed14bbdc7196b4d80c31ffed86152546c
1,414
py
Python
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
8
2018-02-26T16:24:07.000Z
2021-06-30T07:40:52.000Z
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
import platform from setuptools import setup if platform.system() == "Windows": setup( name="intermezzo", version="0.1.0", description="A library for creating cross-platform text-based interfaces using termbox-go.", long_description="", url="https://github.com/imdaveho/inter...
35.35
100
0.601839
0
0
0
0
0
0
0
0
638
0.451202
de87df11dbf3b3a221e585a21372627cd71cbf40
173
py
Python
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('<str:nome>', views.cumprimentar, name='cumprimentar'), ]
24.714286
64
0.676301
0
0
0
0
0
0
0
0
35
0.202312
de88715741307a44df748cb0254417ebbcf130e6
70,016
py
Python
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import cv2, os, sys, glob import scipy import sklearn import imageio import matplotlib.cm as cm import matplotlib import time from sklearn import decomposition, metrics, manifold, svm from tsne import bh_sne from matplotlib.path ...
39.049637
257
0.638211
65,251
0.931944
0
0
0
0
0
0
23,098
0.329896
de88b285c3b2ad75dee639aa1cc273972692cd58
619
py
Python
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
import pygame from game.game_data.cells.Cell import Cell from game.pygame_ import PICS_pygame, CELL_SIZE from game.pygame_.Object import Object class PyGCell(Object, Cell): # TODO не передавать лишнее def __init__(self, id__, cell: Cell, x_: int, y_: int): Object.__init__(self, id__, *self.create_coo...
30.95
91
0.691438
489
0.767661
0
0
0
0
0
0
52
0.081633
de8b266bc66642e780d1f515de7639ab0386bd85
2,690
py
Python
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
import json import os import torch import math def adjust_learning_rate(optimizer, scale): """ Scale learning rate by a specified factor. :param optimizer: optimizer whose learning rate must be shrunk. :param scale: factor to multiply learning rate with. """ for param_group in optimizer.param...
36.351351
106
0.600743
1,763
0.65539
0
0
0
0
0
0
686
0.255019
de8c74beee9cae08acd3e8037eb35833307f76e4
93
py
Python
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
from enum import Enum class FeedType(str, Enum): OSM = 'osm' OVERPASS = 'overpass'
13.285714
26
0.645161
68
0.731183
0
0
0
0
0
0
15
0.16129
de8c915237260239c036a5cbacb8018944e669da
8,774
py
Python
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
#!/bin/python3 """This is the top-level program to operate the Raspberry Pi based lego sorter.""" # Things I can set myself: AWB, Brightness, crop, exposure_mode, # exposure_speed,iso (sensitivity), overlays, preview_alpha, # preview_window, saturation, shutter_speed, # Thought for future enhancement: at start...
35.379032
94
0.624915
1,772
0.20196
0
0
0
0
0
0
3,677
0.419079
de8d539f5152c1d0482b8d70ccc7c573352b8f81
6,061
py
Python
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
26
2015-07-08T12:55:30.000Z
2022-01-21T11:44:35.000Z
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
16
2016-05-01T17:42:44.000Z
2021-06-02T04:33:53.000Z
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
17
2016-05-01T11:15:00.000Z
2021-12-02T03:25:04.000Z
# -*- coding: utf-8 -*- from yaml import load, dump try: from yaml import CSafeLoader as SafeLoader print "Using CSafeLoader" except ImportError: from yaml import SafeLoader print "Using Python SafeLoader" import os import sys reload(sys) sys.setdefaultencoding("utf-8") from sqlalchemy import Table def importyaml...
63.135417
193
0.530606
0
0
0
0
0
0
0
0
901
0.148655
de8e61ed55aedc48bfff03d78334a493e87826b6
242
py
Python
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
from django.shortcuts import render from core.models import Projects,InfoNotifications,WarningNotifications from django.http import HttpResponse from .tasks import sleepy def index(reuqest): sleepy(10) return HttpResponse('Done!')
22
71
0.801653
0
0
0
0
0
0
0
0
7
0.028926
de8e8bcbbb73ed82dfadbb561cfbfe8bb447a711
5,017
py
Python
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np EPS = 1e-5 def KL_monte_carlo(z, mean, sigma=None, log_sigma=None): """Computes the KL divergence at a point, given by z. Implemented based on https://www.tensorflow.org/tutorials/generative/cvae This is the part "log(p(z)) - log(q(z|x)) where z is sampled from...
24.960199
88
0.590592
0
0
0
0
0
0
0
0
2,228
0.44409
de9037d4a2c6b5fbbf0a5f4e22a9796ae161e5b0
4,288
py
Python
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
from tkinter import * import os, xmltodict, requests def knop1(): 'Open GUI huidig station' global root root.destroy() os.system('Huidig_Station.py') def knop2(): 'Open GUI ander station' global root root.destroy() os.system('Ander_Station.py') def nl_to_eng(): 'Wanneer er op d...
34.861789
117
0.541045
0
0
0
0
0
0
0
0
1,308
0.305037
de93263b9043812ffa8057bd744f43dfad03bbdf
27
py
Python
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
3
2018-05-04T12:50:04.000Z
2020-02-28T03:22:53.000Z
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
null
null
null
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
null
null
null
from .py2ifttt import IFTTT
27
27
0.851852
0
0
0
0
0
0
0
0
0
0
de9373d0df66278e0b02dc262104db37303b9a61
3,806
py
Python
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
import socket import tokens import connection import io import os from PIL import Image from message.literalMessage import LiteralMessage from baseApplication import BaseApplication class ClientApplication(BaseApplication): def __init__(self, host, port): super().__init__(host, port, token...
34.288288
121
0.547031
3,556
0.934314
0
0
0
0
0
0
399
0.104834
de949d00cedaeb2c6790aaae5c34a82b7c16d8c5
230
py
Python
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
null
null
null
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
1
2019-10-11T16:16:22.000Z
2019-10-11T16:16:22.000Z
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
null
null
null
import sys import socket ETH_P_ALL=3 # not defined in socket module, sadly... s=socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(ETH_P_ALL)) s.bind((sys.argv[1], 0)) r=s.recv(2000) sys.stdout.write("<%s>\n"%repr(r))
25.555556
75
0.726087
0
0
0
0
0
0
0
0
48
0.208696
de94dc8dcf783cae1964a6addda472d802119e98
1,110
py
Python
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
1
2021-07-16T02:29:35.000Z
2021-07-16T02:29:35.000Z
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
null
null
null
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from json import loads from urllib.request import urlopen, Request SITE = input('Site: ') COOKIE = 'pj=' + input('pj=') examList = loads(urlopen(Request(f'{SITE}/data/module/homework/all.asp?sAct=GetHomeworkListByStudent&iIsExam=1&iPageCount=' + loads(urlopen(Request(f'{SITE}/data/module/home...
48.26087
312
0.664865
0
0
0
0
0
0
0
0
433
0.39009
de95cb380efb4a5351375e80063db451dd2899b5
3,803
py
Python
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
import sys import os import tkinter.filedialog as fd from time import sleep import datetime import tkinter import tkinter as tk from tkinter import ttk from tkinter import scrolledtext import threading # New File & Duplicate File Save def saveasFilePath( filetype=[ ("",".txt"), ("CSV",".csv") ] ): return fd.asksa...
34.261261
106
0.616618
3,261
0.853442
0
0
0
0
0
0
719
0.188171
de97499bd44b3c33d3853cafca12103889273c3c
6,005
py
Python
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
28.732057
85
0.657119
0
0
0
0
5,339
0.889092
0
0
1,416
0.235803
de974a6af213636bff804abc1abfb40a31e4354d
8,810
py
Python
judge/base/__init__.py
fanzeyi/Vulpix
9448e968973073c98231b22663bbebb2a452dcd7
[ "BSD-3-Clause" ]
13
2015-03-08T11:59:28.000Z
2021-07-11T11:58:01.000Z
src/tornado/demos/Vulpix-master/judge/base/__init__.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/tornado/demos/Vulpix-master/judge/base/__init__.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
3
2015-05-29T16:14:08.000Z
2016-04-29T07:25:26.000Z
# -*- coding: utf-8 -*- # AUTHOR: Zeray Rice <[email protected]> # FILE: judge/base/__init__.py # CREATED: 01:49:33 08/03/2012 # MODIFIED: 15:42:49 19/04/2012 # DESCRIPTION: Base handler import re import time import urllib import hashlib import httplib import datetime import functools import traceback import simp...
40.787037
147
0.559932
7,436
0.844041
0
0
417
0.047333
0
0
1,475
0.167423
de9773cffe9839ef07dd2219fd1b0246be382284
1,839
py
Python
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import markdownx.models import myblog.filename from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
39.12766
152
0.582926
1,650
0.897227
0
0
0
0
0
0
255
0.138662
de9904583298a90d85047bd7e803be42fe6b0d62
1,545
py
Python
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
1
2022-01-22T11:45:01.000Z
2022-01-22T11:45:01.000Z
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
test = {'name': 'q6', 'points': 10, 'suites': [{'cases': [{'code': '>>> increment = lambda x: x + 1\n' '\n' '>>> square = lambda x: x * x\n' '\n' '>>> do_nothing = make_zipper(increment, ' ...
49.83871
80
0.253722
0
0
0
0
0
0
0
0
630
0.407767
de9bc65cbfa30de1a8294fb16fd3712d1ce427db
3,566
py
Python
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
""" This problem was asked by Google. Suppose we represent our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: dir subdir1 subdir2 file.ext The directory dir contains an empty sub-directory subdir1 and a sub-directory subdir2 containin...
31.280702
124
0.666854
110
0.030847
0
0
0
0
0
0
1,961
0.549916
de9bd50729808fda9f77f7ae5831c5d7b432a027
1,315
py
Python
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
3
2017-10-17T22:02:06.000Z
2018-05-07T10:29:31.000Z
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
null
null
null
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
3
2018-10-16T13:28:57.000Z
2021-02-24T13:23:29.000Z
from os.path import expanduser, exists from os import makedirs TURBOT_PATH = expanduser('~/.turbot') UPVOTE_LOGS = expanduser("%s/upvote_logs" % TURBOT_PATH) CHECKPOINT = expanduser("%s/checkpoint" % TURBOT_PATH) REFUND_LOG = expanduser("%s/refunds" % TURBOT_PATH) def load_checkpoint(fallback_block_num=None): tr...
24.351852
56
0.650951
0
0
0
0
0
0
0
0
82
0.062357
de9c334f30690be489dc54509a0861d269ca08ea
111
py
Python
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.additional.member_type021_xsd.member_type021 import Root __all__ = [ "Root", ]
18.5
83
0.774775
0
0
0
0
0
0
0
0
6
0.054054
de9ca51de5e3ba22b379f50a5e136405d59c8422
4,361
py
Python
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
1
2021-01-31T19:04:11.000Z
2021-01-31T19:04:11.000Z
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
1
2021-05-11T10:34:00.000Z
2021-05-11T10:34:00.000Z
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
null
null
null
def estimator(data): return data def __init__(self,reportedCases,name,days,totalHospitalbeds,avgDailyIncomeInUsd,avgDailyIncomePopulation): self.reportedCases=reportedCases self.name=name self.days=days self.totalHospitalbeds=totalHospitalbeds self.avgDailyIncomeInUsd=avg...
40.757009
127
0.698234
0
0
0
0
0
0
0
0
881
0.202018
dea196647fceafaeec0ee9058ac3907d2c76082c
3,752
py
Python
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Original Author @elitest # This script uses boto3 to perform client side decryption # of data encryption keys and associated files # and encryption in ways compatible with the AWS SDKs # This support is not available in boto3 at this time # Wishlist: # Currently only tested with KMS managed s...
36.427184
125
0.709488
0
0
0
0
0
0
0
0
1,703
0.453891
dea3d4b6a9500edd440cd83df9ceb44f4b4e36eb
1,777
py
Python
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
null
null
null
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
null
null
null
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
1
2019-11-05T10:35:40.000Z
2019-11-05T10:35:40.000Z
from IPython.display import HTML #TO DO - the nested table does not display? #Also, the nested execution seems to take a long time to run? #Profile it to see where I'm going wrong! def obj_display(v, nest=False, style=True): def nested(v): if nest: return obj_display(v, style=False) re...
38.630435
133
0.563309
0
0
0
0
0
0
0
0
936
0.52673
dea4ec2e4ccc51ad602efcb7e648252790b6ff2d
984
py
Python
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
from turtle import width import streamlit as st import numpy as np import pandas as pd from dis import dis import streamlit as st from data.get_saved_library import get_saved_library, display_user_name, display_user_pic from data.get_recently_played import get_recently_played from data.get_top_artists import get_top_ar...
31.741935
136
0.816057
0
0
0
0
0
0
0
0
88
0.089431
dea61adbc856f28630be94c795fc850aa45a1770
595
py
Python
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
1
2022-03-04T16:06:41.000Z
2022-03-04T16:06:41.000Z
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
# Author: allannozomu # Runtime: 56 ms # Memory: 13 MB class Solution: def longestCommonPrefix(self, strs: List[str]) -> str: res = "" max_length = -1 for s in strs: if max_length < 0: max_length = len(s) else: max_length = min(len(s),...
24.791667
58
0.403361
526
0.884034
0
0
0
0
0
0
58
0.097479
dea6d3637da9acba0c0473fcafaedf9d82d434e7
884
py
Python
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
null
null
null
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
56
2021-08-05T02:49:38.000Z
2022-03-31T19:35:13.000Z
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
null
null
null
import pytest from models.contact_number import ContactNumberModel @pytest.fixture def contact_number_attributes(faker): def _contact_number_attributes(): return { "number": faker.phone_number(), "numtype": faker.random_element(("home", "work", "mobile")), "extension": ...
29.466667
82
0.70362
0
0
779
0.881222
811
0.917421
0
0
54
0.061086
dea6d4847a9416f809c2342943ab00ca26b745bd
835
py
Python
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
8
2017-10-23T17:59:35.000Z
2021-05-10T03:01:30.000Z
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2019-08-25T19:24:12.000Z
2019-09-05T12:16:10.000Z
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2018-02-28T09:47:53.000Z
2019-08-25T19:24:16.000Z
import unittest import numpy as np from sciquence.sequences import * class TestSequences(unittest.TestCase): def test_seq_equals(self): x = [np.array([1, 2, 3]), np.array([4, 5, 6])] y = [np.array([1, 2, 7]), np.array([4, 5, 9])] assert lseq_equal(x, x) assert not lseq_equal(x, y)...
30.925926
91
0.475449
714
0.85509
0
0
0
0
0
0
10
0.011976
dea6f4a43ec33dab31441d90f5221fa29eeb9456
8,191
py
Python
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
null
null
null
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-08-09T21:51:41.000Z
2021-08-09T21:51:45.000Z
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-10-16T14:07:59.000Z
2021-10-16T17:09:03.000Z
# -*- coding: utf-8 -*- """ Simple example using BarGraphItem """ # import initExample ## Add path to library (just for examples; you do not need this) import numpy as np import pickle as p import pandas as pd from analysis_guis.dialogs.rotation_filter import RotationFilter from analysis_guis.dialogs impor...
37.401826
129
0.605421
0
0
0
0
0
0
0
0
3,975
0.485289
dea94f5c042a5187e7e181584aadcbc88251aee3
2,852
py
Python
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
""" downloads gmail atts """ import base64, os from auth.auth import get_service from msg.label import agencies, get_atts from report.response import get_threads, get_status from att.drive import get_or_create_atts_folder,\ check_if_drive, make_drive_folder, upload_to_drive ### START CONFIG ### buffer_path = ...
32.781609
119
0.630785
0
0
0
0
0
0
0
0
1,002
0.351332
dea9df41450058a28e28c535ce8960f8b770dc38
1,147
py
Python
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import from pex.pip.log_analyzer import LogAnalyzer from pex.typing import TYPE_CHECKING, Generic if TYPE_CHECKING: from typing import Iterable, Mappi...
23.408163
66
0.646905
612
0.533566
0
0
384
0.334786
0
0
297
0.258936
deaa58029f2b553b02dbaa81816ff5ce9e456f8a
3,424
py
Python
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
from typing import Any from typing import Callable from typing import Iterable def _create_getter_and_setter(name: str): def getter(self): return getattr(self.func, name) getter.__name__ = name prop = property(getter) def setter(self, value): setattr(self.func, name, value) setter...
26.96063
79
0.651285
3,018
0.881425
0
0
229
0.066881
0
0
501
0.14632
deabe0363fc1143c6a3fe5cc62b534d0a3e480ca
2,096
py
Python
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
from pbpstats.resources.enhanced_pbp import StartOfPeriod class NbaPossessionLoader(object): """ Class for shared methods between :obj:`~pbpstats.data_loader.data_nba.possessions_loader.DataNbaPossessionLoader` and :obj:`~pbpstats.data_loader.stats_nba.possessions_loader.StatsNbaPossessionLoader` Bot...
39.54717
121
0.624046
2,035
0.970897
0
0
0
0
0
0
679
0.32395
dead01ec590550c2d98b328ed72222f137d3778b
7,033
py
Python
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenStack Foundation # 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 requ...
39.072222
78
0.65278
3,993
0.567752
0
0
3,496
0.497085
0
0
1,483
0.210863
deadc8ea87d0e57d203447ee89704b440dd4a622
3,650
py
Python
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
11
2019-04-23T23:15:43.000Z
2021-07-13T06:37:25.000Z
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
null
null
null
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
2
2019-03-07T21:07:34.000Z
2020-04-19T15:28:31.000Z
#!/usr/bin/env python # coding: utf-8 # In[2]: from collections import defaultdict import csv import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt # ## read data to numpy(not in use) # In[385]: # def readCsvToNumpy(file_name, feat_num): # util_mat = [] # with open...
27.037037
117
0.596164
0
0
0
0
0
0
0
0
2,672
0.732055
deaf2eb47ddc3dd822c0c77690801b5b8b2a48b0
1,492
py
Python
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
1
2018-08-22T12:13:25.000Z
2018-08-22T12:13:25.000Z
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
null
null
null
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import keras.backend as K from time import sleep def switch(condition, t, e): if K.backend() == 'tensorflow': import tensorflow as tf return tf.where(condition, t, e) elif K.backend() == 'theano': import theano.tensor as tt ...
27.127273
99
0.632038
0
0
0
0
0
0
0
0
660
0.442359
deafcfc518bad5ab9572431f7de653f846580238
1,050
py
Python
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
25
2018-06-13T08:13:44.000Z
2020-11-19T14:02:11.000Z
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
null
null
null
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
13
2018-06-13T08:13:38.000Z
2022-01-06T06:45:07.000Z
import asyncio cond = None p_list = [] # 生产者 async def producer(n): for i in range(5): async with cond: p_list.append(f"{n}-{i}") print(f"[生产者{n}]生产商品{n}-{i}") # 通知任意一个消费者 cond.notify() # 通知全部消费者:cond.notify_all() # 摸拟一个耗时操作 await asyncio.s...
23.333333
75
0.526667
0
0
0
0
0
0
1,084
0.895868
357
0.295041
deb039b791ed71607787c0d4ffc9f5bb4edef521
930
py
Python
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
from collections import Counter class Solution: def isNStraightHand(self, hand: List[int], W: int) -> bool: n = len(hand) groups = 0 if n == 0 or n % W != 0: return False groups_num = n // W c = Counter(hand) keys = list(c.keys()) keys.sort() ...
31
63
0.410753
889
0.955914
0
0
0
0
0
0
0
0
deb1c543d933d4026fb5899f87ff8c3384301fea
174
py
Python
hover/utils/misc.py
haochuanwei/hover
53eb38c718e44445b18a97e391b7f90270802b04
[ "MIT" ]
1
2020-12-08T13:04:18.000Z
2020-12-08T13:04:18.000Z
hover/utils/misc.py
MaxCodeXTC/hover
feeb0e0c59295a3c883823ccef918dfe388b603c
[ "MIT" ]
null
null
null
hover/utils/misc.py
MaxCodeXTC/hover
feeb0e0c59295a3c883823ccef918dfe388b603c
[ "MIT" ]
null
null
null
"""Mini-functions that do not belong elsewhere.""" from datetime import datetime def current_time(template="%Y%m%d %H:%M:%S"): return datetime.now().strftime(template)
24.857143
50
0.718391
0
0
0
0
0
0
0
0
67
0.385057
deb28e42e8f7639fbbb2df4266120ee03fd2a028
193
py
Python
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
import flask_admin as admin # from flask_admin.contrib.sqla import ModelView from app import app # from app import db from models import * # Admin admin = admin.Admin(app) # Add Admin Views
16.083333
48
0.766839
0
0
0
0
0
0
0
0
92
0.476684
deb449183523148b00bdabf18e21714bbe3551c8
467
py
Python
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
null
null
null
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
8
2020-06-25T22:16:20.000Z
2022-03-12T00:39:27.000Z
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-21 20:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0005_auto_20200521_2038'), ] operations = [ migrations.AlterField( model_name='module', name='segments', ...
24.578947
129
0.631692
374
0.800857
0
0
0
0
0
0
163
0.349036
deb684b2e0198456aadb77cab383b2b6c0c2748f
776
py
Python
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
4
2016-08-22T17:13:43.000Z
2020-10-21T16:50:07.000Z
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
1
2016-08-22T17:13:47.000Z
2016-08-22T17:13:47.000Z
import os def import_module(name): module = __import__(name) components = name.split('.') for components in components[1:]: module = getattr(module, components) return module # We should try to import any custom settings. SETTINGS_MODULE_NAME = os.getenv("MYPI_SETTINGS_MODULE") if SETTINGS_M...
29.846154
72
0.744845
0
0
0
0
0
0
0
0
218
0.280928
deb7178741e12b76740cccb10cf2e3f8e186116d
1,866
py
Python
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class KbAdvertPreserveCommissionClause(object): def __init__(self): self._claimer_id_type = None self._claimers = None @property def claimer_id_type(self): ...
29.15625
81
0.587889
1,735
0.929796
0
0
730
0.391211
0
0
200
0.107181
deba0ac91a90f7d9408ab094dc6d137f7476170c
4,495
py
Python
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
1
2021-01-09T15:20:14.000Z
2021-01-09T15:20:14.000Z
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
null
null
null
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
null
null
null
from __future__ import division # Use floating point for math calculations from flask import Blueprint from CTFd.models import ( ChallengeFiles, Challenges, Fails, Flags, Hints, Solves, Tags, db, ) from CTFd.plugins import register_plugin_assets_directory from CTFd.plugins.challenges...
32.338129
87
0.629588
3,825
0.850945
0
0
3,102
0.6901
0
0
653
0.145273
deba5b19ee11e4b42757cf8302210ae77f1c6474
295
py
Python
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
null
null
null
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
3
2022-01-17T22:55:09.000Z
2022-01-26T07:26:13.000Z
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
1
2021-12-14T01:33:21.000Z
2021-12-14T01:33:21.000Z
shopping_list = { 'Tomatoes': 6, 'Bananas': 5, 'Crackers': 2, 'Sugar': 1, 'Icecream': 1, 'Bread': 3, 'Chocolate': 2 } # Just the keys print(shopping_list.keys()) # Just the values # print(shopping_list.values()) # Both keys and values # print(shopping_list.items())
17.352941
31
0.610169
0
0
0
0
0
0
0
0
179
0.60678
debc22c03ed999e303334d1da3320e421b5bfacc
119
py
Python
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
from .surface import * from .modifiers import * from .evaluator import Evaluator from .lowlevel import display_results
23.8
37
0.815126
0
0
0
0
0
0
0
0
0
0
debcd3fde3c56a4f5ccca0c23d8a57a7d2afd960
588
py
Python
Numbers/PrimeFac.py
Arjuna197/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
1
2022-02-20T18:49:49.000Z
2022-02-20T18:49:49.000Z
Numbers/PrimeFac.py
dan-garvey/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
13
2017-12-13T02:31:54.000Z
2017-12-13T02:37:45.000Z
Numbers/PrimeFac.py
dan-garvey/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
null
null
null
import math from math import* def isPrime(num): if num%2==0 or num%3==0: return False for n in range(5, int(num**(1/2))): if num%n==0: return False return True print('enter a positive integer') FacMe=int(input()) primefacts=[1] if not isPrime(FacMe): if FacMe...
21.777778
40
0.547619
0
0
0
0
0
0
0
0
26
0.044218
debd457fd6d2c1141a031eefaca5f163110cfa64
1,130
py
Python
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
null
null
null
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
1
2021-10-11T08:55:45.000Z
2021-10-11T08:55:45.000Z
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
null
null
null
# encoding: utf-8 """ binary butterfly validator Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE.txt. """ import re from typing import Any, Optional from ..abstract_input import AbstractInput from ..fields import Field from ..vali...
30.540541
103
0.650442
703
0.622124
0
0
0
0
0
0
293
0.259292
debe6ce18f853e6b1e54abf97ade00987edf8450
1,270
py
Python
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
18
2018-12-29T01:52:25.000Z
2021-11-08T06:48:20.000Z
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
2
2019-06-13T12:52:55.000Z
2019-10-30T03:27:11.000Z
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
3
2019-05-11T07:50:53.000Z
2021-11-18T08:15:56.000Z
from runner.run_descriptions.run_description import RunDescription, Experiment, ParamGrid _params = ParamGrid([ ('prediction_bonus_coeff', [0.00, 0.05]), ]) _experiments = [ Experiment( 'doom_maze_very_sparse', 'python -m algorithms.curious_a2c.train_curious_a2c --env=doom_maze_very_sparse --g...
40.967742
145
0.711024
0
0
0
0
0
0
0
0
858
0.675591
debed6abf0cd6d720ad9aac4713a4ef0c18b842a
383
py
Python
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
null
null
null
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
12
2020-10-11T22:42:12.000Z
2021-10-04T19:38:51.000Z
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
1
2021-09-29T23:53:34.000Z
2021-09-29T23:53:34.000Z
import os from xappt_qt.__version__ import __version__, __build__ from xappt_qt.plugins.interfaces.qt import QtInterface # suppress "qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow)" os.environ['QT_LOGGING_RULES'] = '*.debug=false;qt.qpa.*=false' version = tuple(map(int, __version__.split('.'))) + (__build__, )...
27.357143
65
0.749347
0
0
0
0
0
0
0
0
144
0.375979
dec0b14005ec6feafc62d8f18253556640fa35db
145,150
py
Python
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 import sys import sqlite3; import re; import os; import random import qualification from cttable import CandidateTable, TableVotingGroup, PhantomTableVotingGroup import cttable SW_VERSION_SPLIT = (1, 1, 4) SW_VERSION = ".".join([str(x) for x in SW_VERSION_SPLIT]) EARLIEST_COMPATIBLE_DB_VERSION = (...
39.691004
388
0.586035
121,193
0.83495
0
0
129
0.000889
0
0
52,514
0.361791
dec0da50ce4a56fc78832aa67c6d71d1a1a1c437
995
py
Python
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
1
2019-10-15T08:37:56.000Z
2019-10-15T08:37:56.000Z
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jeremías Casteglione <[email protected]> # See LICENSE file. from glob import glob from os import path, makedirs def test_deploy_testing(testing_plugin): makedirs(path.join('tdata', 'deploy', 'plugin'), exist_ok = True) p = testing_plugin('testing', ns = '_sadmtest', deploy = True) print('-- deploy...
36.851852
80
0.676382
0
0
0
0
0
0
0
0
261
0.262048
dec30d56b6d0887d305f33e490a67d25b3dd39cd
4,189
py
Python
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
""" ############## # jsonReader # ############## """ # Import import json from platform import system from enum import Enum from datetime import timedelta # %% ____________________________________________________________________________________________________ # ____________________________________________________...
30.136691
121
0.545476
59
0.014085
0
0
0
0
0
0
1,951
0.465744
dec3721fd14d0e108bf21ac443dd1b7796946011
286
py
Python
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
import re test = input("請輸入字串 : ") test.encode('unicode-escape').decode().replace('\\\\', '\\') print("輸入為 : "+test) if re.match(test, "a"): print(test + " Match 1") if re.match(test, "aa"): print(test + " Match 2") if re.match(test, "aaaa"): print(test + " Match 3")
16.823529
60
0.562937
0
0
0
0
0
0
0
0
103
0.34106
dec3efd877d3ce87cbe9fc53530bf43be70d8149
306
py
Python
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
#初始化 t=0 #运算 for x in range(1,9): for y in range(1,11): for z in range(1,13): if 6*x+5*y+4*z==50: print("计算出x值为 ",x," y值为 ",y," z值为 ",z," 。") t=t+1 print("计算出一共有 {} 个结果。".format(t)) #by xiaozhiyuqwq #https://www.rainyat.work #2021-12-23
21.857143
60
0.46732
0
0
0
0
0
0
0
0
157
0.441011
dec6337c650811d4d0bda0d9fb32eb5e333b7344
15,088
py
Python
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
1
2021-06-03T16:08:33.000Z
2021-06-03T16:08:33.000Z
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
16
2021-04-27T12:58:03.000Z
2021-05-28T14:02:14.000Z
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
70
2021-04-26T13:48:35.000Z
2021-05-28T21:04:34.000Z
# from job_scrapper_gui import naukri_gui from tkinter import * from PIL import ImageTk import PIL.Image import naukri_scrapper import linkedin_scrapper import indeed import simply_hired_scrapper from selenium import webdriver root = Tk() root.title("Compare Jobs") root.geometry("1000x670") root.configure(background=...
57.808429
176
0.696911
0
0
0
0
0
0
0
0
3,716
0.246288
dec771d07fef05c3b6f9bec75d34bca56cffa1b5
3,648
py
Python
data_augmentor/multidimension.py
ZhiangChen/tornado_ML
d8bded61a6a234ca67e31776bc8576c6c18f5621
[ "MIT" ]
2
2018-12-09T20:08:51.000Z
2021-02-01T17:49:14.000Z
data_augmentor/multidimension.py
ZhiangChen/tornado_ML
d8bded61a6a234ca67e31776bc8576c6c18f5621
[ "MIT" ]
1
2019-11-15T06:15:03.000Z
2019-11-15T06:15:03.000Z
multidimension.py
DREAMS-lab/data_augmentor
f204ee3af805b17d9946d3d5c6e7ca62398f09e5
[ "MIT" ]
null
null
null
""" multispectrum Zhiang Chen, Feb, 2020 """ import gdal import cv2 import numpy as np import math import os class MultDim(object): def __init__(self): pass def readTiff(self, tif_file, channel=3): self.ds = gdal.Open(tif_file) B = self.ds.GetRasterBand(1).ReadAsArray() G = se...
35.076923
105
0.569353
2,394
0.65625
0
0
0
0
0
0
1,170
0.320724
dec7a039bcd25fbdc90d163100b8870f23f0424a
399
py
Python
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
2
2019-09-23T08:51:48.000Z
2019-10-14T08:44:28.000Z
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
27
2019-07-08T11:15:03.000Z
2020-06-22T15:47:25.000Z
tests/serializers/test_template_data_serializers.py
yulqen/bcompiler-engine
40eff19e04eabacac991bb34d31a7e7a7d6b729a
[ "MIT" ]
1
2019-09-07T14:05:16.000Z
2019-09-07T14:05:16.000Z
import json from engine.serializers.template import TemplateCellSerializer def test_template_cell_to_dict(template_cell_obj): assert template_cell_obj.to_dict()["sheet_name"] == "Test Sheet 1" def test_template_cell_serializer(template_cell_obj): json_output = json.dumps(template_cell_obj, cls=TemplateCell...
30.692308
75
0.802005
0
0
0
0
0
0
0
0
52
0.130326