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
caab073dbfab127f4fb02cfb6a42eb41a7a18c2b
443
py
Python
Python/MaxSumInSlidingWindow.py
ChanderJindal/Data_Structure_and_Algorithms
8268a5b8be6bc967af41d1985db1224d6c6afc5e
[ "MIT" ]
14
2019-10-26T11:43:56.000Z
2021-01-23T00:37:17.000Z
Python/MaxSumInSlidingWindow.py
ChanderJindal/Data_Structure_and_Algorithms
8268a5b8be6bc967af41d1985db1224d6c6afc5e
[ "MIT" ]
28
2019-10-13T17:49:42.000Z
2020-11-15T07:08:10.000Z
Python/MaxSumInSlidingWindow.py
ChanderJindal/Data_Structure_and_Algorithms
8268a5b8be6bc967af41d1985db1224d6c6afc5e
[ "MIT" ]
73
2019-10-11T06:38:10.000Z
2022-01-26T20:04:24.000Z
import math # this algorithm calculates the maximum sum present in the sublists of length k # in the array nums=list(map(int,input("enter the elements of the list\n").split())) k=int(input("enter the size of the window :")) cursum=sum(nums[:k]) maxsum= cursum for i in range(1,len(nums)-k): cursum=cursum-nums[i-1]+n...
27.6875
79
0.704289
0
0
0
0
0
0
0
0
179
0.404063
caabe05d542fa1d4213fb15dc48b72856aee1f2d
748
py
Python
tests/configs/learning-gem5-p1-two-level.py
samgh1230/gem5
01c41ec521352ccd6e857aa2bed808d38557b40d
[ "BSD-3-Clause" ]
3
2017-11-19T06:49:54.000Z
2018-12-26T18:08:11.000Z
tests/configs/learning-gem5-p1-two-level.py
samgh1230/gem5
01c41ec521352ccd6e857aa2bed808d38557b40d
[ "BSD-3-Clause" ]
1
2020-08-20T05:53:30.000Z
2020-08-20T05:53:30.000Z
tests/configs/learning-gem5-p1-two-level.py
samgh1230/gem5
01c41ec521352ccd6e857aa2bed808d38557b40d
[ "BSD-3-Clause" ]
6
2016-07-31T18:48:18.000Z
2022-03-06T22:41:28.000Z
# A wrapper around configs/learning_gem5/part1/two_level.py # For some reason, this is implicitly needed by run.py root = None import m5 def run_test(root): # Called from tests/run.py # Add paths that we need m5.util.addToPath('../configs/learning_gem5/part1') m5.util.addToPath('../...
29.92
76
0.653743
0
0
0
0
0
0
0
0
515
0.688503
caaccb98746ecf642948cea481675b0e4f50f8ca
13,233
py
Python
src/stactools/landsat/mtl_metadata.py
pjhartzell/landsat
56c1cdd4343a9ce44607b5f5b33def5278eca3a4
[ "Apache-2.0" ]
null
null
null
src/stactools/landsat/mtl_metadata.py
pjhartzell/landsat
56c1cdd4343a9ce44607b5f5b33def5278eca3a4
[ "Apache-2.0" ]
null
null
null
src/stactools/landsat/mtl_metadata.py
pjhartzell/landsat
56c1cdd4343a9ce44607b5f5b33def5278eca3a4
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from datetime import datetime from typing import Any, Dict, List, Optional from pyproj import Geod from pystac.utils import str_to_datetime from stactools.core.io import ReadHrefModifier from stactools.core.io.xml import XmlElement from stactools.core.projection import transform_fro...
37.808571
153
0.607194
12,859
0.971737
0
0
11,753
0.888158
0
0
5,296
0.400212
caace811c3bf865e13c6bf1803446ce42c096a7e
2,079
py
Python
lib/galaxy/model/orm/ext/assignmapper.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
lib/galaxy/model/orm/ext/assignmapper.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/orm/ext/assignmapper.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
""" This is similar to the assignmapper extensions in SQLAclhemy 0.3 and 0.4 but with some compatibility fixes. It assumes that the session is a ScopedSession, and thus has the "mapper" method to attach contextual mappers to a class. It adds additional query and session methods to the class to support the SQLAlchemy 0....
41.58
87
0.662338
0
0
0
0
0
0
0
0
761
0.366041
caad7ba8a2fcd067353d0063eebca93ac75d8669
2,191
py
Python
wrappers.py
cross32768/PlaNet_PyTorch
022baf724b52bf79e610f9d7a31e4195d6be6455
[ "MIT" ]
26
2019-12-30T06:45:16.000Z
2022-03-18T02:00:15.000Z
wrappers.py
cross32768/PlaNet_PyTorch
022baf724b52bf79e610f9d7a31e4195d6be6455
[ "MIT" ]
7
2019-12-29T14:46:36.000Z
2020-01-01T09:11:34.000Z
wrappers.py
cross32768/PlaNet_PyTorch
022baf724b52bf79e610f9d7a31e4195d6be6455
[ "MIT" ]
3
2020-05-23T17:23:22.000Z
2020-10-27T18:03:58.000Z
import gym import numpy as np from viewer import OpenCVImageViewer class GymWrapper(object): """ Gym interface wrapper for dm_control env wrapped by pixels.Wrapper """ metadata = {'render.modes': ['human', 'rgb_array']} reward_range = (-np.inf, np.inf) def __init__(self, env): self._e...
28.089744
89
0.600639
2,118
0.966682
0
0
343
0.15655
0
0
240
0.109539
caaded4bd578289725713128513fb77368214fe1
229
py
Python
run.py
mdasari823/fastmot-copy
28c50cdd9f816b94a6d463bad3ac897701c4e6e8
[ "MIT" ]
null
null
null
run.py
mdasari823/fastmot-copy
28c50cdd9f816b94a6d463bad3ac897701c4e6e8
[ "MIT" ]
1
2021-12-23T07:26:12.000Z
2021-12-23T07:26:12.000Z
run.py
mdasari823/fastmot-copy
28c50cdd9f816b94a6d463bad3ac897701c4e6e8
[ "MIT" ]
null
null
null
import os for run in range(1, 17): print (run) os.system('python3 app.py --input_uri ../camloc/oct22/'+str(run)+'.mp4 --mot --gui -l results.txt -o output.mp4') os.system('mv pixel-locs.txt camera_'+str(run)+'.txt')
32.714286
117
0.637555
0
0
0
0
0
0
0
0
125
0.545852
cab187b9189478433c28cb351566cfef54a3c790
3,175
py
Python
project/services/views.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
1
2021-06-29T13:28:44.000Z
2021-06-29T13:28:44.000Z
project/services/views.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
null
null
null
project/services/views.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from . import models from project import additional_scripts as scripts from django.http import HttpResponse, JsonResponse from django.template.loader import render_to_string from django.views.decorators.csrf import csrf_exempt import re # Create your views here. def get_default_...
50.396825
226
0.748976
0
0
0
0
920
0.289764
0
0
334
0.105197
cab46f38ed7e33ed8da42d9ab11d078861215107
11,952
py
Python
vispy/app/backends/_ipynb_webgl.py
robmcmullen/vispy
8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2
[ "BSD-3-Clause" ]
null
null
null
vispy/app/backends/_ipynb_webgl.py
robmcmullen/vispy
8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2
[ "BSD-3-Clause" ]
null
null
null
vispy/app/backends/_ipynb_webgl.py
robmcmullen/vispy
8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Vispy backend for the IPython notebook (WebGL approach). """ from __future__ import division from ..base import (BaseApplicationBackend, BaseCanvasBackend, ...
34.643478
79
0.556727
9,342
0.781627
0
0
0
0
0
0
2,753
0.230338
cab4bd43b931381073b462b76ec7bd88985afa84
347
py
Python
dp2.py
bourneagain/pythonBytes
be115162147e52718aacbfb9cd2763aa02754f28
[ "MIT" ]
1
2017-05-29T02:02:27.000Z
2017-05-29T02:02:27.000Z
dp2.py
bourneagain/pythonBytes
be115162147e52718aacbfb9cd2763aa02754f28
[ "MIT" ]
null
null
null
dp2.py
bourneagain/pythonBytes
be115162147e52718aacbfb9cd2763aa02754f28
[ "MIT" ]
null
null
null
fibMem= {} a="sam" def fib(n): for k in range(1,n+1): print "k : " + str(k) if k<=2: f=1 else: f=fibMem[k-1]+fibMem[k-2] print "printing f : " + str(f) fibMem[k]=f return fibMem[n] print fib(1000) #if __name__ == '__main__': # import timeit # print(timeit.timeit("print a", setup="from __m...
20.411765
77
0.582133
0
0
0
0
0
0
0
0
148
0.426513
cab5e991d555f4eb25c36074f5ce2e555de8a284
635
py
Python
[functions] Time_related.py
3n5/functions-python
be42f7b2108f8ed481956ce1c1ddc356c4ce17d6
[ "MIT" ]
2
2020-12-29T06:32:43.000Z
2020-12-29T06:32:45.000Z
[functions] Time_related.py
h4r3/functions-python
be42f7b2108f8ed481956ce1c1ddc356c4ce17d6
[ "MIT" ]
null
null
null
[functions] Time_related.py
h4r3/functions-python
be42f7b2108f8ed481956ce1c1ddc356c4ce17d6
[ "MIT" ]
null
null
null
#Time-related functions 2020/12/22 """Get elapsed time"""#[関数] プログラムの計測時間の表示 def time_elapsed(): import time print(__doc__) start = time.time() print('== Replace the program you want to time here ==') and time.sleep(1) end = time.time() _time=end-start hour,min,sec=_time//3600,_...
28.863636
79
0.637795
0
0
0
0
0
0
0
0
260
0.390977
cab6c8d8ca6e59ca96641958c8f303e7d2e0cead
434
py
Python
backend_sqlalchemy/backend_app/resources/stats.py
jiz148/medical_app
2f8b3f299ff6a87e62ac7483b6d2bac156a08874
[ "MIT" ]
null
null
null
backend_sqlalchemy/backend_app/resources/stats.py
jiz148/medical_app
2f8b3f299ff6a87e62ac7483b6d2bac156a08874
[ "MIT" ]
null
null
null
backend_sqlalchemy/backend_app/resources/stats.py
jiz148/medical_app
2f8b3f299ff6a87e62ac7483b6d2bac156a08874
[ "MIT" ]
null
null
null
from backend_sqlalchemy.backend_app.models.diseases import DiseasesModel from backend_sqlalchemy.backend_app.db import db from backend_sqlalchemy.backend_app.models.stats import StatsModel def get_stats(): """ Get stats """ all_stats = db.session.query(StatsModel.DID, StatsModel.FID, StatsModel.Sen) ...
24.111111
80
0.728111
0
0
0
0
0
0
0
0
25
0.057604
cab6fe7833f5fec0c5468b98e097935105bdd403
6,661
py
Python
tables/save_global_basin_curves_xls.py
thomasfrederikse/sealevelbudget_20c
eb3155da7255cd7e17cd574464e730b6ba16cb7d
[ "FSFAP" ]
12
2020-08-19T21:32:37.000Z
2022-02-23T12:35:42.000Z
tables/save_global_basin_curves_xls.py
thomasfrederikse/sealevelbudget_20c
eb3155da7255cd7e17cd574464e730b6ba16cb7d
[ "FSFAP" ]
1
2020-12-09T08:51:00.000Z
2020-12-09T08:51:00.000Z
tables/save_global_basin_curves_xls.py
thomasfrederikse/sealevelbudget_20c
eb3155da7255cd7e17cd574464e730b6ba16cb7d
[ "FSFAP" ]
null
null
null
# --------------------------------------------------------- # Save global and basin-mean sea-level curves as Excel file # Single file per basin # --------------------------------------------------------- import numpy as np import os import pandas as pd def main(): settings = {} settings['dir_data'] = os.gete...
76.563218
236
0.629035
0
0
0
0
0
0
0
0
3,613
0.542411
cab7a62a6440c568cac6b6e233a81c664d529376
3,053
py
Python
catalog/views.py
OdidiLavender/FoodWasteManagementProject
a5f339de79c9fb78771197089967caaf2ec1db18
[ "MIT" ]
null
null
null
catalog/views.py
OdidiLavender/FoodWasteManagementProject
a5f339de79c9fb78771197089967caaf2ec1db18
[ "MIT" ]
null
null
null
catalog/views.py
OdidiLavender/FoodWasteManagementProject
a5f339de79c9fb78771197089967caaf2ec1db18
[ "MIT" ]
null
null
null
from multiprocessing import context from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from .models import Food, Order from .forms import FoodForm # Create your views here. def home_view(request, template='index.html'): products = Food.objects...
34.303371
65
0.603013
0
0
0
0
1,152
0.377334
0
0
381
0.124795
cab85709d6006c0a36f8149a81345dd85e7eae3b
971
py
Python
awsrx/tailer.py
GEUS-PROMICE/awsrx
f593120a3593a0eb5dfe55c49f1ef72263ceeb5a
[ "MIT" ]
2
2020-11-13T08:26:14.000Z
2021-04-24T17:02:48.000Z
awsrx/tailer.py
GEUS-PROMICE/awsrx
f593120a3593a0eb5dfe55c49f1ef72263ceeb5a
[ "MIT" ]
null
null
null
awsrx/tailer.py
GEUS-PROMICE/awsrx
f593120a3593a0eb5dfe55c49f1ef72263ceeb5a
[ "MIT" ]
1
2021-07-22T08:46:44.000Z
2021-07-22T08:46:44.000Z
#! /usr/bin/python2.7 #coding=cp850 #mcit@geus.dk # #tail the in_files by lines and write them in out_subdir prepending the aws name # #TODO: quick hack: clean it up import glob, sys, os, os.path from collections import deque def tailer(in_files, lines_limit, out_subdir='.'): for path_name, aws_info in in_fi...
26.972222
80
0.584964
0
0
0
0
0
0
0
0
206
0.212152
cab9ac61743d32c048db9d32b01f12077629c7cb
403
py
Python
webapp/detectron/models.py
hasbegun/mask_rcnn
3e68ca053f00441950bbf441171b6f0a82ddf316
[ "MIT" ]
null
null
null
webapp/detectron/models.py
hasbegun/mask_rcnn
3e68ca053f00441950bbf441171b6f0a82ddf316
[ "MIT" ]
5
2020-03-31T07:10:39.000Z
2022-02-10T09:09:30.000Z
webapp/detectron/models.py
hasbegun/mask_rcnn
3e68ca053f00441950bbf441171b6f0a82ddf316
[ "MIT" ]
null
null
null
from django.db import models def user_upload_file_path(instance, filename): "find the path for user upload dir." return 'user_{0}/{1}'.format(instance.user.id, filename) class UploadFile(models.Model): desctiption = models.CharField(max_length=255, blank=True) upload_file = models.FileField(upload_t...
31
67
0.764268
220
0.545906
0
0
0
0
0
0
50
0.124069
cab9ed4e026d9fabb8a1a1bf7202062d7c63720a
744
py
Python
InnovationMaps/urls.py
OnlineS3/5.6.-RIS3-innovation-maps
118c1460ad13f1d56d5228187a0a570b42944cc6
[ "MIT" ]
null
null
null
InnovationMaps/urls.py
OnlineS3/5.6.-RIS3-innovation-maps
118c1460ad13f1d56d5228187a0a570b42944cc6
[ "MIT" ]
null
null
null
InnovationMaps/urls.py
OnlineS3/5.6.-RIS3-innovation-maps
118c1460ad13f1d56d5228187a0a570b42944cc6
[ "MIT" ]
null
null
null
"""Innovation Maps URL Configuration The `urlpatterns` list routes URLs to views. """ from django.conf.urls import url from InnovationMaps.views import * urlpatterns = [ url(r'^about/$', about, name='innovationmaps_about'), url(r'^guide/$', guide, name='innovationmaps_guide'), url(r'^pdf/$', pdf, name='inn...
39.157895
66
0.678763
0
0
0
0
0
0
0
0
408
0.548387
caba839088d90d9f3c925bdaedf92c7faa434941
885
py
Python
quick_django/main/models.py
masatoman/django_test
a850864e132246cffc9d7e2ad308c68623f79bd0
[ "MIT" ]
null
null
null
quick_django/main/models.py
masatoman/django_test
a850864e132246cffc9d7e2ad308c68623f79bd0
[ "MIT" ]
null
null
null
quick_django/main/models.py
masatoman/django_test
a850864e132246cffc9d7e2ad308c68623f79bd0
[ "MIT" ]
null
null
null
from django.db import models classBook(models.Model): isbn = models.CharField( verbose_name='ISBNコード', max_length=20 ) title = models.CharField( verbose_name='書名', max_length=100 ) price = models.IntegerField( verbose_name=...
26.818182
62
0.463277
0
0
0
0
0
0
0
0
294
0.292537
cababfdd4a279ee379d1a2e9140e141a7bd6a78b
2,892
py
Python
nc2json_HYCOM_GLBy_forecast.py
cyhsu/leaflet-velocity
3759902e995b0ebd5047c5558bbbf9887d1ebed0
[ "MIT" ]
null
null
null
nc2json_HYCOM_GLBy_forecast.py
cyhsu/leaflet-velocity
3759902e995b0ebd5047c5558bbbf9887d1ebed0
[ "MIT" ]
null
null
null
nc2json_HYCOM_GLBy_forecast.py
cyhsu/leaflet-velocity
3759902e995b0ebd5047c5558bbbf9887d1ebed0
[ "MIT" ]
null
null
null
import os, sys, json import numpy as np import xarray as xr from glob import glob from datetime import datetime from netCDF4 import Dataset, num2date, date2num from scipy.interpolate import griddata #- HYCOM GLBv0.08/latest (daily-mean) present + forecast #- Detail info: https://www.hycom.org/dataserver/gofs-3pt1/ana...
40.166667
117
0.662863
0
0
0
0
0
0
0
0
941
0.32538
cabba8c446bfd820cdac622caa53c5b56ff9c9ae
663
py
Python
patch/0000_groups.py
williamcanin/crud-django-cbv
9f2ede86b9106cc2bbe8b5b027d02e2a6f9cf002
[ "MIT" ]
1
2021-09-21T12:49:14.000Z
2021-09-21T12:49:14.000Z
patch/0000_groups.py
williamcanin/crud-django-cbv
9f2ede86b9106cc2bbe8b5b027d02e2a6f9cf002
[ "MIT" ]
null
null
null
patch/0000_groups.py
williamcanin/crud-django-cbv
9f2ede86b9106cc2bbe8b5b027d02e2a6f9cf002
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-02 01:57 # Add this file on migrations "clients" from django.db import migrations def apply_migration(apps, schema_editor): Group = apps.get_model('auth', 'Group') Group.objects.bulk_create([ Group(name=u'read_only'), ]) def revert_migration(apps, schema_ed...
21.387097
63
0.641026
193
0.291101
0
0
0
0
0
0
159
0.239819
cabf215598b0ef86cd55eda9871b7fe1d2891171
1,464
py
Python
EulerEight.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
14
2020-10-15T21:47:18.000Z
2021-12-01T06:06:51.000Z
EulerEight.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
null
null
null
EulerEight.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
4
2020-06-15T14:40:45.000Z
2021-06-15T06:22:03.000Z
# Project Euler - Problem 7 # What is the 10 001st prime number? import time start = time.time() s = "73167176531330624919225119674426574742355349194934\ 9698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511\ 12540698747158523863050715693290963295227443043557668966489504...
37.538462
101
0.846311
0
0
0
0
0
0
0
0
1,090
0.744536
cac13e4d297435c69c600284b0b6eb2c35f04a93
628
py
Python
app1/migrations/0092_auto_20210516_2203.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
6
2021-09-16T16:46:56.000Z
2022-02-06T13:00:08.000Z
app1/migrations/0092_auto_20210516_2203.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
null
null
null
app1/migrations/0092_auto_20210516_2203.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
1
2021-09-14T09:26:58.000Z
2021-09-14T09:26:58.000Z
# Generated by Django 3.1.2 on 2021-05-16 16:33 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app1', '0091_auto_20210516_2201'), ] operations = [ migrations.AddField( model_name='idea', name='us...
25.12
98
0.597134
519
0.826433
0
0
0
0
0
0
132
0.210191
cac156f76f885eb1f0b8909985d1e6e242b2f771
374
py
Python
projects/python/def/index.py
SunDawning/sundawning.github.io
ac70ed49c41cb544f1c49e4217808acb7373ca47
[ "MIT" ]
null
null
null
projects/python/def/index.py
SunDawning/sundawning.github.io
ac70ed49c41cb544f1c49e4217808acb7373ca47
[ "MIT" ]
20
2017-03-28T11:42:51.000Z
2017-09-29T13:15:31.000Z
projects/python/def/index.py
SunDawning/sundawning.github.io
ac70ed49c41cb544f1c49e4217808acb7373ca47
[ "MIT" ]
null
null
null
""" Adding an attribute to a Python dictionary from the standard library - Stack Overflow: https://stackoverflow.com/questions/11532060/adding-an-attribute-to-a-python-dictionary-from-the-standard-library """ class Dict(dict): pass def Foo(): SELF=Dict() SELF.a=1 def b(): return SELF.a SELF...
22
200
0.681818
26
0.069519
0
0
0
0
0
0
208
0.55615
cac27a4fdd875de8d39aa95f71a8e785bf4a097c
901
py
Python
lens/models/ext_models/deep_red/arffImporter.py
pietrobarbiero/logic_explained_networks
238f2a220ae8fc4f31ab0cf12649603aba0285d5
[ "Apache-2.0" ]
18
2021-05-24T07:47:57.000Z
2022-01-05T14:48:39.000Z
lens/models/ext_models/deep_red/arffImporter.py
pietrobarbiero/logic_explained_networks
238f2a220ae8fc4f31ab0cf12649603aba0285d5
[ "Apache-2.0" ]
1
2021-08-25T16:33:10.000Z
2021-08-25T16:33:10.000Z
lens/models/ext_models/deep_red/arffImporter.py
pietrobarbiero/deep-logic
238f2a220ae8fc4f31ab0cf12649603aba0285d5
[ "Apache-2.0" ]
2
2021-05-26T08:15:14.000Z
2021-08-23T18:58:16.000Z
import arff as arff import numpy as np datasetRepo = 'BreastCancer' datasetName = 'breast-cancer-wisconsinBinary' data_list=[] for row in arff.load('/home/lukas/Uni/AAThesis/Datasets/'+ datasetRepo +'/'+ datasetName +'.arff'): data_list.append(row) data_np=np.array(data_list,dtype=float) #eliminate missing #i...
30.033333
104
0.756937
0
0
0
0
0
0
0
0
410
0.45505
cac2971ae42c2e1eedf0e79789b0fb4607584896
1,550
py
Python
clipl/scripts/hadd.py
thomas-mueller/clipl
4c8c61dd4a09fee6ad2ec65f3baa6854cf9cce69
[ "MIT" ]
null
null
null
clipl/scripts/hadd.py
thomas-mueller/clipl
4c8c61dd4a09fee6ad2ec65f3baa6854cf9cce69
[ "MIT" ]
null
null
null
clipl/scripts/hadd.py
thomas-mueller/clipl
4c8c61dd4a09fee6ad2ec65f3baa6854cf9cce69
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import clipl.utility.logger as logger log = logging.getLogger(__name__) import argparse import clipl.utility.jsonTools as jsonTools import clipl.utility.tools as tools import glob import os import shlex import sys from clipl.utility.tools import hadd de...
28.703704
139
0.672903
0
0
0
0
0
0
0
0
421
0.271613
cac588be03ffc7ee32885771e6c662fba728e2e2
12,135
py
Python
process.py
Jacob-Zhou/CWS_Dict-rewrite
ef73c2c05acedef6a8e886286e2cd652676c9879
[ "MIT" ]
null
null
null
process.py
Jacob-Zhou/CWS_Dict-rewrite
ef73c2c05acedef6a8e886286e2cd652676c9879
[ "MIT" ]
null
null
null
process.py
Jacob-Zhou/CWS_Dict-rewrite
ef73c2c05acedef6a8e886286e2cd652676c9879
[ "MIT" ]
1
2019-06-23T07:21:05.000Z
2019-06-23T07:21:05.000Z
import codecs import collections from typing import * import os import tensorflow as tf import csv import tokenization import numpy as np import re import utils class InputExample(object): """A single training/test example for simple sequence classification.""" def __init__(self, guid, text, labels=None): ...
33.896648
95
0.567614
7,585
0.625052
0
0
1,107
0.091224
0
0
2,865
0.236094
cac76d33c2f744198aac139825eb16f25223cdbd
654
py
Python
trackers/SiamRPNpp/tracker/tracker_builder.py
htet96/Integration-of-THOR-and-SiamRPN-wip-
74d4baded10acfe6b35c6d7b2c66a3da6c36f4a1
[ "MIT" ]
null
null
null
trackers/SiamRPNpp/tracker/tracker_builder.py
htet96/Integration-of-THOR-and-SiamRPN-wip-
74d4baded10acfe6b35c6d7b2c66a3da6c36f4a1
[ "MIT" ]
null
null
null
trackers/SiamRPNpp/tracker/tracker_builder.py
htet96/Integration-of-THOR-and-SiamRPN-wip-
74d4baded10acfe6b35c6d7b2c66a3da6c36f4a1
[ "MIT" ]
1
2021-03-29T02:47:56.000Z
2021-03-29T02:47:56.000Z
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from siamrpnpp.core.config import cfg from siamrpnpp.tracker.siamrpn_tracker import SiamRPNTracker from siamrpnpp.tracker...
31.142857
64
0.792049
0
0
0
0
0
0
0
0
98
0.149847
caca10fc98e62440f55454d66c538a4a9f921292
807
py
Python
0778 Swim in Rising Water.py
MdAbedin/leetcode
e835f2e716ea5fe87f30b84801ede9bc023749e7
[ "MIT" ]
4
2020-09-11T02:36:11.000Z
2021-09-29T20:47:11.000Z
0778 Swim in Rising Water.py
MdAbedin/leetcode
e835f2e716ea5fe87f30b84801ede9bc023749e7
[ "MIT" ]
3
2020-09-10T03:51:42.000Z
2021-09-25T01:41:57.000Z
0778 Swim in Rising Water.py
MdAbedin/leetcode
e835f2e716ea5fe87f30b84801ede9bc023749e7
[ "MIT" ]
6
2020-09-10T03:46:15.000Z
2021-09-25T01:24:48.000Z
class Solution: def swimInWater(self, grid: List[List[int]]) -> int: t = 0 seen = set((0,0)) frontier = [(0,0)] while True: new_frontier = [] while frontier: y,x = frontier.pop() if grid[y]...
32.28
87
0.359356
806
0.998761
0
0
0
0
0
0
0
0
caca13b9f9987b6f832d8d595f3219235635f8e0
5,108
py
Python
GUI/RPi_data.py
leander-dsouza/URC-2019
6773e6b66dfb840bdbb4463441e8a855b42b1123
[ "MIT" ]
5
2020-05-10T11:03:48.000Z
2022-01-17T07:00:40.000Z
GUI/RPi_data.py
leander-dsouza/URC-2019
6773e6b66dfb840bdbb4463441e8a855b42b1123
[ "MIT" ]
null
null
null
GUI/RPi_data.py
leander-dsouza/URC-2019
6773e6b66dfb840bdbb4463441e8a855b42b1123
[ "MIT" ]
3
2020-07-13T14:11:12.000Z
2022-01-07T18:05:05.000Z
from PyQt5 import QtCore, QtWidgets, QtGui import pyqtgraph as pg import numpy as np import socket import pyproj from pyqtgraph import functions as fn from gps3 import gps3 import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBox from PyQt5.QtGui import QIc...
31.530864
141
0.646045
3,620
0.708692
0
0
0
0
0
0
1,222
0.239233
caca8b4bdada018953ac3b4a8cab365219d0c4bb
4,710
py
Python
UDBFData.py
residualsilence/pyudbf
4ebeaa5c4c4cfc62a040d659c2c2fe1fa4ee46be
[ "MIT" ]
null
null
null
UDBFData.py
residualsilence/pyudbf
4ebeaa5c4c4cfc62a040d659c2c2fe1fa4ee46be
[ "MIT" ]
null
null
null
UDBFData.py
residualsilence/pyudbf
4ebeaa5c4c4cfc62a040d659c2c2fe1fa4ee46be
[ "MIT" ]
null
null
null
import numpy as np from dataclasses import dataclass from typing import List, Any from datetime import datetime @dataclass(frozen=True) class UDBFHeader: """Data-class for meta-data of the UDBFData class. Attributes: udbf_version (int): Version of the UDBF file structure times 100. vendor (st...
32.260274
78
0.551592
4,544
0.964756
0
0
4,592
0.974947
0
0
2,524
0.535881
caca9e7e4c7e9fcaa5eda9ce8eed667687e6876a
34,263
py
Python
tests/scheduling/test_condition.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/scheduling/test_condition.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/scheduling/test_condition.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
import logging import pytest from psyneulink.core.components.functions.transferfunctions import Linear from psyneulink.core.components.mechanisms.processing.transfermechanism import TransferMechanism from psyneulink.core.components.projections.pathway.mappingprojection import MappingProjection from psyneulink.core.co...
41.330519
395
0.613636
33,351
0.973382
0
0
1,199
0.034994
0
0
1,391
0.040598
cacb6a4e06751d15dfbdbeba477c081483e1cd05
1,267
py
Python
blueprints/cms/admin.py
dchaplinsky/ninja-cats
d0760712d47eb391c01be137eb5cc5df0c450e86
[ "MIT" ]
null
null
null
blueprints/cms/admin.py
dchaplinsky/ninja-cats
d0760712d47eb391c01be137eb5cc5df0c450e86
[ "MIT" ]
null
null
null
blueprints/cms/admin.py
dchaplinsky/ninja-cats
d0760712d47eb391c01be137eb5cc5df0c450e86
[ "MIT" ]
1
2019-02-07T15:27:14.000Z
2019-02-07T15:27:14.000Z
from vulyk.admin.models import AuthModelView, CKTextAreaField from wtforms.validators import Required from wtforms.fields import SelectField class PluginsSelectField(SelectField): def __init__(self, *args, **kwargs): choices = [ ("", ""), ] from vulyk.app import TASKS_TYPES ...
23.90566
65
0.625888
1,111
0.876875
0
0
0
0
0
0
120
0.094712
cacd4256dc6120a59cb2c550ba1d38db5d54f626
1,488
py
Python
analysisTool/testtools/pickyinvestor.py
YueZiqihong/BacktestingProject
5940192dd3561fdaf50b84784751d53a5e40aec5
[ "MIT" ]
null
null
null
analysisTool/testtools/pickyinvestor.py
YueZiqihong/BacktestingProject
5940192dd3561fdaf50b84784751d53a5e40aec5
[ "MIT" ]
null
null
null
analysisTool/testtools/pickyinvestor.py
YueZiqihong/BacktestingProject
5940192dd3561fdaf50b84784751d53a5e40aec5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from . import datamonger class PickyInvestor(): def __init__(self): self.hushen300df = ['600038.SH','600522.SH','600406.SH','601800.SH'] def setBrokerDatabase(self, db_instance): self.brokerdb = db_instance def setMarketDatabase(self, db_instance): ...
31
91
0.609543
1,421
0.954973
0
0
0
0
0
0
432
0.290323
cacd4b38f867a34c81112b4cbf0a8aafc3d0f02e
5,717
py
Python
predictNN.py
stefanbo92/Kaggle-Titanic-Competition
b3b4cffdeef977d4cb5b37c41d60290f4b4c76c8
[ "MIT" ]
null
null
null
predictNN.py
stefanbo92/Kaggle-Titanic-Competition
b3b4cffdeef977d4cb5b37c41d60290f4b4c76c8
[ "MIT" ]
null
null
null
predictNN.py
stefanbo92/Kaggle-Titanic-Competition
b3b4cffdeef977d4cb5b37c41d60290f4b4c76c8
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf import datetime import csv as csv import pandas as pd import operator print ("Packages loaded") #load training and testing data train = pd.read_csv('input/train.csv', header = 0, dtype={'Age': np.float64}) test = pd.read_csv('input/test.csv' , header = 0, dtype={'A...
33.046243
103
0.668183
0
0
0
0
0
0
0
0
1,309
0.228966
cacee22303bdeb74b8fd99897abb8318af8068c7
286
py
Python
5/5B.py
allenalvin333/Hackerrank_Stats
54b61491377396adc2f529c88d1cfdb0cdc14709
[ "MIT" ]
null
null
null
5/5B.py
allenalvin333/Hackerrank_Stats
54b61491377396adc2f529c88d1cfdb0cdc14709
[ "MIT" ]
null
null
null
5/5B.py
allenalvin333/Hackerrank_Stats
54b61491377396adc2f529c88d1cfdb0cdc14709
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/s10-poisson-distribution-2/problem # Enter your code here. Read input from STDIN. Print output to STDOUT x,y = list(map(float, input().split(" "))) cost1 = 160 + 40*(x+x**2) cost2 = 128 + 40*(y+y**2) print(round(cost1, 3)) print(round(cost2, 3))
35.75
74
0.688811
0
0
0
0
0
0
0
0
146
0.51049
cacf9a2cc70649787fc954ebbb125da02d448c66
3,839
py
Python
index/DiskIndex.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2017-05-03T12:18:31.000Z
2017-05-03T12:18:31.000Z
index/DiskIndex.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
null
null
null
index/DiskIndex.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2020-10-29T04:00:04.000Z
2020-10-29T04:00:04.000Z
import os import index.MovieDAO as movieDAO from pprint import pprint from index import SysConst import shutil def getAllMovies(path): movieTypes = set(["avi", "mp4", "mkv", "rmvb", "wmv", "txt"]) results = [] for fpath, dirs, fs in os.walk(path): for filename in fs: fullpath...
33.675439
96
0.567856
0
0
0
0
0
0
0
0
701
0.182125
cad081edcdd3a2dbd2df62ac950a790986e0574a
30,555
py
Python
mmaction/models/recognizers/recognizer3d_semi_appsup_tempsup_simclr_crossclip_ptv.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
mmaction/models/recognizers/recognizer3d_semi_appsup_tempsup_simclr_crossclip_ptv.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
mmaction/models/recognizers/recognizer3d_semi_appsup_tempsup_simclr_crossclip_ptv.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn.functional as F import torch.nn as nn # Custom imports from .base_semi_apppearance_temporal_simclr import SemiAppTemp_SimCLR_BaseRecognizer from ..builder import RECOGNIZERS from ..losses import CosineSimiLoss from ...utils import GatherLayer @RECOGNIZERS.register_module() class Semi_App...
52.409949
142
0.602291
30,248
0.989953
0
0
30,279
0.990967
0
0
6,290
0.205858
cad1818d3242b33e885309feb138f0608365c2a1
83
py
Python
cloudprober/grpc_gcp_prober/versions.py
qixuanl1/grpc-gcp-python
5a2cd9807bbaf1b85402a2a364775e5b65853df6
[ "Apache-2.0" ]
10
2019-01-14T19:05:06.000Z
2021-03-08T18:48:47.000Z
cloudprober/grpc_gcp_prober/versions.py
qixuanl1/grpc-gcp-python
5a2cd9807bbaf1b85402a2a364775e5b65853df6
[ "Apache-2.0" ]
3
2018-09-10T17:52:44.000Z
2019-03-28T00:44:21.000Z
cloudprober/grpc_gcp_prober/versions.py
qixuanl1/grpc-gcp-python
5a2cd9807bbaf1b85402a2a364775e5b65853df6
[ "Apache-2.0" ]
11
2018-08-28T11:48:19.000Z
2021-10-09T16:18:36.000Z
"""This is a template file for holding version numbers.""" GRPC_VERSION = '1.11.0'
27.666667
58
0.710843
0
0
0
0
0
0
0
0
66
0.795181
cad40e90be13cab47bd5268c5b82d265267aefbf
29,968
py
Python
experiments/classCali_full_CRF/gpu_crf_eval_with_ece.py
neelabh17/SegmenTron
69a4d1da858aba9222994847000f9945be3f4cd5
[ "Apache-2.0" ]
null
null
null
experiments/classCali_full_CRF/gpu_crf_eval_with_ece.py
neelabh17/SegmenTron
69a4d1da858aba9222994847000f9945be3f4cd5
[ "Apache-2.0" ]
null
null
null
experiments/classCali_full_CRF/gpu_crf_eval_with_ece.py
neelabh17/SegmenTron
69a4d1da858aba9222994847000f9945be3f4cd5
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from ast import dump from numpy.lib.npyio import save from calibration_library.metrics import ECELoss, CCELoss import io from logging import log from experiments.classCali_full_CRF import convcrf from experiments.classCali_full_CRF.convcrf import GaussCRF, get_default_conf import...
37.181141
189
0.531734
27,845
0.929158
0
0
0
0
0
0
5,603
0.186966
cad510dc56f073e7603af970c006b57ebebf4ae0
9,585
py
Python
leavable_wait_page/pages.py
chkgk/leavable_wait_page
7bafe7492329d91e6e1df57996bd110fccb92abc
[ "MIT" ]
2
2020-02-01T11:47:03.000Z
2020-03-27T17:14:34.000Z
leavable_wait_page/pages.py
chkgk/leavable_wait_page
7bafe7492329d91e6e1df57996bd110fccb92abc
[ "MIT" ]
1
2020-08-13T02:34:56.000Z
2020-08-13T02:36:22.000Z
leavable_wait_page/pages.py
chkgk/leavable_wait_page
7bafe7492329d91e6e1df57996bd110fccb92abc
[ "MIT" ]
null
null
null
import time from django.http import HttpResponseRedirect from otree.models import Participant from . import models from ._builtin import Page, WaitPage class DecorateIsDisplayMixin(object): def __init__(self): super(DecorateIsDisplayMixin, self).__init__() # We need to edit is_displayed() method ...
49.153846
127
0.649557
9,424
0.983203
0
0
0
0
0
0
2,566
0.26771
cad58261e324fbea414f99255ccc6dcba0116684
7,424
py
Python
test/new_tests/test_info_single_node.py
syaiful6/aerospike-client-python
59fa0d36aa899a164282643fe49b27d12aaf323f
[ "Apache-2.0" ]
105
2015-01-07T09:51:13.000Z
2022-03-24T04:23:54.000Z
test/new_tests/test_info_single_node.py
syaiful6/aerospike-client-python
59fa0d36aa899a164282643fe49b27d12aaf323f
[ "Apache-2.0" ]
180
2015-01-01T19:29:50.000Z
2022-03-19T14:14:06.000Z
test/new_tests/test_info_single_node.py
syaiful6/aerospike-client-python
59fa0d36aa899a164282643fe49b27d12aaf323f
[ "Apache-2.0" ]
94
2015-01-21T19:17:48.000Z
2022-01-31T07:17:47.000Z
# -*- coding: utf-8 -*- import pytest import time import sys import socket from .test_base_class import TestBaseClass from .as_status_codes import AerospikeStatus from aerospike import exception as e aerospike = pytest.importorskip("aerospike") try: import aerospike except: print("Please install aerospike pyt...
32.419214
95
0.626212
6,753
0.909617
324
0.043642
7,041
0.948411
0
0
1,921
0.258755
cad5be719449448e1cb37622c1ab182044445704
7,175
py
Python
utils.py
malva28/Cliente-Eco-UDP-con-Correcci-n
d3ceccb2e2b96ef53040a2715a595653aa668f08
[ "MIT" ]
null
null
null
utils.py
malva28/Cliente-Eco-UDP-con-Correcci-n
d3ceccb2e2b96ef53040a2715a595653aa668f08
[ "MIT" ]
null
null
null
utils.py
malva28/Cliente-Eco-UDP-con-Correcci-n
d3ceccb2e2b96ef53040a2715a595653aa668f08
[ "MIT" ]
null
null
null
import argparse import os.path import sys import io import _io import filecmp from collections import OrderedDict from math import ceil import csv from queue import Queue, Empty def false(): return False class MyParser(argparse.ArgumentParser): def error(self, msg): sys.stderr.write('error: {}\n'.for...
29.166667
97
0.579512
6,578
0.915773
0
0
0
0
0
0
1,063
0.147988
cad6c0b1053bc8a29b767e1dedc6210f83381ace
457
py
Python
datatrans/migrations/0005_optional_aliasregistration_transaction_id.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
9
2017-09-12T12:45:30.000Z
2022-03-30T13:53:57.000Z
datatrans/migrations/0005_optional_aliasregistration_transaction_id.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
null
null
null
datatrans/migrations/0005_optional_aliasregistration_transaction_id.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
1
2021-11-08T10:21:01.000Z
2021-11-08T10:21:01.000Z
# Generated by Django 2.0 on 2018-01-29 07:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datatrans', '0004_alias_registration_fields_optional'), ] operations = [ migrations.AlterField( model_name='aliasregistration', ...
24.052632
86
0.643326
366
0.800875
0
0
0
0
0
0
132
0.28884
cada338b322e830c14a3de91f1b4a499e17be809
7,494
py
Python
buildroot/package/lmsmpris/src/mpris.py
mgrosso/hifiberry-os
47bad0e9abea0b72914cbd8b13b2b3fdbe656c6f
[ "MIT" ]
637
2016-12-05T15:13:49.000Z
2022-03-25T21:28:09.000Z
buildroot/package/lmsmpris/src/mpris.py
mgrosso/hifiberry-os
47bad0e9abea0b72914cbd8b13b2b3fdbe656c6f
[ "MIT" ]
294
2018-10-10T15:58:17.000Z
2022-03-29T09:35:36.000Z
buildroot/package/lmsmpris/src/mpris.py
mgrosso/hifiberry-os
47bad0e9abea0b72914cbd8b13b2b3fdbe656c6f
[ "MIT" ]
89
2018-06-04T05:18:24.000Z
2022-03-15T13:46:12.000Z
import dbus import time import logging from metadata import Metadata PLAYING = "playing" mpris = None MPRIS_NEXT = "Next" MPRIS_PREV = "Previous" MPRIS_PAUSE = "Pause" MPRIS_PLAYPAUSE = "PlayPause" MPRIS_STOP = "Stop" MPRIS_PLAY = "Play" mpris_commands = [MPRIS_NEXT, MPRIS_PREV, MPRIS_PAUSE, MPRI...
29.388235
76
0.52442
6,869
0.9166
0
0
0
0
0
0
1,540
0.205498
cadb3eae3b08f55a6a3bbd2cf0cf04010825242f
1,305
py
Python
chapter7/code/paramiko/ssh_brute_force.py
abbbhucho/Mastering-Python-for-Networking-and-Security
f4fb1131253e9daad8da501c297758fdcedfbac3
[ "MIT" ]
98
2018-05-13T20:41:43.000Z
2022-03-31T00:24:01.000Z
chapter7/code/paramiko/ssh_brute_force.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
null
null
null
chapter7/code/paramiko/ssh_brute_force.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
62
2018-06-19T13:46:34.000Z
2022-02-11T05:47:24.000Z
import paramiko,sys,os from socket import * host = raw_input('Enter host to scan: ') targetIP = gethostbyname(host) ssh = paramiko.SSHClient() def ssh_connect(user,password,code=0): ssh.load_system_host_keys() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) print("[*] Host: "+targetIP) print("[*] Tes...
23.727273
77
0.685824
0
0
0
0
0
0
0
0
275
0.210728
cadc7755eb3b3f1d4b9d8e68156a082b53c83cbb
1,743
py
Python
infra/gce-autoscale.py
szyszy/dist_test
a992ed1c007e9ec4850643e707bc803fbf5a084b
[ "Apache-2.0" ]
28
2016-05-03T21:16:48.000Z
2021-06-11T17:09:58.000Z
infra/gce-autoscale.py
szyszy/dist_test
a992ed1c007e9ec4850643e707bc803fbf5a084b
[ "Apache-2.0" ]
45
2016-05-03T22:16:09.000Z
2019-04-23T20:53:07.000Z
infra/gce-autoscale.py
szyszy/dist_test
a992ed1c007e9ec4850643e707bc803fbf5a084b
[ "Apache-2.0" ]
25
2016-04-20T00:02:08.000Z
2020-11-24T18:05:45.000Z
#!/usr/bin/env python import logging import re import subprocess import time import urllib2 DIST_TEST_URL = "http://dist-test.cloudera.org" # GCE bills 10-minute minimum, so if we've started instances # more recently than 10 minutes ago, we shouldn't shut them down. SHRINK_LAG = 600 def get_stats(): page = urllib2...
28.57377
87
0.659208
0
0
0
0
0
0
0
0
518
0.297189
caddabc98e1e06ce9ca265209e8431d9b8a8e5e5
396
py
Python
Leetcode/Array/2_-_Medium/1437._Check_If_All_1's_Are_at_Least_Length_K_Places_Away.py
Khalid-Sultan/Algorithms-Prep
7773c5bc0448d8677bf324bd1d9bdc43b813fcd5
[ "MIT" ]
1
2020-09-21T10:01:26.000Z
2020-09-21T10:01:26.000Z
Leetcode/Array/2_-_Medium/1437._Check_If_All_1's_Are_at_Least_Length_K_Places_Away.py
Khalid-Sultan/Algorithms-Prep
7773c5bc0448d8677bf324bd1d9bdc43b813fcd5
[ "MIT" ]
null
null
null
Leetcode/Array/2_-_Medium/1437._Check_If_All_1's_Are_at_Least_Length_K_Places_Away.py
Khalid-Sultan/Algorithms-Prep
7773c5bc0448d8677bf324bd1d9bdc43b813fcd5
[ "MIT" ]
2
2020-09-01T12:33:55.000Z
2020-11-30T13:23:50.000Z
class Solution: def kLengthApart(self, nums: List[int], k: int) -> bool: prev_1 = -1 for idx, i in enumerate(nums): if i==1: if prev_1==-1: prev_1 = idx continue if idx-prev_1-1>=k: prev_1 = idx ...
30.461538
60
0.406566
396
1
0
0
0
0
0
0
0
0
cadf2c0206812d71cdeb1d4e64b0d2ed452aaeca
2,587
py
Python
tests/nlu_core_tests/test_entire_namespace_unittest.py
UPbook-innovations/nlu
2ae02ce7b6ca163f47271e98b71de109d38adefe
[ "Apache-2.0" ]
1
2021-05-01T01:23:18.000Z
2021-05-01T01:23:18.000Z
tests/nlu_core_tests/test_entire_namespace_unittest.py
adbmd/nlu
c9b52a4ae001505bdb09c22c9ebd7e5b2ccf3b54
[ "Apache-2.0" ]
2
2021-09-28T05:55:05.000Z
2022-02-26T11:16:21.000Z
tests/nlu_core_tests/test_entire_namespace_unittest.py
atdavidpark/nlu
619d07299e993323d83086c86506db71e2a139a9
[ "Apache-2.0" ]
1
2021-09-13T10:06:20.000Z
2021-09-13T10:06:20.000Z
# content of test_expectation.py import pytest import nlu from nose2.tools import params import unittest from parameterized import parameterized, parameterized_class ''' Test every component in the NLU namespace. This can take very long ''' all_default_references = [] i=0 for nlu_reference in nlu.NameSpace.component_...
33.166667
85
0.707383
474
0.183224
0
0
363
0.140317
0
0
1,308
0.505605
cadfb2d6ce0426383623ded5f2662bc9dd5dd1ea
220
py
Python
app/main/__init__.py
Amukozoberit/Quotes2
80795a5208f9442bf954170a0e4b22d71c53eb81
[ "MIT" ]
null
null
null
app/main/__init__.py
Amukozoberit/Quotes2
80795a5208f9442bf954170a0e4b22d71c53eb81
[ "MIT" ]
null
null
null
app/main/__init__.py
Amukozoberit/Quotes2
80795a5208f9442bf954170a0e4b22d71c53eb81
[ "MIT" ]
null
null
null
from flask import Blueprint from ..models import Permission main=Blueprint('main',__name__) from . import views,errors @main.app_context_processor def inject_permissions(): return dict(Permission=Permission)
14.666667
38
0.781818
0
0
0
0
92
0.418182
0
0
6
0.027273
cae17f3ada10180582eda453dfd1179f17df81e8
2,158
py
Python
format.py
suut/psychic-happiness
56c0daef93f40b91e8a859f04a4660dde2b5c5c1
[ "Unlicense" ]
1
2020-02-25T10:47:00.000Z
2020-02-25T10:47:00.000Z
format.py
suut/psychic-happiness
56c0daef93f40b91e8a859f04a4660dde2b5c5c1
[ "Unlicense" ]
null
null
null
format.py
suut/psychic-happiness
56c0daef93f40b91e8a859f04a4660dde2b5c5c1
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3.4 # -*- coding: utf-8 -*- from forbiddenfruit import curse controlcodes = {'bold': '\x02', 'underlined': '\x1F', 'italic': '\x1D', 'reset': '\x0F', 'reverse': '\x16'} colorlist = {'white': '00', ...
29.972222
97
0.460612
976
0.452271
0
0
0
0
0
0
593
0.274791
cae1c80a7397a93055cad4f63295d5712bbe0db1
192
py
Python
Exercise 013.py
sayan-datapython/Learn_Python_Full_Course_for_Beginners
1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c
[ "MIT" ]
null
null
null
Exercise 013.py
sayan-datapython/Learn_Python_Full_Course_for_Beginners
1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c
[ "MIT" ]
null
null
null
Exercise 013.py
sayan-datapython/Learn_Python_Full_Course_for_Beginners
1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c
[ "MIT" ]
1
2020-09-30T14:25:51.000Z
2020-09-30T14:25:51.000Z
salario = float(input("Enter o seu salario: ")) novosalario = salario + (salario*0.15) print('O valor do salario e {} e o acrescimo de 15% no novo salario e {}'.format(salario, novosalario))
48
104
0.703125
0
0
0
0
0
0
0
0
91
0.473958
cae3775167ae0cae99118eee8c09154bac9abff6
2,565
py
Python
screens/mainScreen.py
superstap/jimi
d921b815c726e169c5a35f01a81eea8a75b8321d
[ "Apache-2.0" ]
111
2020-06-30T10:51:29.000Z
2022-03-29T00:33:48.000Z
screens/mainScreen.py
superstap/jimi
d921b815c726e169c5a35f01a81eea8a75b8321d
[ "Apache-2.0" ]
206
2020-07-02T22:48:49.000Z
2022-02-16T13:21:10.000Z
screens/mainScreen.py
superstap/jimi
d921b815c726e169c5a35f01a81eea8a75b8321d
[ "Apache-2.0" ]
24
2020-11-16T15:30:00.000Z
2022-02-10T03:20:14.000Z
import requests import time import os import json from pathlib import Path class mainScreen: def __init__(self): splash() self.menu = screen._screen([ ["select", None], ["select core",callSelectCore], ["time", getTime], ["splash", splash], ...
35.136986
122
0.473684
331
0.129045
0
0
0
0
0
0
1,236
0.481871
cae3d350a7769f9965a5864545deeaba068637e3
2,753
py
Python
main.py
loicgirard/pygame-3D
62b578918bdf8459779cf4f18ab542329601cd41
[ "MIT" ]
null
null
null
main.py
loicgirard/pygame-3D
62b578918bdf8459779cf4f18ab542329601cd41
[ "MIT" ]
null
null
null
main.py
loicgirard/pygame-3D
62b578918bdf8459779cf4f18ab542329601cd41
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * import sys from pygame3D import * <<<<<<< HEAD import time ======= import numpy as np import time import cv2 import math >>>>>>> 8da8f0ff1109db951a4915c1aecb7f4d7de41630 pygame.init() camera = Camera(position=(0, 0, 0), rotation=(0, 0, 0), fov=137, clipping_pla...
32.77381
116
0.578641
0
0
0
0
0
0
0
0
973
0.353433
cae475cf15eaab315664af14b56874ea55231098
1,171
py
Python
plugins/module_utils/ovh.py
PiMath22/infra-ovh-ansible-module
cbd9d1513f61001d1dcce56b1387fa0c9e3721f5
[ "MIT" ]
61
2017-03-28T09:38:19.000Z
2022-03-16T00:38:25.000Z
plugins/module_utils/ovh.py
PiMath22/infra-ovh-ansible-module
cbd9d1513f61001d1dcce56b1387fa0c9e3721f5
[ "MIT" ]
30
2017-08-16T08:57:09.000Z
2021-12-19T16:04:16.000Z
plugins/module_utils/ovh.py
PiMath22/infra-ovh-ansible-module
cbd9d1513f61001d1dcce56b1387fa0c9e3721f5
[ "MIT" ]
25
2017-05-30T10:25:32.000Z
2022-01-24T10:31:16.000Z
from __future__ import (absolute_import, division, print_function) __metaclass__ = type try: import ovh from ovh.exceptions import APIError HAS_OVH = True except ImportError: HAS_OVH = False def ovh_api_connect(module): if not HAS_OVH: module.fail_json(msg='python-ovh must be installed to...
30.815789
88
0.671221
0
0
0
0
0
0
0
0
139
0.118702
cae4941b80862b24ca4349b8e21a5e0aa4ef9345
68
py
Python
VERSION_INFO_SAMPLE.py
CubeZeero/AE_SpotifyCtrl
8635fa46800010a9ea4c9d6a6eb8c9baf942e117
[ "MIT" ]
null
null
null
VERSION_INFO_SAMPLE.py
CubeZeero/AE_SpotifyCtrl
8635fa46800010a9ea4c9d6a6eb8c9baf942e117
[ "MIT" ]
null
null
null
VERSION_INFO_SAMPLE.py
CubeZeero/AE_SpotifyCtrl
8635fa46800010a9ea4c9d6a6eb8c9baf942e117
[ "MIT" ]
null
null
null
def VERSION(): VERSION = 'YOUR_VERSION_HERE' return VERSION
17
33
0.691176
0
0
0
0
0
0
0
0
19
0.279412
cae4ec0d8b6fef60b4e8998414d13025c2d142e9
5,962
py
Python
subs2vec/similarities.py
jvparidon/sub2vec
adb9e72b64dc6dbde3c2060ee0d3964ab623a149
[ "MIT" ]
19
2019-09-23T20:31:54.000Z
2022-03-01T22:19:12.000Z
subs2vec/similarities.py
ClarasMind/subs2vec
adb9e72b64dc6dbde3c2060ee0d3964ab623a149
[ "MIT" ]
4
2019-11-26T21:12:53.000Z
2022-03-29T02:46:25.000Z
subs2vec/similarities.py
ClarasMind/subs2vec
adb9e72b64dc6dbde3c2060ee0d3964ab623a149
[ "MIT" ]
2
2020-09-30T15:02:32.000Z
2022-03-01T22:19:20.000Z
"""Compute rank correlations between word vector cosine similarities and human ratings of semantic similarity.""" import numpy as np import pandas as pd import argparse import os import scipy.spatial.distance import scipy.stats from .vecs import Vectors from .utensils import log_timer import logging logging.b...
48.080645
159
0.679638
0
0
0
0
3,176
0.532707
0
0
2,430
0.407581
cae50b168c1643c324a44991b116ba28feaccea9
1,772
py
Python
projectq/setups/ibm16_test.py
gavarela/ProjectQ
f2cec3cc1ea3775edd77c898ed8802af9f802533
[ "Apache-2.0" ]
2
2019-06-18T11:58:23.000Z
2020-04-26T20:39:32.000Z
projectq/setups/ibm16_test.py
gavarela/ProjectQ
f2cec3cc1ea3775edd77c898ed8802af9f802533
[ "Apache-2.0" ]
8
2019-08-13T11:22:36.000Z
2019-11-19T15:47:05.000Z
projectq/setups/ibm16_test.py
gavarela/ProjectQ
f2cec3cc1ea3775edd77c898ed8802af9f802533
[ "Apache-2.0" ]
1
2020-08-16T22:40:08.000Z
2020-08-16T22:40:08.000Z
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.916667
76
0.719526
0
0
0
0
0
0
0
0
644
0.363431
cae5c011002e812a851b5713900b33655f82a713
1,356
py
Python
backend/server/backend/migrations/0012_auto_20200801_2315.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
5
2020-08-26T00:15:01.000Z
2021-01-11T17:24:51.000Z
backend/server/backend/migrations/0012_auto_20200801_2315.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
69
2020-08-02T23:45:44.000Z
2021-04-17T03:04:32.000Z
backend/server/backend/migrations/0012_auto_20200801_2315.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
4
2020-09-10T05:40:49.000Z
2020-12-20T11:44:16.000Z
# Generated by Django 3.0.8 on 2020-08-01 23:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('backend', '0011_auto_20200731_2107'), ] operations = [ migrations.AlterField( model_name='code'...
33.9
107
0.623894
1,230
0.90708
0
0
0
0
0
0
291
0.214602
cae5ebe8c6d1f42aa7dd3dd33da4b132a54dd359
8,345
py
Python
module/tokenizer.py
irebai/wav2vec2
461dc98292ad0dc7aa6f76a1d8d923f84a758d4f
[ "Apache-2.0" ]
3
2021-06-02T22:30:57.000Z
2022-03-02T15:31:04.000Z
module/tokenizer.py
irebai/wav2vec2
461dc98292ad0dc7aa6f76a1d8d923f84a758d4f
[ "Apache-2.0" ]
1
2022-03-16T14:21:11.000Z
2022-03-16T14:21:11.000Z
module/tokenizer.py
irebai/wav2vec2
461dc98292ad0dc7aa6f76a1d8d923f84a758d4f
[ "Apache-2.0" ]
null
null
null
import sentencepiece as spm import logging import json import sys import os import re import copy from typing import Any, Dict, List, Optional, Union from transformers import Wav2Vec2CTCTokenizer from itertools import groupby logger = logging.getLogger(__name__) logging.basicConfig( format="%(asctime)s - %(levelna...
31.254682
103
0.545956
7,873
0.942987
0
0
5,326
0.637921
0
0
1,489
0.178345
caee7405f72c31710c4a76b26d18b5e0202497d9
2,794
py
Python
tests/unit/app/test_session.py
cswarth/whylogs
6805b252f1d07efde84836d3924949f7ec2d97b1
[ "Apache-2.0" ]
603
2020-07-31T23:26:10.000Z
2022-03-31T23:05:36.000Z
tests/unit/app/test_session.py
cswarth/whylogs
6805b252f1d07efde84836d3924949f7ec2d97b1
[ "Apache-2.0" ]
284
2021-03-02T21:28:03.000Z
2022-03-31T22:36:08.000Z
tests/unit/app/test_session.py
cswarth/whylogs
6805b252f1d07efde84836d3924949f7ec2d97b1
[ "Apache-2.0" ]
39
2020-08-14T21:22:08.000Z
2022-03-29T20:24:54.000Z
import pytest from whylogs.app.config import SessionConfig from whylogs.app.session import ( Session, get_or_create_session, get_session, reset_default_session, session_from_config, ) def test_get_global_session(): session = get_or_create_session() global_session = get_session() ass...
27.126214
98
0.721546
0
0
0
0
0
0
0
0
333
0.119184
caef0d0629c15343e9df7473db70cc7cfee8bd44
863
py
Python
paper/scripts/parse_hg19_Genome_FASTA.py
CEGRcode/GenoPipe
76c2bd553582a51aa1f83a3b5e916663dd8f1e18
[ "MIT" ]
null
null
null
paper/scripts/parse_hg19_Genome_FASTA.py
CEGRcode/GenoPipe
76c2bd553582a51aa1f83a3b5e916663dd8f1e18
[ "MIT" ]
null
null
null
paper/scripts/parse_hg19_Genome_FASTA.py
CEGRcode/GenoPipe
76c2bd553582a51aa1f83a3b5e916663dd8f1e18
[ "MIT" ]
null
null
null
import sys import argparse valid_chr = ["chr1", "chr2", "chr3", "chr4", "chr5", "chr6", "chr7", "chr8", "chr9", "chr10", "chr11", "chr12", "chr13", "chr14", "chr15", "chr16", "chr17", "chr18", "chr19", "chr20", "chr21", "chr22", "chrM", "chrX", "chrY"] def get_params(): parser = argparse.ArgumentParser(d...
23.324324
138
0.64774
0
0
0
0
0
0
0
0
328
0.38007
caef9773708a6b2a6663f3f50808e394425a0baf
1,742
py
Python
demos/python_demos/image_retrieval_demo/image_retrieval_demo/roi_detector_on_video.py
evgeny-izutov/open_model_zoo
2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba
[ "Apache-2.0" ]
5
2020-03-09T07:39:04.000Z
2021-08-16T07:17:28.000Z
demos/python_demos/image_retrieval_demo/image_retrieval_demo/roi_detector_on_video.py
evgeny-izutov/open_model_zoo
2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba
[ "Apache-2.0" ]
8
2020-09-26T00:40:13.000Z
2022-03-12T00:14:30.000Z
demos/python_demos/image_retrieval_demo/image_retrieval_demo/roi_detector_on_video.py
evgeny-izutov/open_model_zoo
2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba
[ "Apache-2.0" ]
4
2020-04-21T17:31:00.000Z
2021-10-18T07:04:49.000Z
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
30.034483
99
0.668197
1,006
0.577497
0
0
0
0
0
0
733
0.420781
caf034be7b02abcd1a1172a30827469cf3491119
672
py
Python
buildroot/support/testing/tests/package/test_python_pytest_asyncio.py
inverse/operating-system
bb7964ff021eebc5e194f03a2b14ccf6efc3e8d6
[ "Apache-2.0" ]
349
2021-08-17T08:46:53.000Z
2022-03-30T06:25:25.000Z
buildroot/support/testing/tests/package/test_python_pytest_asyncio.py
TopSWorld/operating-system
99a4d4ea75e5afd53f7e71422726f9d3200b25a3
[ "Apache-2.0" ]
2
2021-08-29T11:29:57.000Z
2021-08-30T12:00:05.000Z
buildroot/support/testing/tests/package/test_python_pytest_asyncio.py
TopSWorld/operating-system
99a4d4ea75e5afd53f7e71422726f9d3200b25a3
[ "Apache-2.0" ]
12
2021-08-17T20:10:30.000Z
2022-01-06T10:52:54.000Z
import os from tests.package.test_python import TestPythonPackageBase class TestPythonPy3PytestAsyncio(TestPythonPackageBase): __test__ = True config = TestPythonPackageBase.config + \ """ BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON_PYTEST=y BR2_PACKAGE_PYTHON_PYTEST_ASYNCIO=y ...
32
77
0.691964
598
0.889881
0
0
0
0
0
0
185
0.275298
caf2fd807c83b6852b321d0fe1d8c3415691086c
35
py
Python
demo.py
sebedoyar/Demo-Clase
ad95dfc78864451da95cb0ce7fd65ef9e5b9728f
[ "MIT" ]
null
null
null
demo.py
sebedoyar/Demo-Clase
ad95dfc78864451da95cb0ce7fd65ef9e5b9728f
[ "MIT" ]
null
null
null
demo.py
sebedoyar/Demo-Clase
ad95dfc78864451da95cb0ce7fd65ef9e5b9728f
[ "MIT" ]
null
null
null
print ('Hola Mundo desde demo.py')
17.5
34
0.714286
0
0
0
0
0
0
0
0
26
0.742857
caf3064cbecd8a96460c32ca717913b340bf5d76
516
py
Python
piccolo/columns/__init__.py
Fingel/piccolo
9091e2a14aa7ac93937c1f5602721d97c975662e
[ "MIT" ]
null
null
null
piccolo/columns/__init__.py
Fingel/piccolo
9091e2a14aa7ac93937c1f5602721d97c975662e
[ "MIT" ]
null
null
null
piccolo/columns/__init__.py
Fingel/piccolo
9091e2a14aa7ac93937c1f5602721d97c975662e
[ "MIT" ]
null
null
null
from .column_types import ( # noqa: F401 Boolean, Bytea, Date, Decimal, Float, ForeignKey, Integer, Interval, JSON, JSONB, Numeric, PrimaryKey, Real, Secret, Serial, Text, Timestamp, Timestamptz, UUID, Varchar, ) from .base import ( # noq...
16.125
55
0.604651
0
0
0
0
0
0
0
0
48
0.093023
caf41dbd85255511abe44215a30940d32474994c
519
py
Python
produtos.py
rodrigomoreira777/POO2021.2
7c5d45148882337e4d72258f50f14eda8d42d1df
[ "MIT" ]
null
null
null
produtos.py
rodrigomoreira777/POO2021.2
7c5d45148882337e4d72258f50f14eda8d42d1df
[ "MIT" ]
null
null
null
produtos.py
rodrigomoreira777/POO2021.2
7c5d45148882337e4d72258f50f14eda8d42d1df
[ "MIT" ]
null
null
null
import ferramentas_usuarios as fe class Produto: codigo = fe.gera_codigo() def __init__(self, data_ger, prazo_ent, inicio_pro, final_proc, inicio_cont, final_cont): """Cria um banco de dados baseado em um arquivo TXT""" self.data_geracao = data_ger self.prazo_entrega = prazo_ent ...
32.4375
93
0.695568
482
0.928709
0
0
0
0
0
0
54
0.104046
caf48cc7fd48dcdd4b394a1391829b50017bd13c
489
py
Python
src/main/resources/pytz/zoneinfo/Africa/Mbabane.py
TheEin/swagger-maven-plugin
cf93dce2d5c8d3534f4cf8c612b11e2d2313871b
[ "Apache-2.0" ]
65
2015-11-14T13:46:01.000Z
2021-08-14T05:54:04.000Z
lib/pytz/zoneinfo/Africa/Mbabane.py
tjsavage/polymer-dashboard
19bc467f1206613f8eec646b6f2bc43cc319ef75
[ "CNRI-Python", "Linux-OpenIB" ]
13
2016-03-31T20:00:17.000Z
2021-08-20T14:52:31.000Z
lib/pytz/zoneinfo/Africa/Mbabane.py
tjsavage/polymer-dashboard
19bc467f1206613f8eec646b6f2bc43cc319ef75
[ "CNRI-Python", "Linux-OpenIB" ]
20
2015-03-18T08:41:37.000Z
2020-12-18T02:58:30.000Z
'''tzinfo timezone information for Africa/Mbabane.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Mbabane(DstTzInfo): '''Africa/Mbabane timezone definition. See datetime.tzinfo for details''' zone = 'Africa/Mbabane' ...
21.26087
77
0.689162
283
0.578732
0
0
0
0
0
0
153
0.312883
caf71c9e764e7f9cc0a44834ec06b0816dd53183
1,108
py
Python
data_processing.py
lanlehoang67/Galaxies-Classification
2ee35a418e1e93529b3c0522a6f0f07be6818a51
[ "MIT" ]
null
null
null
data_processing.py
lanlehoang67/Galaxies-Classification
2ee35a418e1e93529b3c0522a6f0f07be6818a51
[ "MIT" ]
null
null
null
data_processing.py
lanlehoang67/Galaxies-Classification
2ee35a418e1e93529b3c0522a6f0f07be6818a51
[ "MIT" ]
null
null
null
import warnings import numpy as np import matplotlib.pyplot as plt import pandas as pd from PIL import Image solutions = pd.read_csv('D:\\code\\galaxy-zoo-the-galaxy-challenge\\training_solutions_rev1.csv', sep = ',') solutions = solutions.loc[solutions["Class1.3"] < 0.5] solutions = solutions.loc[:, ["GalaxyID", "Clas...
52.761905
133
0.695848
0
0
0
0
0
0
0
0
442
0.398917
caf821a157dc5d0ae68a5868b42fb9f3ac134445
2,470
py
Python
app/models/registration/phone_sender.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/models/registration/phone_sender.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/models/registration/phone_sender.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Module 'phone_sender' of the project 'tingerwork' # :date_create: 11.12.2017.4:21 # :author: Tingerlink # :description: import json import requests import config.settings import tools.logger as logger class PhoneSender: def __init__(self): self.password = config.se...
44.107143
124
0.59919
2,617
0.914715
0
0
0
0
0
0
1,463
0.51136
caf8377c81dfe105d39fee6b3a818984e3e52135
154
py
Python
3. Linear Regresion/3-2)Autograd.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
3. Linear Regresion/3-2)Autograd.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
3. Linear Regresion/3-2)Autograd.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
import torch w=torch.tensor(2.0,requires_grad=True)#set variable y=w**2 z=2*y+5 z.backward()#grad print('수식을 w로 미분한 값 : {}'.format(w.grad))#call result
17.111111
53
0.701299
0
0
0
0
0
0
0
0
65
0.382353
caf8c9497a6a18b4424ce269c5bc4d42454d82d8
4,155
py
Python
methods/arope_main.py
aida-ugent/graph-vis-eval
8e15737542488c3abe1cbdf7da4dbd87011a0d8c
[ "MIT" ]
null
null
null
methods/arope_main.py
aida-ugent/graph-vis-eval
8e15737542488c3abe1cbdf7da4dbd87011a0d8c
[ "MIT" ]
null
null
null
methods/arope_main.py
aida-ugent/graph-vis-eval
8e15737542488c3abe1cbdf7da4dbd87011a0d8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file was originally developed for EvalNE by Alexandru Cristian Mara import argparse import numpy as np import networkx as nx import ast import time from utils import AROPE # Although the method says it requires python 3.5, it should be run with python 2.7 for optim...
36.447368
119
0.612996
0
0
0
0
0
0
0
0
1,685
0.405535
cafa342f68372739cf2be15cd31ab6536193eaad
241
py
Python
poetry/utils/helpers.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
poetry/utils/helpers.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
poetry/utils/helpers.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
import re _canonicalize_regex = re.compile('[-_.]+') def canonicalize_name(name: str) -> str: return _canonicalize_regex.sub('-', name).lower() def module_name(name: str) -> str: return canonicalize_name(name).replace('-', '_')
20.083333
53
0.676349
0
0
0
0
0
0
0
0
17
0.070539
cafa51ff6545b99480852d33b0550b9abe3eb455
15,670
py
Python
mygrid/power_flow/backward_forward_sweep_3p.py
grei-ufc/MyGrid
c42fe9d4e0838f253dd5b0716cbf0c892136d931
[ "MIT" ]
3
2018-03-02T11:18:51.000Z
2021-07-30T23:22:18.000Z
mygrid/power_flow/backward_forward_sweep_3p.py
grei-ufc/MyGrid
c42fe9d4e0838f253dd5b0716cbf0c892136d931
[ "MIT" ]
8
2017-11-06T12:15:15.000Z
2019-04-29T13:41:27.000Z
mygrid/power_flow/backward_forward_sweep_3p.py
grei-ufc/MyGrid
c42fe9d4e0838f253dd5b0716cbf0c892136d931
[ "MIT" ]
4
2019-03-20T11:26:04.000Z
2021-06-03T19:28:05.000Z
# -*- coding: utf-8 -*- import copy from mygrid.util import Phasor, R, P from mygrid.util import r2p, p2r from mygrid.grid import Section, TransformerModel, Auto_TransformerModel import numpy as np # from pycallgraph import PyCallGraph # from pycallgraph.output import GraphvizOutput from numba import jit from functo...
32.04499
101
0.572942
0
0
0
0
2,118
0.134733
0
0
3,412
0.217048
cafb24814eb097820d02a880a3235f040ebd6635
212
py
Python
NOV26/03.py
Razdeep/PythonSnippets
76f9313894f511c487a99bc38bdf0fe5e594caf5
[ "MIT" ]
null
null
null
NOV26/03.py
Razdeep/PythonSnippets
76f9313894f511c487a99bc38bdf0fe5e594caf5
[ "MIT" ]
null
null
null
NOV26/03.py
Razdeep/PythonSnippets
76f9313894f511c487a99bc38bdf0fe5e594caf5
[ "MIT" ]
null
null
null
# Create a dataframe using pandas series import pandas as pd cols = ['a','b'] list_of_series = [pd.Series([1,2],index=cols), pd.Series([3,4],index=cols)] df = pd.DataFrame(list_of_series, columns=cols) print(df)
30.285714
75
0.716981
0
0
0
0
0
0
0
0
46
0.216981
cafc0364eb82044fdfe153c9ed4bca8077eb7856
1,036
py
Python
contxt/cli/commands/assets.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
4
2019-06-04T17:59:52.000Z
2020-09-09T17:33:30.000Z
contxt/cli/commands/assets.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
61
2019-05-24T17:49:56.000Z
2022-03-24T15:22:57.000Z
contxt/cli/commands/assets.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
2
2021-12-07T01:03:56.000Z
2022-02-18T16:40:24.000Z
from typing import List import click from contxt.cli.clients import Clients from contxt.cli.utils import fields_option, print_table, sort_option from contxt.models.assets import Asset, AssetType @click.group() def assets() -> None: """Assets.""" @assets.command() @fields_option(default=["id", "label", "descri...
29.6
76
0.710425
0
0
0
0
830
0.801158
0
0
112
0.108108
cafc4de57835e7699aa3fc23c1d712de48724ce8
3,785
py
Python
test4/test_brownian_motion.py
WINGS-ABC-programming-tutorial/mlflow-demo
2af7ad439c5feebc5af3ba67086c0077fe142bbe
[ "MIT" ]
null
null
null
test4/test_brownian_motion.py
WINGS-ABC-programming-tutorial/mlflow-demo
2af7ad439c5feebc5af3ba67086c0077fe142bbe
[ "MIT" ]
null
null
null
test4/test_brownian_motion.py
WINGS-ABC-programming-tutorial/mlflow-demo
2af7ad439c5feebc5af3ba67086c0077fe142bbe
[ "MIT" ]
null
null
null
import numpy as np import pytest from lib4.brownian_motion import BrownianMotion, ParamBrownianMotion CORRECT_DATASET = [ # (seed, initial_state, sigma, state_trajectory) (123, 0.0, 10.0, np.array([ 0., -9.891213503, -13.56908001, -0.68982741, ])), (456, -2.0, 1.0, np.ar...
30.039683
93
0.564333
3,511
0.893612
0
0
2,699
0.686943
0
0
437
0.111224
cafc7e9bfd9667324e0c0cf4454da54de8d2d177
4,280
py
Python
src/exec/exec.py
rdoddanavar/hpr-sim
d2bc892865a093939f0a7e7c0713af849e87099a
[ "MIT" ]
3
2021-01-30T21:22:06.000Z
2022-01-12T06:49:01.000Z
src/exec/exec.py
rdoddanavar/hpr-sim
d2bc892865a093939f0a7e7c0713af849e87099a
[ "MIT" ]
68
2019-04-22T20:06:11.000Z
2022-03-26T19:03:17.000Z
src/exec/exec.py
rdoddanavar/hpr-sim
d2bc892865a093939f0a7e7c0713af849e87099a
[ "MIT" ]
2
2021-01-30T21:22:08.000Z
2021-04-27T06:15:33.000Z
# System modules import sys import os import pdb import pathlib import copy import multiprocessing as mp import numpy as np import yaml # Path modifications paths = ["../../build/src", "../preproc", "../util"] for item in paths: addPath = pathlib.Path(__file__).parent / item sys.path.append(str(addPath.resolv...
24.457143
80
0.577336
0
0
0
0
0
0
0
0
1,355
0.316589
caffd1b73a689729f231cad50675ec1c7e0fe3f4
29
py
Python
ephypype/gather/__init__.py
jasmainak/ephypype
257603cbb099cef7847a96c8eb141332fb85ebfa
[ "BSD-3-Clause" ]
null
null
null
ephypype/gather/__init__.py
jasmainak/ephypype
257603cbb099cef7847a96c8eb141332fb85ebfa
[ "BSD-3-Clause" ]
null
null
null
ephypype/gather/__init__.py
jasmainak/ephypype
257603cbb099cef7847a96c8eb141332fb85ebfa
[ "BSD-3-Clause" ]
null
null
null
from . import gather_conmats
14.5
28
0.827586
0
0
0
0
0
0
0
0
0
0
1b020a047efb286d2a4246ddd8cdf39ac6043bbd
40
py
Python
src/poetry/puzzle/__init__.py
sivanbecker/poetry
72497bcb66b5a1cc20e3aa95973c523a22b05bfa
[ "MIT" ]
1
2020-02-01T07:13:05.000Z
2020-02-01T07:13:05.000Z
src/poetry/puzzle/__init__.py
sivanbecker/poetry
72497bcb66b5a1cc20e3aa95973c523a22b05bfa
[ "MIT" ]
1
2021-12-31T19:44:26.000Z
2022-03-08T20:52:13.000Z
src/poetry/puzzle/__init__.py
sivanbecker/poetry
72497bcb66b5a1cc20e3aa95973c523a22b05bfa
[ "MIT" ]
2
2020-12-07T04:26:21.000Z
2021-09-25T21:46:36.000Z
from poetry.puzzle.solver import Solver
20
39
0.85
0
0
0
0
0
0
0
0
0
0
1b0267cda0ae00986428ec6b28e72c523d8d9663
16,916
py
Python
sellerhub/amazon/orders/ordersFile_columnization.py
clair513/SellerHub
1bbc173c24c47e9ce1ec43bf627f281267c75fe7
[ "MIT" ]
1
2021-03-13T19:36:49.000Z
2021-03-13T19:36:49.000Z
sellerhub/amazon/orders/ordersFile_columnization.py
clair513/SellerHub
1bbc173c24c47e9ce1ec43bf627f281267c75fe7
[ "MIT" ]
null
null
null
sellerhub/amazon/orders/ordersFile_columnization.py
clair513/SellerHub
1bbc173c24c47e9ce1ec43bf627f281267c75fe7
[ "MIT" ]
null
null
null
""" Script# : 3 INPUT: Raw Data File generated by Amazon Seller Central Portal for a particular seller that has been fed as webpage input by registered User AND undergone 'ordersFile_preprocessing' script. OUTPUT: Delivers data for Information Dashboard as a Pandas DataFrame or TextParserself. Generalization and a...
60.848921
1,234
0.632537
0
0
0
0
0
0
0
0
10,815
0.639336
1b02aed7e5de0af16b5239e868db60820eb7d130
448
py
Python
C1-G/generator.py
Matrix53/algo
7a176dac9ed9c6ad65d1514afb6388f7ee6b912a
[ "MIT" ]
1
2021-12-14T08:54:11.000Z
2021-12-14T08:54:11.000Z
C1-G/generator.py
Matrix53/algo
7a176dac9ed9c6ad65d1514afb6388f7ee6b912a
[ "MIT" ]
null
null
null
C1-G/generator.py
Matrix53/algo
7a176dac9ed9c6ad65d1514afb6388f7ee6b912a
[ "MIT" ]
1
2021-12-13T09:31:40.000Z
2021-12-13T09:31:40.000Z
from cyaron import * max_node = 1000000 for i in range(5): io = IO(str(i + 1) + '.in', str(i + 1) + '.out') tree = Graph.tree(max_node) leaf = [] for i in tree.edges: if len(i) == 1: leaf.append(randint(0, 10000)) io.input_writeln(max_node) io.input_writeln(tree.to_str(outp...
28
76
0.613839
0
0
0
0
0
0
0
0
68
0.151786
1b02b03b1b37281b6a5b8bf7031ec157a8175644
19,091
py
Python
src/model/soccer.py
celsomilne/soccer
b3b164b6610ebd88b13601970d2d4e65423d0a57
[ "MIT" ]
null
null
null
src/model/soccer.py
celsomilne/soccer
b3b164b6610ebd88b13601970d2d4e65423d0a57
[ "MIT" ]
2
2021-06-08T20:34:37.000Z
2022-02-10T01:12:59.000Z
src/model/soccer.py
celsomilne/soccer
b3b164b6610ebd88b13601970d2d4e65423d0a57
[ "MIT" ]
null
null
null
import numpy as np import cv2 import pandas as pd from ._base import ModelBase def merge_similar_lines(l, lines): # Put unique lines in array if theres only 1, for looping if len(lines.shape) == 1: lines = np.array([lines]) # Translate line to align with each unique line d = np.column_stack...
36.926499
104
0.510031
14,280
0.747996
0
0
0
0
0
0
4,775
0.250118
1b03eaa75d1aee551f363fcba0197ce33eaa2183
766
py
Python
osprey/cli/parser_worker.py
rmcgibbo/osprey
0e0e11cafa3976854c0009be3bc562b8344218c6
[ "Apache-2.0" ]
5
2015-01-13T20:17:45.000Z
2016-07-12T15:14:07.000Z
osprey/cli/parser_worker.py
rmcgibbo/osprey
0e0e11cafa3976854c0009be3bc562b8344218c6
[ "Apache-2.0" ]
null
null
null
osprey/cli/parser_worker.py
rmcgibbo/osprey
0e0e11cafa3976854c0009be3bc562b8344218c6
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, absolute_import, division from argparse import ArgumentDefaultsHelpFormatter def func(args, parser): # delay import of the rest of the module to improve `osprey -h` performance from ..execute_worker import execute execute(args, parser) def configure_parser(sub_pars...
40.315789
79
0.703655
0
0
0
0
0
0
0
0
234
0.305483
1b057e16eef03b8e12ad5db657ab5807f753c9c8
4,772
py
Python
lightshow.py
Antidisestablishmentarianism/lightshow
13d248698e0e47ed5b19fb662959c359db7dca03
[ "MIT" ]
null
null
null
lightshow.py
Antidisestablishmentarianism/lightshow
13d248698e0e47ed5b19fb662959c359db7dca03
[ "MIT" ]
null
null
null
lightshow.py
Antidisestablishmentarianism/lightshow
13d248698e0e47ed5b19fb662959c359db7dca03
[ "MIT" ]
null
null
null
#!/usr/bin/sudo / usr/bin/python import RPi.GPIO as GPIO import random from time import sleep # Use board pin numbering GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) # Start a new dictionary with desired LED names leds = {'floor':[], 'top-left':[]} # Take name of led and list of pins for RGB def setupled(name, p...
25.794595
98
0.551341
0
0
0
0
0
0
0
0
483
0.101215
1b08b94f653176a7bb3c4eeecbcb0204092d0a1b
2,711
py
Python
configboy/build_config.py
aaronhua123/configboy
ac0a0d65cd6b8a9b7b0cbb9679ed7b5e551d547c
[ "MIT" ]
1
2019-12-06T06:44:39.000Z
2019-12-06T06:44:39.000Z
configboy/build_config.py
aaronhua123/configboy
ac0a0d65cd6b8a9b7b0cbb9679ed7b5e551d547c
[ "MIT" ]
null
null
null
configboy/build_config.py
aaronhua123/configboy
ac0a0d65cd6b8a9b7b0cbb9679ed7b5e551d547c
[ "MIT" ]
null
null
null
import configparser from jinja2 import Template conf = configparser.ConfigParser() # 用config对象读取配置文件 conf.read("base.config.ini") sections = conf.sections() dit = {} def analyze_ini(): ''' 分析ini配置文件读取的数据,放到dit里面 :return: ''' for classname in sections: print(classname, conf.items(classname...
25.575472
69
0.520472
0
0
0
0
0
0
0
0
899
0.316884
1b08dc9a93ae5d847eaf7656765d8790a54f1236
9,833
py
Python
dynts/dsl/ast/base.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
57
2015-02-10T13:42:06.000Z
2022-03-28T14:48:36.000Z
dynts/dsl/ast/base.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
1
2016-11-01T07:43:05.000Z
2016-11-01T07:43:05.000Z
dynts/dsl/ast/base.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
17
2015-05-08T04:09:19.000Z
2021-08-02T19:24:52.000Z
from functools import reduce from dynts.conf import settings from ...api import timeseries, is_timeseries class Expr: '''Base class for abstract syntax nodes ''' def count(self): '''Number of nodes''' return 1 def malformed(self): return False @property ...
27.855524
89
0.548866
9,626
0.978948
0
0
187
0.019018
0
0
1,795
0.182549
1b0944c79f8a702fe2867a9d3d9ea2355da44f81
5,633
py
Python
utils/codes_distance.py
wemozj/Image-Compression-based-GMM-and-Attention-Module
93f804dbcea8ffc1621456f3d104d0342c75373b
[ "Apache-2.0" ]
null
null
null
utils/codes_distance.py
wemozj/Image-Compression-based-GMM-and-Attention-Module
93f804dbcea8ffc1621456f3d104d0342c75373b
[ "Apache-2.0" ]
null
null
null
utils/codes_distance.py
wemozj/Image-Compression-based-GMM-and-Attention-Module
93f804dbcea8ffc1621456f3d104d0342c75373b
[ "Apache-2.0" ]
null
null
null
""" Calculates distance of some (bpp, metric) point (for some metric) to some codec on some dataset. """ import os import numpy as np import scipy.interpolate from utils import other_codecs import constants from utils import logdir_helpers from collections import defaultdict from fjcommon import functools_ext as ft f...
37.304636
118
0.650985
1,093
0.194035
0
0
0
0
0
0
1,224
0.217291
1b09c96060e99d69a41efe3615e2a630b16fe7b1
18,056
py
Python
guestbook.py
Wangchl2016/Music-Library
0351d36b98a45e689ce2ec1c014e9f7ac88ff6ce
[ "Apache-2.0" ]
null
null
null
guestbook.py
Wangchl2016/Music-Library
0351d36b98a45e689ce2ec1c014e9f7ac88ff6ce
[ "Apache-2.0" ]
null
null
null
guestbook.py
Wangchl2016/Music-Library
0351d36b98a45e689ce2ec1c014e9f7ac88ff6ce
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
32.829091
79
0.562528
15,548
0.861099
0
0
0
0
0
0
4,776
0.26451
1b0a112beb6f9b817075fb1f13f1e51e8667d3a1
2,245
py
Python
tests/e2e_test.py
david-wirelab/tf-localstack
b92f1e3ddbaf1f643ffd8b30aa9dd7969c350969
[ "MIT" ]
null
null
null
tests/e2e_test.py
david-wirelab/tf-localstack
b92f1e3ddbaf1f643ffd8b30aa9dd7969c350969
[ "MIT" ]
null
null
null
tests/e2e_test.py
david-wirelab/tf-localstack
b92f1e3ddbaf1f643ffd8b30aa9dd7969c350969
[ "MIT" ]
null
null
null
import os import unittest from runner import Runner MODULE_NAME = "e2e" RESOURCE_TYPE = "aws_vpc.this" class TestE2E(unittest.TestCase): @classmethod def setUpClass(self): self.snippet = """ provider "aws" { access_key = "test" region ...
37.416667
117
0.460579
2,091
0.931403
0
0
1,905
0.848552
0
0
1,851
0.824499
1b0a363108dd0c38113cdb177788d3d39fa06984
854
py
Python
statistics/phoneNumber.py
SLIPO-EU/poi-data-exploration
4d11a14423a5b68c56da4131e67ff36e11dabe16
[ "Apache-2.0" ]
1
2019-02-25T09:36:36.000Z
2019-02-25T09:36:36.000Z
statistics/phoneNumber.py
SLIPO-EU/poi-data-exploration
4d11a14423a5b68c56da4131e67ff36e11dabe16
[ "Apache-2.0" ]
null
null
null
statistics/phoneNumber.py
SLIPO-EU/poi-data-exploration
4d11a14423a5b68c56da4131e67ff36e11dabe16
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from collections import OrderedDict from .statistics import Statistics class PhoneNumber(Statistics): categories = { ('Only numbers', '^[0-9]+$'), ('Numbers and parentheses', '^(?:[0-9]*[\(][0-9]+[\)][0-9]*)+$'), ('Numbers and + symbol', '^(?:[0-9]*[\+][0-9]+)+$'), ('Nu...
35.583333
67
0.569087
742
0.868852
0
0
0
0
0
0
441
0.516393
1b0a78407a818985d4fb61e0d744f1663cbde1b1
2,256
py
Python
tests/e2e/test_service.py
bleckfisk/audio-transcoder
e66e8c0038c594c12b84dd12fdcbc30d28b2263b
[ "MIT" ]
null
null
null
tests/e2e/test_service.py
bleckfisk/audio-transcoder
e66e8c0038c594c12b84dd12fdcbc30d28b2263b
[ "MIT" ]
1
2022-01-12T21:06:30.000Z
2022-01-12T21:06:30.000Z
tests/e2e/test_service.py
bleckfisk/audio-transcoder
e66e8c0038c594c12b84dd12fdcbc30d28b2263b
[ "MIT" ]
1
2020-02-20T07:40:57.000Z
2020-02-20T07:40:57.000Z
from pydub import AudioSegment import os from pydub.utils import mediainfo from unittest import mock from service.core import process_message from service.aws_boto3 import ( listen_sqs_queue, create_s3_resource, create_sqs_resource, ) from service.settings import ( REQUEST_QUEUE_NAME ) """ These two f...
27.512195
78
0.698582
0
0
0
0
1,620
0.718085
0
0
820
0.363475
1b0cffde6a4bdaa088def23eae68fff02a1bde5e
3,156
py
Python
src/vccs/server/password.py
SUNET/VCCS2
e5645bf19b92c1420559355b2bb1592792a6777b
[ "BSD-2-Clause" ]
null
null
null
src/vccs/server/password.py
SUNET/VCCS2
e5645bf19b92c1420559355b2bb1592792a6777b
[ "BSD-2-Clause" ]
null
null
null
src/vccs/server/password.py
SUNET/VCCS2
e5645bf19b92c1420559355b2bb1592792a6777b
[ "BSD-2-Clause" ]
null
null
null
from typing import List, Union from binascii import unhexlify from ndnkdf import NDNKDF from vccs.server.db import PasswordCredential from vccs.server.factors import RequestFactor from vccs.server.hasher import VCCSYHSMHasher from vccs.server.log import audit_log async def authenticate_password( cred: PasswordCr...
41.526316
123
0.676806
0
0
0
0
0
0
2,885
0.914132
1,596
0.505703
1b0d0f7270ae5a49b20324d6bac9fd80de40cf21
1,226
py
Python
src/magplan/xmd/tests/test_utils.py
f1nnix/magplan
1bda6b53c6e96129e6634bff786b3052d04b0cef
[ "Unlicense" ]
21
2018-12-14T09:08:11.000Z
2022-01-28T14:33:24.000Z
src/magplan/xmd/tests/test_utils.py
f1nnix/magplan
1bda6b53c6e96129e6634bff786b3052d04b0cef
[ "Unlicense" ]
20
2019-01-11T20:40:01.000Z
2022-01-30T16:01:38.000Z
src/magplan/xmd/tests/test_utils.py
f1nnix/magplan
1bda6b53c6e96129e6634bff786b3052d04b0cef
[ "Unlicense" ]
5
2019-02-08T01:21:51.000Z
2021-11-25T17:43:04.000Z
import io from unittest import TestCase import pytest from django.core.files import File from django_dynamic_fixture import G from magplan.models import Attachment from magplan.xmd.utils import get_attachment_original_filename @pytest.mark.django_db class Test_get_attachment_original_filename(TestCase): def set...
33.135135
100
0.707993
971
0.792007
0
0
994
0.810767
0
0
243
0.198206
1b0ed233a468637761bc287409daba800a6b9ca3
17,877
py
Python
topnum/utils.py
machine-intelligence-laboratory/OptimalNumberOfTopics
87267223987a4cb54b3f0ec431e87ee684044c7b
[ "MIT" ]
5
2020-05-06T14:13:54.000Z
2020-09-06T15:54:01.000Z
topnum/utils.py
machine-intelligence-laboratory/OptimalNumberOfTopics
87267223987a4cb54b3f0ec431e87ee684044c7b
[ "MIT" ]
54
2020-02-10T07:08:31.000Z
2020-09-08T21:45:39.000Z
topnum/utils.py
machine-intelligence-laboratory/OptimalNumberOfTopics
87267223987a4cb54b3f0ec431e87ee684044c7b
[ "MIT" ]
2
2021-01-16T08:40:25.000Z
2021-06-04T05:35:36.000Z
import glob import numpy as np import os import pandas as pd import strictyaml import tempfile import shutil import warnings from collections import defaultdict from inspect import signature from strictyaml import Map, Str, Optional, Int, CommaSeparated import topicnet from topicnet.cooking_machine.dataset import Da...
31.753108
100
0.654976
159
0.008894
0
0
0
0
0
0
4,102
0.229457
1b11280aec2954ad2cb925dd13d21f509185c325
4,757
py
Python
approaches/networkx-graph/pac_naive_regexp_checker.py
athityakumar/btp
a1bdad0ed6162faa482673347707c09228d6cd9c
[ "MIT" ]
1
2022-01-26T15:51:30.000Z
2022-01-26T15:51:30.000Z
approaches/networkx-graph/pac_naive_regexp_checker.py
athityakumar/btp
a1bdad0ed6162faa482673347707c09228d6cd9c
[ "MIT" ]
7
2017-08-25T12:36:20.000Z
2018-04-23T04:08:38.000Z
approaches/networkx-graph/pac_naive_regexp_checker.py
athityakumar/btp
a1bdad0ed6162faa482673347707c09228d6cd9c
[ "MIT" ]
null
null
null
from pac_library import * from regexp_naive import * def fetch_training_words(language): return(read_wordpairs('../daru-dataframe/spec/fixtures/'+language+'-train-high')) def fetch_testing_words(language): return(read_wordpairs('../daru-dataframe/spec/fixtures/'+language+'-dev')) def fetch_common_words(language)...
36.037879
145
0.741644
0
0
0
0
0
0
0
0
532
0.111835
1b11d7196c949a260576fffad7c4fd1f42930580
454
py
Python
product/urls.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
1
2022-01-01T21:46:48.000Z
2022-01-01T21:46:48.000Z
product/urls.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
null
null
null
product/urls.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
null
null
null
from django.urls import path,include from product.views import ( ProductDetailView, ProductView, shopping_cart, wishlist ) app_name='product' urlpatterns = [ path('product-detail/<int:pk>/', ProductDetailView.as_view(),name='product_detail'), path('product-list/', ProductView.as_view(),name=...
21.619048
88
0.702643
0
0
0
0
0
0
0
0
132
0.290749
1b11dd7f020db59bea173f520097d51262b0c2fe
66
py
Python
Problems/A complex expression/task.py
gabrielizalo/jetbrains-academy-zookeeper
467b43da3cb81f82987daf6b063eb2078d476d4f
[ "MIT" ]
null
null
null
Problems/A complex expression/task.py
gabrielizalo/jetbrains-academy-zookeeper
467b43da3cb81f82987daf6b063eb2078d476d4f
[ "MIT" ]
null
null
null
Problems/A complex expression/task.py
gabrielizalo/jetbrains-academy-zookeeper
467b43da3cb81f82987daf6b063eb2078d476d4f
[ "MIT" ]
null
null
null
n = int(input()) new_n = ((((n * 2) * n) - n) // n) print(new_n)
13.2
34
0.439394
0
0
0
0
0
0
0
0
0
0
1b11ee2a8c6b97121d035177bf542ec2e234d162
1,346
py
Python
GestureAgentsDemo/Utils.py
chaosct/GestureAgents
9ec0adb1e59bf995d5808431edd4cb8bf8907728
[ "MIT" ]
1
2015-01-22T10:42:09.000Z
2015-01-22T10:42:09.000Z
GestureAgentsDemo/Utils.py
chaosct/GestureAgents
9ec0adb1e59bf995d5808431edd4cb8bf8907728
[ "MIT" ]
null
null
null
GestureAgentsDemo/Utils.py
chaosct/GestureAgents
9ec0adb1e59bf995d5808431edd4cb8bf8907728
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from GestureAgentsDemo.Render import Update, drawBatch from pyglet.text import Label from pyglet.clock import schedule_once class DynamicValue(object): """docstring for DynamicValue""" def __init__(self, value=0): self.value = value self.target = value self.tim...
28.638298
67
0.559435
1,191
0.884844
0
0
0
0
0
0
55
0.040862
1b134054808512cec966fe38a018749a27aa30c8
1,437
py
Python
jiant/tasks/lib/mbe.py
zlucia/jiant
24aa148b6c617c82a635cd2a526dc4be5129e330
[ "MIT" ]
null
null
null
jiant/tasks/lib/mbe.py
zlucia/jiant
24aa148b6c617c82a635cd2a526dc4be5129e330
[ "MIT" ]
null
null
null
jiant/tasks/lib/mbe.py
zlucia/jiant
24aa148b6c617c82a635cd2a526dc4be5129e330
[ "MIT" ]
null
null
null
from dataclasses import dataclass from jiant.tasks.lib.templates.shared import labels_to_bimap from jiant.tasks.lib.templates import multiple_choice as mc_template from jiant.utils.python.io import read_jsonl @dataclass class Example(mc_template.Example): @property def task(self): return MbeTask @dataclass class...
24.775862
83
0.727905
1,174
0.81698
0
0
717
0.498956
0
0
105
0.073069
1b14ba6dfc104cd29d8728d7b3da4a46ddc37365
1,590
py
Python
tcfcli/cmds/native/common/runtime/python3.6/pstool/winps.py
alfredhuang211/scfcli
f5e086ff4fcee8d645682e85cd1486b28a224d08
[ "Apache-2.0" ]
103
2019-06-11T06:09:56.000Z
2021-12-18T22:48:59.000Z
tcfcli/cmds/native/common/runtime/python3.6/pstool/winps.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
8
2019-07-12T12:08:40.000Z
2020-10-20T07:18:17.000Z
tcfcli/cmds/native/common/runtime/python3.6/pstool/winps.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
49
2019-06-11T06:26:05.000Z
2020-02-19T08:13:36.000Z
__all__ = ['win_peak_memory'] import ctypes from ctypes import wintypes GetCurrentProcess = ctypes.windll.kernel32.GetCurrentProcess GetCurrentProcess.argtypes = [] GetCurrentProcess.restype = wintypes.HANDLE SIZE_T = ctypes.c_size_t class PROCESS_MEMORY_COUNTERS_EX(ctypes.Structure): _fields_ = [ ('cb'...
32.44898
81
0.692453
512
0.322013
0
0
0
0
0
0
341
0.214465
1b1629216fd1f26d4a22e42ef8c1b7d156606871
3,120
py
Python
trojai/test/modelgen/test_modelgen_config.py
C0ldstudy/trojai
10ac6c719f367a569a48b19e7ef18cf90df3a310
[ "Apache-2.0" ]
59
2019-07-11T02:33:38.000Z
2022-02-02T01:51:29.000Z
trojai/test/modelgen/test_modelgen_config.py
C0ldstudy/trojai
10ac6c719f367a569a48b19e7ef18cf90df3a310
[ "Apache-2.0" ]
4
2020-04-13T03:48:32.000Z
2021-09-11T05:13:57.000Z
trojai/test/modelgen/test_modelgen_config.py
C0ldstudy/trojai
10ac6c719f367a569a48b19e7ef18cf90df3a310
[ "Apache-2.0" ]
19
2019-09-17T21:09:06.000Z
2022-03-31T17:55:18.000Z
import unittest from unittest.mock import Mock import os import shutil import tempfile import torchvision.models as models from trojai.modelgen.architecture_factory import ArchitectureFactory from trojai.modelgen.data_manager import DataManager from trojai.modelgen.config import ModelGeneratorConfig class MyArchFa...
35.454545
109
0.707692
2,761
0.884936
0
0
103
0.033013
0
0
143
0.045833