hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
df5ebaf76f65738ac6d2b39e6f52ae2788c66c69
725
py
Python
mapper.py
luogantt/pyspark-examples
78ab0205a4d29e4ada2396c62a7bc10f008faa22
[ "MIT" ]
17
2017-07-11T07:34:31.000Z
2021-09-17T11:07:06.000Z
mapper.py
kourouklides/pyspark
726c86d2cd4107336885f3da47cadab7aded228c
[ "MIT" ]
null
null
null
mapper.py
kourouklides/pyspark
726c86d2cd4107336885f3da47cadab7aded228c
[ "MIT" ]
7
2017-08-23T20:30:27.000Z
2018-08-08T21:52:57.000Z
''' >>> lines.collect() [u'ATATCCCCGGGAT', u'ATCGATCGATATG'] >>> rdd.collect() [(u'A', 3), (u'C', 4), (u'T', 3), (u'G', 3), (u'A', 4), (u'C', 2), (u'T', 4), (u'G', 3)] >>> cnt.collect() [(u'A', 7), (u'C', 6), (u'T', 7), (u'G', 6)] ''' def mapper(seq): freq = dict() for x in list(seq): if x in f...
21.323529
88
0.481379
f7a1c3620c27b920eda63da7eae5ab54d8ee6b01
6,203
py
Python
src/sage/categories/all.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/categories/all.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/categories/all.py
sheerluck/sage
b5e572b7d231f70c139d9978d68add80c4ef353d
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
r""" Sage categories quickref - ``sage.categories.primer?`` a primer on Elements, Parents, and Categories - ``sage.categories.tutorial?`` a tutorial on Elements, Parents, and Categories - ``Category?`` technical background on categories - ``Set...
35.855491
98
0.800419
80fae40d77ab6c06597a09eff508d53c8f591128
8,430
py
Python
tests/python/test_basic_models.py
cnheider/xgboost
e7fbc8591fa7277ee4c474b7371c48c11b34cbde
[ "Apache-2.0" ]
1
2019-11-12T13:12:07.000Z
2019-11-12T13:12:07.000Z
tests/python/test_basic_models.py
cnheider/xgboost
e7fbc8591fa7277ee4c474b7371c48c11b34cbde
[ "Apache-2.0" ]
null
null
null
tests/python/test_basic_models.py
cnheider/xgboost
e7fbc8591fa7277ee4c474b7371c48c11b34cbde
[ "Apache-2.0" ]
null
null
null
import numpy as np import xgboost as xgb import unittest dpath = 'demo/data/' dtrain = xgb.DMatrix(dpath + 'agaricus.txt.train') dtest = xgb.DMatrix(dpath + 'agaricus.txt.test') rng = np.random.RandomState(1994) class TestModels(unittest.TestCase): def test_glm(self): param = {'silent': 1, 'objective': ...
42.15
107
0.584935
30fab4ef92c96256dfef6b01582d8822fa7a1eda
163
py
Python
x86cpu/__init__.py
haiwei-li/x86cpu
3b27596f67acaa6b2498bfb63efadb6bdcc4d46f
[ "BSD-2-Clause" ]
6
2018-09-27T06:15:42.000Z
2021-09-15T18:20:44.000Z
x86cpu/__init__.py
haiwei-li/x86cpu
3b27596f67acaa6b2498bfb63efadb6bdcc4d46f
[ "BSD-2-Clause" ]
1
2018-09-27T06:17:18.000Z
2018-10-01T07:52:10.000Z
x86cpu/__init__.py
haiwei-li/x86cpu
3b27596f67acaa6b2498bfb63efadb6bdcc4d46f
[ "BSD-2-Clause" ]
4
2016-06-08T11:32:05.000Z
2021-01-19T19:53:53.000Z
""" x86cpu namespace """ from .cpuinfo import info, cpuid, has_cpuid from ._version import get_versions __version__ = get_versions()['version'] del get_versions
18.111111
43
0.766871
09c0f003888f807b2299ecb464d63f14479cb768
158,783
py
Python
xarray/xarray/tests/test_dataarray.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
xarray/xarray/tests/test_dataarray.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
xarray/xarray/tests/test_dataarray.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
import pickle import warnings from collections import OrderedDict from copy import deepcopy from textwrap import dedent import numpy as np import pandas as pd import pytest import xarray as xr from xarray import ( DataArray, Dataset, IndexVariable, Variable, align, broadcast) from xarray.coding.times import CFDat...
40.557599
79
0.536065
8fbeef75345602fbd1a0cd7a87376da3cbac4727
5,239
py
Python
tools/scons/scons-local-3.0.5/SCons/Node/Alias.py
arcilat-adsk/arnold-usd
34f1b091221f81d027a0c9fceec10f3cfa3ba141
[ "Apache-2.0" ]
2
2020-12-01T03:34:51.000Z
2021-03-06T01:49:44.000Z
tools/scons/scons-local-3.0.5/SCons/Node/Alias.py
arcilat-adsk/arnold-usd
34f1b091221f81d027a0c9fceec10f3cfa3ba141
[ "Apache-2.0" ]
null
null
null
tools/scons/scons-local-3.0.5/SCons/Node/Alias.py
arcilat-adsk/arnold-usd
34f1b091221f81d027a0c9fceec10f3cfa3ba141
[ "Apache-2.0" ]
null
null
null
"""scons.Node.Alias Alias nodes. This creates a hash of global Aliases (dummy targets). """ # # Copyright (c) 2001 - 2019 The SCons Foundation # # 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 So...
28.785714
116
0.640389
ed015d295ebee139a3c1eae173ac21d7e35f2b6d
2,819
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_st7735r.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_st7735r.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_st7735r.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Scott Shawcroft for Adafruit Industries # SPDX-FileCopyrightText: 2019 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_st7735r` ==================================================== Displayio driver for ST7735R based displays. * Author(s):...
34.378049
97
0.659454
c69ede7c533a1fcf9d1f7aa68a98bfc39e4ffdaa
1,634
py
Python
early-warning-system/server.py
lieet/Early-Warning-System
6f3283908db9bb9cc71bc7f8e95ed70a896cbe64
[ "MIT" ]
null
null
null
early-warning-system/server.py
lieet/Early-Warning-System
6f3283908db9bb9cc71bc7f8e95ed70a896cbe64
[ "MIT" ]
null
null
null
early-warning-system/server.py
lieet/Early-Warning-System
6f3283908db9bb9cc71bc7f8e95ed70a896cbe64
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_bootstrap import Bootstrap from requests import get from json import loads from joblib import load import os API_SERVER = os.environ.get('API_SERVER') GET_USER = API_SERVER + '/user' GET_CLASS = API_SERVER + '/class' GET_GRADES = API_SERVER + '/grade' GET_...
29.178571
112
0.691554
67d6d68f6e9d6f0ac57b2677d8ccdd9e50476621
3,425
py
Python
bot/cogs/reposts.py
Derevin/Standby-bot
c109c630923cce4ef534cfd413323845d0ec8c55
[ "MIT" ]
1
2021-06-26T15:04:06.000Z
2021-06-26T15:04:06.000Z
bot/cogs/reposts.py
Derevin/Standby-bot
c109c630923cce4ef534cfd413323845d0ec8c55
[ "MIT" ]
null
null
null
bot/cogs/reposts.py
Derevin/Standby-bot
c109c630923cce4ef534cfd413323845d0ec8c55
[ "MIT" ]
null
null
null
from discord.ext import commands, tasks import discord import datetime from settings import * from utils.util_functions import * import json from db.db_func import ensure_guild_existence, ensure_usr_existence import sys import traceback class Reposts(commands.Cog): def __init__(self, bot): self.bot = bot ...
32.311321
104
0.556204
42b0fc96b00c008bf076c2101eb587f648a79d24
1,138
py
Python
03_Intercambio.py
vazeri/Agente-Inteligente
b0b563a52ad8d83599034112daf82f9349d78960
[ "MIT" ]
null
null
null
03_Intercambio.py
vazeri/Agente-Inteligente
b0b563a52ad8d83599034112daf82f9349d78960
[ "MIT" ]
null
null
null
03_Intercambio.py
vazeri/Agente-Inteligente
b0b563a52ad8d83599034112daf82f9349d78960
[ "MIT" ]
null
null
null
#Vazquez Gonzalez Erick print(" ____ _________ _ _ ____ ") print(" / __// __|\ \| \ / || __\ ") print(" / /__| |_ | |\/| \/ || |__ ") print(" / ___/\_ \ | | | || __\ ") print(" / /__ __/ | | |__| |\/| || |____ ") print("/____/ /____/ /____/|_/ |_||______\ ") print("----------...
29.179487
68
0.472759
a36f694e1a9ad8aabf3ba49cd2e566ad235cebdd
7,336
py
Python
udify/dataset_readers/universal_dependencies.py
annaproxy/udify
acdacd30c0a9cf7e3f2ba9982d6abbb42aa65af8
[ "MIT" ]
null
null
null
udify/dataset_readers/universal_dependencies.py
annaproxy/udify
acdacd30c0a9cf7e3f2ba9982d6abbb42aa65af8
[ "MIT" ]
null
null
null
udify/dataset_readers/universal_dependencies.py
annaproxy/udify
acdacd30c0a9cf7e3f2ba9982d6abbb42aa65af8
[ "MIT" ]
null
null
null
""" A Dataset Reader for Universal Dependencies, with support for multiword tokens and special handling for NULL "_" tokens """ from typing import Dict, Tuple, List, Any, Callable from overrides import overrides from udify.dataset_readers.parser import parse_line, DEFAULT_FIELDS from allennlp.common.file_utils impor...
45.006135
119
0.584787
e494b6d6eec680b67e179fe4f36af526268785e6
4,495
py
Python
infoblox_netmri/api/remote/models/if_arp_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/if_arp_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/if_arp_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class IfArpRemote(RemoteModel): """ ARP table entries on a device, per interface. | ``DataSourceID:`` The internal NetMRI identifier for the collector NetMRI that collected this data record. | ...
30.167785
127
0.585317
4af7c1152ef33b24b640dba87adbc1ee933e1f0a
170
py
Python
oo/pessoa.py
pauloaoki/pythonbirds
1cb3f4362b2f0d756b8d1d631bb515a674470a40
[ "MIT" ]
null
null
null
oo/pessoa.py
pauloaoki/pythonbirds
1cb3f4362b2f0d756b8d1d631bb515a674470a40
[ "MIT" ]
null
null
null
oo/pessoa.py
pauloaoki/pythonbirds
1cb3f4362b2f0d756b8d1d631bb515a674470a40
[ "MIT" ]
null
null
null
class Pessoa(): def cumprimentar(self): return "Olá!" if __name__ == '__main__': p=Pessoa() print(Pessoa.cumprimentar(p)) print(p.cumprimentar())
21.25
33
0.623529
b8707c958494dcf5d0c64e5f4d37ee3a13391eb6
13,272
py
Python
log_mito_act/model_499.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_499.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_499.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C3pro', 'X...
79.473054
614
0.80975
9ffc00ab7f7ea424c625552cf17d9d35581146e7
6,435
py
Python
meraki/__init__.py
ddexterpark/dashboard-api-python
a086e4447ba906c033b99d7e7c00107381f89cac
[ "MIT" ]
null
null
null
meraki/__init__.py
ddexterpark/dashboard-api-python
a086e4447ba906c033b99d7e7c00107381f89cac
[ "MIT" ]
null
null
null
meraki/__init__.py
ddexterpark/dashboard-api-python
a086e4447ba906c033b99d7e7c00107381f89cac
[ "MIT" ]
null
null
null
from datetime import datetime import logging import os from .rest_session import * from .api.organizations import Organizations from .api.networks import Networks from .api.devices import Devices from .api.appliance import Appliance from .api.camera import Camera from .api.cellularGateway import CellularGateway from ....
49.5
134
0.698057
4f13b409fe64795d166ac64688a37b98a45a5fda
7,385
py
Python
statsmodels/stats/_knockoff.py
nikhase/statsmodels
e1822d4513f442002816bb898ca5794785f35c32
[ "BSD-3-Clause" ]
15
2015-03-03T09:47:42.000Z
2022-01-05T18:28:31.000Z
statsmodels/stats/_knockoff.py
nikhase/statsmodels
e1822d4513f442002816bb898ca5794785f35c32
[ "BSD-3-Clause" ]
7
2015-11-20T08:33:04.000Z
2020-07-24T19:34:39.000Z
statsmodels/stats/_knockoff.py
nikhase/statsmodels
e1822d4513f442002816bb898ca5794785f35c32
[ "BSD-3-Clause" ]
14
2015-01-06T22:08:34.000Z
2021-01-01T16:33:23.000Z
""" The RegressionFDR class implements the 'Knockoff' approach for controlling false discovery rates (FDR) in regression analysis. The knockoff approach does not require standard errors. Thus one application is to provide inference for parameter estimates that are not smooth functions of the data. For example, the k...
28.735409
79
0.638456
48519995a46c9c2204fff969300461576589f824
2,743
py
Python
home_app/forms.py
rhobinjay/home
166ea98b6f4f520ccee8f976f5d851d395d40c02
[ "MIT" ]
null
null
null
home_app/forms.py
rhobinjay/home
166ea98b6f4f520ccee8f976f5d851d395d40c02
[ "MIT" ]
null
null
null
home_app/forms.py
rhobinjay/home
166ea98b6f4f520ccee8f976f5d851d395d40c02
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from flask_login import current_user from wtforms import StringField, PasswordField, SubmitField, BooleanField, TextAreaField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from home_app.models import...
40.338235
88
0.6358
75f433d4925452cfb4fb3b89e5d07194e31ef53d
1,853
py
Python
watchlist.py
legoktm/pywikipedia-scripts
a7cac4a13225c30b2c58b6ab65da03ee646a0e50
[ "MIT" ]
7
2015-01-27T17:29:56.000Z
2022-02-14T17:26:37.000Z
watchlist.py
legoktm/pywikipedia-scripts
a7cac4a13225c30b2c58b6ab65da03ee646a0e50
[ "MIT" ]
1
2015-09-10T17:39:43.000Z
2015-09-10T17:39:43.000Z
watchlist.py
legoktm/pywikipedia-scripts
a7cac4a13225c30b2c58b6ab65da03ee646a0e50
[ "MIT" ]
5
2015-06-07T08:01:35.000Z
2020-05-20T19:38:26.000Z
#!/usr/bin/python """ Copyright (C) 2012 Legoktm 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, merge, publish, ...
33.089286
76
0.761468
885a39236198336b1a5645d58cc3675c4eb314c5
4,777
py
Python
staffing/hooks.py
exvas/staffing
98812d5bb326d5b01274c6edf9e10eff142410c2
[ "MIT" ]
null
null
null
staffing/hooks.py
exvas/staffing
98812d5bb326d5b01274c6edf9e10eff142410c2
[ "MIT" ]
null
null
null
staffing/hooks.py
exvas/staffing
98812d5bb326d5b01274c6edf9e10eff142410c2
[ "MIT" ]
null
null
null
from . import __version__ as app_version app_name = "staffing" app_title = "Staffing" app_publisher = "jan" app_description = "Staffing" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "janlloydangeles@gmail.com" app_license = "MIT" # Includes in <head> # ------------------ # include js, c...
22.218605
78
0.625288
b99336e992337cb4547127dd73c209551e393292
594
py
Python
CanvasWrapper/migrations/0009_auto_20190805_1424.py
ByrdOfAFeather/NARC
9600a1cf7e22b139d09e0e26316d6fd50a238996
[ "MIT" ]
5
2018-10-30T02:31:08.000Z
2019-06-11T03:06:35.000Z
CanvasWrapper/migrations/0009_auto_20190805_1424.py
ByrdOfAFeather/NARC
9600a1cf7e22b139d09e0e26316d6fd50a238996
[ "MIT" ]
11
2019-06-11T03:40:45.000Z
2022-02-10T07:56:54.000Z
CanvasWrapper/migrations/0009_auto_20190805_1424.py
ByrdOfAFeather/NARC
9600a1cf7e22b139d09e0e26316d6fd50a238996
[ "MIT" ]
2
2018-08-24T02:41:21.000Z
2020-07-02T21:30:43.000Z
# Generated by Django 2.2.2 on 2019-08-05 18:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('CanvasWrapper', '0008_report_usertoreport'), ] operations = [ migrations.RemoveField( model_name='usertoreport', name='repor...
21.214286
54
0.548822
47058c5bb308fddb64784481bc5779cfdb55fd4f
1,271
py
Python
avx2-hps2048677/asmgen/poly_mod_3_Phi_n.py
OussamaDanba/ntru
da413076b3b0fb377c3174c331462c3293193580
[ "CC0-1.0" ]
null
null
null
avx2-hps2048677/asmgen/poly_mod_3_Phi_n.py
OussamaDanba/ntru
da413076b3b0fb377c3174c331462c3293193580
[ "CC0-1.0" ]
null
null
null
avx2-hps2048677/asmgen/poly_mod_3_Phi_n.py
OussamaDanba/ntru
da413076b3b0fb377c3174c331462c3293193580
[ "CC0-1.0" ]
null
null
null
p = print from params import * from mod3 import mod3, mod3_masks from math import ceil if __name__ == '__main__': p(".data") p(".section .rodata") p(".align 32") mod3_masks() p(".text") p(".hidden poly_mod_3_Phi_n") p(".global poly_mod_3_Phi_n") p(".att_syntax prefix") p("poly_m...
28.886364
89
0.575138
3e976fc385ca9d0c1670e45f475a85f4d43359e5
2,878
py
Python
RULEngine/Command/command.py
wonwon0/RobocupStrategyIA
891028f616d476b05b23b40924d7c99502a718e3
[ "MIT" ]
null
null
null
RULEngine/Command/command.py
wonwon0/RobocupStrategyIA
891028f616d476b05b23b40924d7c99502a718e3
[ "MIT" ]
null
null
null
RULEngine/Command/command.py
wonwon0/RobocupStrategyIA
891028f616d476b05b23b40924d7c99502a718e3
[ "MIT" ]
null
null
null
# Under MIT License, see LICENSE.txt """ Ce module permet de créer des commandes pour faire agir les robots. Des fonctions utilitaire permettent de transformer une commande de Position (Pose) en une commande de vitesse. L'embarqué et le simulateur utilise un vecteur de vitesse (Pose) pour contrôler...
30.294737
79
0.675469
2cc1763fbd27a22b87acb6c8822ec0371b63b750
225
py
Python
test.py
elryndir/GuildPortal
d9604bdffdca93debcf5a4063b56e7f0efcc49fd
[ "MIT" ]
null
null
null
test.py
elryndir/GuildPortal
d9604bdffdca93debcf5a4063b56e7f0efcc49fd
[ "MIT" ]
null
null
null
test.py
elryndir/GuildPortal
d9604bdffdca93debcf5a4063b56e7f0efcc49fd
[ "MIT" ]
null
null
null
__author__ = 'Alexandre Cloquet' import requests r = requests.get('https://api.twitch.tv/kraken/streams/nkio_', headers={'Accept': 'application/vnd.twitchtv.v3+json'}) print(r.status_code) print(r.json())
22.5
72
0.684444
688f299d04b5d8aa04fc1654c7b1d3f08e652ac1
5,336
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.948905
133
0.659483
11bee070438b55e5b453dce3399acffcde7a93e0
233
py
Python
car/carApp/urls.py
cs-fullstack-2019-spring/django-validation-cw-PorcheWooten
73bf72d06228fb80b1014a6097859a773d63971a
[ "Apache-2.0" ]
null
null
null
car/carApp/urls.py
cs-fullstack-2019-spring/django-validation-cw-PorcheWooten
73bf72d06228fb80b1014a6097859a773d63971a
[ "Apache-2.0" ]
null
null
null
car/carApp/urls.py
cs-fullstack-2019-spring/django-validation-cw-PorcheWooten
73bf72d06228fb80b1014a6097859a773d63971a
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views # the superuser admin is admin password = test4321 urlpatterns = \ [ path('',views.index, name ='index'), path('congrats/',views.congrats, name ='congrats'), ]
25.888889
59
0.643777
3ca848ddfc2760a71a63cbb59027f76a9315c41f
13,164
py
Python
scqubits/core/flux_qubit.py
randy761005/scqubits
1baf8509544b10cdf39b6284330100fcef64cab4
[ "BSD-3-Clause" ]
1
2020-05-11T12:21:30.000Z
2020-05-11T12:21:30.000Z
scqubits/core/flux_qubit.py
PhilippAumann/scqubits
a90b8420a6ebcdf7fc339a43b8ff8e83d2d7bed3
[ "BSD-3-Clause" ]
null
null
null
scqubits/core/flux_qubit.py
PhilippAumann/scqubits
a90b8420a6ebcdf7fc339a43b8ff8e83d2d7bed3
[ "BSD-3-Clause" ]
null
null
null
# flux_qubit.py # # This file is part of scqubits. # # Copyright (c) 2019, Jens Koch and Peter Groszkowski # 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. ##############################################...
42.601942
116
0.601261
e030f8a23bacc6e5cc6e7b981dc5b99b49e457b6
4,075
py
Python
mars/deploy/oscar/tests/session.py
chaokunyang/mars
f8d06b833603525133a62f099af159cec3ff5570
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/deploy/oscar/tests/session.py
chaokunyang/mars
f8d06b833603525133a62f099af159cec3ff5570
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/deploy/oscar/tests/session.py
chaokunyang/mars
f8d06b833603525133a62f099af159cec3ff5570
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
# Copyright 1999-2021 Alibaba Group Holding 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 applicable law or a...
35.434783
81
0.628712
2daccdfb3dea1727ba13743f45361195c82a9473
43,183
py
Python
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/ast.py
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/ast.py
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/ast.py
sotaoverride/backup
ca53a10b72295387ef4948a9289cb78ab70bc449
[ "Apache-2.0" ]
null
null
null
# -*- Mode: Python -*- # GObject-Introspection - a framework for introspecting GObject libraries # Copyright (C) 2008 Johan Dahlin # Copyright (C) 2008, 2009 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as publish...
33.449264
90
0.630503
6d5016a8aeb4bb5004fe0dc75d2ff3fdb672185f
8,903
py
Python
huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_topic_details_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_topic_details_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_topic_details_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListTopicDetailsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
29.286184
168
0.617769
b90c0a2e6b321dd7673dc1b6123c4f2dd216de9d
5,154
py
Python
image-generation/stylegan2-ewc/main.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
image-generation/stylegan2-ewc/main.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
image-generation/stylegan2-ewc/main.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
40.582677
156
0.636593
a33933a9234f29af704ae3e2dab8d0e4a570d7ff
36,352
py
Python
src/config_dlg.py
muteio/ghostnode-tool
c42868ed6c009c47482d23ebac0d101adbd8c103
[ "MIT" ]
1
2019-11-02T01:39:52.000Z
2019-11-02T01:39:52.000Z
src/config_dlg.py
NixPlatform/ghostnode-tool
c42868ed6c009c47482d23ebac0d101adbd8c103
[ "MIT" ]
null
null
null
src/config_dlg.py
NixPlatform/ghostnode-tool
c42868ed6c009c47482d23ebac0d101adbd8c103
[ "MIT" ]
1
2019-09-21T15:08:36.000Z
2019-09-21T15:08:36.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Bertrand256 # Created on: 2017-05 import copy import sys import logging from typing import Optional from PyQt5 import QtWidgets, QtCore from PyQt5.QtCore import Qt, pyqtSlot, QPoint from PyQt5.QtWidgets import QInputDialog, QDialog, QLayout, QListWidgetItem, QPus...
45.957016
118
0.645081
41e4afd37b4504b120014e2d426174dd55de42f0
895
py
Python
tipengine/models.py
makyo/tipengine
4e0fe781115bd3d584a08425fbfdb089055a4ae6
[ "MIT" ]
null
null
null
tipengine/models.py
makyo/tipengine
4e0fe781115bd3d584a08425fbfdb089055a4ae6
[ "MIT" ]
null
null
null
tipengine/models.py
makyo/tipengine
4e0fe781115bd3d584a08425fbfdb089055a4ae6
[ "MIT" ]
null
null
null
from app import db class Category(db.EmbeddedDocument): verb = db.StringField() # e.g present verbOutcomePreposition = db.StringField() # e.g as outcome = db.StringField() # e.g more masculine actionToolPreposition = db.StringField() # e.g with tool = db.String...
31.964286
67
0.658101
ed7bd85a409c79c6e3ae38d1c959905ab577b342
2,479
py
Python
autotest/t051_test.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-03-17T09:15:54.000Z
2021-03-17T09:15:54.000Z
autotest/t051_test.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t051_test.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-08-05T19:11:27.000Z
2021-08-05T19:11:27.000Z
import shutil import os import numpy as np import flopy cpth = os.path.join('temp', 't051') # delete the directory if it exists if os.path.isdir(cpth): shutil.rmtree(cpth) # make the directory os.makedirs(cpth) def test_default_oc_stress_period_data(): m = flopy.modflow.Modflow(model_ws=cpth, verbose=True) ...
33.5
79
0.621622
9d90a81890b83c57833d34d0443e9c975cd05888
409
py
Python
jotleaf/registration_backend/urls.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
1
2020-10-25T15:10:43.000Z
2020-10-25T15:10:43.000Z
jotleaf/registration_backend/urls.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
jotleaf/registration_backend/urls.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
""" Copied from registration.backends.simple.urls """ from django.conf.urls import patterns, url, include from registration.views import register MY_BACKEND = 'registration_backend.backend.JotleafBackend' urlpatterns = patterns('', url( r'^register/$', register, {'backend': MY_BACKEND}, ...
17.782609
58
0.679707
a8f6a4ec434acb4ef9eec43be84182201eb70acd
336
py
Python
pycristoforo/tests/test_skeleton.py
samdobson/PyCristoforo
5d631494e95881ef13c8dbe0e93e89b71a860782
[ "MIT" ]
27
2019-08-02T19:20:07.000Z
2022-03-19T02:15:22.000Z
pycristoforo/tests/test_skeleton.py
samdobson/PyCristoforo
5d631494e95881ef13c8dbe0e93e89b71a860782
[ "MIT" ]
14
2019-06-21T07:29:54.000Z
2022-03-20T22:51:10.000Z
pycristoforo/tests/test_skeleton.py
samdobson/PyCristoforo
5d631494e95881ef13c8dbe0e93e89b71a860782
[ "MIT" ]
6
2020-03-14T10:32:19.000Z
2021-06-11T00:10:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest from pycristoforo.skeleton import fib __author__ = "Alessandro Negrini" __copyright__ = "Alessandro Negrini" __license__ = "mit" def test_fib(): assert fib(1) == 1 assert fib(2) == 1 assert fib(7) == 13 with pytest.raises(AssertionError): ...
18.666667
39
0.657738
1ef618862819f63f6d17875748194e94db50f528
1,664
py
Python
bireme/thesaurus/models_thesaurus.py
viniciusandrade/fi-admin-fork
5187af08d1424f275222422ed12f9e54c14caa5b
[ "MIT", "Python-2.0", "Apache-2.0", "BSD-3-Clause" ]
5
2016-04-08T19:45:25.000Z
2022-03-24T16:56:49.000Z
bireme/thesaurus/models_thesaurus.py
viniciusandrade/fi-admin-fork
5187af08d1424f275222422ed12f9e54c14caa5b
[ "MIT", "Python-2.0", "Apache-2.0", "BSD-3-Clause" ]
1,214
2015-03-10T14:47:10.000Z
2022-03-31T12:15:05.000Z
bireme/thesaurus/models_thesaurus.py
viniciusandrade/fi-admin-fork
5187af08d1424f275222422ed12f9e54c14caa5b
[ "MIT", "Python-2.0", "Apache-2.0", "BSD-3-Clause" ]
7
2015-06-01T17:58:22.000Z
2021-09-29T12:34:19.000Z
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _, get_language from django.db import models from django.utils import timezone from main.models import SourceLanguage # thesaurus fields class Thesaurus(models.Model): class Meta: verbose_name = _("Thesaurus") v...
31.396226
93
0.719351
762df4e5b8bc22ccb2677c5a1bbb2a4c9b9cfb27
271
py
Python
Chapter 03/Chap03_Example3.51.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.51.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.51.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
try: print("inside try") num1= int(input(" Enter the first number: ")) num2= int(input(" Enter the second number: ")) total = num1 / num2 print("The division is ", total) print("outside try") except ValueError: print("inside ValueError")
27.1
51
0.619926
efa57302a58319ea4520ef9fc0482e41522e88c3
1,921
py
Python
typescript_python_boilerplate/template.py
glucoseinc/typescript-python-boilerplate
59840742d1ae43a61a8732d5545d9f677cd23a89
[ "MIT" ]
null
null
null
typescript_python_boilerplate/template.py
glucoseinc/typescript-python-boilerplate
59840742d1ae43a61a8732d5545d9f677cd23a89
[ "MIT" ]
6
2019-01-03T04:30:21.000Z
2019-01-03T12:09:18.000Z
typescript_python_boilerplate/template.py
glucoseinc/typescript-python-boilerplate
59840742d1ae43a61a8732d5545d9f677cd23a89
[ "MIT" ]
null
null
null
""" jinja2 template関連 """ from __future__ import annotations import asyncio import functools import os from typing import TYPE_CHECKING, cast from jinja2 import Environment, FileSystemLoader from sanic.response import html from sanic.views import HTTPMethodView if TYPE_CHECKING: from typing import Any, Mapping ...
26.680556
105
0.677772
263f2def9af7497429fc6c87850d5a06c9dd1951
3,342
py
Python
tests/components/panasonic_viera/test_init.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
4
2020-07-29T17:47:10.000Z
2020-09-16T13:39:13.000Z
tests/components/panasonic_viera/test_init.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-11-08T19:40:10.000Z
2022-03-01T11:11:07.000Z
tests/components/panasonic_viera/test_init.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Test the Panasonic Viera setup process.""" from asynctest import patch from homeassistant.components.panasonic_viera.const import ( CONF_APP_ID, CONF_ENCRYPTION_KEY, CONF_ON_ACTION, DEFAULT_NAME, DEFAULT_PORT, DOMAIN, ) from homeassistant.config_entries import ENTRY_STATE_NOT_LOADED from hom...
27.170732
84
0.723818
08ae9dc66f961331064873f62a02e0a8c27b6677
2,154
py
Python
network_anomaly/NSL-KDD-DNN/binary/dnn1.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
1
2022-01-18T01:53:34.000Z
2022-01-18T01:53:34.000Z
network_anomaly/UNSW-NB15-DNN/binary/dnn1.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
network_anomaly/UNSW-NB15-DNN/binary/dnn1.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from sklearn.cross_validation import train_test_split import pandas as pd import numpy as np np.random.seed(1337) # for reproducibility from keras.preprocessing import sequence from keras.utils import np_utils from keras.models import Sequential from keras.layers import Dense, Dro...
29.916667
149
0.793872
312c35839a3293dc77ec358d5e59303fb24e4f1c
914
py
Python
ci.env.py
AgoraIO-Community/eConferencing-iOS
1233e52094dfc3f5b7bd832dd9d5be3adbb1e63c
[ "MIT" ]
1
2021-01-26T10:11:10.000Z
2021-01-26T10:11:10.000Z
ci.env.py
AgoraIO-Community/eConferencing-iOS
1233e52094dfc3f5b7bd832dd9d5be3adbb1e63c
[ "MIT" ]
null
null
null
ci.env.py
AgoraIO-Community/eConferencing-iOS
1233e52094dfc3f5b7bd832dd9d5be3adbb1e63c
[ "MIT" ]
2
2020-06-10T05:10:37.000Z
2021-07-13T02:47:27.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- import re import os import sys def main(): os.system("pod install") agoraAppId = sys.argv[1] agoraAuth = sys.argv[2] agoraHost = sys.argv[3] f = open("./VideoConference/KeyCenter.m", 'r+') content = f.read() agoraAppIdString = "@\"" + agoraAppI...
24.052632
83
0.611597
7e883096e161459e01903aace7ab192c8f43beab
522
py
Python
backend/location/api/v1/serializers.py
crowdbotics-apps/terptrek-29524
0e57f56a03322987302099aaf3aef042517a9e7a
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/location/api/v1/serializers.py
crowdbotics-apps/terptrek-29524
0e57f56a03322987302099aaf3aef042517a9e7a
[ "FTL", "AML", "RSA-MD" ]
28
2021-08-08T19:40:57.000Z
2022-02-13T16:34:21.000Z
backend/location/api/v1/serializers.py
crowdbotics-apps/nyk-30233
d5770a0622a3af836cbd70857ef3c2751692e3ef
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from rest_framework import serializers from location.models import VehicleLocation, ProfileLocation, MapLocation class ProfileLocationSerializer(serializers.ModelSerializer): class Meta: model = ProfileLocation fields = "__all__" class MapLocationSerializer(serializers.ModelSerializer): clas...
24.857143
73
0.739464
8430d1ae6bd14c3c0e145af82d2727b6d1776db1
2,217
py
Python
dpgs_sandbox/tests/test_bug_url_cache.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
85
2019-01-03T02:22:03.000Z
2022-03-09T23:15:56.000Z
dpgs_sandbox/tests/test_bug_url_cache.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
52
2019-02-12T21:04:43.000Z
2022-03-05T15:20:16.000Z
dpgs_sandbox/tests/test_bug_url_cache.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
12
2019-01-31T02:36:06.000Z
2021-06-15T22:06:12.000Z
from django.apps import apps from django.test import TestCase, tag from django_pgschemas.test.client import TenantClient from django_pgschemas.utils import get_domain_model, get_tenant_model TenantModel = get_tenant_model() DomainModel = get_domain_model() User = apps.get_model("shared_common.User") @tag("bug") cla...
44.34
113
0.716734
c393dd876bec95e99a80f3c829695a36a0fad62a
9,453
py
Python
planet/train.py
pvrancx/pytorch
c8008fcf8afb356739a2abf10dcef62a7466f3c1
[ "MIT" ]
null
null
null
planet/train.py
pvrancx/pytorch
c8008fcf8afb356739a2abf10dcef62a7466f3c1
[ "MIT" ]
null
null
null
planet/train.py
pvrancx/pytorch
c8008fcf8afb356739a2abf10dcef62a7466f3c1
[ "MIT" ]
null
null
null
import argparse import torch from torch.autograd import Variable import model import util import data import time import torchvision.transforms as transforms import shutil model_names = sorted(name for name in model.__dict__ if name.startswith("Planet") and callable(model.__dict__[name])) print model_names ...
38.901235
114
0.62065
4b8b0755d198c986ea0e6fc5fc31d855f81858d4
3,590
py
Python
sdks/python/apache_beam/io/gcp/datastore/v1new/util_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-07-27T11:54:33.000Z
2021-06-06T11:53:36.000Z
sdks/python/apache_beam/io/gcp/datastore/v1new/util_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
12
2019-04-15T15:27:23.000Z
2019-07-01T18:13:10.000Z
sdks/python/apache_beam/io/gcp/datastore/v1new/util_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-07-16T09:15:14.000Z
2021-07-16T09:15:14.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.196078
80
0.744847
40ed2101fa30ee626cb73cd1e15f2af6d702d6da
6,063
py
Python
invenio_oaiserver/percolator.py
Glignos/invenio-oaiserver
1c703c78777dcc5a946bbc53015235be8a2f6810
[ "MIT" ]
null
null
null
invenio_oaiserver/percolator.py
Glignos/invenio-oaiserver
1c703c78777dcc5a946bbc53015235be8a2f6810
[ "MIT" ]
null
null
null
invenio_oaiserver/percolator.py
Glignos/invenio-oaiserver
1c703c78777dcc5a946bbc53015235be8a2f6810
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2017-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Percolator.""" from __future__ import absolute_import, print_function import jso...
35.45614
78
0.645885
6e06bf7013d0792e80c86ae6d818775f7c37a26f
7,325
py
Python
configs/representation/ssui_fpn/ssui_r18_fpn_chp_thc3_ct_sgd_cos_1x8x2_50e_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/ssui_fpn/ssui_r18_fpn_chp_thc3_ct_sgd_cos_1x8x2_50e_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/ssui_fpn/ssui_r18_fpn_chp_thc3_ct_sgd_cos_1x8x2_50e_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='SimSiamUVCTracker', backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(0, 1, 2, 3), # strides=(1, 2, 1, 1), norm_cfg=dict(type='SyncBN', requires_grad=True), norm_eval=False, zero_init_residua...
31.303419
79
0.619795
e4bd261ee8835735cc1a4db7eced629da43d0759
33
py
Python
a.py
anishmax/python_basics
3a1300a5f5869858d30e5d98a465f350aa8928a2
[ "Apache-2.0" ]
null
null
null
a.py
anishmax/python_basics
3a1300a5f5869858d30e5d98a465f350aa8928a2
[ "Apache-2.0" ]
null
null
null
a.py
anishmax/python_basics
3a1300a5f5869858d30e5d98a465f350aa8928a2
[ "Apache-2.0" ]
null
null
null
print("hello 1") print("hello 2")
16.5
16
0.666667
dd8b52f4796e32cb00663af19a5acf3af1348375
2,725
py
Python
mdssdk/parsers/interface/show_interface_transceiver_detail.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
4
2020-12-13T20:02:43.000Z
2022-02-27T23:36:58.000Z
mdssdk/parsers/interface/show_interface_transceiver_detail.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
13
2020-09-23T07:30:15.000Z
2022-03-30T01:12:25.000Z
mdssdk/parsers/interface/show_interface_transceiver_detail.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
12
2020-05-11T09:33:21.000Z
2022-03-18T11:11:28.000Z
import logging import re log = logging.getLogger(__name__) ALL_PAT = [ "^fc\d+\/\d+\s+(?P<sfp_present>.*)", "Name is (?P<name>\S+)", "Manufacturer's part number is (?P<part_number>\S+)", "Cisco extended id is (?P<cisco_id>.*)", "Cisco part number is (?P<cisco_part_number>\S+)", "Cisco pid is (...
27.525253
80
0.606972
15b6a29036348f51d9cab4e5fc38bf0135178441
194
py
Python
config.py
brechmos-stsci/deleteme
02590bbe715750c908b6d8013b3ec935eeaf4040
[ "BSD-3-Clause" ]
null
null
null
config.py
brechmos-stsci/deleteme
02590bbe715750c908b6d8013b3ec935eeaf4040
[ "BSD-3-Clause" ]
1
2020-10-29T19:53:22.000Z
2020-10-29T19:53:22.000Z
config.py
brechmos-stsci/deleteme
02590bbe715750c908b6d8013b3ec935eeaf4040
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import cubeviz.data_factories from cubeviz import layout from cubeviz.listener import CubevizManager from cubeviz import startup
27.714286
63
0.835052
06748bb2e125672356778452090654d3ed72941e
139
py
Python
IMS/recommendation/urls.py
AyushPaudel/Inventory-Management-System
04e57b0d02b1b7cade992b959569e750ca339c8e
[ "MIT" ]
2
2021-09-01T13:00:24.000Z
2021-11-19T12:16:52.000Z
IMS/recommendation/urls.py
aadarshadhakalg/Inventory-Management-System-1
075ec49b9d4abebb7d9a0b150a6cb70f6cbf5144
[ "MIT" ]
null
null
null
IMS/recommendation/urls.py
aadarshadhakalg/Inventory-Management-System-1
075ec49b9d4abebb7d9a0b150a6cb70f6cbf5144
[ "MIT" ]
1
2022-01-07T05:50:08.000Z
2022-01-07T05:50:08.000Z
from django.urls import path from . import views urlpatterns = [ path('<email_slug>/', views.recommend.as_view(), name='recommend'), ]
23.166667
71
0.705036
9efe6ba4f6145bd87fbc86754d6b91986240cd7b
2,217
py
Python
autobuyfast/core/models.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
autobuyfast/core/models.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
1
2022-03-02T14:56:29.000Z
2022-03-02T14:56:29.000Z
autobuyfast/core/models.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
import os import random from datetime import datetime import readtime from category.models import Category, Tag from comment.models import Comment from django.conf import settings from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentTyp...
26.082353
105
0.708164
32ab2358a8f7d27233c6dc06bc85d184603622a9
3,413
py
Python
hexrd/ui/calibration/wppf_runner.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
13
2020-02-18T00:23:02.000Z
2022-02-24T20:04:36.000Z
hexrd/ui/calibration/wppf_runner.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
656
2020-01-14T02:33:40.000Z
2022-03-26T15:31:17.000Z
hexrd/ui/calibration/wppf_runner.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
6
2020-01-17T15:02:53.000Z
2020-11-01T22:02:48.000Z
import copy from PySide2.QtCore import QCoreApplication from hexrd.wppf import Rietveld from hexrd.ui.calibration.wppf_options_dialog import WppfOptionsDialog from hexrd.ui.constants import OverlayType from hexrd.ui.hexrd_config import HexrdConfig class WppfRunner: def __init__(self, parent=None): sel...
30.747748
78
0.641371
e0e6f8c062d77c7f22379fa8524831a079a4bb52
3,262
py
Python
test/kernel/test_kernel_tlutconv2d.py
diwu1990/UnaryComputingSim
1a4746b7bcc2fcde5144a8b42fc94e6f5cd82b8e
[ "MIT" ]
1
2020-06-24T09:54:06.000Z
2020-06-24T09:54:06.000Z
test/kernel/test_kernel_tlutconv2d.py
RuokaiYin/UnarySim
343ff9abf356a63d526b1df8eb946ad528690a27
[ "MIT" ]
null
null
null
test/kernel/test_kernel_tlutconv2d.py
RuokaiYin/UnarySim
343ff9abf356a63d526b1df8eb946ad528690a27
[ "MIT" ]
null
null
null
import torch from UnarySim.kernel import TLUTConv2d import matplotlib.pyplot as plt import time import math device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") def test_tlutconv2d(): plot_en=False hwcfg={ "temporal" : "w", "widtht" : 4, "formati" : "bfloat16", ...
31.365385
147
0.602698
c3af448b4446d5424d617b6213e437df086a155a
264
py
Python
case_management/case_management/doctype/relationship/relationship.py
amutaher/case_management
d39af5f49614672fc30ac6019eb0772c28de3df3
[ "MIT" ]
null
null
null
case_management/case_management/doctype/relationship/relationship.py
amutaher/case_management
d39af5f49614672fc30ac6019eb0772c28de3df3
[ "MIT" ]
null
null
null
case_management/case_management/doctype/relationship/relationship.py
amutaher/case_management
d39af5f49614672fc30ac6019eb0772c28de3df3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Akram Mutaher and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class Relationship(Document): pass
24
52
0.776515
10973cc8641a9ec4fdd372e8e6b076cdb45babee
6,213
py
Python
configs/clustering_configs/mta_es_abd_non_clean.py
XiaoSanGit/wda_tracker
b68ec0edb9daa6cc495815ba9ca549b36eec0369
[ "MIT" ]
null
null
null
configs/clustering_configs/mta_es_abd_non_clean.py
XiaoSanGit/wda_tracker
b68ec0edb9daa6cc495815ba9ca549b36eec0369
[ "MIT" ]
null
null
null
configs/clustering_configs/mta_es_abd_non_clean.py
XiaoSanGit/wda_tracker
b68ec0edb9daa6cc495815ba9ca549b36eec0369
[ "MIT" ]
null
null
null
root = { "work_dirs" : "E:\\work\\pycharm_v2\\wda_tracker\\work_dirs" ,"train_track_results_folder" : "E:\\work\\pycharm_v2\\wda_tracker\\work_dirs\\tracker\\config_runs\\frcnn50_new_abd_train\\tracker_results" ,"test_track_results_folder" : "E:\\work\\pycharm_v2\\wda_tracker\\work_dirs\\trac...
54.5
148
0.446483
df1c6db4a61a31179afdab9a4cb12647c5ed5552
2,716
py
Python
common/utils/meter.py
WANGBohaO-jpg/Transfer-Learning-Library
452f6036d057eae053795e8948e1359a8b7f88b5
[ "MIT" ]
null
null
null
common/utils/meter.py
WANGBohaO-jpg/Transfer-Learning-Library
452f6036d057eae053795e8948e1359a8b7f88b5
[ "MIT" ]
null
null
null
common/utils/meter.py
WANGBohaO-jpg/Transfer-Learning-Library
452f6036d057eae053795e8948e1359a8b7f88b5
[ "MIT" ]
null
null
null
""" @author: Junguang Jiang @contact: JiangJunguang1123@outlook.com """ from typing import Optional, List class AverageMeter(object): r"""Computes and stores the average and current value. Examples:: >>> # Initialize a meter to record loss >>> losses = AverageMeter() >>> # Update met...
25.622642
71
0.570324
79b413b5141d0cfe5c02ca10d42f0692a4ac87e5
1,482
py
Python
epistasis/simulate/mapping.py
lperezmo/epistasis
4f751d9e2d9ca632a7b688cf32bd950ad7c2a754
[ "Unlicense" ]
21
2016-08-31T15:14:55.000Z
2021-11-27T14:42:35.000Z
epistasis/simulate/mapping.py
lperezmo/epistasis
4f751d9e2d9ca632a7b688cf32bd950ad7c2a754
[ "Unlicense" ]
14
2016-11-30T18:39:00.000Z
2020-04-07T23:48:49.000Z
epistasis/simulate/mapping.py
lperezmo/epistasis
4f751d9e2d9ca632a7b688cf32bd950ad7c2a754
[ "Unlicense" ]
8
2016-08-30T00:30:14.000Z
2020-04-02T01:03:19.000Z
from functools import wraps from ..mapping import EpistasisMap from numpy import random class DistributionException(Exception): """""" class SimulatedEpistasisMap(EpistasisMap): """Just like an epistasis map, but with extra methods for setting epistatic coefficients """ def __init__(self, gpm, df=...
34.465116
97
0.647773
eaf2fa577660066741b7d49a27c860aeb7c53edb
1,334
py
Python
lbt/datasets/base_dataset.py
skanjila/ludwig-benchmarking-toolkit
5cae39dba91f83717c467e1f3db982bb0fabaf70
[ "Apache-2.0" ]
9
2021-06-07T04:33:09.000Z
2022-03-30T09:24:32.000Z
lbt/datasets/base_dataset.py
skanjila/ludwig-benchmarking-toolkit
5cae39dba91f83717c467e1f3db982bb0fabaf70
[ "Apache-2.0" ]
null
null
null
lbt/datasets/base_dataset.py
skanjila/ludwig-benchmarking-toolkit
5cae39dba91f83717c467e1f3db982bb0fabaf70
[ "Apache-2.0" ]
2
2021-11-15T17:05:48.000Z
2022-03-13T21:22:41.000Z
from ludwig.datasets.base_dataset import BaseDataset, DEFAULT_CACHE_LOCATION import abc import pandas as pd class LBTDataset(BaseDataset): """Base LBT Dataset -- subclass wrapper around Ludwig data class""" def __init__(self, dataset_name, processed_file_name, cache_dir): self.name = dataset_name ...
34.205128
99
0.67991
b4881d79fefe81714d52819d9e2b3babffe9cf6c
639
py
Python
celery_slack/__init__.py
crflynn/celery-slack
c9d877f6c83457d27bea76a072abab22086bd7cd
[ "MIT" ]
18
2017-12-28T15:10:25.000Z
2021-09-18T17:33:16.000Z
celery_slack/__init__.py
crflynn/celery-slack
c9d877f6c83457d27bea76a072abab22086bd7cd
[ "MIT" ]
28
2018-06-07T02:05:58.000Z
2021-06-02T00:37:56.000Z
celery_slack/__init__.py
crflynn/celery-slack
c9d877f6c83457d27bea76a072abab22086bd7cd
[ "MIT" ]
8
2018-06-13T04:00:27.000Z
2020-04-25T15:51:55.000Z
"""Module level accessible objects.""" from ._version import __version__ from ._version import __description__ from ._version import __url__ from ._version import __title__ from ._version import __author__ from ._version import __author_email__ from ._version import __license__ from ._version import __copyright__ from ...
23.666667
40
0.780908
b71cc7e5a0f57848f30d886261e59d752e1b3470
3,100
py
Python
monk/system_check_tests/pytorch/test_compare.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
7
2020-07-26T08:37:29.000Z
2020-10-30T10:23:11.000Z
monk/system_check_tests/pytorch/test_compare.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
9
2020-01-28T21:40:39.000Z
2022-02-10T01:24:06.000Z
monk/system_check_tests/pytorch/test_compare.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
1
2020-10-07T12:57:44.000Z
2020-10-07T12:57:44.000Z
import os import sys sys.path.append("../../../monk/"); import psutil from pytorch_prototype import prototype from compare_prototype import compare from common import print_start from common import print_status def test_compare(system_dict): forward = True; test = "compare_object_creation"; system_dict[...
33.333333
74
0.615806
2e4b584eee381c7487be24a2cfedcb662b68c7bf
1,515
py
Python
scipy/io/matlab/tests/test_mio_utils.py
ririw/scipy
680ecf8c52966343827903e6b7983b1ef7323fe2
[ "BSD-3-Clause" ]
null
null
null
scipy/io/matlab/tests/test_mio_utils.py
ririw/scipy
680ecf8c52966343827903e6b7983b1ef7323fe2
[ "BSD-3-Clause" ]
null
null
null
scipy/io/matlab/tests/test_mio_utils.py
ririw/scipy
680ecf8c52966343827903e6b7983b1ef7323fe2
[ "BSD-3-Clause" ]
null
null
null
""" Testing """ from __future__ import division, print_function, absolute_import import numpy as np from numpy.testing import assert_array_equal, assert_ from scipy.io.matlab.mio_utils import squeeze_element, chars_to_strings def test_squeeze_element(): a = np.zeros((1,3)) assert_array_equal(np.squeeze(a...
33.666667
71
0.680528
cb431c0b54e9448b455fcad04c716aad1fb513fe
3,235
py
Python
src/vector/_compute/lorentz/Mt.py
pfackeldey/vector
87e9e942f2a9ae09a3e250e12f37505eb22e25ea
[ "BSD-3-Clause" ]
40
2020-03-26T13:28:36.000Z
2022-03-23T22:14:35.000Z
src/vector/_compute/lorentz/Mt.py
pfackeldey/vector
87e9e942f2a9ae09a3e250e12f37505eb22e25ea
[ "BSD-3-Clause" ]
66
2020-02-14T13:32:18.000Z
2022-03-29T14:35:31.000Z
src/vector/_compute/lorentz/Mt.py
pfackeldey/vector
87e9e942f2a9ae09a3e250e12f37505eb22e25ea
[ "BSD-3-Clause" ]
14
2020-01-29T22:03:33.000Z
2022-03-16T02:46:25.000Z
# Copyright (c) 2019-2021, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner. # # Distributed under the 3-clause BSD license, see accompanying file LICENSE # or https://github.com/scikit-hep/vector for details. import typing """ .. code-block:: python @property Lorentz.Mt(self) """ import n...
26.958333
94
0.649768
cb35b8ade0886747d51e88031fece72339859345
1,008
py
Python
templates/api-template-python/components/config.py
rkothapalli/jazz
f04449735603ee19b228521e486a779a8609eae5
[ "Apache-2.0" ]
280
2017-10-26T05:30:51.000Z
2022-03-24T20:41:24.000Z
templates/api-template-python/components/config.py
rkothapalli/jazz
f04449735603ee19b228521e486a779a8609eae5
[ "Apache-2.0" ]
390
2017-11-01T23:39:26.000Z
2021-08-11T04:08:30.000Z
templates/api-template-python/components/config.py
rkothapalli/jazz
f04449735603ee19b228521e486a779a8609eae5
[ "Apache-2.0" ]
149
2017-10-29T03:29:17.000Z
2022-01-26T15:57:46.000Z
# Python Template Project # @Author: # @version: 1.0 try: from configparser import ConfigParser except ImportError: from ConfigParser import ConfigParser # ver. < 3.0 class Config: def __init__(self, event): self.event = event @staticmethod def get_stage_file(self): stage = sel...
27.243243
61
0.612103
1989fc2a4121fd9685e10343902d64782f45b7f2
12,427
py
Python
customRateCalculator.py
txd283/vacancy-diffusion-kmclib
977c728c97aedd2eb21dc5222c372c0af68c7a7b
[ "MIT" ]
1
2021-09-04T14:35:15.000Z
2021-09-04T14:35:15.000Z
customRateCalculator.py
txd283/vacancy-diffusion-kmclib
977c728c97aedd2eb21dc5222c372c0af68c7a7b
[ "MIT" ]
1
2022-03-13T07:48:24.000Z
2022-03-13T07:48:24.000Z
customRateCalculator.py
txd283/vacancy-diffusion-kmclib
977c728c97aedd2eb21dc5222c372c0af68c7a7b
[ "MIT" ]
1
2020-05-20T01:17:51.000Z
2020-05-20T01:17:51.000Z
# Custom rate is calculated for unique events in the simulation # Author = Thomas Davis, email = txd283@bham.ac.uk / University of Birmingham # This rate calculator has a full implementation of the pair interaction method # for up to second nearest neighbours # Cu and Vacancies clustering works # Only first neighbour h...
37.657576
200
0.527963
5d32cc09b4921f7807e71a919cb66544f49626ab
1,986
py
Python
mod_step_func.py
navidivan/poker_rl
a81bfcd7eb297b68fe03f92798c6abd657ddf6a3
[ "Apache-2.0" ]
3
2020-08-30T19:27:02.000Z
2020-08-31T23:29:15.000Z
mod_step_func.py
navidivan/poker_rl
a81bfcd7eb297b68fe03f92798c6abd657ddf6a3
[ "Apache-2.0" ]
null
null
null
mod_step_func.py
navidivan/poker_rl
a81bfcd7eb297b68fe03f92798c6abd657ddf6a3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Untitled47.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1wZGAYzn2SZYNP8Uazy_TMvP0wD_GLkeV """ import numpy as np import pandas as pd from mod_poker_5 import * from mod_fe import * from mod_agents import * import tor...
40.530612
90
0.684794
eddf104f95087539ac7631d9046eb27d9032a911
1,779
py
Python
platypush/backend/assistant/snowboy/__init__.py
shineit/platypush
a67b301cd66235b41bff6bfb3de56b903bf9551d
[ "MIT" ]
1
2020-12-08T06:26:31.000Z
2020-12-08T06:26:31.000Z
platypush/backend/assistant/snowboy/__init__.py
shineit/platypush
a67b301cd66235b41bff6bfb3de56b903bf9551d
[ "MIT" ]
null
null
null
platypush/backend/assistant/snowboy/__init__.py
shineit/platypush
a67b301cd66235b41bff6bfb3de56b903bf9551d
[ "MIT" ]
null
null
null
import logging import json import os import subprocess import time from snowboy import snowboydecoder from platypush.backend import Backend from platypush.message.event.assistant import \ ConversationStartEvent, ConversationEndEvent, \ SpeechRecognizedEvent, HotwordDetectedEvent class AssistantSnowboyBackend...
31.210526
78
0.686903
c7d1c3c553c3e014d8c942e0e136370eebb3481a
202
py
Python
datasets/__init__.py
deniskamazur/pytorch-flows
5520ebe4e91f5829db695ffd5f1ba7376d92a446
[ "MIT" ]
529
2018-09-01T20:00:04.000Z
2022-03-31T06:19:02.000Z
datasets/__init__.py
deniskamazur/pytorch-flows
5520ebe4e91f5829db695ffd5f1ba7376d92a446
[ "MIT" ]
11
2018-09-12T17:38:08.000Z
2021-05-13T19:59:41.000Z
datasets/__init__.py
deniskamazur/pytorch-flows
5520ebe4e91f5829db695ffd5f1ba7376d92a446
[ "MIT" ]
73
2018-09-02T03:39:00.000Z
2022-03-31T06:19:06.000Z
root = 'data/' from .power import POWER from .gas import GAS from .hepmass import HEPMASS from .miniboone import MINIBOONE from .bsds300 import BSDS300 from .moons import MOONS from .mnist import MNIST
22.444444
32
0.792079
aeac130589badd5011f88dc3c3a94971e4f46c15
2,139
py
Python
test_implement_trie.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_implement_trie.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_implement_trie.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
import unittest from typing import Dict, Optional, Any class Trie: def __init__(self) -> None: """ Initialize your data structure here. """ # Note that using a dictionary for children (as in this implementation) # would not by default lexicographically sort the children, wh...
28.144737
79
0.573633
5734f92ce13d70884709f6b92c6044dd92134292
5,084
py
Python
compss/programming_model/bindings/python/src/pycompss/util/scs.py
BSC-computational-genomics/compss
9cfc9f7b9bdab9dcb0bec083007452cda185f50c
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/util/scs.py
BSC-computational-genomics/compss
9cfc9f7b9bdab9dcb0bec083007452cda185f50c
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/util/scs.py
BSC-computational-genomics/compss
9cfc9f7b9bdab9dcb0bec083007452cda185f50c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es) # # 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 ...
31.382716
110
0.699056
baca0b086c6c4a6eaf324c9424f70b3276b1bdf7
4,678
py
Python
scripts/mk_nuget_release.py
VaseninaAnna/z3
5da71dc8478ef581d38de56a54e9a904bd670d19
[ "MIT" ]
26
2020-06-20T15:13:14.000Z
2022-03-30T12:49:51.000Z
scripts/mk_nuget_release.py
VaseninaAnna/z3
5da71dc8478ef581d38de56a54e9a904bd670d19
[ "MIT" ]
16
2016-04-13T23:48:33.000Z
2020-02-02T12:38:52.000Z
scripts/mk_nuget_release.py
VaseninaAnna/z3
5da71dc8478ef581d38de56a54e9a904bd670d19
[ "MIT" ]
8
2020-07-09T23:39:23.000Z
2021-04-21T20:21:20.000Z
# # Copyright (c) 2018 Microsoft Corporation # # 1. download releases from github # 2. copy over libz3.dll for the different architectures # 3. copy over Microsoft.Z3.dll from suitable distribution # 4. copy nuspec file from packages # 5. call nuget pack # 6. sign package import json import os import urllib.request ...
34.145985
153
0.625909
e07853f983b364b81bdf741172c3ecf79ec796de
6,891
py
Python
samples/client/petstore/python-experimental/petstore_api/model/additional_properties_object.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
3
2021-04-09T01:04:32.000Z
2022-02-02T11:02:22.000Z
samples/client/petstore/python-experimental/petstore_api/model/additional_properties_object.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
10
2021-03-09T14:12:46.000Z
2022-02-27T11:42:16.000Z
samples/client/petstore/python-experimental/petstore_api/model/additional_properties_object.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
5
2020-11-26T05:13:41.000Z
2021-04-09T15:58:18.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
38.932203
174
0.586417
1e74684473e1181c49d3718b4d4fe1833465d43e
113
py
Python
generators/generateGroupVarsSpines.py
arista-netdevops-community/excel-to-avd
8762697888b8d411eca65a5bd7e974f963e92956
[ "Apache-2.0" ]
1
2021-04-03T03:56:03.000Z
2021-04-03T03:56:03.000Z
generators/generateGroupVarsSpines.py
arista-netdevops-community/excel-to-avd
8762697888b8d411eca65a5bd7e974f963e92956
[ "Apache-2.0" ]
null
null
null
generators/generateGroupVarsSpines.py
arista-netdevops-community/excel-to-avd
8762697888b8d411eca65a5bd7e974f963e92956
[ "Apache-2.0" ]
1
2021-07-29T17:04:00.000Z
2021-07-29T17:04:00.000Z
def generateGroupVarsSpines(inventory_file): variables = { "type": "spine" } return variables
22.6
44
0.646018
bc51c66a0861e0e85b63071bdc021542418b54d5
16
py
Python
fourth-file.py
deepti-anand/hello-world
494fc16c416dc8fe25600d5830052343b70f2070
[ "Apache-2.0" ]
null
null
null
fourth-file.py
deepti-anand/hello-world
494fc16c416dc8fe25600d5830052343b70f2070
[ "Apache-2.0" ]
null
null
null
fourth-file.py
deepti-anand/hello-world
494fc16c416dc8fe25600d5830052343b70f2070
[ "Apache-2.0" ]
null
null
null
print("fourth")
8
15
0.6875
2a3400559ec21b21753c9fb43eeb045f33c2ba22
366
py
Python
polls/migrations/0003_person_age.py
EduAguilar/django-cac
a0250fa66ddf1aee04cb4c33c1e3ed684d9570d5
[ "MIT" ]
null
null
null
polls/migrations/0003_person_age.py
EduAguilar/django-cac
a0250fa66ddf1aee04cb4c33c1e3ed684d9570d5
[ "MIT" ]
null
null
null
polls/migrations/0003_person_age.py
EduAguilar/django-cac
a0250fa66ddf1aee04cb4c33c1e3ed684d9570d5
[ "MIT" ]
1
2021-12-12T02:45:44.000Z
2021-12-12T02:45:44.000Z
# Generated by Django 3.2.10 on 2021-12-13 20:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0002_music'), ] operations = [ migrations.AddField( model_name='person', name='age', field=mod...
19.263158
49
0.576503
d95dd702b9c2c9ec191644d22f8b6dfb6585324e
996
py
Python
1Dec/listComprehension.py
universekavish/Python-Training
ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18
[ "Apache-2.0" ]
null
null
null
1Dec/listComprehension.py
universekavish/Python-Training
ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18
[ "Apache-2.0" ]
null
null
null
1Dec/listComprehension.py
universekavish/Python-Training
ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18
[ "Apache-2.0" ]
null
null
null
L = [10, 11, 12, 13, 14, 15, 16, 17, 18] print(L) L1 = [x for x in L if x % 2 == 0] print(L1) ip = '10.20.30.40' octets = ip.split('.') print(octets) octets = [int(octet) for octet in octets] print(octets) def isPrime(n) : if n < 2 : return False i = 2 while i < n : if n % i == 0 : return False i = i + 1 re...
21.652174
108
0.629518
1862d70fecf14acebaaa630bd606aa178952aa47
12,455
py
Python
tests/scripts/thread-cert/Cert_8_1_01_Commissioning.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
2,962
2016-05-11T15:06:06.000Z
2022-03-27T20:06:16.000Z
tests/scripts/thread-cert/Cert_8_1_01_Commissioning.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
5,899
2016-05-11T19:21:49.000Z
2022-03-31T18:17:20.000Z
tests/scripts/thread-cert/Cert_8_1_01_Commissioning.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
1,113
2016-05-11T15:37:42.000Z
2022-03-31T09:37:04.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
45.790441
529
0.62232
50f91ad49bac6155e46e08c49fb9515a333d83e9
822
py
Python
src/opera/parser/tosca/v_1_3/operation_definition_for_type.py
Legion2/xopera-opera
808f23cbac326b6d067e6ec531a0109ae02d0f5e
[ "Apache-2.0" ]
null
null
null
src/opera/parser/tosca/v_1_3/operation_definition_for_type.py
Legion2/xopera-opera
808f23cbac326b6d067e6ec531a0109ae02d0f5e
[ "Apache-2.0" ]
null
null
null
src/opera/parser/tosca/v_1_3/operation_definition_for_type.py
Legion2/xopera-opera
808f23cbac326b6d067e6ec531a0109ae02d0f5e
[ "Apache-2.0" ]
null
null
null
from opera.parser.yaml.node import Node from ..entity import Entity from ..list import List from ..map import Map from ..string import String from .operation_implementation_definition import ( OperationImplementationDefinition, ) from .property_definition import PropertyDefinition class OperationDefinitionForTy...
28.344828
63
0.710462
950fa1142921369f1172728a2d7a9573793f7e69
1,567
py
Python
models/imagenet/arch/utils/fuse_utils.py
a1004123217/pytorch-mobile
97974af3259a2073efbc334d57841efbd3eaadfb
[ "MIT" ]
null
null
null
models/imagenet/arch/utils/fuse_utils.py
a1004123217/pytorch-mobile
97974af3259a2073efbc334d57841efbd3eaadfb
[ "MIT" ]
null
null
null
models/imagenet/arch/utils/fuse_utils.py
a1004123217/pytorch-mobile
97974af3259a2073efbc334d57841efbd3eaadfb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import copy import torch import torch.nn as nn import mobile_cv.arch.fbnet_v2.basic_blocks as bb def fuse_convbnrelu(module, inplace=False): ret = module if inplace else copy.deepcopy(module) if isinstance(module,...
27.017241
70
0.590938
9b455af1692e32d92c41971e1f2ce45a81b99ba8
6,961
py
Python
saleor/graphql/translations/mutations.py
JMVasquezR/eco_kym
b0a647149c8086909971eb18c5e94a534a5a64aa
[ "BSD-3-Clause" ]
1
2019-04-14T20:16:46.000Z
2019-04-14T20:16:46.000Z
saleor/graphql/translations/mutations.py
crazyrex/saleor
c927698e1e645dffea4b621d9515973e83b4134e
[ "BSD-3-Clause" ]
null
null
null
saleor/graphql/translations/mutations.py
crazyrex/saleor
c927698e1e645dffea4b621d9515973e83b4134e
[ "BSD-3-Clause" ]
null
null
null
import graphene from graphql_jwt.decorators import permission_required from ...discount import models as discount_models from ...menu import models as menu_models from ...page import models as page_models from ...product import models as product_models from ...shipping import models as shipping_models from ..core.muta...
34.460396
79
0.708806
339697bd026f4ce5a67a9cba1e05ee15b47bb863
2,870
py
Python
sunny/subscriber/zmq_subscriber.py
AnkitAggarwalPEC/HFT-Analytics-Luigi
b01a48d7384accaca1869a7728912019b73f7e9c
[ "MIT" ]
null
null
null
sunny/subscriber/zmq_subscriber.py
AnkitAggarwalPEC/HFT-Analytics-Luigi
b01a48d7384accaca1869a7728912019b73f7e9c
[ "MIT" ]
null
null
null
sunny/subscriber/zmq_subscriber.py
AnkitAggarwalPEC/HFT-Analytics-Luigi
b01a48d7384accaca1869a7728912019b73f7e9c
[ "MIT" ]
null
null
null
import queue_subscriber class FunctionNotSupported(Exception): """ Raise this exception when the function doesn't make sense """ pass class PublisherNotSane(Exception): """ Raise this exception when the publisher is not sane """ pass class PublisherOfDifferentType(Exception): """ ...
34.166667
103
0.670732
a1d328822ef3eb860e84a3daaec90e8f775ec21c
4,399
py
Python
disas_to_files.py
CarveSystems/banjo
2ed32d4e315de4b82dee1fbdcc307ec2491702f7
[ "MIT" ]
30
2020-02-03T05:04:16.000Z
2022-02-03T09:59:58.000Z
disas_to_files.py
CarveSystems/banjo
2ed32d4e315de4b82dee1fbdcc307ec2491702f7
[ "MIT" ]
29
2020-02-04T00:41:24.000Z
2021-04-05T23:31:06.000Z
disas_to_files.py
CarveSystems/banjo
2ed32d4e315de4b82dee1fbdcc307ec2491702f7
[ "MIT" ]
2
2020-06-11T18:22:23.000Z
2020-11-06T12:36:32.000Z
#!/usr/bin/env python3.8 import argparse from pathlib import Path from typing import TextIO from android.dex import DexClassDef, DexEncodedMethod, DexFile, FileOffset, ValueType from android.smali import disassemble, endian_swap_shorts THROW = False def write_method(df: DexFile, f: TextIO, meth: DexEncodedMethod) -...
37.598291
195
0.564446
21c3a2e89fea587568fe7cbd4703a515b7c67d7a
1,366
py
Python
hands_on_machine_learning_with_scikit_learn_&_tensorflow/2_end_to_end_machine_learning_project/exercises/3.py
HuangStomach/machine-learning
47689469c431e2a833437b38832d3fdceda7b2b2
[ "MIT" ]
null
null
null
hands_on_machine_learning_with_scikit_learn_&_tensorflow/2_end_to_end_machine_learning_project/exercises/3.py
HuangStomach/machine-learning
47689469c431e2a833437b38832d3fdceda7b2b2
[ "MIT" ]
null
null
null
hands_on_machine_learning_with_scikit_learn_&_tensorflow/2_end_to_end_machine_learning_project/exercises/3.py
HuangStomach/machine-learning
47689469c431e2a833437b38832d3fdceda7b2b2
[ "MIT" ]
null
null
null
import Base import numpy as np from sklearn.pipeline import Pipeline from sklearn.base import BaseEstimator, TransformerMixin from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import GridSearchCV param_grid = [ {'n_estimators': [3, 10, 30], 'max_features': [2, 4, 6, 8]}, {'bootst...
35.025641
117
0.741581
c139c3782024e8f77c5eab53b1e8a91205d19cbb
1,673
py
Python
Livid_CodeRemoteScriptLinked/ShiftableTranslatorComponent.py
thomasf/LiveRemoteScripts
866330653e1561a140e076c9a7ae64dd486e5692
[ "MIT" ]
25
2015-02-02T21:41:51.000Z
2022-02-19T13:08:53.000Z
Livid_CodeRemoteScriptLinked/ShiftableTranslatorComponent.py
thomasf/LiveRemoteScripts
866330653e1561a140e076c9a7ae64dd486e5692
[ "MIT" ]
null
null
null
Livid_CodeRemoteScriptLinked/ShiftableTranslatorComponent.py
thomasf/LiveRemoteScripts
866330653e1561a140e076c9a7ae64dd486e5692
[ "MIT" ]
13
2015-10-25T04:44:09.000Z
2020-03-01T18:02:27.000Z
# emacs-mode: -*- python-*- # -*- coding: utf-8 -*- from _Framework.ChannelTranslationSelector import ChannelTranslationSelector from _Framework.ButtonElement import ButtonElement from _Framework.MixerComponent import MixerComponent class ShiftableTranslatorComponent(ChannelTranslationSelector): ' Class that tr...
28.355932
98
0.683204
7c054693b6f20051f38b4226d9d5625a4e5e68e5
989
py
Python
ue4docker/infrastructure/DarwinUtils.py
Wadimich/ue4-docker
01ef4af09cf8e7b9e845203031b2bed3db06034b
[ "MIT" ]
1
2021-05-19T16:41:04.000Z
2021-05-19T16:41:04.000Z
ue4docker/infrastructure/DarwinUtils.py
Wadimich/ue4-docker
01ef4af09cf8e7b9e845203031b2bed3db06034b
[ "MIT" ]
null
null
null
ue4docker/infrastructure/DarwinUtils.py
Wadimich/ue4-docker
01ef4af09cf8e7b9e845203031b2bed3db06034b
[ "MIT" ]
null
null
null
from packaging import version import os, platform class DarwinUtils(object): @staticmethod def minimumRequiredVersion(): ''' Returns the minimum required version of macOS, which is 10.10.3 Yosemite (10.10.3 is the minimum required version for Docker for Mac, as per: <https://store.docker.com/editions/co...
25.358974
108
0.721941
06f1b5d7aa2a0b2a5ca0ed5958f9e5e043a0cd09
815
py
Python
attached/rotateL90.py
yougikou/yougikou.github.io
a8ebb2a8e525e735806ea6d8a8a7f89fbf0305c1
[ "Apache-2.0" ]
1
2022-01-25T17:24:05.000Z
2022-01-25T17:24:05.000Z
attached/rotateL90.py
yougikou/yougikou.github.io
a8ebb2a8e525e735806ea6d8a8a7f89fbf0305c1
[ "Apache-2.0" ]
6
2020-05-06T23:36:55.000Z
2021-11-02T10:46:11.000Z
attached/rotateL90.py
yougikou/yougikou.github.io
a8ebb2a8e525e735806ea6d8a8a7f89fbf0305c1
[ "Apache-2.0" ]
null
null
null
import sys, os, traceback, time from pdfrw import PdfReader, PdfWriter, PageMerge def rotate(file): inpfn = file outfn = 'out\\' + os.path.basename(inpfn) trailer = PdfReader(inpfn) outdata = PdfWriter(outfn) for page in trailer.pages: page.Rotate = (int(page.inheritable.Rotate o...
28.103448
70
0.56319
861a375f4b2568527b271cf92dc06077c793883a
2,237
py
Python
examples/oscillator_sketch1.py
rddaz2013/pysketcher
9d4079baf0aa04f8fa80dc6edcf03bf1c14f70a4
[ "MIT" ]
27
2020-09-03T16:59:32.000Z
2022-03-11T08:21:25.000Z
examples/oscillator_sketch1.py
ReblochonMasque/pysketcher-1
9e804f4855edc6962b68e92091f35c2e960df813
[ "MIT" ]
395
2020-09-05T06:32:54.000Z
2022-03-31T12:06:55.000Z
examples/oscillator_sketch1.py
ReblochonMasque/pysketcher-1
9e804f4855edc6962b68e92091f35c2e960df813
[ "MIT" ]
4
2021-04-19T09:23:06.000Z
2021-11-12T20:21:30.000Z
"""Draw mechanical vibration system.""" import numpy as np import pysketcher as ps from pysketcher.backend.matplotlib import MatplotlibBackend L = 12.0 H = L / 6 W = L / 6 x_max = L x = 0 def make_dashpot(x): d_start = ps.Point(-L, 2 * H) d = ps.Dashpot( start=d_start, total_length=L + x, ...
25.420455
78
0.548949
e9bb61eb531b1a35cddc653fa61fd199f67c8885
16,903
py
Python
HomeworkAssignment_3B/hyperparameterOptimization.py
paoloBerizzi/data_mining_course
306fc42753fc821fd589c485572fc2ff1eca12e6
[ "MIT" ]
null
null
null
HomeworkAssignment_3B/hyperparameterOptimization.py
paoloBerizzi/data_mining_course
306fc42753fc821fd589c485572fc2ff1eca12e6
[ "MIT" ]
null
null
null
HomeworkAssignment_3B/hyperparameterOptimization.py
paoloBerizzi/data_mining_course
306fc42753fc821fd589c485572fc2ff1eca12e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Group 58 Andrea Favia Paolo Berizzi Tristan Tomilin Aletta Tordai Eliza Starr """ import numpy as np import pandas as pd from sklearn.preprocessing import MinMaxScaler import plotly.express as px import matplotlib.pyplot as plt from plotly.offline import plot import p...
36.825708
158
0.5938
9dc6820aae9fe8aecf64f28913835882bcbbe19d
604
py
Python
temboo/core/Library/Google/ComputeEngine/Routes/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Google/ComputeEngine/Routes/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Google/ComputeEngine/Routes/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.Google.ComputeEngine.Routes.DeleteRoute import DeleteRoute, DeleteRouteInputSet, DeleteRouteResultSet, DeleteRouteChoreographyExecution from temboo.Library.Google.ComputeEngine.Routes.GetRoute import GetRoute, GetRouteInputSet, GetRouteResultSet, GetRouteChoreographyExecution from temboo.Library.Goo...
120.8
155
0.900662
bbe2126d878a935ac888e6141287a01c1e91f51f
87
py
Python
cowsay/apps.py
JonnySueck/Cowsay
df9815c5d35c280aee176919dca021dd6d2742d9
[ "MIT" ]
null
null
null
cowsay/apps.py
JonnySueck/Cowsay
df9815c5d35c280aee176919dca021dd6d2742d9
[ "MIT" ]
null
null
null
cowsay/apps.py
JonnySueck/Cowsay
df9815c5d35c280aee176919dca021dd6d2742d9
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CowsayConfig(AppConfig): name = 'cowsay'
14.5
33
0.747126
0edeee126975b849dadb38d01ef20f13e633120e
31
py
Python
codewars/python/mexican_wave.py
bernardosequeir/CTFfiles
36a6ceba49d9a9019056d3669c5e8f84aa83b618
[ "MIT" ]
null
null
null
codewars/python/mexican_wave.py
bernardosequeir/CTFfiles
36a6ceba49d9a9019056d3669c5e8f84aa83b618
[ "MIT" ]
5
2020-09-23T18:28:25.000Z
2020-09-23T18:28:41.000Z
codewars/python/mexican_wave.py
bernardosequeir/CTFSolutions
503944617cb18826d12ab98fa33fd761e791328a
[ "MIT" ]
null
null
null
def wave(word): word_arr =
15.5
15
0.612903
245f76c3df378210221c38f10df04e511dae6c52
656
py
Python
extract_image.py
foamliu/Video-Matching
09bd932156c5435ae2ef9fdaad6bf1e9190205a4
[ "MIT" ]
13
2019-07-31T09:52:34.000Z
2021-11-29T09:24:50.000Z
extract_image.py
foamliu/Video-Matching
09bd932156c5435ae2ef9fdaad6bf1e9190205a4
[ "MIT" ]
1
2020-10-28T07:56:37.000Z
2020-10-28T07:56:37.000Z
extract_image.py
foamliu/Video-Matching
09bd932156c5435ae2ef9fdaad6bf1e9190205a4
[ "MIT" ]
3
2019-09-06T13:53:54.000Z
2020-12-08T06:46:11.000Z
import os import cv2 as cv from tqdm import tqdm if __name__ == "__main__": files = [f for f in os.listdir('video') if f.endswith('.mp4')] print('num_files: ' + str(len(files))) folder = 'v_images' if not os.path.isdir(folder): os.makedirs(folder) idx = 0 for file in tqdm(files): ...
22.62069
66
0.554878
5859817b5c2f2489dbc506d2192dd77c26abc196
4,343
py
Python
code/plot_precipitation_climatology_final.py
jonnyhtw/python-aos-lesson
aac787af9fd752498a3ea85ca357997961294f24
[ "CC-BY-4.0" ]
2
2022-01-12T02:06:36.000Z
2022-02-09T22:37:36.000Z
code/plot_precipitation_climatology_final.py
jonnyhtw/python-aos-lesson
aac787af9fd752498a3ea85ca357997961294f24
[ "CC-BY-4.0" ]
null
null
null
code/plot_precipitation_climatology_final.py
jonnyhtw/python-aos-lesson
aac787af9fd752498a3ea85ca357997961294f24
[ "CC-BY-4.0" ]
3
2022-01-12T02:02:45.000Z
2022-02-02T00:35:57.000Z
import pdb import defopt import numpy as np import matplotlib.pyplot as plt import xarray as xr import cartopy.crs as ccrs import cmocean import cmdline_provenance as cmdprov from typing import Literal def convert_pr_units(darray): """Convert kg m-2 s-1 to mm day-1. Args: darray (xarray.DataArray)...
31.244604
114
0.599355
f56bb652b08c210ab42494151b7694f21565f895
1,682
py
Python
data_providers/ud_pos/pos.py
deepmipt/neural-state-machines
93e3cdafa2989d017fe89e63cfd9b889b7db90af
[ "Apache-2.0" ]
5
2017-11-26T10:53:04.000Z
2020-05-19T16:30:07.000Z
data_providers/ud_pos/pos.py
deepmipt/neural-state-machines
93e3cdafa2989d017fe89e63cfd9b889b7db90af
[ "Apache-2.0" ]
null
null
null
data_providers/ud_pos/pos.py
deepmipt/neural-state-machines
93e3cdafa2989d017fe89e63cfd9b889b7db90af
[ "Apache-2.0" ]
2
2019-11-11T09:05:14.000Z
2019-11-22T14:34:48.000Z
import glob import os import tarfile from utils.data import download, is_done, mark_done from .conllu_parser import read_conllu_file, get_pos_tags def build(datapath='downloads'): result_path = os.path.join(datapath, 'ud-treebanks-v2.0') if not is_done(result_path): print('Building pos') fna...
27.129032
98
0.650416
8a0e0ce7ab912a6414c0429c888e931bd52b0eab
1,374
py
Python
tests/test_tools.py
ggarrett13/rever
16b9345b94d38aedb570af426d7ae135f7d69c12
[ "BSD-3-Clause" ]
66
2017-11-28T03:25:15.000Z
2022-03-25T20:22:45.000Z
tests/test_tools.py
ggarrett13/rever
16b9345b94d38aedb570af426d7ae135f7d69c12
[ "BSD-3-Clause" ]
181
2017-11-11T20:48:26.000Z
2022-03-06T18:34:54.000Z
tests/test_tools.py
ggarrett13/rever
16b9345b94d38aedb570af426d7ae135f7d69c12
[ "BSD-3-Clause" ]
29
2018-01-08T18:44:42.000Z
2022-03-09T02:47:31.000Z
"""Rever tools tests""" import os import tempfile import pytest from rever.tools import indir, render_authors, hash_url, replace_in_file @pytest.mark.parametrize('inp, pattern, new, leading_whitespace, exp', [ ('__version__ = "wow.mom"', r'__version__\s*=.*', '__version__ = "WAKKA"', True, '__version__ = "W...
29.869565
113
0.614993
a61808966ca7a3f4bf64d72240ef3708ff09b900
19,908
py
Python
src/STQLListener.py
andersonjwan/tltk-mtl-ext
a4f0314df6c55d532b7f9d169b6d08bff3811ef3
[ "BSD-3-Clause" ]
1
2020-12-11T21:32:46.000Z
2020-12-11T21:32:46.000Z
src/STQLListener.py
andersonjwan/tltk-mtl-ext
a4f0314df6c55d532b7f9d169b6d08bff3811ef3
[ "BSD-3-Clause" ]
null
null
null
src/STQLListener.py
andersonjwan/tltk-mtl-ext
a4f0314df6c55d532b7f9d169b6d08bff3811ef3
[ "BSD-3-Clause" ]
null
null
null
# Generated from STQL.g4 by ANTLR 4.8 from antlr4 import * if __name__ is not None and "." in __name__: from .STQLParser import STQLParser else: from STQLParser import STQLParser # This class defines a complete listener for a parse tree produced by STQLParser. class STQLListener(ParseTreeListener): # Ente...
33.346734
94
0.744977
a9912d91f371b8beccc2952466c008257ac5ea49
224
py
Python
hbaselines/algorithms/__init__.py
reufko/h-baselines
5c5522b096ddcf3124ff2fcbfb6eb7fa4fc0fb57
[ "MIT" ]
186
2019-01-21T10:37:11.000Z
2022-03-22T19:04:07.000Z
hbaselines/algorithms/__init__.py
ahlane/h-baselines
767eb9a105deb0898248dcd7dbf2f118116cdbfa
[ "MIT" ]
214
2018-10-17T06:53:22.000Z
2022-02-09T23:59:03.000Z
hbaselines/algorithms/__init__.py
ahlane/h-baselines
767eb9a105deb0898248dcd7dbf2f118116cdbfa
[ "MIT" ]
37
2019-07-12T01:44:08.000Z
2022-03-29T06:00:15.000Z
"""Init script for the algorithms submodule.""" from hbaselines.algorithms.off_policy import OffPolicyRLAlgorithm from hbaselines.algorithms.rl_algorithm import RLAlgorithm __all__ = ["OffPolicyRLAlgorithm", "RLAlgorithm"]
37.333333
65
0.830357
ddc1577f38e76d32d6213737c339979842b17d92
11,995
py
Python
tests/benchmarks/pybench/Unicode.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
tests/benchmarks/pybench/Unicode.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
tests/benchmarks/pybench/Unicode.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
# Copyright 2022, Kay Hayen, mailto:kay.hayen@gmail.com # # Python test originally created or extracted from other peoples work. The # parts from me are licensed as below. It is at least Free Software where # it's copied from other people. In these cases, that will normally be # indicated. # # L...
21.343416
78
0.379575
a1656962fd3b906e7ddb9327c7751f6e2f9b03f1
3,699
py
Python
playframework-dist/play-1.1/python/Lib/imghdr.py
ericlink/adms-server
245f6d38197f195fd0cae8b93718f9ffcffb206a
[ "MIT" ]
1
2015-05-21T20:00:12.000Z
2015-05-21T20:00:12.000Z
playframework-dist/play-1.1/python/Lib/imghdr.py
ericlink/adms-server
245f6d38197f195fd0cae8b93718f9ffcffb206a
[ "MIT" ]
1
2019-08-16T12:59:01.000Z
2019-08-18T06:36:47.000Z
playframework-dist/play-1.1/python/Lib/imghdr.py
ericlink/adms-server
245f6d38197f195fd0cae8b93718f9ffcffb206a
[ "MIT" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
"""Recognize image file formats based on their first few bytes.""" __all__ = ["what"] #-------------------------# # Recognize image headers # #-------------------------# def what(file, h=None): if h is None: if type(file) == type(''): f = open(file, 'rb') h = f.read(32...
22.833333
67
0.458773
233a16bdf8d4409198c2334da538a256d908452b
13,653
py
Python
templates/explorer/explorer_test.py
threefoldtoken/0-templates
0c8817c824136d7745b9e8db55485fc568976015
[ "Apache-2.0" ]
null
null
null
templates/explorer/explorer_test.py
threefoldtoken/0-templates
0c8817c824136d7745b9e8db55485fc568976015
[ "Apache-2.0" ]
30
2018-03-08T13:23:00.000Z
2018-07-23T09:48:20.000Z
templates/explorer/explorer_test.py
threefoldtoken/0-templates
0c8817c824136d7745b9e8db55485fc568976015
[ "Apache-2.0" ]
2
2018-07-26T14:57:09.000Z
2019-06-12T22:57:07.000Z
from unittest import TestCase from unittest.mock import MagicMock, patch, call import tempfile import shutil import os import pytest from js9 import j #from explorer import Explorer, CONTAINER_TEMPLATE_UID from zerorobot import service_collection as scol from zerorobot import config, template_collection from zerorobo...
37.508242
142
0.643155