hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
df6d0d07bf48436061a0838a663ce18440a66dc5
1,675
py
Python
python/earthquake.py
FranzSchubert92/cw
e59bab1f942f17a17bbf05a3c87733bae6ab1ebb
[ "BSD-3-Clause" ]
1
2017-09-07T21:14:40.000Z
2017-09-07T21:14:40.000Z
python/earthquake.py
FranzSchubert92/cw
e59bab1f942f17a17bbf05a3c87733bae6ab1ebb
[ "BSD-3-Clause" ]
null
null
null
python/earthquake.py
FranzSchubert92/cw
e59bab1f942f17a17bbf05a3c87733bae6ab1ebb
[ "BSD-3-Clause" ]
null
null
null
""" You have been employed by the Japanese government to write a function that tests whether or not a building is strong enough to withstand a simulated earthquake. A building will fall if the magnitude of the earthquake is greater than the strength of the building. An earthquake takes the form of a 2D-Array. Each ...
33.5
81
0.714627
0
0
0
0
0
0
0
0
1,318
0.786866
df6d275991d90be0d5dbb0d47ae92a44046ed849
20,186
py
Python
src/texproject/command.py
alexrutar/texproject
ba7427ecfd7a9141bfce61ae30b2abc3ada69d2c
[ "MIT" ]
1
2020-07-05T04:13:42.000Z
2020-07-05T04:13:42.000Z
src/texproject/command.py
alexrutar/texproject
ba7427ecfd7a9141bfce61ae30b2abc3ada69d2c
[ "MIT" ]
null
null
null
src/texproject/command.py
alexrutar/texproject
ba7427ecfd7a9141bfce61ae30b2abc3ada69d2c
[ "MIT" ]
null
null
null
"""TODO: write docstring""" from __future__ import annotations from dataclasses import astuple from difflib import unified_diff from functools import update_wrapper from pathlib import Path import sys import tempfile from typing import TYPE_CHECKING import click from . import __version__, __repo__ from .base import ...
30.771341
98
0.648122
2,741
0.135787
7,386
0.365897
14,677
0.727088
0
0
6,676
0.330724
df6daf8c05e63066bef5079673fe8edf1351a1c1
580
py
Python
source/validate.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
2
2020-08-24T17:41:45.000Z
2020-08-25T16:48:52.000Z
source/validate.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
3
2017-09-29T17:14:18.000Z
2019-05-20T16:13:39.000Z
source/validate.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
1
2017-09-29T08:53:52.000Z
2017-09-29T08:53:52.000Z
#validate.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2018 NV Access Limited, Babbage B.V., Joseph Lee #This file is covered by the GNU General Public License. #See the file COPYING for more details. """ Module to provide backwards compatibility with add-ons that use the configobj validate modu...
36.25
132
0.772414
0
0
0
0
0
0
0
0
465
0.801724
df6e8b3f79e2738129a3ef4c27c729510c7d4429
5,237
py
Python
test/evaluate/tet_nlg_yongzhuo.py
leileixiao/Macropodus
9de38c06d332bd26e704fd4afd8f44678de7f44f
[ "MIT" ]
485
2019-12-31T16:53:28.000Z
2022-03-31T08:01:30.000Z
test/evaluate/tet_nlg_yongzhuo.py
xiankaigit/Macropodus
1d7b8f9938cb8b6d7744e9caabc3eb41c8891283
[ "MIT" ]
14
2020-03-07T04:17:47.000Z
2022-03-14T01:08:23.000Z
test/evaluate/tet_nlg_yongzhuo.py
xiankaigit/Macropodus
1d7b8f9938cb8b6d7744e9caabc3eb41c8891283
[ "MIT" ]
85
2020-01-16T05:03:07.000Z
2022-03-03T11:42:07.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2020/5/14 21:42 # @author : Mo # @function: nlg-yongzhuo from macropodus.summarize.yongzhuo_nlg import * doc = """PageRank算法简介。" \ "是上世纪90年代末提出的一种计算网页权重的算法! " \ "当时,互联网技术突飞猛进,各种网页网站爆炸式增长。 " \ "业界急需一种相对比较准确的网页重要性计算方法。 "...
31.739394
257
0.709757
0
0
0
0
0
0
0
0
7,098
0.80531
df6ec61de92486e850b6c18987f949b40c50bc09
1,240
py
Python
scripts/animate_life.py
acse-ogb119/MPI-Game-of-Life
b4658b46b5eccf8dd4f1d9e19d67dd1dbdff1f11
[ "MIT" ]
null
null
null
scripts/animate_life.py
acse-ogb119/MPI-Game-of-Life
b4658b46b5eccf8dd4f1d9e19d67dd1dbdff1f11
[ "MIT" ]
null
null
null
scripts/animate_life.py
acse-ogb119/MPI-Game-of-Life
b4658b46b5eccf8dd4f1d9e19d67dd1dbdff1f11
[ "MIT" ]
null
null
null
import glob from PIL import Image from functools import partial # read in metadata file entries to a list of lists print("Loading simulation metadata...") fname = "./outfiles/metadata.txt" file = open(fname, "r") metadata = [] for line in file: line = line.split() metadata.append(line) # parse metadata variab...
27.555556
80
0.640323
0
0
0
0
0
0
0
0
258
0.208065
df6fb48dc611347e798fac2ea0a1f38ae6f5633f
2,363
py
Python
computation/turing_machine/rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
24
2016-04-16T09:10:15.000Z
2022-03-14T08:44:48.000Z
computation/turing_machine/rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
10
2020-11-29T13:01:09.000Z
2022-01-22T13:14:32.000Z
computation/turing_machine/rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
2
2019-09-21T15:07:41.000Z
2021-03-14T13:38:10.000Z
from dataclasses import dataclass from enum import Enum, auto from typing import List from ..exceptions import Unreachable from ..utils import detect from .tape import Tape, TMConfiguration class Direction(Enum): LEFT = auto() RIGHT = auto() @dataclass class TMRule: state: int character: str ne...
26.852273
78
0.677105
2,127
0.900127
0
0
2,101
0.889124
0
0
0
0
df70c9594d22d90dd33b9f0c85fed78d3076ccbf
659
py
Python
py/List.RandomiseDivide.py
mathematicalmichael/SpringNodes
3ff4034b6e57ee6efa55c963e1819f3d30a2c4ab
[ "MIT" ]
51
2015-09-25T09:30:57.000Z
2022-01-19T14:16:44.000Z
py/List.RandomiseDivide.py
sabeelcoder/SpringNodes
e21a24965474d54369e74d23c06f8c42a7b926b5
[ "MIT" ]
66
2015-09-30T02:43:32.000Z
2022-03-31T02:26:52.000Z
py/List.RandomiseDivide.py
sabeelcoder/SpringNodes
e21a24965474d54369e74d23c06f8c42a7b926b5
[ "MIT" ]
48
2015-11-19T01:34:47.000Z
2022-02-25T17:26:48.000Z
import System pf_path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) import sys sys.path.append('%s\IronPython 2.7\Lib' %pf_path) import random def tolist(x): if hasattr(x,'__iter__'): return x else : return [x] l1, rat, seed = IN l1 = tolist(l1) r = random.Random() r.seed(seed...
21.966667
92
0.657056
0
0
0
0
0
0
0
0
33
0.050076
df716ab6d3838acf70da937bdae974bac37958a0
380
py
Python
src/gui/menu/EditMenu.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
src/gui/menu/EditMenu.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
src/gui/menu/EditMenu.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
import dearpygui.dearpygui as dpg from helpers.logger import Logger from gui.utils import SaveInit class EditMenu: def __init__(self): self.log = Logger("Aural.GUI.Menus.Edit", "gui.log") with dpg.menu(label="Edit"): dpg.add_menu_item(label="Save Window Configuration", callback=SaveIn...
31.666667
83
0.694737
278
0.731579
0
0
0
0
0
0
92
0.242105
df722af80887b0cf34a0cea5105db11e889fcaf7
9,621
py
Python
pipeline/dags/scripts/covid_pandas.py
jjjchens235/covid-compared
c917a3f25738d61d48ce92478c7ef4ef7511d0f9
[ "MIT" ]
4
2021-02-11T22:53:18.000Z
2021-06-11T19:42:34.000Z
pipeline/dags/scripts/covid_pandas.py
jjjchens235/covid-compared
c917a3f25738d61d48ce92478c7ef4ef7511d0f9
[ "MIT" ]
null
null
null
pipeline/dags/scripts/covid_pandas.py
jjjchens235/covid-compared
c917a3f25738d61d48ce92478c7ef4ef7511d0f9
[ "MIT" ]
1
2021-07-07T15:47:39.000Z
2021-07-07T15:47:39.000Z
""" Using pandas library, move data from John Hopkin's github repo to AWS S3 Data source: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series """ import pandas as pd import numpy as np import re from random import randint import s3fs class CovidDF(): def __init__(s...
46.033493
206
0.640682
8,933
0.92849
0
0
0
0
0
0
3,860
0.401206
df7273956d579d51d9a921d58eafb733c6b73e6e
429
py
Python
home/migrations/0006_userdetail_image.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
home/migrations/0006_userdetail_image.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
home/migrations/0006_userdetail_image.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-18 18:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0005_userdetail_mobile'), ] operations = [ migrations.AddField( model_name='userdetail', name='image', ...
22.578947
96
0.613054
336
0.783217
0
0
0
0
0
0
123
0.286713
df73052f4cad8a4635de60b8e9cbafbbb8b2051f
4,754
py
Python
homework3/run.py
IrohXu/NYU_Deep_Reinforcement_Learning
bb8025464b430687c7604e627eefb2908317cfa7
[ "MIT" ]
null
null
null
homework3/run.py
IrohXu/NYU_Deep_Reinforcement_Learning
bb8025464b430687c7604e627eefb2908317cfa7
[ "MIT" ]
null
null
null
homework3/run.py
IrohXu/NYU_Deep_Reinforcement_Learning
bb8025464b430687c7604e627eefb2908317cfa7
[ "MIT" ]
null
null
null
""" This file will run REINFORCE or PPO code with the input seed and environment. """ import gym import os import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt # Import ppo files from ppo.ppo import PPO from ppo.reinforce import REINFORCE from ppo.network import FeedForwardN...
37.433071
136
0.635044
0
0
0
0
0
0
0
0
2,102
0.442154
df731c4155c626f7babe8aacd42d7cca8b9a0894
595
py
Python
cogs/utility/weather.py
austin1965/nuub_bot
08fce234730ce506273199ca9c5c2a5f6e8e925a
[ "MIT" ]
null
null
null
cogs/utility/weather.py
austin1965/nuub_bot
08fce234730ce506273199ca9c5c2a5f6e8e925a
[ "MIT" ]
null
null
null
cogs/utility/weather.py
austin1965/nuub_bot
08fce234730ce506273199ca9c5c2a5f6e8e925a
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from helpers.getWeather import getWeather class Weather(commands.Cog): """ Weather Module """ def __init__(self, bot): self.bot = bot @commands.command(help="Get Tempurature of Specified Location") async def weather(self, ...
24.791667
101
0.642017
444
0.746218
0
0
314
0.527731
245
0.411765
159
0.267227
df733b3b29c36cb38e6e15504e67471f0bd74c1d
1,584
py
Python
python/datapro/framework/util.py
jelloslinger/2015-mlb-hackathon
7c0933302e53ee4a869f01e685d629d981f82598
[ "MIT" ]
null
null
null
python/datapro/framework/util.py
jelloslinger/2015-mlb-hackathon
7c0933302e53ee4a869f01e685d629d981f82598
[ "MIT" ]
null
null
null
python/datapro/framework/util.py
jelloslinger/2015-mlb-hackathon
7c0933302e53ee4a869f01e685d629d981f82598
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from copy import deepcopy import pytz def dict_merge(master, merge): """Recursively merge dicts (originally found at https://www.xormedia.com/recursively-merge-dictionaries-in-python/) Args: master (dict): base dictionary merge (dict): dictionary with entries to ...
41.684211
170
0.654672
0
0
0
0
0
0
0
0
1,139
0.719066
df740b38d28505e192ae196bb018bb75253e05d3
1,182
py
Python
src/backoffice/urls.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/backoffice/urls.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/backoffice/urls.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path, include from .views import * app_name = 'backoffice' urlpatterns = [ path('', BackofficeIndexView.as_view(), name='index'), path('product_handout/', ProductHandoutView.as_view(), name='product_handout'), path('badge_handout/', BadgeHandoutView.as_view(), name='badge_handout'...
49.25
104
0.72758
0
0
0
0
0
0
0
0
444
0.375635
df74d470fa60b60b19d913e4eb8d744dd0a7925b
1,451
py
Python
dynamicProgramming/countOfSubsetsWithSumEqualToX.py
kushvr7/High-On-DSA
d424bd48e35ebd1a588d96c1c0dcb5a9c47a0ef1
[ "MIT" ]
76
2021-12-12T08:42:20.000Z
2022-03-31T19:48:46.000Z
dynamicProgramming/countOfSubsetsWithSumEqualToX.py
kushvr7/High-On-DSA
d424bd48e35ebd1a588d96c1c0dcb5a9c47a0ef1
[ "MIT" ]
4
2022-01-04T09:58:39.000Z
2022-03-30T17:00:39.000Z
dynamicProgramming/countOfSubsetsWithSumEqualToX.py
kushvr7/High-On-DSA
d424bd48e35ebd1a588d96c1c0dcb5a9c47a0ef1
[ "MIT" ]
13
2021-12-12T14:44:41.000Z
2022-03-10T14:08:20.000Z
class Solution: # Recursion Approach def countOfSubsetsWithSumEqualToX(self, arr, X): def helper(arr, X, idx): if idx== len(arr): if X ==0: return 1 else : return 0 res = helper(arr, X-arr[idx], idx+1)+ helper(arr, X, idx+1) return res return helper(arr, X, 0) #...
25.45614
110
0.585803
924
0.636802
0
0
0
0
0
0
201
0.138525
df753d701a9c63bb526e1e2a53b201e6a617af51
334
py
Python
server/app/services/devices/views/__init__.py
goodfree/ActorCloud
e8db470830ea6f6f208ad43c2e56a2e8976bc468
[ "Apache-2.0" ]
173
2019-06-10T07:14:49.000Z
2022-03-31T08:42:36.000Z
server/app/services/devices/views/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
27
2019-06-12T08:25:29.000Z
2022-02-26T11:37:15.000Z
server/app/services/devices/views/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
67
2019-06-10T08:40:05.000Z
2022-03-09T03:43:56.000Z
from flask import Blueprint bp = Blueprint('devices', __name__) from . import emqx # noqa: E402 from . import devices # noqa: E402 from . import select_options # noqa: E402 from . import groups # noqa: E402 from . import security # noqa: E402 __all__ = [ 'bp', 'emqx', 'devices', 'groups', 'security', 'sele...
20.875
67
0.679641
0
0
0
0
0
0
0
0
122
0.365269
df762fc47e8e0a8f06d11c71436c63aab26e2183
398
py
Python
api/app.py
singhprincejeet/in_poster
1b0e18631ebede94e679eb0aba6c8e7630a02aba
[ "MIT" ]
null
null
null
api/app.py
singhprincejeet/in_poster
1b0e18631ebede94e679eb0aba6c8e7630a02aba
[ "MIT" ]
4
2021-04-30T21:09:19.000Z
2022-03-12T00:19:12.000Z
api/app.py
singhprincejeet/in_poster
1b0e18631ebede94e679eb0aba6c8e7630a02aba
[ "MIT" ]
null
null
null
from flask import Flask, request, send_file from main_controller import MainController app = Flask(__name__) @app.route('/generate', methods=['POST']) def generate(): image_src = MainController().generate_image(request) return send_file(image_src) @app.route('/ping', methods=['GET']) def ping(): ...
23.411765
57
0.673367
0
0
0
0
217
0.545226
0
0
54
0.135678
df7ebc0c91b4ff97fcdcda3f164a6e33050dcd41
656
py
Python
python/hps.py
TenType/competition
1715c79c88992e4603b327f962f44eb5bffcb801
[ "MIT" ]
1
2022-02-05T02:11:37.000Z
2022-02-05T02:11:37.000Z
python/hps.py
TenType/competition
1715c79c88992e4603b327f962f44eb5bffcb801
[ "MIT" ]
null
null
null
python/hps.py
TenType/competition
1715c79c88992e4603b327f962f44eb5bffcb801
[ "MIT" ]
null
null
null
n = int(input()) cow1 = [] cow2 = [] combinations = [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]] results = [] for i in range(0, n): temp1, temp2 = map(int, input().split()) cow1.append(temp1) cow2.append(temp2) # print(cow1) # print(cow2) for j in range(0, 6): result = 0 for k in range(0, n)...
24.296296
101
0.585366
0
0
0
0
0
0
0
0
105
0.160061
df7f6e381001b44fc6f3924b2ba0c8c7b78631c0
22,348
py
Python
registerwithkeyframes.py
susu1210/3d_object_reconstruction
e8e9674f728a21c66b9766f5367850d1a65c84c2
[ "MIT" ]
2
2021-07-17T02:52:09.000Z
2021-08-31T06:39:29.000Z
registerwithkeyframes.py
susu1210/3d_object_reconstruction
e8e9674f728a21c66b9766f5367850d1a65c84c2
[ "MIT" ]
null
null
null
registerwithkeyframes.py
susu1210/3d_object_reconstruction
e8e9674f728a21c66b9766f5367850d1a65c84c2
[ "MIT" ]
null
null
null
""" registerSegments.py --------------- Main Function for registering (aligning) colored point clouds with ICP/feature matching as well as pose graph optimizating """ # import png from PIL import Image import csv import open3d as o3d import pymeshlab import numpy as np import cv2 import os import glob from utils.ply...
39.553982
143
0.629363
0
0
0
0
0
0
0
0
5,486
0.245481
df7fa36afb82dd6a775f3e50e8df92a47b653553
236
py
Python
googlesearchpy/utils.py
meads2/googlesearch
63e6a5afd7f7956a78de5b1543489acbd5de428a
[ "MIT" ]
null
null
null
googlesearchpy/utils.py
meads2/googlesearch
63e6a5afd7f7956a78de5b1543489acbd5de428a
[ "MIT" ]
null
null
null
googlesearchpy/utils.py
meads2/googlesearch
63e6a5afd7f7956a78de5b1543489acbd5de428a
[ "MIT" ]
null
null
null
import pandas from uuid import uuid4 import requests import boto3 def download_file(file_url): ''' ''' pass def upload_file(file, dest): ''' ''' pass def create_file_name(filename): ''' ''' pass
10.727273
31
0.597458
0
0
0
0
0
0
0
0
33
0.139831
df810f766ac032bd1a8acd76c0bfff2a5f05effa
397
py
Python
303.range-sum-query-immutable.py
tsonglew/leetcode-solution
abce0c36def55a8d3bf86fca531246a29920e771
[ "Unlicense" ]
null
null
null
303.range-sum-query-immutable.py
tsonglew/leetcode-solution
abce0c36def55a8d3bf86fca531246a29920e771
[ "Unlicense" ]
null
null
null
303.range-sum-query-immutable.py
tsonglew/leetcode-solution
abce0c36def55a8d3bf86fca531246a29920e771
[ "Unlicense" ]
null
null
null
class NumArray: def __init__(self, nums: List[int]): self.nums_sum = [0]*len(nums) for i, _ in enumerate(nums): self.nums_sum[i] = self.nums_sum[i-1] + (nums[i] if i > 0 else nums[i]) def sumRange(self, left: int, right: int) -> int: return self.nums_sum[right] - self.nums_...
39.7
124
0.607053
396
0.997481
0
0
0
0
0
0
0
0
df814f4feae1e5440a9d12c36e4d1e7468d17310
874
py
Python
simple_saga_task_manager/__init__.py
jeremynowell/django-simple-saga-task-manager
7fe0e7773cca2550ee3a954de8e3f7c11eda65a1
[ "Apache-2.0" ]
null
null
null
simple_saga_task_manager/__init__.py
jeremynowell/django-simple-saga-task-manager
7fe0e7773cca2550ee3a954de8e3f7c11eda65a1
[ "Apache-2.0" ]
null
null
null
simple_saga_task_manager/__init__.py
jeremynowell/django-simple-saga-task-manager
7fe0e7773cca2550ee3a954de8e3f7c11eda65a1
[ "Apache-2.0" ]
null
null
null
import sys def inject_default_settings(name): ''' Inject application default settings into config if not already defined. ''' try: __import__('%s.settings' % name) # Import this app defaults app_settings = sys.modules['%s.settings' % name] default_settings = sys.mod...
28.193548
70
0.598398
0
0
0
0
0
0
0
0
274
0.313501
df820b00fafa8e7fb9f86f007a0a19a6003fd3fb
803
py
Python
advent-of-code/2021/day-15-part-1.py
scorphus/sparring
6e53d81f2db39df58561a7fd941d73090712ba52
[ "MIT" ]
2
2017-01-06T15:32:50.000Z
2020-04-16T20:56:02.000Z
advent-of-code/2021/day-15-part-1.py
scorphus/sparring
6e53d81f2db39df58561a7fd941d73090712ba52
[ "MIT" ]
null
null
null
advent-of-code/2021/day-15-part-1.py
scorphus/sparring
6e53d81f2db39df58561a7fd941d73090712ba52
[ "MIT" ]
null
null
null
import heapq with open("day-15.txt") as f: lines = [line for line in f.read().rstrip().splitlines()] graph = {} for i, row in enumerate(lines): for j, n in enumerate(row): graph[i, j] = int(n) DELTAS = ( (0, 1), (1, 0), (-1, 0), (0, -1), ) def find_lowest_risk(graph, start, end): ...
21.702703
69
0.506849
0
0
0
0
0
0
0
0
12
0.014944
df8350f47114b38736a30f3514c9d0957c34d333
48
py
Python
bc/utils/__init__.py
rjgpinel/rlbc
55a7499e4ad10182d9a84ce3c2494231db6fd3b5
[ "MIT" ]
43
2019-10-16T02:56:13.000Z
2022-01-25T02:04:51.000Z
bc/utils/__init__.py
rjgpinel/rlbc
55a7499e4ad10182d9a84ce3c2494231db6fd3b5
[ "MIT" ]
6
2019-10-16T03:44:24.000Z
2021-06-19T21:59:09.000Z
bc/utils/__init__.py
rjgpinel/rlbc
55a7499e4ad10182d9a84ce3c2494231db6fd3b5
[ "MIT" ]
11
2020-03-23T01:47:46.000Z
2021-11-25T07:43:25.000Z
from .report import Report from . import videos
16
26
0.791667
0
0
0
0
0
0
0
0
0
0
df8389a51571d4ddf8c97a80d51e7fea22e8bf63
770
py
Python
nxapi_plumbing/errors.py
markkuleinio/nxapi-plumbing
7b8646272e8a2cc71744fa07a7ad2fbb23a9e136
[ "Apache-2.0" ]
null
null
null
nxapi_plumbing/errors.py
markkuleinio/nxapi-plumbing
7b8646272e8a2cc71744fa07a7ad2fbb23a9e136
[ "Apache-2.0" ]
null
null
null
nxapi_plumbing/errors.py
markkuleinio/nxapi-plumbing
7b8646272e8a2cc71744fa07a7ad2fbb23a9e136
[ "Apache-2.0" ]
null
null
null
class NXAPIError(Exception): """Generic NXAPI exception.""" pass class NXAPICommandError(NXAPIError): def __init__(self, command, message): self.command = command self.message = message def __repr__(self): return 'The command "{}" gave the error "{}".'.format( sel...
18.333333
65
0.654545
754
0.979221
0
0
0
0
0
0
252
0.327273
df84a7a243315f70e25d11411c0e01399e194143
8,223
py
Python
tests/shakedown/shakedown/dcos/cluster.py
ryanmaclean/marathon
cc35af421675205b797b31890e88b5fa4d178a02
[ "Apache-2.0" ]
null
null
null
tests/shakedown/shakedown/dcos/cluster.py
ryanmaclean/marathon
cc35af421675205b797b31890e88b5fa4d178a02
[ "Apache-2.0" ]
1
2021-12-17T10:43:40.000Z
2021-12-17T10:43:40.000Z
tests/shakedown/shakedown/dcos/cluster.py
ryanmaclean/marathon
cc35af421675205b797b31890e88b5fa4d178a02
[ "Apache-2.0" ]
null
null
null
import logging import pytest from . import dcos_version from .. import http, VERSION as SHAKEDOWN_VERSION from ..clients import dcos_url_path from ..clients.mesos import DCOSClient from distutils.version import LooseVersion logger = logging.getLogger(__name__) dcos_1_12 = pytest.mark.skipif('dcos_version_less_than(...
28.852632
86
0.665329
1,309
0.159188
0
0
0
0
0
0
2,938
0.357291
df84b813e3c65c88ad94c8eed596c5b13b13d18b
567
py
Python
gesture_digit_prediction_app/hello/models.py
qiulongquan/DS_Research
864181b458e5af6f22b471d1598b7d96b3efc757
[ "Apache-2.0" ]
1
2020-11-08T07:26:22.000Z
2020-11-08T07:26:22.000Z
gesture_digit_prediction_app/hello/models.py
qiulongquan/DS_Research
864181b458e5af6f22b471d1598b7d96b3efc757
[ "Apache-2.0" ]
null
null
null
gesture_digit_prediction_app/hello/models.py
qiulongquan/DS_Research
864181b458e5af6f22b471d1598b7d96b3efc757
[ "Apache-2.0" ]
null
null
null
from django.db import models class Hello(models.Model): your_name = models.CharField(max_length=15) def __str__(self): return "<{0}>".format(self.your_name) class Qiu(models.Model): qiu_name = models.CharField(max_length=15) def __str__(self): return self.qiu_name class Hello1(mo...
20.25
47
0.68254
526
0.92769
0
0
0
0
0
0
19
0.03351
df84f594b338b4f46fb674c3da1a1636f8537245
766
py
Python
src/img_util.py
naem1023/comic-crawler
24daaea231122e5049af44153eb320f76deffde2
[ "MIT" ]
null
null
null
src/img_util.py
naem1023/comic-crawler
24daaea231122e5049af44153eb320f76deffde2
[ "MIT" ]
4
2020-06-06T00:12:42.000Z
2022-03-12T00:32:10.000Z
src/img_util.py
naem1023/comic-crawler
24daaea231122e5049af44153eb320f76deffde2
[ "MIT" ]
null
null
null
def delete_navi_bar(driver): """Delete navigation of page for capturing clear image. """ js_string = """ function f() { var x = document.getElementsByClassName("manga-bottom-navi"); for(var i = x.length - 1; i >= 0; i--) { x[i].parentNode.removeChild(x[i]); } } f(); ...
24.709677
64
0.574413
0
0
0
0
0
0
0
0
584
0.762402
df85135a7ca551c37959030d0ede868200ce2534
1,621
py
Python
mycleanup.py
azam-a/newdeployments
eb23fa35f2c200b9726760e70a36e95ba277478f
[ "MIT" ]
null
null
null
mycleanup.py
azam-a/newdeployments
eb23fa35f2c200b9726760e70a36e95ba277478f
[ "MIT" ]
null
null
null
mycleanup.py
azam-a/newdeployments
eb23fa35f2c200b9726760e70a36e95ba277478f
[ "MIT" ]
null
null
null
import re from mydeploy import ( get_file_objects, S3Util, ) from environment_config import ( AWS_CONFIG_PATH, AWS_PROFILE, CSS_BUCKET, IMAGE_BUCKET, JS_BUCKET, CSS_PREFIX, IMAGE_PREFIX, JS_PREFIX, XML_PATH ) def cleanup_main(): c = S3Util.create_connection_...
25.730159
75
0.587909
0
0
0
0
0
0
0
0
194
0.119679
df867ad23e683b9a9e6885db5e7d9658c76ccb74
4,276
py
Python
menu.py
ateesdalejr/gseepy
696b415b1eba9cf1e44ec3b84aff5fcabd12e26e
[ "MIT" ]
null
null
null
menu.py
ateesdalejr/gseepy
696b415b1eba9cf1e44ec3b84aff5fcabd12e26e
[ "MIT" ]
null
null
null
menu.py
ateesdalejr/gseepy
696b415b1eba9cf1e44ec3b84aff5fcabd12e26e
[ "MIT" ]
null
null
null
import sys class DirEntity: def __init__(self, type_char, user_name, selector, host, port): self.type = type_char self.user_name = user_name self.selector = selector self.host = host self.port = port def __eq__(self, other): if type(other) != type(sel...
30.326241
93
0.520814
4,009
0.937558
0
0
0
0
0
0
1,105
0.258419
df86d5c6b4b089e29b6cb8ffc873290fe6e91206
184
py
Python
script/idp_testdrv.py
skanct/pysaml2
0c1e26a6dd8759962857a30ebd67f63fe9e881ee
[ "Apache-2.0" ]
249
2018-03-01T09:47:04.000Z
2022-03-26T04:51:26.000Z
desktop/core/ext-py/pysaml2-4.4.0/script/idp_testdrv.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
416
2018-02-21T15:18:35.000Z
2022-03-04T16:59:36.000Z
desktop/core/ext-py/pysaml2-4.4.0/script/idp_testdrv.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
203
2018-02-21T13:53:12.000Z
2022-03-08T22:22:17.000Z
#!/usr/bin/env python __author__ = 'rohe0002' #from idp_test import saml2base from idp_test import SAML2client from idp_test.check import factory cli = SAML2client(factory) cli.run()
20.444444
34
0.793478
0
0
0
0
0
0
0
0
62
0.336957
df89b374617f742546d6eb7e0fd0ae663bedfddc
5,265
py
Python
06-learning-to-classify-text/util/data_util.py
SolangeUG/nltk-book
05051325a64836ae5c89d18f3c2145e9a6c4f0ae
[ "Apache-2.0" ]
2
2018-08-05T15:50:12.000Z
2019-01-24T05:52:02.000Z
06-learning-to-classify-text/util/data_util.py
SolangeUG/nltk-book
05051325a64836ae5c89d18f3c2145e9a6c4f0ae
[ "Apache-2.0" ]
null
null
null
06-learning-to-classify-text/util/data_util.py
SolangeUG/nltk-book
05051325a64836ae5c89d18f3c2145e9a6c4f0ae
[ "Apache-2.0" ]
null
null
null
import os import gzip import json import numpy import urllib.request from nltk.sentiment.util import mark_negation from nltk.corpus import stopwords, opinion_lexicon from nltk.tokenize import sent_tokenize, word_tokenize def download_data(dataset_name, directory_name): """ Download a given dataset name into a...
38.430657
100
0.677113
0
0
0
0
0
0
0
0
2,187
0.415385
df8a5491c4a53b67677666f587efabbb177459a7
12,698
py
Python
mdrparser.py
tringcooler/MODRON
c0cac79d1d008ffc51d9caf44f1cd299ca586682
[ "MIT" ]
null
null
null
mdrparser.py
tringcooler/MODRON
c0cac79d1d008ffc51d9caf44f1cd299ca586682
[ "MIT" ]
null
null
null
mdrparser.py
tringcooler/MODRON
c0cac79d1d008ffc51d9caf44f1cd299ca586682
[ "MIT" ]
null
null
null
#! python3 # coding: utf-8 KLX_CMT = '#' KLX_NL = '\n' KW_LBL = ':' KW_SPL = '/' KW_BR1 = '(' KW_BR2 = ')' PRMTCH = lambda s, d: len(s) >= len(d) and s[:len(d)] == d class err_lexer(Exception): pass class err_syntax(Exception): pass class c_lexer: def __init__(self, raw): self.raw = raw ...
26.509395
77
0.448968
12,234
0.963459
118
0.009293
228
0.017956
0
0
1,310
0.103166
df8a61948b20fa7f74303bd764e0bddf4135648b
1,373
py
Python
965.univalued-binary-tree.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
965.univalued-binary-tree.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
965.univalued-binary-tree.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=965 lang=python # # [965] Univalued Binary Tree # # https://leetcode.com/problems/univalued-binary-tree/description/ # # algorithms # Easy (66.96%) # Likes: 222 # Dislikes: 36 # Total Accepted: 43.7K # Total Submissions: 65.3K # Testcase Example: '[1,1,1,1,1,null,1]' # # A ...
18.306667
85
0.595047
573
0.417031
0
0
0
0
0
0
811
0.590247
df8a6798247986c50a85f8670d6092c7023d686b
4,501
py
Python
application/pca.py
AdamuKaapan/natrium
b94527b287ec2c626be2fe37208bb043aab68b48
[ "BSD-2-Clause" ]
null
null
null
application/pca.py
AdamuKaapan/natrium
b94527b287ec2c626be2fe37208bb043aab68b48
[ "BSD-2-Clause" ]
13
2018-04-03T20:34:17.000Z
2018-04-20T08:33:50.000Z
application/pca.py
AdamuKaapan/natrium
b94527b287ec2c626be2fe37208bb043aab68b48
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python3 """ Standalone script for evaluating a dataset. Calculates measures of label quality and tries to spot outliers. Usage: python3 investigate.py <filename>""" import argparse import pandas as pd import numpy as np import math import matplotlib import matplotlib.pyplot as plt from mpl_toolkit...
31.041379
120
0.614974
0
0
0
0
0
0
0
0
1,052
0.233726
df8ace422d0773f016abe3a66ba963ff2a2e4e02
1,571
py
Python
src/metrics/patterns.py
dapaulid/life
365e717f4080b1a1439767d5119dfca0a15d194b
[ "MIT" ]
null
null
null
src/metrics/patterns.py
dapaulid/life
365e717f4080b1a1439767d5119dfca0a15d194b
[ "MIT" ]
null
null
null
src/metrics/patterns.py
dapaulid/life
365e717f4080b1a1439767d5119dfca0a15d194b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- """ @license Copyright (c) Daniel Pauli <dapaulid@gmail.com> This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ #------------...
29.641509
80
0.299173
435
0.276894
0
0
0
0
0
0
1,187
0.75557
df8adf88d2253216c359a48351327728bebbd134
4,241
py
Python
seq2annotation/trainer/cli_keras_with_static_constraint.py
shfshf/seq2annotation
d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed
[ "Apache-2.0" ]
90
2018-11-29T07:05:16.000Z
2021-11-22T11:32:58.000Z
seq2annotation/trainer/cli_keras_with_static_constraint.py
shfshf/seq2annotation
d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed
[ "Apache-2.0" ]
50
2019-06-27T07:11:18.000Z
2022-02-10T00:01:02.000Z
seq2annotation/trainer/cli_keras_with_static_constraint.py
lanSeFangZhou/seq2annotation
a824520d46f0b3d70268fae422976a5ce1b3f4ce
[ "Apache-2.0" ]
23
2019-01-03T14:57:15.000Z
2022-03-08T07:50:33.000Z
import json import os from collections import Counter import numpy as np import tensorflow as tf from tensorflow.python.keras import models from tensorflow.python.keras.layers import Embedding, Bidirectional, LSTM from tensorflow.python.keras.models import Sequential from tensorflow.python.keras import layers from io...
32.875969
90
0.741335
0
0
0
0
0
0
0
0
1,108
0.261259
df8b407a97a9963fd97e20231c745cbbd8f314bf
302
py
Python
src/cores/kb_solve/directions.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
src/cores/kb_solve/directions.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
src/cores/kb_solve/directions.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
class DIRECTIONS: UP = (0, 1) # North UP South DOWN West LEFT EAST RIGHT DOWN = (0, -1) RIGHT = (1, 0) LEFT = (-1, 0) NORTH = (0, 1) SOUTH = (0, -1) EAST = (1, 0) WEST = (-1, 0) l_directions = [UP, DOWN, RIGHT, LEFT] LM_DIRECTIONS = [NORTH, SOUTH, EAST, WEST]
23.230769
59
0.513245
301
0.996689
0
0
0
0
0
0
42
0.139073
df8ded00dd28c0e6b3a11975940107dae04c01d4
100,345
py
Python
apfell_api_wrapper/apfell_cli.py
Dviros/Apfell
c9089afb208bff310a8e6d8389cbccd6ae633f87
[ "BSD-3-Clause" ]
null
null
null
apfell_api_wrapper/apfell_cli.py
Dviros/Apfell
c9089afb208bff310a8e6d8389cbccd6ae633f87
[ "BSD-3-Clause" ]
null
null
null
apfell_api_wrapper/apfell_cli.py
Dviros/Apfell
c9089afb208bff310a8e6d8389cbccd6ae633f87
[ "BSD-3-Clause" ]
null
null
null
import aiohttp import asyncio import json from typing import Dict, List, Union async def json_print(thing): print(json.dumps(thing, indent=2, default=lambda o: o.to_json())) async def json_apfell_obj(thing): return json.loads(json.dumps(thing, default=lambda o: o.to_json())) class APIToken: def __init...
36.383249
186
0.587722
100,012
0.996681
0
0
32,403
0.322916
33,468
0.333529
13,639
0.135921
df8ecfcf14d1349c62ad20d2cef2d653f9568c1a
1,932
py
Python
source_code/scree_plot.py
sdyinzhen/AutoBEL
213011ef8c6d2bcc16ac92a263e615f4a7033ff4
[ "MIT" ]
8
2020-05-15T13:57:54.000Z
2022-02-23T23:21:15.000Z
source_code/scree_plot.py
sdyinzhen/AutoBEL
213011ef8c6d2bcc16ac92a263e615f4a7033ff4
[ "MIT" ]
1
2020-02-28T13:42:45.000Z
2020-03-02T19:12:22.000Z
source_code/scree_plot.py
sdyinzhen/AutoBEL
213011ef8c6d2bcc16ac92a263e615f4a7033ff4
[ "MIT" ]
7
2019-10-24T09:57:25.000Z
2022-02-23T23:20:50.000Z
#Author: David Zhen Yin #Contact: yinzhen@stanford.edu #Date: September 11, 2018 import numpy as np import matplotlib.pyplot as plt def scree_plot(input_data, data_name, keep_info_prcnt, plotORnot): '''This is the PCA scree plot function, This function also report the number of PCs that preserves the assig...
55.2
128
0.669772
0
0
0
0
0
0
0
0
806
0.417184
df8f7ab90da5fa178b8ded136f6a227273e014cb
2,281
py
Python
neoman/yubicommon/qt/__init__.py
Yubico/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
5
2015-05-14T16:26:26.000Z
2021-11-16T21:26:38.000Z
neoman/yubicommon/qt/__init__.py
DalavanCloud/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
2
2015-01-30T10:30:41.000Z
2015-04-16T09:31:38.000Z
neoman/yubicommon/qt/__init__.py
DalavanCloud/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
4
2015-05-14T16:26:30.000Z
2021-11-16T21:26:28.000Z
# Copyright (c) 2013 Yubico AB # 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 # notice, this list of conditi...
38.661017
76
0.73345
0
0
0
0
0
0
0
0
1,561
0.684349
df905bc351d7f12704a926c3971aa0f08d744fbd
286
py
Python
p7.py
rammyaiyer55/Introduction-into-Python
6c9220de4dc30e406bf76f637ad3a4818cead9f1
[ "MIT" ]
null
null
null
p7.py
rammyaiyer55/Introduction-into-Python
6c9220de4dc30e406bf76f637ad3a4818cead9f1
[ "MIT" ]
null
null
null
p7.py
rammyaiyer55/Introduction-into-Python
6c9220de4dc30e406bf76f637ad3a4818cead9f1
[ "MIT" ]
null
null
null
t=int(input("Enter the number of test cases:")) temp='' msg=input("Enter your message:") print(len(msg)) ss=list(msg) if ss%2==0: for i in range(len(ss)): if i%2==0: temp+=ss[i].upper() else: temp+=ss[i].lower() else: for i in range(len(ss)): if print(temp)
19.066667
48
0.587413
0
0
0
0
0
0
0
0
56
0.195804
df911bbf31e9124090bd4e868dde32db29f1bbb5
2,395
py
Python
examples/e3_sensitivity_analysis_example.py
RWTH-EBC/AixCaliBuHA
2f01035d3c966b465dedf9243674fbb3b35ac7f0
[ "MIT" ]
2
2021-09-01T07:25:28.000Z
2021-09-16T16:47:45.000Z
examples/e3_sensitivity_analysis_example.py
RWTH-EBC/AixCaliBuHA
2f01035d3c966b465dedf9243674fbb3b35ac7f0
[ "MIT" ]
19
2021-09-06T14:36:44.000Z
2022-03-30T06:20:42.000Z
examples/e3_sensitivity_analysis_example.py
RWTH-EBC/AixCaliBuHA
2f01035d3c966b465dedf9243674fbb3b35ac7f0
[ "MIT" ]
null
null
null
""" Example file for the senstivity_analyzer package. The usage of modules and classes inside the senanalyzer package should be clear when looking at the examples. If not, please raise an issue. Goals of this part of the examples: 1. Learn how to execute a sensitivity analysis 2. Learn how to automatically select sens...
38.015873
89
0.699791
0
0
0
0
0
0
0
0
1,399
0.584134
df91d1ada3f3d05c025daba9488ddff7b71f714b
1,985
py
Python
setup.py
seek-ai/esengine
5e17c5fa9b6990963e3e61e6010ce7c177c9b2c5
[ "MIT" ]
53
2017-04-29T16:39:13.000Z
2022-01-25T23:46:31.000Z
setup.py
seek-ai/esengine
5e17c5fa9b6990963e3e61e6010ce7c177c9b2c5
[ "MIT" ]
9
2017-11-22T18:22:17.000Z
2020-06-05T19:26:07.000Z
setup.py
seek-ai/esengine
5e17c5fa9b6990963e3e61e6010ce7c177c9b2c5
[ "MIT" ]
13
2017-10-27T13:44:04.000Z
2021-02-28T12:33:04.000Z
# coding: utf-8 import os import re try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): long_description = "Elasticsearch ODM...
26.824324
66
0.617632
0
0
0
0
0
0
0
0
878
0.442317
df91f102ccd7ef11d324316885afcaaad8f975b0
9,350
py
Python
oss-compliance/check-oss-licenses.py
rickibm/daml
679d42a21bce320e11ccbba77fbb8d29a2b38db9
[ "Apache-2.0" ]
null
null
null
oss-compliance/check-oss-licenses.py
rickibm/daml
679d42a21bce320e11ccbba77fbb8d29a2b38db9
[ "Apache-2.0" ]
null
null
null
oss-compliance/check-oss-licenses.py
rickibm/daml
679d42a21bce320e11ccbba77fbb8d29a2b38db9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env runpipenv # Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 import os import xml.etree.ElementTree as ET import sys import csv import re import argparse import os.path NO_LICENSE = 'No license information available' ...
40.652174
135
0.673904
0
0
0
0
0
0
0
0
2,334
0.249626
df92dd7a57c9a33e613c07064ef90d83f737c5b5
142
py
Python
libreasso/communication/apps.py
codoit/libreasso
fd9f12e958be4087d3a70582677007ed7f7a6eb3
[ "MIT" ]
1
2016-12-19T17:26:00.000Z
2016-12-19T17:26:00.000Z
libreasso/communication/apps.py
codoit/libreasso
fd9f12e958be4087d3a70582677007ed7f7a6eb3
[ "MIT" ]
17
2017-01-05T15:54:03.000Z
2017-01-05T15:55:13.000Z
libreasso/communication/apps.py
codoit/libreasso
fd9f12e958be4087d3a70582677007ed7f7a6eb3
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class CommunicationConfig(AppConfig): name = 'communication'
17.75
39
0.809859
64
0.450704
0
0
0
0
0
0
15
0.105634
df95e33af5973f76af473d1aa018e47f13e911d4
4,930
py
Python
src/ctc/rpc/rpc_executors_async/rpc_state_executors_async.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/rpc/rpc_executors_async/rpc_state_executors_async.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/rpc/rpc_executors_async/rpc_state_executors_async.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations import typing from ctc import evm from ctc import spec from .. import rpc_constructors from .. import rpc_digestors from .. import rpc_request async def async_eth_call( to_address: spec.Address, from_address: spec.BinaryData | None = None, gas: spec.BinaryData | None ...
31.806452
71
0.704665
0
0
0
0
0
0
4,734
0.960243
74
0.01501
10bf0228693f50f71f5415fe85ef0dbd66b187d3
939
py
Python
RadioStation/Media/Media.py
m-mohiey/AutomaticRadioStation
9ec3935e08ef58302d314387bc107bd1be8a6418
[ "MIT" ]
null
null
null
RadioStation/Media/Media.py
m-mohiey/AutomaticRadioStation
9ec3935e08ef58302d314387bc107bd1be8a6418
[ "MIT" ]
null
null
null
RadioStation/Media/Media.py
m-mohiey/AutomaticRadioStation
9ec3935e08ef58302d314387bc107bd1be8a6418
[ "MIT" ]
null
null
null
import ffmpeg from datetime import timedelta class Media: def __init__(self, path): self.path = path self._metadata = ffmpeg.probe(path)['format'] @property def duration(self): return timedelta(seconds=float(self._metadata['duration'])) @property def media_type(self): ...
28.454545
245
0.650692
497
0.529286
0
0
352
0.374867
0
0
286
0.304579
10bf89bcb843569b19b7f60f702ee2b9ea5cd457
1,731
py
Python
cogeo_mosaic/backends/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
cogeo_mosaic/backends/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
cogeo_mosaic/backends/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
"""cogeo_mosaic.backends.""" from typing import Any from urllib.parse import urlparse from cogeo_mosaic.backends.base import BaseBackend from cogeo_mosaic.backends.dynamodb import DynamoDBBackend from cogeo_mosaic.backends.file import FileBackend from cogeo_mosaic.backends.memory import MemoryBackend from cogeo_mosai...
31.472727
70
0.674754
0
0
0
0
0
0
0
0
380
0.219526
10bfed5cbc51ad7c7539fdeda3a165f6867a4380
2,791
py
Python
poetics/classes/word.py
M-R-Epstein/poetics
6331517c22ca567b9c68e2c668f670855e2ba618
[ "MIT" ]
4
2019-02-21T20:53:57.000Z
2022-03-12T16:36:02.000Z
poetics/classes/word.py
M-R-Epstein/poetics
6331517c22ca567b9c68e2c668f670855e2ba618
[ "MIT" ]
1
2019-02-19T14:37:29.000Z
2019-02-19T14:37:29.000Z
poetics/classes/word.py
M-R-Epstein/poetics
6331517c22ca567b9c68e2c668f670855e2ba618
[ "MIT" ]
null
null
null
import logging from poetics.lookups import get_pronunciations, check_onomatopoetic from poetics.classes.pronunciation import Pronunciation from poetics.stemmer import stem class Word: def __init__(self, word, user_pronunciation=None, parent=None): self.parent = parent self.token = word se...
41.656716
117
0.52741
2,615
0.93694
0
0
0
0
0
0
264
0.09459
10c0870da00b35c6778a8e70ca0a44b497c66b39
2,708
py
Python
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
1
2020-06-30T21:06:02.000Z
2020-06-30T21:06:02.000Z
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
null
null
null
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
null
null
null
"""This module regroups preset patterns related to schools in order to quickly create emails using the NamesAlgorithm Description ----------- You can either subclass an already defined school or create a new school by subclass NamePatterns. For instance, improving a school would look like this: class EDHEC2(EDHE...
23.964602
78
0.638848
1,067
0.394018
0
0
0
0
0
0
1,778
0.656573
10c08de6fd348e965adc6b4cd3b914c3ed69fd8d
821
py
Python
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
24
2021-04-02T20:54:45.000Z
2021-11-22T05:37:34.000Z
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
2
2021-04-04T03:45:38.000Z
2021-04-19T12:59:37.000Z
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
10
2021-04-02T20:57:38.000Z
2021-11-17T07:35:59.000Z
from typing import Any from wav2vec_toolkit.text_preprocessing.normalizers import NormalizerOperation def is_upper_vowel(letter): return letter in ["A", "E", "I", "O", "U", "Á", "É", "Í", "Ó", "Ú"] def irish_lower_word(word): if len(word) > 1 and word[0] in ["n", "t"] and is_upper_vowel(word[1]): r...
30.407407
87
0.634592
426
0.512635
0
0
0
0
0
0
84
0.101083
10c21646af3e0a3b43959840da1cc1ba5fb1fa68
6,077
py
Python
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
1
2019-06-23T05:44:46.000Z
2019-06-23T05:44:46.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: nullabletypes.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as ...
26.889381
342
0.729636
0
0
0
0
0
0
0
0
1,240
0.204048
10c26729944d8e47d9f5c6b192937359e48e63ef
4,584
py
Python
housing_prices_kaggle/results/2020-04-29/runall.py
be2112/modeling_projects
db870ad684d31f1c95b66a782c8bbffacb55c352
[ "MIT" ]
null
null
null
housing_prices_kaggle/results/2020-04-29/runall.py
be2112/modeling_projects
db870ad684d31f1c95b66a782c8bbffacb55c352
[ "MIT" ]
null
null
null
housing_prices_kaggle/results/2020-04-29/runall.py
be2112/modeling_projects
db870ad684d31f1c95b66a782c8bbffacb55c352
[ "MIT" ]
null
null
null
# runall.py from collections import OrderedDict from sklearn.ensemble import RandomForestRegressor from sklearn.impute import SimpleImputer from sklearn.model_selection import ShuffleSplit from sklearn.pipeline import Pipeline from sklearn.pipeline import make_pipeline, FeatureUnion from sklearn.preprocessing import O...
39.86087
120
0.695462
0
0
0
0
0
0
0
0
1,593
0.347513
10c276665fdc1e825769c5b7cc90dc3c42bee62b
37
py
Python
{{ cookiecutter.domain }}/custom_components/{{ cookiecutter.domain }}/const.py
Rihan9/cookiecutter-homeassistant-component
46bdd8e16d360562b0513a12f6c46df473bb4d89
[ "MIT" ]
26
2020-06-01T02:58:33.000Z
2022-03-26T00:55:06.000Z
{{ cookiecutter.domain }}/custom_components/{{ cookiecutter.domain }}/const.py
Rihan9/cookiecutter-homeassistant-component
46bdd8e16d360562b0513a12f6c46df473bb4d89
[ "MIT" ]
3
2020-09-09T13:54:59.000Z
2021-08-29T17:43:34.000Z
{{ cookiecutter.domain }}/custom_components/{{ cookiecutter.domain }}/const.py
Rihan9/cookiecutter-homeassistant-component
46bdd8e16d360562b0513a12f6c46df473bb4d89
[ "MIT" ]
14
2020-06-01T12:28:08.000Z
2022-03-20T16:07:23.000Z
DOMAIN = "{{ cookiecutter.domain }}"
18.5
36
0.648649
0
0
0
0
0
0
0
0
27
0.72973
10c2820d996e4ee29bd411bddd15d40dc887279b
1,235
py
Python
colourz/spinners.py
alexmacniven/colour
3565f1da670bcc26858db52db6bee40c06f29f9a
[ "MIT" ]
null
null
null
colourz/spinners.py
alexmacniven/colour
3565f1da670bcc26858db52db6bee40c06f29f9a
[ "MIT" ]
2
2019-04-03T14:54:31.000Z
2020-03-24T16:27:48.000Z
colourz/spinners.py
alexmacniven/colour
3565f1da670bcc26858db52db6bee40c06f29f9a
[ "MIT" ]
1
2019-03-21T14:06:23.000Z
2019-03-21T14:06:23.000Z
import sys import threading import time class Bullets: @staticmethod def spinning_cursor(): c = [ "[- ]", "[ - ]", "[ - ]", "[ - ]", "[ -]", "[ - ]", "[ - ]", "[ - ]" ] wh...
23.301887
58
0.42915
1,192
0.965182
305
0.246964
323
0.261538
0
0
115
0.093117
10c2ed18dfd7bc71d142425cca4751533bd0adeb
346
py
Python
ores/tests/test_score_request.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
ores/tests/test_score_request.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
ores/tests/test_score_request.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
from ..score_request import ScoreRequest def test_score_request(): sr = ScoreRequest("foo", [1, 2, 3], ["bar", "baz"]) assert sr.context_name == "foo" assert sr.rev_ids == {1, 2, 3} assert sr.model_names == {"bar", "baz"} assert sr.precache is False assert sr.include_features is False ass...
26.615385
55
0.653179
0
0
0
0
0
0
0
0
30
0.086705
10c31a3d91c9d33e35570eebf1a248037271c823
613
py
Python
project/fs/fs_generalfunctions.py
cj8-cheerful-cheetas/project
5d9c7cfc2cfec5fca05997bc42d490529cd935ab
[ "MIT" ]
null
null
null
project/fs/fs_generalfunctions.py
cj8-cheerful-cheetas/project
5d9c7cfc2cfec5fca05997bc42d490529cd935ab
[ "MIT" ]
3
2021-07-17T10:52:21.000Z
2021-07-17T10:55:54.000Z
project/fs/fs_generalfunctions.py
cj8-cheerful-cheetas/project
5d9c7cfc2cfec5fca05997bc42d490529cd935ab
[ "MIT" ]
2
2021-07-17T10:54:33.000Z
2021-08-30T19:27:49.000Z
from fs.fs_exceptions import NoSuchIndex def restrictRange(min, max, keyword): def decorator(function): def check(*args, **kwargs): if min <= kwargs[keyword] < max: return function(*args, **kwargs) raise NoSuchIndex() return check return decorator "arr...
19.774194
62
0.595432
0
0
0
0
0
0
0
0
15
0.02447
10c3b9550e1437e1be83b2829d5baa30281f891a
9,785
py
Python
Spatial-Transformer-PCD/sampling-based/splatnet/semseg3d/test.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
Spatial-Transformer-PCD/sampling-based/splatnet/semseg3d/test.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
Spatial-Transformer-PCD/sampling-based/splatnet/semseg3d/test.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
""" Copyright (C) 2018 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ import os import glob import argparse import time import numpy as np import caffe import splatnet.configs from splatnet.utils import modify_blob_...
41.995708
120
0.626265
0
0
0
0
0
0
0
0
2,566
0.262238
10c432e6abf57e89ba6b4e43e6f68aa1e3b62483
3,284
py
Python
lib/metrics.py
nobodykid/dcgan_code
be7ddca6abd34cb5436b8304bf956cff8c40f3f2
[ "MIT" ]
null
null
null
lib/metrics.py
nobodykid/dcgan_code
be7ddca6abd34cb5436b8304bf956cff8c40f3f2
[ "MIT" ]
null
null
null
lib/metrics.py
nobodykid/dcgan_code
be7ddca6abd34cb5436b8304bf956cff8c40f3f2
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import theano import theano.tensor as T import gc import time from theano_utils import floatX from ops import euclidean, cosine from sklearn import metrics from sklearn.linear_model import LogisticRegression as LR def cv_reg_lr(trX, trY, vaX, vaY, Cs=[0.01, 0.05, 0.1, 0.5, 1., ...
32.84
98
0.592266
0
0
0
0
0
0
0
0
148
0.045067
10c5726cbf6c5c23694fc1846d272d5090d75571
1,130
py
Python
hassio-google-drive-backup/backup/model/syncer.py
voxipbx/hassio-addons
ddf2f1745f4240c2905f9f9d7616a927fb8934e4
[ "MIT" ]
1
2022-01-22T18:27:04.000Z
2022-01-22T18:27:04.000Z
hassio-google-drive-backup/backup/model/syncer.py
voxipbx/hassio-addons
ddf2f1745f4240c2905f9f9d7616a927fb8934e4
[ "MIT" ]
19
2021-09-29T06:13:25.000Z
2022-03-08T06:13:49.000Z
hassio-google-drive-backup/backup/model/syncer.py
voxipbx/hassio-addons
ddf2f1745f4240c2905f9f9d7616a927fb8934e4
[ "MIT" ]
1
2021-12-12T19:31:05.000Z
2021-12-12T19:31:05.000Z
from typing import List from injector import inject, singleton from .coordinator import Coordinator from backup.time import Time from backup.worker import Worker, Trigger from backup.logger import getLogger from backup.exceptions import PleaseWait logger = getLogger(__name__) @singleton class Scyncer(Worker): ...
30.540541
81
0.621239
836
0.739823
0
0
847
0.749558
544
0.481416
102
0.090265
10c592d9473d66ce7243d0ca836019f719f1800a
35
py
Python
venv/lib/python3.6/tempfile.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
venv/lib/python3.6/tempfile.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
venv/lib/python3.6/tempfile.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
/anaconda/lib/python3.6/tempfile.py
35
35
0.828571
0
0
0
0
0
0
0
0
0
0
10c684ce31863da0ee17c3411588cb6b1aa624c4
6,832
py
Python
momo/plugins/flask/search.py
shichao-an/momo
9996bc22b1d99d379633e18e94f4815e12435898
[ "BSD-2-Clause" ]
6
2018-06-08T18:49:10.000Z
2020-09-29T23:54:38.000Z
momo/plugins/flask/search.py
shichao-an/momo
9996bc22b1d99d379633e18e94f4815e12435898
[ "BSD-2-Clause" ]
3
2016-08-13T02:15:04.000Z
2016-11-02T00:05:40.000Z
momo/plugins/flask/search.py
shichao-an/momo
9996bc22b1d99d379633e18e94f4815e12435898
[ "BSD-2-Clause" ]
2
2018-06-08T18:49:12.000Z
2018-08-07T07:17:26.000Z
# search backend from momo.core import Node from momo.plugins.flask.filters import get_attr from momo.plugins.flask.utils import str_to_bool, split_by from momo.utils import txt_type, bin_type class SearchError(Exception): pass def join_terms(*args): res = [] for arg in args: res.append(arg.str...
32.688995
78
0.55079
38
0.005562
0
0
0
0
0
0
2,135
0.3125
10c78dc6410c3747583e9c4164a76821855cd1e1
116
py
Python
Web/utils/functions.py
CabbSir/CAU_Graduate_Course_Schedule
63765875a413c2fc9a13eaeda26271325ceea2d0
[ "MIT" ]
null
null
null
Web/utils/functions.py
CabbSir/CAU_Graduate_Course_Schedule
63765875a413c2fc9a13eaeda26271325ceea2d0
[ "MIT" ]
null
null
null
Web/utils/functions.py
CabbSir/CAU_Graduate_Course_Schedule
63765875a413c2fc9a13eaeda26271325ceea2d0
[ "MIT" ]
null
null
null
from flask import request def get_real_ip(): return request.environ.get('HTTP_X_REAL_IP', request.remote_addr)
23.2
69
0.784483
0
0
0
0
0
0
0
0
16
0.137931
10c7b4e8d153e9a166fd23f1d8c092f1c7442e90
10,877
py
Python
lakesuperior/api/resource.py
barmintor/lakesuperior
a1e534a56cf762e55273d2421edf5e4948c3159b
[ "Apache-2.0" ]
null
null
null
lakesuperior/api/resource.py
barmintor/lakesuperior
a1e534a56cf762e55273d2421edf5e4948c3159b
[ "Apache-2.0" ]
null
null
null
lakesuperior/api/resource.py
barmintor/lakesuperior
a1e534a56cf762e55273d2421edf5e4948c3159b
[ "Apache-2.0" ]
null
null
null
import logging from functools import wraps from itertools import groupby from multiprocessing import Process from threading import Lock, Thread import arrow from rdflib import Graph, Literal, URIRef from rdflib.namespace import XSD from lakesuperior.config_parser import config from lakesuperior.exceptions import ( ...
32.085546
85
0.689069
0
0
0
0
7,124
0.65484
0
0
6,100
0.560713
10c83c58eb3b561c0d0dd30c346ea077d7b88fb9
110
py
Python
env/lib/python3.6/site-packages/openpyxl/workbook/external_link/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
env/lib/python3.6/site-packages/openpyxl/workbook/external_link/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
env/lib/python3.6/site-packages/openpyxl/workbook/external_link/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
from __future__ import absolute_import # Copyright (c) 2010-2015 openpyxl from .external import ExternalLink
22
38
0.827273
0
0
0
0
0
0
0
0
34
0.309091
10ca34a36e384eb81002bc0dd5ef92f09e6cd1e3
1,212
py
Python
src/data/download/utils/test_tqdm.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
1
2022-03-30T15:06:18.000Z
2022-03-30T15:06:18.000Z
src/data/download/utils/test_tqdm.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
src/data/download/utils/test_tqdm.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
import time from tqdm import tqdm from src.data.download.utils.tqdm_write import ( tqdm_print, tqdm_printer, tqdm_run_parallel, ) def func0(tqdm_name, tqdm_idx): N = 100 with tqdm(desc=tqdm_name, total=N, position=tqdm_idx, leave=False) as pbar: for i in range(N): pbar.update(...
22.867925
79
0.617162
0
0
0
0
0
0
0
0
72
0.059406
10ca661d82b5269b0a8ebb7b120cf2934c9a705f
515
py
Python
src/package_controller/library/utils/pipe_commands.py
alexseitsinger/package_controller
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
[ "BSD-2-Clause" ]
2
2020-11-24T14:16:38.000Z
2021-03-16T19:29:45.000Z
src/package_controller/library/utils/pipe_commands.py
alexseitsinger/package_controller
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
[ "BSD-2-Clause" ]
2
2020-11-25T01:00:45.000Z
2020-11-25T01:59:58.000Z
src/package_controller/library/utils/pipe_commands.py
alexseitsinger/package_controller
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
[ "BSD-2-Clause" ]
null
null
null
from subprocess import Popen, PIPE import shlex def pipe_commands(commands): first_proc = None last_proc = None for command in commands: args = shlex.split(command) if first_proc is None: first_proc = last_proc = Popen(args, stdout=PIPE, stderr=PIPE) else: l...
28.611111
85
0.660194
0
0
0
0
0
0
0
0
7
0.013592
10ccc2f736285f1e812a42e394e0d8d9c3d5186a
2,248
py
Python
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-14 22:02 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.CreateModel( name='UserProfile', fields...
49.955556
114
0.593416
2,159
0.958278
0
0
0
0
0
0
489
0.217044
10cdb0831f3d47cf768cf2a8247cb721e4071727
1,946
py
Python
fast_transformers/recurrent/attention/full_attention.py
jmercat/fast-transformers
1061f2ffa09c6d74aa252389e47f76ae827b1064
[ "MIT" ]
4
2020-09-28T01:47:19.000Z
2021-02-24T17:01:25.000Z
fast_transformers/recurrent/attention/full_attention.py
jmercat/fast-transformers
1061f2ffa09c6d74aa252389e47f76ae827b1064
[ "MIT" ]
null
null
null
fast_transformers/recurrent/attention/full_attention.py
jmercat/fast-transformers
1061f2ffa09c6d74aa252389e47f76ae827b1064
[ "MIT" ]
1
2021-06-22T01:37:58.000Z
2021-06-22T01:37:58.000Z
# # Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/ # Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch>, # Apoorv Vyas <avyas@idiap.ch> # """Implement the typical softmax attention as a recurrent module to speed up autoregressive inference. See fast_transformers.attention.full_attenti...
35.381818
79
0.635663
1,541
0.791881
0
0
0
0
0
0
925
0.475334
10cdef881dc36185566ac1966c055227805cc631
2,797
py
Python
examples/example_compute_availabilitysets.py
zikalino/AzurePythonExamples
23f9c173f0736f4e7ff66dde0402ef88da4ccc8f
[ "MIT" ]
1
2020-09-04T14:38:13.000Z
2020-09-04T14:38:13.000Z
examples/example_compute_availabilitysets.py
zikalino/AzurePythonExamples
23f9c173f0736f4e7ff66dde0402ef88da4ccc8f
[ "MIT" ]
null
null
null
examples/example_compute_availabilitysets.py
zikalino/AzurePythonExamples
23f9c173f0736f4e7ff66dde0402ef88da4ccc8f
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import os f...
42.378788
153
0.507329
0
0
0
0
0
0
0
0
1,738
0.62138
10ce6fec2773612267b1f7b336d29f6e43213825
361
py
Python
app/templatetags/sessions_tags.py
TataneInYourFace/wifill
9b0cbb43f2e3671a4272246ada7a863f42f948c5
[ "MIT" ]
null
null
null
app/templatetags/sessions_tags.py
TataneInYourFace/wifill
9b0cbb43f2e3671a4272246ada7a863f42f948c5
[ "MIT" ]
null
null
null
app/templatetags/sessions_tags.py
TataneInYourFace/wifill
9b0cbb43f2e3671a4272246ada7a863f42f948c5
[ "MIT" ]
null
null
null
from django import template register = template.Library() def is_authenticated(session): return 'user' in session and 'is_authenticated' in session def is_admin(session): return 'user' in session and 'is_admin' in session and session['is_admin'] is True register.filter('is_authenticated', is_authenticate...
22.5625
86
0.767313
0
0
0
0
0
0
0
0
78
0.216066
10d101f89f65a141c9c034efc1f2f95b8c832da5
409
py
Python
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
UniversitaDellaCalabria/urlShortener
d5e9a7a5b2a8253ce72fb28ec4f95b06ed4782fc
[ "BSD-3-Clause" ]
4
2020-06-21T07:09:34.000Z
2020-09-30T10:49:59.000Z
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
xmomix/urlShortener
fb4bbf9c3c909dfdf421e85bbdffb41fbb167f9f
[ "BSD-3-Clause" ]
2
2020-06-20T21:34:30.000Z
2020-10-21T14:06:40.000Z
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
xmomix/urlShortener
fb4bbf9c3c909dfdf421e85bbdffb41fbb167f9f
[ "BSD-3-Clause" ]
1
2020-06-22T09:47:24.000Z
2020-06-22T09:47:24.000Z
# Generated by Django 3.0.5 on 2020-04-07 22:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('urlshortener', '0002_auto_20200405_1734'), ] operations = [ migrations.AlterModelOptions( name='urlshortener', options={'ver...
22.722222
96
0.633252
324
0.792176
0
0
0
0
0
0
167
0.408313
10d1c25e99e7cd2d15556b2deb5cf0094ac0d49a
704
py
Python
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-23 17:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('virtualapp', '0002_assignment_assignmentno'), ] operations = [ migrations.CreateModel( name='Submission', fields=[ ...
27.076923
86
0.545455
611
0.867898
0
0
0
0
0
0
170
0.241477
10d33a446c94dacba57fcaf682f107f5f0331817
903
py
Python
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
51
2021-03-19T14:14:31.000Z
2022-02-18T00:42:51.000Z
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
9
2021-03-31T15:39:28.000Z
2021-04-16T13:28:15.000Z
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
1
2021-07-26T04:54:18.000Z
2021-07-26T04:54:18.000Z
""" Package contains datasets. """ from .dataset import ( Dataset, DatasetBase, DatasetConcatView, DatasetIndexedView, DatasetSlicedView, concat, create_view, rationed_split, stratified_split, ) from .example_factory import Example, ExampleFactory, ExampleFormat from .hierarhical_da...
24.405405
89
0.739756
0
0
0
0
0
0
0
0
124
0.13732
10d3bc04013d12bee2f194cf78434bf8cc7b7923
7,263
py
Python
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
null
null
null
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
1
2016-04-12T12:39:52.000Z
2016-04-12T12:39:52.000Z
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
null
null
null
# 1) find contours of the receipt # 2) if there are more than 4 vertices, find those which # are the most likely to be receipt vertices, mark and show them import cv2 import numpy as np import imutils from transform import four_point_transform from skimage.filter import threshold_adaptive font = cv2.FONT_HERSHEY_SIM...
33.781395
86
0.569324
0
0
0
0
0
0
0
0
1,503
0.206939
10d3f10b652bc3b204660fb2f81053f0ef5ca483
8,549
py
Python
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
1
2018-02-22T01:06:00.000Z
2018-02-22T01:06:00.000Z
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
null
null
null
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- from time import time from collections import deque from threading import RLock, Thread from random import Random from httplib import HTTPConnection, responses from argparse import ArgumentParser class RWF: def __init__(self, num_threads=30, conn_timeout=1, ...
38.859091
79
0.561352
7,896
0.923617
0
0
2,180
0.255001
0
0
1,872
0.218973
10d3f9c66b9b6f1acf358bee09f3b9bcb84cc122
1,856
py
Python
api.py
vladloh/acm-cli
136ca85cffe16c350977d5bf14e5b7a86962c477
[ "MIT" ]
null
null
null
api.py
vladloh/acm-cli
136ca85cffe16c350977d5bf14e5b7a86962c477
[ "MIT" ]
null
null
null
api.py
vladloh/acm-cli
136ca85cffe16c350977d5bf14e5b7a86962c477
[ "MIT" ]
null
null
null
import argparse from prettytable import PrettyTable from prettytable import from_html_one from worker import Worker from config import login, password, folder_path def initialize_parser(): """Initialize parser for CLI.""" parser = argparse.ArgumentParser( usage='acm [command] [parameters]', ) ...
23.2
104
0.671336
0
0
0
0
0
0
0
0
309
0.166487
10d6381626e93a981f19d1b84b92f648aacbca47
184
py
Python
log2/package0/module0.py
nkzmsb/howto
bdf5e8aa8dc4b651f9bb132b1d533de90ba45ef4
[ "MIT" ]
null
null
null
log2/package0/module0.py
nkzmsb/howto
bdf5e8aa8dc4b651f9bb132b1d533de90ba45ef4
[ "MIT" ]
2
2021-12-14T00:19:47.000Z
2021-12-14T00:21:53.000Z
log2/package0/module0.py
nkzmsb/howto
bdf5e8aa8dc4b651f9bb132b1d533de90ba45ef4
[ "MIT" ]
null
null
null
# 最終手段ハンドラを確認するためのモジュール import logging logger=logging.getLogger(__name__) # Note # any Handler is not added to logger def func0(): logger.error("module0 : without_handler")
16.727273
49
0.744565
0
0
0
0
0
0
0
0
134
0.59292
10d657ca9f52a4409a45cadb1528a0462f3303c6
1,169
py
Python
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #...the usual suspects. import os, inspect #...for the unit testing. import unittest #...for the logging. import logging as lg # The wrapper class to test. from nor import NOR class TestNOR(unittest.TestCase): def setUp(self): pass def tearDown(self)...
21.648148
77
0.582549
597
0.510693
0
0
0
0
0
0
499
0.426861
10d6a5507e243eccb67ce2f82587bb48708ae834
73
py
Python
Pandas.py
ishitha08/c103
b46d3932868d2fe6b0394a6cabf613cb5c79f083
[ "MIT" ]
null
null
null
Pandas.py
ishitha08/c103
b46d3932868d2fe6b0394a6cabf613cb5c79f083
[ "MIT" ]
null
null
null
Pandas.py
ishitha08/c103
b46d3932868d2fe6b0394a6cabf613cb5c79f083
[ "MIT" ]
null
null
null
import pandas as pd data = [1,2,3,4,5] df = pd.DataFrame(data) print(df)
18.25
23
0.671233
0
0
0
0
0
0
0
0
0
0
10d73ff339734374bf311866fb82a76399fdcb7c
216
py
Python
scripts/scenes/combat/elements/unit_behaviours/behaviour.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
12
2022-01-02T11:21:46.000Z
2022-03-12T20:53:40.000Z
scripts/scenes/combat/elements/unit_behaviours/behaviour.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
142
2021-07-25T14:05:11.000Z
2022-03-26T21:12:53.000Z
scripts/scenes/combat/elements/unit_behaviours/behaviour.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
9
2021-08-25T00:25:24.000Z
2022-03-12T20:53:41.000Z
class Behaviour: def __init__(self, unit): self.game = unit.game self.unit = unit self.complete_init() def complete_init(self): pass def process(self, dt): pass
16.615385
29
0.564815
215
0.99537
0
0
0
0
0
0
0
0
10d7a4e08ece3e0ff7e6d4fe13926d33defb668e
1,506
py
Python
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
90
2015-04-07T10:26:53.000Z
2022-03-07T15:14:57.000Z
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
14
2015-10-13T16:25:59.000Z
2021-01-21T18:31:03.000Z
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
32
2015-04-07T10:41:29.000Z
2022-02-26T05:17:28.000Z
import avl import random import sys import coverage import time import numpy start = time.time() branchesHit = set() maxval = int(sys.argv[1]) testlen = int(sys.argv[2]) numtests = int(sys.argv[3]) cov = coverage.coverage(branch=True, source=["avl.py"]) cov.start() for t in xrange(0,numtests): a = avl.AVLTree...
24.688525
57
0.522576
0
0
0
0
0
0
0
0
40
0.02656
10d929632dae7a58fe9ad2a5c602cd815300085f
2,160
py
Python
tests/test_linked_tmp_dir.py
jessekrubin/pup
2cab5da7b1b39453c44be556b691db83442b0565
[ "BSD-2-Clause" ]
2
2019-03-07T09:26:36.000Z
2019-07-31T17:24:23.000Z
tests/test_linked_tmp_dir.py
jessekrubin/pup
2cab5da7b1b39453c44be556b691db83442b0565
[ "BSD-2-Clause" ]
2
2019-10-26T02:29:54.000Z
2021-06-25T15:28:12.000Z
tests/test_linked_tmp_dir.py
jessekrubin/pup
2cab5da7b1b39453c44be556b691db83442b0565
[ "BSD-2-Clause" ]
1
2019-07-31T17:24:32.000Z
2019-07-31T17:24:32.000Z
# -*- coding: utf-8 -*- import os from os import chdir from os import path from os import sep import pupy.utils from pupy import dirs_gen from pupy import files_gen PWD = path.split(path.realpath(__file__))[0] def test_mkdirs(): dirs = [("something",), ("something", "else")] expected = [path.join(*route) f...
27.341772
78
0.571296
0
0
0
0
0
0
0
0
426
0.197222
10db451650724fae34f4118e5abab33ead216fab
121
py
Python
scenario.py
bdgamesdev/universal
1e7f28343efc4fb52403c8143f929bb5b2026185
[ "MIT" ]
null
null
null
scenario.py
bdgamesdev/universal
1e7f28343efc4fb52403c8143f929bb5b2026185
[ "MIT" ]
null
null
null
scenario.py
bdgamesdev/universal
1e7f28343efc4fb52403c8143f929bb5b2026185
[ "MIT" ]
null
null
null
class Scenario: timeLimit = 5 type = 'orbit' def __init__(self, title, *kwargs): self.title = title
17.285714
39
0.595041
120
0.991736
0
0
0
0
0
0
7
0.057851
10db58e9449ec9ec50d75caab8c6a1198181a281
8,527
py
Python
questionnaire_core/question_types/base.py
anfema/django-questionnaire-core
82151cf14d00b5a83cb478cc07f9143fd57382c9
[ "MIT" ]
null
null
null
questionnaire_core/question_types/base.py
anfema/django-questionnaire-core
82151cf14d00b5a83cb478cc07f9143fd57382c9
[ "MIT" ]
2
2019-01-30T16:05:15.000Z
2021-06-10T14:45:57.000Z
questionnaire_core/question_types/base.py
anfema/django-questionnaire-core
82151cf14d00b5a83cb478cc07f9143fd57382c9
[ "MIT" ]
2
2019-01-17T12:09:47.000Z
2019-01-30T15:59:01.000Z
import inspect import string from django import forms from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist from django.template.engine import Engine from django.template.exceptions import TemplateDoesNotExist class QuestionTypeRegistry: """Registry for question type classes.""" _reg...
37.399123
114
0.659669
8,279
0.970916
0
0
944
0.110707
0
0
2,609
0.305969
10dbd95522cfda0f51f8b8c34cf1b090e5b9492f
3,504
py
Python
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
null
null
null
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
null
null
null
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
1
2021-06-13T12:44:31.000Z
2021-06-13T12:44:31.000Z
import sys import os from tests.test_single_file import SingleFile from .rootpath import Rootpath from .report_file import RowCSV from .report_file import RowDuplicated class Report: """ @overview: this class print the report of a list of files in CSV format """ def __init__(self, new_report_name):...
28.958678
102
0.551941
3,328
0.949772
0
0
0
0
0
0
1,306
0.372717
10dcc329b40ad7a19895cdc5735eee49de04563d
197
py
Python
data_collection/gazette/spiders/sc_cunha_pora.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
454
2018-04-07T03:32:57.000Z
2020-08-17T19:56:22.000Z
data_collection/gazette/spiders/sc_cunha_pora.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
254
2020-08-18T14:09:43.000Z
2022-03-28T11:30:51.000Z
data_collection/gazette/spiders/sc_cunha_pora.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
183
2018-04-11T15:09:37.000Z
2020-08-15T18:55:11.000Z
from gazette.spiders.base.fecam import FecamGazetteSpider class ScCunhaPoraSpider(FecamGazetteSpider): name = "sc_cunha_pora" FECAM_QUERY = "cod_entidade:80" TERRITORY_ID = "4204707"
24.625
57
0.771574
136
0.690355
0
0
0
0
0
0
41
0.208122
10dd825e001aa7924f28c1740803cd3a8e44f8f0
320
py
Python
pythonProject/desafio079.py
maisalobao/Python
8b8fa9796853c8f094cb1602e7e45f57905a9057
[ "MIT" ]
1
2022-03-26T08:46:36.000Z
2022-03-26T08:46:36.000Z
pythonProject/desafio079.py
maisalobao/Python
8b8fa9796853c8f094cb1602e7e45f57905a9057
[ "MIT" ]
null
null
null
pythonProject/desafio079.py
maisalobao/Python
8b8fa9796853c8f094cb1602e7e45f57905a9057
[ "MIT" ]
null
null
null
numeros = list() while True: n = (int(input('Digite um valor:'))) if n not in numeros: numeros.append(n) else: print('Valor duplicado!') escolha = str(input('Deseja continuar? [S/N]')).upper().strip()[0] if escolha in 'N': break numeros.sort() print(f'Você digitou {numeros}')
26.666667
70
0.590625
0
0
0
0
0
0
0
0
90
0.280374
10ddae9de8ee7cd14d8dcf0dcc4990b53daa7cad
3,228
py
Python
wb/main/jobs/inference_test_image/test_image_classification_explainer.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
wb/main/jobs/inference_test_image/test_image_classification_explainer.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
wb/main/jobs/inference_test_image/test_image_classification_explainer.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Test image explainer Copyright (c) 2021 Intel 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 re...
39.851852
111
0.711586
2,153
0.666976
0
0
523
0.16202
0
0
643
0.199195
10de9730706a6a2f04643d640b347ca8271e4865
170
py
Python
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys s = sys.stdin.read().split() def main(): ans = "YES" if s[0] == s[1][::-1] else "NO" print(ans) if __name__ == "__main__": main()
13.076923
48
0.488235
0
0
0
0
0
0
0
0
19
0.111765
10e01d950f12c52f0048a5b825e752558dafbd51
2,540
py
Python
test/ZIP/ZIPROOT.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/ZIP/ZIPROOT.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/ZIP/ZIPROOT.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
#!/usr/bin/env python # # MIT License # # Copyright 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 Software without restriction, including # without limitation the rights to us...
32.987013
88
0.709843
0
0
0
0
0
0
0
0
1,778
0.7
10e0c703082609535db5fb8adcd5ad5028b03e45
1,943
py
Python
tests/macro/scripts/MPI/np_point_to_point_3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
206
2018-06-28T00:28:47.000Z
2022-03-29T05:17:03.000Z
tests/macro/scripts/MPI/np_point_to_point_3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
670
2018-07-23T11:02:24.000Z
2022-03-30T07:28:05.000Z
tests/macro/scripts/MPI/np_point_to_point_3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
19
2019-09-19T06:01:00.000Z
2022-03-29T05:17:06.000Z
# pylint: disable=missing-function-docstring, missing-module-docstring/ from mpi4py import MPI from numpy import zeros # we need to declare these variables somehow, # since we are calling mpi subroutines if __name__ == '__main__': size = -1 rank = -1 comm = MPI.COMM_WORLD rank = comm.Get_rank() siz...
22.858824
71
0.478127
0
0
0
0
0
0
0
0
514
0.264539
10e1b2a4e8a21648b7214c1e5fa50745b33f9851
1,196
py
Python
tests/unit/admin/views/test_core.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
2
2015-11-08T12:57:16.000Z
2020-11-19T09:43:14.000Z
tests/unit/admin/views/test_core.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
11
2020-01-06T18:55:57.000Z
2022-03-11T23:27:05.000Z
tests/unit/admin/views/test_core.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
1
2019-08-26T06:52:55.000Z
2019-08-26T06:52:55.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
31.473684
74
0.710702
585
0.48913
0
0
0
0
0
0
558
0.466555
10e23c5989f6592db2996a27a31a5176cbcc0741
1,061
py
Python
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
''' 1. Load and normalizeing the CIFAR10 training and test datasets using torchvision 2. Define a Convolutional Neural Network 3. Define a loss function 4. Train the network on the training data 5. Test the network on the test data ''' # Reference: Pytorch Tutorial 60 minute Blitz, Training a classifier # Link: https:...
40.807692
112
0.758718
0
0
0
0
0
0
0
0
453
0.426956
10e2ea010aa21fce8b0f2bb0646438f5615e3cee
637
py
Python
swexpert/d2/sw_1966.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
swexpert/d2/sw_1966.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
swexpert/d2/sw_1966.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
test_cases = int(input().strip()) def bubble_sort(lst): nums = lst[:] swap = True for i in range(len(nums) - 1, -1, -1): if not swap: break swap = False for j in range(i): if nums[j] > nums[j + 1]: nums[j], nums[j + 1] = nums[j + 1], nums[j]...
20.548387
59
0.488226
0
0
0
0
0
0
0
0
13
0.020408
10e4e75e4df7060ce2493ae06b80ee7bd8d94593
883
py
Python
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
1
2021-08-16T20:21:11.000Z
2021-08-16T20:21:11.000Z
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
null
null
null
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-04 01:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('dualtext_api', '0012_aut...
32.703704
153
0.676104
724
0.819932
0
0
0
0
0
0
150
0.169875
10e63d47bda56a757ae0b4b4f62e29ce5cd1b921
1,166
py
Python
server/setup.py
JayYip/bert-as-service
65f7bc46467ab791f85539c5a931212cb5f1c419
[ "MIT" ]
1
2019-04-20T08:40:24.000Z
2019-04-20T08:40:24.000Z
server/setup.py
JayYip/bert-multitask-service
65f7bc46467ab791f85539c5a931212cb5f1c419
[ "MIT" ]
null
null
null
server/setup.py
JayYip/bert-multitask-service
65f7bc46467ab791f85539c5a931212cb5f1c419
[ "MIT" ]
null
null
null
from os import path import codecs from setuptools import setup, find_packages with codecs.open('README.md', 'r', 'utf8') as reader: long_description = reader.read() with codecs.open('requirements.txt', 'r', 'utf8') as reader: install_requires = list(map(lambda x: x.strip(), reader.readlines())) setup( ...
31.513514
88
0.689537
0
0
0
0
0
0
0
0
521
0.446827
10e6fa85535b14df08f37fcbddf1bff0af5b97fd
1,418
py
Python
utils/get_zssr_resutls.py
geopi1/Improved_USRNet
06395641c30f3df2986cf70f7ceee6c9a5bc0aa9
[ "MIT" ]
20
2020-08-24T07:21:30.000Z
2021-07-09T04:20:06.000Z
utils/get_zssr_resutls.py
geopi1/Improved_USRNet
06395641c30f3df2986cf70f7ceee6c9a5bc0aa9
[ "MIT" ]
1
2020-10-21T08:02:18.000Z
2021-01-17T23:29:58.000Z
utils/get_zssr_resutls.py
geopi1/Improved_USRNet
06395641c30f3df2986cf70f7ceee6c9a5bc0aa9
[ "MIT" ]
3
2020-11-19T05:17:10.000Z
2021-05-04T11:01:10.000Z
import matplotlib.pyplot as plt import os import numpy as np import cv2 from skimage.metrics import structural_similarity as ssim from USRNet.utils import utils_image as util SMALL_SIZE = 24 MEDIUM_SIZE = 24 BIGGER_SIZE = 24 plt.rc('font', size=SMALL_SIZE) # controls default text sizes plt.rc('axes', titles...
35.45
96
0.74048
0
0
0
0
0
0
0
0
463
0.326516
10e7411f57c3da0a14d3d7adf2d484d11b51d3c9
1,955
py
Python
task/session.py
ScottWales/tasks
7647c1b3cc7ee631029193d8416fd0f20de7a05d
[ "Apache-2.0" ]
null
null
null
task/session.py
ScottWales/tasks
7647c1b3cc7ee631029193d8416fd0f20de7a05d
[ "Apache-2.0" ]
null
null
null
task/session.py
ScottWales/tasks
7647c1b3cc7ee631029193d8416fd0f20de7a05d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2015 ARC Centre of Excellence for Climate Systems Science author: Scott Wales <scott.wales@unimelb.edu.au> 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 h...
28.333333
83
0.59335
1,249
0.638875
0
0
0
0
0
0
1,160
0.59335