hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
d4563d756cea51df08af818dd4f5a3f61d84a870
231
py
Python
4.py
CarineGhisiCadorin/infosatc-lp-avaliativo-02
0018df4f52c0659611c484c909ff4bbf925c450a
[ "MIT" ]
null
null
null
4.py
CarineGhisiCadorin/infosatc-lp-avaliativo-02
0018df4f52c0659611c484c909ff4bbf925c450a
[ "MIT" ]
null
null
null
4.py
CarineGhisiCadorin/infosatc-lp-avaliativo-02
0018df4f52c0659611c484c909ff4bbf925c450a
[ "MIT" ]
null
null
null
lista = [1,2,3,4,5,6,7,8,9,10] print(lista) lista2 = [11, 12, 13] print(lista2) lista_completa = lista + lista2 print(lista_completa) #Ou listaA = [1,2,3,4,5,6,7,8,9,10] listaB = [11, 12, 13] listaA = listaB.copy() print(listaA)
17.769231
31
0.65368
d457da1f72c081a9943cc4f083598a70a7403071
14,240
py
Python
soundsig/discriminate.py
theunissenlab/sounsig
fca413aa71ce6fec079c59e615e328e6781d1d35
[ "MIT" ]
22
2017-08-05T12:41:49.000Z
2022-01-24T23:14:59.000Z
soundsig/discriminate.py
theunissenlab/sounsig
fca413aa71ce6fec079c59e615e328e6781d1d35
[ "MIT" ]
3
2017-07-06T19:23:54.000Z
2020-10-13T10:41:27.000Z
soundsig/discriminate.py
theunissenlab/sounsig
fca413aa71ce6fec079c59e615e328e6781d1d35
[ "MIT" ]
6
2017-05-13T18:41:23.000Z
2022-01-24T23:15:01.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis as QDA from sklearn.ensemble import RandomForestClassifier as RF from sklearn.mode...
41.037464
134
0.589466
d457ff551e1af72008fb3c2b85fdd39fc33404b0
4,477
py
Python
backend_receitas/core/views.py
gugact/backend_web
32b72ec460c1b6bae63bfd391c87b0c4bf644821
[ "Apache-2.0" ]
null
null
null
backend_receitas/core/views.py
gugact/backend_web
32b72ec460c1b6bae63bfd391c87b0c4bf644821
[ "Apache-2.0" ]
null
null
null
backend_receitas/core/views.py
gugact/backend_web
32b72ec460c1b6bae63bfd391c87b0c4bf644821
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from rest_framework import viewsets from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from django.http import * from django.contrib.auth import * fro...
33.162963
101
0.682153
d458328c51a408b45453324ab4274a2b24ca3ca7
4,133
py
Python
test_requests.py
charlax/vcrpy
1d3fe5c33ecf06b494fa6cbea4acd62585820687
[ "MIT" ]
null
null
null
test_requests.py
charlax/vcrpy
1d3fe5c33ecf06b494fa6cbea4acd62585820687
[ "MIT" ]
null
null
null
test_requests.py
charlax/vcrpy
1d3fe5c33ecf06b494fa6cbea4acd62585820687
[ "MIT" ]
null
null
null
# coding=utf-8 import os import unittest import vcr import requests TEST_CASSETTE_FILE = 'cassettes/test_req.yaml'
37.572727
121
0.709412
d459cbe1a695f12684fad0e549571c60487537ba
736
py
Python
src/predict.py
tarasowski/starbucks-offer-engine
51b80e5b390b58427d842964867a5db2aed6dda6
[ "MIT" ]
1
2020-02-19T06:59:30.000Z
2020-02-19T06:59:30.000Z
src/predict.py
tarasowski/starbucks-offer-engine
51b80e5b390b58427d842964867a5db2aed6dda6
[ "MIT" ]
null
null
null
src/predict.py
tarasowski/starbucks-offer-engine
51b80e5b390b58427d842964867a5db2aed6dda6
[ "MIT" ]
null
null
null
import joblib from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score if __name__ == '__main__': model = joblib.load('../models/model.pkl') S_test = joblib.load('../models/S_test.pkl') y_test = joblib.load('../models/y_test.pkl') main((model, S_test, y_test))
35.047619
83
0.677989
d45bb49795fcb2f093014163608b945bdcaafd58
3,238
py
Python
examples/optimize_polyfaces.py
hh-wu/ezdxf
62509ba39b826ee9b36f19c0a5abad7f3518186a
[ "MIT" ]
1
2021-06-05T09:15:15.000Z
2021-06-05T09:15:15.000Z
examples/optimize_polyfaces.py
luoyu-123/ezdxf
40963a2010028f87846241e08434f43ab421f3fb
[ "MIT" ]
null
null
null
examples/optimize_polyfaces.py
luoyu-123/ezdxf
40963a2010028f87846241e08434f43ab421f3fb
[ "MIT" ]
null
null
null
# Purpose: open example files with big polyface models # Created: 23.04.2014 # Copyright (c) 2014-2020, Manfred Moitzi # License: MIT License import time from pathlib import Path import ezdxf from ezdxf.render import MeshVertexMerger SRCDIR = Path(r'D:\Source\dxftest\CADKitSamples') OUTDIR = Path('~/Desktop/Outbox')....
32.38
94
0.661519
d45c7405d2149d4710720762085175c95dab0d57
1,576
py
Python
glashammer/bundles/contrib/dev/firephp.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
1
2016-07-04T15:23:59.000Z
2016-07-04T15:23:59.000Z
glashammer/bundles/contrib/dev/firephp.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
null
null
null
glashammer/bundles/contrib/dev/firephp.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
null
null
null
# adapted from http://code.cmlenz.net/diva/browser/trunk/diva/ext/firephp.py # (c) 2008 C. M. Lenz, Glashammer Developers from time import time from logging import Handler from simplejson import dumps from glashammer.utils import local from glashammer.utils.log import add_log_handler LEVEL_MAP = {'DEBUG': 'LOG', ...
29.735849
85
0.64467
d45e087825bbd78e5f7c80d653a07a247d6d0607
5,667
py
Python
neural machine translation/data_load.py
quanganh1997polytechnique/Project-DL-Seq2Seq
de7b118ec865af60ee44c5a463f59ac548e76794
[ "MIT" ]
null
null
null
neural machine translation/data_load.py
quanganh1997polytechnique/Project-DL-Seq2Seq
de7b118ec865af60ee44c5a463f59ac548e76794
[ "MIT" ]
null
null
null
neural machine translation/data_load.py
quanganh1997polytechnique/Project-DL-Seq2Seq
de7b118ec865af60ee44c5a463f59ac548e76794
[ "MIT" ]
null
null
null
""" ** deeplean-ai.com ** created by :: GauravBh1010tt contact :: gauravbhatt.deeplearn@gmail.com """ from __future__ import unicode_literals, print_function, division import math import re import os import numpy as np import torch import random import warnings from io import open import unicodedata import matplotlib...
26.85782
77
0.640551
d45fdaebbda1324d20d94461daceb3de9d2ddda0
9,041
py
Python
tests/channels/mock.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
415
2016-06-10T00:46:55.000Z
2021-10-16T00:56:06.000Z
tests/channels/mock.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
25
2016-06-11T13:48:59.000Z
2021-01-05T11:19:30.000Z
tests/channels/mock.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
109
2016-06-11T05:17:05.000Z
2021-12-22T11:02:22.000Z
import codecs import two1.bitcoin as bitcoin import two1.bitcoin.utils as utils import two1.channels.server as server import two1.channels.blockchain as blockchain import two1.channels.statemachine as statemachine
41.856481
181
0.685433
d46043e7e3ee4e0fd2cb4b7196675dd558bf6307
2,256
py
Python
dev/Gems/CloudGemMetric/v1/AWS/common-code/LoadTest/LoadTest__CloudGemMetric.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Gems/CloudGemMetric/v1/AWS/common-code/LoadTest/LoadTest__CloudGemMetric.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
null
null
null
dev/Gems/CloudGemMetric/v1/AWS/common-code/LoadTest/LoadTest__CloudGemMetric.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or the ...
35.809524
143
0.734486
d461b5026cb626462925369752d7e402976cff47
2,300
py
Python
subir/base.py
xyla-io/subir
fde16a16643466aa64ea43647c588caf3d3057cf
[ "MIT" ]
null
null
null
subir/base.py
xyla-io/subir
fde16a16643466aa64ea43647c588caf3d3057cf
[ "MIT" ]
null
null
null
subir/base.py
xyla-io/subir
fde16a16643466aa64ea43647c588caf3d3057cf
[ "MIT" ]
null
null
null
from __future__ import annotations import re import pandas as pd from enum import Enum from typing import Dict
28.04878
139
0.630435
d463a1c535606eac893445765a893c90912ac9f7
756
py
Python
python/django-app/config/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
python/django-app/config/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
23
2020-08-15T15:18:32.000Z
2022-02-26T13:49:05.000Z
python/django-app/config/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import (static, ) urlpatterns = [ path('admin/', admin.site.urls), path('api-auth/', include('rest_framework.urls', namespace="rest_framework")), path('api/v1/', include('su...
34.363636
82
0.702381
d463c99b03f786a3e4037e0d14d949c40fda1d7c
1,492
py
Python
config.py
proteus1991/RawVSR
56686859498a07c83fde191fa1fc109d7aafb3da
[ "MIT" ]
24
2021-01-05T02:34:09.000Z
2022-03-15T12:26:21.000Z
config.py
baowenbo/RawVSR
56686859498a07c83fde191fa1fc109d7aafb3da
[ "MIT" ]
3
2021-01-11T17:43:58.000Z
2021-02-04T19:59:36.000Z
config.py
baowenbo/RawVSR
56686859498a07c83fde191fa1fc109d7aafb3da
[ "MIT" ]
4
2021-01-25T08:45:04.000Z
2021-12-22T09:14:35.000Z
""" paper: Exploit Camera Raw Data for Video Super-Resolution via Hidden Markov Model Inference file: config.py author: Xiaohong Liu date: 17/09/19 """
31.083333
91
0.432306
d4644f1d055899deb023c3fcbded50db465c8acd
29
py
Python
model/tests/test_gibbssampler.py
JonasPC/BayesFactorModel
7a210a8b198400d911b3269f277d4bb50106c688
[ "MIT" ]
null
null
null
model/tests/test_gibbssampler.py
JonasPC/BayesFactorModel
7a210a8b198400d911b3269f277d4bb50106c688
[ "MIT" ]
null
null
null
model/tests/test_gibbssampler.py
JonasPC/BayesFactorModel
7a210a8b198400d911b3269f277d4bb50106c688
[ "MIT" ]
null
null
null
### Write some goddamn test
9.666667
27
0.689655
d4651fb797f26004f86c5fb02f0497881f2eee93
965
py
Python
leetcode/lru-cache/LRUCache.py
giwankim/algo
8dd1cf8aed6e89db54e753c7ce5821019628c47f
[ "MIT" ]
null
null
null
leetcode/lru-cache/LRUCache.py
giwankim/algo
8dd1cf8aed6e89db54e753c7ce5821019628c47f
[ "MIT" ]
null
null
null
leetcode/lru-cache/LRUCache.py
giwankim/algo
8dd1cf8aed6e89db54e753c7ce5821019628c47f
[ "MIT" ]
null
null
null
import collections if __name__ == '__main__': cache = LRUCache(2) cache.put(1, 1) cache.put(2, 2) assert cache.get(1) == 1 cache.put(3, 3) assert cache.get(2) == -1 cache.put(4, 4) assert cache.get(1) == -1 assert cache.get(3) == 3 assert cache.get(4) == 4 cache = LRUCach...
23.536585
48
0.569948
d46677069c648d405454e7408df8cbf599f1a80c
436
py
Python
staticfiles/context_processors.py
nttks/django-staticfiles
cd4e024e44c0be909333fcac5c328b2e4d2747bd
[ "BSD-3-Clause" ]
1
2021-02-08T07:49:35.000Z
2021-02-08T07:49:35.000Z
staticfiles/context_processors.py
nttks/django-staticfiles
cd4e024e44c0be909333fcac5c328b2e4d2747bd
[ "BSD-3-Clause" ]
2
2021-06-01T22:03:20.000Z
2022-01-13T00:43:38.000Z
staticfiles/context_processors.py
nttks/django-staticfiles
cd4e024e44c0be909333fcac5c328b2e4d2747bd
[ "BSD-3-Clause" ]
1
2020-11-04T08:39:52.000Z
2020-11-04T08:39:52.000Z
import warnings from django.conf import settings def static(request): """ Adds static-related context variables to the context. """ return {'STATIC_URL': settings.STATIC_URL}
27.25
76
0.713303
d4672e7716b611a83d36c41530dceaaadca832b5
4,018
py
Python
src/datasets/emnist.py
bjfranks/Classification-AD
4eecd6648bb6b54662944921924c8960c2ca236c
[ "MIT" ]
27
2020-05-30T16:27:31.000Z
2022-03-28T16:45:25.000Z
src/datasets/emnist.py
bjfranks/Classification-AD
4eecd6648bb6b54662944921924c8960c2ca236c
[ "MIT" ]
3
2021-04-22T10:01:55.000Z
2022-01-13T02:50:31.000Z
src/datasets/emnist.py
bjfranks/Classification-AD
4eecd6648bb6b54662944921924c8960c2ca236c
[ "MIT" ]
7
2020-06-15T16:31:23.000Z
2022-03-23T09:33:32.000Z
from torch.utils.data import Subset from PIL import Image from torchvision.datasets import EMNIST from base.torchvision_dataset import TorchvisionDataset from PIL.ImageFilter import GaussianBlur import numpy as np import torch import torchvision.transforms as transforms import random
39.009709
117
0.639373
d467fadd8af4902f63395f8f7006d9ea2380851a
10,037
py
Python
dfdone/plot.py
elespike/dfdone
c514e290a0eb0f74fd3c8f74ddbfddb917b2a629
[ "MIT" ]
7
2020-06-05T15:33:40.000Z
2021-03-07T16:57:55.000Z
dfdone/plot.py
elespike/dfdone
c514e290a0eb0f74fd3c8f74ddbfddb917b2a629
[ "MIT" ]
null
null
null
dfdone/plot.py
elespike/dfdone
c514e290a0eb0f74fd3c8f74ddbfddb917b2a629
[ "MIT" ]
1
2020-06-05T20:01:46.000Z
2020-06-05T20:01:46.000Z
from collections import defaultdict as ddict from operator import attrgetter, methodcaller from string import punctuation from graphviz import Digraph from dfdone.enums import ( Profile, Role, ) ASSUMPTION = 'assumption' DATA = 'data' MEASURE = 'measure' THREAT = 'threat' slugify = str.maketrans(' ', '-'...
32.800654
78
0.565209
d468f2c87e5ec8bf7bc10de9d752f8c5b503e861
1,159
py
Python
asilmedia.py
kamronbek29/asilmedia_scrapper
b94b6a0fc05f22adab8ba18ea466cd8511dfd319
[ "MIT" ]
null
null
null
asilmedia.py
kamronbek29/asilmedia_scrapper
b94b6a0fc05f22adab8ba18ea466cd8511dfd319
[ "MIT" ]
null
null
null
asilmedia.py
kamronbek29/asilmedia_scrapper
b94b6a0fc05f22adab8ba18ea466cd8511dfd319
[ "MIT" ]
null
null
null
import os import requests from pyquery import PyQuery as pq url = 'http://asilmedia.net/11773-tepalikda-ajratish-olim-yaqin-emas-uzbek-tilida-2018-ozbekcha-tarjima-kino-hd.html' get_download_url(url)
28.975
117
0.701467
d46a143b038029e9b4c40e27ea30ecd1cee32a8c
552
py
Python
Project/dbconnect.py
G00387859/DATA-REPRESENTATION-AND-QUERY
56490e235e393b350ec2eda8933ae3463c801be6
[ "MIT" ]
null
null
null
Project/dbconnect.py
G00387859/DATA-REPRESENTATION-AND-QUERY
56490e235e393b350ec2eda8933ae3463c801be6
[ "MIT" ]
null
null
null
Project/dbconnect.py
G00387859/DATA-REPRESENTATION-AND-QUERY
56490e235e393b350ec2eda8933ae3463c801be6
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy if __name__ == "__main__": app.run(debug=True) SQLALCHEMY_DATABASE_URI = "mysql+mysqlconnector://{username}:{password}@{hostname}/{databasename}".format(username="donalmaher067.mysql.pythonanywhere-services.com",password="Hollyroco@9552",hostname="donalmaher067.mysql.pythonan...
78.857143
300
0.820652
d46e9c27f6de917156be5e00b0df07e53661338f
22,470
py
Python
USBIP.py
Frazew/PythonUSBIP
480195837bb3fc25892dedcdf8b5a0d113ad33d5
[ "Unlicense" ]
57
2016-09-22T00:19:26.000Z
2022-03-11T15:26:47.000Z
USBIP.py
Frazew/PythonUSBIP
480195837bb3fc25892dedcdf8b5a0d113ad33d5
[ "Unlicense" ]
2
2018-08-28T15:54:30.000Z
2018-09-05T18:03:23.000Z
USBIP.py
Frazew/PythonUSBIP
480195837bb3fc25892dedcdf8b5a0d113ad33d5
[ "Unlicense" ]
9
2017-12-17T17:33:03.000Z
2022-03-22T08:37:58.000Z
# Copyright (c) 2014 Yaron Shani <yaron.shani@gmail.com>. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notic...
37.140496
145
0.522519
d46f232434b4694a4a36f6f3d592acbd62feb370
371
py
Python
eth2/_utils/hash.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
14
2020-08-24T18:23:31.000Z
2021-11-04T14:11:04.000Z
eth2/_utils/hash.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
19
2020-08-25T15:57:05.000Z
2021-07-07T00:49:45.000Z
eth2/_utils/hash.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
7
2020-08-24T22:53:02.000Z
2022-03-28T18:51:48.000Z
from hashlib import sha256 from typing import Union from eth_typing import Hash32 def hash_eth2(data: Union[bytes, bytearray]) -> Hash32: """ Return SHA-256 hash of ``data``. Note: it's a placeholder and we aim to migrate to a S[T/N]ARK-friendly hash function in a future Ethereum 2.0 deployment phase...
26.5
91
0.700809
d46f429828765f453153f4024780bc7dd3ec8f3f
1,011
py
Python
scripts/venv/lib/python2.7/site-packages/cogent/struct/annotation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
3
2015-11-20T08:44:42.000Z
2016-12-14T01:40:03.000Z
scripts/venv/lib/python2.7/site-packages/cogent/struct/annotation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
1
2017-09-04T14:04:32.000Z
2020-05-26T19:04:00.000Z
scripts/venv/lib/python2.7/site-packages/cogent/struct/annotation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
null
null
null
"""Contains functions to annotate macromolecular entities.""" from cogent.core.entity import HIERARCHY __author__ = "Marcin Cieslik" __copyright__ = "Copyright 2007-2012, The Cogent Project" __credits__ = ["Marcin Cieslik"] __license__ = "GPL" __version__ = "1.5.3" __maintainer__ = "Marcin Cieslik" __email__ = "mpc4p...
33.7
80
0.670623
d470ff56ce7d42894f9f9e01bcb618251f87a397
3,618
py
Python
cerebralcortex/core/data_manager/sql/kafka_offsets_handler.py
brinnaebent/CerebralCortex-Kernel
b0daad06df118d27e62e178e123170e8f189065e
[ "BSD-2-Clause" ]
null
null
null
cerebralcortex/core/data_manager/sql/kafka_offsets_handler.py
brinnaebent/CerebralCortex-Kernel
b0daad06df118d27e62e178e123170e8f189065e
[ "BSD-2-Clause" ]
null
null
null
cerebralcortex/core/data_manager/sql/kafka_offsets_handler.py
brinnaebent/CerebralCortex-Kernel
b0daad06df118d27e62e178e123170e8f189065e
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2019, MD2K Center of Excellence # - Nasir Ali <nasir.ali08@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above cop...
45.225
147
0.67717
d472079cf7438e4b98eb936c27d2f9a994e896f2
255
py
Python
webservice/tasks/email_tasks.py
geekgao/Dev_Blog_Webservice
a58e0f662ad98dc0b7b38cee5e50aed951f990f9
[ "MIT" ]
1
2015-03-13T17:38:11.000Z
2015-03-13T17:38:11.000Z
webservice/tasks/email_tasks.py
geekgao/Dev_Blog_Webservice
a58e0f662ad98dc0b7b38cee5e50aed951f990f9
[ "MIT" ]
null
null
null
webservice/tasks/email_tasks.py
geekgao/Dev_Blog_Webservice
a58e0f662ad98dc0b7b38cee5e50aed951f990f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from celery.task import task from webservice.mail import send_reply_mail
25.5
74
0.760784
d4736994de9c464bb6f5278b4dbda2f2dd43fd96
3,790
py
Python
Rejection-System/rejection_system.py
willtop/imitation-learning
2c00f77e4e575e38ef233cc5eac6862e598ec4ac
[ "MIT" ]
null
null
null
Rejection-System/rejection_system.py
willtop/imitation-learning
2c00f77e4e575e38ef233cc5eac6862e598ec4ac
[ "MIT" ]
null
null
null
Rejection-System/rejection_system.py
willtop/imitation-learning
2c00f77e4e575e38ef233cc5eac6862e598ec4ac
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np import rejection_network if(__name__=="__main__"): rejection_system = RejectionSystem() train_images, train_targets, valid_images, valid_targets = rejection_system.load_data() print("Data Loading Completed!") rejection_system.train_model(train_image...
48.589744
167
0.629815
d473bd2a6111d692be84e1c6bd981d1b8ff3ee2c
2,370
py
Python
examples/display_youtube_subs_single_tilechain.py
netmanchris/pylifxtiles
f9a77fe0beaabff4c792032d7778a8ad2815e2bd
[ "Apache-2.0" ]
6
2020-04-27T00:55:47.000Z
2020-10-11T19:16:38.000Z
examples/display_youtube_subs_single_tilechain.py
netmanchris/pylifxtiles
f9a77fe0beaabff4c792032d7778a8ad2815e2bd
[ "Apache-2.0" ]
null
null
null
examples/display_youtube_subs_single_tilechain.py
netmanchris/pylifxtiles
f9a77fe0beaabff4c792032d7778a8ad2815e2bd
[ "Apache-2.0" ]
null
null
null
import requests import inflect #create a file called secrets.py and place your googleAPI key in a var called youtube_api_key DO NOT POSTS THIS TO GITHUB from lifxlan import * # from random import randint, betavariate from time import sleep from examples.secrets import youtube_api_key from pylifxtiles import actions fro...
32.465753
121
0.627426
d47455c84e22f79970850d0a4f527fa6cc12c816
6,031
py
Python
lib/cfnvpn/templates/lambdas/auto_route_populator/app.py
base2Services/cfn-vpn
d26c01eb675cd47b2162aefeb26540a2a5891062
[ "MIT" ]
1
2019-10-17T02:36:16.000Z
2019-10-17T02:36:16.000Z
lib/cfnvpn/templates/lambdas/auto_route_populator/app.py
base2Services/cfn-vpn
d26c01eb675cd47b2162aefeb26540a2a5891062
[ "MIT" ]
7
2019-12-12T00:34:31.000Z
2022-03-30T03:47:51.000Z
lib/cfnvpn/templates/lambdas/auto_route_populator/app.py
base2Services/cfn-vpn
d26c01eb675cd47b2162aefeb26540a2a5891062
[ "MIT" ]
7
2019-12-11T22:23:15.000Z
2021-11-23T03:51:54.000Z
import socket import boto3 from botocore.exceptions import ClientError import logging logger = logging.getLogger() logger.setLevel(logging.INFO)
34.462857
138
0.664898
d4757491efa8084b4371b0d6817de101e0f8d8a2
304
py
Python
PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
51
2018-06-26T09:49:42.000Z
2019-09-14T00:06:35.000Z
PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
1
2018-06-29T18:40:59.000Z
2018-07-09T20:29:41.000Z
PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
22
2019-10-03T14:52:43.000Z
2022-01-17T08:55:10.000Z
#!/usr/bin/env python3 results = {} for i in range(5): results[i] = i**2+9029 for i in range(5,100022): results[i] = calc(i) print(results[100021])
25.333333
84
0.628289
d47d005c02515ac759e7040407be536af13a0a86
1,392
py
Python
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # https://practice.geeksforgeeks.org/problems/top-k-numbers/0
33.95122
78
0.514368
d47da1a3567c0646e5b6d191bc5adb903cf32946
2,125
py
Python
pymeta.py
ustayready/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
135
2020-02-28T23:22:00.000Z
2022-03-29T03:48:31.000Z
pymeta.py
treebuilder/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
null
null
null
pymeta.py
treebuilder/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
45
2020-03-01T04:12:08.000Z
2022-02-02T22:43:15.000Z
import os import re import argparse import zipfile import PyPDF2 from lxml import etree as ET if __name__ == '__main__': print(''' _______________________________________ PyMeta version 1.0 Author: Joff Thyer (c) 2020 Black Hills Information Security ___________________________________...
32.19697
74
0.499765
d47e5ca5e4f767ca565d98ee56a805dbf8e7ac10
782
py
Python
test/test_wf.py
mmadsen/pytransmission
053bbd8888b229feccc784d6322f9db2cdfeabcc
[ "Apache-2.0" ]
null
null
null
test/test_wf.py
mmadsen/pytransmission
053bbd8888b229feccc784d6322f9db2cdfeabcc
[ "Apache-2.0" ]
null
null
null
test/test_wf.py
mmadsen/pytransmission
053bbd8888b229feccc784d6322f9db2cdfeabcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015. Mark E. Madsen <mark@madsenlab.org> # # This work is licensed under the terms of the Apache Software License, Version 2.0. See the file LICENSE for details. """ Description here """ import logging as log import unittest import pytransmission.popgen.wright_fisher as wf im...
23.69697
119
0.690537
d4807c0cc580796693f45cc16ddbeae3f20b875e
490
py
Python
T2API/migrations/0002_auto_20180217_0548.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
T2API/migrations/0002_auto_20180217_0548.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
T2API/migrations/0002_auto_20180217_0548.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-17 05:48 from django.db import migrations
27.222222
201
0.616327
d482268b3a67acf7c98e550f439531564a00f5c4
6,497
py
Python
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
import pytest import sqlalchemy as sa from sqlalchemy.dialects import postgresql as pg from jessiql import QueryObjectDict from jessiql.sainfo.version import SA_14 from jessiql.testing.insert import insert from jessiql.testing.recreate_tables import created_tables from jessiql.util import sacompat from .util.models i...
44.197279
151
0.579806
d484862ba3e2f33977b9dfb27a2a6296e1c0eb7b
1,051
py
Python
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2017-10-21T15:32:17.000Z
2021-11-23T04:44:11.000Z
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2017-08-01T20:04:06.000Z
2019-06-24T18:21:38.000Z
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2019-07-01T19:03:06.000Z
2020-02-23T10:40:17.000Z
#!/usr/bin/env python # encoding: utf-8 from numpy.distutils.core import setup, Extension module1 = Extension('_porteagel_fortran', sources=['src/gaussianwake/gaussianwake.f90', 'src/gaussianwake/gaussianwake_bv.f90', ...
43.791667
90
0.531874
d48923ca32ecdfba04756e192b86f66124d82a4a
1,473
py
Python
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
import uuid import threading from datetime import datetime from .execution import RunExecution
25.842105
76
0.614392
d4894d2d31e55928fd3d6801e91886e716272b3e
122
py
Python
chapter6.py
aa88bb/Introduction-to-programming-using-python
13d6b897117df3bbe7ee4b22177154874052442f
[ "MIT" ]
null
null
null
chapter6.py
aa88bb/Introduction-to-programming-using-python
13d6b897117df3bbe7ee4b22177154874052442f
[ "MIT" ]
null
null
null
chapter6.py
aa88bb/Introduction-to-programming-using-python
13d6b897117df3bbe7ee4b22177154874052442f
[ "MIT" ]
null
null
null
print(addAll(1,10))
15.25
28
0.565574
00f66e72c3e4bcc933d8c4833a291f52c75faf20
440
py
Python
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import erpnext.education.utils as utils import frappe no_cache = 1
27.5
69
0.820455
00f6d7849b57443a7fcfc0dd2b15cbcd9d92e769
1,748
py
Python
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
"""Predict labels with lightgbm models""" import os import sys import json import pandas as pd import lightgbm as lgb from pathlib import Path import competition as cc from common import stop_watch, predict_chunk # For osx os.environ['KMP_DUPLICATE_LIB_OK'] = "True" if __name__ == "__main__": predict_with_light...
34.27451
81
0.680206
00f78d4d60c5538982c1b4175030188fc17d14a3
4,218
py
Python
tests/core_plugins/tasks/test_checksum.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
null
null
null
tests/core_plugins/tasks/test_checksum.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
7
2017-12-16T06:16:56.000Z
2017-12-26T06:21:18.000Z
tests/core_plugins/tasks/test_checksum.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
null
null
null
from nose.tools import * import tests from tests import files from catstuff.core_plugins.tasks.checksum.main import * def test_filled_sha1(): actual = 'e904e143809b8ee161abdc55455bd5ff7773b5d7'.lower() result = checksum(files.filled_file, method='sha1').lower() assert_equal(result, actual) def test_...
31.014706
152
0.710526
00f7909565a967fdf18011834d450c60108175a8
1,782
py
Python
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
5
2020-06-09T09:28:07.000Z
2020-06-12T13:36:52.000Z
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distr...
34.941176
86
0.714366
00f9ebf2f0b587c3e9e4c70a58e0e5c0b2107dc9
2,528
py
Python
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Recover the tree relationship from a howde tree hierarchy file. """ from sys import argv,stdin,stdout,stderr,exit from howde_tree_parse import read_howde_tree_file if __name__ == "__main__": main()
29.395349
81
0.627373
00fdc14d8d6651a586f8e493f4b200f6fad1f8e4
2,641
py
Python
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
import json import sys import tkinter from config import * from imagefy import * from twitter import * # Get old rules old_rules = get_rules() print('Old rules received.') # Delete old rules delete_response = delete_rules(old_rules) print('Old rules deleted.') # Generate new rules query_rules = generate_rules() p...
29.674157
117
0.706929
00ff0ed92617aeee4a59104327ee5016ba50a470
3,632
py
Python
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
1,526
2017-09-15T18:49:40.000Z
2021-01-17T16:04:12.000Z
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
682
2017-09-11T17:43:12.000Z
2021-01-17T05:26:26.000Z
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
111
2017-09-15T23:21:37.000Z
2021-01-01T14:45:35.000Z
import pickle import sys import unittest2 import mitogen.core import testlib import plain_old_module if __name__ == '__main__': unittest2.main()
31.582609
79
0.632434
2e076b3f8694910f0ea4b0f6d1af437799ab9b18
288
py
Python
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
from mpsp import FLIGHT, GROUNDTEST from mpsp.mpsp import MPSP import pyb switch = pyb.Switch() pyb.LED(3).on() pyb.LED(1).on() pyb.delay(4000) pyb.LED(3).off() pyb.LED(1).off() if switch(): mode = FLIGHT else: mode = GROUNDTEST pyb.delay(1000) m = MPSP(mode) m.init() m.run()
13.714286
35
0.666667
2e096b561d4731bab44bbf1d9a49e8a4523798e5
3,027
py
Python
tests/policies/discrete_random/test_discrete_random_policy.py
AGI-Labs/continual_rl
bcf17d879e8a983340be233ff8f740c424d0f303
[ "MIT" ]
19
2021-07-27T05:20:09.000Z
2022-02-27T07:12:05.000Z
tests/policies/discrete_random/test_discrete_random_policy.py
AGI-Labs/continual_rl
bcf17d879e8a983340be233ff8f740c424d0f303
[ "MIT" ]
2
2021-11-05T07:36:50.000Z
2022-03-11T00:21:50.000Z
tests/policies/discrete_random/test_discrete_random_policy.py
AGI-Labs/continual_rl
bcf17d879e8a983340be233ff8f740c424d0f303
[ "MIT" ]
3
2021-10-20T06:04:35.000Z
2022-03-06T22:59:36.000Z
import os from pathlib import Path from continual_rl.experiments.experiment import Experiment from continual_rl.experiments.tasks.image_task import ImageTask from continual_rl.policies.discrete_random.discrete_random_policy_config import DiscreteRandomPolicyConfig from continual_rl.policies.discrete_random.discrete_ran...
44.514706
108
0.693426
2e09d3f8406803736c7eea8ba0649dc30e4e8c24
47,697
py
Python
app/dnt_ui.py
fatihy101/detect-and-track
d0a20a1e282749f144af8421ea58315cdd5aaddf
[ "MIT" ]
null
null
null
app/dnt_ui.py
fatihy101/detect-and-track
d0a20a1e282749f144af8421ea58315cdd5aaddf
[ "MIT" ]
null
null
null
app/dnt_ui.py
fatihy101/detect-and-track
d0a20a1e282749f144af8421ea58315cdd5aaddf
[ "MIT" ]
1
2021-09-14T15:04:34.000Z
2021-09-14T15:04:34.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '../GUI Files/ui_main.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import...
60.915709
120
0.565948
2e0a3372e676a2f27affab3a884dcb6430bd09b2
8,600
py
Python
autograd_fin.py
newcodevelop/DL-Adventures
76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92
[ "MIT" ]
null
null
null
autograd_fin.py
newcodevelop/DL-Adventures
76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92
[ "MIT" ]
null
null
null
autograd_fin.py
newcodevelop/DL-Adventures
76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92
[ "MIT" ]
1
2020-08-04T15:22:37.000Z
2020-08-04T15:22:37.000Z
# -*- coding: utf-8 -*- """autograd_fin.ipynb Automatically generated by Colaboratory. """ from keras.datasets import mnist import keras import numpy as np (x_train,y_train),(x_test,y_test) = mnist.load_data() train_images = np.asarray(x_train, dtype=np.float64) / 255.0 test_images = np.asarray(x_test, dtype=np.flo...
28.85906
182
0.581279
2e0a911d4697c155124ce5d20e061cde131c6b5a
392
py
Python
tests/test_aws_lambda.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
3
2020-08-09T15:17:44.000Z
2022-03-19T22:16:25.000Z
tests/test_aws_lambda.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
4
2020-08-12T21:25:16.000Z
2021-04-17T10:57:57.000Z
tests/test_aws_lambda.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
1
2020-12-17T10:06:37.000Z
2020-12-17T10:06:37.000Z
from checker.remote import call_bad_event, call_good_event, lambda_handler from tests.markers import unit pytestmark = unit
23.058824
77
0.734694
2e0b3ccedd271154d067c56ea6b56d4912fc2b1a
331
py
Python
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
from pathlib import Path def is_website_folder(path: Path): """Checks if path likely points at the hsf.github.io repository""" existing_subfolders = [".git", "_profiles", "_data"] for es in existing_subfolders: if not (path / es).is_dir(): print(path, es) return False r...
27.583333
70
0.634441
2e0d985294a67db17081fc1ea702be81b2ba4375
355
py
Python
poo/class/myclass.py
alfmorais/design-patterns-python
0bf12bd762a310d705a11979e4d025754e388c0c
[ "MIT" ]
null
null
null
poo/class/myclass.py
alfmorais/design-patterns-python
0bf12bd762a310d705a11979e4d025754e388c0c
[ "MIT" ]
null
null
null
poo/class/myclass.py
alfmorais/design-patterns-python
0bf12bd762a310d705a11979e4d025754e388c0c
[ "MIT" ]
null
null
null
obj1 = MyClass(True) obj2 = MyClass(False) obj1.change_static() obj1.print_static() obj2.print_static()
15.434783
38
0.650704
2e0eab8007a7e1a283630c4834f656d34752ec84
2,809
py
Python
hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py
qiangzai00001/hio-prj
060ff97fe21093b1369db78109d5b730b2b181c8
[ "MIT" ]
null
null
null
hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py
qiangzai00001/hio-prj
060ff97fe21093b1369db78109d5b730b2b181c8
[ "MIT" ]
null
null
null
hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py
qiangzai00001/hio-prj
060ff97fe21093b1369db78109d5b730b2b181c8
[ "MIT" ]
null
null
null
# # Chris Lumens <clumens@redhat.com> # # Copyright 2007 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. This program is distributed in the hope that it # will be usef...
39.013889
125
0.664649
2e0f191ffd0baa303d922ca0110a4a273412b1e0
65
py
Python
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
2,577
2016-04-19T09:57:39.000Z
2022-03-17T10:34:25.000Z
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
7,410
2016-04-19T21:19:31.000Z
2022-01-21T20:14:21.000Z
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
625
2016-04-19T10:09:35.000Z
2022-03-16T10:53:45.000Z
import pytest pytest.register_assert_rewrite('gen.tests.utils')
16.25
49
0.830769
2e0f83a5679b19aa17f9519619b150c41b6a8ad9
8,529
py
Python
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
null
null
null
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
1
2020-06-04T15:59:04.000Z
2020-06-04T15:59:04.000Z
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
3
2020-06-04T16:28:31.000Z
2021-11-05T17:11:55.000Z
#!flask/bin/python import os import uuid from flask import Flask, jsonify from flask import request, jsonify from flask_restplus import Api, Resource, fields from flask_restplus import reqparse import pandas as pd import numpy as np from joblib import load import pickle import json import requests # # Model register...
35.390041
178
0.637941
2e14507604ab4d37b2d654a12f456017f680cf04
12,466
py
Python
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
1
2020-01-28T15:22:16.000Z
2020-01-28T15:22:16.000Z
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
null
null
null
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
1
2021-06-10T05:04:24.000Z
2021-06-10T05:04:24.000Z
# Copyright (c) Microsoft. All rights reserved. import time import logging import torch from rnndata import repackage_hidden, clone_hidden, get_batch from utils import get_lr_mom, AverageMeter def compute_accuracy(output, target, topk=(1,)): """Computes the precision@k for the specified values of k""" with t...
40.872131
106
0.572437
2e15b17caf196545a558db1448e485770a951b9c
10,449
py
Python
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created: Thu Sep 5 07:07:53 2019 # by: The Resource Compiler for PySide2 (Qt v5.13.1) # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore qt_resource_data = b"\ \x00\x00\x015\ <\ contact>\x0d\x0a <g\ ivenName>John</g\ ivenName...
22.137712
96
0.616136
2e19bc4ef8e76688f627aac760712755f2851717
114
py
Python
fcd_torch/__init__.py
hadim/fcd-torch
71fe153c16ece9b010efd52ed5490973a3b36d9e
[ "MIT" ]
30
2019-02-07T17:41:10.000Z
2022-03-30T08:14:24.000Z
fcd_torch/__init__.py
AIDrug/fcd_torch
a5a966897b89831c596f326df0ba3e151c4cc434
[ "MIT" ]
null
null
null
fcd_torch/__init__.py
AIDrug/fcd_torch
a5a966897b89831c596f326df0ba3e151c4cc434
[ "MIT" ]
8
2019-04-08T21:40:27.000Z
2022-02-20T07:58:05.000Z
from .fcd import FCD from .fcd import calculate_frechet_distance __all__ = ['FCD', 'calculate_frechet_distance']
22.8
47
0.798246
2e1a6d385104b92cdf4c3b65e8d847fac4046e9c
2,441
py
Python
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
1
2018-12-24T13:49:32.000Z
2018-12-24T13:49:32.000Z
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
null
null
null
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
null
null
null
import gym import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam from agents.dqn import DQN if __name__ == '__main__': agent = learn('CartPole-v0', episodes=1000, batch_size=24, model_path="./models/cartpole-full.h5") play('CartPole-v0', episode...
39.370968
119
0.606719
2e1ba8922cf58bb90287d078e5a54ad5ae1af3bf
46,505
py
Python
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
null
null
null
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
null
null
null
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
2
2021-12-22T09:07:09.000Z
2021-12-24T19:27:26.000Z
""" Date: 28/10/2021 Neo4J generator for ImmunoPoli project """ import neo4j as nj import App.PlotDBStructure as ps from random import randint, random from enum import IntEnum import datetime MAX_CIVIC_NUMBER = 100 PHONE_NUMBER_LENGTH = 10 MAX_NUMBER_OF_FAMILY_MEMBER = 5 NUMBER_OF_FAMILY = 150 MAX_NUMBER_OF_CONTAC...
32.227997
130
0.606666
2e1c8db5594b84531a71f4ac6141cb6cebad50e7
1,073
py
Python
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
3
2021-05-25T10:18:23.000Z
2022-02-09T08:55:14.000Z
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-# ''' # Name: HyperParameters_4_0 # Description: # Author: super # Date: 2020/6/2 ''' from MiniFramework.EnumDef_4_0 import * # this class is for two-layer NN only
32.515152
136
0.59739
2e1ccd54ccad1613ed746053417cd748b2d33875
192
py
Python
rvpvp/isa/rvv/vmv_x_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
5
2021-05-10T09:57:00.000Z
2021-10-05T14:39:20.000Z
rvpvp/isa/rvv/vmv_x_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
null
null
null
rvpvp/isa/rvv/vmv_x_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
1
2021-05-14T20:24:11.000Z
2021-05-14T20:24:11.000Z
from ...isa.inst import * import numpy as np
19.2
29
0.546875
2e1d901364494765f2ea9f357679476f51d416cd
584
py
Python
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
1
2022-03-31T07:30:53.000Z
2022-03-31T07:30:53.000Z
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
null
null
null
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
2
2022-03-04T09:42:03.000Z
2022-03-30T14:51:32.000Z
# I. # ID 66248195 from collections import Counter if __name__ == '__main__': id_university, k = read_input() conference_lovers(id_university, k)
25.391304
73
0.693493
2e1feda997e60649764860b6a4e1f4de31bd698d
2,327
py
Python
app/routes/user.py
Axtell-io/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
15
2018-04-20T14:56:59.000Z
2021-03-31T20:16:29.000Z
app/routes/user.py
Axtell/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
148
2018-04-17T01:47:44.000Z
2020-05-14T13:24:03.000Z
app/routes/user.py
Axtell-io/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
7
2018-06-01T11:15:18.000Z
2020-08-14T04:24:50.000Z
from app.helpers.render import render_template, render_error from app.controllers import user from app.models.User import User, UserAuthToken from app.server import server from flask import g, request, redirect, url_for, abort from app.session.csrf import csrf_protected # noinspection PyUnusedLocal
33.242857
127
0.728406
2e20d0f7055a8efeb21c1bd0269a9e0a1afa7cf4
8,616
py
Python
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import time from collections import OrderedDict import torch import sys try: sys.path.append("cider") from pyciderevalcap.ciderD.ciderD import CiderD from pyciderevalcap.cider.ci...
37.298701
173
0.67572
2e2279b1f99ff28aa158f6954e55b80b12e12f93
1,984
py
Python
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
#from gps_handler import GpsHandler import math
31.492063
113
0.5625
2e23486d7d857a99db4d71fd355e0cdfb7001603
219
py
Python
TeensyFirmware/flash.py
microsoft/ada
4bb55acd6e34c45989ad69c1009b0fd571d10640
[ "MIT" ]
1
2022-02-18T01:10:51.000Z
2022-02-18T01:10:51.000Z
TeensyFirmware/flash.py
microsoft/ada
4bb55acd6e34c45989ad69c1009b0fd571d10640
[ "MIT" ]
null
null
null
TeensyFirmware/flash.py
microsoft/ada
4bb55acd6e34c45989ad69c1009b0fd571d10640
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO # to use Raspberry Pi board pin numbers GPIO.setmode(GPIO.BOARD) # set up the GPIO channels - one input and one output GPIO.setup(7, GPIO.OUT) GPIO.output(7, GPIO.LOW) GPIO.setup(7, GPIO.IN)
21.9
53
0.73516
2e2601a57578f079de2951387b1289c07c01b38b
10,894
py
Python
build/lib.linux-x86_64-2.7/ryu/tests/unit/packet/test_packet.py
sharat910/my-ryu
d2994571e3e5fad58433044a3ca8a5b40a413c87
[ "Apache-2.0" ]
2
2019-05-06T01:11:37.000Z
2020-10-09T08:24:15.000Z
ryu/tests/unit/packet/test_packet.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
ryu/tests/unit/packet/test_packet.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
1
2018-07-12T20:08:53.000Z
2018-07-12T20:08:53.000Z
# Copyright (C) 2012 Nippon Telegraph and Telephone 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 appli...
29.284946
73
0.523224
2e266d63f6512f29cea6db3e7a1e786d0b045c0b
8,739
py
Python
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
import itertools import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt device = torch.device("cpu") transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) trainset = torchvision.datasets.CIFAR10(root='./dat...
35.962963
115
0.620323
2e2680be29a37e0471952ff1c48d95daa56f74a6
4,738
py
Python
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
11
2021-05-04T03:15:20.000Z
2022-02-16T07:44:16.000Z
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
4
2021-06-21T11:12:37.000Z
2021-06-29T11:54:18.000Z
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
2
2021-05-05T00:42:44.000Z
2021-05-10T12:51:58.000Z
from typing import List from fastapi import APIRouter, BackgroundTasks, Depends, HTTPException, Query from sqlalchemy.orm import Session from dispatch.enums import Visibility from dispatch.auth.models import DispatchUser from dispatch.auth.service import get_current_user from dispatch.database import get_db, search_f...
30.567742
93
0.691009
2e286f4bba6bc269eb129fff803ce6e3c742ed75
11,451
py
Python
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
null
null
null
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
23
2019-03-07T08:05:36.000Z
2019-10-11T10:37:35.000Z
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
3
2019-08-09T05:46:35.000Z
2020-01-23T10:12:29.000Z
import os import re import pickle from flask import Flask, render_template, url_for, flash, redirect, session from forms import SettingsForm, CredentialForm, EditCredentialForm, EditSettingsForm from CloudStackApiClient import CloudStackApiClient from CloudStackConfig import CloudStackConfig, cloudstack_file from tim...
37.917219
120
0.656537
2e2918459530001385052c20f48317cb1c6bed76
6,679
py
Python
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
121
2015-01-23T20:42:14.000Z
2022-02-28T23:36:46.000Z
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
206
2015-01-01T00:34:12.000Z
2022-01-20T20:15:59.000Z
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
167
2015-04-15T21:13:19.000Z
2021-11-07T21:16:59.000Z
#!/usr/local/bin/python import fnmatch import io import os import re import subprocess import sys import asfpy.messaging import yaml import yaml.constructor # LDAP to CNAME mappings for some projects WSMAP = { "whimsy": "whimsical", "empire": "empire-db", "webservices": "ws", "infrastructure": "infra...
36.697802
121
0.590957
2e2aacef2305795c5f2c9a5115b0656d332fd57e
453
py
Python
authentications/migrations/0011_auto_20210216_0547.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
authentications/migrations/0011_auto_20210216_0547.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
authentications/migrations/0011_auto_20210216_0547.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-16 05:47 from django.db import migrations, models
23.842105
120
0.620309
2e2bfa67b2ab4ebf4f85d7108805fb44872b7c41
502
py
Python
backend/calorie_find/calories/serializers.py
banjocat/calorie-find
9b0314e3c3a5b4b4b4607ec61728e14988c8fd05
[ "BSD-2-Clause" ]
2
2016-08-10T19:54:02.000Z
2016-10-20T00:22:19.000Z
backend/calorie_find/calories/serializers.py
banjocat/calorie-find
9b0314e3c3a5b4b4b4607ec61728e14988c8fd05
[ "BSD-2-Clause" ]
9
2016-07-10T15:07:27.000Z
2017-01-17T03:39:41.000Z
backend/calorie_find/calories/serializers.py
banjocat/calorie-find
9b0314e3c3a5b4b4b4607ec61728e14988c8fd05
[ "BSD-2-Clause" ]
null
null
null
from rest_framework import serializers from calories.models import Food
21.826087
66
0.701195
2e2f92d8667d4eff648ffa790d95599d6434e9f2
1,606
py
Python
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
null
null
null
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
3
2020-02-11T23:17:55.000Z
2021-06-10T20:54:07.000Z
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from social_django.models import UserSocialAuth import tweepy, os ''' from djangoworks.settings import isDebug if isDebug() == True: try: from djangoworks.configs import twitter SOCIAL_AUTH_TWITT...
29.740741
98
0.651308
2e2fae2968970fcc70433023daf34a9d9e155d6c
74
py
Python
lintuasema-backend/application/db.py
luomus/lintuasemasovellus
966546795f5e6f0efd5b5d03c08577c788dba241
[ "MIT" ]
null
null
null
lintuasema-backend/application/db.py
luomus/lintuasemasovellus
966546795f5e6f0efd5b5d03c08577c788dba241
[ "MIT" ]
32
2021-02-03T12:17:33.000Z
2021-05-02T16:38:13.000Z
lintuasema-backend/application/db.py
luomus/lintuasemasovellus
966546795f5e6f0efd5b5d03c08577c788dba241
[ "MIT" ]
1
2021-04-18T17:26:03.000Z
2021-04-18T17:26:03.000Z
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() prefix = 'v2_'
14.8
39
0.77027
2e307b91132870572d536e2f42552febf7371a45
646
py
Python
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
2
2021-08-01T08:05:15.000Z
2021-08-01T08:11:07.000Z
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
null
null
null
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
1
2021-08-19T10:42:56.000Z
2021-08-19T10:42:56.000Z
## Architechture lpips_type = 'vgg' first_inv_type = 'w' optim_type = 'adam' ## Locality regularization latent_ball_num_of_samples = 1 locality_regularization_interval = 1 use_locality_regularization = False regulizer_l2_lambda = 0.1 regulizer_lpips_lambda = 0.1 regulizer_alpha = 30 ## Loss pt_l1_lambda = 1 pt_l2_lam...
19.575758
36
0.78483
2e312f7a9a86214613e667e937b3317c7a3d0227
19,323
py
Python
setup-es/sample_data.py
swarmee/api-firewall-4-es
5830bb13c0eee1bc4d08700415e221020374699b
[ "MIT" ]
null
null
null
setup-es/sample_data.py
swarmee/api-firewall-4-es
5830bb13c0eee1bc4d08700415e221020374699b
[ "MIT" ]
null
null
null
setup-es/sample_data.py
swarmee/api-firewall-4-es
5830bb13c0eee1bc4d08700415e221020374699b
[ "MIT" ]
null
null
null
sample_data = { "role": [{ "roleType": "beneficiaryCustomer", "party": [{ "partyType": "individual", "account": [{ "network": "swift", "institutionName": "Westpac Banking Corporation", "institutionCode": "WBC...
42.375
87
0.205817
2e346baa1e8905675293c0be9900be1c2daedaec
458
py
Python
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 9 22:11:56 2021 @author: Mike """ import serial import time arduino = serial.Serial("COM2", 9600) time.sleep(2) print("Presione 1 para mandar y 2 para apagar: ") while 1: datousuario = input() if datousuario == "1": arduino.write(b'34.23;34.23;45.22')...
18.32
49
0.561135
2e34be18feae223399713fa8f385c93dcf5e3598
1,240
py
Python
python_MA1/day_12.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_MA1/day_12.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_MA1/day_12.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jun 1 09:15:37 2019 @author: athreya """ #1 def tax(bill): """Adds 8% tax to a restaurant bill.""" bill *= 1.08 print ("With tax: %f" % bill) return bill #2 def tip(bill): """Adds 15% tip to a restaurant bill.""" bill *= 1.15 print ("Wi...
17.464789
67
0.619355
2e3632925dd735d69a88299995bdc48bd8030b27
50,571
py
Python
apps/establishment_system/views.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
4
2015-01-29T17:17:26.000Z
2021-03-03T08:17:03.000Z
apps/establishment_system/views.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
null
null
null
apps/establishment_system/views.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
1
2015-09-22T08:35:26.000Z
2015-09-22T08:35:26.000Z
# -*- encoding: utf-8 -*- """ Views: Encontramos todas las vistas del sistema de establecimientos. @author Camilo Ramrez @contact camilolinchis@gmail.com camilortte@hotmail.com @camilortte on Twitter @copyright Copyright 2014-2015, RecomendadorUD @lice...
38.109269
142
0.582112
2e365b42aa11cbe15a9c00e9f63e614ec75483ec
11,547
py
Python
src/simulations/tests/simulator_test.py
PrivacyAmp/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
20
2020-03-30T22:39:32.000Z
2022-03-09T06:32:14.000Z
src/simulations/tests/simulator_test.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
41
2020-05-01T01:09:38.000Z
2021-10-15T17:53:31.000Z
src/simulations/tests/simulator_test.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
8
2020-06-18T22:33:14.000Z
2021-05-03T13:39:12.000Z
# Copyright 2020 The Private Cardinality Estimation Framework Authors # # 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 b...
38.49
104
0.71603
2e37053311db32a5646a09d99f05bb77ba1c6b68
326
py
Python
e3.py
astaffes/lab8
224538d81bb408cd809e09c236a0d044cdbb20a3
[ "MIT" ]
null
null
null
e3.py
astaffes/lab8
224538d81bb408cd809e09c236a0d044cdbb20a3
[ "MIT" ]
null
null
null
e3.py
astaffes/lab8
224538d81bb408cd809e09c236a0d044cdbb20a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': a = () print(type(a)) b = tuple() print(type(b)) a = (1, 2, 3, 4, 5) print(type(a)) print(a) a = tuple([1, 2, 3, 4]) print(a) not_a_tuple = (42) tpl = (42,) print(type(not_a_tuple)) print(type(...
18.111111
28
0.48773
2e3ad4d7cf10b8564049ab45fe9d5fd486d4fd14
150
py
Python
my_utils/send_mail.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
my_utils/send_mail.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
12
2020-02-12T01:14:42.000Z
2022-03-11T23:54:43.000Z
my_utils/send_mail.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # @Time : 2019/7/30 9:00 PM # @Author : __wutonghe__ from django.core.mail import send_mail
13.636364
38
0.626667
2e3dd25cc4a3b17159c12055b5e0a8180fcfc16f
158
py
Python
j4j_spawner/file_loads.py
FZJ-JSC/jupyter-jsc-jupyterhub-collection
3fbb83da6e356df57bbdd24269157944f7fcd2a5
[ "BSD-3-Clause" ]
null
null
null
j4j_spawner/file_loads.py
FZJ-JSC/jupyter-jsc-jupyterhub-collection
3fbb83da6e356df57bbdd24269157944f7fcd2a5
[ "BSD-3-Clause" ]
null
null
null
j4j_spawner/file_loads.py
FZJ-JSC/jupyter-jsc-jupyterhub-collection
3fbb83da6e356df57bbdd24269157944f7fcd2a5
[ "BSD-3-Clause" ]
null
null
null
''' Created on May 17, 2019 @author: Tim Kreuzer '''
14.363636
33
0.588608
2e3dddefc0fc41021833c4964e4d102684d48114
616
py
Python
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
22
2020-08-04T13:52:16.000Z
2022-03-16T09:48:26.000Z
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
5
2020-10-16T12:24:06.000Z
2021-07-21T02:19:34.000Z
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
6
2020-10-03T03:00:47.000Z
2021-12-30T10:33:51.000Z
#!/usr/bin/env python3 # Pty buffer size detect script # From: https://superuser.com/a/1452858 # Results: # MacOS 11.2.3: pts write blocked after 1023 bytes (0 KiB) import os from pty import openpty from fcntl import fcntl, F_GETFL, F_SETFL from itertools import count master, slave = openpty() set_nonblock(slave) ...
20.533333
69
0.670455
2e3e30e6d461cf540ccc3d9c703aff36b0ce282e
83
py
Python
shivyc/__init__.py
TBladen/ShivyC
9d0c3955f9edb76b45b05ab7b0013cc7b6559753
[ "MIT" ]
1
2021-01-06T21:26:24.000Z
2021-01-06T21:26:24.000Z
shivyc/__init__.py
TBladen/ShivyC
9d0c3955f9edb76b45b05ab7b0013cc7b6559753
[ "MIT" ]
null
null
null
shivyc/__init__.py
TBladen/ShivyC
9d0c3955f9edb76b45b05ab7b0013cc7b6559753
[ "MIT" ]
null
null
null
"""This module implements the core ShivyC functionality.""" __version__ = "0.3.2"
20.75
59
0.722892
2e3e3b3fae1036254ee5111170ecba4e576feca4
2,815
py
Python
djavError/migrations/0001_initial.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
djavError/migrations/0001_initial.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
djavError/migrations/0001_initial.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-28 19:10 from django.db import migrations, models
43.984375
246
0.550266
2e3f9e5cf08830d85f22ac94a405bd4dc059c2da
1,007
py
Python
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
#!/usr/bin/env python """python module for the LTC1380 created 17, 06, 2021 last modified 17, 06, 2021 Copyright 2021 Andrew Buckin """ import smbus import time Enable = 8 if __name__ == "__main__": MUX = LTC1380(i2cAddress=0x48) Channel = list(range(0, 8, 1)) # data loop DO>DI for i in Channel: ...
20.14
64
0.600794
2e4208a8268b19b399b2070f7d1c7a5961191bd6
395
py
Python
project euler/q35.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
project euler/q35.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
project euler/q35.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
v=0 for x in range(2,1000000): if iscircular(x): print x v+=1 print v
19.75
32
0.458228
2e43b13aff85b6f549a34372cb839f1045f1224d
9,618
py
Python
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
from .misc_util import orthogonal_init, xavier_uniform_init import torch.nn as nn import torch import torch.nn.functional as F
36.850575
126
0.563215
2e44aa4ea82d11042fce4becc4abc41c58a84079
1,350
py
Python
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
import logging import os from flask import Flask, request import pandas as pd import torch from torch_template import Model PATH = "/home/jovyan" LOAD_PATH = os.path.join(PATH, "runs/03-56 17_02_22/model.pth") OUTPUT_PATH = os.path.join(PATH, "runs/api") # Configuring logging logging.basicConfig( filename=os.pa...
24.107143
63
0.660741
2e46f63258059c8f4e70f3a51307f604048da8b0
4,768
py
Python
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
86
2018-08-31T08:43:42.000Z
2022-02-07T12:39:41.000Z
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
3
2018-09-05T12:52:49.000Z
2020-02-28T12:11:36.000Z
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
5
2018-09-11T23:06:28.000Z
2022-01-23T19:50:14.000Z
from keras.models import Sequential from keras.layers import Conv2D, Conv2DTranspose, Input, BatchNormalization, PReLU from keras.callbacks import ModelCheckpoint, Callback, TensorBoard from keras.optimizers import SGD, Adam import numpy as np import math import os import random from os import listdir, makedirs from os...
38.144
162
0.648909
2e46fbeaf8ee970ea30ad406caaf1c983e261497
5,023
py
Python
module/error.py
Saroniii/yonosumi_official_bot
ef09ff8e9c089c0df8d191fe5db665f0f7322fd3
[ "MIT" ]
5
2020-09-23T01:06:00.000Z
2020-11-24T04:39:58.000Z
module/error.py
Saroniii/yonosumi_official_bot
ef09ff8e9c089c0df8d191fe5db665f0f7322fd3
[ "MIT" ]
13
2020-10-10T16:00:16.000Z
2020-11-26T02:02:57.000Z
module/error.py
YonosumiProject/yonosumi_official_bot
f8e3d2c0f7c0320cdb9247917d6d21f208ec7a77
[ "MIT" ]
2
2021-04-19T21:46:00.000Z
2021-08-16T07:23:11.000Z
import re import traceback import discord from discord.ext import commands
41.858333
212
0.505873
2e475fe77b8d59f438381a1b9f65606ccdf0eeb0
10,481
py
Python
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
149
2015-01-08T21:55:20.000Z
2022-02-28T10:43:53.000Z
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
71
2015-01-04T22:28:56.000Z
2022-02-06T09:23:30.000Z
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
56
2015-01-07T11:06:05.000Z
2022-03-18T08:45:40.000Z
""" Channel0 is used for connection level communication between RabbitMQ and the client on channel 0. """ import locale import logging import sys from pamqp import header from pamqp import heartbeat from pamqp import specification from rabbitpy import __version__ from rabbitpy import base from rabbitpy import events...
36.141379
78
0.626085
2e4773ee4daaadfedc508c278457290fb9e78e54
1,617
py
Python
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import argv from subprocess import run from pathlib import Path def format_source(fp): """Run isort and then yapf to format the python files contained in fp. Sends the output to /dev/null. Parameters ---------- fp: str The file path to search recursively fo...
27.40678
116
0.634508
2e47d4e19559b640b7393534b7b6cf07e2a119e3
1,091
py
Python
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
5
2021-09-07T02:47:33.000Z
2021-12-05T13:22:00.000Z
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
null
null
null
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
1
2021-09-09T08:39:51.000Z
2021-09-09T08:39:51.000Z
import json from base64 import b64encode from Crypto.Cipher import AES, DES from Crypto.Util.Padding import pad from Crypto.Hash import MD5 from urllib.parse import quote ### Cpdaily-Extension
29.486486
70
0.672777
2e48c7fdd82f103792c63baa829d0d629b6b36dd
85,623
py
Python
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
2
2017-11-23T01:07:37.000Z
2021-06-25T05:03:49.000Z
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
null
null
null
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
1
2018-05-22T02:28:43.000Z
2018-05-22T02:28:43.000Z
# X86 disassembler for Python # Copyright (c) 2011-2012 Rusty Wagner # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, ...
41.604956
195
0.652687
2e4a2b8165110efd65634c3ee06cbc5d7fe752ab
590
py
Python
sentences/sentence14.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
5
2020-03-17T17:04:53.000Z
2020-03-27T12:10:44.000Z
sentences/sentence14.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
null
null
null
sentences/sentence14.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
null
null
null
from sentences.base_sentence import base_sentence
39.333333
87
0.620339
2e4ad7b8a3f3e91673d5ed7d5c90599979a86c21
35,847
py
Python
camper/db/barcamp.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
13
2016-03-13T02:33:39.000Z
2021-04-01T13:09:12.000Z
camper/db/barcamp.py
comlounge/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
122
2016-03-10T09:28:09.000Z
2021-09-07T23:49:05.000Z
camper/db/barcamp.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
5
2017-01-11T22:00:57.000Z
2020-04-26T14:03:32.000Z
#encoding=utf8 import datetime from camper.exceptions import * import isodate import pycountry from slugify import UniqueSlugify import embeddify import re from sfext.babe...
38.09458
2,009
0.565961
2e4be7a86b7c2c6de6676d47c165fb2dc92bdf33
9,123
py
Python
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
import sys import os import random import re import time import torch from torch.autograd import Variable from torch import optim import torch.nn as nn #from static_model import StaticModel from CNNencoder import StaticModel #from dyna_model import DynamicModel from dynaMerge import DynamicModel from data_utils import...
44.720588
195
0.676532