hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
1c6c6902f7d6bc1149010741da8e8cf04425017e
1,534
py
Python
TBDataPreparation/202106_DESY/scripts/convert.py
polesell/DREMTubes
e396c37220baf458e66c69c806e92245521d8d88
[ "MIT" ]
1
2021-08-16T21:22:26.000Z
2021-08-16T21:22:26.000Z
TBDataPreparation/202106_DESY/scripts/convert.py
gaudio74/DREMTubes
6fa69becbf1dd36161206963884fa670f363d96d
[ "MIT" ]
null
null
null
TBDataPreparation/202106_DESY/scripts/convert.py
gaudio74/DREMTubes
6fa69becbf1dd36161206963884fa670f363d96d
[ "MIT" ]
null
null
null
#from tqdm import tqdm #rawdataPath = "/afs/cern.ch/user/i/ideadr/cernbox/TB2021_H8/rawData" #rawntuplePath = "/afs/cern.ch/user/i/ideadr/cernbox/TB2021_H8/rawNtupleSiPM" rawdataPath = "/eos/user/i/ideadr/TB2021_Desy/rawDataSiPM" rawntuplePath = "/eos/user/i/ideadr/TB2021_Desy/rawNtupleSiPM" if __name__ == "__...
26
77
0.616037
import os, sys, subprocess from glob import glob import multiprocessing as mp #from tqdm import tqdm #rawdataPath = "/afs/cern.ch/user/i/ideadr/cernbox/TB2021_H8/rawData" #rawntuplePath = "/afs/cern.ch/user/i/ideadr/cernbox/TB2021_H8/rawNtupleSiPM" rawdataPath = "/eos/user/i/ideadr/TB2021_Desy/rawDataSiPM" rawntuple...
0
0
0
0
0
952
0
12
158
684180b9b07125609d422c84af623cf2ff54c7ac
16,906
py
Python
flask_clova/core.py
jhlee7/flask-clova
ea5187dd6740f0e9513c05d4002f3c1138c052ad
[ "MIT" ]
null
null
null
flask_clova/core.py
jhlee7/flask-clova
ea5187dd6740f0e9513c05d4002f3c1138c052ad
[ "MIT" ]
null
null
null
flask_clova/core.py
jhlee7/flask-clova
ea5187dd6740f0e9513c05d4002f3c1138c052ad
[ "MIT" ]
null
null
null
""" flask_clova ~~~~~~~~~~~ :copyright: (c) 2018 by Wonyo Hwang. hollal0726@gmail.com :license: MIT, see LICENSE for more details. :All the structure and ideas were copied after seeing flask-ask :flask-ask github: https://github.com/johnwheeler/flask-ask """ from werkzeug.local import LocalPr...
38.248869
125
0.652431
""" flask_clova ~~~~~~~~~~~ :copyright: (c) 2018 by Wonyo Hwang. hollal0726@gmail.com :license: MIT, see LICENSE for more details. :All the structure and ideas were copied after seeing flask-ask :flask-ask github: https://github.com/johnwheeler/flask-ask """ import os import yaml import inspec...
0
992
0
14,114
0
225
0
87
247
b55139855ed771c06c8dd5714717f0aa421d3eae
2,279
py
Python
testMCTS.py
MbProg/BughouseAlphaZero
25d2f25417713a85b24eac3ce9a3a7f5c55ff5e5
[ "MIT" ]
null
null
null
testMCTS.py
MbProg/BughouseAlphaZero
25d2f25417713a85b24eac3ce9a3a7f5c55ff5e5
[ "MIT" ]
null
null
null
testMCTS.py
MbProg/BughouseAlphaZero
25d2f25417713a85b24eac3ce9a3a7f5c55ff5e5
[ "MIT" ]
null
null
null
from bughouse.BughouseEnv import BughouseState from bughouse.BugHouseGame import BugHouseGame from MCTS import MCTS from bughouse.keras.NNet import NNetWrapper as nn import numpy as np import bughouse.constants as constants args = dotdict({ 'tick_time': 0.05, 'cpuct': 1, 'mctsTmp' : 0.5, 'mctsTmpDepth...
23.989474
138
0.66652
from bughouse.BughouseEnv import BughouseState from bughouse.BugHouseGame import BugHouseGame from MCTS import MCTS from bughouse.keras.NNet import NNetWrapper as nn from utils import * import numpy as np import bughouse.constants as constants import matplotlib.pyplot as plt args = dotdict({ 'tick_time': 0.05, ...
0
0
0
0
0
573
0
8
90
88ae306ea2c336358d770a73dc9690f254968f41
526
py
Python
final_console/get_xml.py
juliapochynok/LearnKorean_project
60c53c1422379bbfc0fbba4c32f74105430326e8
[ "Apache-2.0" ]
1
2020-07-19T11:35:14.000Z
2020-07-19T11:35:14.000Z
final_console/get_xml.py
juliapochynok/LearnKorean_project
60c53c1422379bbfc0fbba4c32f74105430326e8
[ "Apache-2.0" ]
1
2019-03-04T14:18:03.000Z
2019-03-04T14:18:03.000Z
final_console/get_xml.py
juliapochynok/LearnKorean_project
60c53c1422379bbfc0fbba4c32f74105430326e8
[ "Apache-2.0" ]
null
null
null
import requests def make_wordinfo_file(needed_word, file): ''' Makes a API requests and writes given information to xml file ''' parameters = { 'key': "84AD3BB0C4BF3809A9CF3CCA68FAF946", 'q': needed_word,\ 'part': 'word', 'translated': 'y',\ 'trans_lang': '1'} url = "http...
29.222222
81
0.621673
import requests import xml.etree.ElementTree def make_wordinfo_file(needed_word, file): ''' Makes a API requests and writes given information to xml file ''' parameters = { 'key': "84AD3BB0C4BF3809A9CF3CCA68FAF946", 'q': needed_word,\ 'part': 'word', 'translated': 'y',\ 'trans_...
0
0
0
0
0
0
0
7
22
5329b859c4f1b5dfe3fba9ca6e3573cb06cf9986
7,543
py
Python
models/head.py
taokong/ibot
a2ee1ae7495d4ea8fb9ba100434c062f1bd3d1f0
[ "Apache-2.0" ]
327
2021-12-09T10:03:55.000Z
2022-03-31T12:26:22.000Z
models/head.py
taokong/ibot
a2ee1ae7495d4ea8fb9ba100434c062f1bd3d1f0
[ "Apache-2.0" ]
11
2021-12-30T11:39:43.000Z
2022-03-28T05:40:48.000Z
models/head.py
taokong/ibot
a2ee1ae7495d4ea8fb9ba100434c062f1bd3d1f0
[ "Apache-2.0" ]
43
2021-12-09T10:48:26.000Z
2022-03-29T06:58:40.000Z
# Copyright (c) ByteDance, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import torch.nn as nn
37.715
109
0.549649
# Copyright (c) ByteDance, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn as nn import utils from utils import trunc_normal_ class CSyncBatchNorm(nn.SyncBatchNorm): ...
0
0
0
7,149
0
0
0
-8
183
217e8b80d6adf4d2fef10c9ea931ac6ad952d76f
1,906
py
Python
app/forms/upload.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
app/forms/upload.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
app/forms/upload.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
"""Upload file forms."""
32.305085
75
0.671039
"""Upload file forms.""" from datetime import datetime from flask_babel import lazy_gettext as _ from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileRequired from wtforms import StringField, SelectField, SubmitField, DateField from wtforms.validators import InputRequired, Length from app.models i...
0
0
0
1,333
0
0
0
203
338
d7c488d0011838a73e86c5f4362fd48013d891bc
1,407
py
Python
.venv/lib/python3.8/site-packages/opencensus/stats/bucket_boundaries.py
MarkusMeyer13/graph-teams-presence
c302b79248f31623a1b209e098afc4f85d96228d
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/opencensus/stats/bucket_boundaries.py
MarkusMeyer13/graph-teams-presence
c302b79248f31623a1b209e098afc4f85d96228d
[ "MIT" ]
1
2021-07-28T09:45:24.000Z
2021-07-28T09:45:24.000Z
.venv/lib/python3.8/site-packages/opencensus/stats/bucket_boundaries.py
MarkusMeyer13/graph-teams-presence
c302b79248f31623a1b209e098afc4f85d96228d
[ "MIT" ]
null
null
null
# Copyright 2018, OpenCensus 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 by applicable law or agreed...
33.5
78
0.642502
# Copyright 2018, OpenCensus 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 by applicable law or agreed...
0
86
0
698
0
0
0
0
25
aa293e9303e52a378e0f9249b92b1b0da8bb44b2
11,361
py
Python
delfin/tests/unit/drivers/hitachi/vsp/test_hitachi_vspstor.py
lakesidehome/delfin
4bca4b508a9c43c56e076809a90ec1868c7af6c9
[ "Apache-2.0" ]
null
null
null
delfin/tests/unit/drivers/hitachi/vsp/test_hitachi_vspstor.py
lakesidehome/delfin
4bca4b508a9c43c56e076809a90ec1868c7af6c9
[ "Apache-2.0" ]
null
null
null
delfin/tests/unit/drivers/hitachi/vsp/test_hitachi_vspstor.py
lakesidehome/delfin
4bca4b508a9c43c56e076809a90ec1868c7af6c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SODA 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 by applicable law or agreed to in wri...
32.09322
75
0.583047
# Copyright 2020 The SODA 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 by applicable law or agreed to in wri...
0
0
0
4,391
0
413
0
111
181
c7cef3f0d367dacde5b4fc29e2320a2d97248a1a
6,225
py
Python
eyeshadow/eyeshadow.py
badarsh2/Virtual-Makeup
065ed6d58c269b3be092ac084485277e125c9c5f
[ "Apache-2.0" ]
36
2016-05-23T11:30:01.000Z
2021-11-23T10:09:18.000Z
eyeshadow/eyeshadow.py
bobycv06fpm/Virtual-Makeup-1
065ed6d58c269b3be092ac084485277e125c9c5f
[ "Apache-2.0" ]
6
2018-03-09T08:34:28.000Z
2020-12-18T06:41:12.000Z
eyeshadow/eyeshadow.py
badarsh2/Virtual-Makeup
065ed6d58c269b3be092ac084485277e125c9c5f
[ "Apache-2.0" ]
16
2017-12-18T15:10:56.000Z
2021-11-01T18:42:59.000Z
import numpy as np from skimage import color import cv2 #Source colour R,G,B = (102.,0.,51.) inten = 0.8 lower_left_end = 5 upper_left_end = 11 lower_right_end = 16 upper_right_end = 22 file = np.loadtxt('pointeyeshadow.txt') points = np.floor(file) point_down_x = np.array((points[:lower_left_end][:,0])) p...
35.169492
128
0.675823
import Image, numpy as np,math import scipy as sp from scipy.interpolate import interp1d from pylab import * from skimage import io, color import cv2 #Source colour R,G,B = (102.,0.,51.) inten = 0.8 lower_left_end = 5 upper_left_end = 11 lower_right_end = 16 upper_right_end = 22 def inter(lx=[],ly=[],k1='quadratic'...
0
0
0
0
0
624
0
28
181
462755af09ce6c97bf8bd909cd6032af97a121d5
1,560
py
Python
axes/signals.py
seatme/django-axes
5bfa1601e0853f8d970f281485ca55ca7fedd3b0
[ "MIT" ]
null
null
null
axes/signals.py
seatme/django-axes
5bfa1601e0853f8d970f281485ca55ca7fedd3b0
[ "MIT" ]
1
2018-05-29T23:29:43.000Z
2018-05-29T23:29:43.000Z
axes/signals.py
seatme/django-axes
5bfa1601e0853f8d970f281485ca55ca7fedd3b0
[ "MIT" ]
null
null
null
from django.dispatch import receiver from django.dispatch import Signal from django.utils.timezone import now from django.contrib.auth.signals import user_logged_out from django.db.models.signals import post_save, post_delete from django.core.cache import cache from axes.models import AccessLog, AccessAttempt from axe...
33.191489
79
0.729487
from django.dispatch import receiver from django.dispatch import Signal from django.utils.timezone import now from django.contrib.auth.signals import user_logged_out from django.db.models.signals import post_save, post_delete from django.core.cache import cache from axes.models import AccessLog, AccessAttempt from axe...
0
1,020
0
0
0
0
0
0
72
5d0dfdebdf7f1197b0fed6ab32cdf7f5695079b9
1,227
py
Python
scripts/arbitrage.py
Aymen1001/uniswap-sushiswap-arbitrage
3d1111c6fc1be2128db60db653f0ce79acd3c26f
[ "MIT" ]
null
null
null
scripts/arbitrage.py
Aymen1001/uniswap-sushiswap-arbitrage
3d1111c6fc1be2128db60db653f0ce79acd3c26f
[ "MIT" ]
null
null
null
scripts/arbitrage.py
Aymen1001/uniswap-sushiswap-arbitrage
3d1111c6fc1be2128db60db653f0ce79acd3c26f
[ "MIT" ]
1
2022-03-29T21:23:46.000Z
2022-03-29T21:23:46.000Z
from brownie import config, network weth_token = config["networks"][network.show_active()]["weth-token"] dai_token = config["networks"][network.show_active()]["dai-token"] uni_router_address = config["networks"][network.show_active()]["uniswap-router"] sushi_router_address = config["networks"][network.show_active()...
27.886364
97
0.705786
import brownie from brownie import config, network, SimpleArbitrage from scripts.helper_scripts import get_account, toWei, fromWei, approve_erc20, FORKED_BLOCHCHAINS from scripts.get_weth import get_weth weth_token = config["networks"][network.show_active()]["weth-token"] dai_token = config["networks"][network.show_...
0
0
0
0
0
679
0
102
89
7b73ebdd92351dbc6302cb976d2b45f211f29f7e
1,607
py
Python
BioModelsDAG/pipeline/parsers/derived_model_parser.py
danielqiang/BioModels
4697ad44d98953e2646f692f3010191febc64747
[ "MIT" ]
1
2021-03-07T13:47:07.000Z
2021-03-07T13:47:07.000Z
BioModelsDAG/pipeline/parsers/derived_model_parser.py
danielqiang/BioModels
4697ad44d98953e2646f692f3010191febc64747
[ "MIT" ]
2
2021-03-31T19:53:45.000Z
2021-12-13T20:46:15.000Z
BioModelsDAG/pipeline/parsers/derived_model_parser.py
danielqiang/BioModels
4697ad44d98953e2646f692f3010191febc64747
[ "MIT" ]
null
null
null
__all__ = ['DerivedModelParser']
35.711111
96
0.619788
from ..bases import BaseParser from bs4 import BeautifulSoup __all__ = ['DerivedModelParser'] class DerivedModelParser(BaseParser): def parser(self, sbml_file, **kwargs): """ Extracts all parent models from an SBML file and returns a generator of (Child Model, Edge, Parent Model) 3-tuples...
0
200
0
1,288
0
0
0
17
67
e1e62ff1d0cf28c232e195e346091dcf71f63f6b
5,248
py
Python
Section_16 _Orientacao_a_objeto/execicios/ex03.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
Section_16 _Orientacao_a_objeto/execicios/ex03.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
Section_16 _Orientacao_a_objeto/execicios/ex03.py
thiagofreitascarneiro/Python_OOP
037621e334ec7159fe0da937db8418eba6321bdd
[ "MIT" ]
null
null
null
''' Crie uma classe denominada Elevador para armazenar as informaes de um elevador dentro de um prdio. A classe deve armazenar o andar atual (trreo - 0), total de andares no prdio, ecluibdo o trreo, capacidade do elevador, e quantas pessoas esto presentes nele. A classe deve tambm disponibilizar os seguintes mtodos: ...
39.757576
132
0.665777
''' Crie uma classe denominada Elevador para armazenar as informações de um elevador dentro de um prédio. A classe deve armazenar o andar atual (térreo - 0), total de andares no prédio, ecluibdo o térreo, capacidade do elevador, e quantas pessoas estão presentes nele. A classe deve também disponibilizar os seguintes m...
110
0
0
3,265
0
0
0
0
23
601f4431742305ced63aadcf62fe6b9038815630
1,210
py
Python
app/core/admin.py
baochyang/recipe-app-api
bc9cb805abcf7f13ad21b9612dce2717b755376b
[ "MIT" ]
null
null
null
app/core/admin.py
baochyang/recipe-app-api
bc9cb805abcf7f13ad21b9612dce2717b755376b
[ "MIT" ]
null
null
null
app/core/admin.py
baochyang/recipe-app-api
bc9cb805abcf7f13ad21b9612dce2717b755376b
[ "MIT" ]
null
null
null
from django.contrib import admin # make it easier to do translations from core import models admin.site.register(models.User, UserAdmin) # Register your models here.
37.8125
122
0.591736
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin # import the default Django user admin from django.utils.translation import gettext as _ # converting string in python to human readable text # make it easier to do translations from core import models class UserA...
0
0
0
805
0
0
0
71
161
35c968374fedf71bed8b5467a12b7d434b426422
1,147
py
Python
wsgi/iportalen_django/speaker_list/migrations/0001_initial.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
4
2016-09-21T17:06:01.000Z
2018-02-06T16:36:44.000Z
wsgi/iportalen_django/speaker_list/migrations/0001_initial.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
149
2016-03-07T23:50:47.000Z
2022-03-11T23:16:33.000Z
wsgi/iportalen_django/speaker_list/migrations/0001_initial.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
1
2016-03-07T23:02:06.000Z
2016-03-07T23:02:06.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
40.964286
166
0.667829
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('events',...
2
0
0
950
0
0
0
41
90
3854b14e8e44555ef2dd329c26537dbb617dfda2
1,433
py
Python
setup.py
giphahne/textgrid-utils
57279895416ecc632308a17e58dc530aeaac22bf
[ "MIT" ]
1
2019-11-20T20:48:03.000Z
2019-11-20T20:48:03.000Z
setup.py
giphahne/textgrid-utils
57279895416ecc632308a17e58dc530aeaac22bf
[ "MIT" ]
4
2019-11-07T16:07:58.000Z
2019-11-21T21:17:18.000Z
setup.py
giphahne/textgrid-utils
57279895416ecc632308a17e58dc530aeaac22bf
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='textgrid_utils', version='2.0.0', description='utilities for wor...
34.119048
69
0.641312
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='textgrid_utils', version='2.0.0', description='utilities for wor...
0
0
0
0
0
0
0
0
0
ea79c6748270c50e44b660bb703822ff5cf6c2b6
782
py
Python
Courts-Of-Chaos/courts_of_chaos/__init__.py
milos85vasic/Courts-of-Chaos
e164ce4e0de8bbba280d089ad3945fc552cf1b1c
[ "Apache-2.0" ]
3
2018-01-05T15:43:33.000Z
2019-12-13T08:52:34.000Z
Courts-Of-Chaos/courts_of_chaos/__init__.py
milos85vasic/Courts-of-Chaos
e164ce4e0de8bbba280d089ad3945fc552cf1b1c
[ "Apache-2.0" ]
null
null
null
Courts-Of-Chaos/courts_of_chaos/__init__.py
milos85vasic/Courts-of-Chaos
e164ce4e0de8bbba280d089ad3945fc552cf1b1c
[ "Apache-2.0" ]
null
null
null
from pyramid.config import Configurator from courts_of_chaos.resources import get_root def main(global_config, **settings): """ This function returns a WSGI application. It is usually called by the PasteDeploy framework during ``paster serve``. """ settings = dict(settings) settings.setd...
32.583333
68
0.705882
from pyramid.config import Configurator from courts_of_chaos.resources import get_root def main(global_config, **settings): """ This function returns a WSGI application. It is usually called by the PasteDeploy framework during ``paster serve``. """ settings = dict(settings) settings.setd...
0
0
0
0
0
0
0
0
0
d77300aa48adbe0ced4d47ac73abbbdecc9795a4
1,625
py
Python
setup.py
mjimenezganan/landslide
90b7345e31f442379f5469b1df4bd0d552a9b56e
[ "Apache-2.0" ]
1
2019-04-15T13:12:23.000Z
2019-04-15T13:12:23.000Z
setup.py
mjimenezganan/landslide
90b7345e31f442379f5469b1df4bd0d552a9b56e
[ "Apache-2.0" ]
null
null
null
setup.py
mjimenezganan/landslide
90b7345e31f442379f5469b1df4bd0d552a9b56e
[ "Apache-2.0" ]
1
2019-04-21T19:03:05.000Z
2019-04-21T19:03:05.000Z
from setuptools import setup import landslide setup( name=landslide.__title__, version=landslide.__version__, description='HTML5 slideshow generator for Markdown, ReST, and Textile', packages=['landslide'], include_package_data=True, zip_safe=False, author=landslide.__author__, author_...
31.862745
78
0.637538
from setuptools import setup import landslide setup( name=landslide.__title__, version=landslide.__version__, description='HTML5 slideshow generator for Markdown, ReST, and Textile', packages=['landslide'], include_package_data=True, zip_safe=False, author=landslide.__author__, author_...
0
0
0
0
0
0
0
0
0
5e8588234da678dcf9170790a99a247a71f0ef16
342
py
Python
Test/xmlrpc_demo/__init__.py
Watch-Dogs-HIT/Watch_Dogs-Client
bcd6baed3a7206dfb1f1db66d078caaea180c27b
[ "WTFPL" ]
6
2019-01-18T09:58:25.000Z
2020-03-16T09:55:30.000Z
Test/xmlrpc_demo/__init__.py
Watch-Dogs-HIT/Watch_Dogs-Client
bcd6baed3a7206dfb1f1db66d078caaea180c27b
[ "WTFPL" ]
4
2019-03-08T11:10:21.000Z
2019-05-30T12:14:18.000Z
Test/xmlrpc_demo/__init__.py
Watch-Dogs-HIT/Watch_Dogs-Client
bcd6baed3a7206dfb1f1db66d078caaea180c27b
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # encoding:utf8 """ xmlrpclib Demo """ reference_1 = "https://docs.python.org/2/library/xmlrpclib.html" reference_2 = "https://docs.python.org/2/library/simplexmlrpcserver.html#simplexmlrpcserver-example" # 1. demo # 2. , # 3. //HTTPS X # 4. (?) X # 2019.2.12 api
20.117647
100
0.722222
#!/usr/bin/env python # encoding:utf8 """ xmlrpclib 部分功能的测试和Demo """ reference_1 = "https://docs.python.org/2/library/xmlrpclib.html" reference_2 = "https://docs.python.org/2/library/simplexmlrpcserver.html#simplexmlrpcserver-example" # 1. 实现所有demo √ # 2. 传递文本,字典数据 √ # 3. 实现身份认证/主机认证/HTTPS认证功能 X # 4. 实现鉴权功能(?) X # ...
150
0
0
0
0
0
0
0
0
6655589b1dfd7d82d8decee90cb533b3d190f448
2,403
py
Python
src/extract_face.py
tomasmikeska/face-identification
15a65c66f840e183f83119dba35488607a4ff0b2
[ "MIT" ]
5
2019-06-24T16:22:28.000Z
2020-10-02T21:58:44.000Z
src/extract_face.py
tomasmikeska/face-identification
15a65c66f840e183f83119dba35488607a4ff0b2
[ "MIT" ]
2
2020-11-09T09:24:42.000Z
2020-11-09T09:24:52.000Z
src/extract_face.py
tomasmikeska/face-identification
15a65c66f840e183f83119dba35488607a4ff0b2
[ "MIT" ]
2
2020-03-03T15:58:27.000Z
2020-05-07T11:46:30.000Z
import matplotlib.pyplot as plt # -- Face extraction -- # Target transformation facial landmarks # that are used for similarity transformation # # Reference point = ( x , y ) REF_LEFT_EYE = (30.2946, 51.6963) REF_RIGHT_EYE = (65.5318, 51.5014) REF_NOSE = (48.0252, 71....
31.207792
100
0.684561
import random import cv2 import numpy as np import matplotlib.pyplot as plt from skimage.transform import SimilarityTransform from constants import TARGET_IMG_WIDTH, TARGET_IMG_HEIGHT # -- Face extraction -- # Target transformation facial landmarks # that are used for similarity transformation # # Reference point ...
0
0
0
0
0
1,153
0
42
202
e51cd55e42a49c20bfdd6d0903b186aa1a2231ab
1,048
py
Python
subunit2sql/migrations/versions/163fd5aa1380_create_avg_runtime_column_in_test_table.py
mtreinish/subunit2sql
2b46c7b0c793fcde25717667303de95a5bac6831
[ "Apache-2.0" ]
3
2015-10-28T02:38:06.000Z
2016-07-11T22:15:30.000Z
subunit2sql/migrations/versions/163fd5aa1380_create_avg_runtime_column_in_test_table.py
mtreinish/subunit2sql
2b46c7b0c793fcde25717667303de95a5bac6831
[ "Apache-2.0" ]
null
null
null
subunit2sql/migrations/versions/163fd5aa1380_create_avg_runtime_column_in_test_table.py
mtreinish/subunit2sql
2b46c7b0c793fcde25717667303de95a5bac6831
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # 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 applica...
27.578947
76
0.748092
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # 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 applica...
0
0
0
0
0
105
0
3
91
9f6498df4cc33361bf0dcc1ebc5a2f9d312829ad
4,171
py
Python
models/CNN.py
wyang924/CNNforRelationClassification
f9287b6f320909e99ee953c7b5b3100bc534a86b
[ "Apache-2.0" ]
1
2021-01-27T10:04:14.000Z
2021-01-27T10:04:14.000Z
models/CNN.py
wyang924/CNNforRelationClassification
f9287b6f320909e99ee953c7b5b3100bc534a86b
[ "Apache-2.0" ]
null
null
null
models/CNN.py
wyang924/CNNforRelationClassification
f9287b6f320909e99ee953c7b5b3100bc534a86b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import torch.nn as nn
36.911504
120
0.626229
# -*- coding: utf-8 -*- from .BasicModule import BasicModule import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class CNN(BasicModule): """ the basic model Zeng 2014 "Relation Classification via Convolutional Deep Neural Network" """ def __init__(self, opt): ...
195
0
0
3,934
0
0
0
13
112
4e07c780d64e960cb9ede8ad52dd35cb0194a8b2
10,810
py
Python
rate_m.py
RYNO8/chess-AI
453674fa172866da85cf80fd1cd76dc252c06afd
[ "MIT" ]
null
null
null
rate_m.py
RYNO8/chess-AI
453674fa172866da85cf80fd1cd76dc252c06afd
[ "MIT" ]
null
null
null
rate_m.py
RYNO8/chess-AI
453674fa172866da85cf80fd1cd76dc252c06afd
[ "MIT" ]
null
null
null
from functions.functions import Pos """ Source Year Pawn Knight Bishop Rook Queen H. S. M. Coxeter 1940 ??? 300 350 550 1000 Max Euwe and Hans Kramer1944 100 350 350 550 1000 Claude Shannon 1949 100 300 300 500 900 Alan Turing 1953 100 300 350 500 1000 Mac Hack 1967 100 325 350 500 975 Chess 4.5 1977 10...
42.392157
139
0.5963
from functions.functions import Pos """ Source Year Pawn Knight Bishop Rook Queen H. S. M. Coxeter 1940 ??? 300 350 550 1000 Max Euwe and Hans Kramer1944 100 350 350 550 1000 Claude Shannon 1949 100 300 300 500 900 Alan Turing 1953 100 300 350 500 1000 Mac Hack 1967 100 325 350 500 975 Chess 4.5 1977 10...
0
0
0
0
0
1,983
0
0
125
db0e5c508595ccae9348eed7dd5fd9f8ac936304
8,836
py
Python
homeassistant/components/coinmarketcap/sensor.py
lausser/core
8411f377f3523f1409f7fc722ac950a851d9ea8d
[ "Apache-2.0" ]
null
null
null
homeassistant/components/coinmarketcap/sensor.py
lausser/core
8411f377f3523f1409f7fc722ac950a851d9ea8d
[ "Apache-2.0" ]
null
null
null
homeassistant/components/coinmarketcap/sensor.py
lausser/core
8411f377f3523f1409f7fc722ac950a851d9ea8d
[ "Apache-2.0" ]
null
null
null
"""Details about crypto currencies from CoinMarketCap.""" from datetime import timedelta import logging from urllib.error import HTTPError #from coinmarketcap import Market import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_DISPLAY_CURRENCY import...
36.065306
164
0.666478
"""Details about crypto currencies from CoinMarketCap.""" import os import json import requests import tempfile import requests_cache from datetime import timedelta import logging from urllib.error import HTTPError #from coinmarketcap import Market import voluptuous as vol from homeassistant.components.sensor import ...
0
2,509
0
3,482
0
0
0
10
178
c9d87a15cc9cf7fbb00e08e52c98a6daf8c815fc
2,195
py
Python
run_models.py
johnjarmitage/flem
67b54f1f385fd258c62b50d2a7302a0c041c8182
[ "MIT" ]
17
2019-05-21T16:23:33.000Z
2021-03-15T19:54:26.000Z
run_models.py
johnjarmitage/flem-execarticle
dd0da1c8f9d0f6e50a1eed22693f51b9bd020109
[ "MIT" ]
4
2019-05-21T18:44:56.000Z
2019-09-03T16:03:20.000Z
run_models.py
johnjarmitage/flem
67b54f1f385fd258c62b50d2a7302a0c041c8182
[ "MIT" ]
4
2019-05-21T17:21:10.000Z
2019-09-03T15:52:34.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jan 24 16:35:03 2018 Script to run transport_func() many times! @author: armitage """ from __future__ import print_function #from fenics import * #from mshr import * import numpy as np from flem import initialise, solve_flem #import peakutils # https://zenodo.org/badge/late...
24.120879
117
0.610023
# -*- coding: utf-8 -*- """ Created on Wed Jan 24 16:35:03 2018 Script to run transport_func() many times! @author: armitage """ from __future__ import print_function #from fenics import * #from mshr import * import numpy as np from flem import initialise, solve_flem #import peakutils # https://zenodo.org/badge/late...
0
0
0
0
0
0
0
0
0
69487a16b2bda2c8aa7539669ce45c030b4d13ca
1,529
py
Python
autorest/codegen/models/rest.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
autorest/codegen/models/rest.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
autorest/codegen/models/rest.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------------
36.404762
79
0.599738
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from typin...
0
501
0
550
0
0
0
57
111
819a8a3a9f83908a5d093def79b3215a865515cb
3,480
py
Python
blog/views.py
ketan-lambat/driveIt
3c38b730214ac69196554b71a000e2b2fa6eab42
[ "MIT" ]
3
2020-07-25T03:27:41.000Z
2022-01-09T13:18:22.000Z
blog/views.py
ASE-Group-23/ASE-1-Project
8bc9bbdd1a1e285575014fc8ecb17208fb718527
[ "MIT" ]
13
2020-03-12T11:36:33.000Z
2022-03-12T00:19:04.000Z
blog/views.py
ASE-Group-23/ASE-1-Project
8bc9bbdd1a1e285575014fc8ecb17208fb718527
[ "MIT" ]
2
2020-03-23T11:12:25.000Z
2021-01-04T01:34:23.000Z
# Create your views here.
28.760331
97
0.652586
from django.shortcuts import render, redirect from .models import Post from django.core.paginator import Paginator, EmptyPage, InvalidPage from django.db.models import Q from django.template.defaultfilters import slugify from django.contrib.auth.decorators import login_required from django.contrib.auth import authentic...
0
2,871
0
0
0
0
0
191
383
542c948f7c3329251770505f76a0b94ba9bff540
2,375
py
Python
model_neu/cv_mod_3.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
model_neu/cv_mod_3.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
model_neu/cv_mod_3.py
lelange/cu-ssp
9f1a7abf79a2fb6ef2ae0f37de79469c2dc3488f
[ "MIT" ]
null
null
null
import sys import numpy as np sys.path.append('keras-tcn') from sklearn.model_selection import KFold from keras.layers import Dropout # Instantiate the cross validator kfold_splits = 5 kf = KFold(n_splits=kfold_splits, shuffle=True) cv_scores, model_history = list(), list() # Loop through the indices the split() met...
36.538462
147
0.784842
import sys import os import argparse import time import numpy as np import dill as pickle import pandas as pd import tensorflow as tf sys.path.append('keras-tcn') from tcn import tcn import h5py from sklearn.model_selection import KFold from sklearn.model_selection import train_test_split from keras import backend as...
0
0
0
0
0
0
0
425
641
e51894c13ec7b4f51a634988589bdb7e073cd4b9
113
py
Python
websitetools/run.py
djevans071/Reba
f1ace398a93d40697ad06c6c8224e9e004bab77a
[ "MIT" ]
null
null
null
websitetools/run.py
djevans071/Reba
f1ace398a93d40697ad06c6c8224e9e004bab77a
[ "MIT" ]
null
null
null
websitetools/run.py
djevans071/Reba
f1ace398a93d40697ad06c6c8224e9e004bab77a
[ "MIT" ]
null
null
null
#!/usr/bin/env python #from flaskex import app from cbalancer import app app.run(debug = True, host = '0.0.0.0')
22.6
39
0.707965
#!/usr/bin/env python #from flaskex import app from cbalancer import app app.run(debug = True, host = '0.0.0.0')
0
0
0
0
0
0
0
0
0
949bd4ff001bcd3b7a3365ae760bd072a2a182f9
6,882
py
Python
character/migrations/0023_auto_20210823_0426.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
character/migrations/0023_auto_20210823_0426.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
character/migrations/0023_auto_20210823_0426.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-23 04:26
31.861111
246
0.543011
# Generated by Django 3.2.5 on 2021-08-23 04:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('character', '0022_auto_20210820_2005'), ] operations = [ migrations.CreateModel( name='Proficiency', fields=[ ...
0
0
0
6,768
0
0
0
19
46
c63c005d8890b77c1af8c570de3e32ced13cfb7d
6,448
py
Python
config/settings.py
derrickkyoo/tc-boilerplate
c15fa2ee078b31637627f9f3278706d3f85f46e3
[ "MIT" ]
null
null
null
config/settings.py
derrickkyoo/tc-boilerplate
c15fa2ee078b31637627f9f3278706d3f85f46e3
[ "MIT" ]
null
null
null
config/settings.py
derrickkyoo/tc-boilerplate
c15fa2ee078b31637627f9f3278706d3f85f46e3
[ "MIT" ]
null
null
null
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
30.130841
91
0.592122
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
0
0
0
0
0
0
0
0
0
54bbc7103de152ca5890473a6d60d25e4bf2aacd
4,248
py
Python
src/message_data.py
EvilCouncil/imap_consume
3d34d91ad1140f84e0a8633e7c501f3086cf90fc
[ "MIT" ]
null
null
null
src/message_data.py
EvilCouncil/imap_consume
3d34d91ad1140f84e0a8633e7c501f3086cf90fc
[ "MIT" ]
null
null
null
src/message_data.py
EvilCouncil/imap_consume
3d34d91ad1140f84e0a8633e7c501f3086cf90fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Download and catalogue emails."""
27.584416
90
0.637947
#!/usr/bin/env python """Download and catalogue emails.""" import base64 import time import hashlib import json import ssdeep class Message(): """holds message data.""" def __init__(self, email_id): self._email_id = email_id self._data = list() def append(self, mdata): """Add a n...
0
2,341
0
1,733
0
0
0
-43
157
993f29bffe2211bab656052bcdd231a68f4ddcd0
1,853
py
Python
models/decoder.py
mlshenkai/transformer
fb99ca6bef86ee71dda98650ac9485a3ef798676
[ "Apache-2.0" ]
null
null
null
models/decoder.py
mlshenkai/transformer
fb99ca6bef86ee71dda98650ac9485a3ef798676
[ "Apache-2.0" ]
null
null
null
models/decoder.py
mlshenkai/transformer
fb99ca6bef86ee71dda98650ac9485a3ef798676
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Kai Shen # @Created Time: 2021/5/18 11:34 # @Organization: YQN import torch.nn as nn
43.093023
119
0.747976
# -*- coding: utf-8 -*- # @Author: Kai Shen # @Created Time: 2021/5/18 11:34 # @Organization: YQN import torch import torch.nn as nn from models.backbone.position_encoding import PositionEncoding from models.backbone.decode_layer import DecoderLayer from models.backbone.mask_feature import get_attn_pad_mask,get_attn_su...
0
0
0
1,492
0
0
0
127
111
8fd1fd6654484058769ec194047ba3c24f53b147
1,624
py
Python
ants/utils/histogram_match_image.py
dpedrosac/ANTsPy
605d160be48f5e0fc90b590e8207e8870d794158
[ "Apache-2.0" ]
338
2017-09-01T06:47:54.000Z
2022-03-31T12:11:46.000Z
ants/utils/histogram_match_image.py
dpedrosac/ANTsPy
605d160be48f5e0fc90b590e8207e8870d794158
[ "Apache-2.0" ]
306
2017-08-30T20:05:07.000Z
2022-03-31T16:20:44.000Z
ants/utils/histogram_match_image.py
dpedrosac/ANTsPy
605d160be48f5e0fc90b590e8207e8870d794158
[ "Apache-2.0" ]
115
2017-09-08T11:53:17.000Z
2022-03-27T05:53:39.000Z
__all__ = ['histogram_match_image'] from ..core import ants_image as iio from .. import utils def histogram_match_image(source_image, reference_image, number_of_histogram_bins=255, number_of_match_points=64, use_threshold_at_mean_intensity=False): """ Histogram match source image to reference image. Ar...
30.074074
153
0.71367
__all__ = ['histogram_match_image'] import math from ..core import ants_image as iio from .. import utils def histogram_match_image(source_image, reference_image, number_of_histogram_bins=255, number_of_match_points=64, use_threshold_at_mean_intensity=False): """ Histogram match source image to reference i...
0
0
0
0
0
0
0
-10
23
ac30c2a24e43cc404c9dba45b19265dd963577d8
16,439
py
Python
tests/backend/test_states_polyquad.py
Lucaman99/strawberryfields
627b8e6c1049d1108303bf0d9ba53cf6b120ea1f
[ "Apache-2.0" ]
1
2020-07-12T17:53:56.000Z
2020-07-12T17:53:56.000Z
tests/backend/test_states_polyquad.py
Lucaman99/strawberryfields
627b8e6c1049d1108303bf0d9ba53cf6b120ea1f
[ "Apache-2.0" ]
5
2020-09-26T01:27:24.000Z
2022-02-10T02:13:49.000Z
tests/backend/test_states_polyquad.py
Lucaman99/strawberryfields
627b8e6c1049d1108303bf0d9ba53cf6b120ea1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
34.82839
133
0.575704
# Copyright 2019 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
0
15,298
0
0
0
0
0
127
224
25440c12b77c6e47b622d3ef62a255578d6145a2
787
py
Python
core/po_handler.py
hzylyh/webUIAT
5fa86f50dd9cb367074d352fc4dbe9be36dfe225
[ "MIT" ]
null
null
null
core/po_handler.py
hzylyh/webUIAT
5fa86f50dd9cb367074d352fc4dbe9be36dfe225
[ "MIT" ]
null
null
null
core/po_handler.py
hzylyh/webUIAT
5fa86f50dd9cb367074d352fc4dbe9be36dfe225
[ "MIT" ]
null
null
null
""" Description: Author: John Holl Github: https://github.com/hzylyh Date: 2022-03-19 13:42:16 LastEditors: John Holl LastEditTime: 2022-03-19 15:24:12 """ po_manager = {}
23.147059
59
0.628971
""" Description: Author: John Holl Github: https://github.com/hzylyh Date: 2022-03-19 13:42:16 LastEditors: John Holl LastEditTime: 2022-03-19 15:24:12 """ import logging import os from constant.constant import * po_manager = {} def load_project(): dir = APP['project']['path'] + PO_SUFFIX files = os.listdir(...
0
0
0
0
0
509
0
-9
112
5621a262758a0cff7a74610e6ae29a0d0bfda5ed
298
py
Python
Py exercises/delete_run.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/delete_run.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/delete_run.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 23 17:45:41 2017 @author: User """ hailstone_2(5)
16.555556
36
0.463087
# -*- coding: utf-8 -*- """ Created on Thu Nov 23 17:45:41 2017 @author: User """ def hailstone_2(n): if n == 0 or n ==1: print('1') elif n%2 == 0: print(n) hailstone_2(n//2) else: print(n) hailstone_2(3*n + 1) hailstone_2(5)
0
0
0
0
0
167
0
0
25
a29e6f68b14a81b4b03f52ee078bcb804c96022c
7,265
py
Python
tools/nntool/graph/types/activations.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
null
null
null
tools/nntool/graph/types/activations.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
null
null
null
tools/nntool/graph/types/activations.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
28.944223
115
0.68245
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
0
5,202
0
731
0
0
0
244
276
8372f2ead71db1268f76eae3f8d6b01eb2c6946a
994
py
Python
RateMySchoolProject/rateMySchoolApp/migrations/0003_post_downvotecount_post_rate_stars_post_upvotecount_and_more.py
Tesfa-eth/web_application
90c062b18de39ed2a53367da4641b4ef942ea70b
[ "MIT" ]
null
null
null
RateMySchoolProject/rateMySchoolApp/migrations/0003_post_downvotecount_post_rate_stars_post_upvotecount_and_more.py
Tesfa-eth/web_application
90c062b18de39ed2a53367da4641b4ef942ea70b
[ "MIT" ]
null
null
null
RateMySchoolProject/rateMySchoolApp/migrations/0003_post_downvotecount_post_rate_stars_post_upvotecount_and_more.py
Tesfa-eth/web_application
90c062b18de39ed2a53367da4641b4ef942ea70b
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-17 04:10
27.611111
110
0.591549
# Generated by Django 4.0.2 on 2022-03-17 04:10 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('rateMySchoolApp', '0002_rename_content_post_postcontent_and_more'), ] operations = [ m...
0
0
0
826
0
0
0
29
90
c5cb40a58e49c43d8fa1c51d9c5037fbddef81e3
21,722
py
Python
code_not_used/PastHistoryModelsTemplateSG.py
awerdich/edwdb
de963258547e42c775e13bbe81f97c29a437f283
[ "MIT" ]
null
null
null
code_not_used/PastHistoryModelsTemplateSG.py
awerdich/edwdb
de963258547e42c775e13bbe81f97c29a437f283
[ "MIT" ]
null
null
null
code_not_used/PastHistoryModelsTemplateSG.py
awerdich/edwdb
de963258547e42c775e13bbe81f97c29a437f283
[ "MIT" ]
null
null
null
""" TODO update description based on this: https://raw.githubusercontent.com/explosion/spaCy/master/examples/deep_learning_keras.py This example shows how to use an LSTM sentiment classification model trained using Keras in spaCy. spaCy splits the document into sentences, and each sentence is classified using the LSTM....
42.844181
197
0.702836
""" TODO update description based on this: https://raw.githubusercontent.com/explosion/spaCy/master/examples/deep_learning_keras.py This example shows how to use an LSTM sentiment classification model trained using Keras in spaCy. spaCy splits the document into sentences, and each sentence is classified using the LSTM....
0
389
0
2,018
0
12,474
0
682
1,001
5d6545bdda865771c7692f771e61644193a2baf4
1,242
py
Python
fuzzers/011-cle-ffconfig/prims.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
39
2020-07-17T19:43:40.000Z
2022-01-07T02:05:48.000Z
fuzzers/011-cle-ffconfig/prims.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
24
2020-07-17T20:15:54.000Z
2022-01-21T08:29:51.000Z
fuzzers/011-cle-ffconfig/prims.py
tmichalak/prjuray
53f3c94b58ffc6d405ac20a3b340ae726717ed47
[ "0BSD" ]
11
2020-07-17T19:43:45.000Z
2022-02-09T08:43:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The Project U-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC # The complete primitive sets ffprims_f...
13.955056
53
0.519324
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The Project U-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC def ones(l): #return l + [x + '_1' f...
0
0
0
0
0
223
0
0
69
253a01d5e4a35e6f81ad71691a7e4ad85bc930e8
403
py
Python
Code/software/forms.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/software/forms.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/software/forms.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
#SPDX-License-Identifier: BSD-3-Clause ''' forms.py (C) Copyright 2020 Friedrich Luetze GmbH, J. Luelsdorf <lsd@luetze.de> '''
21.210526
70
0.687345
#SPDX-License-Identifier: BSD-3-Clause ''' forms.py (C) Copyright 2020 Friedrich Luetze GmbH, J. Luelsdorf <lsd@luetze.de> ''' from django import forms from software.models import Release class ReleaseAddLicenseForm(forms.ModelForm): """ Form, used to add or change the License a software release uses. ...
0
0
0
190
0
0
0
17
67
d742b055f3ae470bb21dce5b173eccd9bf621c4a
770
py
Python
setup.py
jait/tupelo
fd6fd6c5c246c1ba3d2496a86cab087284c92af1
[ "BSD-3-Clause" ]
null
null
null
setup.py
jait/tupelo
fd6fd6c5c246c1ba3d2496a86cab087284c92af1
[ "BSD-3-Clause" ]
null
null
null
setup.py
jait/tupelo
fd6fd6c5c246c1ba3d2496a86cab087284c92af1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.6" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
28.518519
83
0.622078
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.6" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
0
0
0
0
0
0
0
0
0
c0f0069eb3b6efa5dd29f16b8c800a3288330d89
2,361
py
Python
src/cihpc/core/structures/project_step_git.py
janhybs/ci-hpi
293740c7af62ecada5744ff663266de2e3d37445
[ "MIT" ]
1
2020-01-09T13:00:18.000Z
2020-01-09T13:00:18.000Z
src/cihpc/core/structures/project_step_git.py
janhybs/ci-hpi
293740c7af62ecada5744ff663266de2e3d37445
[ "MIT" ]
null
null
null
src/cihpc/core/structures/project_step_git.py
janhybs/ci-hpi
293740c7af62ecada5744ff663266de2e3d37445
[ "MIT" ]
2
2018-08-12T01:13:28.000Z
2018-08-13T14:37:28.000Z
#!/usr/bin/python # author: Jan Hybs
28.792683
81
0.557814
#!/usr/bin/python # author: Jan Hybs import os from cihpc.common.utils.files import StdoutType from cihpc.cfg.config import global_configuration class ProjectStepGits(list): def __init__(self, kwargs): super(ProjectStepGits, self).__init__() if not kwargs: return # single g...
0
234
0
1,932
0
0
0
42
113
799338e22e38a53ec6552942021c60a17ed49084
517
py
Python
utils.py
JimHaughwout/geoinferencing
dc6bf168069ad7a6bf2de026bb1324ea177c8f31
[ "MIT" ]
null
null
null
utils.py
JimHaughwout/geoinferencing
dc6bf168069ad7a6bf2de026bb1324ea177c8f31
[ "MIT" ]
null
null
null
utils.py
JimHaughwout/geoinferencing
dc6bf168069ad7a6bf2de026bb1324ea177c8f31
[ "MIT" ]
null
null
null
import json from shapely.geometry import shape, Point SP_FENCE = 'shippingPointFence' LANE = 'smfLane-0304705806.geojson' # Load lane with open(LANE, 'r') as f: lane = json.load(f) # Construct point from geolocation point = Point(-77.5210123, 40.027551) for feature in lane['features']: properties = feature...
25.85
61
0.673114
import json from shapely.geometry import shape, Point SP_FENCE = 'shippingPointFence' LANE = 'smfLane-0304705806.geojson' # Load lane with open(LANE, 'r') as f: lane = json.load(f) # Construct point from geolocation point = Point(-77.5210123, 40.027551) for feature in lane['features']: properties = feature...
0
0
0
0
0
0
0
0
0
ebbcd442d1af5512ca72229ecf95e2039652543e
2,269
py
Python
mt_metadata/transfer_functions/emtf_xml/site_layout.py
kujaku11/mt_metadata
92081e77550b737619f6c40c4ecb56e2e4d4d870
[ "MIT" ]
10
2021-01-08T23:38:45.000Z
2022-03-31T14:01:45.000Z
mt_metadata/transfer_functions/emtf_xml/site_layout.py
kujaku11/mt_metadata
92081e77550b737619f6c40c4ecb56e2e4d4d870
[ "MIT" ]
79
2021-01-09T03:24:30.000Z
2022-03-18T05:28:15.000Z
mt_metadata/transfer_functions/emtf_xml/site_layout.py
kujaku11/mt_metadata
92081e77550b737619f6c40c4ecb56e2e4d4d870
[ "MIT" ]
1
2022-03-02T01:11:38.000Z
2022-03-02T01:11:38.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 23 21:30:36 2020 :copyright: Jared Peacock (jpeacock@usgs.gov) :license: MIT """ # ============================================================================= # Imports # ============================================================================= from mt_metada...
28.721519
79
0.496695
# -*- coding: utf-8 -*- """ Created on Wed Dec 23 21:30:36 2020 :copyright: Jared Peacock (jpeacock@usgs.gov) :license: MIT """ # ============================================================================= # Imports # ============================================================================= from mt_metada...
0
1,247
0
309
0
0
0
44
67
043b10356e1259789962fb25564028d4e10818d1
4,154
py
Python
src/olympia/api/oauth.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
1
2015-12-01T03:53:51.000Z
2015-12-01T03:53:51.000Z
apps/api/oauth.py
magopian/olympia
70cad15111a89e3d5c715cbade8925b12d1b98dc
[ "BSD-3-Clause" ]
5
2021-02-02T23:09:35.000Z
2021-09-08T02:47:20.000Z
apps/api/oauth.py
magopian/olympia
70cad15111a89e3d5c715cbade8925b12d1b98dc
[ "BSD-3-Clause" ]
null
null
null
import commonware.log DUMMY_CLIENT_KEY = u'DummyOAuthClientKeyString' DUMMY_TOKEN = u'DummyOAuthToken' DUMMY_SECRET = u'DummyOAuthSecret' log = commonware.log.getLogger('z.api')
37.089286
79
0.650457
import string import commonware.log from oauthlib import oauth1 from oauthlib.common import safe_string_equals from .models import Access, Nonce, Token, REQUEST_TOKEN, ACCESS_TOKEN DUMMY_CLIENT_KEY = u'DummyOAuthClientKeyString' DUMMY_TOKEN = u'DummyOAuthToken' DUMMY_SECRET = u'DummyOAuthSecret' log = commonware.log...
0
147
0
3,643
0
0
0
71
112
24248fc7218f7b48d288cd1198d8f7eaaca8f02b
3,238
py
Python
riptable/tests/test_categorical_dtype.py
972d5defe3218bd62b741e6a2f11f5b3/riptable
bb928c11752e831ec701f91964979b31db53826a
[ "BSD-2-Clause-Patent" ]
307
2020-08-27T20:25:11.000Z
2022-03-08T15:51:19.000Z
riptable/tests/test_categorical_dtype.py
972d5defe3218bd62b741e6a2f11f5b3/riptable
bb928c11752e831ec701f91964979b31db53826a
[ "BSD-2-Clause-Patent" ]
206
2020-08-17T19:07:15.000Z
2022-03-18T11:53:55.000Z
riptable/tests/test_categorical_dtype.py
972d5defe3218bd62b741e6a2f11f5b3/riptable
bb928c11752e831ec701f91964979b31db53826a
[ "BSD-2-Clause-Patent" ]
10
2020-08-28T00:22:05.000Z
2021-04-30T20:22:28.000Z
sorted_codes = FastArray( [ 2, 4, 4, 3, 2, 1, 3, 2, 0, 1, 3, 4, 2, 0, 4, 3, 1, 0, 1, 2, 3, 1, 4, ...
22.643357
81
0.485485
import pytest import pandas as pd from riptable import * sorted_codes = FastArray( [ 2, 4, 4, 3, 2, 1, 3, 2, 0, 1, 3, 4, 2, 0, 4, 3, 1, 0, ...
0
0
0
2,052
0
0
0
-9
94
01f18f7031d1841482fb7a776ab3233ce49942a7
1,396
py
Python
pysh/transforms/restring.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
3
2018-07-09T04:39:24.000Z
2020-11-27T05:44:56.000Z
pysh/transforms/restring.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
null
null
null
pysh/transforms/restring.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
1
2018-08-02T21:57:11.000Z
2018-08-02T21:57:11.000Z
""" Simple lexer transform to support *regex string literals*. >>> re'\w+' re.compile(r'\w+', re.VERBOSE) The string handled as *raw* and the regex is parsed with the *VERBOSE* flag enabled so white space is ignored. If you need to set another flag use the inline syntax ``(?...)``. """ from io import StringIO ...
22.516129
89
0.636103
""" Simple lexer transform to support *regex string literals*. >>> re'\w+' re.compile(r'\w+', re.VERBOSE) The string handled as *raw* and the regex is parsed with the *VERBOSE* flag enabled so white space is ignored. If you need to set another flag use the inline syntax ``(?...)``. """ import re from io import ...
0
0
0
0
0
691
0
53
160
917332ea2172ed52cd16555e569b509b9b8a6580
1,463
py
Python
lesson3.py
IsagulovUrmat/first_git_project
93ea7d51faf27bfd5ba893b50bbbbdf813a51930
[ "MIT" ]
null
null
null
lesson3.py
IsagulovUrmat/first_git_project
93ea7d51faf27bfd5ba893b50bbbbdf813a51930
[ "MIT" ]
null
null
null
lesson3.py
IsagulovUrmat/first_git_project
93ea7d51faf27bfd5ba893b50bbbbdf813a51930
[ "MIT" ]
null
null
null
#def register(username, email, password, check_pass): # if password == check_pass and 8 <= len(username) <= 20 and 8 < len(password) < 16: # print(username, email, '\n' + ' !') # else: # print(' !') #register('sunflower', 'falone@gmail.com', '12345678910', '12345678910') #def register(username,...
21.835821
108
0.562543
#def register(username, email, password, check_pass): # if password == check_pass and 8 <= len(username) <= 20 and 8 < len(password) < 16: # print(username, email, '\n' + 'Регистрация прошла успешно!') # else: # print('Предоставлены неверные данные!') #register('sunflower', 'falone@gmail.com', '123...
388
0
0
0
0
0
0
0
0
9f9a0bd2207fdedb6cae3110bf645df03eb1efd9
5,156
py
Python
main.py
xvzhenduo/Netease-Cloud-Music-Download
ea3bd451b52840064cbf292509e3a9ecfc052abb
[ "Apache-2.0" ]
2
2021-12-27T10:14:10.000Z
2022-01-12T06:49:13.000Z
main.py
xvzhenduo/Netease-Cloud-Music-Downloader
ea3bd451b52840064cbf292509e3a9ecfc052abb
[ "Apache-2.0" ]
null
null
null
main.py
xvzhenduo/Netease-Cloud-Music-Downloader
ea3bd451b52840064cbf292509e3a9ecfc052abb
[ "Apache-2.0" ]
null
null
null
import json import urllib.request host = input("(/)\n") url = input("//\n") if url[24] == 's': print("url type:song") songId = url[32:] print("song id:" + songId) download(songId) elif url[24] == 'p': print("url type:playlist") playlistID = url[36:] print("playlist id:" + playlistID) ...
42.966667
168
0.524631
import json import urllib.request import os import eyed3 import re def validate_title(title): rstr = r"[\/\\\:\*\?\"\<\>\|]" # '/ \ : * ? " < > |' new_title = re.sub(rstr, "_", title) # 替换为下划线 return new_title def download(song_id): detail = json.loads(urllib.request.urlopen(host + "/song/detail?i...
162
0
0
0
0
4,356
0
-33
112
be5721fb7938cfb10101f567902416930a8df5fc
260
py
Python
python3-virtualenv/Lib/python3.6/site-packages/alembic/__init__.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
null
null
null
python3-virtualenv/Lib/python3.6/site-packages/alembic/__init__.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
null
null
null
python3-virtualenv/Lib/python3.6/site-packages/alembic/__init__.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
1
2021-06-20T19:28:37.000Z
2021-06-20T19:28:37.000Z
import sys from .runtime import environment from .runtime import migration __version__ = "1.6.5" sys.modules["alembic.migration"] = migration sys.modules["alembic.environment"] = environment
21.666667
49
0.723077
import sys from . import context # noqa from . import op # noqa from .runtime import environment from .runtime import migration __version__ = "1.6.5" sys.modules["alembic.migration"] = migration sys.modules["alembic.environment"] = environment
0
0
0
0
0
0
0
-5
64
b6b63fdd8dff0998213c22e582731408c7c6ce07
639
py
Python
nightshade/__init__.py
waxlamp/nightshade
9c64f3cf244202f3f919708f6eba6121082916b5
[ "Apache-2.0" ]
1
2021-12-13T06:02:21.000Z
2021-12-13T06:02:21.000Z
nightshade/__init__.py
waxlamp/nightshade
9c64f3cf244202f3f919708f6eba6121082916b5
[ "Apache-2.0" ]
null
null
null
nightshade/__init__.py
waxlamp/nightshade
9c64f3cf244202f3f919708f6eba6121082916b5
[ "Apache-2.0" ]
null
null
null
from .notion import notion from .csv import csv from .search import search nightshade.add_command(search) nightshade.add_command(prep) nightshade.add_command(notion) nightshade.add_command(csv)
20.612903
72
0.719875
import click import nltk from .notion import notion from .csv import csv from .search import search @click.group() def nightshade() -> None: """A command suite for interacting with Rotten Tomatoes.""" pass @click.command() def prep() -> None: """ Download tokenization models for use in `search` com...
0
369
0
0
0
0
0
-19
90
fb5b3c459970eea0beaeceb3bc914a9cf992e811
8,594
py
Python
greykite/sklearn/transform/null_transformer.py
CaduceusInc/greykite
7d49c7a13d28f743e0a4b4c27696547f5e2c10c9
[ "BSD-2-Clause" ]
1,503
2021-05-13T02:43:42.000Z
2022-03-28T22:48:34.000Z
greykite/sklearn/transform/null_transformer.py
CaduceusInc/greykite
7d49c7a13d28f743e0a4b4c27696547f5e2c10c9
[ "BSD-2-Clause" ]
59
2021-05-15T07:23:18.000Z
2022-03-31T18:52:00.000Z
greykite/sklearn/transform/null_transformer.py
CaduceusInc/greykite
7d49c7a13d28f743e0a4b4c27696547f5e2c10c9
[ "BSD-2-Clause" ]
67
2021-05-13T02:44:04.000Z
2022-03-25T04:08:12.000Z
# BSD 2-CLAUSE LICENSE # 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 copyright notice, this # list of conditions and the following disclaimer. # Redistributions i...
41.921951
111
0.649756
# BSD 2-CLAUSE LICENSE # 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 copyright notice, this # list of conditions and the following disclaimer. # Redistributions i...
0
0
0
6,579
0
0
0
203
223
5d7357c0f8eeae582ae679c00acbfc2adfc68e80
13,502
py
Python
assignments/assignment3/layers.py
Seraphirn/dlcourse_ai
f352fab5fd2fe28a063753947130e4b8b8aea14b
[ "MIT" ]
null
null
null
assignments/assignment3/layers.py
Seraphirn/dlcourse_ai
f352fab5fd2fe28a063753947130e4b8b8aea14b
[ "MIT" ]
null
null
null
assignments/assignment3/layers.py
Seraphirn/dlcourse_ai
f352fab5fd2fe28a063753947130e4b8b8aea14b
[ "MIT" ]
null
null
null
import numpy as np import math def l2_regularization(W, reg_strength): ''' Computes L2 regularization loss on weights and its gradient Arguments: W, np array - weights reg_strength - float value Returns: loss, single value - l2 regularization loss gradient, np.array same shap...
31.620609
78
0.572434
import numpy as np import math from typing import Tuple def l2_regularization(W, reg_strength): ''' Computes L2 regularization loss on weights and its gradient Arguments: W, np array - weights reg_strength - float value Returns: loss, single value - l2 regularization loss gra...
0
0
0
10,261
0
0
0
3
160
00ed084d5a1b0faa85021cb443a51b661aeb615c
3,551
py
Python
PyFunceble/cli/entry_points/public_suffix.py
Centaurioun/PyFunceble
59b809f3322118f7824195752c6015220738d4a0
[ "Apache-2.0" ]
213
2017-11-19T16:00:29.000Z
2022-03-30T20:51:35.000Z
PyFunceble/cli/entry_points/public_suffix.py
Centaurioun/PyFunceble
59b809f3322118f7824195752c6015220738d4a0
[ "Apache-2.0" ]
270
2018-01-10T12:42:41.000Z
2022-03-22T00:03:23.000Z
PyFunceble/cli/entry_points/public_suffix.py
Centaurioun/PyFunceble
59b809f3322118f7824195752c6015220738d4a0
[ "Apache-2.0" ]
48
2017-12-09T22:53:49.000Z
2022-01-29T15:50:52.000Z
""" The tool to check the availability or syntax of domain, IP or URL. :: Provides the endpoints related to our own version of the public suffix file. Author: Nissar Chabab...
28.869919
88
0.578429
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
1,173
0
0
0
0
0
0
0
0
15f9370b22c8b17e976ddd3ef6ec56a377c8b89d
823
py
Python
HackerRank/betweenTwoSets.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
HackerRank/betweenTwoSets.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
HackerRank/betweenTwoSets.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
# a is a list # b is a list n,m = input().strip().split(' ') n,m = [int(n),int(m)] a = [int(a_temp) for a_temp in input().strip().split(' ')] b = [int(b_temp) for b_temp in input().strip().split(' ')] lcmOfA = LcmOfMultipleNumbers(a) gcdOfB = GcdOfMultipleNumbers(b) count = 0 if(gcdOfB % lcmOfA == 0): multiple = ...
20.073171
58
0.6452
import sys def LcmOfTwoNumbers(a, b): return (a * b) // GcdOfTwoNumbers(a,b) def GcdOfTwoNumbers(a,b): while(b != 0): a,b = b, a % b return a # a is a list def LcmOfMultipleNumbers(a): result = a[0] for num in a: result = LcmOfTwoNumbers(result, num) return result # b is a list def GcdOfMultipleNumbers(b...
0
0
0
0
0
278
0
-11
112
fb60dca3a233b4ff5f87fc9207d606a0f8a877d0
595
py
Python
core/management/commands/__init__.py
AndrewADev/open-oni
8a3a2564659eaf22b2bb3ad3be62504dfc151897
[ "Apache-2.0" ]
41
2015-10-12T15:27:35.000Z
2021-11-19T02:20:38.000Z
core/management/commands/__init__.py
AndrewADev/open-oni
8a3a2564659eaf22b2bb3ad3be62504dfc151897
[ "Apache-2.0" ]
402
2015-07-23T21:17:57.000Z
2022-03-28T18:02:02.000Z
core/management/commands/__init__.py
AndrewADev/open-oni
8a3a2564659eaf22b2bb3ad3be62504dfc151897
[ "Apache-2.0" ]
23
2016-01-20T16:45:44.000Z
2021-12-21T00:23:40.000Z
import logging
37.1875
97
0.714286
import logging import logging.config import os from django.conf import settings def configure_logging(config_file, log_file): if os.path.exists(config_file): logging.config.fileConfig(config_file) else: logging.basicConfig() logging.getLogger().setLevel(logging.INFO) _file_handl...
0
0
0
0
0
492
0
-1
89
6a0d877793476eac24935c7ee85b1f2110272cab
4,325
py
Python
comfoairq_homie/homie_device/device_comfoairq_gateway.py
klaudiusz223/ComfoAirQ-Homie
42fa5d797320635c4e2c49e9787e008bf476e0ac
[ "MIT" ]
17
2020-05-16T17:48:45.000Z
2022-02-02T00:36:48.000Z
comfoairq_homie/homie_device/device_comfoairq_gateway.py
pimdev/ComfoAirQ-Homie
42fa5d797320635c4e2c49e9787e008bf476e0ac
[ "MIT" ]
2
2021-06-20T01:34:24.000Z
2021-09-01T15:10:13.000Z
comfoairq_homie/homie_device/device_comfoairq_gateway.py
pimdev/ComfoAirQ-Homie
42fa5d797320635c4e2c49e9787e008bf476e0ac
[ "MIT" ]
2
2021-01-03T13:13:03.000Z
2022-02-02T00:36:50.000Z
import logging logger = logging.getLogger(__name__) DEVICE_STATES = ['DISCONNECTED','READY','SLEEPING','ERROR','PROBLEM'] repeating_timer = None
36.965812
159
0.650867
import time from homie.support.repeating_timer import Repeating_Timer from homie.device_base import Device_Base from homie.node.node_base import Node_Base from homie.node.property.property_switch import Property_Switch from homie.node.property.property_enum import Property_Enum import logging logger = logging.getLo...
0
0
0
3,872
0
0
0
147
157
755e3ec5c86ff41c754f6dfe7fe59a49a114a521
1,194
py
Python
widgets/frontend/views.py
openregister/openregister-widgets
8d6978302cc579ae65f9188ba90fbb63b89fbabd
[ "MIT" ]
null
null
null
widgets/frontend/views.py
openregister/openregister-widgets
8d6978302cc579ae65f9188ba90fbb63b89fbabd
[ "MIT" ]
3
2015-10-08T09:03:05.000Z
2017-02-08T13:50:35.000Z
widgets/frontend/views.py
openregister/openregister-widgets
8d6978302cc579ae65f9188ba90fbb63b89fbabd
[ "MIT" ]
1
2021-04-11T08:29:48.000Z
2021-04-11T08:29:48.000Z
from flask import (Blueprint) frontend = Blueprint('frontend', __name__, template_folder='templates') headers = {'Content-type': 'application/json'}
27.767442
75
0.705193
from flask import ( Blueprint, Response, render_template, current_app, request, redirect, jsonify ) import requests frontend = Blueprint('frontend', __name__, template_folder='templates') headers = {'Content-type': 'application/json'} @frontend.route('/') def index(): country_registe...
0
858
0
0
0
0
0
92
92
c43dc6d07b4a4ad4ab0102f4a70f826859da1b5a
850
py
Python
third_party/webrtc/src/chromium/src/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
27
2016-04-27T01:02:03.000Z
2021-12-13T08:53:19.000Z
third_party/webrtc/src/chromium/src/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
2
2017-03-09T09:00:50.000Z
2017-09-21T15:48:20.000Z
third_party/webrtc/src/chromium/src/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
17
2016-04-27T02:06:39.000Z
2019-12-18T08:07:00.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.
31.481481
80
0.742353
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import page as page_module from telemetry import story class HTTPToDirectFallbackPage(page_module.Page): """Page that tests falling b...
0
0
0
564
0
0
0
31
91
fa8708d93859c876fdb8a9dc5d3f53f46fc16d89
398
py
Python
Numpy/Broadcasting.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
1
2021-11-16T14:14:38.000Z
2021-11-16T14:14:38.000Z
Numpy/Broadcasting.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
Numpy/Broadcasting.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
import numpy as np # Use Broadcasting to create a 4 x 4 ndarray that has its first # column full of 1s, its second column full of 2s, its third # column full of 3s, etc.. ones = np.ones((4,4)) broadcast = np.arange(1,5).reshape(1,4) # Do not change the name of this array. # Please don't print anything from your code! ...
36.181818
94
0.726131
import numpy as np # Use Broadcasting to create a 4 x 4 ndarray that has its first # column full of 1s, its second column full of 2s, its third # column full of 3s, etc.. ones = np.ones((4,4)) broadcast = np.arange(1,5).reshape(1,4) # Do not change the name of this array. # Please don't print anything from your code! ...
0
0
0
0
0
0
0
0
0
813ba824c422c8807970c6c5501a6a859d11c13d
2,665
py
Python
python/utils/RemoveTabsAndTrailingWhitespace.py
gonayl/Chaste
498c48489a38a8f4c5fa7c01e691cc82df3d2e6b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/utils/RemoveTabsAndTrailingWhitespace.py
gonayl/Chaste
498c48489a38a8f4c5fa7c01e691cc82df3d2e6b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/utils/RemoveTabsAndTrailingWhitespace.py
gonayl/Chaste
498c48489a38a8f4c5fa7c01e691cc82df3d2e6b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Copyright (c) 2005-2017, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in s...
42.301587
87
0.714822
#!/usr/bin/env python """Copyright (c) 2005-2017, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in s...
0
0
0
0
0
0
0
0
0
bbd7e33a01103d1c7a45cd33ccabc6c53173c2cf
8,674
py
Python
src/python/xcluster/utils/deltasep_utils.py
iesl/xcluster
16eab0012f570878017c3f96343ac5b858a35de9
[ "Apache-2.0" ]
62
2017-05-02T05:38:10.000Z
2022-03-21T12:26:55.000Z
src/python/xcluster/utils/deltasep_utils.py
iesl/xcluster
16eab0012f570878017c3f96343ac5b858a35de9
[ "Apache-2.0" ]
3
2018-07-26T16:18:33.000Z
2019-08-19T07:05:06.000Z
src/python/xcluster/utils/deltasep_utils.py
iesl/xcluster
16eab0012f570878017c3f96343ac5b858a35de9
[ "Apache-2.0" ]
24
2017-07-11T20:28:38.000Z
2021-11-10T13:12:56.000Z
""" Copyright (C) 2017 University of Massachusetts Amherst. This file is part of "xcluster" http://github.com/iesl/xcluster 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/licen...
29.40339
79
0.580586
""" Copyright (C) 2017 University of Massachusetts Amherst. This file is part of "xcluster" http://github.com/iesl/xcluster 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/licen...
0
0
0
0
0
234
0
0
23
31db4e6f4d91d9aeff27991878ec7564251f8b5d
2,948
py
Python
test/test_base_metric.py
ogrisel/metric-learn
fb6733c190911d2c408bd7f0b8c9b54ff005fa8d
[ "MIT" ]
null
null
null
test/test_base_metric.py
ogrisel/metric-learn
fb6733c190911d2c408bd7f0b8c9b54ff005fa8d
[ "MIT" ]
null
null
null
test/test_base_metric.py
ogrisel/metric-learn
fb6733c190911d2c408bd7f0b8c9b54ff005fa8d
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
37.316456
78
0.660109
import unittest import metric_learn class TestStringRepr(unittest.TestCase): def test_covariance(self): self.assertEqual(str(metric_learn.Covariance()), "Covariance()") def test_lmnn(self): self.assertRegexpMatches( str(metric_learn.LMNN()), r"(python_)?LMNN\(convergence_tol=0.001, k=3, ...
0
0
0
2,842
0
0
0
-2
45
e0eafbc6735d6a7fa6860466bfbc0aed74c087b5
3,334
py
Python
avalon/photoshop/pipeline.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
avalon/photoshop/pipeline.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
avalon/photoshop/pipeline.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
from .. import api, pipeline from . import lib import pyblish.api def install(): """Install Photoshop-specific functionality of avalon-core. This function is called automatically on calling `api.install(photoshop)`. """ print("Installing Avalon Photoshop...") pyblish.api.register_host("photoshop...
28.254237
78
0.605579
from .. import api, pipeline from . import lib from ..vendor import Qt import pyblish.api def install(): """Install Photoshop-specific functionality of avalon-core. This function is called automatically on calling `api.install(photoshop)`. """ print("Installing Avalon Photoshop...") pyblish.api....
0
0
0
1,251
608
0
0
2
68
f52ef422025bcec4464a5a2104320b5d62d2d974
2,083
py
Python
setup.py
wq/wq.build
5cf446ca74fc599828069bc9c9664c315246d9b4
[ "MIT" ]
null
null
null
setup.py
wq/wq.build
5cf446ca74fc599828069bc9c9664c315246d9b4
[ "MIT" ]
2
2021-08-18T07:01:02.000Z
2022-02-16T03:17:23.000Z
setup.py
wq/wq.build
5cf446ca74fc599828069bc9c9664c315246d9b4
[ "MIT" ]
1
2022-02-11T16:54:29.000Z
2022-02-11T16:54:29.000Z
import os from setuptools import setup LONG_DESCRIPTION = """ The wq command line tool. """ def create_wq_namespace(): """ Generate the wq namespace package (not checked in, as it technically is the parent of this folder) """ if os.path.isdir("wq"): return os.makedirs("wq") init ...
26.367089
79
0.593855
import os from setuptools import setup LONG_DESCRIPTION = """ The wq command line tool. """ def readme(): try: readme = open('README.md') except IOError: return LONG_DESCRIPTION return readme.read() def create_wq_namespace(): """ Generate the wq namespace package (not checke...
0
0
0
0
0
113
0
0
23
04744a7a71d92e71cfd05abf674b933d34c1d16e
255
py
Python
the-python-standard-library-by-example/string/string_constants.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
the-python-standard-library-by-example/string/string_constants.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
the-python-standard-library-by-example/string/string_constants.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
# -*- coding: utf-8 -*- import string for name in (s for s in dir(string) if not s.startswith('_')): value = getattr(string, name) # Look for byte string and unicode values if isinstance(value, str): print('%s=%r\n' % (name, value))
25.5
62
0.611765
# -*- coding: utf-8 -*- import string for name in (s for s in dir(string) if not s.startswith('_')): value = getattr(string, name) # Look for byte string and unicode values if isinstance(value, str): print('%s=%r\n' % (name, value))
0
0
0
0
0
0
0
0
0
bb1dc618f9ddadcfd91d47d011cfb9b5c8cb3ff4
6,921
py
Python
RaLSGAN.py
ImLaoBJie/RaLSGAN
bdc981360633e9f6997256fd25d410698d59c82f
[ "MIT" ]
4
2020-01-07T07:31:53.000Z
2022-03-14T11:29:35.000Z
RaLSGAN.py
ImLaoBJie/RaLSGAN
bdc981360633e9f6997256fd25d410698d59c82f
[ "MIT" ]
null
null
null
RaLSGAN.py
ImLaoBJie/RaLSGAN
bdc981360633e9f6997256fd25d410698d59c82f
[ "MIT" ]
2
2020-08-18T12:03:39.000Z
2020-12-04T08:07:03.000Z
import zipfile import os import tensorflow as tf from keras import backend as K if 'tensorflow' == K.backend(): import tensorflow as tf config = tf.ConfigProto() config.gpu_options.allow_growth = True sess = tf.Session(config=config) batch_size = 32 lr = 0.0005 beta1 = 0.5 epochs = 30 nz = 256 ...
34.093596
174
0.645427
import numpy as np import zipfile import os from time import time import matplotlib.pyplot as plt from scipy.stats import truncnorm import read_data_dogimage import tensorflow as tf from keras.models import Model from keras.layers import Input, Dense, Conv2D, Reshape, Flatten, concatenate, UpSampling2D, Conv2DTranspo...
0
0
0
406
0
5,156
0
272
403
e2c697dbea59f5724ef8d6bc5bfadfcc092667b6
3,741
py
Python
scripts/multiPE_design_exploration.py
SFU-HiAccel/CHIP-KNN
48b0b63784a7017c7c5f70490b923771c507d34d
[ "BSD-2-Clause" ]
4
2021-01-31T12:47:09.000Z
2021-12-01T03:01:08.000Z
scripts/multiPE_design_exploration.py
SFU-HiAccel/CHIP-KNN
48b0b63784a7017c7c5f70490b923771c507d34d
[ "BSD-2-Clause" ]
null
null
null
scripts/multiPE_design_exploration.py
SFU-HiAccel/CHIP-KNN
48b0b63784a7017c7c5f70490b923771c507d34d
[ "BSD-2-Clause" ]
5
2020-12-28T07:32:37.000Z
2022-01-05T06:52:21.000Z
#!/usr/bin/python import os import re import copy from multiPE_design_generate import Generate_MultiPE_Design, Generate_Host_Code, Generate_Connectivity_Map, Generate_MakeFile singlePEs_evaluation_file_name = "singlePE_perf_results.log" with open(singlePEs_evaluation_file_name, 'r') as f: # Read the file content...
44.535714
151
0.719059
#!/usr/bin/python import os import re import copy from config import * from multiPE_design_generate import Generate_MultiPE_Design, Generate_Host_Code, Generate_Connectivity_Map, Generate_MakeFile singlePEs_evaluation_file_name = "singlePE_perf_results.log" with open(singlePEs_evaluation_file_name, 'r') as f: # ...
0
0
0
0
0
0
0
-1
22
85476e9a5e8114ce3593683dcf568e4be993c731
189
py
Python
exercicios/ex016.py
grievous0/Python_exercises
d1bef850c6d0205ff55c6a059e2bff382871853e
[ "MIT" ]
null
null
null
exercicios/ex016.py
grievous0/Python_exercises
d1bef850c6d0205ff55c6a059e2bff382871853e
[ "MIT" ]
null
null
null
exercicios/ex016.py
grievous0/Python_exercises
d1bef850c6d0205ff55c6a059e2bff382871853e
[ "MIT" ]
null
null
null
# Crie um programa que leia um nmero Real qualquer pelo teclado e mostre na tela a sua poro Inteira. import math num = float(input('Digite um nmero flutuante: ')) print(math.trunc(num))
47.25
103
0.767196
# Crie um programa que leia um número Real qualquer pelo teclado e mostre na tela a sua porção Inteira. import math num = float(input('Digite um número flutuante: ')) print(math.trunc(num))
8
0
0
0
0
0
0
0
0
659f4b0954c0c1e344b196277fcb54c27479e44e
4,126
py
Python
tests/test_address.py
jemadd04/dominos-order
58c51f2eaedb9af839a21f4e95151f2efc57f25b
[ "MIT" ]
442
2018-06-19T19:28:15.000Z
2022-03-08T17:03:51.000Z
tests/test_address.py
jemadd04/dominos-order
58c51f2eaedb9af839a21f4e95151f2efc57f25b
[ "MIT" ]
3
2018-08-01T00:56:29.000Z
2020-12-21T01:21:09.000Z
tests/test_address.py
jemadd04/dominos-order
58c51f2eaedb9af839a21f4e95151f2efc57f25b
[ "MIT" ]
191
2018-06-19T21:37:02.000Z
2021-12-26T20:26:16.000Z
import json import os from pytest import mark fixture_path = os.path.join('tests', 'fixtures', 'stores.json') with open(fixture_path) as fp: stores_fixture = json.load(fp) address_params = mark.parametrize( argnames=('street', 'city', 'region', 'zip'), argvalues=[ ('700 Pennsylvania Avenue NW', ...
28.652778
77
0.628938
import json import os from hamcrest import * from mock import patch from pytest import mark from pizzapy.address import Address from pizzapy.urls import Urls, COUNTRY_USA fixture_path = os.path.join('tests', 'fixtures', 'stores.json') with open(fixture_path) as fp: stores_fixture = json.load(fp) address_param...
0
2,398
0
0
0
257
0
37
182
04f0b1e7e1066df6c61781539f43863576c3023e
14,465
py
Python
menpofit/error/human/face.py
dykestra/menpofit
146404c91994390ae04178fb5a4b6a71c697dd89
[ "BSD-3-Clause" ]
1
2021-04-20T00:36:58.000Z
2021-04-20T00:36:58.000Z
menpofit/error/human/face.py
dykestra/menpofit
146404c91994390ae04178fb5a4b6a71c697dd89
[ "BSD-3-Clause" ]
null
null
null
menpofit/error/human/face.py
dykestra/menpofit
146404c91994390ae04178fb5a4b6a71c697dd89
[ "BSD-3-Clause" ]
null
null
null
from menpofit.error import euclidean_error from menpofit.error.base import (distance_normalised_error, distance_indexed_normalised_error, bb_normalised_error) def mean_pupil_68_error(shape, gt_shape): r""" Computes the Euclidean error based on 68 points normalised with the distance between the mean ey...
35.628079
107
0.61355
import numpy as np from menpo.shape import PointCloud from menpo.landmark import (face_ibug_68_to_face_ibug_49, face_ibug_68_to_face_ibug_68, face_ibug_49_to_face_ibug_49) from menpofit.error import euclidean_error from menpofit.error.base import (distance_norma...
0
0
0
0
0
752
0
228
190
d1088f0bbe1a6933e2c81d8e75935bec58a226f4
5,279
py
Python
retinopathy_kit/dataset/make_dataset.py
vykozlov/retinopathy_kit
b8aa1f5bb3cf9d482da41451f7e65171d6582f8b
[ "MIT" ]
null
null
null
retinopathy_kit/dataset/make_dataset.py
vykozlov/retinopathy_kit
b8aa1f5bb3cf9d482da41451f7e65171d6582f8b
[ "MIT" ]
1
2021-10-12T22:54:59.000Z
2021-10-12T22:54:59.000Z
retinopathy_kit/dataset/make_dataset.py
vykozlov/retinopathy_kit
b8aa1f5bb3cf9d482da41451f7e65171d6582f8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import project config.py """ """ import os import logging import argparse from pathlib2 import Path from dotenv import find_dotenv, load_dotenv import retinopathy_kit.config as cfg import retinopathy_kit.dataset.data_utils as dutils import retinopathy_kit.features.build_features as bfeatures ...
41.242188
117
0.63137
# -*- coding: utf-8 -*- # import project config.py """ """ import os import logging import argparse from pathlib2 import Path from dotenv import find_dotenv, load_dotenv import retinopathy_kit.config as cfg import retinopathy_kit.dataset.data_utils as dutils import retinopathy_kit.features.build_features as bfeatures ...
0
0
0
0
0
0
0
0
0
6fc43cb8172696f8bfd3d086bfafb54f55899321
497
py
Python
src/apicuron_client/__init__.py
cthoyt/apicuron-client
f4988dd12437042492e678ac42a4685b147548d2
[ "MIT" ]
null
null
null
src/apicuron_client/__init__.py
cthoyt/apicuron-client
f4988dd12437042492e678ac42a4685b147548d2
[ "MIT" ]
null
null
null
src/apicuron_client/__init__.py
cthoyt/apicuron-client
f4988dd12437042492e678ac42a4685b147548d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """A client for interacting with APICURON.""" from .api import (Achievement, DESCRIPTION_URL, Description, RESUBMISSION_URL, Report, Submission, Term, resubmit_curations, submit_description) __all__ = [ # URLs "DESCRIPTION_URL", "RESUBMISSION_URL", # Data Models "Term", ...
16.032258
45
0.61167
# -*- coding: utf-8 -*- """A client for interacting with APICURON.""" from .api import ( Achievement, DESCRIPTION_URL, Description, RESUBMISSION_URL, Report, Submission, Term, resubmit_curations, submit_description, ) __all__ = [ # URLs "DESCRIPTION_URL", "RESUBMISSION...
0
0
0
0
0
0
0
39
0
4bd6cea9193709c9c0d4bce47fecf750aef7af53
10,846
py
Python
hierarchy/full/icd-10-gm.py
narhim/autocoding
87c224c1373f61c46e62c719193db59dbbe862ec
[ "MIT" ]
null
null
null
hierarchy/full/icd-10-gm.py
narhim/autocoding
87c224c1373f61c46e62c719193db59dbbe862ec
[ "MIT" ]
null
null
null
hierarchy/full/icd-10-gm.py
narhim/autocoding
87c224c1373f61c46e62c719193db59dbbe862ec
[ "MIT" ]
null
null
null
#Code bsed on katrynchapman's ICDHierarchyParser.py #Libraries and modules import requests from bs4 import BeautifulSoup if __name__ == '__main__': main()
41.715385
159
0.533008
#Code bsed on katrynchapman's ICDHierarchyParser.py #Libraries and modules from collections import defaultdict import pickle import requests from bs4 import BeautifulSoup import json import copy import requests import re import os from bs4 import BeautifulSoup import untangle import networkx as nx im...
0
0
0
10,399
0
24
0
-52
305
56e7984d5fe106f113e43ecb1d5fa7dbcc9fb68d
7,093
py
Python
createDropdownFileFromDatajoint.py
MMathisLab/dj-mathis-sharing
57681816fad9d9b63195f8184ee2212f0b52eede
[ "MIT" ]
null
null
null
createDropdownFileFromDatajoint.py
MMathisLab/dj-mathis-sharing
57681816fad9d9b63195f8184ee2212f0b52eede
[ "MIT" ]
null
null
null
createDropdownFileFromDatajoint.py
MMathisLab/dj-mathis-sharing
57681816fad9d9b63195f8184ee2212f0b52eede
[ "MIT" ]
1
2022-01-04T20:15:23.000Z
2022-01-04T20:15:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Mar 16 10:34:17 2018 @author: adrian This script creates the values for the dropdown menus and automated completion in the GUI to load data. Values are fetched from the database and saved in a dictionary as .npy file """ # ===========================...
37.728723
110
0.542648
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Mar 16 10:34:17 2018 @author: adrian This script creates the values for the dropdown menus and automated completion in the GUI to load data. Values are fetched from the database and saved in a dictionary as .npy file """ # ===========================...
0
0
0
0
0
0
0
-19
44
db3b6ee903c2ec96bf9a8ed9e83fdf9945e57b20
71
py
Python
Day 7/day7.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
9
2021-03-02T12:16:24.000Z
2021-03-26T11:06:08.000Z
Day 7/day7.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
65
2021-03-02T04:57:47.000Z
2021-04-02T19:31:30.000Z
Day 7/day7.py
ChetasShree/MarchCode
80ee6206c0e4481b4421a83c7b7b7fc977450009
[ "MIT" ]
94
2021-03-02T04:42:28.000Z
2021-06-28T10:38:20.000Z
# To count the number of digits in a number. n =input() print(len(n))
23.666667
45
0.676056
# To count the number of digits in a number. n =input() print(len(n))
0
0
0
0
0
0
0
0
0
d071dd9cd870ddc9c2320cf2d0dd5d1d187d777a
6,322
py
Python
doc/build.py
rogiervd/flipsta-build
b134c73346bd4bf062d5dc32f3819250ee4c3ffa
[ "Apache-2.0" ]
null
null
null
doc/build.py
rogiervd/flipsta-build
b134c73346bd4bf062d5dc32f3819250ee4c3ffa
[ "Apache-2.0" ]
null
null
null
doc/build.py
rogiervd/flipsta-build
b134c73346bd4bf062d5dc32f3819250ee4c3ffa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Produce documentation. # Run this from the root directory. # This picks up properties from ../documentation_configuration.py. # Documentation source files for various projects (that are indicated in # documentation_configuration.py) should be in ./PROJECT/doc. import sys sys.path.insert (1, '.') ...
30.248804
79
0.606612
#!/usr/bin/python # Produce documentation. # Run this from the root directory. # This picks up properties from ../documentation_configuration.py. # Documentation source files for various projects (that are indicated in # documentation_configuration.py) should be in ./PROJECT/doc. import sys sys.path.insert (1, '.') ...
0
0
0
0
0
3,624
0
0
46
ede1accf4556242fe4c01d16d023fc35e803b35d
6,331
py
Python
ocean_provider/utils/test/test_util.py
oceanprotocol/provider-py
c586a89be88874efde0e79a7dffd65db40b7d8ec
[ "Apache-2.0" ]
1
2020-10-27T07:30:06.000Z
2020-10-27T07:30:06.000Z
ocean_provider/utils/test/test_util.py
oceanprotocol/provider-py
c586a89be88874efde0e79a7dffd65db40b7d8ec
[ "Apache-2.0" ]
14
2020-05-28T11:50:18.000Z
2020-10-26T09:51:49.000Z
ocean_provider/utils/test/test_util.py
oceanprotocol/provider-py
c586a89be88874efde0e79a7dffd65db40b7d8ec
[ "Apache-2.0" ]
2
2020-06-30T06:08:07.000Z
2020-09-09T03:44:29.000Z
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # import logging test_logger = logging.getLogger(__name__)
32.973958
87
0.720423
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # from copy import deepcopy import json import logging import mimetypes import pytest from unittest.mock import MagicMock, Mock import ipfshttpclient from web3.main import Web3 from werkzeug.utils import get_content_type from ocean_pro...
0
5,532
0
0
0
0
0
270
381
9a90830deb38a9b77630a6009861ca231be242e3
1,546
py
Python
MODtree/MODtree.py
marcottelab/NuevoTx
3649548563a3e2feae450aaaf138187ff9935ff0
[ "Apache-2.0" ]
null
null
null
MODtree/MODtree.py
marcottelab/NuevoTx
3649548563a3e2feae450aaaf138187ff9935ff0
[ "Apache-2.0" ]
1
2018-09-30T00:44:20.000Z
2018-09-30T00:44:20.000Z
MODtree/MODtree.py
taejoonlab/NuevoTx
3649548563a3e2feae450aaaf138187ff9935ff0
[ "Apache-2.0" ]
null
null
null
# Common library for MODtree # Author: Taejoon Kwon (tkwon@unist.ac.kr) import os filename_sp_list = 'MODtree.species_list.txt' # TreeFam version 9 --> EnsEMBL version 69 # filename_names = 'ens69.prot2name.gz' dirname_curr = os.path.dirname(os.path.realpath(__file__))
26.20339
73
0.63066
# Common library for MODtree # Author: Taejoon Kwon (tkwon@unist.ac.kr) import os import gzip filename_sp_list = 'MODtree.species_list.txt' # TreeFam version 9 --> EnsEMBL version 69 # filename_names = 'ens69.prot2name.gz' dirname_curr = os.path.dirname(os.path.realpath(__file__)) def get_tax2sp(): tax2sp = d...
0
0
0
0
0
1,164
0
-10
114
534609b6010e1c5886e9c495dfd536c9923751d6
613
py
Python
setup.py
scheevelm/yarnitor
d44fd41cf1a1c9dd73782683eb8c5c7c73fb6f3d
[ "BSD-3-Clause" ]
4
2017-01-24T04:09:55.000Z
2017-06-13T07:52:47.000Z
setup.py
scheevelm/yarnitor
d44fd41cf1a1c9dd73782683eb8c5c7c73fb6f3d
[ "BSD-3-Clause" ]
16
2017-01-24T04:02:30.000Z
2017-08-29T22:38:38.000Z
setup.py
scheevelm/yarnitor
d44fd41cf1a1c9dd73782683eb8c5c7c73fb6f3d
[ "BSD-3-Clause" ]
5
2019-03-26T11:37:16.000Z
2020-08-27T01:58:06.000Z
import versioneer from setuptools import setup, find_packages setup_args = dict( name='yarnitor', version=versioneer.get_version(), entry_points={ 'console_scripts': [ 'yarnitor-background-worker = yarnitor.background.worker:main' ] }, cmdclass=versioneer.get_cmdclass(),...
22.703704
74
0.632953
import versioneer from setuptools import setup, find_packages setup_args = dict( name='yarnitor', version=versioneer.get_version(), entry_points={ 'console_scripts': [ 'yarnitor-background-worker = yarnitor.background.worker:main' ] }, cmdclass=versioneer.get_cmdclass(),...
0
0
0
0
0
0
0
0
0
169d4206d8ce3796446a4b083183e4ef89d76971
315
py
Python
dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationType.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationType.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationType.py
mjames-upc/python-awips
e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c
[ "BSD-3-Clause" ]
null
null
null
## ##
15
34
0.584127
## ## class LocalizationType(object): def __init__(self, text=None): self.text = text def __str__(self): return self.__repr__() def __repr__(self): return str(self.text) def getText(self): return self.text def setText(self, text): self.text = text
0
0
0
285
0
0
0
0
23
924d47c6e87047334f8f5afb921703360af40f3a
182
py
Python
hackerrank/python3/challenges/mini-max-sum.py
lakscastro/algorithms
0a34527f0a5d68eced9e01d03dfa1a53e4f4200d
[ "MIT" ]
2
2022-01-10T23:37:10.000Z
2022-01-21T15:46:27.000Z
hackerrank/python3/prepare/algorithms/mini-max-sum.py
lakscastro/uri-online-solutions
81b8560d486c31b9785891971278140ddc26cf2e
[ "MIT" ]
1
2022-03-27T00:56:13.000Z
2022-03-27T00:56:13.000Z
hackerrank/python3/challenges/mini-max-sum.py
lakscastro/beecrowd-solutions
a0e5fcc81d002cd15c3d926613846e393985f257
[ "MIT" ]
null
null
null
from functools import reduce sort = sorted([int(e) for e in input().split()]) print(f'{reduce(lambda t, c: t + c, sort[:len(sort) - 1])}\ {reduce(lambda t, c: t + c, sort[1:])}')
26
59
0.604396
from functools import reduce sort = sorted([int(e) for e in input().split()]) print(f'{reduce(lambda t, c: t + c, sort[:len(sort) - 1])}\ {reduce(lambda t, c: t + c, sort[1:])}')
0
0
0
0
0
0
0
0
0
c3425c32887ca012d80d7069c26654022473ca0a
15,478
py
Python
share/lib/python/neuron/rxd/export.py
tommorse/nrn
73236b12977118ae0a98d7dbbed60973994cdaee
[ "BSD-3-Clause" ]
1
2020-05-28T17:21:52.000Z
2020-05-28T17:21:52.000Z
share/lib/python/neuron/rxd/export.py
tommorse/nrn
73236b12977118ae0a98d7dbbed60973994cdaee
[ "BSD-3-Clause" ]
2
2019-11-09T23:02:28.000Z
2019-11-18T00:17:10.000Z
share/lib/python/neuron/rxd/export.py
tommorse/nrn
73236b12977118ae0a98d7dbbed60973994cdaee
[ "BSD-3-Clause" ]
1
2018-12-18T13:52:16.000Z
2018-12-18T13:52:16.000Z
#species declaration with arguments [name, compartment, and initial amount] #compartment declaration with arguments [name, size] #reactants and products are of the form [[name,stoichiometry],...] #reaction declaration that takes name, reversible (boolean), reactants, products, and an element tree #representing the...
35.745958
167
0.68859
from neuron import rxd from neuron.rxd.rxdException import RxDException from xml.etree import ElementTree as ET import xml.dom.minidom #species declaration with arguments [name, compartment, and initial amount] class species: def __init__(self,name,compartment,initial_amount): self.name = name self.compartment ...
0
0
0
5,568
0
8,168
0
47
290
181e23a2bfa00ced1d6c20b6ee8d8af30df1e189
3,529
py
Python
lib-src/lv2/sratom/waflib/extras/swig.py
Marcusz97/CILP_Facilitatore_Audacity
fe7f59365317ce425abbaa79c973e931232c8680
[ "CC-BY-3.0" ]
24
2015-01-22T13:55:17.000Z
2021-06-25T09:41:19.000Z
lib-src/lv2/sratom/waflib/extras/swig.py
Marcusz97/CILP_Facilitatore_Audacity
fe7f59365317ce425abbaa79c973e931232c8680
[ "CC-BY-3.0" ]
2
2019-01-13T23:12:26.000Z
2019-02-03T08:07:29.000Z
lib-src/lv2/sratom/waflib/extras/swig.py
Marcusz97/CILP_Facilitatore_Audacity
fe7f59365317ce425abbaa79c973e931232c8680
[ "CC-BY-3.0" ]
14
2015-01-12T23:13:35.000Z
2021-01-16T09:02:41.000Z
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import re SWIG_EXTS=['.swig','.i'] re_module=re.compile('%module(?:\s*\(.*\))?\s+(.+)',re.M) re_1=re.compile(r'^%module.*?\s+([\w]+)\s*?$',re.M) re_2=re.compile('%include "(.*...
29.655462
102
0.701332
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import re from waflib import Task,Utils,Logs from waflib.TaskGen import extension,feature,after_method from waflib.Configure import conf from waflib.Tools import c_preproc SWI...
0
767
0
1,250
0
773
0
74
264
27b901980ddacb0ce2e867797d11daebf34032ee
1,777
py
Python
Rules.py
yitongzhang/slack-onenightwerewolf
59a013852e1945930b8a6452b9f85413bdf9104a
[ "MIT" ]
null
null
null
Rules.py
yitongzhang/slack-onenightwerewolf
59a013852e1945930b8a6452b9f85413bdf9104a
[ "MIT" ]
null
null
null
Rules.py
yitongzhang/slack-onenightwerewolf
59a013852e1945930b8a6452b9f85413bdf9104a
[ "MIT" ]
null
null
null
# decklist = [villager, villager, villager, werewolf, werewolf, seer, robber, troublemaker, tanner, drunk, hunter, mason, mason, insomniac, minion, doppelganger] # villager Just some regular person. # werewolf: At night, opens their eyes and recognize each other. There is no killing. # seer: At night, looks at 1 playe...
74.041667
172
0.755768
# decklist = [villager, villager, villager, werewolf, werewolf, seer, robber, troublemaker, tanner, drunk, hunter, mason, mason, insomniac, minion, doppelganger] # villager Just some regular person. # werewolf: At night, opens their eyes and recognize each other. There is no killing. # seer: At night, looks at 1 playe...
0
0
0
0
0
0
0
0
0
8fb856acad06bce49ca5f78517e39465f90d4b38
299
py
Python
setup.py
p-push/redis-dump-load
eac4eb188a44986a0c2c01078fde4e809a2bb269
[ "BSD-2-Clause" ]
null
null
null
setup.py
p-push/redis-dump-load
eac4eb188a44986a0c2c01078fde4e809a2bb269
[ "BSD-2-Clause" ]
null
null
null
setup.py
p-push/redis-dump-load
eac4eb188a44986a0c2c01078fde4e809a2bb269
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='redis-dump-load', version='0.1.1', description='Dump and load redis databases', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/redis-dump-load', py_modules=['redisdl'], )
23
48
0.675585
#!/usr/bin/env python from distutils.core import setup setup(name='redis-dump-load', version='0.1.1', description='Dump and load redis databases', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/redis-dump-load', py_modules=['redisdl'], )
0
0
0
0
0
0
0
0
0
ce7551862d14104649b593ca8436261b6c0e01da
4,761
py
Python
src/ws.py
opticoder/symmrpc
c231224797988e93c62970e9d02a6fa4a8c746f6
[ "MIT" ]
null
null
null
src/ws.py
opticoder/symmrpc
c231224797988e93c62970e9d02a6fa4a8c746f6
[ "MIT" ]
null
null
null
src/ws.py
opticoder/symmrpc
c231224797988e93c62970e9d02a6fa4a8c746f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging log = logging.getLogger('symmrpc') # log.debug('!sent!')
34.5
132
0.560176
# -*- coding: utf-8 -*- import logging log = logging.getLogger('symmrpc') from ws4py.client.geventclient import WebSocketClient import gevent from gevent.queue import Queue from protocol import SymmetricRPCClient from serdes import SerDesMsgpack class WorkerStream(WebSocketClient): def __init__(self, addr, se...
0
0
0
4,135
0
273
0
62
180
4a25463c2286657f04779a6626378ae0a018c74f
175
py
Python
Python/swapping_variable_values.py
aaaaaaaaaanyaaaaaaaaa/Hello-world
ff47220589c34c1cd4555346e92d3255b433975f
[ "MIT" ]
3
2019-03-22T06:28:17.000Z
2019-03-29T17:15:49.000Z
Python/swapping_variable_values.py
aaaaaaaaaanyaaaaaaaaa/Hello-world
ff47220589c34c1cd4555346e92d3255b433975f
[ "MIT" ]
1
2015-10-18T11:24:08.000Z
2015-10-18T11:34:07.000Z
Python/swapping_variable_values.py
aaaaaaaaaanyaaaaaaaaa/Hello-world
ff47220589c34c1cd4555346e92d3255b433975f
[ "MIT" ]
3
2018-10-10T18:20:01.000Z
2018-10-21T13:51:43.000Z
#We take 2 variables with certain values: a= 10 b= 20 # Swapping the values of the variables: b= a + b a= b - a b= b - a # Printing out to check the values: print a print b
14.583333
41
0.674286
#We take 2 variables with certain values: a= 10 b= 20 # Swapping the values of the variables: b= a + b a= b - a b= b - a # Printing out to check the values: print a print b
0
0
0
0
0
0
0
0
0
27136b9959d4b2232cfa35a004b8a3d8e4d92c3a
31,984
py
Python
data_utils.py
Bhaskers-Blu-Org1/superglue-mtl
1eb3e581c0ef3b4c261e0256ec26116d2b657c40
[ "Apache-2.0" ]
15
2019-09-25T21:27:25.000Z
2020-12-24T02:22:56.000Z
data_utils.py
Bhaskers-Blu-Org1/superglue-mtl
1eb3e581c0ef3b4c261e0256ec26116d2b657c40
[ "Apache-2.0" ]
2
2020-01-10T06:03:28.000Z
2021-01-02T05:38:19.000Z
data_utils.py
IBM/superglue-mtl
1eb3e581c0ef3b4c261e0256ec26116d2b657c40
[ "Apache-2.0" ]
5
2019-09-11T14:53:51.000Z
2021-04-12T00:55:25.000Z
import os import json import logging logging.getLogger().setLevel(logging.INFO) DATA_PATH = os.environ["SG_DATA"] EXP_PATH = os.environ["SG_MTL_EXP"] BERT_LARGE_MNLI_PATH = "/datastor/xhua/Experiments/mnli_bert_large_no_transfer_seed_42_lr_1e-5_max_seq_len_256/pytorch_model.bin_epoch_4_train_loss_0.0049_dev_loss_0....
40.795918
181
0.573287
import os import json import logging import torch import numpy as np from torch.utils.data import TensorDataset, Dataset logging.getLogger().setLevel(logging.INFO) DATA_PATH = os.environ["SG_DATA"] EXP_PATH = os.environ["SG_MTL_EXP"] BERT_LARGE_MNLI_PATH = "/datastor/xhua/Experiments/mnli_bert_large_no_transfer_see...
30
0
0
24,734
0
1,888
0
18
434
7469a7ce6b973604a12dcb9b1223343bb8cef907
3,882
py
Python
examples/cnn/models/LSTM.py
initzhang/Hetu
447111a358e4dc6df5db9c216bdb3590fff05f84
[ "Apache-2.0" ]
82
2021-07-20T02:45:54.000Z
2022-03-14T07:08:45.000Z
examples/cnn/models/LSTM.py
initzhang/Hetu
447111a358e4dc6df5db9c216bdb3590fff05f84
[ "Apache-2.0" ]
4
2021-11-25T13:39:21.000Z
2022-03-13T04:14:14.000Z
examples/cnn/models/LSTM.py
initzhang/Hetu
447111a358e4dc6df5db9c216bdb3590fff05f84
[ "Apache-2.0" ]
13
2021-07-18T14:40:56.000Z
2022-03-09T06:37:42.000Z
import hetu as ht from hetu import init import numpy as np def lstm(x, y_): ''' LSTM model, for MNIST dataset. Parameters: x: Variable(hetu.gpu_ops.Node.Node), shape (N, dims) y_: Variable(hetu.gpu_ops.Node.Node), shape (N, num_classes) Return: loss: Variable(hetu.gpu_ops.Node...
42.659341
81
0.659454
import hetu as ht from hetu import init import numpy as np def lstm(x, y_): ''' LSTM model, for MNIST dataset. Parameters: x: Variable(hetu.gpu_ops.Node.Node), shape (N, dims) y_: Variable(hetu.gpu_ops.Node.Node), shape (N, num_classes) Return: loss: Variable(hetu.gpu_ops.Node...
0
0
0
0
0
0
0
0
0
1622a91e24a4ca32240aabf16d0ac0706fa793d2
4,889
py
Python
peal/operators/iteration.py
alienkrieg/peal
66b48c0f3973c7f3bceece64dc6e896c9802e29a
[ "MIT" ]
1
2021-12-26T18:24:07.000Z
2021-12-26T18:24:07.000Z
peal/operators/iteration.py
alienkrieg/peal
66b48c0f3973c7f3bceece64dc6e896c9802e29a
[ "MIT" ]
null
null
null
peal/operators/iteration.py
alienkrieg/peal
66b48c0f3973c7f3bceece64dc6e896c9802e29a
[ "MIT" ]
null
null
null
"""Module that provides iteration types that are used in evolutionary operators to iterate through populations or communities. """
30.943038
74
0.651462
"""Module that provides iteration types that are used in evolutionary operators to iterate through populations or communities. """ from abc import ABC, abstractmethod from typing import Iterator, Optional, Union, overload import numpy as np from peal.community import Community from peal.population import Population ...
0
449
0
3,976
0
0
0
76
251
8365ce129da4a1bc6046237ae833ef8fbd4e5848
831
py
Python
learningPygame/Dave/00-MovingSmile/01-HelloWorld.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
learningPygame/Dave/00-MovingSmile/01-HelloWorld.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
learningPygame/Dave/00-MovingSmile/01-HelloWorld.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
# Authors: David Mutchler, Dave Fisher, and many others before them. print("Hello, World") print('hi there') print('one', 'two', 'through my shoe') print(3 + 9) print('3 + 9', 'versus', 3 + 9) # DONE: After we talk together about the above, add PRINT statements that print: # DONE: 1. A Hello message to a friend. ...
31.961538
91
0.681107
# Authors: David Mutchler, Dave Fisher, and many others before them. print("Hello, World") print('hi there') print('one', 'two', 'through my shoe') print(3 + 9) print('3 + 9', 'versus', 3 + 9) # DONE: After we talk together about the above, add PRINT statements that print: # DONE: 1. A Hello message to a friend. ...
0
0
0
0
0
0
0
0
0
2ca7081ca4ae08e13aab9da7cdc37735675a2fc8
5,997
py
Python
Packages/Tag/tag_indent.py
262877348/Data
46e7ea20929ecb0496edd72efd0d2a599f0e49d9
[ "Apache-2.0" ]
null
null
null
Packages/Tag/tag_indent.py
262877348/Data
46e7ea20929ecb0496edd72efd0d2a599f0e49d9
[ "Apache-2.0" ]
null
null
null
Packages/Tag/tag_indent.py
262877348/Data
46e7ea20929ecb0496edd72efd0d2a599f0e49d9
[ "Apache-2.0" ]
null
null
null
import re # to find on which indentation level we currently are current_indentation_re = re.compile("^\s*") # to leave additional new lines as is aditional_new_lines_re = re.compile("^\s*\n+\s*\n+\s*$") # no indentation no_indent = re.compile("^</?(head|body)[>| ]", re.I) # possible self closing tags: XML-----...
33.691011
126
0.627981
import sublime, sublime_plugin import re # to find on which indentation level we currently are current_indentation_re = re.compile("^\s*") # to leave additional new lines as is aditional_new_lines_re = re.compile("^\s*\n+\s*\n+\s*$") # no indentation no_indent = re.compile("^</?(head|body)[>| ]", re.I) # possible s...
0
0
0
1,061
0
3,922
0
9
91
1e54f8dcabb317f0336f67aa0cd7b14fb606b94d
1,686
py
Python
examples/button.py
faiface/easygame
8772ad9e98842c3c8480ab2e20be5b4b12ea8316
[ "MIT" ]
1
2019-04-10T06:58:18.000Z
2019-04-10T06:58:18.000Z
examples/button.py
faiface/easygame
8772ad9e98842c3c8480ab2e20be5b4b12ea8316
[ "MIT" ]
null
null
null
examples/button.py
faiface/easygame
8772ad9e98842c3c8480ab2e20be5b4b12ea8316
[ "MIT" ]
1
2019-04-16T10:58:34.000Z
2019-04-16T10:58:34.000Z
# V tomto priklade mame tlacidlo, ktoreho stlacenim sa odpali zvuk pistole. ## Nacitanie zvuku pistole. gunshot = load_audio('gunshot.wav') ## Premenne o tlacidle. button_x1 = 230 # X-ova suradnica laveho dolneho rohu. button_y1 = 250 # Y-ova suradnica laveho dolneho rohu. button_x2 = 570 # X-ova suradnica praveho h...
33.058824
77
0.616251
from easygame import * # V tomto priklade mame tlacidlo, ktoreho stlacenim sa odpali zvuk pistole. ## Nacitanie zvuku pistole. gunshot = load_audio('gunshot.wav') ## Premenne o tlacidle. button_x1 = 230 # X-ova suradnica laveho dolneho rohu. button_y1 = 250 # Y-ova suradnica laveho dolneho rohu. button_x2 = 570 # X-...
0
0
0
0
0
0
0
1
22
d08c05251934ec067917abdb2ee815c78e9fbbe5
6,569
py
Python
AlbertUnruhUtils/ratelimit/server.py
AlbertUnruh/AlbertUnruhUtils.py
33f28752195f4b759d1c97fd49c62eda36adce72
[ "MIT" ]
1
2022-01-29T21:27:13.000Z
2022-01-29T21:27:13.000Z
AlbertUnruhUtils/ratelimit/server.py
AlbertUnruh/AlbertUnruhUtils.py
33f28752195f4b759d1c97fd49c62eda36adce72
[ "MIT" ]
1
2022-02-01T18:44:13.000Z
2022-02-01T18:44:13.000Z
AlbertUnruhUtils/ratelimit/server.py
AlbertUnruh/AlbertUnruhUtils.py
33f28752195f4b759d1c97fd49c62eda36adce72
[ "MIT" ]
null
null
null
__all__ = ("ServerRateLimit",) import typing from redis import Redis C_IN = typing.TypeVar("C_IN") C_OUT = typing.TypeVar("C_OUT") if __name__ == "__main__": r = Redis() from time import sleep while True: print(test.__name__, test()) sleep(0.5)
28.938326
117
0.471609
__all__ = ("ServerRateLimit",) import functools import typing import uuid from redis import Redis from time import time C_IN = typing.TypeVar("C_IN") C_OUT = typing.TypeVar("C_OUT") class ServerRateLimit: """Docs 'll come soon... (If you want docs right now you can take a look into ``__init__``)""" secti...
0
165
0
6,021
0
0
0
-15
117
69ae771379722459270e887e5e08792f0a852d81
4,343
py
Python
servis/migrations/0002_auto_20170520_1430.py
babinho/djangodev
837a8d122b7fa7b471e982658f8d59860630ef19
[ "CC0-1.0" ]
null
null
null
servis/migrations/0002_auto_20170520_1430.py
babinho/djangodev
837a8d122b7fa7b471e982658f8d59860630ef19
[ "CC0-1.0" ]
null
null
null
servis/migrations/0002_auto_20170520_1430.py
babinho/djangodev
837a8d122b7fa7b471e982658f8d59860630ef19
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals
33.407692
114
0.532581
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('servis', '0001_initial'), ] operations = [ migrations.CreateModel( name='Akcija...
0
0
0
4,180
0
0
0
30
68
ecd8d76cc71c8ca93358a3fa035e6b324040b77b
1,344
py
Python
x/client/content.py
qwasa-net/pyllyllyll
401c7339953cfc9d5c0f79784fe1a1bf90049e9d
[ "MIT" ]
null
null
null
x/client/content.py
qwasa-net/pyllyllyll
401c7339953cfc9d5c0f79784fe1a1bf90049e9d
[ "MIT" ]
null
null
null
x/client/content.py
qwasa-net/pyllyllyll
401c7339953cfc9d5c0f79784fe1a1bf90049e9d
[ "MIT" ]
null
null
null
"""Content generator (just random numbers)."""
28
91
0.622768
"""Content generator (just random numbers).""" import asyncio import random import time from config import CONTENT_DELAY, CONTENT_MAX_VALUE class ContentProcessor: """Content processor.""" max_value = CONTENT_MAX_VALUE delay = CONTENT_DELAY delay_random = False sum = 0 values = [] @clas...
0
926
0
253
0
0
0
5
112
142e858ebeb27ccb631df90d75c4250128a397cb
2,522
py
Python
adam/curriculum/curriculum_to_yaml.py
isi-vista/adam
43542c4486af7533938e77e7191eae630541a891
[ "MIT" ]
8
2019-07-02T20:29:31.000Z
2022-01-03T18:20:41.000Z
adam/curriculum/curriculum_to_yaml.py
isi-vista/adam
43542c4486af7533938e77e7191eae630541a891
[ "MIT" ]
1,011
2019-07-02T18:00:48.000Z
2022-03-25T14:56:32.000Z
adam/curriculum/curriculum_to_yaml.py
isi-vista/adam
43542c4486af7533938e77e7191eae630541a891
[ "MIT" ]
4
2020-08-05T15:36:55.000Z
2022-01-12T17:16:28.000Z
# TODO: Adapt this entry point to take a parameters file to build a set of curriculum # So we can only rebuild the curriculum we need to rather than all curriculum every time # See: https://github.com/isi-vista/adam/issues/1071 if __name__ == "__main__": main()
34.081081
88
0.718477
from pathlib import Path from typing import Any, MutableMapping import yaml from adam.curriculum.curriculum_utils import Phase3InstanceGroup from adam.curriculum.phase3_curriculum import ( phase_3_one_objects_curriculum, phase_3_one_core_objects_curriculum, phase_3_one_stretch_objects_curriculum, phas...
0
0
0
0
0
1,611
0
439
201