hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d04d0980d9044bdddc259cee62b292bec59d8244
4,018
py
Python
pinger/daemon.py
pedrospdc/pinger
72aaaacedab0b9af2aea1a01eb4e8049e43fd950
[ "MIT" ]
4
2015-07-21T07:50:21.000Z
2018-04-28T10:06:57.000Z
pinger/daemon.py
pedrospdc/pinger
72aaaacedab0b9af2aea1a01eb4e8049e43fd950
[ "MIT" ]
1
2019-10-15T22:33:25.000Z
2019-10-16T09:53:23.000Z
pinger/daemon.py
pedrospdc/pinger
72aaaacedab0b9af2aea1a01eb4e8049e43fd950
[ "MIT" ]
2
2015-02-23T19:03:39.000Z
2015-03-27T05:54:05.000Z
import atexit import sys import os import time from signal import SIGTERM class Daemon(object): """ A generic daemon class. Usage: subclass the Daemon class and override the run() method """ def __init__(self, pidfile, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): self.std...
28.295775
110
0.523892
1d8a3d3e8a2011fad0b8cc06b025251a29a15a6e
10,045
py
Python
dupont/dupontutils.py
afeinstein20/ceres
e55150c587782cbecfd45c21ba0ce0023e54c3a9
[ "MIT" ]
35
2016-09-09T04:08:45.000Z
2022-02-16T20:25:49.000Z
dupont/dupontutils.py
afeinstein20/ceres
e55150c587782cbecfd45c21ba0ce0023e54c3a9
[ "MIT" ]
29
2016-09-10T15:30:29.000Z
2021-06-02T14:55:53.000Z
dupont/dupontutils.py
afeinstein20/ceres
e55150c587782cbecfd45c21ba0ce0023e54c3a9
[ "MIT" ]
26
2016-09-09T23:58:15.000Z
2022-02-20T17:50:35.000Z
import sys import matplotlib matplotlib.use("Agg") base = '../' sys.path.append(base+"utils/GLOBALutils") import GLOBALutils import numpy as np import scipy from astropy.io import fits as pyfits import os import glob import scipy.signal from scipy.signal import medfilt from scipy import interpolate import copy fro...
24.741379
118
0.579393
f7f058f44a4c23fbbabf4370511ade85e94cefd1
712
py
Python
archived/pyostack/pyostack/metering.py
DistributedSystemsGroup/sysadmin-dsp
baa3cfddcf34a0ef9e4f13f44593aa7fbb85750a
[ "Apache-2.0" ]
null
null
null
archived/pyostack/pyostack/metering.py
DistributedSystemsGroup/sysadmin-dsp
baa3cfddcf34a0ef9e4f13f44593aa7fbb85750a
[ "Apache-2.0" ]
null
null
null
archived/pyostack/pyostack/metering.py
DistributedSystemsGroup/sysadmin-dsp
baa3cfddcf34a0ef9e4f13f44593aa7fbb85750a
[ "Apache-2.0" ]
null
null
null
import ceilometerclient.client as clclient import logging log = logging.getLogger(__name__) class Metering: '''Wrapper for the OpenStack MEtering service (Ceilometer)''' def __init__(self, conf): creds = self._get_creds(conf) self.ceilo = clclient.get_client(2, **creds) def _get_creds(sel...
30.956522
71
0.650281
1825980da1a157e2bf99be4f4dc5fd252bc8f7a5
4,323
py
Python
locations/spiders/noahsnybagels.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/noahsnybagels.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/noahsnybagels.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import datetime import re from locations.items import GeojsonPointItem from locations.hours import OpeningHours DAY_MAPPING = { "Monday": "Mo", "Tuesday": "Tu", "Wednesday": "We", "Thursday": "Th", "Friday": "Fr", "Saturday": "Sa", "Sunday": "Su", } ...
34.309524
100
0.52186
77d885ddbeba5f5aaccd5d35154a92cce21c59f5
397
py
Python
scripts/reformatGff.py
hatimalmutairi/LMGAAP
bb3914de6113cbafad76f0552ed4d54286164187
[ "MIT" ]
2
2022-01-17T14:01:24.000Z
2022-01-20T04:27:37.000Z
scripts/reformatGff.py
hatimalmutairi/LMGAAP
bb3914de6113cbafad76f0552ed4d54286164187
[ "MIT" ]
null
null
null
scripts/reformatGff.py
hatimalmutairi/LMGAAP
bb3914de6113cbafad76f0552ed4d54286164187
[ "MIT" ]
null
null
null
import pandas as pd import sys df = pd.read_csv(sys.argv[1],header=None) df.columns = ['column_1'] rows = df.loc[0:1].copy() df2 = df.loc[2:].copy() df2['ID'] = range(1,len(df2)+1) df2['ID'] = 'ID=' + df2['ID'].astype(str) df2['column_1'] = df2['column_1'].str.cat(df2['ID'],sep=";") df2 = rows.append(df2) df2...
33.083333
61
0.624685
be0a675c0ae447329cc6e6934e7424cb60d5675d
47
py
Python
src/python/pydetranutils/track_plot.py
baklanovp/libdetran
820efab9d03ae425ccefb9520bdb6c086fdbf939
[ "MIT" ]
4
2015-03-07T16:20:23.000Z
2020-02-10T13:40:16.000Z
src/python/pydetranutils/track_plot.py
baklanovp/libdetran
820efab9d03ae425ccefb9520bdb6c086fdbf939
[ "MIT" ]
3
2018-02-27T21:24:22.000Z
2020-12-16T00:56:44.000Z
src/python/pydetranutils/track_plot.py
baklanovp/libdetran
820efab9d03ae425ccefb9520bdb6c086fdbf939
[ "MIT" ]
9
2015-03-07T16:20:26.000Z
2022-01-29T00:14:23.000Z
# Utilities for visualizing tracked geometries
23.5
46
0.851064
a141da4cffa4eddc00424406a5122f276f052116
42,609
py
Python
rs/login.py
alexander-marquardt/lexalink
d554f3a00699c8a4cdf1b28dd033655f929470fa
[ "Apache-2.0", "BSD-3-Clause" ]
1
2017-02-09T07:12:25.000Z
2017-02-09T07:12:25.000Z
rs/login.py
alexander-marquardt/lexalink
d554f3a00699c8a4cdf1b28dd033655f929470fa
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
rs/login.py
alexander-marquardt/lexalink
d554f3a00699c8a4cdf1b28dd033655f929470fa
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ # LexaLink Copyright information - do not remove this copyright notice # Copyright (C) 2012 # # Lexalink - a free social network and dating website platform for the Google App Engine. # # Original author: Alexan...
54.697047
175
0.648173
c868e9a61c22c86cee4b5bf5c671d1b97f0dbc87
5,140
py
Python
lexicon/providers/linode.py
1500cloud/lexicon
8fa65a4e8c844d5d7c33f55ac6e66242f7d415d9
[ "MIT" ]
1
2019-08-17T23:09:24.000Z
2019-08-17T23:09:24.000Z
lexicon/providers/linode.py
1500cloud/lexicon
8fa65a4e8c844d5d7c33f55ac6e66242f7d415d9
[ "MIT" ]
null
null
null
lexicon/providers/linode.py
1500cloud/lexicon
8fa65a4e8c844d5d7c33f55ac6e66242f7d415d9
[ "MIT" ]
1
2021-01-06T16:04:36.000Z
2021-01-06T16:04:36.000Z
"""Module provider for Linode""" from __future__ import absolute_import import json import logging import requests from lexicon.providers.base import Provider as BaseProvider LOGGER = logging.getLogger(__name__) NAMESERVER_DOMAINS = ['linode.com'] def provider_parser(subparser): """Module provider for Linode"...
35.944056
88
0.593969
df43151939b9eb8b422de5ed83d901dbb0d2c561
212
py
Python
load_intraday.py
eduardodisanti/stock_market_agents
207e4d30ff3f826250636fca2e750b6e5b6b0b51
[ "MIT" ]
null
null
null
load_intraday.py
eduardodisanti/stock_market_agents
207e4d30ff3f826250636fca2e750b6e5b6b0b51
[ "MIT" ]
null
null
null
load_intraday.py
eduardodisanti/stock_market_agents
207e4d30ff3f826250636fca2e750b6e5b6b0b51
[ "MIT" ]
null
null
null
from gather_history_data import load_historical_data, load_intraday_data SYMBOLS = ['FCAU', 'JNJ', 'SPCE', 'TLRD'] for symbol in SYMBOLS: print("Loading", symbol) load_intraday_data(symbol, interval=15)
30.285714
72
0.75
cdb3490a054e3aa3106f29bcc36f812c6ac70490
10,287
py
Python
letsencrypt-nginx/docs/conf.py
BillKeenan/lets-encrypt-preview
de182946b5cf09a3486f38d3df0c43e2280b3654
[ "Apache-2.0" ]
null
null
null
letsencrypt-nginx/docs/conf.py
BillKeenan/lets-encrypt-preview
de182946b5cf09a3486f38d3df0c43e2280b3654
[ "Apache-2.0" ]
null
null
null
letsencrypt-nginx/docs/conf.py
BillKeenan/lets-encrypt-preview
de182946b5cf09a3486f38d3df0c43e2280b3654
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # letsencrypt-nginx documentation build configuration file, created by # sphinx-quickstart on Sun Oct 18 13:39:39 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated f...
32.971154
97
0.719063
cb829a868f99a827969aefee4c34fb11d53b78b9
744
py
Python
amicleaner/resources/config.py
indyaah/aws-amicleaner
718dbd889a2576b291dc211b82ffd784372869ba
[ "MIT" ]
null
null
null
amicleaner/resources/config.py
indyaah/aws-amicleaner
718dbd889a2576b291dc211b82ffd784372869ba
[ "MIT" ]
null
null
null
amicleaner/resources/config.py
indyaah/aws-amicleaner
718dbd889a2576b291dc211b82ffd784372869ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # set your aws env vars to production from blessings import Terminal # terminal colors TERM = Terminal() # Number of previous amis to keep based on grouping strategy # not including the ami currently running by an ec2 instance KEEP_PREVIOUS = 4 # the way to regroup AMI...
24.8
79
0.708333
1ffa0e58b5be7b2143ad7a8d67192bf8af913e31
58
py
Python
HW7/Vaulin/CW7.6.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW7/Vaulin/CW7.6.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW7/Vaulin/CW7.6.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
def bool_to_word(bool): return "Yes" if bool else "No"
29
34
0.689655
d9c93d17c190f767943b8c9d44ab37ad2799594b
1,643
py
Python
setup.py
SnehalD14/autolab_core
c271f1f84283ab5d368618eb85754a549aeae4a3
[ "Apache-2.0" ]
2
2019-05-27T11:32:31.000Z
2019-06-13T21:46:34.000Z
setup.py
SnehalD14/autolab_core
c271f1f84283ab5d368618eb85754a549aeae4a3
[ "Apache-2.0" ]
null
null
null
setup.py
SnehalD14/autolab_core
c271f1f84283ab5d368618eb85754a549aeae4a3
[ "Apache-2.0" ]
null
null
null
""" Setup of core python codebase Author: Jeff Mahler """ from setuptools import setup requirements = [ 'numpy', 'scipy', 'scikit-learn', 'ruamel.yaml', 'matplotlib<=2.2.0', 'multiprocess', 'setproctitle', 'joblib', 'colorlog' ] exec(open('autolab_core/version.py').read()) setup(...
29.339286
129
0.545953
6efed9c571a8eeaa22acb2db06a6463329d0fedc
249
py
Python
validadores.py
OrlandoBitencourt/Jokenpy
81b405f8bf465eafc7e81e68010948a57a7e51a3
[ "MIT" ]
null
null
null
validadores.py
OrlandoBitencourt/Jokenpy
81b405f8bf465eafc7e81e68010948a57a7e51a3
[ "MIT" ]
null
null
null
validadores.py
OrlandoBitencourt/Jokenpy
81b405f8bf465eafc7e81e68010948a57a7e51a3
[ "MIT" ]
null
null
null
def valida_carta_escolhida(carta_escolhida): if 0 < carta_escolhida <= 3: return True else: print("\nDigite uma opção válida!\n") return False def valida_rodada(rodada): rodada += 1 return rodada
20.75
46
0.610442
85dbe9e8eeae6cb66ac3720054ea54bf50bb8a44
1,188
py
Python
app/views_stream.py
fossabot/stream_vod_indexer
58bff60cc4adb1b8e5966134d2e560e59464d196
[ "MIT" ]
null
null
null
app/views_stream.py
fossabot/stream_vod_indexer
58bff60cc4adb1b8e5966134d2e560e59464d196
[ "MIT" ]
null
null
null
app/views_stream.py
fossabot/stream_vod_indexer
58bff60cc4adb1b8e5966134d2e560e59464d196
[ "MIT" ]
1
2021-02-18T14:25:39.000Z
2021-02-18T14:25:39.000Z
from django.shortcuts import render import datetime from django.core.serializers import serialize from app.models import GameStorage, StreamStorage from django.http import JsonResponse NotImplemented = JsonResponse({"error": "NotImplemented"}) def __is_date_valid(year: int, month: int, day: int): try: da...
24.244898
67
0.600168
ca3b14a23e5738582a19a7398d75d6f239e8412b
1,006
py
Python
tasks.py
LisaDawn/TextBlob
6b76c3f568a3cea16389d6bdb1b3e5a9dc6043e9
[ "MIT" ]
2
2015-03-10T14:33:16.000Z
2015-03-10T14:33:18.000Z
tasks.py
LisaDawn/TextBlob
6b76c3f568a3cea16389d6bdb1b3e5a9dc6043e9
[ "MIT" ]
null
null
null
tasks.py
LisaDawn/TextBlob
6b76c3f568a3cea16389d6bdb1b3e5a9dc6043e9
[ "MIT" ]
null
null
null
import os from invoke import task, run docs_dir = 'docs' build_dir = os.path.join(docs_dir, '_build') @task def test(): run("python run_tests.py", pty=True) @task def deps(): print("Vendorizing nltk...") run("git clone https://github.com/nltk/nltk.git") run("rm -rf text/nltk") run("mv nltk/nltk t...
19.346154
63
0.621272
48cdaa8fd31a196dd0d50e26d256f14c51d9d948
1,604
py
Python
phiseg_train.py
MiguelMonteiro/PHiSeg-code
86436f84310e30eecedd3a656fdc528646a496c6
[ "Apache-2.0" ]
4
2020-08-26T07:37:10.000Z
2021-10-13T03:50:23.000Z
phiseg_train.py
MiguelMonteiro/PHiSeg-code
86436f84310e30eecedd3a656fdc528646a496c6
[ "Apache-2.0" ]
null
null
null
phiseg_train.py
MiguelMonteiro/PHiSeg-code
86436f84310e30eecedd3a656fdc528646a496c6
[ "Apache-2.0" ]
1
2021-05-11T07:24:31.000Z
2021-05-11T07:24:31.000Z
import logging from importlib.machinery import SourceFileLoader import argparse from data.data_switch import data_switch import os import config.system as sys_config import shutil import utils from phiseg import phiseg_model logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s') def main(exp_confi...
31.45098
100
0.674564
13e433c3c3af14a00cca437177659f6d30e6976e
768
py
Python
src/main/python/spider/RequestsCookie.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
src/main/python/spider/RequestsCookie.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
src/main/python/spider/RequestsCookie.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # --------------------------------------------- # @file Requests.py # @description RequestsCookie # @author WcJun # @date 2020/07/05 # --------------------------------------------- import src.main.python.spider.SpiderUtils as SpiderUtils import requests def main(): http_headers = SpiderU...
28.444444
81
0.628906
2eff26dd39eb731830a792cc34b01c2d2263557d
1,145
py
Python
logadempirical/logdeep/dataset/__init__.py
LogIntelligence/LogADEmpirical
48458aee65c1c84466b04dd4092fae79a7f341fd
[ "MIT" ]
11
2022-02-06T23:54:42.000Z
2022-03-30T06:41:39.000Z
logadempirical/logdeep/dataset/__init__.py
LogIntelligence/LogADEmpirical
48458aee65c1c84466b04dd4092fae79a7f341fd
[ "MIT" ]
1
2022-02-13T23:24:56.000Z
2022-02-14T03:57:50.000Z
logadempirical/logdeep/dataset/__init__.py
LogIntelligence/LogADEmpirical
48458aee65c1c84466b04dd4092fae79a7f341fd
[ "MIT" ]
5
2022-02-16T12:58:59.000Z
2022-03-21T04:59:40.000Z
from .vocab import Vocab import torch from transformers import BertTokenizer, BertModel import re import string bert_tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') bert_model = BertModel.from_pretrained('bert-base-uncased') def clean(s): # s = re.sub(r'(\d+\.){3}\d+(:\d+)?', " ", s) # s = re....
34.69697
90
0.593886
31417d69d162bf56a47a1caac63d7990fcb3f6ab
3,072
py
Python
minesgenerate_v1.3.py
rakanann/minesgenerate
a5810bc91ecdacb8743720f8039a8611412b7b32
[ "BSD-3-Clause" ]
null
null
null
minesgenerate_v1.3.py
rakanann/minesgenerate
a5810bc91ecdacb8743720f8039a8611412b7b32
[ "BSD-3-Clause" ]
null
null
null
minesgenerate_v1.3.py
rakanann/minesgenerate
a5810bc91ecdacb8743720f8039a8611412b7b32
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import random import math class Map(): def __init__(self,num_mine,num_hero): self.num_mine = num_mine self.num_hero = num_hero self.mines = [] self.heros = [] self.align = [] self.flag=0 self.ini...
28.981132
127
0.483073
7ec4a44bc1de5bf300499e0300184f175bd119a2
820
py
Python
api/src/validator/CommonValidator.py
SamuelJansen/health-check-manager-api
d75ecd3a8141a181bf458916b8c0cebb1ed73cb9
[ "MIT" ]
1
2021-10-30T20:27:51.000Z
2021-10-30T20:27:51.000Z
api/src/validator/CommonValidator.py
SamuelJansen/health-check-manager-api
d75ecd3a8141a181bf458916b8c0cebb1ed73cb9
[ "MIT" ]
null
null
null
api/src/validator/CommonValidator.py
SamuelJansen/health-check-manager-api
d75ecd3a8141a181bf458916b8c0cebb1ed73cb9
[ "MIT" ]
null
null
null
from python_helper import Constant from python_framework import Validator, ValidatorMethod, GlobalException, HttpStatus @Validator() class CommonValidator: @ValidatorMethod(requestClass=bool) def isBoolean(self, booleanObject): ... @ValidatorMethod(requestClass=[str, str]) def strNotNull(self...
41
134
0.729268
8a5b281ef61a4da1681503dd3243551d95405286
3,553
py
Python
cmapPy/pandasGEXpress/tests/python3_tests/test_gctx2gct.py
Cellular-Longevity/cmapPy
abd4349f28af6d035f69fe8c399fde7bef8dd635
[ "BSD-3-Clause" ]
null
null
null
cmapPy/pandasGEXpress/tests/python3_tests/test_gctx2gct.py
Cellular-Longevity/cmapPy
abd4349f28af6d035f69fe8c399fde7bef8dd635
[ "BSD-3-Clause" ]
10
2022-03-14T18:40:45.000Z
2022-03-22T12:45:02.000Z
cmapPy/pandasGEXpress/tests/python3_tests/test_gctx2gct.py
Cellular-Longevity/cmapPy
abd4349f28af6d035f69fe8c399fde7bef8dd635
[ "BSD-3-Clause" ]
null
null
null
import unittest import logging import pandas as pd import os import cmapPy.pandasGEXpress.gctx2gct as gctx2gct import cmapPy.pandasGEXpress.setup_GCToo_logger as setup_logger import cmapPy.pandasGEXpress.parse_gct as parse_gct import cmapPy.pandasGEXpress.parse_gctx as parse_gctx logger = logging.getLogger(setup_logge...
43.329268
116
0.804672
983a307150caeb53369cd8c0058d70adc342c34a
3,327
py
Python
code/LinearBinaryClassification/HelperClass/NeuralNet_1_2.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
3
2021-05-25T10:18:23.000Z
2022-02-09T08:55:14.000Z
code/LinearBinaryClassification/HelperClass/NeuralNet_1_2.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
code/LinearBinaryClassification/HelperClass/NeuralNet_1_2.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-# ''' # Name: NeuralNet # Description: 定义神经网络 支持网络类型 将损失函数抽象为单独的类 # Author: super # Date: 2020/5/16 ''' import numpy as np import matplotlib.pyplot as plt import math from pathlib import Path from matplotlib.colors import LogNorm fr...
33.606061
97
0.579501
05559888c9723a39355210c666b23d66ea0e2880
7,009
py
Python
height_warp.py
FaiZaman/Mars-Topography-Visualisation
761d021507030cee94a9bd3a8d071d2af426a195
[ "MIT" ]
null
null
null
height_warp.py
FaiZaman/Mars-Topography-Visualisation
761d021507030cee94a9bd3a8d071d2af426a195
[ "MIT" ]
null
null
null
height_warp.py
FaiZaman/Mars-Topography-Visualisation
761d021507030cee94a9bd3a8d071d2af426a195
[ "MIT" ]
null
null
null
import sys import cv2 import vtk import time from preprocessing import load_obj # texture and render height map of Mars using elevation data def compute_height_map(elevation_data_path, texture_data_path): start = time.time() sphere_height, sphere_width = 1959, 1962 # create sphere and set values mar...
35.57868
94
0.758168
628c15c61fb77ecda4e2b693e8b9ca9f366275bc
1,458
py
Python
data_augmentation/util/annotation.py
Ribosome-rbx/Medical-Mask-Detection-Based-on-Faster-RCNN
5fb1c6671a7d83ccc4c242e0261e88d5995c33ab
[ "MIT" ]
2
2021-05-20T05:06:47.000Z
2022-01-14T04:30:48.000Z
data_augmentation/util/annotation.py
Ribosome-rbx/Realtime-Medical-Mask-Detection-Based-on-Faster-RCNN
5fb1c6671a7d83ccc4c242e0261e88d5995c33ab
[ "MIT" ]
null
null
null
data_augmentation/util/annotation.py
Ribosome-rbx/Realtime-Medical-Mask-Detection-Based-on-Faster-RCNN
5fb1c6671a7d83ccc4c242e0261e88d5995c33ab
[ "MIT" ]
null
null
null
import imgaug as ia from imgaug import augmenters as iaa import numpy as np import xml.etree.ElementTree as ET import glob import shutil EMPTY_DIR = 'empty' def parse_xml(filename): tree = ET.parse(filename) elem = tree.getroot() result = { 'filename': elem.find('.//filename').text, 'size...
28.038462
72
0.548697
9a4222960bc764779d97dcbc2b4359bd67e56dce
468
py
Python
accounts/backends.py
Lucasfeelix/ong-joao-de-barro
be20042714883dac0a75a97f5ff9fd7804e6e218
[ "MIT" ]
null
null
null
accounts/backends.py
Lucasfeelix/ong-joao-de-barro
be20042714883dac0a75a97f5ff9fd7804e6e218
[ "MIT" ]
null
null
null
accounts/backends.py
Lucasfeelix/ong-joao-de-barro
be20042714883dac0a75a97f5ff9fd7804e6e218
[ "MIT" ]
null
null
null
# coding=utf-8 from django.contrib.auth.backends import ModelBackend as BaseModelBackend from accounts.models import User class ModelBackend(BaseModelBackend): def authenticate(self, username=None, password=None): if not username is None: try: user = User.objects.get(email=use...
29.25
73
0.632479
8bac7b8c1c487370c8ec6b9cb6ce93521251b5d2
1,791
py
Python
tests/test_migrate.py
sinonkt/pachelm
ca0c9c6efc36d18b58db35d17c466ed154098bdd
[ "MIT" ]
1
2019-06-08T13:36:34.000Z
2019-06-08T13:36:34.000Z
tests/test_migrate.py
sinonkt/pachydelm
ca0c9c6efc36d18b58db35d17c466ed154098bdd
[ "MIT" ]
4
2020-03-24T17:12:54.000Z
2021-06-01T23:49:53.000Z
tests/test_migrate.py
sinonkt/pachydelm
ca0c9c6efc36d18b58db35d17c466ed154098bdd
[ "MIT" ]
null
null
null
import pytest from pachelm.migration import PachydermMigration updated_config_path = './tests/updated_configs/2019_06_04_221735_test-pipeline_pipeline_test-pipeline.json' def test_get_pipeline(ctx): emptyMigration = PachydermMigration(ctx) assert emptyMigration.get_pipeline('test-pipeline') != None def test_...
36.55102
107
0.742044
7ebca5e63d1f23540a3fe7842e841061cf18a699
1,620
py
Python
tests/pyre.pkg/calc/algebra.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
null
null
null
tests/pyre.pkg/calc/algebra.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:13.000Z
2021-06-10T23:42:13.000Z
tests/pyre.pkg/calc/algebra.py
jlmaurer/pyre
6af38a83621d7d6228d147b4bb94f97fbb10f6e2
[ "BSD-3-Clause" ]
2
2020-08-31T18:07:52.000Z
2021-12-10T08:54:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2020 all rights reserved # """ Exercise node algebra """ def test(): import pyre.calc # declare a couple of nodes n1 = pyre.calc.var(value=1) n2 = pyre.calc.var(value=2) # unary operators assert (...
25.714286
69
0.535185
5f2c5d4be384f472f7e7d74df443c08eb720d6af
11,263
py
Python
see/context/resources/test/network_test.py
security-geeks/see
900472b8b3e45fbb414f3beba4df48e86eaa4b3a
[ "Apache-2.0" ]
851
2015-10-28T09:32:05.000Z
2022-03-31T02:32:28.000Z
see/context/resources/test/network_test.py
security-geeks/see
900472b8b3e45fbb414f3beba4df48e86eaa4b3a
[ "Apache-2.0" ]
29
2015-12-21T15:43:28.000Z
2021-05-16T10:57:09.000Z
see/context/resources/test/network_test.py
security-geeks/see
900472b8b3e45fbb414f3beba4df48e86eaa4b3a
[ "Apache-2.0" ]
110
2015-10-26T13:05:18.000Z
2021-11-17T18:00:17.000Z
import mock import random import libvirt import difflib import unittest import itertools import ipaddress from see.context.resources import network def compare(text1, text2): """Utility function for comparing text and returning differences.""" diff = difflib.ndiff(str(text1).splitlines(True), ...
41.408088
110
0.56184
1d16dd12cc2979dd4d06eb97fefe9efadca42b1e
12,703
py
Python
homeassistant/components/keyboard_remote/__init__.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/keyboard_remote/__init__.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
homeassistant/components/keyboard_remote/__init__.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Receive signals from a keyboard and use it as a remote control.""" # pylint: disable=import-error import asyncio from contextlib import suppress import logging import os import aionotify from evdev import InputDevice, categorize, ecodes, list_devices import voluptuous as vol from homeassistant.const import EVENT_H...
38.728659
96
0.575218
0a7a9496d35c274b2b7ca39c00067d53703b2316
29,490
py
Python
tests/test_ctl.py
ahachete/patroni
d2d49907ad5008fa2ac213eacb9132bf253cf326
[ "MIT" ]
null
null
null
tests/test_ctl.py
ahachete/patroni
d2d49907ad5008fa2ac213eacb9132bf253cf326
[ "MIT" ]
null
null
null
tests/test_ctl.py
ahachete/patroni
d2d49907ad5008fa2ac213eacb9132bf253cf326
[ "MIT" ]
null
null
null
import etcd import json import os import sys import unittest from click.testing import CliRunner from datetime import datetime, timedelta from mock import patch, Mock from patroni.ctl import ctl, store_config, load_config, output_members, get_dcs, parse_dcs, \ get_all_members, get_any_member, get_cursor, query_mem...
50.153061
120
0.641607
fc38e38ec099d0d04145aa51f0b05d450c47c9ef
3,129
py
Python
pythonforandroid/recipes/vlc/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
38
2016-03-09T08:48:19.000Z
2021-11-28T15:31:22.000Z
pythonforandroid/recipes/vlc/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
2
2018-12-18T14:30:11.000Z
2021-06-21T20:15:47.000Z
pythonforandroid/recipes/vlc/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
18
2016-07-13T17:30:05.000Z
2022-02-22T07:04:33.000Z
from pythonforandroid.toolchain import Recipe, current_directory from pythonforandroid.logger import info, debug, shprint, warning from os.path import exists, join from os import environ import sh from colorama import Fore, Style class VlcRecipe(Recipe): version = '3.0.0' url = None name = 'vlc' depen...
43.458333
88
0.552892
abbc2df9061a3af12a895d514effc97a7e18e68f
6,972
py
Python
homeassistant/components/airvisual/config_flow.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/airvisual/config_flow.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/airvisual/config_flow.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Define a config flow manager for AirVisual.""" import asyncio from pyairvisual import Client from pyairvisual.errors import InvalidKeyError, NodeProError import voluptuous as vol from homeassistant import config_entries from homeassistant.const import ( CONF_API_KEY, CONF_IP_ADDRESS, CONF_LATITUDE, ...
34.514851
87
0.619048
01f61ca001559dcfc47e105decb6aa2a86eff9be
305
py
Python
upybleutils/appble.py
Carglglz/upyble
e95ecc235e7d1d863efaa80eb092aeb070c6de3a
[ "MIT" ]
5
2021-02-16T06:32:25.000Z
2022-03-18T00:26:08.000Z
upybleutils/appble.py
Carglglz/upyble
e95ecc235e7d1d863efaa80eb092aeb070c6de3a
[ "MIT" ]
null
null
null
upybleutils/appble.py
Carglglz/upyble
e95ecc235e7d1d863efaa80eb092aeb070c6de3a
[ "MIT" ]
2
2020-05-24T09:19:37.000Z
2021-02-16T06:32:28.000Z
import bluetooth from ble_temp_amb import BLE_Battery_Temp ble = bluetooth.BLE() def main(**kargs): ble_temp_batt = BLE_Battery_Temp(ble, **kargs) return ble_temp_batt def set_ble_flag(flag): with open('ble_flag.py', 'wb') as bleconfig: bleconfig.write(b'BLE = {}'.format(flag))
19.0625
50
0.701639
e71381f1077c9450389d1384c265521fb5682e06
593
py
Python
XML/XML_to_python_objects__untagle__examples/from_url.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
XML/XML_to_python_objects__untagle__examples/from_url.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
XML/XML_to_python_objects__untagle__examples/from_url.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://github.com/stchris/untangle # pip install untangle # OR: # pip install git+https://github.com/stchris/untangle.git import untangle obj = untangle.parse('https://news.yandex.ru/games.rss') channel = obj.rss.channel print(chann...
24.708333
76
0.713322
af63c4b4181ceb7095bd81146341f10412506518
219
py
Python
utils/__init__.py
naivete5656/BFP
74c5604a9ba4eaa3ec3e2c76ef5e1282d7d10f18
[ "MIT" ]
8
2020-07-31T15:20:01.000Z
2021-09-18T08:42:07.000Z
utils/__init__.py
naivete5656/BFP
74c5604a9ba4eaa3ec3e2c76ef5e1282d7d10f18
[ "MIT" ]
null
null
null
utils/__init__.py
naivete5656/BFP
74c5604a9ba4eaa3ec3e2c76ef5e1282d7d10f18
[ "MIT" ]
5
2020-10-04T02:02:13.000Z
2021-11-14T23:37:08.000Z
from .for_vis import Visdom from .load import * from .utils import local_maxima, gaus_filter, optimum, gather_path from .load_for_CMP import * from .load_image import visuarize_img, load_image from .cmp_library import *
36.5
66
0.817352
b6c57be79d4cfea43df6e6533d79748bbcfb8335
97
py
Python
apps/transaccion/apps.py
mariomtzjr/podemos_test
5efaf02a19aa8c4849e3ad0108546e95af524126
[ "MIT" ]
null
null
null
apps/transaccion/apps.py
mariomtzjr/podemos_test
5efaf02a19aa8c4849e3ad0108546e95af524126
[ "MIT" ]
8
2021-03-30T13:39:24.000Z
2022-03-12T00:36:15.000Z
apps/transaccion/apps.py
mariomtzjr/podemos_test
5efaf02a19aa8c4849e3ad0108546e95af524126
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TransaccionConfig(AppConfig): name = 'transaccion'
16.166667
35
0.773196
d9cf20124fa745a4bd534cf170b01492da4e897a
5,871
py
Python
aws_xray_sdk/core/models/segment.py
Cloudzero/aws-xray-sdk-python
41b776d57bf4b3a47ddf993a9c2999f527ca0ede
[ "Apache-2.0" ]
null
null
null
aws_xray_sdk/core/models/segment.py
Cloudzero/aws-xray-sdk-python
41b776d57bf4b3a47ddf993a9c2999f527ca0ede
[ "Apache-2.0" ]
null
null
null
aws_xray_sdk/core/models/segment.py
Cloudzero/aws-xray-sdk-python
41b776d57bf4b3a47ddf993a9c2999f527ca0ede
[ "Apache-2.0" ]
null
null
null
import copy import traceback from .entity import Entity from .traceid import TraceId from ..utils.atomic_counter import AtomicCounter from ..exceptions.exceptions import SegmentNameMissingException ORIGIN_TRACE_HEADER_ATTR_KEY = '_origin_trace_header' class SegmentContextManager: """ Wrapper for segment and...
31.907609
76
0.628172
53273b0788a2f92daef8741b7065531f0c211845
1,566
py
Python
benchbuild/projects/benchbuild/lammps.py
simbuerg/benchbuild
e7b0c8d1e26c1d60b8dfab66526dcf6d0c0b6563
[ "MIT" ]
null
null
null
benchbuild/projects/benchbuild/lammps.py
simbuerg/benchbuild
e7b0c8d1e26c1d60b8dfab66526dcf6d0c0b6563
[ "MIT" ]
3
2017-02-02T15:54:52.000Z
2017-06-08T03:52:45.000Z
benchbuild/projects/benchbuild/lammps.py
simbuerg/benchbuild
e7b0c8d1e26c1d60b8dfab66526dcf6d0c0b6563
[ "MIT" ]
1
2017-04-01T15:30:16.000Z
2017-04-01T15:30:16.000Z
from benchbuild.utils.wrapping import wrap from benchbuild.projects.benchbuild.group import BenchBuildGroup from benchbuild.utils.compiler import lt_clang_cxx from benchbuild.utils.downloader import Git from benchbuild.utils.run import run from benchbuild.utils.versions import get_version_from_cache_dir from plumbum i...
27.964286
67
0.623883
c3578dbb989475177b7a11073e531935b3ae19ef
5,283
py
Python
core/platform/email/dev_mode_email_services_test.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
4
2021-09-16T16:46:53.000Z
2022-02-06T13:00:14.000Z
core/platform/email/dev_mode_email_services_test.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
80
2020-10-31T09:14:46.000Z
2021-01-12T23:38:15.000Z
core/platform/email/dev_mode_email_services_test.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
1
2020-10-02T13:28:26.000Z
2020-10-02T13:28:26.000Z
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.204225
80
0.586788
1e4a67c5320104d748908e71bd783844b06e1a3a
6,754
py
Python
openks/models/model.py
HIT-SCIR-xuanxuan/OpenKS
a7f2ce0890822113322aad22e98d6c961e63caef
[ "Apache-2.0" ]
null
null
null
openks/models/model.py
HIT-SCIR-xuanxuan/OpenKS
a7f2ce0890822113322aad22e98d6c961e63caef
[ "Apache-2.0" ]
null
null
null
openks/models/model.py
HIT-SCIR-xuanxuan/OpenKS
a7f2ce0890822113322aad22e98d6c961e63caef
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 OpenKS Authors, DCD Research Lab, Zhejiang University. # All Rights Reserved. """ An abstract class for openks models to be trained with Paddle """ import logging from typing import Tuple, List, Any import torch import torch.nn as nn from torch.utils import data import paddle.fluid as fluid from ...
21.10625
103
0.726384
c076b909cf10b399de405e13dc09731809c94902
22
py
Python
tests/__init__.py
JayveeHe/senz.app.staticinfo.inferrence
98748506adcbb28b074337e261fe79b2141f31a5
[ "MIT" ]
1
2015-12-16T02:33:08.000Z
2015-12-16T02:33:08.000Z
config/__init__.py
JayveeHe/JiabeiGongfang
87de2b1912bfbb643e81020c29c34f9f0aba44cd
[ "MIT" ]
null
null
null
config/__init__.py
JayveeHe/JiabeiGongfang
87de2b1912bfbb643e81020c29c34f9f0aba44cd
[ "MIT" ]
null
null
null
__author__ = 'Jayvee'
11
21
0.727273
87265d851ddd082585439286dad501f5b73d0ce8
1,225
py
Python
protgraph/export/csv.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
protgraph/export/csv.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
protgraph/export/csv.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
import csv from protgraph.export.generic_file_exporter import GenericFileExporter class CSV(GenericFileExporter): """ A simple CSV exporter. This export is compatible with Gephi.""" def __init__(self): super(CSV, self).__init__( self._lambda_export ) def _lambda_export(self,...
31.410256
79
0.58449
e6b80e40134da7570770d290a0ebe39d4af84633
42,535
py
Python
platform/hwconf_data/mgm13/MGM13_srcgen.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
null
null
null
platform/hwconf_data/mgm13/MGM13_srcgen.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T02:36:22.000Z
2020-08-25T02:36:22.000Z
platform/hwconf_data/mgm13/MGM13_srcgen.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T01:56:04.000Z
2020-08-25T01:56:04.000Z
#!/usr/bin/env python3 ## Make sure that our path has just top level of ddml #@PydevCodeAnalysisIgnore import sys import os import glob import copy # get module mapping from mgm13.modules.PIN.PIN_Class import * import mgm13.PythonSnippet.ExporterModel as ExporterModel import mgm13.PythonSnippet.Metadata as Metadata i...
42.365538
217
0.630093
8ff7acaf73d3ad0896c1644713189462886295b9
354
py
Python
ProjectApplication/grant_management/migrations/0003_remove_socialnetwork_identifier.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/grant_management/migrations/0003_remove_socialnetwork_identifier.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/grant_management/migrations/0003_remove_socialnetwork_identifier.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
# Generated by Django 3.0.3 on 2020-04-06 07:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('grant_management', '0002_socialnetwork_identifier'), ] operations = [ migrations.RemoveField( model_name='socialnetwork', na...
19.666667
62
0.621469
61cbcfcfa916e65e3a52051234b91b9717cfec5d
4,342
py
Python
app/api/v2/views/product_view.py
andrewhingah/store_manager_v2
1cb52f8826b7343858cfe88b9ca1a94c77e0620c
[ "MIT" ]
null
null
null
app/api/v2/views/product_view.py
andrewhingah/store_manager_v2
1cb52f8826b7343858cfe88b9ca1a94c77e0620c
[ "MIT" ]
2
2018-11-09T06:57:14.000Z
2018-11-13T16:44:56.000Z
app/api/v2/views/product_view.py
andrewhingah/store_manager_3
1cb52f8826b7343858cfe88b9ca1a94c77e0620c
[ "MIT" ]
null
null
null
"""This module contains resources for products""" from datetime import datetime from flask import Flask, jsonify, make_response, request from flask_restful import Api, Resource, reqparse from flask_jwt_extended import (jwt_required, create_access_token, get_jwt_identity, get_raw_jwt) from app.api.v2.models.product_m...
28.565789
103
0.698065
50aed70bf275d92254745cb80f24d15261c098cb
13,613
py
Python
pandas/core/common.py
oricou/pandas
9405e58d9268041f5416711c051cf5429a19bf49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/common.py
oricou/pandas
9405e58d9268041f5416711c051cf5429a19bf49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/common.py
oricou/pandas
9405e58d9268041f5416711c051cf5429a19bf49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-06-04T09:25:40.000Z
2021-06-04T09:25:40.000Z
""" Misc tools for implementing data structures Note: pandas.core.common is *not* part of the public API. """ from collections import ( abc, defaultdict, ) import contextlib from functools import partial import inspect from typing import ( Any, Callable, Collection, Iterable, Iterator, ...
26.229287
88
0.627856
1e6c1867756ee328859f70e63fb082b329281c53
1,898
py
Python
src/OTLMOW/OTLModel/Classes/ProefWeerstandAfschilfering.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Classes/ProefWeerstandAfschilfering.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Classes/ProefWeerstandAfschilfering.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.Proef import Proef from OTLMOW.OTLModel.Datatypes.DtcDocument import DtcDocument from OTLMOW.GeometrieArtefact.PuntGeometrie import PuntGeometrie from OTLMOW.GeometrieArtefact.LijnGeometrie import LijnGeometrie...
49.947368
174
0.68019
ea0d1d24e59e9eb2b01a810014b2fa971a244b9e
1,030
py
Python
zeit_epaper.py
mlux86/zeit-to-tolino
0a352cbd2185f2c4a75f12828554b0e55b10918f
[ "MIT" ]
null
null
null
zeit_epaper.py
mlux86/zeit-to-tolino
0a352cbd2185f2c4a75f12828554b0e55b10918f
[ "MIT" ]
null
null
null
zeit_epaper.py
mlux86/zeit-to-tolino
0a352cbd2185f2c4a75f12828554b0e55b10918f
[ "MIT" ]
null
null
null
from selenium.webdriver.chrome.webdriver import WebDriver from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement class ZeitIssue: def __init__(self, driver): self.driver = driver def get_download_url(self): link_elem: WebElement = self.driver.f...
33.225806
97
0.702913
b21d5213dd5a9a685f2e75c6bd37259944d08025
4,880
py
Python
alternate_fingers.py
anthologen/audio-sandbox
e5aa6f28c0db002520273c55c453390e163dad81
[ "MIT" ]
null
null
null
alternate_fingers.py
anthologen/audio-sandbox
e5aa6f28c0db002520273c55c453390e163dad81
[ "MIT" ]
null
null
null
alternate_fingers.py
anthologen/audio-sandbox
e5aa6f28c0db002520273c55c453390e163dad81
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ A tool to find and draw all possible chord finger positions on a string instrument. Partially inspired by a finger injury. """ import logging import sys import argparse logger = logging.getLogger() logger.setLevel(logging.INFO) handler = logging.StreamHandler(sys.stderr) handler.setLevel(lo...
32.972973
92
0.632582
0333fb58de83af9f4c78d078b1d9fe8f1eb438ea
5,959
py
Python
qsimcirq/qsim_circuit.py
Thenerdstation/qsim
4c16822ee56614b917434c3b7bc7b06b07dc8e02
[ "Apache-2.0" ]
null
null
null
qsimcirq/qsim_circuit.py
Thenerdstation/qsim
4c16822ee56614b917434c3b7bc7b06b07dc8e02
[ "Apache-2.0" ]
null
null
null
qsimcirq/qsim_circuit.py
Thenerdstation/qsim
4c16822ee56614b917434c3b7bc7b06b07dc8e02
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
32.922652
79
0.663031
8c44b34a018ad9e9f023d894e11a7a4ce39128f1
532
py
Python
Code/GraphEvoDef/main/utils.py
vijaybw/graphevodef
5dcde8ea6b5a754fa15a370fe3bc73e4bd0a94a9
[ "MIT" ]
null
null
null
Code/GraphEvoDef/main/utils.py
vijaybw/graphevodef
5dcde8ea6b5a754fa15a370fe3bc73e4bd0a94a9
[ "MIT" ]
null
null
null
Code/GraphEvoDef/main/utils.py
vijaybw/graphevodef
5dcde8ea6b5a754fa15a370fe3bc73e4bd0a94a9
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2020 - present Rakan Alanazi, Vijay Walunj """ from werkzeug.utils import secure_filename from flask import current_app import os def save_file(uploaded_file,project_name,last_file_flag=False): filename = secure_filename(uploaded_file.filename) _, f_ext = os.path...
28
92
0.746241
1e432282e630ec77bcf5c1c3a074baf0b0cf57b4
13,309
py
Python
test/test_remote_io.py
pytorch/data
32e447f1890437fa9707bc2e517cfa8b3e19dfca
[ "BSD-3-Clause" ]
611
2021-09-27T18:19:16.000Z
2022-03-31T11:36:01.000Z
test/test_remote_io.py
pytorch/data
32e447f1890437fa9707bc2e517cfa8b3e19dfca
[ "BSD-3-Clause" ]
271
2021-09-27T19:07:00.000Z
2022-03-30T19:55:14.000Z
test/test_remote_io.py
pytorch/data
32e447f1890437fa9707bc2e517cfa8b3e19dfca
[ "BSD-3-Clause" ]
36
2021-09-27T19:22:32.000Z
2022-03-29T12:49:06.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import io import os import unittest import warnings import expecttest import torchdata from _utils._common_u...
39.37574
115
0.624314
19ffc8d38b23842ce67873c05660d0019a108f82
4,156
py
Python
pontoon/checks/tests/test_libraries.py
udacity/pontoon
e15a03a0c987615385b2a8c537bb18c99567f77e
[ "BSD-3-Clause" ]
null
null
null
pontoon/checks/tests/test_libraries.py
udacity/pontoon
e15a03a0c987615385b2a8c537bb18c99567f77e
[ "BSD-3-Clause" ]
1
2020-10-14T16:39:53.000Z
2020-10-14T16:39:53.000Z
pontoon/checks/tests/test_libraries.py
udacity/pontoon
e15a03a0c987615385b2a8c537bb18c99567f77e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import pytest from textwrap import dedent from mock import patch, MagicMock, ANY from pontoon.checks.libraries import run_checks @pytest.yield_fixture def run_tt_checks_mock(): with patch('pontoon.checks.libraries.translate_toolkit.run_checks') as mock: yield mock...
23.348315
80
0.63282
086087b195ccf5ce9d8f5cc94df16fd626d8681c
15,315
py
Python
movement_validation/statistics/specs.py
eulerkaku/movement_validation
af939a42a97c1de889cf13bad0c22a2824d60947
[ "MIT" ]
null
null
null
movement_validation/statistics/specs.py
eulerkaku/movement_validation
af939a42a97c1de889cf13bad0c22a2824d60947
[ "MIT" ]
null
null
null
movement_validation/statistics/specs.py
eulerkaku/movement_validation
af939a42a97c1de889cf13bad0c22a2824d60947
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Instances of these classes define how a feature should be quantized into a histogram as well as some additional informaton (see csv files and class definitions) The raw information is actually located in csv files in: movement_validation/statistics/feature_metadata These classes inst...
33.882743
111
0.55253
970dc4ed84f6566050349e7b58a9e7f03f2daac5
1,072
py
Python
napari/layers/surface/_surface_constants.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
1,345
2019-03-03T21:14:14.000Z
2022-03-31T19:46:39.000Z
napari/layers/surface/_surface_constants.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
3,904
2019-03-02T01:30:24.000Z
2022-03-31T20:17:27.000Z
napari/layers/surface/_surface_constants.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
306
2019-03-29T17:09:10.000Z
2022-03-30T09:54:11.000Z
from enum import auto from ...utils.misc import StringEnum from ...utils.translations import trans class Shading(StringEnum): """Shading: Shading mode for the surface. Selects a preset shading mode in vispy that determines how color is computed in the scene. See also: https://www.khronos.org/registr...
31.529412
91
0.646455
7bfb701e7c536a1e82ef06617409e3afc5890947
113
py
Python
iseg/runner/amp.py
TaikiInoue/iSegmentation
25b2ce6a766e22cefca44b5dd21edadb0870df23
[ "MIT" ]
null
null
null
iseg/runner/amp.py
TaikiInoue/iSegmentation
25b2ce6a766e22cefca44b5dd21edadb0870df23
[ "MIT" ]
null
null
null
iseg/runner/amp.py
TaikiInoue/iSegmentation
25b2ce6a766e22cefca44b5dd21edadb0870df23
[ "MIT" ]
null
null
null
from torch.cuda.amp import GradScaler class RunnerAMP: def init_scaler(self): return GradScaler()
14.125
37
0.707965
1a093f7569c5b3be86a1411161a46111294fee74
3,963
py
Python
tests/unit/extraction_rules/test_audit_policy.py
karolkieglerski/dynatrace-gcp-function
3da9abf969aebe63cecbc7817f033123637dd12e
[ "Apache-2.0" ]
null
null
null
tests/unit/extraction_rules/test_audit_policy.py
karolkieglerski/dynatrace-gcp-function
3da9abf969aebe63cecbc7817f033123637dd12e
[ "Apache-2.0" ]
null
null
null
tests/unit/extraction_rules/test_audit_policy.py
karolkieglerski/dynatrace-gcp-function
3da9abf969aebe63cecbc7817f033123637dd12e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Dynatrace LLC # # 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...
36.027273
117
0.642947
69883ae1a0de22f61630de150c92fd9e198b58fe
3,680
py
Python
os_collect_config/local.py
mail2nsrajesh/os-collect-config
5be5fe782f4e5802c4250f4a1f7fe3b6e4f9221a
[ "Apache-2.0" ]
null
null
null
os_collect_config/local.py
mail2nsrajesh/os-collect-config
5be5fe782f4e5802c4250f4a1f7fe3b6e4f9221a
[ "Apache-2.0" ]
null
null
null
os_collect_config/local.py
mail2nsrajesh/os-collect-config
5be5fe782f4e5802c4250f4a1f7fe3b6e4f9221a
[ "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...
35.728155
78
0.599457
746982639fe8d25471cb578846e2f0baff812ea0
2,142
py
Python
Data/initialize_database.py
GregHilston/Score-Board
c204412434cc395bafd5212fd454b903d93837ea
[ "MIT" ]
null
null
null
Data/initialize_database.py
GregHilston/Score-Board
c204412434cc395bafd5212fd454b903d93837ea
[ "MIT" ]
2
2017-03-13T18:58:21.000Z
2017-03-13T18:58:51.000Z
Data/initialize_database.py
GregHilston/Score-Board
c204412434cc395bafd5212fd454b903d93837ea
[ "MIT" ]
null
null
null
import sys, sqlite3, csv, logging class DatabaseInitializer(): def __init__(self, logger, sqlite): self._logger = logger self._sqlite = sqlite def start(self): """ Starts the initialize and populate process """ GAMES_TABLE_NAME = "games" PLAYERS_TABLE_...
35.114754
224
0.627918
4f43cd887abece6a371266464abcbf9c5ac44692
4,265
py
Python
benchmark/startQiskit_Class2672.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2672.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2672.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=40 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.959016
140
0.649238
04686b2c0fc14d29505f65e333fdeb486ec3fa9f
2,997
py
Python
test_piui.py
sanfilippomike/piui-master
5c5b6f4f63077f4e370ee05c66e7cf044d191420
[ "BSD-2-Clause", "Unlicense" ]
244
2015-01-03T00:40:29.000Z
2022-03-12T13:20:21.000Z
test_piui.py
bojiunchen/piui
2a2311255d11a109f2f21a8a8a21066d55fbf6f5
[ "BSD-2-Clause", "Unlicense" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
test_piui.py
bojiunchen/piui
2a2311255d11a109f2f21a8a8a21066d55fbf6f5
[ "BSD-2-Clause", "Unlicense" ]
80
2015-01-07T14:36:01.000Z
2021-01-04T17:51:48.000Z
import json import unittest import urllib2 from piui import PiUi class PiUiTestCase(unittest.TestCase): def setUp(self): self._ui = PiUi("Test", timeout=1) def tearDown(self): print "tearDown" self._ui.exit() def http_get(self, rel_url): handler = urllib2.urlopen('http:/...
35.678571
78
0.576243
aad9130ebc33059f974d2e537f4e7ea044b0adb2
521
py
Python
leads/migrations/0005_lead_organisation.py
tmbyers1102/int-djcrm
c820953e1693075a8ed302c4e67d73da7cc79bd0
[ "MIT" ]
250
2021-01-13T23:32:57.000Z
2022-03-28T03:01:45.000Z
leads/migrations/0005_lead_organisation.py
ashrafali46/getting-started-with-django
a58f624f813dd266796ee25bdd34298af3be6084
[ "MIT" ]
8
2021-03-17T09:24:08.000Z
2022-02-18T10:24:15.000Z
leads/migrations/0005_lead_organisation.py
ashrafali46/getting-started-with-django
a58f624f813dd266796ee25bdd34298af3be6084
[ "MIT" ]
228
2021-01-14T00:10:10.000Z
2022-03-28T11:05:28.000Z
# Generated by Django 3.1.4 on 2020-12-16 10:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('leads', '0004_auto_20201216_1046'), ] operations = [ migrations.AddField( model_name='lead', ...
24.809524
116
0.639155
76ede487401b1c8d59e9151128998462b8b6c5cd
4,654
py
Python
mistral_tempest_tests/tests/scenario/engine/actions/v2/test_openstack_actions.py
openstack/mistral-tempest-plugin
091926bbb405bf8d0249156f11f090dc455077dc
[ "Apache-2.0" ]
6
2018-06-27T11:19:36.000Z
2019-07-18T10:32:55.000Z
mistral_tempest_tests/tests/scenario/engine/actions/v2/test_openstack_actions.py
openstack/mistral-tempest-plugin
091926bbb405bf8d0249156f11f090dc455077dc
[ "Apache-2.0" ]
null
null
null
mistral_tempest_tests/tests/scenario/engine/actions/v2/test_openstack_actions.py
openstack/mistral-tempest-plugin
091926bbb405bf8d0249156f11f090dc455077dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 - Mirantis, 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 ag...
42.309091
77
0.686936
b2ad6a6175623c51cc32cbe34eba7a7eadbc1a13
3,413
py
Python
app/app/settings.py
andrewtdunn/recipe-app-api
f46775563b32399d792fb2f93801e9432ef0a71a
[ "MIT" ]
null
null
null
app/app/settings.py
andrewtdunn/recipe-app-api
f46775563b32399d792fb2f93801e9432ef0a71a
[ "MIT" ]
null
null
null
app/app/settings.py
andrewtdunn/recipe-app-api
f46775563b32399d792fb2f93801e9432ef0a71a
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.281481
91
0.685028
cf3f3da11754b5ccca4d0cf3f0030fb2860e0b16
1,200
py
Python
qiskit/circuit/library/template_circuits/toffoli/template_9c_4.py
TanveshT/qiskit-terra
dc3a2a667b8dc22512ca409ecae347d8dbdd944c
[ "Apache-2.0" ]
1
2021-07-11T18:17:38.000Z
2021-07-11T18:17:38.000Z
qiskit/circuit/library/template_circuits/toffoli/template_9c_4.py
TanveshT/qiskit-terra
dc3a2a667b8dc22512ca409ecae347d8dbdd944c
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/library/template_circuits/toffoli/template_9c_4.py
TanveshT/qiskit-terra
dc3a2a667b8dc22512ca409ecae347d8dbdd944c
[ "Apache-2.0" ]
1
2021-01-31T02:24:55.000Z
2021-01-31T02:24:55.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
27.906977
77
0.499167
2c1aa6f35d13f19d1f23bf743b3db9aa1b114a51
83,273
py
Python
bot.py
mii-10/program-team
e8ff65c31a309b2c2aa56ffb143a582a1fa22aff
[ "MIT" ]
12
2020-01-06T11:49:53.000Z
2021-07-22T14:59:00.000Z
bot.py
mii-10/program-team
e8ff65c31a309b2c2aa56ffb143a582a1fa22aff
[ "MIT" ]
30
2020-01-04T13:40:49.000Z
2022-01-17T11:49:52.000Z
bot.py
mii-10/program-team
e8ff65c31a309b2c2aa56ffb143a582a1fa22aff
[ "MIT" ]
31
2020-01-04T13:22:19.000Z
2021-02-06T09:07:01.000Z
# -*- coding: utf-8 -*- # from cogs import apple_invite from cogs import apple_foc import discord from discord.ext import commands, tasks import json import random import wikipedia import wikidata.client from PIL import Image, ImageDraw, ImageFont import time import asyncio import datetime import pickle import sys imp...
48.190394
6,936
0.605322
1e16ac60f63aceaa28d3c2050aca01732bb95f2e
40,867
py
Python
Lib/asyncio/selector_events.py
Victor-Savu/cpython-old
87060fc4b043dd0da0a29a0ffb8eb92d8cad8dd3
[ "PSF-2.0" ]
null
null
null
Lib/asyncio/selector_events.py
Victor-Savu/cpython-old
87060fc4b043dd0da0a29a0ffb8eb92d8cad8dd3
[ "PSF-2.0" ]
null
null
null
Lib/asyncio/selector_events.py
Victor-Savu/cpython-old
87060fc4b043dd0da0a29a0ffb8eb92d8cad8dd3
[ "PSF-2.0" ]
null
null
null
"""Event loop using a selector and related classes. A selector is a "notify-when-ready" multiplexer. For a subclass which also includes support for signal handling, see the unix_events sub-module. """ __all__ = ['BaseSelectorEventLoop'] import collections import errno import functools import socket import warnings ...
36.750899
89
0.562606
d294584157e518e479762d8cb465eaf03c3797cf
3,297
py
Python
src/loss/loss.py
praeclarumjj3/AOT-GAN-Experiments
1e66eaa6d393441f08768f4b1962bfc86da0e900
[ "MIT" ]
3
2021-05-15T17:32:06.000Z
2022-02-07T11:25:20.000Z
src/loss/loss.py
praeclarumjj3/AOT-GAN-Experiments
1e66eaa6d393441f08768f4b1962bfc86da0e900
[ "MIT" ]
null
null
null
src/loss/loss.py
praeclarumjj3/AOT-GAN-Experiments
1e66eaa6d393441f08768f4b1962bfc86da0e900
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .common import VGG19, gaussian_blur class L1(): def __init__(self,): self.calc = torch.nn.L1Loss() def __call__(self, x, y): return self.calc(x, y) class Perceptual(nn.Module): def __init__(s...
32.643564
108
0.556263
4d0aac44eebba9779e7819c50f80363f0c70344c
22,629
py
Python
src/ui/ui_main_dlg.py
frosted97/dash-masternode-tool
d824740309ab878d745e41d39f274e952111542f
[ "MIT" ]
75
2017-03-20T06:33:14.000Z
2022-02-15T16:16:45.000Z
src/ui/ui_main_dlg.py
frosted97/dash-masternode-tool
d824740309ab878d745e41d39f274e952111542f
[ "MIT" ]
42
2017-10-25T06:34:54.000Z
2022-02-10T20:53:46.000Z
src/ui/ui_main_dlg.py
frosted97/dash-masternode-tool
d824740309ab878d745e41d39f274e952111542f
[ "MIT" ]
98
2017-03-20T05:27:36.000Z
2022-03-20T05:03:08.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file ui_main_dlg.ui # # Created by: PyQt5 UI code generator # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, Qt...
73.710098
160
0.77056
139b4b5fdc7e0afbb0fa928c4d1ac2e80aa22cb7
1,178
py
Python
accounts/views.py
nelsondude/tweetmymouth
b7614850189c21c18dc291b9167cc5afedacf386
[ "MIT" ]
null
null
null
accounts/views.py
nelsondude/tweetmymouth
b7614850189c21c18dc291b9167cc5afedacf386
[ "MIT" ]
null
null
null
accounts/views.py
nelsondude/tweetmymouth
b7614850189c21c18dc291b9167cc5afedacf386
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponseRedirect from django.views.generic import DetailView from django.views import View from django.contrib.auth import get_user_model from .models import UserProfile User = get_user_model() # Create your views here. cla...
38
90
0.74618
decf855b54451efba5f6a7868fbcf631789f3572
10,423
py
Python
benchmark/tensorflow/image/googlenet.py
shenchaohua/Paddle
9c5942db13308d53cc115708058c1e885f4b57a3
[ "Apache-2.0" ]
3
2018-04-16T23:35:32.000Z
2019-08-12T01:01:07.000Z
benchmark/tensorflow/image/googlenet.py
shenchaohua/Paddle
9c5942db13308d53cc115708058c1e885f4b57a3
[ "Apache-2.0" ]
9
2017-09-13T07:39:31.000Z
2017-10-18T05:58:23.000Z
benchmark/tensorflow/image/googlenet.py
shenchaohua/Paddle
9c5942db13308d53cc115708058c1e885f4b57a3
[ "Apache-2.0" ]
2
2020-11-04T08:07:46.000Z
2020-11-06T08:33:24.000Z
from six.moves import xrange from datetime import datetime import math import time import tensorflow.python.platform import tensorflow as tf FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_integer('batch_size', 128, """Batch size.""") tf.app.flags.DEFINE_integer('num_batches', 100, """Number of batches to run.""") tf...
33.407051
80
0.587739
fa5d4577cc51b3dc3070c2dbae01c14937217ce4
1,339
py
Python
Service_Components/wsgi.py
mydata-sdk/mydata-sdk-1.x
74064d7a42fc0435511eae6e77e49ddc7d9723f3
[ "MIT" ]
4
2018-04-21T00:46:40.000Z
2019-12-03T13:52:03.000Z
Service_Components/wsgi.py
markella-n-th/mydata-sdk
71aef60c091a0cef81d0f4a611afa795dff52189
[ "MIT" ]
2
2018-04-21T04:09:46.000Z
2018-04-30T21:54:09.000Z
Service_Components/wsgi.py
fititnt/mydata-sdk--hiit
19d7a2ddbc3b5a05665539fbcc7f461c13793e03
[ "MIT" ]
4
2018-04-21T01:12:12.000Z
2020-09-24T06:19:29.000Z
# -*- coding: utf-8 -*- """ wsgi ~~~~ overholt wsgi module """ from werkzeug.serving import run_simple from werkzeug.wsgi import DispatcherMiddleware import Service_Mgmnt import Service_Root import Authorization_Management import Sink import Source import logging logger = logging.getLogger("sequence") ...
24.796296
102
0.761016
840ab62ebed1e4c18af7941b8dd0aeb9232a5852
791
py
Python
105/test_slicing.py
theconsultant/bitesofpy
6b248d28f4b61e8c0963a81515f4a17ad89a182e
[ "MIT" ]
null
null
null
105/test_slicing.py
theconsultant/bitesofpy
6b248d28f4b61e8c0963a81515f4a17ad89a182e
[ "MIT" ]
null
null
null
105/test_slicing.py
theconsultant/bitesofpy
6b248d28f4b61e8c0963a81515f4a17ad89a182e
[ "MIT" ]
1
2019-09-03T19:53:22.000Z
2019-09-03T19:53:22.000Z
from slicing import slice_and_dice another_text = """ Take the block of text provided and strip() off the whitespace at the ends. Split the whole block up by newline (\n). if the first character is lowercase, split it into words and add the last word of that line to the results list. Strip the trailing dot (.) and ex...
35.954545
79
0.718078
3f80e9ee91952a3c9c14c20e632d0b4a5a12ac48
11,719
py
Python
wavenet_vocoder/student.py
dendisuhubdy/parallel_wavenet_vocoder
8f2bd7c0bd30cb90cc7ff8438ce78545c409227b
[ "MIT" ]
25
2018-09-10T08:01:09.000Z
2020-04-07T09:19:14.000Z
wavenet_vocoder/student.py
dendisuhubdy/parallel_wavenet_vocoder
8f2bd7c0bd30cb90cc7ff8438ce78545c409227b
[ "MIT" ]
1
2018-10-09T01:38:23.000Z
2018-10-09T03:46:05.000Z
wavenet_vocoder/student.py
dendisuhubdy/parallel_wavenet_vocoder
8f2bd7c0bd30cb90cc7ff8438ce78545c409227b
[ "MIT" ]
8
2018-09-21T02:31:28.000Z
2020-04-07T09:19:15.000Z
# coding: utf-8 from __future__ import with_statement, print_function, absolute_import import math import numpy as np import torch from torch import nn from torch.nn import functional as F from .modules import Embedding from .modules import Conv1d1x1, ResidualConv1dGLU, ConvTranspose2d from .mixture import sample_f...
40.410345
108
0.591177
48d09fd10e30b900f0fe100ac3e1ad26cb6021bb
2,771
py
Python
expt-mpii-ca2/make_completion_videos.py
qxcv/structuredinference
9eb6546db9ca2f9d02b8a8155c2d3fc4f0d27ecb
[ "MIT" ]
6
2017-09-13T10:49:13.000Z
2022-01-01T10:53:03.000Z
expt-mpii-ca2/make_completion_videos.py
qxcv/structuredinference
9eb6546db9ca2f9d02b8a8155c2d3fc4f0d27ecb
[ "MIT" ]
null
null
null
expt-mpii-ca2/make_completion_videos.py
qxcv/structuredinference
9eb6546db9ca2f9d02b8a8155c2d3fc4f0d27ecb
[ "MIT" ]
2
2017-07-31T04:12:30.000Z
2018-11-09T22:34:36.000Z
#!/usr/bin/env python3 """Turn completion files into actual SxS videos of the completion, the ground truth, etc.""" import argparse import json import os import h5py import numpy as np import matplotlib.pyplot as plt import addpaths # noqa from plot_2d_seqs import draw_poses from common_pp.completion_video_common...
33.792683
79
0.640202
7d99c5085274db94bbbd5b3d1b9c40f0dc041209
10,238
py
Python
examples/atari/train_ppo_ale.py
fratim/pfrl
ddcdfbebf7aa55753beb5195edf8d571be7b862c
[ "MIT" ]
824
2020-07-29T00:30:14.000Z
2022-03-29T13:12:34.000Z
examples/atari/train_ppo_ale.py
fratim/pfrl
ddcdfbebf7aa55753beb5195edf8d571be7b862c
[ "MIT" ]
124
2020-07-30T01:53:47.000Z
2022-03-15T07:05:38.000Z
examples/atari/train_ppo_ale.py
fratim/pfrl
ddcdfbebf7aa55753beb5195edf8d571be7b862c
[ "MIT" ]
122
2020-07-29T04:33:35.000Z
2022-03-13T13:29:41.000Z
"""An example of training PPO against OpenAI Gym Atari Envs. This script is an example of training a PPO agent on Atari envs. To train PPO for 10M timesteps on Breakout, run: python train_ppo_ale.py To train PPO using a recurrent model on a flickering Atari env, run: python train_ppo_ale.py --recurrent --fli...
30.561194
87
0.572377
71438cde4862f8cc74b536fee699723661daf881
517
py
Python
_ext/python/crawlab/cli/actions/config.py
crawlab-team/crawlab-python-sdk
35f83f8d76046d3ee2700d63e96624ed534c1ca5
[ "BSD-3-Clause" ]
null
null
null
_ext/python/crawlab/cli/actions/config.py
crawlab-team/crawlab-python-sdk
35f83f8d76046d3ee2700d63e96624ed534c1ca5
[ "BSD-3-Clause" ]
null
null
null
_ext/python/crawlab/cli/actions/config.py
crawlab-team/crawlab-python-sdk
35f83f8d76046d3ee2700d63e96624ed534c1ca5
[ "BSD-3-Clause" ]
null
null
null
from crawlab.config.config import config from crawlab.constants.upload import CLI_DEFAULT_CONFIG_KEY_PASSWORD def cli_config_func(args): if args.set is not None: k, v = args.set.split('=') config.set(k, v) config.save() return if args.unset is not None: k = args.unset ...
22.478261
68
0.597679
51af18018cd697ec832d8bc8d886dd3745edfb91
643
py
Python
python/twoSumLessThanK.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
python/twoSumLessThanK.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
python/twoSumLessThanK.py
l0latgithub/codediary
a0327d2ee1137a542886d0af85129692711cd68a
[ "MIT" ]
null
null
null
class Solution: def twoSumLessThanK(self, nums: List[int], k: int) -> int: """ Given an array nums of integers and integer k, return the maximum sum such that there exists i < j with nums[i] + nums[j] = sum and sum < k. If no i, j exist satisfying this equation, r...
29.227273
62
0.458787
b7c9fb718e0524ffdb53a5ea16276ac8e2237779
9,754
py
Python
foolbox/attacks/localsearch.py
anonymous-user-commits/foolbox1
0f7e3db7c095a1d3dfdcdf3b3e0745d9ebc047e5
[ "MIT" ]
1
2020-01-06T02:35:44.000Z
2020-01-06T02:35:44.000Z
foolbox/attacks/localsearch.py
adam-dziedzic/foolbox
0d8b5119f0afee9e2b42f563815340b206bbd14c
[ "MIT" ]
null
null
null
foolbox/attacks/localsearch.py
adam-dziedzic/foolbox
0d8b5119f0afee9e2b42f563815340b206bbd14c
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from .base import Attack from .base import call_decorator from ..utils import softmax from .. import nprng class SinglePixelAttack(Attack): """Perturbs just a single pixel and sets it to the min or max.""" @call_decorator def __call__(self, input_or_adv...
32.191419
77
0.538241
fe0b5f975378c327682c8085707aac3ad8caea25
2,198
py
Python
assignments/groupsize/confidence.py
LSaldyt/Modeling
f47481856bf1ef1227bb92cb86f6f0f639e9cd7c
[ "MIT" ]
null
null
null
assignments/groupsize/confidence.py
LSaldyt/Modeling
f47481856bf1ef1227bb92cb86f6f0f639e9cd7c
[ "MIT" ]
null
null
null
assignments/groupsize/confidence.py
LSaldyt/Modeling
f47481856bf1ef1227bb92cb86f6f0f639e9cd7c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from math import sqrt from generate import read_csv from statistics import mean def transpose(data): return list(map(list, zip(*data))) def rss(data): resid = lambda x : x - mean(data) return sum([resid(x) ** 2 for x in data]) def standard_dev(data): return sqrt(rss(data) / l...
30.109589
81
0.595996
72e0560dc3eae919f040cc6f832e79eb313cf72d
1,894
py
Python
pptx/enum/action.py
just4jc/python-pptx
ec433085d84d48b5539c379e52eb3c279ab2cbc0
[ "MIT" ]
169
2016-12-18T16:37:48.000Z
2022-03-08T11:37:49.000Z
lib-linux_x64/pptx/enum/action.py
Element84/lambda-text-extractor
6da52d077a2fc571e38bfe29c33ae68f6443cd5a
[ "Apache-2.0" ]
26
2017-06-08T01:45:36.000Z
2021-09-23T19:13:40.000Z
lib-linux_x64/pptx/enum/action.py
Element84/lambda-text-extractor
6da52d077a2fc571e38bfe29c33ae68f6443cd5a
[ "Apache-2.0" ]
42
2016-12-23T03:27:12.000Z
2021-10-01T13:46:21.000Z
# encoding: utf-8 """ Enumerations that describe click action settings """ from __future__ import absolute_import from .base import alias, Enumeration, EnumMember @alias('PP_ACTION') class PP_ACTION_TYPE(Enumeration): """ Specifies the type of a mouse action (click or hover action). Alias: ``PP_ACTION...
23.974684
75
0.530095
980785af6065f49e9be7ece50cb1370311972dba
507
py
Python
Raka/BruteFmaster/bruteforce.py
RakaKuswanto/UICTC-CTF
993943beea876fcac78d71057034f88059a3b010
[ "MIT" ]
null
null
null
Raka/BruteFmaster/bruteforce.py
RakaKuswanto/UICTC-CTF
993943beea876fcac78d71057034f88059a3b010
[ "MIT" ]
null
null
null
Raka/BruteFmaster/bruteforce.py
RakaKuswanto/UICTC-CTF
993943beea876fcac78d71057034f88059a3b010
[ "MIT" ]
1
2020-10-02T05:01:08.000Z
2020-10-02T05:01:08.000Z
#2020 decenzo-lab Raka Kuswanto import requests URL = "http://uictc.herokuapp.com/BruteFmaster/" # membaca file password file1 = open('password.txt', 'r') Lines = file1.readlines() # Strips the newline character for line in Lines: print(line.strip()) password= line.strip() PARAMS= {'password':passw...
28.166667
80
0.646943
b01732cc01e9ab1ecdab7325e8f72e1ab976e971
18,124
py
Python
discord/ui/view.py
alexyy802/discord.io
99d6ec71aeb121f6887ff266d36d9d1851abe4db
[ "MIT" ]
null
null
null
discord/ui/view.py
alexyy802/discord.io
99d6ec71aeb121f6887ff266d36d9d1851abe4db
[ "MIT" ]
null
null
null
discord/ui/view.py
alexyy802/discord.io
99d6ec71aeb121f6887ff266d36d9d1851abe4db
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2021-present VincentRPS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
34.196226
112
0.621552
2ca86fbabf035f09c8a323ccad6f9fd2e4c7ce4b
2,870
py
Python
integrationtest/vm/installation/upgrade/test_zs_upgd_1.4_latest_on_cos7.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
integrationtest/vm/installation/upgrade/test_zs_upgd_1.4_latest_on_cos7.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/installation/upgrade/test_zs_upgd_1.4_latest_on_cos7.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
''' @author: MengLai ''' import os import tempfile import uuid import time import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import zstacklib.utils.ssh as ssh test_stub = test_lib.lib_get_test_stub() test_obj_di...
39.315068
114
0.718815
c0d3a9d8ae04760fa6d293936db2ee8e695d60db
1,536
py
Python
scd/spaceless_except_pre.py
felipetomm/POX-Django
6060a9e2a999dc56b63826d0ec3498b11b03adce
[ "Apache-2.0" ]
1
2019-10-20T00:05:34.000Z
2019-10-20T00:05:34.000Z
scd/spaceless_except_pre.py
felipetomm/POX-Django
6060a9e2a999dc56b63826d0ec3498b11b03adce
[ "Apache-2.0" ]
null
null
null
scd/spaceless_except_pre.py
felipetomm/POX-Django
6060a9e2a999dc56b63826d0ec3498b11b03adce
[ "Apache-2.0" ]
null
null
null
"""Copyright (c) 2013-2014 Stephan Groß, under MIT license.""" from __future__ import unicode_literals import re from django import template from django.template import Node from django.utils import six from django.utils.encoding import force_text from django.utils.functional import allow_lazy register = template.L...
35.72093
141
0.721354
58792ff3ae89bd6e75c67450344d5c80bbdf14e4
1,120
py
Python
spacy/tests/vocab/test_add_vectors.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
5
2019-04-19T06:27:29.000Z
2019-12-02T13:30:47.000Z
spacy/tests/vocab/test_add_vectors.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
null
null
null
spacy/tests/vocab/test_add_vectors.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
2
2019-04-19T06:27:18.000Z
2019-10-04T12:39:15.000Z
# coding: utf-8 from __future__ import unicode_literals import numpy from numpy.testing import assert_allclose from ...vocab import Vocab from ..._ml import cosine def test_vocab_add_vector(): vocab = Vocab() data = numpy.ndarray((5,3), dtype='f') data[0] = 1. data[1] = 2. vocab.set...
27.317073
69
0.592857
22e312af5ee0b2e45ec819416c4f315ce597273f
815
py
Python
toontown/compiler/clashdna/dna/components/DNAProp.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
25
2020-11-23T13:55:42.000Z
2022-03-26T06:17:18.000Z
toontown/compiler/clashdna/dna/components/DNAProp.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
15
2020-11-25T14:47:24.000Z
2021-04-21T23:40:57.000Z
toontown/compiler/clashdna/dna/components/DNAProp.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
11
2020-11-25T13:57:02.000Z
2022-02-23T14:25:15.000Z
from toontown.compiler.clashdna.dna.components.DNANode import DNANode from toontown.compiler.clashdna.dna.base.DNAPacker import * class DNAProp(DNANode): COMPONENT_CODE = 4 def __init__(self, name): DNANode.__init__(self, name) self.code = '' self.color = (1, 1, 1, 1) def setCode...
30.185185
73
0.64908
c14777d1dfb0de3a8d8ddef9e55f91d8254df3fd
8,377
py
Python
applications/sentiment_analysis/predict.py
dancingalone/PaddleNLP
a93a047b0274d8bc71e18040eb69e1fb91e6733f
[ "Apache-2.0" ]
1
2021-12-27T06:46:00.000Z
2021-12-27T06:46:00.000Z
applications/sentiment_analysis/predict.py
TmengT/PaddleNLP
806ff6f9984afa56012270b666a7954ea31be952
[ "Apache-2.0" ]
null
null
null
applications/sentiment_analysis/predict.py
TmengT/PaddleNLP
806ff6f9984afa56012270b666a7954ea31be952
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.468599
136
0.698699
c8c5814608e4b57fda44583e712027bad2903366
5,932
py
Python
hpOneView/resources/fc_sans/san_managers.py
PragadeeswaranS/oneview-python
3acc113b8dd30029beb7c228c3bc2bbe67d3485b
[ "Apache-2.0" ]
null
null
null
hpOneView/resources/fc_sans/san_managers.py
PragadeeswaranS/oneview-python
3acc113b8dd30029beb7c228c3bc2bbe67d3485b
[ "Apache-2.0" ]
null
null
null
hpOneView/resources/fc_sans/san_managers.py
PragadeeswaranS/oneview-python
3acc113b8dd30029beb7c228c3bc2bbe67d3485b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ### # (C) Copyright [2019] Hewlett Packard Enterprise Development LP # # 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 #...
32.593407
118
0.627613
d9db3f4df3295a1615b63080e920ff3c44fd9e0d
1,178
py
Python
UCourse/courses/migrations/0019_auto_20200607_2144.py
Natsu1270/UCourse
e8c814d91e54f5f51e4a0fa2df177ebb59544dc2
[ "MIT" ]
1
2020-08-31T22:40:27.000Z
2020-08-31T22:40:27.000Z
UCourse/courses/migrations/0019_auto_20200607_2144.py
Natsu1270/UCourse
e8c814d91e54f5f51e4a0fa2df177ebb59544dc2
[ "MIT" ]
13
2020-08-05T16:17:09.000Z
2022-03-12T00:18:42.000Z
UCourse/courses/migrations/0019_auto_20200607_2144.py
Natsu1270/UCourse
e8c814d91e54f5f51e4a0fa2df177ebb59544dc2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-06-07 14:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
36.8125
131
0.65365
255c1d1b31382c01e6d6ca5eb40fe113ee8e9a98
52,483
py
Python
run_classifier.py
ICLR2020Sesame/SesameBert
98e4dbfa50408f0c04bd098831949af7542b70f9
[ "Apache-2.0" ]
4
2020-07-16T23:48:38.000Z
2021-01-06T14:34:38.000Z
run_classifier.py
ICLR2020Sesame/SesameBert
98e4dbfa50408f0c04bd098831949af7542b70f9
[ "Apache-2.0" ]
null
null
null
run_classifier.py
ICLR2020Sesame/SesameBert
98e4dbfa50408f0c04bd098831949af7542b70f9
[ "Apache-2.0" ]
2
2019-10-24T08:49:49.000Z
2020-03-27T10:38:43.000Z
# coding=utf-8 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
36.471855
110
0.649544
711133c19c1ba8621676589e2a9434ab57a648ef
6,141
py
Python
fem/gui/vtk_widget/groups_toolbar/_groups_ui.py
mjredmond/FEMApp
dd8cc53acf80d0a1bb83ce9c89bcfd51e85c6be8
[ "MIT" ]
1
2019-08-03T21:40:26.000Z
2019-08-03T21:40:26.000Z
fem/gui/vtk_widget/groups_toolbar/_groups_ui.py
mjredmond/FEMApp
dd8cc53acf80d0a1bb83ce9c89bcfd51e85c6be8
[ "MIT" ]
null
null
null
fem/gui/vtk_widget/groups_toolbar/_groups_ui.py
mjredmond/FEMApp
dd8cc53acf80d0a1bb83ce9c89bcfd51e85c6be8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'P:\redmond\mrFleet\gui\vtk_widget\groups\_groups_ui.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from qtpy import QtCore, QtGui, QtWidgets class Ui_DockWidget(object): def set...
55.827273
115
0.722684
63ac50c5ea9aaa9e69275f1c34170cb0f5a9ad9e
2,759
py
Python
src/parser.py
lime-lang/lime
18afcba5bd8aec612670b8ad5a8a995bdfdf3978
[ "0BSD" ]
3
2020-04-15T05:51:24.000Z
2020-04-15T19:22:50.000Z
src/parser.py
lime-lang/lime
18afcba5bd8aec612670b8ad5a8a995bdfdf3978
[ "0BSD" ]
null
null
null
src/parser.py
lime-lang/lime
18afcba5bd8aec612670b8ad5a8a995bdfdf3978
[ "0BSD" ]
null
null
null
from error import RuntimeError import fractions class AST: pass class BinaryOperation(AST): def __init__(self, left, operation, right): self.left = left self.token = operation self.operation = operation self.right = right class Equality(AST): def __init__(self, left, op...
21.896825
63
0.543675
977557b8bbec7c7e119a349c5b76aea2b828bc2a
492
py
Python
editdns/urls.py
jrlevine/editdns
58a66b8e90b1365593e3a91e59e5a556bff55288
[ "Unlicense" ]
null
null
null
editdns/urls.py
jrlevine/editdns
58a66b8e90b1365593e3a91e59e5a556bff55288
[ "Unlicense" ]
null
null
null
editdns/urls.py
jrlevine/editdns
58a66b8e90b1365593e3a91e59e5a556bff55288
[ "Unlicense" ]
null
null
null
"""editdns URL Configuration """ from django.conf.urls import url, include from django.contrib import admin from editapp.views import indexview urlpatterns = [ url(r'^admin/', admin.site.urls), url('^', include('django.contrib.auth.urls')), # various login and logout URLs url(r'^edit/', include('editapp.u...
32.8
83
0.648374
cb9a9f938d04eef36e03407a81078a1c33754d05
1,025
py
Python
flask01/app.py
guoziyuan/lflask
54f7a084b933a9d948086e7e2ec00081fb52e5f2
[ "Apache-2.0" ]
null
null
null
flask01/app.py
guoziyuan/lflask
54f7a084b933a9d948086e7e2ec00081fb52e5f2
[ "Apache-2.0" ]
null
null
null
flask01/app.py
guoziyuan/lflask
54f7a084b933a9d948086e7e2ec00081fb52e5f2
[ "Apache-2.0" ]
null
null
null
from flask import Flask from markupsafe import escape from flask import url_for from flask import request app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' # 默认只能接收get请求,也可以通过route装饰器设置请求类型 @app.route('/method', methods=['GET', 'POST']) def method(): if request.method == 'GET':...
17.083333
46
0.665366
6babd5963cc17fbc010a32c8e66dbdf3cfb32903
29,316
py
Python
synapse/state/__init__.py
ankur12-1610/synapse
e2e1d90a5e4030616a3de242cde26c0cfff4a6b5
[ "Apache-2.0" ]
null
null
null
synapse/state/__init__.py
ankur12-1610/synapse
e2e1d90a5e4030616a3de242cde26c0cfff4a6b5
[ "Apache-2.0" ]
2
2022-03-01T08:22:45.000Z
2022-03-11T08:13:55.000Z
synapse/state/__init__.py
ankur12-1610/synapse
e2e1d90a5e4030616a3de242cde26c0cfff4a6b5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2018 New Vector Ltd # # 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 ...
35.620899
93
0.633204
653fc8606786b6b093e9cf2d436e1a0a2eb3417f
725
py
Python
docs/source/conf.py
rlckd159/deep-graph-matching-consensus
1656cdae27c705a0aa6d2912a24e566b8b86e1b0
[ "MIT" ]
194
2020-01-17T08:59:09.000Z
2022-03-29T10:16:30.000Z
docs/source/conf.py
rlckd159/deep-graph-matching-consensus
1656cdae27c705a0aa6d2912a24e566b8b86e1b0
[ "MIT" ]
17
2020-01-31T10:58:06.000Z
2021-10-05T14:48:49.000Z
docs/source/conf.py
rlckd159/deep-graph-matching-consensus
1656cdae27c705a0aa6d2912a24e566b8b86e1b0
[ "MIT" ]
38
2020-01-19T01:23:24.000Z
2022-03-23T21:56:24.000Z
import datetime import sphinx_rtd_theme import doctest import dgmc extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.mathjax', 'sphinx.ext.napoleon', 'sphinx.ext.viewcode', 'sphinx.ext.githubpages', ] source_suffix = '.rst' master_doc = 'index...
23.387097
68
0.732414
bebe4fe867eb05f0ddfe4190db807c3792d85759
1,047
py
Python
Profilecode.py
aditya67-gonella/KarthikMothiki
18269cd8de5522e7bcb38807ba4a6afb6d3f4202
[ "MIT" ]
null
null
null
Profilecode.py
aditya67-gonella/KarthikMothiki
18269cd8de5522e7bcb38807ba4a6afb6d3f4202
[ "MIT" ]
null
null
null
Profilecode.py
aditya67-gonella/KarthikMothiki
18269cd8de5522e7bcb38807ba4a6afb6d3f4202
[ "MIT" ]
null
null
null
# Profile Code dev_name = "Gonella Venkata Rama Aditya Ganesh" def developer_details(): print("Developer Name : ", dev_name) def status(): learning = ["Python", "Java", "Iot"] Interests = ["Robotics", "Artificial Intelligence", "ROS", "IoT"] print("Learning = ", learning) print("Intere...
29.083333
114
0.592168
739df75dd8ed287fc33c34f1b2e592e200395329
7,659
py
Python
contrib/devtools/update-translations.py
goodthebest/saros
8e1dd0142c8d26db2c614d2066fcf9a485e5899b
[ "MIT" ]
6
2018-01-15T00:25:35.000Z
2020-11-17T17:33:05.000Z
contrib/devtools/update-translations.py
goodthebest/saros
8e1dd0142c8d26db2c614d2066fcf9a485e5899b
[ "MIT" ]
1
2018-02-08T15:06:02.000Z
2018-06-28T04:14:56.000Z
contrib/devtools/update-translations.py
goodthebest/saros
8e1dd0142c8d26db2c614d2066fcf9a485e5899b
[ "MIT" ]
21
2018-01-09T15:13:52.000Z
2021-06-15T19:56:13.000Z
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the following...
37.544118
124
0.629325