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
0002f8c21d9b96b985239c11acf1cad6de30cc26
2,867
py
Python
conanfile.py
bincrafters/conan-libglvnd
a58c2a55a807b71a704b5224e59704bfc5bb32d8
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-libglvnd
a58c2a55a807b71a704b5224e59704bfc5bb32d8
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-libglvnd
a58c2a55a807b71a704b5224e59704bfc5bb32d8
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools import os class LibnameConan(ConanFile): name = "libname" version = "0.0.0" description = "Keep it short" # topics can get used for searches, GitHub topics, Bintray tags etc. Add here keywords about the library topics = ("conan", "libname", "logging") ...
40.380282
125
0.658528
0e6f2b35261f302e36f7b78504d1c15bdb70b4f7
269
py
Python
pretix_stretchgoals/json.py
pc-coholic/pretix-stretchgoals
8c8af243d48e57106085ddd11b648bd2027bb524
[ "Apache-2.0" ]
5
2017-08-21T23:35:30.000Z
2020-04-26T16:08:04.000Z
pretix_stretchgoals/json.py
pc-coholic/pretix-stretchgoals
8c8af243d48e57106085ddd11b648bd2027bb524
[ "Apache-2.0" ]
5
2017-08-09T13:34:42.000Z
2020-12-21T18:18:43.000Z
pretix_stretchgoals/json.py
pc-coholic/pretix-stretchgoals
8c8af243d48e57106085ddd11b648bd2027bb524
[ "Apache-2.0" ]
2
2018-12-17T21:33:31.000Z
2020-12-21T15:06:20.000Z
import decimal from django.core.serializers.json import DjangoJSONEncoder class ChartJSONEncoder(DjangoJSONEncoder): def default(self, obj): if isinstance(obj, decimal.Decimal): return round(float(obj), 2) return super().default(obj)
24.454545
58
0.70632
e80554b397a6311e6e9539f8370f8c37a21c0e8e
223
py
Python
tests/test_version.py
quaternionmedia/fastapi-crudrouter
9a7be3f1c864be641309fdeb2b8b67915f58e781
[ "MIT" ]
686
2020-12-30T03:55:35.000Z
2022-03-31T22:47:42.000Z
tests/test_version.py
quaternionmedia/fastapi-crudrouter
9a7be3f1c864be641309fdeb2b8b67915f58e781
[ "MIT" ]
129
2020-12-29T09:57:20.000Z
2022-03-31T22:51:34.000Z
tests/test_version.py
quaternionmedia/fastapi-crudrouter
9a7be3f1c864be641309fdeb2b8b67915f58e781
[ "MIT" ]
91
2021-01-06T14:55:04.000Z
2022-03-31T22:43:48.000Z
def test_version(): import fastapi_crudrouter assert type(fastapi_crudrouter.__version__) is str def test_version_file(): from fastapi_crudrouter import _version assert type(_version.__version__) is str
20.272727
54
0.775785
da98c47a52be48673a74da76ff6f2c5329ba67d0
578
py
Python
i3alter/i3alter.py
kamyabzad/i3alter
f2bcb40f8a5f80cf8f9938f67fabbaf6b99af230
[ "MIT" ]
1
2021-08-06T18:30:22.000Z
2021-08-06T18:30:22.000Z
i3alter/i3alter.py
kamyabzad/i3alter
f2bcb40f8a5f80cf8f9938f67fabbaf6b99af230
[ "MIT" ]
null
null
null
i3alter/i3alter.py
kamyabzad/i3alter
f2bcb40f8a5f80cf8f9938f67fabbaf6b99af230
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import asyncio from i3alter.i3con import I3Con from i3alter.keycapture import KeyCapture async def main_async(): i3con = I3Con() i3task = asyncio.create_task(i3con.run()) def on_switch(switch_count: int): asyncio.run(i3con.switch_workspace(switch_count)) def on_finish...
20.642857
57
0.714533
590e29f3274e3ea59590cfb6ee8d997e9512f21f
727
py
Python
cwbot/kolextra/request/ClanConsultRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
cwbot/kolextra/request/ClanConsultRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
cwbot/kolextra/request/ClanConsultRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
from kol.request.GenericRequest import GenericRequest class ClanConsultRequest(GenericRequest): def __init__(self, session, playerId): super(ClanConsultRequest, self).__init__(session) self.url = session.serverURL + 'clan_viplounge.php' self.requestData['pwd'] = session.pwd self.req...
42.764706
59
0.649243
3dfef01d63c04360fa267522d5b97b66bc0cebf6
40,163
py
Python
cart_venv/Lib/site-packages/tensorflow_core/contrib/tensor_forest/python/ops/gen_stats_ops.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
null
null
null
cart_venv/Lib/site-packages/tensorflow_core/contrib/tensor_forest/python/ops/gen_stats_ops.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
null
null
null
cart_venv/Lib/site-packages/tensorflow_core/contrib/tensor_forest/python/ops/gen_stats_ops.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
null
null
null
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _c...
40.65081
1,553
0.697607
c91909e8fd139394ed3bc75274370a0e726a7d87
3,944
py
Python
features/steps/vm.py
eblade/articulate
082bc635832d33130a7929eb144f80ad5c803972
[ "MIT" ]
null
null
null
features/steps/vm.py
eblade/articulate
082bc635832d33130a7929eb144f80ad5c803972
[ "MIT" ]
null
null
null
features/steps/vm.py
eblade/articulate
082bc635832d33130a7929eb144f80ad5c803972
[ "MIT" ]
null
null
null
from behave import * from hamcrest import assert_that, equal_to, has_key, not_, is_ from mock import Mock from io import StringIO from articulate.vm import evaluate, resolve, substitute, DEBUG from articulate.scope import Scope from articulate.redirect import redirector @given('a VM') def step_impl(context): con...
31.301587
96
0.726927
d9daa2148a018e8f85519b4fd4f0e0c9103bc778
1,179
py
Python
Lagrange.py
GJAnsah/Lagrangian
8619f905fff0943242e3069404f49d55d8ca3f5a
[ "MIT" ]
null
null
null
Lagrange.py
GJAnsah/Lagrangian
8619f905fff0943242e3069404f49d55d8ca3f5a
[ "MIT" ]
null
null
null
Lagrange.py
GJAnsah/Lagrangian
8619f905fff0943242e3069404f49d55d8ca3f5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 16 20:23:07 2021 @author: gansa001 """ from sympy import * import math def delta(j,a,x,N): ''' Parameters ---------- j : int. the jth lagrange polynomial a : sympy symbol the dependent term in the lagrange polynomial x : list ...
16.842857
66
0.541985
826183f3570792325410f3599c291108f14f9b58
750
py
Python
setup.py
igorexa256/mloyalty
e335bc30095f68733a5b2bb9c2d729c831813d2a
[ "MIT" ]
null
null
null
setup.py
igorexa256/mloyalty
e335bc30095f68733a5b2bb9c2d729c831813d2a
[ "MIT" ]
null
null
null
setup.py
igorexa256/mloyalty
e335bc30095f68733a5b2bb9c2d729c831813d2a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='mloyalty', version='0.2.4', packages=find_packages(), url='https://github.com/igorexa256/mloyalty', license='MIT', author='Igor Belyansky', author_email='igorexa256@...
30
70
0.665333
ce4ad1c4417bd355f3cd8daecf1f2f6de3e0ddfd
10,463
py
Python
dev_tools/shell_tools.py
qumoptly/OpenFermion
9851b393698da29b63229e0f8457578ac5675a01
[ "Apache-2.0" ]
1,291
2017-09-27T22:00:26.000Z
2022-03-25T14:34:50.000Z
dev_tools/shell_tools.py
qumoptly/OpenFermion
9851b393698da29b63229e0f8457578ac5675a01
[ "Apache-2.0" ]
521
2017-09-27T21:36:17.000Z
2022-03-02T12:45:56.000Z
dev_tools/shell_tools.py
qumoptly/OpenFermion
9851b393698da29b63229e0f8457578ac5675a01
[ "Apache-2.0" ]
365
2017-09-27T21:25:38.000Z
2022-03-29T19:28:46.000Z
# Copyright 2018 The Cirq Developers # # 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 agreed to in ...
38.326007
79
0.640638
2e956cb462bfb166d76d398c7015964bc704854d
12,819
py
Python
vendor/lib/python2.7/site-packages/mercurial/copies.py
ddollar/gobuild
c1b0e52ab6849a13a95a3fdae4913b925f658272
[ "MIT" ]
3
2015-11-05T07:42:43.000Z
2017-05-29T22:59:47.000Z
vendor/lib/python2.7/site-packages/mercurial/copies.py
ddollar/gobuild
c1b0e52ab6849a13a95a3fdae4913b925f658272
[ "MIT" ]
null
null
null
vendor/lib/python2.7/site-packages/mercurial/copies.py
ddollar/gobuild
c1b0e52ab6849a13a95a3fdae4913b925f658272
[ "MIT" ]
null
null
null
# copies.py - copy detection for Mercurial # # Copyright 2008 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. import util import heapq def _nonoverlap(d1, d2, d3): "Return list of elements in d1...
31.496314
77
0.542788
a9680922eb52b6d7d99e7075a5702fc85f740e4f
392
py
Python
04_04_dice.py
simonmonk/prog_pico_ed1
36e70f88ea7dc73e75399cd390d1cc2023843971
[ "MIT" ]
6
2021-05-08T13:19:33.000Z
2022-03-20T08:29:44.000Z
04_04_dice.py
simonmonk/prog_pico_ed1
36e70f88ea7dc73e75399cd390d1cc2023843971
[ "MIT" ]
1
2021-03-05T20:27:15.000Z
2021-11-17T09:07:43.000Z
04_04_dice.py
simonmonk/prog_pico_ed1
36e70f88ea7dc73e75399cd390d1cc2023843971
[ "MIT" ]
2
2021-07-02T15:19:37.000Z
2021-10-06T00:53:25.000Z
from machine import Pin from utime import sleep from random import randint led = Pin(25, Pin.OUT) def throw_dice(): return randint(1, 6) def blink(times, delay): for x in range(1, times+1): led.on() sleep(delay) led.off() sleep(delay) while True: input() dice_...
16.333333
31
0.607143
467e963c08f31902e6fe78f146365dbbdf9bf192
1,709
py
Python
app/core/migrations/0001_initial.py
proffesboris/profilies-rest-api
613c018213e536a719e178c6170ef98a6923accd
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
proffesboris/profilies-rest-api
613c018213e536a719e178c6170ef98a6923accd
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
proffesboris/profilies-rest-api
613c018213e536a719e178c6170ef98a6923accd
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-01-12 05:38 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
e2021db6bda03ba63370c86c8b4e5baec8a1a677
135
py
Python
Chapter09/Ch09_R06/some_model_ch09r06/__manifest__.py
PacktPublishing/Odoo-11-Development-Coobook-Second-Edition
bb462f8511a32f6b758b71c9261a5213563a0024
[ "MIT" ]
50
2018-01-28T05:58:03.000Z
2022-03-03T03:58:08.000Z
Chapter09/Ch09_R06/some_model_ch09r06/__manifest__.py
PacktPublishing/Odoo-11-Development-Coobook-Second-Edition
bb462f8511a32f6b758b71c9261a5213563a0024
[ "MIT" ]
null
null
null
Chapter09/Ch09_R06/some_model_ch09r06/__manifest__.py
PacktPublishing/Odoo-11-Development-Coobook-Second-Edition
bb462f8511a32f6b758b71c9261a5213563a0024
[ "MIT" ]
39
2018-01-22T08:59:37.000Z
2020-08-31T13:36:15.000Z
{ 'name': 'Chapter 09, Recipe 06 code', 'summary': 'Call onchange methods on the server side', 'depends': ['my_module'], }
22.5
58
0.607407
520c89f2d73dfb64caa64b1f2e442a7eb3e1a55b
5,306
py
Python
examples/impala/haiku_nets.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
1,647
2020-02-21T14:24:31.000Z
2022-03-31T04:31:34.000Z
examples/impala/haiku_nets.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
169
2020-02-21T14:07:25.000Z
2022-03-31T13:08:28.000Z
examples/impala/haiku_nets.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
159
2020-02-21T19:31:02.000Z
2022-03-29T12:41:35.000Z
# Copyright 2020 DeepMind Technologies Limited. 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 ...
30.67052
80
0.641161
456e736936dac12c9a5b80ecba0bbded78f7a969
3,931
py
Python
projekt/main.py
luk9400/metaheurystyczne
1801384cb4b6f15e1d0452bd9854cb075349bb7d
[ "MIT" ]
null
null
null
projekt/main.py
luk9400/metaheurystyczne
1801384cb4b6f15e1d0452bd9854cb075349bb7d
[ "MIT" ]
null
null
null
projekt/main.py
luk9400/metaheurystyczne
1801384cb4b6f15e1d0452bd9854cb075349bb7d
[ "MIT" ]
null
null
null
#!usr/bin/python from time import time from math import exp, log from sys import stderr from random import randrange, random, choice, choices, randint directions = { "U": (-1, 0), "R": (0, 1), "D": (1, 0), "L": (0, -1), } def find_position(n, m, grid): for i in range(n): for j in range(...
24.416149
87
0.483592
11a0f325ed3520367eae16e8400a056c8f2f0839
1,408
py
Python
docs/conf.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
7
2015-03-17T18:29:14.000Z
2020-01-03T06:45:43.000Z
docs/conf.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
1
2015-06-04T03:06:46.000Z
2015-06-04T03:06:46.000Z
docs/conf.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
2
2015-06-03T16:53:11.000Z
2021-12-16T13:38:23.000Z
#!/usr/bin/env python3 extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', 'sphinxcontrib.asyncio', 'sphinxcontrib.httpdomain', ] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = 'AIO Consul' copyri...
21.333333
73
0.660511
3df0d8f47bc25435246c47aed9df757ec943ab98
2,375
py
Python
pyscf/nao/test/test_0008_log_interp.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-05-28T05:25:56.000Z
2019-11-09T02:16:43.000Z
pyscf/nao/test/test_0008_log_interp.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-09-16T17:58:31.000Z
2019-09-22T17:26:01.000Z
pyscf/nao/test/test_0008_log_interp.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
1
2019-11-09T02:13:16.000Z
2019-11-09T02:13:16.000Z
# Copyright 2014-2018 The PySCF Developers. 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 appl...
37.109375
94
0.668632
8e2f6f504085864509fd4ef430479722c18a94d8
1,226
py
Python
book_sites/book/migrations/0024_rating.py
Michelle-Hung/Books
4f38307974cdae03f7f104e6ad1aa3d051979847
[ "MIT" ]
null
null
null
book_sites/book/migrations/0024_rating.py
Michelle-Hung/Books
4f38307974cdae03f7f104e6ad1aa3d051979847
[ "MIT" ]
null
null
null
book_sites/book/migrations/0024_rating.py
Michelle-Hung/Books
4f38307974cdae03f7f104e6ad1aa3d051979847
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-03-10 08:12 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
40.866667
149
0.627243
e720948d9aa29e9f7126ebe379bd4ed3fa201b7e
397
py
Python
metroclima/metroclima/wsgi.py
lapat-iag-usp/metroclima-masp
90b0d5f14e1aa474cc77b5027f5ffea42d28e18e
[ "MIT" ]
null
null
null
metroclima/metroclima/wsgi.py
lapat-iag-usp/metroclima-masp
90b0d5f14e1aa474cc77b5027f5ffea42d28e18e
[ "MIT" ]
2
2022-01-21T17:48:42.000Z
2022-01-24T20:21:26.000Z
metroclima/metroclima/wsgi.py
lapat-iag-usp/metroclima-masp
90b0d5f14e1aa474cc77b5027f5ffea42d28e18e
[ "MIT" ]
null
null
null
""" WSGI config for metroclima project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
3460d695fbc32ec4c41ed7a58eb3960814fe9817
3,490
py
Python
pettingzoo/mpe/scenarios/simple_speaker_listener.py
MarioJayakumar/PettingZoo
0673d44c33ae1843a773babf5e6595baf8214664
[ "MIT" ]
1
2020-08-13T00:09:48.000Z
2020-08-13T00:09:48.000Z
pettingzoo/mpe/scenarios/simple_speaker_listener.py
KonstantinKlepikov/PettingZoo
34c4d38e8fbc1cd6ecbebe58176e6d39ba1645de
[ "MIT" ]
null
null
null
pettingzoo/mpe/scenarios/simple_speaker_listener.py
KonstantinKlepikov/PettingZoo
34c4d38e8fbc1cd6ecbebe58176e6d39ba1645de
[ "MIT" ]
1
2021-01-25T22:57:41.000Z
2021-01-25T22:57:41.000Z
import numpy as np from .._mpe_utils.core import World, Agent, Landmark from .._mpe_utils.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self): world = World() # set any world properties first world.dim_c = 3 num_landmarks = 3 world.collaborative ...
37.934783
98
0.59914
2b909984997be2ed903efb600963725537e0bf3f
1,340
py
Python
tests/simple/statistics.py
syurkevi/arrayfire-python
cd9847b4f65a3a51b0a2ace62d573ee9f76cdb5a
[ "BSD-3-Clause" ]
null
null
null
tests/simple/statistics.py
syurkevi/arrayfire-python
cd9847b4f65a3a51b0a2ace62d573ee9f76cdb5a
[ "BSD-3-Clause" ]
null
null
null
tests/simple/statistics.py
syurkevi/arrayfire-python
cd9847b4f65a3a51b0a2ace62d573ee9f76cdb5a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python ####################################################### # Copyright (c) 2015, ArrayFire # All rights reserved. # # This file is distributed under 3-clause BSD license. # The complete license agreement can be obtained at: # http://arrayfire.com/licenses/BSD-3-Clause ####################################...
27.916667
56
0.619403
7677fff7dc7bbde873c15b9a7a4dca19465346c9
1,201
py
Python
i3pystatus/updates/yay.py
fkusei/i3pystatus
177a00b8742996f2ad95cea298494fb8ec286bf2
[ "MIT" ]
413
2015-01-04T17:36:02.000Z
2022-01-29T03:26:37.000Z
i3pystatus/updates/yay.py
fkusei/i3pystatus
177a00b8742996f2ad95cea298494fb8ec286bf2
[ "MIT" ]
454
2015-01-01T13:44:46.000Z
2022-03-27T19:32:21.000Z
i3pystatus/updates/yay.py
fkusei/i3pystatus
177a00b8742996f2ad95cea298494fb8ec286bf2
[ "MIT" ]
237
2015-01-03T07:05:39.000Z
2022-03-27T12:36:28.000Z
from i3pystatus.core.command import run_through_shell from i3pystatus.updates import Backend class Yay(Backend): """ This module counts the available updates using yay. By default it will only count aur packages. Thus it can be used with the pacman backend like this: .. code-block:: python ...
26.688889
76
0.635304
5703d055082f53ecfc6253a857030569f6c1706e
27,799
py
Python
twilio/rest/api/v2010/account/usage/record/yearly.py
timgates42/twilio-python
ef29d03a4857b62b616df4a8f4f2b7c294afbb99
[ "MIT" ]
null
null
null
twilio/rest/api/v2010/account/usage/record/yearly.py
timgates42/twilio-python
ef29d03a4857b62b616df4a8f4f2b7c294afbb99
[ "MIT" ]
null
null
null
twilio/rest/api/v2010/account/usage/record/yearly.py
timgates42/twilio-python
ef29d03a4857b62b616df4a8f4f2b7c294afbb99
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import L...
46.254576
121
0.689449
9c05b5f5ed247111c6b9e86d3a1b7b0792c83b4f
5,543
py
Python
nidm/core/BIDS_Constants.py
albertcrowley/PyNIDM
6a9f364e294760698c30e2b7747b3d846be4e97e
[ "Apache-2.0" ]
null
null
null
nidm/core/BIDS_Constants.py
albertcrowley/PyNIDM
6a9f364e294760698c30e2b7747b3d846be4e97e
[ "Apache-2.0" ]
5
2019-05-19T15:22:47.000Z
2020-03-09T19:42:35.000Z
nidm/core/BIDS_Constants.py
albertcrowley/PyNIDM
6a9f364e294760698c30e2b7747b3d846be4e97e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' BIDS Terms -> NIDM-Exp Mappings @author: David Keator <dbkeator@uci.edu> ''' from . import Constants #BIDS dataset_description -> NIDM constants mappings dataset_description = { "BIDSVersion" : Constants.NIDM_PROJECT_IDENTIFIER, "Name" : Constants.NIDM_PROJECT_NAME, "Procedure" : C...
49.491071
94
0.74346
508a4d18b7336ff835da53347966827369e73578
18,619
py
Python
lib/networks/iCAN_ResNet50_VCOCO_NoAtt.py
WalterMa/iCAN
04c2fef5c49f26b4fc4039eabec51e963d75c07a
[ "MIT" ]
null
null
null
lib/networks/iCAN_ResNet50_VCOCO_NoAtt.py
WalterMa/iCAN
04c2fef5c49f26b4fc4039eabec51e963d75c07a
[ "MIT" ]
null
null
null
lib/networks/iCAN_ResNet50_VCOCO_NoAtt.py
WalterMa/iCAN
04c2fef5c49f26b4fc4039eabec51e963d75c07a
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow iCAN Bare # Licensed under The MIT License [see LICENSE for details] # Written by Wentao Ma # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import pr...
50.321622
120
0.576454
2c2e1b0eba5a10e5e6c4aba5f7b84a543f57dc11
3,815
py
Python
tests/unittests/models/tsm/test_tsm.py
jingkl/towhee
0fb473e0ad3046ad580dc9236a7618d516601f64
[ "Apache-2.0" ]
null
null
null
tests/unittests/models/tsm/test_tsm.py
jingkl/towhee
0fb473e0ad3046ad580dc9236a7618d516601f64
[ "Apache-2.0" ]
null
null
null
tests/unittests/models/tsm/test_tsm.py
jingkl/towhee
0fb473e0ad3046ad580dc9236a7618d516601f64
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Zilliz. 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 applicable law or agree...
37.038835
136
0.610223
aae4174c5f5fe2f2f5a896d3050dc5f33b424c8a
134
py
Python
src/electron/daemon/procedures/stat/script.py
jasonschmedes/resumedl
3cf2e9ae4a748504aa4b7832718097fda0246b65
[ "Unlicense", "MIT" ]
null
null
null
src/electron/daemon/procedures/stat/script.py
jasonschmedes/resumedl
3cf2e9ae4a748504aa4b7832718097fda0246b65
[ "Unlicense", "MIT" ]
3
2021-10-12T22:36:54.000Z
2022-03-25T18:57:53.000Z
src/electron/daemon/procedures/stat/script.py
jasonschmedes/resumedl
3cf2e9ae4a748504aa4b7832718097fda0246b65
[ "Unlicense", "MIT" ]
null
null
null
import os, json from pathlib import Path file = os.environ['REMOTEDL_STAT_FILE'] print(json.dumps({ 'size': os.stat(file).st_size }))
26.8
52
0.738806
464501397d9c41f9f7ed2f85240e3b74a4eea1ed
2,689
py
Python
minato_namikaze/botmain/bot/lib/classes/setup/support.py
Onii-Chan-Discord/yondaime-hokage
d6e75405a9d30b37bfb4fd588f02c0de813c92b1
[ "Apache-2.0" ]
1
2021-11-04T13:20:36.000Z
2021-11-04T13:20:36.000Z
minato_namikaze/bot_files/lib/classes/setup/support.py
ooliver1/yondaime-hokage
3552887dc022c8ace13de9dae01392b9471e5f58
[ "Apache-2.0" ]
null
null
null
minato_namikaze/bot_files/lib/classes/setup/support.py
ooliver1/yondaime-hokage
3552887dc022c8ace13de9dae01392b9471e5f58
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import menus from ...util import perms_dict, support from ..embed import Embed class Support(menus.Menu): def __init__(self, bot, timeout, channel): super().__init__(timeout=timeout) self.bot = bot self.channel = channel async def send_initial_message(...
42.015625
168
0.628486
0e7c004fdb6199336a5c504369b66dac66f3f2eb
158
py
Python
opencart_api/opencart_api/doctype/opencart_shipping_rule/test_opencart_shipping_rule.py
IP-CAM/erpnext-opencart-api
ecf5c400fa50229e7f0de83f175bb0f4c59ac925
[ "MIT" ]
null
null
null
opencart_api/opencart_api/doctype/opencart_shipping_rule/test_opencart_shipping_rule.py
IP-CAM/erpnext-opencart-api
ecf5c400fa50229e7f0de83f175bb0f4c59ac925
[ "MIT" ]
null
null
null
opencart_api/opencart_api/doctype/opencart_shipping_rule/test_opencart_shipping_rule.py
IP-CAM/erpnext-opencart-api
ecf5c400fa50229e7f0de83f175bb0f4c59ac925
[ "MIT" ]
1
2020-11-03T10:38:40.000Z
2020-11-03T10:38:40.000Z
import frappe import unittest test_records = frappe.get_test_records('Opencart Shipping Rule') class TestOpencartShippingRule(unittest.TestCase): pass
17.555556
64
0.816456
c0e1ce521869c48dd12e096a90ae497ee694b74a
2,562
py
Python
taco/cmds/taco.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
null
null
null
taco/cmds/taco.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
null
null
null
taco/cmds/taco.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
null
null
null
import click from taco import __version__ from taco.cmds.configure import configure_cmd from taco.cmds.farm import farm_cmd from taco.cmds.init import init_cmd from taco.cmds.keys import keys_cmd from taco.cmds.netspace import netspace_cmd from taco.cmds.plots import plots_cmd from taco.cmds.show import show_cmd from ...
31.243902
118
0.750195
913c8e5f023f9a58fec63f1511f0748970adf1b7
27,446
py
Python
src/protocol.py
gautam-kumar-22/PyBitmessage
c7d3784b808834a556ac41f92d0891395926ac1a
[ "MIT", "BSD-2-Clause-FreeBSD" ]
1
2021-06-12T05:04:29.000Z
2021-06-12T05:04:29.000Z
src/protocol.py
gautam-kumar-22/PyBitmessage
c7d3784b808834a556ac41f92d0891395926ac1a
[ "MIT", "BSD-2-Clause-FreeBSD" ]
null
null
null
src/protocol.py
gautam-kumar-22/PyBitmessage
c7d3784b808834a556ac41f92d0891395926ac1a
[ "MIT", "BSD-2-Clause-FreeBSD" ]
null
null
null
# pylint: disable=too-many-boolean-expressions,too-many-return-statements,too-many-locals,too-many-statements """ protocol.py =========== Low-level protocol-related functions. """ from __future__ import absolute_import import base64 from binascii import hexlify import hashlib import os import random import socket im...
40.243402
119
0.675654
5e60581ad5c964fc5ee5feee4f3991e31dcf9528
2,891
py
Python
allauth/socialaccount/providers/trainingpeaks/tests.py
farhoodva/django-allauth
0afcd79766a52d5c6fad26b8d3ea3512b8bc005a
[ "MIT" ]
1
2021-06-17T02:25:43.000Z
2021-06-17T02:25:43.000Z
allauth/socialaccount/providers/trainingpeaks/tests.py
farhoodva/django-allauth
0afcd79766a52d5c6fad26b8d3ea3512b8bc005a
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/trainingpeaks/tests.py
farhoodva/django-allauth
0afcd79766a52d5c6fad26b8d3ea3512b8bc005a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Run just this suite: python manage.py test allauth.socialaccount.providers.trainingpeaks.tests.TrainingPeaksTests """ from __future__ import unicode_literals from collections import namedtuple from django.contrib.auth.models import User from django.test.utils import override_settin...
33.616279
96
0.625389
0cb238b97106cdc496c062901bdd61e69ca9aa52
7,031
py
Python
modules/engines/unet_training_dict.py
kate-sann5100/tutorials
49e78ffeb7b0a473c9a74112ee4020610c5659e7
[ "Apache-2.0" ]
null
null
null
modules/engines/unet_training_dict.py
kate-sann5100/tutorials
49e78ffeb7b0a473c9a74112ee4020610c5659e7
[ "Apache-2.0" ]
null
null
null
modules/engines/unet_training_dict.py
kate-sann5100/tutorials
49e78ffeb7b0a473c9a74112ee4020610c5659e7
[ "Apache-2.0" ]
1
2022-01-31T04:44:23.000Z
2022-01-31T04:44:23.000Z
# Copyright 2020 MONAI Consortium # 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, s...
39.061111
115
0.662921
ff0f1585d9a29b1afe8216d2049467c24ee56887
2,020
py
Python
setup.py
Synchronicity89/CV
14f96f5ac0f11922ba4c6cbb83c4c301f6ce0eae
[ "Apache-2.0" ]
null
null
null
setup.py
Synchronicity89/CV
14f96f5ac0f11922ba4c6cbb83c4c301f6ce0eae
[ "Apache-2.0" ]
null
null
null
setup.py
Synchronicity89/CV
14f96f5ac0f11922ba4c6cbb83c4c301f6ce0eae
[ "Apache-2.0" ]
null
null
null
""" setup Gap-ML Copyright, 2018(c), Andrew Ferlitsch Autor: David Molina @virtualdvid """ from setuptools import setup, find_packages # setup components with open('README.md', 'r', encoding="utf-8") as f: long_description = f.read() install_requires = [ 'numpy', 'h5py', 'imutils', ...
30.606061
64
0.591089
e98babe9875aa8cb5183f623a8fd4b1e34359a07
1,777
py
Python
tests/expect-fail23/recipe-534161.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/expect-fail23/recipe-534161.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/expect-fail23/recipe-534161.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
#!/usr/bin/env python import os, shutil, sys try: mibsToCompile = sys.argv[1] except IndexError: print("addmibs.py - This program requires HP Systems Insight Manager") print(" to be installed.") print(" This program adds mib files in a directory to the") print(" ...
29.616667
81
0.636466
557383a8742a47551f84d7a25e2058e837bf288f
4,775
py
Python
analyticsapi/settings.py
srijitcoder/Market-X
3f98d7507b3d9442081ddcf7b6fe5094382652a6
[ "MIT" ]
null
null
null
analyticsapi/settings.py
srijitcoder/Market-X
3f98d7507b3d9442081ddcf7b6fe5094382652a6
[ "MIT" ]
3
2020-02-11T23:26:40.000Z
2021-06-10T18:52:39.000Z
analyticsapi/settings.py
srijitcoder/Market-X
3f98d7507b3d9442081ddcf7b6fe5094382652a6
[ "MIT" ]
1
2017-10-28T02:01:54.000Z
2017-10-28T02:01:54.000Z
""" Django settings for eventapi project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import o...
25
91
0.705969
ac497b5db1fcd5d334abb5d9c52f2c20d5ef0ee5
24,232
py
Python
admit/util/Table.py
astroumd/admit
bbf3d79bb6e1a6f7523553ed8ede0d358d106f2c
[ "MIT" ]
4
2017-03-01T17:26:28.000Z
2022-03-03T19:23:06.000Z
admit/util/Table.py
teuben/admit
1cae54d1937c9af3f719102838df716e7e6d655c
[ "MIT" ]
48
2016-10-04T01:25:33.000Z
2021-09-08T14:51:10.000Z
admit/util/Table.py
teuben/admit
1cae54d1937c9af3f719102838df716e7e6d655c
[ "MIT" ]
2
2016-11-10T14:10:22.000Z
2017-03-30T18:58:05.000Z
""" .. _Table-api: **Table** --- Raw tabular data base. ------------------------------------ This module defines the Table class for TABLE entries in BDPs. """ #system imports import numpy as np import xml.etree.cElementTree as et import copy import textwrap import ast # ADMIT imports from UtilBase impo...
32.309333
115
0.49187
6aa1e168397111ea5abf9a880d5826bb2302266e
3,645
py
Python
python-alb-asg/python_alb_asg/python_alb_asg_stack.py
hemanthkolla/cdk-templates
82853b4aaa261f8c7be125bb0f9694dc5df20470
[ "Apache-2.0" ]
117
2019-07-11T20:13:40.000Z
2022-03-26T03:12:04.000Z
python-alb-asg/python_alb_asg/python_alb_asg_stack.py
cruzantony/cdk-templates
4d1db7eb31336403c2ecd940c9b89ef34b7b42fc
[ "Apache-2.0" ]
58
2020-02-07T15:46:18.000Z
2021-09-01T13:43:58.000Z
python-alb-asg/python_alb_asg/python_alb_asg_stack.py
cruzantony/cdk-templates
4d1db7eb31336403c2ecd940c9b89ef34b7b42fc
[ "Apache-2.0" ]
25
2019-09-09T08:01:25.000Z
2022-02-10T22:17:48.000Z
from aws_cdk import (core) import aws_cdk.aws_ec2 as ec2 import aws_cdk.aws_iam as iam import aws_cdk.aws_elasticloadbalancingv2 as elbv2 import aws_cdk.aws_autoscaling as autoscaling class PythonAlbAsgStack(core.Stack): def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: super().__init...
39.619565
116
0.61262
de78d1a6a74878c2a617c1bd00235b340ff30b40
3,036
py
Python
src/pyams_chat/include.py
Py-AMS/pyams-chat
b85f423430365a636fd47d05e1f819ec1482b767
[ "ZPL-2.1" ]
null
null
null
src/pyams_chat/include.py
Py-AMS/pyams-chat
b85f423430365a636fd47d05e1f819ec1482b767
[ "ZPL-2.1" ]
null
null
null
src/pyams_chat/include.py
Py-AMS/pyams-chat
b85f423430365a636fd47d05e1f819ec1482b767
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
31.957895
94
0.682477
7b39270ae03e5e8891b5fb7b23554045ed314704
768
py
Python
ordered_map/__init__.py
jfjlaros/ordered-map
3059c09cffd8d3755af236c50b3bd251f224be12
[ "MIT" ]
2
2021-05-25T12:46:37.000Z
2021-05-30T09:30:17.000Z
ordered_map/__init__.py
jfjlaros/ordered-map
3059c09cffd8d3755af236c50b3bd251f224be12
[ "MIT" ]
null
null
null
ordered_map/__init__.py
jfjlaros/ordered-map
3059c09cffd8d3755af236c50b3bd251f224be12
[ "MIT" ]
null
null
null
from pkg_resources import get_distribution from .ordered_map import read, write def _get_metadata(name: str) -> str: pkg = get_distribution(__package__) for line in pkg.get_metadata_lines(pkg.PKG_INFO): if line.startswith('{}: '.format(name)): return line.split(': ')[1] return '' ...
25.6
75
0.66276
f4cee73c010fa797616f88acfeef239ab4f36674
4,251
py
Python
examples/rllib/figure_eight.py
alt113/flow-triangle-scenario
42451365c5760d5b6b7aa2507985652ec7ba9a72
[ "MIT" ]
null
null
null
examples/rllib/figure_eight.py
alt113/flow-triangle-scenario
42451365c5760d5b6b7aa2507985652ec7ba9a72
[ "MIT" ]
1
2021-12-13T20:03:01.000Z
2021-12-13T20:03:01.000Z
examples/rllib/figure_eight.py
alt113/flow-triangle-scenario
42451365c5760d5b6b7aa2507985652ec7ba9a72
[ "MIT" ]
null
null
null
"""Figure eight example.""" import json import ray try: from ray.rllib.agents.agent import get_agent_class except ImportError: from ray.rllib.agents.registry import get_agent_class from ray.tune import run_experiments from ray.tune.registry import register_env from flow.utils.registry import make_create_env ...
29.317241
79
0.674665
ac7dfad5f802e8fc36419cff3e66035ba6906c4c
1,503
py
Python
mail_merge.py
jdevries3133/python_scripts
6cf8182ba0b0396bf9a8dbcff851ed248350d973
[ "MIT" ]
null
null
null
mail_merge.py
jdevries3133/python_scripts
6cf8182ba0b0396bf9a8dbcff851ed248350d973
[ "MIT" ]
null
null
null
mail_merge.py
jdevries3133/python_scripts
6cf8182ba0b0396bf9a8dbcff851ed248350d973
[ "MIT" ]
null
null
null
from pathlib import Path import csv from copy import copy import sys from dataclasses import dataclass import markdown from bs4 import BeautifulSoup from teacherHelper import Email from teacherHelper.email_ import Message @dataclass class Config: subject = '', cc_emails = None # must be string, currently (...
27.327273
76
0.612774
d562edc0c5d4b775acef0bcd6c4382a5d70cab83
685
py
Python
examples/phase_locking.py
SimonAltrogge/brian2
6463c368a8277041051bf5ae4816f0dd5b6e057c
[ "BSD-2-Clause" ]
674
2015-01-14T11:05:39.000Z
2022-03-29T04:53:50.000Z
examples/phase_locking.py
JongwanKim2090/brian2
c212a57cb992b766786b5769ebb830ff12d8a8ad
[ "BSD-2-Clause" ]
937
2015-01-05T13:24:22.000Z
2022-03-25T13:10:13.000Z
examples/phase_locking.py
JongwanKim2090/brian2
c212a57cb992b766786b5769ebb830ff12d8a8ad
[ "BSD-2-Clause" ]
237
2015-01-05T13:54:16.000Z
2022-03-15T22:16:32.000Z
#!/usr/bin/env python """ Phase locking of IF neurons to a periodic input. """ from brian2 import * tau = 20*ms n = 100 b = 1.2 # constant current mean, the modulation varies freq = 10*Hz eqs = ''' dv/dt = (-v + a * sin(2 * pi * freq * t) + b) / tau : 1 a : 1 ''' neurons = NeuronGroup(n, model=eqs, threshold='v > 1',...
20.147059
69
0.607299
e86818f1aa49c0c7e8927a6e39e07b1d6b4b7865
2,443
py
Python
stanCode-project/Name_Popularity_System/milestone1.py
summerororo/sc-project
a5abe3a6d817d4835f67b0aa673cd99fab2a7393
[ "MIT" ]
null
null
null
stanCode-project/Name_Popularity_System/milestone1.py
summerororo/sc-project
a5abe3a6d817d4835f67b0aa673cd99fab2a7393
[ "MIT" ]
null
null
null
stanCode-project/Name_Popularity_System/milestone1.py
summerororo/sc-project
a5abe3a6d817d4835f67b0aa673cd99fab2a7393
[ "MIT" ]
null
null
null
""" File: Milestone1.py Name: 黃兆嘉Summer ----------------------- This file tests the milestone 1 for our babyname.py project """ import sys def add_data_for_name(name_data, year, rank, name): rank = int(rank) if name in name_data: if year in name_data[name] and int(name_data[name][year]) > rank: ...
30.924051
107
0.479738
d9b540d5c79ad997eeb1bd6f758110233c31f914
1,611
py
Python
src/observer.py
mbillingr/design-patterns
e705abb3c1f61e4654014fe9c6d9a0afc07df29d
[ "Unlicense" ]
null
null
null
src/observer.py
mbillingr/design-patterns
e705abb3c1f61e4654014fe9c6d9a0afc07df29d
[ "Unlicense" ]
null
null
null
src/observer.py
mbillingr/design-patterns
e705abb3c1f61e4654014fe9c6d9a0afc07df29d
[ "Unlicense" ]
null
null
null
""" Observer Pattern ================ Python does not have many of the restrictions in old C++ that led to the original design patterns. We can easily define the Observer interface to be any callable (with matching signature). This allows simple functions to serve as observers as well as traditional objects. It requir...
24.409091
79
0.672874
a51e046a838935f22598ae7877b3efbf3ccb8fe0
24,797
py
Python
src/m1_pizza.py
hughesm1/12-MoreSequences
52acd41e90f199fed93a110a8df480407451d8c6
[ "MIT" ]
null
null
null
src/m1_pizza.py
hughesm1/12-MoreSequences
52acd41e90f199fed93a110a8df480407451d8c6
[ "MIT" ]
null
null
null
src/m1_pizza.py
hughesm1/12-MoreSequences
52acd41e90f199fed93a110a8df480407451d8c6
[ "MIT" ]
null
null
null
""" This module lets you practice: -- ITERATING (i.e. LOOPING) through a SEQUENCE -- Using OBJECTS -- DEFINING functions -- CALLING functions Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Marcus Hughes-Oliver....
41.397329
79
0.532
9b316ccf8477aba7df93b4f23618d04e58593f9b
699
py
Python
pydashie/samplers/trello_sampler.py
pmarti/pydashie
b23134da76790859097d4c7460d92f7aae9004b7
[ "MIT" ]
null
null
null
pydashie/samplers/trello_sampler.py
pmarti/pydashie
b23134da76790859097d4c7460d92f7aae9004b7
[ "MIT" ]
null
null
null
pydashie/samplers/trello_sampler.py
pmarti/pydashie
b23134da76790859097d4c7460d92f7aae9004b7
[ "MIT" ]
null
null
null
import trello from pydashie.dashie_sampler import DashieSampler class TrelloSampler(DashieSampler): def __init__(self, *args, **kwargs): super(TrelloSampler, self).__init__(*args, **kwargs) self._last = 0 self.key = '0667001bfafc26b53864fd08124159f0' self.secret = 'cb6a56444019998...
29.125
88
0.656652
3bd3111516149f12712d853cfe7f258298155144
31,879
py
Python
tests/unit/test_mxnet.py
larsll/sagemaker-python-sdk
4d0c2e67ea32376460a8d21abac4cc2c729d8c45
[ "Apache-2.0" ]
null
null
null
tests/unit/test_mxnet.py
larsll/sagemaker-python-sdk
4d0c2e67ea32376460a8d21abac4cc2c729d8c45
[ "Apache-2.0" ]
1
2020-03-14T13:16:13.000Z
2020-03-14T13:16:13.000Z
tests/unit/test_mxnet.py
larsll/sagemaker-python-sdk
4d0c2e67ea32376460a8d21abac4cc2c729d8c45
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
37.372802
111
0.68782
c7dfd7bbe8e6b081e40f09698b10f89404e4b2b3
492
py
Python
nrg/nrg.py
Lynn-015/Test_01
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
2
2015-11-12T01:11:20.000Z
2015-11-12T23:32:28.000Z
nrg/nrg.py
Lynn-015/Test_01
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
3
2015-10-28T02:25:48.000Z
2015-11-25T18:21:22.000Z
nrg/nrg.py
Lynn-015/NJU_DMRG
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
null
null
null
''' one dimensional nrg,or block decimation ''' import numpy as np from scipy.sparse.linalg import eigsh from hgen import NRGHGen class NRGEngine(object): ''' one dimensional NRG Engine ''' def __init__(self,hgen): self.hgen=hgen def single_step(self,m): self.hgen.enlarge() if self.hgen.H.shape[0]>m: v...
16.965517
44
0.686992
ec8deadb7b267d8aee5f06d7fa2d74ed81bc5671
12,692
py
Python
train.py
naetherm/NSEC_NMT
bba533116f37d0f48dbe96150097a1e84ecf162e
[ "MIT" ]
null
null
null
train.py
naetherm/NSEC_NMT
bba533116f37d0f48dbe96150097a1e84ecf162e
[ "MIT" ]
null
null
null
train.py
naetherm/NSEC_NMT
bba533116f37d0f48dbe96150097a1e84ecf162e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Train a new model on one or across multiple GPUs. """ import collections import math import random import numpy...
37.550296
102
0.657737
22c8fee488c4237fbdd1f738aa94525326696ebf
786
py
Python
nicos_mlz/nectar/setups/fov.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/nectar/setups/fov.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/nectar/setups/fov.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'FOV linear axis for the large box (300 x 300)' group = 'lowlevel' includes = ['frr'] tango_base = 'tango://phytron01.nectar.frm2:10000/' devices = dict( fov_mot = device('nicos.devices.entangle.Motor', description = 'FOV motor', tangodevice = tango_base + 'box/FOV/mot', vi...
25.354839
61
0.566158
a04af59573400aafc7c1f23e3558670d79ca010b
64
py
Python
acestream/ACEStream/Core/Subtitles/__init__.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Core/Subtitles/__init__.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Core/Subtitles/__init__.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#Embedded file name: ACEStream\Core\Subtitles\__init__.pyo pass
21.333333
58
0.828125
40dd9363896a1b285a27b415ac8a89d7d5a7710b
1,422
py
Python
examples/PageRolesEdge.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/PageRolesEdge.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/PageRolesEdge.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
37.421053
76
0.778481
33fa0c120fc88d8c945322f7e94cc46a4d7dc035
2,512
py
Python
Chainer/scripts/train.py
hshindo/POSTagging-benchmark
fe58cd74e8552a383a8c87b0edc0e9af73fafe3a
[ "MIT" ]
2
2016-05-27T13:32:46.000Z
2016-12-07T17:32:49.000Z
Chainer/scripts/train.py
hshindo/POSTagging-benchmark
fe58cd74e8552a383a8c87b0edc0e9af73fafe3a
[ "MIT" ]
1
2016-12-07T17:34:36.000Z
2016-12-07T18:55:35.000Z
Chainer/scripts/train.py
hshindo/POSTagging-benchmark
fe58cd74e8552a383a8c87b0edc0e9af73fafe3a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from ctagger import train if __name__ == '__main__': import argparse parser = argparse.ArgumentParser(description='Train NN tagger.') parser.add_argument('data', help='path to training data') parser.add_argument('words', help='word list') parser.add_argument('model', help=...
66.105263
157
0.725717
f90ced6005b5fec4c0faf8e79a1b8bfaa600bad6
1,294
py
Python
nerd_herder/talks/serializers.py
kurtrm/nerd_herder
be7b72888de92eb2f31bfbbd3e92b4cf852944c0
[ "Apache-2.0" ]
null
null
null
nerd_herder/talks/serializers.py
kurtrm/nerd_herder
be7b72888de92eb2f31bfbbd3e92b4cf852944c0
[ "Apache-2.0" ]
null
null
null
nerd_herder/talks/serializers.py
kurtrm/nerd_herder
be7b72888de92eb2f31bfbbd3e92b4cf852944c0
[ "Apache-2.0" ]
null
null
null
from django.db import transaction from rest_framework import serializers from nerd_herder.talks.models import Speaker, Talk class TalkSerializer(serializers.ModelSerializer): class Meta: model = Talk fields = ('id', 'title', 'description', 'talk_type', 'speakers') class NewTalkSerializer(serial...
33.179487
93
0.696291
e83be6b9ccf81a98e01df7bacc2f90431ba1cd86
7,437
py
Python
src/transformers/models/albert/configuration_albert.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
2
2020-11-30T11:30:40.000Z
2021-03-26T17:20:33.000Z
src/transformers/models/albert/configuration_albert.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
1
2020-11-12T11:00:12.000Z
2020-11-12T11:00:12.000Z
src/transformers/models/albert/configuration_albert.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
1
2020-11-17T02:48:00.000Z
2020-11-17T02:48:00.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
51.289655
118
0.694232
36564384867585940e18ad473f2f90b368110587
33,687
py
Python
Lib/site-packages/kivy/lang/builder.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
9
2016-09-03T07:20:01.000Z
2020-05-21T14:44:48.000Z
Lib/site-packages/kivy/lang/builder.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
1
2017-05-30T20:45:15.000Z
2017-05-30T20:45:15.000Z
Lib/site-packages/kivy/lang/builder.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2016-09-10T15:27:54.000Z
2020-03-27T22:05:31.000Z
''' Builder ====== Class used for the registering and application of rules for specific widgets. ''' import codecs import sys import types from os import environ from os.path import join from copy import copy from types import CodeType from functools import partial from kivy.factory import Factory from kivy.lang.pars...
37.388457
79
0.539555
2eb52232293f54153ee78a0544219f7fa56abfb2
2,260
py
Python
aiscot/commands.py
ampledata/aiscot
c48938cc80cdd3a4af5e9d2fc3058831db2a8469
[ "Apache-2.0" ]
15
2020-09-26T03:41:16.000Z
2022-01-02T07:17:10.000Z
aiscot/commands.py
ampledata/aiscot
c48938cc80cdd3a4af5e9d2fc3058831db2a8469
[ "Apache-2.0" ]
2
2021-06-17T21:55:12.000Z
2021-12-23T09:20:42.000Z
aiscot/commands.py
ampledata/aiscot
c48938cc80cdd3a4af5e9d2fc3058831db2a8469
[ "Apache-2.0" ]
3
2020-09-26T12:34:10.000Z
2021-08-05T16:05:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """AIS Cursor-on-Target Gateway Commands.""" import argparse import asyncio import collections import concurrent import configparser import logging import os import sys import urllib import pytak import aiscot # Python 3.6 support: if sys.version_info[:2] >= (3, 7): ...
27.228916
77
0.683628
6a9e18a77c37daa2203b5140eb0c9f36e3daedd2
17,225
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/fortimanager/fmgr_fwpol_package.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/fortimanager/fmgr_fwpol_package.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/fortimanager/fmgr_fwpol_package.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
35.442387
123
0.640755
20e8d00c8c9435a9f56cec8c13b1d39a7ae7d4a9
4,657
py
Python
tests/PySys/software_management_end_to_end/sm_docker_install_remove_multiple/run.py
itsyitsy/thin-edge.io
f62aeedfd0de7f0dc67ef2b4bddbc65bd3f6b4e8
[ "Apache-2.0" ]
102
2021-03-31T08:26:28.000Z
2022-03-27T14:22:38.000Z
tests/PySys/software_management_end_to_end/sm_docker_install_remove_multiple/run.py
itsyitsy/thin-edge.io
f62aeedfd0de7f0dc67ef2b4bddbc65bd3f6b4e8
[ "Apache-2.0" ]
560
2021-03-31T08:47:54.000Z
2022-03-31T17:53:15.000Z
tests/PySys/software_management_end_to_end/sm_docker_install_remove_multiple/run.py
itsyitsy/thin-edge.io
f62aeedfd0de7f0dc67ef2b4bddbc65bd3f6b4e8
[ "Apache-2.0" ]
39
2021-03-31T07:38:08.000Z
2022-03-01T15:43:21.000Z
import sys import time """ Validate end to end behaviour for the docker plugin for multiple docker images. When we install two images Then these two images are installed When we install another image and update one of the existing image with newer version Then there are three images installed, one with newer version ...
32.340278
85
0.535753
f7a32994762ade2663813aef3467277c578a013f
631
py
Python
var/spack/repos/builtin/packages/py-python-rapidjson/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-python-rapidjson/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-python-rapidjson/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPythonRapidjson(PythonPackage): """Python wrapper around rapidjson.""" homepage = "...
33.210526
95
0.740095
c5ff7f375383c6bdafb3c8a62633f9ef9d94f85a
31,514
py
Python
python/ccxt/async_support/yobit.py
dgdiginex/ccxt
cccd590576cbf48d26cf9e3f65cc54fdd466a139
[ "MIT" ]
null
null
null
python/ccxt/async_support/yobit.py
dgdiginex/ccxt
cccd590576cbf48d26cf9e3f65cc54fdd466a139
[ "MIT" ]
null
null
null
python/ccxt/async_support/yobit.py
dgdiginex/ccxt
cccd590576cbf48d26cf9e3f65cc54fdd466a139
[ "MIT" ]
2
2020-10-13T03:24:08.000Z
2020-10-15T06:25:07.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
40.299233
248
0.499365
416af785c1b2cfb4cc116a7957c6b84b638dc11d
679
py
Python
aztk/client/base/helpers/generate_user_on_cluster.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
161
2017-10-04T08:58:27.000Z
2022-01-03T13:01:04.000Z
aztk/client/base/helpers/generate_user_on_cluster.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
400
2017-09-29T21:52:08.000Z
2021-01-08T02:48:56.000Z
aztk/client/base/helpers/generate_user_on_cluster.py
isabella232/aztk
6e04372d19661ead6744387edab7beda16e3d928
[ "MIT" ]
74
2017-10-13T04:41:26.000Z
2021-12-20T15:56:42.000Z
import concurrent.futures from Cryptodome.PublicKey import RSA from aztk.utils import secure_utils # TODO: remove nodes param def generate_user_on_cluster(base_operations, id, nodes): generated_username = secure_utils.generate_random_string() ssh_key = RSA.generate(2048) ssh_pub_key = ssh_key.publickey(...
32.333333
116
0.736377
eb761d5f92810f9d8dec3868de686d49dce92566
4,611
py
Python
Algorithm/KNN-ItemBased.py
KilHwanKim/Bigdata_web
872ecdeb12cc2cda6de01a9950d2438415dc92ca
[ "MIT" ]
1
2021-05-01T14:06:24.000Z
2021-05-01T14:06:24.000Z
Algorithm/KNN-ItemBased.py
KilHwanKim/Bigdata_web
872ecdeb12cc2cda6de01a9950d2438415dc92ca
[ "MIT" ]
12
2020-06-06T01:52:42.000Z
2022-02-27T04:33:30.000Z
sub1/KNN-ItemBased.py
fastz123/Project_Emo
ab75da1f05b17e8bb8b1826735913c63777884f9
[ "MIT" ]
1
2021-05-05T08:21:19.000Z
2021-05-05T08:21:19.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns import os import surprise def dump_dataframes(dataframes): pd.to_pickle(dataframes, DUMP_FILE) def makestoredump(data): df_reviews = data df_s_group = df_reviews.groupby(["store"]) series_over_3 = df_s_group.s...
29.748387
107
0.627846
cdde432259a8a8865ef4dd6078d9fb6fb61baba3
14,917
py
Python
import_toolkit/simulation.py
LBJ-Wade/C-Eagle-analysis
d13ffb219834e11baeb5b9d863c6a6eb965ba6ad
[ "Unlicense" ]
null
null
null
import_toolkit/simulation.py
LBJ-Wade/C-Eagle-analysis
d13ffb219834e11baeb5b9d863c6a6eb965ba6ad
[ "Unlicense" ]
null
null
null
import_toolkit/simulation.py
LBJ-Wade/C-Eagle-analysis
d13ffb219834e11baeb5b9d863c6a6eb965ba6ad
[ "Unlicense" ]
null
null
null
from __future__ import print_function, division, absolute_import import os from copy import copy import numpy as np from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() from ._cluster_retriever import redshift_str2num class Simulation: CURRENT_PATH = copy(os.path.abspath(os.p...
62.676471
130
0.498022
6177617c6d4a5f253a05af0021191b1aba020ac1
1,858
py
Python
pred_diff/datasets/utils.py
PredDiff/PredDiffTabular
ae116c5179615d8163c1421e1feb7dcfbd1c2b5e
[ "BSD-3-Clause" ]
1
2021-05-04T15:09:25.000Z
2021-05-04T15:09:25.000Z
pred_diff/datasets/utils.py
PredDiff/PredDiffTabular
ae116c5179615d8163c1421e1feb7dcfbd1c2b5e
[ "BSD-3-Clause" ]
null
null
null
pred_diff/datasets/utils.py
PredDiff/PredDiffTabular
ae116c5179615d8163c1421e1feb7dcfbd1c2b5e
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np from tqdm import tqdm import requests from typing import List, Tuple base_dir = os.path.dirname(__file__) def download_url(url: str, folder_name: str): buffer_size = 1024 # read 1024 bytes every time response = requests.get(url, stream=True) # download the body of response by ...
37.16
109
0.649085
61608d211ff3aced1949ec2344df99a5b1631929
3,398
py
Python
gcloud/external_plugins/protocol/readers.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
881
2019-03-25T02:45:42.000Z
2022-03-30T09:10:49.000Z
gcloud/external_plugins/protocol/readers.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
3,303
2019-03-25T04:18:03.000Z
2022-03-31T11:52:03.000Z
gcloud/external_plugins/protocol/readers.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
395
2019-03-25T02:53:36.000Z
2022-03-31T08:37:28.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
36.537634
115
0.643908
8a37669da03ef6d17c72c4fa1569ea9f708ef233
2,685
py
Python
blog/models.py
RouSage/blog
d5a2b277599c056dfddff7d759afb987e5a6159e
[ "MIT" ]
1
2019-08-09T16:51:26.000Z
2019-08-09T16:51:26.000Z
blog/models.py
RouSage/blog
d5a2b277599c056dfddff7d759afb987e5a6159e
[ "MIT" ]
null
null
null
blog/models.py
RouSage/blog
d5a2b277599c056dfddff7d759afb987e5a6159e
[ "MIT" ]
null
null
null
from django.db import models from tinymce import models as tinymce_models from django.utils import timezone from django.utils.translation import pgettext_lazy, gettext_lazy as _ from .utils import get_unique_slug class Category(models.Model): name = models.CharField( max_length=250, verbose_name=_...
27.121212
70
0.61825
0c04c9b7037c1121b80908958cac6c56ec91f2d3
2,444
py
Python
modules/optim/lookahead.py
espoirMur/lm-prior-for-nmt
e3d736f9da8a20fa5f4983e6ddae86325ebd44ed
[ "MIT" ]
32
2020-05-01T22:15:28.000Z
2022-03-14T08:44:13.000Z
modules/optim/lookahead.py
espoirMur/lm-prior-for-nmt
e3d736f9da8a20fa5f4983e6ddae86325ebd44ed
[ "MIT" ]
5
2020-06-11T13:41:34.000Z
2021-01-11T15:17:42.000Z
modules/optim/lookahead.py
espoirMur/lm-prior-for-nmt
e3d736f9da8a20fa5f4983e6ddae86325ebd44ed
[ "MIT" ]
4
2021-03-05T17:33:46.000Z
2021-07-09T12:06:04.000Z
from collections import defaultdict from itertools import chain import torch import warnings from torch.optim import Optimizer class Lookahead(Optimizer): def __init__(self, optimizer, k=5, alpha=0.5): self.optimizer = optimizer self.k = k self.alpha = alpha self.param_groups = se...
33.027027
71
0.595745
35829a63bb6e0039d93cd319338dc12047ecf0b2
1,271
py
Python
pybossa_lc/analysis/z3950.py
LibCrowds/libcrowds-project-generator
d474ffc713e27bd870f1d3f8fca70cec684411e0
[ "MIT" ]
2
2018-09-17T13:58:06.000Z
2020-03-31T15:10:06.000Z
pybossa_lc/analysis/z3950.py
LibCrowds/pybossa-lc
d474ffc713e27bd870f1d3f8fca70cec684411e0
[ "MIT" ]
null
null
null
pybossa_lc/analysis/z3950.py
LibCrowds/pybossa-lc
d474ffc713e27bd870f1d3f8fca70cec684411e0
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- """Z39.50 analysis module.""" import pandas from .base import BaseAnalyst from . import AnalysisException class Z3950Analyst(BaseAnalyst): def get_comments(self, task_run_df): """Return a list of comments.""" comments = task_run_df['comments'].tolist() user_ids = t...
33.447368
76
0.645161
f210ad31fbbde8e670115135f6e8603091d4504a
208
py
Python
pdip/integrator/connection/types/webservice/base/__init__.py
ahmetcagriakca/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
2
2021-12-09T21:07:46.000Z
2021-12-11T22:18:01.000Z
pdip/integrator/connection/types/webservice/base/__init__.py
PythonDataIntegrator/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
null
null
null
pdip/integrator/connection/types/webservice/base/__init__.py
PythonDataIntegrator/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
3
2021-11-15T00:47:00.000Z
2021-12-17T11:35:45.000Z
from .web_service_connector import WebServiceConnector from .web_service_context import WebServiceContext from .web_service_policy import WebServicePolicy from .web_service_provider import WebServiceProvider
41.6
54
0.903846
534c5e8e0e5b0469acba50a28aa686db7c0b6f7b
7,600
py
Python
imcsdk/mometa/storage/StorageLocalDiskSlotEp.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
imcsdk/mometa/storage/StorageLocalDiskSlotEp.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
imcsdk/mometa/storage/StorageLocalDiskSlotEp.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
"""This module contains the general information for StorageLocalDiskSlotEp ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class StorageLocalDiskSlotEpConsts: OPERABILITY_ACCESSIBILITY_PROBLEM = "accessibility-problem" ...
62.295082
679
0.682105
40f305c3286ea0e8c43304acd30f866f8b529d19
2,123
py
Python
jinjarecurse/main.py
kyluca/Jinja-Recurse
e37c303a70c5a2bb6dc5143363b813d28a6752a8
[ "MIT" ]
null
null
null
jinjarecurse/main.py
kyluca/Jinja-Recurse
e37c303a70c5a2bb6dc5143363b813d28a6752a8
[ "MIT" ]
null
null
null
jinjarecurse/main.py
kyluca/Jinja-Recurse
e37c303a70c5a2bb6dc5143363b813d28a6752a8
[ "MIT" ]
null
null
null
""" Yet Another Jinja (YaJinja) (CLI) Usage: yajinja [-m] --vars=VARS_FILE --input=INPUT_PATH --output=OUTPUT_PATH Options: -v <file>, --vars <file> -i <file>, --input <file> -o <file>, --output <file> -e <environment> ... """ import jinja2 import yaml import sys from pathlib import Path from ...
29.486111
123
0.607631
704fec47a569acf39db888a6a9fa42fb0d377da2
6,082
py
Python
cherrypy/lib/profiler.py
luqmanhaidar/vboxweb
ef2952de64ab57f41123b10b5ad002f295f59f62
[ "MIT" ]
31
2015-01-18T20:27:31.000Z
2021-07-03T03:58:47.000Z
cherrypy/lib/profiler.py
luqmanhaidar/vboxweb
ef2952de64ab57f41123b10b5ad002f295f59f62
[ "MIT" ]
4
2015-07-05T21:09:37.000Z
2019-09-06T14:34:59.000Z
cherrypy/lib/profiler.py
luqmanhaidar/vboxweb
ef2952de64ab57f41123b10b5ad002f295f59f62
[ "MIT" ]
11
2015-02-03T19:24:10.000Z
2019-09-20T10:59:50.000Z
"""Profiler tools for CherryPy. CherryPy users ============== You can profile any of your pages as follows: from cherrypy.lib import profiler class Root: p = profile.Profiler("/path/to/profile/dir") def index(self): self.p.run(self._index) index.exposed = Tru...
30.41
84
0.590431
e69101a442d08923da09833d4c11319a6b11e3a4
3,769
py
Python
pox_src/stats_collector.py
tonyausi/SDN_POX
48a401d06ec2d6a42c130c76e6ef49f8894b19f8
[ "Apache-2.0" ]
null
null
null
pox_src/stats_collector.py
tonyausi/SDN_POX
48a401d06ec2d6a42c130c76e6ef49f8894b19f8
[ "Apache-2.0" ]
null
null
null
pox_src/stats_collector.py
tonyausi/SDN_POX
48a401d06ec2d6a42c130c76e6ef49f8894b19f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2012 William Yu # wyu@ateneo.edu # # This file is part of POX. # # POX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opti...
36.240385
127
0.688512
24f5c1f06e0053a340f5888f228bfa7154d0aaeb
12,531
py
Python
jujucrashdump/crashdump.py
ChrisMacNaughton/juju-crashdump
8cf7905c43bf08ae2940eba8b1f5e4a16fa65826
[ "MIT" ]
null
null
null
jujucrashdump/crashdump.py
ChrisMacNaughton/juju-crashdump
8cf7905c43bf08ae2940eba8b1f5e4a16fa65826
[ "MIT" ]
null
null
null
jujucrashdump/crashdump.py
ChrisMacNaughton/juju-crashdump
8cf7905c43bf08ae2940eba8b1f5e4a16fa65826
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # this is python2/3 compatible, but the following bug breaks us... # https://bugs.launchpad.net/ubuntu/+source/python-launchpadlib/+bug/1425575 # you also might need to $ sudo apt install python-apport import argparse import multiprocessing import os import shutil import subprocess import sys i...
36.112392
79
0.601468
e8418c1215b279c6cf7ca2a681e2627153334ca5
728
py
Python
tmp/leetcode/107_binary-tree-level-order-traversal-ii.py
mangchhe/algorithm
2e82ce1a71773d0dcb581fa8a3849553b985c34f
[ "MIT" ]
null
null
null
tmp/leetcode/107_binary-tree-level-order-traversal-ii.py
mangchhe/algorithm
2e82ce1a71773d0dcb581fa8a3849553b985c34f
[ "MIT" ]
null
null
null
tmp/leetcode/107_binary-tree-level-order-traversal-ii.py
mangchhe/algorithm
2e82ce1a71773d0dcb581fa8a3849553b985c34f
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution(object): def levelOrderBottom(self, root): if not root: return ans = [] ...
25.103448
55
0.42033
319046058372a3c28d643f9790871c5a75369a96
686
py
Python
tools/forget_user.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
8
2018-02-06T15:47:55.000Z
2021-05-26T15:24:49.000Z
tools/forget_user.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
57
2018-02-02T19:54:38.000Z
2021-07-15T15:45:15.000Z
tools/forget_user.py
mircealungu/Zeeguu-API-2
1e8ea7f5dd0b883ed2d714b9324162b1a8edd170
[ "MIT" ]
13
2017-10-12T09:05:19.000Z
2020-02-19T09:38:01.000Z
#!/usr/bin/env python """ Script that forgets the personal data of a given user """ import zeeguu.core from faker import Faker from zeeguu.core.model import User import sys def forget_user(user): old_email = user.email old_name = user.name fake = Faker() user.name = "Forgotten Learner" us...
17.589744
82
0.635569
c5256ca04e4874c92f1f5d69e184e0e80c4c803e
21,714
py
Python
aiohttp/helpers.py
thatmattbone/aiohttp
6224d3961f97f7b797c4d8fbc1b3244554888d78
[ "Apache-2.0" ]
1
2019-06-05T16:56:59.000Z
2019-06-05T16:56:59.000Z
aiohttp/helpers.py
thatmattbone/aiohttp
6224d3961f97f7b797c4d8fbc1b3244554888d78
[ "Apache-2.0" ]
null
null
null
aiohttp/helpers.py
thatmattbone/aiohttp
6224d3961f97f7b797c4d8fbc1b3244554888d78
[ "Apache-2.0" ]
null
null
null
"""Various helper functions""" import asyncio import base64 import binascii import cgi import functools import inspect import netrc import os import platform import re import sys import time import weakref from collections import namedtuple from contextlib import suppress from math import ceil from pathlib import Path...
32.850227
148
0.599936
5aff9008fd6f53657c2f2d2a60e458c6109527d7
1,274
py
Python
2018/day-4/part-2.py
frewsxcv/advent-of-code
1de3d2c47284cfa40505f22a59b61e7579a9af0b
[ "CC0-1.0" ]
1
2018-12-01T21:12:09.000Z
2018-12-01T21:12:09.000Z
2018/day-4/part-2.py
frewsxcv/advent-of-code
1de3d2c47284cfa40505f22a59b61e7579a9af0b
[ "CC0-1.0" ]
null
null
null
2018/day-4/part-2.py
frewsxcv/advent-of-code
1de3d2c47284cfa40505f22a59b61e7579a9af0b
[ "CC0-1.0" ]
null
null
null
from datetime import datetime, timedelta import collections with open("input.txt") as input_file: input_lines = input_file.readlines() records = [] # [(timestamp, command), ...] for line in input_lines: line = line.strip().lstrip("[") timestamp_string, command = line.split("] ") timestamp = datetime....
34.432432
80
0.704867
ec7ae45a2e2922ae0f44b934e97831ad5901298e
1,409
py
Python
progressXML.py
HeroJeanPierre/Bounding_Box_To_XML_Tool
dc81e981df737541eaa476c0bd632f494cbcfb5d
[ "Unlicense" ]
2
2017-09-05T08:15:46.000Z
2018-08-23T09:11:49.000Z
progressXML.py
HeroJeanPierre/Bounding_Box_To_XML_Tool
dc81e981df737541eaa476c0bd632f494cbcfb5d
[ "Unlicense" ]
null
null
null
progressXML.py
HeroJeanPierre/Bounding_Box_To_XML_Tool
dc81e981df737541eaa476c0bd632f494cbcfb5d
[ "Unlicense" ]
1
2020-06-04T18:03:11.000Z
2020-06-04T18:03:11.000Z
import xml.etree.cElementTree as ET import xml.dom.minidom as minidom def prettify(elem): """Return a pretty-printed XML string for the Element. """ rough_string = ET.tostring(elem, 'utf-8') reparsed = minidom.parseString(rough_string) return reparsed.toprettyxml(indent="\t") def createXML(folder...
33.547619
85
0.668559
8ac94111cca56915f613fc2143fd5038441a78bd
357,249
py
Python
pandas/core/frame.py
dorisjlee/pandas
3943ad23d13380b8e99e36e1d0d156dbcb0cf020
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-12-07T13:37:31.000Z
2021-12-07T13:37:31.000Z
pandas/core/frame.py
dorisjlee/pandas
3943ad23d13380b8e99e36e1d0d156dbcb0cf020
[ "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/frame.py
dorisjlee/pandas
3943ad23d13380b8e99e36e1d0d156dbcb0cf020
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
34.056149
170
0.527383
aa07771e6a06842129e3a5c48c2ec4d087cdb072
1,871
py
Python
ifc_model/storey.py
brean/python-ifc-model
f593a72703cdb460e493c48c9f39ee20eb729ecc
[ "MIT" ]
21
2017-12-01T13:14:39.000Z
2021-02-11T13:50:14.000Z
ifc_model/storey.py
xeolabs/python-ifc-model
f593a72703cdb460e493c48c9f39ee20eb729ecc
[ "MIT" ]
1
2018-02-14T17:10:30.000Z
2018-02-14T17:10:30.000Z
ifc_model/storey.py
brean/python-ifc-model
f593a72703cdb460e493c48c9f39ee20eb729ecc
[ "MIT" ]
3
2018-02-10T04:49:09.000Z
2018-12-28T02:54:01.000Z
from .relations import Relations from .product import Product from .space import Space from .representation import Representation ''' spaces/rooms and products, see /ifcproductextension/lexical/ifcbuildingstorey.htm ''' class Storey(Relations): def from_ifc(self, ifc_data): assert ifc_data.is_a('IfcBuildin...
35.301887
90
0.638696
ed5ef7afe802e480c1e35f6b6a24eac54e711ada
42,167
py
Python
ImageNet/GoogleDownload/google_images_download.py
ihoung/video_classification
93a7029d190d863081864be9c065f50212d06646
[ "MIT" ]
null
null
null
ImageNet/GoogleDownload/google_images_download.py
ihoung/video_classification
93a7029d190d863081864be9c065f50212d06646
[ "MIT" ]
null
null
null
ImageNet/GoogleDownload/google_images_download.py
ihoung/video_classification
93a7029d190d863081864be9c065f50212d06646
[ "MIT" ]
null
null
null
#!/usr/bin/env python # In[ ]: # coding: utf-8 ###### Searching and Downloading Google Images to the local disk ###### # Import Libraries import sys import urllib.request from urllib.request import Request, urlopen from urllib.request import URLError, HTTPError from urllib.parse import quote import http.client from ...
49.549941
622
0.575379
2879ef93dd6e76273c3233b94554fb718d15d802
38,838
py
Python
tests/integration_tests/functional/test_api.py
avanhatt/firecracker
200c2db7055e406125729c40e14acf47024c1420
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/functional/test_api.py
avanhatt/firecracker
200c2db7055e406125729c40e14acf47024c1420
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/functional/test_api.py
avanhatt/firecracker
200c2db7055e406125729c40e14acf47024c1420
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Tests that ensure the correctness of the Firecracker API.""" # Disable pylint C0302: Too many lines in module # pylint: disable=C0302 import os import platform import resource import time import pytest ...
33.742832
79
0.679618
9f1a3268895dbd0bcfb559e4943bbfe2e91bf7d4
517
py
Python
tpmp_db/dbms/migrations/0005_alter_photo_camera.py
tpmp-inra/tpmp_bd
e50e9afe9e338d62e527082db2579fa0c63d7c28
[ "MIT" ]
null
null
null
tpmp_db/dbms/migrations/0005_alter_photo_camera.py
tpmp-inra/tpmp_bd
e50e9afe9e338d62e527082db2579fa0c63d7c28
[ "MIT" ]
null
null
null
tpmp_db/dbms/migrations/0005_alter_photo_camera.py
tpmp-inra/tpmp_bd
e50e9afe9e338d62e527082db2579fa0c63d7c28
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-07 12:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('dbms', '0004_auto_20210907_1450'), ] operations = [ migrations.AlterField( model_name='photo', ...
25.85
152
0.649903
ff3dd6f8ccad25ccd6331c8b18a3db148226e3ff
13,691
py
Python
tests/test_lexer.py
treussart/scim2-filter-parser
1e13a070e20c8f9520fd438a259e672a5a44bbaf
[ "MIT" ]
null
null
null
tests/test_lexer.py
treussart/scim2-filter-parser
1e13a070e20c8f9520fd438a259e672a5a44bbaf
[ "MIT" ]
null
null
null
tests/test_lexer.py
treussart/scim2-filter-parser
1e13a070e20c8f9520fd438a259e672a5a44bbaf
[ "MIT" ]
null
null
null
from io import StringIO import sys from unittest import TestCase from scim2_filter_parser import lexer class RFCExamples(TestCase): def setUp(self): self.lexer = lexer.SCIMLexer() def get_token_tuples(self, query): return self.lexer.tokenize(query) def assertTokens(self, query, expected...
32.52019
107
0.507341
45c9ce37c9d148984518d268af3dc3fe089733d4
12,686
py
Python
finetune/run_seq_cls.py
Insutil-Lab/KoELECTRA
024fbdd600e653b6e4bdfc64ceec84181b5ce6c4
[ "Apache-2.0" ]
null
null
null
finetune/run_seq_cls.py
Insutil-Lab/KoELECTRA
024fbdd600e653b6e4bdfc64ceec84181b5ce6c4
[ "Apache-2.0" ]
null
null
null
finetune/run_seq_cls.py
Insutil-Lab/KoELECTRA
024fbdd600e653b6e4bdfc64ceec84181b5ce6c4
[ "Apache-2.0" ]
null
null
null
import argparse import json import logging import os import glob import re import numpy as np import torch from torch.utils.data import DataLoader, RandomSampler, SequentialSampler from fastprogress.fastprogress import master_bar, progress_bar from attrdict import AttrDict from transformers import ( AdamW, ge...
42.006623
142
0.631484
3afd342573d2d52d03f3774a0b586c4694d5b0de
3,935
py
Python
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/151_double_dot_product.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/151_double_dot_product.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/151_double_dot_product.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
2
2022-02-09T15:41:33.000Z
2022-02-11T07:47:40.000Z
""" https://edabit.com/challenge/38SP9cjt6BfRbLowA EXPERT Double Dot Product In this challenge, you'll write a function that calculates the double dot product of a pair of dyadics. What's a dyadic? And what's the double dot product? First, let's talk about (Euclidean) vectors. A vector is a geometric object. Its e...
42.771739
395
0.682592
3513d1bf9d19a11f367dc4e0b7174cde9fe50ee0
2,356
py
Python
system_baseline/app.py
eherget/system-baseline-backend
7c411b159729c86bbfaac06cc4a34ce68a60e1ec
[ "Apache-2.0" ]
null
null
null
system_baseline/app.py
eherget/system-baseline-backend
7c411b159729c86bbfaac06cc4a34ce68a60e1ec
[ "Apache-2.0" ]
null
null
null
system_baseline/app.py
eherget/system-baseline-backend
7c411b159729c86bbfaac06cc4a34ce68a60e1ec
[ "Apache-2.0" ]
null
null
null
import logging import connexion from flask_migrate import Migrate from kerlescan import config from kerlescan.audit_logging import setup_audit_logging from kerlescan.cloudwatch import setup_cw_logging from kerlescan.error import handle_http_error from kerlescan.exceptions import HTTPError from kerlescan.metrics_regi...
31.837838
81
0.760611
b53738a5cc47ac106cea6d20668c118ebed2501c
7,126
py
Python
kubernetes/client/models/com_coreos_monitoring_v1_pod_monitor.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/com_coreos_monitoring_v1_pod_monitor.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/com_coreos_monitoring_v1_pod_monitor.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
34.931373
312
0.642717
97e4319abc9a577d80379ec8c0909c25a295b121
17,446
py
Python
second/pytorch/core/box_torch_ops.py
zhb0920/second.pytorch
f980f3d18749b7a2830983222d1695b5cb321dae
[ "MIT" ]
null
null
null
second/pytorch/core/box_torch_ops.py
zhb0920/second.pytorch
f980f3d18749b7a2830983222d1695b5cb321dae
[ "MIT" ]
null
null
null
second/pytorch/core/box_torch_ops.py
zhb0920/second.pytorch
f980f3d18749b7a2830983222d1695b5cb321dae
[ "MIT" ]
null
null
null
import math import numpy as np import torch from torch import stack as tstack import torchplus from torchplus.tools import torch_to_np_dtype from second.core.box_np_ops import iou_jit from second.core.non_max_suppression.nms_gpu import (nms_gpu, rotate_iou_gpu, r...
35.75
94
0.583973
ac99b1e8fb3bfdf611e3ca7e9178fa247c364bda
35
py
Python
str.py
KowsalyaThiyagarajan/PythonLearing
742c9480f4ab28fe22e271e923e6198262deb194
[ "Apache-2.0" ]
1
2021-10-05T08:14:39.000Z
2021-10-05T08:14:39.000Z
str.py
KowsalyaThiyagarajan/PythonLearing
742c9480f4ab28fe22e271e923e6198262deb194
[ "Apache-2.0" ]
null
null
null
str.py
KowsalyaThiyagarajan/PythonLearing
742c9480f4ab28fe22e271e923e6198262deb194
[ "Apache-2.0" ]
null
null
null
x="Happy" print(x) print(type(x))
11.666667
14
0.628571
0274ee8b49c03b0e3db40305d1262dad8d51ec94
680
py
Python
tests/test_add_group.py
aogn/python_train
40131b24633c9771452813872061ca5335edecd8
[ "Apache-2.0" ]
null
null
null
tests/test_add_group.py
aogn/python_train
40131b24633c9771452813872061ca5335edecd8
[ "Apache-2.0" ]
null
null
null
tests/test_add_group.py
aogn/python_train
40131b24633c9771452813872061ca5335edecd8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from models.group import Group import allure def test_add_group(app, db, json_groups, check_ui): group = json_groups with allure.step('Given a group list'): old_groups = db.get_group_list() with allure.step('When I add a group %s to the list' % group): app.group.crea...
40
117
0.676471
505c45b0819b5e3feec89e614365a92ccb67566d
1,403
py
Python
satchless/contrib/search/haystack_predictive/views.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
1
2015-11-05T05:09:27.000Z
2015-11-05T05:09:27.000Z
satchless/contrib/search/haystack_predictive/views.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
satchless/contrib/search/haystack_predictive/views.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from django.conf import settings from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, InvalidPage from django.core.urlresolvers import reverse from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden from django.shortcuts...
31.886364
101
0.730577
933074541f324f9cd832120171d46003b8b6a0c5
5,984
py
Python
tests/build_/test_pod_response.py
MartinBasti/osbs-client
1a6a99b5dc4e7dfa82f883ed74782f3842c447d3
[ "BSD-3-Clause" ]
null
null
null
tests/build_/test_pod_response.py
MartinBasti/osbs-client
1a6a99b5dc4e7dfa82f883ed74782f3842c447d3
[ "BSD-3-Clause" ]
1
2018-04-25T18:33:55.000Z
2018-04-26T10:56:09.000Z
tests/build_/test_pod_response.py
sosiouxme/osbs-client
92e7ba9a838f2811796c0787ad0fde53a32f7ea2
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2017 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from __future__ import unicode_literals from copy import deepcopy import pytest from osbs.build.pod_response import PodResponse class Tes...
29.477833
77
0.356116
ee3627a94d24c93abb9ea94e133026291a97ca19
310
py
Python
officialWebsite/team/serializers.py
rdotjain/officialWebsite
d5f37cf840c303ecbc47aa12bd76781bb725422d
[ "MIT" ]
1
2021-11-21T04:34:13.000Z
2021-11-21T04:34:13.000Z
officialWebsite/team/serializers.py
raghavTinker/officialWebsite
bf02249894b7d26b8b3f8062f2fc75556a52ae1e
[ "MIT" ]
null
null
null
officialWebsite/team/serializers.py
raghavTinker/officialWebsite
bf02249894b7d26b8b3f8062f2fc75556a52ae1e
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Team from officialWebsite.users.serializers import UserSerializer class TeamSerializer(serializers.ModelSerializer): users = UserSerializer(read_only=True, many=True) class Meta: model = Team fields = ("id", "name", "users")
28.181818
60
0.741935
37a055b57c14cd9fa20e6815d35d414cf8876385
3,932
py
Python
lazyeye/lazyeye/lazyeye_core.py
Mucephie/lazyeye
ca255e2af016f5d3bef18d5d85fa69db2780446d
[ "BSD-3-Clause" ]
null
null
null
lazyeye/lazyeye/lazyeye_core.py
Mucephie/lazyeye
ca255e2af016f5d3bef18d5d85fa69db2780446d
[ "BSD-3-Clause" ]
null
null
null
lazyeye/lazyeye/lazyeye_core.py
Mucephie/lazyeye
ca255e2af016f5d3bef18d5d85fa69db2780446d
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import astroquery as aq from astroquery.sdss import SDSS from astroquery.cadc import Cadc from astropy import units as un from astropy.table import vstack, join, Table from astropy.io import fits import astropy.coordinates as acoords __al...
36.747664
164
0.601729
283d87fd100682b50d8ea3dcc46a95045c43b996
2,222
py
Python
appengine/swarming/swarming_bot/api/platforms/posix.py
amymariaparker2401/luci-py
c5902547adc12390df6b09c825a38370f1034e8b
[ "Apache-2.0" ]
null
null
null
appengine/swarming/swarming_bot/api/platforms/posix.py
amymariaparker2401/luci-py
c5902547adc12390df6b09c825a38370f1034e8b
[ "Apache-2.0" ]
1
2022-03-02T09:56:27.000Z
2022-03-02T09:56:27.000Z
appengine/swarming/swarming_bot/api/platforms/posix.py
Lees78/luci-py
7b854c55f63e648005ae8aa38e2e41cd8f99feda
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """POSIX specific utility functions.""" import os import subprocess import sys def _run_df(): """Runs df and returns the output. The outpu...
32.676471
80
0.625113