hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79548df379377d03de3279aeb0242e2c8e121223
39,548
py
Python
mac/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/servicemanagement/v1/servicemanagement_v1_client.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/servicemanagement/v1/servicemanagement_v1_client.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/servicemanagement/v1/servicemanagement_v1_client.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
"""Generated client library for servicemanagement version v1.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.servicemanagement.v1 import servicemanagement_v1_messages as messages class ServicemanagementV1(base_api.Base...
39.627255
243
0.714044
79548eff5a738a873b6f5ba4d47136432e97fde1
5,202
py
Python
pytorch_ares/test/test_fast_adversarial.py
thu-ml/realsafe
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
107
2020-06-15T09:55:11.000Z
2020-12-20T11:27:11.000Z
pytorch_ares/test/test_fast_adversarial.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
7
2020-06-14T03:00:18.000Z
2020-12-07T07:10:10.000Z
pytorch_ares/test/test_fast_adversarial.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
19
2020-06-14T08:35:33.000Z
2020-12-19T13:43:41.000Z
import sys import os sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) import torch import numpy as np from pytorch_ares.dataset_torch.cifar_dataset import cifar10 from third_party.attack_cifar import * from third_party.autoattack.autoattack import AutoAttack from pytorch_ares.cifar10_model.u...
51.50495
175
0.622261
79548f3e4beb1ddee7dad729fab71f7583f81b08
5,965
py
Python
test/TrieTest.py
forslund/adapt
4a8fe8ab7def813dc4f6f881ce646b92863d4bfc
[ "Apache-2.0" ]
null
null
null
test/TrieTest.py
forslund/adapt
4a8fe8ab7def813dc4f6f881ce646b92863d4bfc
[ "Apache-2.0" ]
null
null
null
test/TrieTest.py
forslund/adapt
4a8fe8ab7def813dc4f6f881ce646b92863d4bfc
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
32.418478
74
0.601509
79548fd5ced38d8c30b703a40ee0f42cdd49d629
11,528
py
Python
model/models.py
mongmogroup/auto-trading-framework
b68123e3820083d53b4c7637dc4547adc1eae228
[ "MIT" ]
null
null
null
model/models.py
mongmogroup/auto-trading-framework
b68123e3820083d53b4c7637dc4547adc1eae228
[ "MIT" ]
null
null
null
model/models.py
mongmogroup/auto-trading-framework
b68123e3820083d53b4c7637dc4547adc1eae228
[ "MIT" ]
null
null
null
# common library import time import numpy as np # from stable_baselines import A2C # from stable_baselines import DDPG # RL models from stable-baselines # from stable_baselines import PPO2 # from stable_baselines import TD3 # from stable_baselines.common.noise import OrnsteinUhlenbeckActionNoise # from stable_baseline...
45.565217
118
0.635756
795490d2415f93990c8e0a510de7d53427822c5a
9,497
py
Python
games/twenty.py
JmanThunder/EpicBot
502e926cf7bcac61bc2cbbe4a1f58e9a58a40c7e
[ "BSD-3-Clause" ]
571
2021-02-08T06:59:15.000Z
2022-03-28T08:08:24.000Z
games/twenty.py
JmanThunder/EpicBot
502e926cf7bcac61bc2cbbe4a1f58e9a58a40c7e
[ "BSD-3-Clause" ]
61
2021-03-02T22:10:30.000Z
2022-03-26T14:45:42.000Z
games/twenty.py
JmanThunder/EpicBot
502e926cf7bcac61bc2cbbe4a1f58e9a58a40c7e
[ "BSD-3-Clause" ]
97
2021-02-16T16:26:08.000Z
2022-03-22T17:22:35.000Z
import asyncio import random from copy import deepcopy as dc import discord async def play(ctx, bot): """Starts a 2048 game inside of Discord.""" board = [ ["_", "_", "_", "_"], ["_", "_", "_", "_"], ["_", "_", "_", "_"], ["_", "_", "_", 2], ] score = 0 total = 0 await ctx.send( "Starting game...\nIf...
28.778788
102
0.542592
795492a8ed08bc3552d0d7c1753604d5c2471d56
1,653
py
Python
loss_folder/draw_loss.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
loss_folder/draw_loss.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
loss_folder/draw_loss.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def get_data(f1,f2,f3,f4): """ four folder loss """ epoches = [] train_word = [] test_word = [] train_char = [] test_char = [] with open(f1,"r") as f: for line in f: tmp = line.rstrip("\n\r").split("\t") train_word.append(float(tmp[1])*100) epoches...
25.430769
149
0.660617
795492b8c20ddb3593379dcc68b29e9350d790c5
3,085
py
Python
ptth/session.py
wagamama/python-ptth
589f1d2bff178cc34ad2e71328c4a4d65e690df6
[ "Apache-2.0" ]
null
null
null
ptth/session.py
wagamama/python-ptth
589f1d2bff178cc34ad2e71328c4a4d65e690df6
[ "Apache-2.0" ]
5
2015-09-10T15:51:01.000Z
2015-12-11T13:55:37.000Z
ptth/session.py
wagamama/python-ptth
589f1d2bff178cc34ad2e71328c4a4d65e690df6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import threading import socket from select import select from urlparse import urlparse from .header import Headers from .request import Request from .response import Response from .exception import * class Handler(object): def ready_to_handle(self): print 'ready to handle' def...
29.380952
74
0.565964
795492bb02e72f603bc7f72599a04b76f2601018
13,051
py
Python
userbot/modules/afk.py
Abucuyy/Uciha
726e9cd61eabf056064e40f7b322d8993161e52a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/afk.py
Abucuyy/Uciha
726e9cd61eabf056064e40f7b322d8993161e52a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/afk.py
Abucuyy/Uciha
726e9cd61eabf056064e40f7b322d8993161e52a
[ "Naumen", "Condor-1.1", "MS-PL" ]
5
2020-09-05T12:45:31.000Z
2020-09-25T09:04:29.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # All Credits to https://t.me/azrim89 for timestamp. # All Credits to https://t.me/Devp73 for Offline stamps.. # ...
44.695205
276
0.55988
795493286a8d67a0b84f9c4864511544863f318b
128
py
Python
cv/AlexNet/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
cv/AlexNet/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
cv/AlexNet/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
# @Time: 9/19/2021 # @Author: lnblanke # @Email: fjh314.84@gmail.com # @File: __init__.py.py from AlexNet import createAlexNet
18.285714
33
0.71875
79549336a4241631b02e785750cc140cfc8710c5
15,643
py
Python
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
crawler/crawler_2.py
marxlee/py-tools
4c3699b2a5dd5cb4477a4e339b8f91161cbe3bef
[ "Apache-2.0" ]
null
null
null
from urllib import request import random import json # 摸你请求头 url = r'https://www.baidu.com/s?cl=3&tn=baidutop10&fr=top1000&wd=%E7%9F%B3%E7%94%B0%E7%BA%AF%E4%B8%80%E6%84%9F%E6%9F%93%E6%96%B0%E5%86%A0&rsv_idx=2&rsv_dl=fyb_n_homepage&hisfilter=1' # 代理列表 agent_list = [ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) ...
140.927928
6,714
0.915681
79549384aefe9b858f38adb563e209e0b63de922
1,163
py
Python
tests/test_variable_registration.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
tests/test_variable_registration.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
tests/test_variable_registration.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
import angr def test_registration(): s = angr.SimState(arch='AMD64') a1 = s.solver.BVS('a', 64, key=(1,), eternal=True) a2 = s.solver.BVS('a', 64, key=(1,), eternal=True) assert a1 is a2 b1 = s.solver.BVS('b', 64, key=(2,), eternal=False) s1 = s.copy() s2 = s.copy() b2 = s1.solver.BV...
32.305556
79
0.604471
7954939966d0214e24947f21d6d71ac3487f0b66
31,851
py
Python
async_hsm/__init__.py
SzeMengTan/async_hsm
8e23a94c3e9d009536002d1469e81fd165a23e01
[ "MIT" ]
null
null
null
async_hsm/__init__.py
SzeMengTan/async_hsm
8e23a94c3e9d009536002d1469e81fd165a23e01
[ "MIT" ]
null
null
null
async_hsm/__init__.py
SzeMengTan/async_hsm
8e23a94c3e9d009536002d1469e81fd165a23e01
[ "MIT" ]
null
null
null
import asyncio import collections import signal import traceback import typing from copy import copy from functools import wraps import attr @attr.s(auto_attribs=True) class Catch: signal: str handler: str @attr.s(auto_attribs=True) class State: name: str parent: typing.Optional[str] catches: t...
39.033088
125
0.618254
7954957285f0eed5dd7b9c5878093d9db615637b
6,793
py
Python
frontera/core/messagebus.py
buildfail/frontera
84f9e1034d2868447db88e865596c0fbb32e70f6
[ "BSD-3-Clause" ]
1,267
2015-04-15T04:47:12.000Z
2022-03-29T07:55:15.000Z
frontera/core/messagebus.py
buildfail/frontera
84f9e1034d2868447db88e865596c0fbb32e70f6
[ "BSD-3-Clause" ]
316
2015-04-14T21:28:26.000Z
2021-05-31T05:31:15.000Z
frontera/core/messagebus.py
buildfail/frontera
84f9e1034d2868447db88e865596c0fbb32e70f6
[ "BSD-3-Clause" ]
250
2015-04-20T07:15:10.000Z
2022-03-28T15:17:15.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from abc import ABCMeta, abstractmethod import six @six.add_metaclass(ABCMeta) class BaseStreamConsumer(object): @abstractmethod def get_messages(self, timeout=0.1, count=1): """ Returns ``count`` messages from stream, if they are...
28.906383
119
0.649639
79549644ea03575f84d08ba2f114ae60df2a14da
6,751
py
Python
tensorflow/compiler/tests/xla_test.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
384
2017-02-21T18:38:04.000Z
2022-02-22T07:30:25.000Z
tensorflow/compiler/tests/xla_test.py
ChenAugustus/tensorflow
5828e285209ff8c3d1bef2e4bd7c55ca611080d5
[ "Apache-2.0" ]
15
2017-03-01T20:18:43.000Z
2020-05-07T10:33:51.000Z
tensorflow/compiler/tests/xla_test.py
ChenAugustus/tensorflow
5828e285209ff8c3d1bef2e4bd7c55ca611080d5
[ "Apache-2.0" ]
81
2017-02-21T19:31:19.000Z
2022-02-22T07:30:24.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.798851
80
0.708636
7954973da0f85cb4d53f84fa524162dd7c2a5e38
844
py
Python
buttoncontroller.py
eddiecarbin/riverapp
4971ace1113021c3d4f3f0eee6db6de2c5f2f26f
[ "MIT" ]
null
null
null
buttoncontroller.py
eddiecarbin/riverapp
4971ace1113021c3d4f3f0eee6db6de2c5f2f26f
[ "MIT" ]
null
null
null
buttoncontroller.py
eddiecarbin/riverapp
4971ace1113021c3d4f3f0eee6db6de2c5f2f26f
[ "MIT" ]
null
null
null
from pyjon.events import EventDispatcher # import RPi.GPIO as gpio import digitalio from adafruit_debouncer import Debouncer #https://pypi.org/project/pyjon.events/ class ButtonController(metaclass=EventDispatcher): BUTTON_EVENT = "ButtonController_buttonEvent" def __init__(self, pin, id): # just a s...
31.259259
80
0.680095
79549749dbb659f860f89bf99012373b9e1818f1
524
py
Python
dandeliondiary/household/migrations/0008_auto_20160904_2329.py
amberdiehl/dandeliondiary_project
e9bace5bd7980def6ca763840ab5b38f1e05cd3d
[ "FSFAP" ]
null
null
null
dandeliondiary/household/migrations/0008_auto_20160904_2329.py
amberdiehl/dandeliondiary_project
e9bace5bd7980def6ca763840ab5b38f1e05cd3d
[ "FSFAP" ]
6
2020-04-29T23:54:15.000Z
2022-03-11T23:25:24.000Z
dandeliondiary/household/migrations/0008_auto_20160904_2329.py
amberdiehl/dandeliondiary_project
e9bace5bd7980def6ca763840ab5b38f1e05cd3d
[ "FSFAP" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-04 23:29 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('household', '0007_auto_20160904_2328'), ] operations = [ migrations.RemoveField( ...
21.833333
49
0.604962
7954975553c85ad93d5f5c50cb93ede8d5dc7d98
2,648
py
Python
pythran/tests/euler/euler41.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/euler/euler41.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/euler/euler41.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
#runas solve() #unittest.skip recursive generator #pythran export solve() ''' From O'Reilly's Python Cookbook ''' def _combinators(_handle, items, n): if n==0: yield [] return for i, item in enumerate(items): this_one = [ item ] for cc in _combinators(_handle, _handle(items, i),...
34.842105
169
0.586858
7954975799913846ac8c9e749b18697111341cdc
36,944
py
Python
plugin/core/types.py
theLine/LSP
b0c1045862601ee6e6fd3250d3a441d46a6e8d7c
[ "MIT" ]
null
null
null
plugin/core/types.py
theLine/LSP
b0c1045862601ee6e6fd3250d3a441d46a6e8d7c
[ "MIT" ]
null
null
null
plugin/core/types.py
theLine/LSP
b0c1045862601ee6e6fd3250d3a441d46a6e8d7c
[ "MIT" ]
null
null
null
from .collections import DottedDict from .file_watcher import FileWatcherEventType from .logging import debug, set_debug_logging from .protocol import TextDocumentSyncKindNone from .typing import Any, Optional, List, Dict, Generator, Callable, Iterable, Union, Set, Tuple, TypedDict, TypeVar from .typing import cast fro...
41.697517
135
0.641755
795497a6a251b8f65f4e554d1cc445c62ef199d8
11,494
py
Python
pyspedas/erg/satellite/erg/mgf/mgf.py
pulupa/pyspedas
7228199cf16eca2a27d130f1e4985ef1e69462ea
[ "MIT" ]
null
null
null
pyspedas/erg/satellite/erg/mgf/mgf.py
pulupa/pyspedas
7228199cf16eca2a27d130f1e4985ef1e69462ea
[ "MIT" ]
null
null
null
pyspedas/erg/satellite/erg/mgf/mgf.py
pulupa/pyspedas
7228199cf16eca2a27d130f1e4985ef1e69462ea
[ "MIT" ]
null
null
null
import cdflib import numpy as np from pytplot import clip, get_data, options, ylim from ..load import load def mgf(trange=['2017-03-27', '2017-03-28'], datatype='8sec', level='l2', suffix='', get_support_data=False, varformat=None, varnames=[], downloadonly=Fal...
39.771626
176
0.538368
795498700d7e016d2e8657192e413f9f224d4289
397
py
Python
todo/tasks/urls.py
santhosh2000/Hackathon_ToDoList
c828985dc2e322ba43928a8ae35bbf8aa13198ef
[ "CC-BY-3.0" ]
1
2020-07-11T03:56:55.000Z
2020-07-11T03:56:55.000Z
todo/tasks/urls.py
santhosh2000/Hackathon_ToDoList
c828985dc2e322ba43928a8ae35bbf8aa13198ef
[ "CC-BY-3.0" ]
null
null
null
todo/tasks/urls.py
santhosh2000/Hackathon_ToDoList
c828985dc2e322ba43928a8ae35bbf8aa13198ef
[ "CC-BY-3.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('postlogin', views.postLogin, name="login-output"), path('signup', views.signup, name="signup"), path('postsignup', views.postSignup, name="signup"), path('', views.welcome, name="index"), path('update_task/<str:pk>/', views.updateTask, name=...
36.090909
69
0.697733
795498743eaa8e235edb91a39f6502f65b746024
2,454
py
Python
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/SwitchDBInstanceVpcRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/SwitchDBInstanceVpcRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/SwitchDBInstanceVpcRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.083333
78
0.771801
79549895b6162339c23c074a4dcc93d43ade9d32
15,823
py
Python
test/test.py
dynaptico/pamfaxp
664875776767fefacd2ebb3cf48f8d3b6a9afae6
[ "MIT" ]
1
2016-03-18T13:19:52.000Z
2016-03-18T13:19:52.000Z
test/test.py
dynaptico/pamfaxp
664875776767fefacd2ebb3cf48f8d3b6a9afae6
[ "MIT" ]
3
2015-02-11T20:52:01.000Z
2020-10-11T15:26:04.000Z
test/test.py
dynaptico/pamfaxp
664875776767fefacd2ebb3cf48f8d3b6a9afae6
[ "MIT" ]
2
2015-02-12T09:17:11.000Z
2020-03-26T14:56:16.000Z
#!/usr/bin/env python from pamfax import PamFax import logging import socket import sys import unittest import time sys.path = ['..:'] + sys.path IP_ADDR = socket.gethostbyname('www.dynaptico.com') HOST = 'sandbox-api.pamfax.biz' USERNAME = 'username' PASSWORD = 'password' APIKEY = 'apikey' APISECRET = 'apisecret'...
34.101293
116
0.623207
795498c480eae612ec239fb47ac2f0ddb7b795aa
1,031
py
Python
tests/journal.api/error_notes.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
tests/journal.api/error_notes.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
tests/journal.api/error_notes.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2021 all rights reserved def test(): """ Verify access to the channel metadata """ # access import journal # make a channel channel = journal.error("test.channel") # get ...
22.911111
91
0.638215
7954990e3fb145649796bca0a2c85d60c38c2c55
336
py
Python
Q67_Add-Binary.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q67_Add-Binary.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q67_Add-Binary.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
class Solution: def addBinary(self, a: str, b: str) -> str: def bin_(s): n = len(s) i = 0 sum_ = 0 while i<n: if s[n-i-1]=="1": sum_ += 1<<i i += 1 return sum_ return bin(bin_(a)+bin_(b))[...
25.846154
47
0.333333
79549985f2c88252367857e0491e846ae0241dee
2,104
py
Python
py/test/unit_tests.py
michaelJwilson/legacypipe
47d005356cbd0c9fb864c960ee7bbf800e543cad
[ "BSD-3-Clause" ]
null
null
null
py/test/unit_tests.py
michaelJwilson/legacypipe
47d005356cbd0c9fb864c960ee7bbf800e543cad
[ "BSD-3-Clause" ]
null
null
null
py/test/unit_tests.py
michaelJwilson/legacypipe
47d005356cbd0c9fb864c960ee7bbf800e543cad
[ "BSD-3-Clause" ]
null
null
null
import unittest class TestOneblob(unittest.TestCase): def test_modelsel(self): from legacypipe.oneblob import _select_model nparams = dict(ptsrc=2, rex=3, exp=5, dev=5, comp=9) galaxy_margin = 3.**2 + (nparams['exp'] - nparams['ptsrc']) rex = True chisqs = dict(ptsrc=0, r...
33.396825
67
0.618346
795499af87420eb986337891fe5e5a27355903be
6,053
py
Python
test/test-comm-activities.py
althoenm/CILs-first-bot
7c38c59f21c36a883c12f678555306bafd64b820
[ "Apache-2.0" ]
null
null
null
test/test-comm-activities.py
althoenm/CILs-first-bot
7c38c59f21c36a883c12f678555306bafd64b820
[ "Apache-2.0" ]
null
null
null
test/test-comm-activities.py
althoenm/CILs-first-bot
7c38c59f21c36a883c12f678555306bafd64b820
[ "Apache-2.0" ]
null
null
null
# %% import datetime import time from secrets import username, password from selenium import webdriver from selenium.webdriver.common.keys import Keys from openpyxl import Workbook, load_workbook # %% # access sheet names wb = load_workbook('week_12-3.xlsx') #print(wb.sheetnames) # %% # Load community activity note s...
32.026455
124
0.644474
795499d08c546484a1cfdbcf0654fd1cd0ec4e51
21,125
py
Python
captum/attr/_utils/attribution.py
i-jones/captum
567ec6fc67ab85ce07d075b25428be22bb65e31b
[ "BSD-3-Clause" ]
3,140
2019-10-10T17:05:37.000Z
2022-03-31T17:31:01.000Z
captum/attr/_utils/attribution.py
i-jones/captum
567ec6fc67ab85ce07d075b25428be22bb65e31b
[ "BSD-3-Clause" ]
758
2019-10-11T18:01:04.000Z
2022-03-31T21:36:07.000Z
captum/attr/_utils/attribution.py
i-jones/captum
567ec6fc67ab85ce07d075b25428be22bb65e31b
[ "BSD-3-Clause" ]
345
2019-10-10T17:17:06.000Z
2022-03-30T07:31:31.000Z
#!/usr/bin/env python3 from typing import Any, Callable, Generic, List, Tuple, Type, Union, cast import torch import torch.nn.functional as F from captum._utils.common import ( _format_additional_forward_args, _format_tensor_into_tuples, _run_forward, _validate_target, ) from captum._utils.gradient imp...
44.194561
88
0.605207
79549aab0986cc7c0a85e9ec69910877b85d44ab
47,971
py
Python
python/src/vmaf/core/train_test_model.py
mymatin/vmaf
d785a9ab8999e12c7d87d4bd20a89d9a2b95b74d
[ "Apache-2.0" ]
1
2018-12-27T17:12:05.000Z
2018-12-27T17:12:05.000Z
python/src/vmaf/core/train_test_model.py
mymatin/vmaf
d785a9ab8999e12c7d87d4bd20a89d9a2b95b74d
[ "Apache-2.0" ]
1
2018-07-20T00:03:48.000Z
2018-07-20T00:03:48.000Z
python/src/vmaf/core/train_test_model.py
mymatin/vmaf
d785a9ab8999e12c7d87d4bd20a89d9a2b95b74d
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod import os import pickle from numbers import Number from sklearn.metrics import f1_score import numpy as np from vmaf.tools.decorator import deprecated from vmaf.tools.misc import indices from vmaf.core.mixin import TypeVersionEnabled from vmaf.core.perf_metric import RmsePerfMe...
37.71305
159
0.608284
79549b115b3636fad32e7445ece75ff4c4a423dc
18,146
py
Python
ansys/mapdl/core/_commands/preproc/material_data_tables.py
da1910/pymapdl
305b70b30e61a78011e974ff4cb409ee21f89e13
[ "MIT" ]
null
null
null
ansys/mapdl/core/_commands/preproc/material_data_tables.py
da1910/pymapdl
305b70b30e61a78011e974ff4cb409ee21f89e13
[ "MIT" ]
null
null
null
ansys/mapdl/core/_commands/preproc/material_data_tables.py
da1910/pymapdl
305b70b30e61a78011e974ff4cb409ee21f89e13
[ "MIT" ]
null
null
null
""" These PREP7 commands create and modify the material data tables (that is, to specify and define material models). """ def tb(self, lab="", mat="", ntemp="", npts="", tbopt="", eosopt="", funcname="", **kwargs): """APDL Command: TB Activates a data table for material properties or special element ...
32.992727
97
0.656949
79549b2214afbb737512abccdfdbf256ee12c1d6
3,828
py
Python
PyDSS/modes/Dynamic.py
dvaidhyn/PyDSS
0d220d00900da4945e2ab6e7774de5edb58b36a9
[ "BSD-3-Clause" ]
null
null
null
PyDSS/modes/Dynamic.py
dvaidhyn/PyDSS
0d220d00900da4945e2ab6e7774de5edb58b36a9
[ "BSD-3-Clause" ]
null
null
null
PyDSS/modes/Dynamic.py
dvaidhyn/PyDSS
0d220d00900da4945e2ab6e7774de5edb58b36a9
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta from PyDSS.modes.abstract_solver import abstact_solver import math class Dynamic(abstact_solver): def __init__(self, dssInstance, SimulationSettings, Logger): super().__init__(dssInstance, SimulationSettings, Logger) print('Running Dynamic simulation') ...
39.875
130
0.612591
79549bdde8eecfd096a97bf68c12f03385c910ad
2,727
py
Python
api/models/users.py
ClosedSesame/api
275c36ff1cd2328a42f789fb6d6e9fa57bd53e0f
[ "MIT" ]
null
null
null
api/models/users.py
ClosedSesame/api
275c36ff1cd2328a42f789fb6d6e9fa57bd53e0f
[ "MIT" ]
null
null
null
api/models/users.py
ClosedSesame/api
275c36ff1cd2328a42f789fb6d6e9fa57bd53e0f
[ "MIT" ]
null
null
null
from sqlalchemy.orm import relationship from sqlalchemy.exc import DBAPIError from .associations import accounts_association from datetime import datetime as dt from .meta import Base from cryptacular import bcrypt from .roles import AccountRole from sqlalchemy import ( Column, String, Integer, Index, ...
30.988636
119
0.6685
79549cd898d5b701d38a1a306572215b68a639a7
224
py
Python
doc/source/sphinxext/sphinx_gallery/__init__.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
51
2017-05-19T13:33:29.000Z
2022-01-21T10:59:57.000Z
doc/source/sphinxext/sphinx_gallery/__init__.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
94
2017-05-19T19:44:07.000Z
2021-12-15T13:40:59.000Z
doc/source/sphinxext/sphinx_gallery/__init__.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
31
2017-05-19T19:41:39.000Z
2021-08-25T14:14:19.000Z
""" Sphinx Gallery ============== """ import os __version__ = '0.1.13' def glr_path_static(): """Returns path to packaged static files""" return os.path.abspath(os.path.join(os.path.dirname(__file__), '_static'))
17.230769
78
0.638393
79549d84e3936d1773c6fdbf6e9ad64c5977bcac
1,710
py
Python
tools/c7n_kube/setup.py
tjstansell/cloud-custodian
830a1131537560e5032bc67e52b66e259630e899
[ "Apache-2.0" ]
1
2021-08-22T12:30:03.000Z
2021-08-22T12:30:03.000Z
tools/c7n_kube/setup.py
tjstansell/cloud-custodian
830a1131537560e5032bc67e52b66e259630e899
[ "Apache-2.0" ]
8
2021-06-02T04:42:28.000Z
2022-03-10T19:25:52.000Z
tools/c7n_kube/setup.py
tjstansell/cloud-custodian
830a1131537560e5032bc67e52b66e259630e899
[ "Apache-2.0" ]
null
null
null
# Automatically generated from poetry/pyproject.toml # flake8: noqa # -*- coding: utf-8 -*- from setuptools import setup packages = \ ['c7n_kube', 'c7n_kube.actions', 'c7n_kube.resources', 'c7n_kube.resources.apps', 'c7n_kube.resources.core'] package_data = \ {'': ['*']} install_requires = \ ['argcomplete (>=1.1...
28.032787
104
0.598246
79549f79ea83fd1ce4dbc0f37c28b3bb1383cbe0
395
py
Python
app/email.py
Daniel-Muruthi/pitch
df8f7350bcc43fe4cd90c0d819d230b2044ec8af
[ "MIT" ]
null
null
null
app/email.py
Daniel-Muruthi/pitch
df8f7350bcc43fe4cd90c0d819d230b2044ec8af
[ "MIT" ]
null
null
null
app/email.py
Daniel-Muruthi/pitch
df8f7350bcc43fe4cd90c0d819d230b2044ec8af
[ "MIT" ]
null
null
null
from flask_mail import Message from flask import render_template from . import mail def mail_message(subject, template, to, **kwargs): sender_email = 'adinomuruthi1@gmail.com' email = Message(subject, sender=sender_email, receipients=[to]) email.body = render_template(template + ".txt", **kwargs) emai...
35.909091
67
0.729114
7954a03d73aaf94146e3e4b4c1324201db07d2f9
1,355
py
Python
plot.py
shivapbhusal/calculate_bandgap
7f738a35145e6c9c64100d30bf8ae477a627bbba
[ "MIT" ]
null
null
null
plot.py
shivapbhusal/calculate_bandgap
7f738a35145e6c9c64100d30bf8ae477a627bbba
[ "MIT" ]
null
null
null
plot.py
shivapbhusal/calculate_bandgap
7f738a35145e6c9c64100d30bf8ae477a627bbba
[ "MIT" ]
null
null
null
''' A python script to compute bandgap in zinc oxide Requires 1 argument in command line. Example, python compute_bandgap doscar ''' import matplotlib.pyplot as plt import sys import numpy as np ''' Function to convert numbers in E+ and E- exponential format to normal floating point numbers. ''' def stringToFloa...
25.566038
101
0.697417
7954a0b0cfd197e85cbba63263f3dc9ac9604572
106,832
py
Python
vectorbt/portfolio/nb.py
jacopomaroli/vectorbt
b63def506735e06262ec7f95bf7622cadd4c9e2e
[ "Apache-2.0" ]
1
2021-03-28T23:59:08.000Z
2021-03-28T23:59:08.000Z
vectorbt/portfolio/nb.py
dougransom/vectorbt
44968ac579a1420f713df326eb730bae93041622
[ "Apache-2.0" ]
null
null
null
vectorbt/portfolio/nb.py
dougransom/vectorbt
44968ac579a1420f713df326eb730bae93041622
[ "Apache-2.0" ]
null
null
null
"""Numba-compiled functions. Provides an arsenal of Numba-compiled functions that are used for portfolio modeling, such as generating and filling orders. These only accept NumPy arrays and other Numba-compatible types. !!! note vectorbt treats matrices as first-class citizens and expects input arrays to be 2-...
38.947138
128
0.568313
7954a11e07dbae3e6a24c392e374aafaee409b6d
3,298
py
Python
objective_functions.py
aurelienserre/samestats
91a4471e8e85cff198b206ec9a36883811215596
[ "BSD-3-Clause" ]
null
null
null
objective_functions.py
aurelienserre/samestats
91a4471e8e85cff198b206ec9a36883811215596
[ "BSD-3-Clause" ]
null
null
null
objective_functions.py
aurelienserre/samestats
91a4471e8e85cff198b206ec9a36883811215596
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn class DistToPoints(nn.Module): """Compute the sum over all the points given as input of their squared distances to some target points.""" def __init__(self, targets): """Initializes the targets :targets: (np.array or torch.Tensor) target points ...
40.219512
96
0.579442
7954a1ff53f499c2aebac3c62ba1eacbfe522892
1,723
py
Python
test/test_copyright.py
livanov93/launch_param_builder
09855c93d959b5de3f273ba3b146f76275f31588
[ "BSD-3-Clause" ]
1
2022-01-20T23:43:25.000Z
2022-01-20T23:43:25.000Z
test/test_copyright.py
livanov93/launch_param_builder
09855c93d959b5de3f273ba3b146f76275f31588
[ "BSD-3-Clause" ]
5
2021-08-11T23:31:27.000Z
2022-01-20T23:53:13.000Z
test/test_copyright.py
livanov93/launch_param_builder
09855c93d959b5de3f273ba3b146f76275f31588
[ "BSD-3-Clause" ]
3
2021-08-12T18:42:51.000Z
2022-01-07T16:58:43.000Z
# Copyright 2021 PickNik Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. ...
44.179487
77
0.763784
7954a311fb1626a4fe5e15d6ac1727f190b0ddae
29,970
py
Python
scripts/processors/Tokenisers.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
null
null
null
scripts/processors/Tokenisers.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
null
null
null
scripts/processors/Tokenisers.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Project: Simple4All - January 2013 - www.simple4all.org ## Contact: Oliver Watts - owatts@staffmail.ed.ac.uk ## Contact: Antti Suni - Antti.Suni@helsinki.fi #from naive.naive_util import * import unicodedata import glob from processors.UtteranceProcessor import SUttera...
39.279161
135
0.577744
7954a3d0a47521d0de8a0696092db68c68a3c7e5
1,672
py
Python
server/sqlmap/thirdparty/beautifulsoup/__init__.py
kurpav/volcano
31d5f8f6f5a282abbea3861368eb39cfe33bba77
[ "MIT" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.sqlmap/thirdparty/beautifulsoup/__init__.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.sqlmap/thirdparty/beautifulsoup/__init__.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
161
2018-04-20T15:57:12.000Z
2022-03-15T19:16:16.000Z
#!/usr/bin/env python # # Copyright (c) 2004-2010, Leonard Richardson # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright...
44
79
0.763756
7954a4ab4531cd599765dd52ecd9dd499a49e412
7,853
py
Python
anemometere.py
SvenA098072/ESHL_CBo_Post_Processing
d3b53f41011b4e8fed61175b4873e514cc4802ed
[ "MIT" ]
null
null
null
anemometere.py
SvenA098072/ESHL_CBo_Post_Processing
d3b53f41011b4e8fed61175b4873e514cc4802ed
[ "MIT" ]
null
null
null
anemometere.py
SvenA098072/ESHL_CBo_Post_Processing
d3b53f41011b4e8fed61175b4873e514cc4802ed
[ "MIT" ]
1
2021-06-24T14:48:13.000Z
2021-06-24T14:48:13.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jan 11 15:52:37 2021 @author: Devineni """ import pandas as pd import numpy as np from statistics import mean import time import datetime as dt import matplotlib.pyplot as plt import operator # for plotting from openpyxl import load_workbook # import mysql.connector impor...
39.462312
177
0.684579
7954a521368ca2c1d9df918c7daae73e77138f42
913
py
Python
libraries/botbuilder-schema/botbuilder/schema/callerid_constants.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
1
2021-03-02T22:56:09.000Z
2021-03-02T22:56:09.000Z
libraries/botbuilder-schema/botbuilder/schema/callerid_constants.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
null
null
null
libraries/botbuilder-schema/botbuilder/schema/callerid_constants.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
1
2020-10-01T07:34:07.000Z
2020-10-01T07:34:07.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ----------------------------------------------------------------...
35.115385
106
0.573932
7954a5a1d75d7afb2a51ca7d528a8989ba95526e
2,586
py
Python
tools/dice_coeff_check.py
smg478/Kaggle---Carvana-Image-Masking-Challange
3df42c451a4d2218230e462eba9387a3b742f7ef
[ "MIT" ]
2
2017-11-23T00:22:28.000Z
2018-02-20T02:57:32.000Z
tools/dice_coeff_check.py
smg478/Kaggle---Carvana-Image-Masking-Challange
3df42c451a4d2218230e462eba9387a3b742f7ef
[ "MIT" ]
null
null
null
tools/dice_coeff_check.py
smg478/Kaggle---Carvana-Image-Masking-Challange
3df42c451a4d2218230e462eba9387a3b742f7ef
[ "MIT" ]
1
2020-12-18T16:06:53.000Z
2020-12-18T16:06:53.000Z
import pandas as pd import numpy as np import cv2 from tqdm import tqdm from u_net import get_unet1_1024x1024 def dice_coeff(y_true, y_pred): smooth = 1. y_true_f = K.flatten(y_true) y_pred_f = K.flatten(y_pred) intersection = K.sum(y_true_f * y_pred_f) score = (2. * intersection + smooth) / (K.s...
35.916667
107
0.63109
7954a5ca842a9987402318e666c174641abd47b6
58,256
py
Python
jax/interpreters/pxla.py
clemisch/jax
771d7c8ba5dd0c64d72556712b5d4329878a20cc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/interpreters/pxla.py
clemisch/jax
771d7c8ba5dd0c64d72556712b5d4329878a20cc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/interpreters/pxla.py
clemisch/jax
771d7c8ba5dd0c64d72556712b5d4329878a20cc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.647145
93
0.707412
7954a603f16e7f1d72ec5c154e8b128d7ea2a352
365
py
Python
curated/users/urls.py
mahmoudtokura/Curated2.0
cfd60673439d7d4f9c4fc4f53e0c7c6a69b271b3
[ "MIT" ]
null
null
null
curated/users/urls.py
mahmoudtokura/Curated2.0
cfd60673439d7d4f9c4fc4f53e0c7c6a69b271b3
[ "MIT" ]
null
null
null
curated/users/urls.py
mahmoudtokura/Curated2.0
cfd60673439d7d4f9c4fc4f53e0c7c6a69b271b3
[ "MIT" ]
null
null
null
from django.urls import path from curated.users.views import ( user_detail_view, user_redirect_view, user_update_view, ) app_name = "users" urlpatterns = [ path("~redirect/", view=user_redirect_view, name="redirect"), path("~update/", view=user_update_view, name="update"), path("<str:username>...
24.333333
66
0.70137
7954a652c90c7d7e684263bc85d0121a6238ddfb
149
py
Python
lane_finding_pipeline/piplineinterface.py
kerrywang/Advanced-Lane-Finding
146fd169b9c9a0c58d2bd6103e147fdc4a26684d
[ "MIT" ]
null
null
null
lane_finding_pipeline/piplineinterface.py
kerrywang/Advanced-Lane-Finding
146fd169b9c9a0c58d2bd6103e147fdc4a26684d
[ "MIT" ]
17
2020-01-28T22:46:24.000Z
2022-03-11T23:48:39.000Z
lane_finding_pipeline/piplineinterface.py
kerrywang/Advanced-Lane-Finding
146fd169b9c9a0c58d2bd6103e147fdc4a26684d
[ "MIT" ]
null
null
null
import abc class PipeLineInterface(abc.ABC): def __init__(self): pass @abc.abstractmethod def process(self, image): pass
18.625
33
0.644295
7954a6f1fcc27bc7a2588495426c5968a5f1d4f2
134
py
Python
tests/pydecompile-test/baselines/class_handler_parameter.py
gengxf0505/pxt
eca93a0e0605e68adcfbebce778cc5912a10efcf
[ "MIT" ]
1
2020-11-11T01:47:26.000Z
2020-11-11T01:47:26.000Z
tests/pydecompile-test/baselines/class_handler_parameter.py
gengxf0505/pxt
eca93a0e0605e68adcfbebce778cc5912a10efcf
[ "MIT" ]
3
2019-08-13T14:36:05.000Z
2020-01-18T00:04:19.000Z
tests/pydecompile-test/baselines/class_handler_parameter.py
gengxf0505/pxt
eca93a0e0605e68adcfbebce778cc5912a10efcf
[ "MIT" ]
2
2019-10-29T06:56:11.000Z
2021-05-25T10:18:12.000Z
#/ <reference path="./testBlocks/classHandlerParameter.ts" /> x = game.Sprite() def function_0(other): pass x.onOverlap(function_0)
22.333333
61
0.738806
7954a74be5c915c47cfec2ac5007878e721b3a54
886
py
Python
tests/bracket.py
TheSecEng/MarkdownTOC
7c69137249820dc586fd90b58fca2f34c54f2abc
[ "MIT" ]
null
null
null
tests/bracket.py
TheSecEng/MarkdownTOC
7c69137249820dc586fd90b58fca2f34c54f2abc
[ "MIT" ]
1
2020-05-24T11:44:49.000Z
2020-05-24T11:44:49.000Z
tests/bracket.py
TheSecEng/MarkdownTOC
7c69137249820dc586fd90b58fca2f34c54f2abc
[ "MIT" ]
null
null
null
# coding:utf-8 from base import TestBase class TestBracket(TestBase): '''Test for attributes \'bracket\'''' # for debug # def tearDown(self): # pass # TODO: How can we remove 'autolink=true' only in these tests below ? bracket_text = \ ''' <!-- MarkdownTOC autolink=true {0} --> <!-- /M...
25.314286
81
0.61851
7954a7bbe8ccac9a9d76513832ed91b4c1c715ad
3,075
py
Python
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import onegov.core import onegov.org from tests.shared import utils def test_view_permissions(): utils.assert_explicit_permissions(onegov.org, onegov.org.OrgApp) def test_notfound(client): notfound_page = client.get('/foobar', expect_errors=True) assert "Seite nicht gefunden" in notfound_page assert...
27.212389
74
0.67935
7954a91cf63da0df240ed0cf80784259f904d666
1,028
py
Python
GCE/sources/GCEResourceLimits.py
shreyb/decisionengine_modules
6658c623a79fc66b45010f464770b0cb613bf754
[ "BSD-3-Clause" ]
null
null
null
GCE/sources/GCEResourceLimits.py
shreyb/decisionengine_modules
6658c623a79fc66b45010f464770b0cb613bf754
[ "BSD-3-Clause" ]
null
null
null
GCE/sources/GCEResourceLimits.py
shreyb/decisionengine_modules
6658c623a79fc66b45010f464770b0cb613bf754
[ "BSD-3-Clause" ]
null
null
null
""" Query Resource Limits from another channel with the factory source """ import typing from decisionengine.framework.modules import Source, SourceProxy from decisionengine.framework.modules.Source import Parameter @Source.supports_config(Parameter('entry_limit_attrs', type=list)) @Source.produces(GCE_Resource_Limi...
29.371429
66
0.718872
7954a9969c943ecfedc5c3e18e81f213fe60dd00
1,447
py
Python
examples/example3.py
mjbright/kubernetes-client-python
a677ac36b1cc7bad43dc9f67195d05961d68b339
[ "Apache-2.0" ]
null
null
null
examples/example3.py
mjbright/kubernetes-client-python
a677ac36b1cc7bad43dc9f67195d05961d68b339
[ "Apache-2.0" ]
null
null
null
examples/example3.py
mjbright/kubernetes-client-python
a677ac36b1cc7bad43dc9f67195d05961d68b339
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2016 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
33.651163
75
0.656531
7954ab3057fde6252fc6ff2cf7d65d85beb0cd8d
4,995
py
Python
app/django/photo/admin.py
Murabei-OpenSource-Codes/ai-photo-sampler--backend
c098a5cb544da89623a000d87daa18f22cfecfce
[ "BSD-3-Clause" ]
null
null
null
app/django/photo/admin.py
Murabei-OpenSource-Codes/ai-photo-sampler--backend
c098a5cb544da89623a000d87daa18f22cfecfce
[ "BSD-3-Clause" ]
null
null
null
app/django/photo/admin.py
Murabei-OpenSource-Codes/ai-photo-sampler--backend
c098a5cb544da89623a000d87daa18f22cfecfce
[ "BSD-3-Clause" ]
null
null
null
import base64 import datetime from django.utils import timezone from django.contrib import admin from django.db.models import Q from photo.models import DescriptionImage from django.utils.html import format_html from core.singletons import storage_object from django.contrib.admin import SimpleListFilter from django.con...
33.75
88
0.616016
7954ab8f63b72f63bee762d27c6df4f4a2f7a027
393
py
Python
django/cantusdb_project/cantusdb/wsgi.py
DDMAL/CantusDB
63c7b8df3c703008bd331097c7fb5e72c8890bb0
[ "MIT" ]
2
2020-10-16T09:50:54.000Z
2021-07-29T08:38:34.000Z
django/cantusdb_project/cantusdb/wsgi.py
DDMAL/CantusDB
63c7b8df3c703008bd331097c7fb5e72c8890bb0
[ "MIT" ]
65
2020-05-11T19:22:30.000Z
2022-03-30T22:30:02.000Z
django/cantusdb_project/cantusdb/wsgi.py
DDMAL/CantusDB
63c7b8df3c703008bd331097c7fb5e72c8890bb0
[ "MIT" ]
null
null
null
""" WSGI config for cantusdb 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
7954abbe5cd2359f547187b4b929f3cc2788181a
2,065
py
Python
whatwhy/resource_manager/jamspell.py
stevengt/whatwhy
bf6f87fd20eebfc89240835c3121ec3079632133
[ "MIT" ]
2
2020-07-29T07:26:47.000Z
2020-07-29T07:26:55.000Z
whatwhy/resource_manager/jamspell.py
stevengt/whatwhy
bf6f87fd20eebfc89240835c3121ec3079632133
[ "MIT" ]
null
null
null
whatwhy/resource_manager/jamspell.py
stevengt/whatwhy
bf6f87fd20eebfc89240835c3121ec3079632133
[ "MIT" ]
null
null
null
import os import shutil import logging import tarfile import requests from whatwhy import get_resources_folder from .nltk import configure_nltk logging.basicConfig(level="INFO") logger = logging.getLogger(__name__) def get_jamspell_model_file_name(): """Returns the file path of the jamspell language model, downlo...
39.711538
156
0.763196
7954abdefb3dc2ab362cf404df34131487647ecb
787
py
Python
db_file_storage/views.py
zvolsky/db_file_storage
9b94cfc46241b24e694da0849aa482a9fe79bf62
[ "MIT" ]
2
2019-06-15T03:32:50.000Z
2019-06-15T10:14:28.000Z
db_file_storage/views.py
zvolsky/db_file_storage
9b94cfc46241b24e694da0849aa482a9fe79bf62
[ "MIT" ]
null
null
null
db_file_storage/views.py
zvolsky/db_file_storage
9b94cfc46241b24e694da0849aa482a9fe79bf62
[ "MIT" ]
1
2019-06-15T03:32:53.000Z
2019-06-15T03:32:53.000Z
# third party from django.http import HttpResponse, HttpResponseBadRequest from django.utils.translation import ugettext as _ from wsgiref.util import FileWrapper # project from db_file_storage.storage import DatabaseFileStorage storage = DatabaseFileStorage() def get_file(request, add_attachment_headers): name...
26.233333
70
0.711563
7954ac11f3945bdbe65d168c7a86097ebc504f22
21,483
py
Python
awx/sso/tests/functional/test_pipeline.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
awx/sso/tests/functional/test_pipeline.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
2
2022-02-10T11:57:21.000Z
2022-02-27T22:43:44.000Z
awx/sso/tests/functional/test_pipeline.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
import pytest import re from unittest import mock from django.utils.timezone import now from awx.sso.pipeline import update_user_orgs, update_user_teams, update_user_orgs_by_saml_attr, update_user_teams_by_saml_attr, _check_flag from awx.main.models import User, Team, Organization, Credential, CredentialType @pyte...
44.943515
160
0.593632
7954ac18407bfc30e76c9f88ce96b6a419650c2d
35
py
Python
sciml/__init__.py
soonyenju/sciml
9ddabd031d5ad6e168442b88ef3a1272482307f8
[ "MIT" ]
null
null
null
sciml/__init__.py
soonyenju/sciml
9ddabd031d5ad6e168442b88ef3a1272482307f8
[ "MIT" ]
null
null
null
sciml/__init__.py
soonyenju/sciml
9ddabd031d5ad6e168442b88ef3a1272482307f8
[ "MIT" ]
null
null
null
# coding: utf-8 __all__ = ["utils"]
17.5
19
0.628571
7954ad430e571134f296812972959600a28d0607
1,976
py
Python
view/error.py
zitelog/fit
1b0b65b00cd3cbbdda5b1a595a107f44af2fddab
[ "MIT" ]
1
2022-02-17T23:28:14.000Z
2022-02-17T23:28:14.000Z
view/error.py
zitelog/fit
1b0b65b00cd3cbbdda5b1a595a107f44af2fddab
[ "MIT" ]
null
null
null
view/error.py
zitelog/fit
1b0b65b00cd3cbbdda5b1a595a107f44af2fddab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ###### # File: error.py # Project: FIT # Created Date: Wednesday, August 18th 2021, 2:27:31 pm # Author: Fabio Zito # ----- # Last Modified: Wed Aug 18 2021 # Modified By: Fabio Zito # ----- # MIT License # # Copyright (c) 2021 ZF zitelog@gmail.com # # Permission is hereb...
38.745098
86
0.699899
7954ada1d5be94eba038385f23633c33864a7a8b
1,892
py
Python
nc/migrations/0038_auto_20180805_1846.py
kfarrelly/nucleo
096fa9fdfac39383269904f5d58b3714ce2d2f46
[ "Apache-2.0" ]
1
2022-01-10T23:35:53.000Z
2022-01-10T23:35:53.000Z
nc/migrations/0038_auto_20180805_1846.py
kfarrelly/nucleo
096fa9fdfac39383269904f5d58b3714ce2d2f46
[ "Apache-2.0" ]
null
null
null
nc/migrations/0038_auto_20180805_1846.py
kfarrelly/nucleo
096fa9fdfac39383269904f5d58b3714ce2d2f46
[ "Apache-2.0" ]
1
2022-01-10T23:36:32.000Z
2022-01-10T23:36:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-08-05 18:46 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 = [ ('auth', '0008_alter_user_u...
43
187
0.650634
7954adf727139e48db300db600aa22adbf0732fa
2,080
py
Python
cl_app/models.py
abbey-titcomb/the-store-to-be-named
edfcfca2af89df82efa8bd0c85bc63b32197f10b
[ "MIT" ]
null
null
null
cl_app/models.py
abbey-titcomb/the-store-to-be-named
edfcfca2af89df82efa8bd0c85bc63b32197f10b
[ "MIT" ]
5
2020-06-06T01:14:32.000Z
2022-01-13T02:46:40.000Z
cl_app/models.py
abbey-titcomb/the-store-to-be-named
edfcfca2af89df82efa8bd0c85bc63b32197f10b
[ "MIT" ]
null
null
null
from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token # Create your models here. class City(models.Model): city = models.CharField(max_length=20) def __str__(self): return self.city class Pr...
30.144928
110
0.713942
7954af1664e98eaa9a5c1fe9a18a5ab24ab6272d
3,512
py
Python
tests/unit/test_external_dns.py
awsbot-labs/python-kubernetes-lambda
0f7cf746ef365391a83b577154caa8dc2a0254af
[ "MIT" ]
null
null
null
tests/unit/test_external_dns.py
awsbot-labs/python-kubernetes-lambda
0f7cf746ef365391a83b577154caa8dc2a0254af
[ "MIT" ]
null
null
null
tests/unit/test_external_dns.py
awsbot-labs/python-kubernetes-lambda
0f7cf746ef365391a83b577154caa8dc2a0254af
[ "MIT" ]
null
null
null
from lambdakube.external_dns import ExternalDNS from tests.unit.test_utils import BaseLambdaKubeTest from mock import Mock class ExternalDNSTest(BaseLambdaKubeTest): def setUp(self): super(ExternalDNSTest, self).setUp() self.name = 'external-dns' self.namespace = 'kube-system' self...
43.358025
83
0.667141
7954af782ff489bd5132456890c68f76c284be3c
4,421
py
Python
test/sox_io_backend/test_info.py
lbjcom/audio
990bb5e57b66c92254365fdd6e43a12d9d0b7c78
[ "BSD-2-Clause" ]
null
null
null
test/sox_io_backend/test_info.py
lbjcom/audio
990bb5e57b66c92254365fdd6e43a12d9d0b7c78
[ "BSD-2-Clause" ]
null
null
null
test/sox_io_backend/test_info.py
lbjcom/audio
990bb5e57b66c92254365fdd6e43a12d9d0b7c78
[ "BSD-2-Clause" ]
null
null
null
import itertools from parameterized import parameterized from torchaudio.backend import sox_io_backend from ..common_utils import ( TempDirMixin, PytorchTestCase, skipIfNoExec, skipIfNoExtension, ) from .common import ( get_test_name ) from . import sox_utils @skipIfNoExec('sox') @skipIfNoExtens...
38.443478
91
0.649853
7954b2836afcd71be317b530ea8cf144d8bc05fd
486
py
Python
rammon/signals.py
jackadamson/rammon
25bc059fda066d8b24a239938a8c2cb90d18ba02
[ "MIT" ]
null
null
null
rammon/signals.py
jackadamson/rammon
25bc059fda066d8b24a239938a8c2cb90d18ba02
[ "MIT" ]
null
null
null
rammon/signals.py
jackadamson/rammon
25bc059fda066d8b24a239938a8c2cb90d18ba02
[ "MIT" ]
null
null
null
import signal from gi.repository import GLib def set_handlers(mon): GLib.unix_signal_add( GLib.PRIORITY_HIGH, signal.SIGTERM, # for the given signal mon.stop, # on this signal, run this function signal.SIGTERM, # with this argument ) GLib.unix_signal_add( GLib.PR...
27
54
0.641975
7954b2d53e005cb8d21e125fb3499a20e6977ca7
1,556
py
Python
insights/parsers/containers_policy.py
TZ3070/insights-core
13f4fc6bfcb89d76f0255c6259902360a298d619
[ "Apache-2.0" ]
null
null
null
insights/parsers/containers_policy.py
TZ3070/insights-core
13f4fc6bfcb89d76f0255c6259902360a298d619
[ "Apache-2.0" ]
null
null
null
insights/parsers/containers_policy.py
TZ3070/insights-core
13f4fc6bfcb89d76f0255c6259902360a298d619
[ "Apache-2.0" ]
null
null
null
""" ContainersPolicy - file ``/etc/containers/policy.json`` ======================================================= """ from insights import JSONParser, parser from insights.specs import Specs @parser(Specs.containers_policy) class ContainersPolicy(JSONParser): """ Class for converting file ``/etc/containers/...
25.933333
74
0.411954
7954b3389e16ef9f64068856f5a1a4585b534ffb
14,582
py
Python
tests/components/cover/test_device_action.py
PandaBaer92/core
4b30c9631f0f0a1ad59005f316b3f03975d2accd
[ "Apache-2.0" ]
null
null
null
tests/components/cover/test_device_action.py
PandaBaer92/core
4b30c9631f0f0a1ad59005f316b3f03975d2accd
[ "Apache-2.0" ]
null
null
null
tests/components/cover/test_device_action.py
PandaBaer92/core
4b30c9631f0f0a1ad59005f316b3f03975d2accd
[ "Apache-2.0" ]
1
2022-02-06T20:41:11.000Z
2022-02-06T20:41:11.000Z
"""The tests for Cover device actions.""" import pytest import homeassistant.components.automation as automation from homeassistant.components.cover import ( DOMAIN, SUPPORT_CLOSE, SUPPORT_CLOSE_TILT, SUPPORT_OPEN, SUPPORT_OPEN_TILT, SUPPORT_SET_POSITION, SUPPORT_SET_TILT_POSITION, SUPP...
33.75463
87
0.587642
7954b45a0d402242b786e3583a748bfa85166289
3,107
py
Python
ucsmsdk/mometa/extvmm/ExtvmmEpFsmTask.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/extvmm/ExtvmmEpFsmTask.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/extvmm/ExtvmmEpFsmTask.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for ExtvmmEpFsmTask ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class ExtvmmEpFsmTaskConsts(): COMPLETION_CANCELLED = "cancelled" COMPLETION...
50.112903
249
0.64757
7954b54db2c57f852a99e223e3273414f033919c
5,061
py
Python
tests/validators/test_format_validators.py
kodemore/opyapi
85e61274f81258d767722bc341427b88dddbcf00
[ "MIT" ]
1
2021-08-14T15:40:34.000Z
2021-08-14T15:40:34.000Z
tests/validators/test_format_validators.py
kodemore/opyapi
85e61274f81258d767722bc341427b88dddbcf00
[ "MIT" ]
2
2021-11-10T22:26:00.000Z
2021-11-11T06:28:46.000Z
tests/validators/test_format_validators.py
kodemore/opyapi
85e61274f81258d767722bc341427b88dddbcf00
[ "MIT" ]
null
null
null
from base64 import b64encode import pytest from opyapi import StringFormat from opyapi.errors import FormatValidationError from opyapi.validators import validate_string_format @pytest.mark.parametrize( "given_string, given_format", [ ["yes", StringFormat.BOOLEAN], ["ok", StringFormat.BOOLEAN...
44.787611
80
0.635052
7954b668e79480a54643dfbd4ddfcd96c5b23a76
735
py
Python
src/htc_calculator/config.py
DerMaxxiKing/htc_calculator
10d2e31a1cb4256fdcbe25ec915d7280927a064a
[ "MIT" ]
null
null
null
src/htc_calculator/config.py
DerMaxxiKing/htc_calculator
10d2e31a1cb4256fdcbe25ec915d7280927a064a
[ "MIT" ]
null
null
null
src/htc_calculator/config.py
DerMaxxiKing/htc_calculator
10d2e31a1cb4256fdcbe25ec915d7280927a064a
[ "MIT" ]
null
null
null
import sys # print('Importing FreeCAD and Modules') # sys.path.append('/usr/lib/freecad/lib') # print('Importing FreeCAD and Modules') # # # sys.path.append('/tmp/squashfs-root/usr/lib/python38.zip') # sys.path.append('/tmp/squashfs-root/usr/lib/python3.8') # sys.path.append('/tmp/squashfs-root/usr/lib/pyth...
33.409091
72
0.702041
7954b699a58d4beb3052fbba6bfe02d5d18c2971
769
py
Python
.local/bin/256colours/colortest.py
antonyfg/My_config_files
28d99b381193bf0641fe2281e07982d85874dde9
[ "WTFPL" ]
5
2016-02-16T14:39:00.000Z
2021-06-29T23:36:37.000Z
.local/bin/256colours/colortest.py
antonyfg/My_config_files
28d99b381193bf0641fe2281e07982d85874dde9
[ "WTFPL" ]
null
null
null
.local/bin/256colours/colortest.py
antonyfg/My_config_files
28d99b381193bf0641fe2281e07982d85874dde9
[ "WTFPL" ]
1
2017-03-01T05:00:39.000Z
2017-03-01T05:00:39.000Z
#!/usr/bin/env python # Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349 print "Color indexes should be drawn in bold text of the same color." print colored = [0] + [0x5f + 40 * n for n in range(0, 5)] colored_palette = [ "%02x/%02x/%02x" % (r, g, b) for r in colored for g in colored fo...
25.633333
76
0.613784
7954b72406bfa07a0ef7d2e41aeebdaa6392ce58
5,990
py
Python
_build/jupyter_execute/join_all_processed.py
harnalashok/credit_risk
8ad0426d8ac66a115ef6b6feb8a8a05119c1cd9e
[ "Apache-2.0" ]
1
2021-08-03T13:27:10.000Z
2021-08-03T13:27:10.000Z
_build/jupyter_execute/join_all_processed.py
harnalashok/credit_risk
8ad0426d8ac66a115ef6b6feb8a8a05119c1cd9e
[ "Apache-2.0" ]
null
null
null
_build/jupyter_execute/join_all_processed.py
harnalashok/credit_risk
8ad0426d8ac66a115ef6b6feb8a8a05119c1cd9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Joining all processed data # This notebook joins all processed data and then saves it in a file for subsequent modeling. # In[87]: # Last amended: 24th October, 2020 # Myfolder: C:\Users\Administrator\OneDrive\Documents\home_credit_default_risk # Objective: # ...
18.262195
94
0.588648
7954b75729275e58b4893b6bb42cf52556ad8156
2,542
py
Python
session-1/sess1_gabor_kernel.py
marcreyesph/tf-selfpacedtuts
fd0393ef8578fc65042b1270575a16df6bd30605
[ "MIT" ]
null
null
null
session-1/sess1_gabor_kernel.py
marcreyesph/tf-selfpacedtuts
fd0393ef8578fc65042b1270575a16df6bd30605
[ "MIT" ]
null
null
null
session-1/sess1_gabor_kernel.py
marcreyesph/tf-selfpacedtuts
fd0393ef8578fc65042b1270575a16df6bd30605
[ "MIT" ]
null
null
null
from skimage import data import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import os # Minimize console warnings by tensorflow os.environ['TF_CPP_MIN_LOG_LEVEL']='2' sess = tf.InteractiveSession() img_dataset = [os.path.join('celeba_dataset_minified', img_i) for img_i in o...
30.626506
99
0.669158
7954b9308ef97874ef7051f8d3df44ecad9ebf05
845
py
Python
endaccgen.py
alexgonzdev/endaccountgen
4563e08b18c57502475d729da4ff7e461bb383aa
[ "MIT" ]
1
2020-10-11T15:54:33.000Z
2020-10-11T15:54:33.000Z
endaccgen.py
alexgonzdev/endaccountgen
4563e08b18c57502475d729da4ff7e461bb383aa
[ "MIT" ]
1
2021-07-01T01:40:16.000Z
2021-07-01T01:40:16.000Z
endaccgen.py
alexgonzdev/endaccountgen
4563e08b18c57502475d729da4ff7e461bb383aa
[ "MIT" ]
null
null
null
import requests import json headers = { "Accept":"application/json", "Accept-Encoding":"gzip, deflate, br", "Accept-Language":"en-US,en;q=0.5", "Access-Control-Allow-Credentials":"true", "Cache-Control":"no-cache", "Connection":"keep-alive", "Content-Type":"application/json; charset=UTF-8", "Host":"launches-api.endclo...
31.296296
150
0.733728
7954b939ddc6ce3adf699e9ba779bb3d9f59ef59
449
py
Python
001-100/12/12.py
junwei-wang/project-euler
abd728037e0f73f0f52f2ae4d40d468b307f34de
[ "MIT" ]
null
null
null
001-100/12/12.py
junwei-wang/project-euler
abd728037e0f73f0f52f2ae4d40d468b307f34de
[ "MIT" ]
null
null
null
001-100/12/12.py
junwei-wang/project-euler
abd728037e0f73f0f52f2ae4d40d468b307f34de
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from math import sqrt, ceil def get_fac_num(n): if n == 1: return 1 sqr = int(ceil(sqrt(n))) sum = 2 if sqr * sqr == n: sum += 1 for i in range(2, sqr): if n % i == 0: sum += 2 return sum i = 10 while True: ...
16.62963
30
0.474388
7954b9a1b9f65d17bf20213cdeec160c1876d8c0
85
py
Python
setup.py
isidentical/pynano
29ece35782cacfb3cfcf35bf9b50e6a11cf44d34
[ "MIT" ]
2
2019-09-15T16:26:32.000Z
2019-09-15T17:20:40.000Z
setup.py
pynano/pynano
29ece35782cacfb3cfcf35bf9b50e6a11cf44d34
[ "MIT" ]
null
null
null
setup.py
pynano/pynano
29ece35782cacfb3cfcf35bf9b50e6a11cf44d34
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup(name="pynano", version="0.1.0a0")
21.25
43
0.764706
7954ba3ba50c3cf20c401fc4afebfc92242c7879
4,104
py
Python
example_problems/tutorial/chococroc/services/check_game_value.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
4
2021-06-27T13:27:24.000Z
2022-03-24T10:46:28.000Z
example_problems/tutorial/chococroc/services/check_game_value.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
null
null
null
example_problems/tutorial/chococroc/services/check_game_value.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
5
2021-04-01T15:21:57.000Z
2022-01-29T15:07:38.000Z
#!/usr/bin/env python3 import sys from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors import chococroc_lib as cl # METADATA OF THIS TAL_SERVICE: problem="chococroc" service="check_game_value" args_list = [ ('m',int), ('n',int), ('value',int), ('silent',bool) ] ENV =Env(arg...
66.193548
396
0.664717
7954babebec1f97f71efac501a2734bc187f2b78
8,437
py
Python
tests/fixtures.py
jamilatta/citedby
b0a7146cc1d0972da678d934d93f92d68c8eb126
[ "BSD-2-Clause" ]
null
null
null
tests/fixtures.py
jamilatta/citedby
b0a7146cc1d0972da678d934d93f92d68c8eb126
[ "BSD-2-Clause" ]
null
null
null
tests/fixtures.py
jamilatta/citedby
b0a7146cc1d0972da678d934d93f92d68c8eb126
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 doi_response = [ { "doi": u"http://dx.doi.org/10.1161/01.res.59.2.178", "score": 18.42057, "normalizedScore": 100, "title": u"Power spectral analysis of heart rate and arterial pressure variabilities as a marker of sympatho-vagal interaction in man and conscious dog", "fullCitatio...
42.611111
796
0.47268
7954bb0f49177fb632a32d2075e90cfa8c5d888f
1,592
py
Python
fec/home/migrations/0039_legalresourceslanding.py
rds0751/fec-cms
833cdac7240d056ed234ed5b503a2407e1fee1ce
[ "CC0-1.0" ]
47
2015-09-09T14:23:30.000Z
2019-12-29T13:58:41.000Z
fec/home/migrations/0039_legalresourceslanding.py
rds0751/fec-cms
833cdac7240d056ed234ed5b503a2407e1fee1ce
[ "CC0-1.0" ]
1,634
2015-08-19T16:36:28.000Z
2018-03-09T18:22:23.000Z
fec/home/migrations/0039_legalresourceslanding.py
rds0751/fec-cms
833cdac7240d056ed234ed5b503a2407e1fee1ce
[ "CC0-1.0" ]
27
2015-08-20T02:10:13.000Z
2021-02-14T10:51:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-28 23:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import wagtail.contrib.table_block.blocks import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtail...
45.485714
398
0.682789
7954bbbd629a47f76ebeb04b1dacc89378ebee51
1,028
py
Python
sample/diff_tile_metadata_yaml.py
RedisLabs/tile-generator
56b602334edb38639bc7e01b1e9e68e43f9e6828
[ "Apache-2.0" ]
null
null
null
sample/diff_tile_metadata_yaml.py
RedisLabs/tile-generator
56b602334edb38639bc7e01b1e9e68e43f9e6828
[ "Apache-2.0" ]
null
null
null
sample/diff_tile_metadata_yaml.py
RedisLabs/tile-generator
56b602334edb38639bc7e01b1e9e68e43f9e6828
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import dictdiffer import sys import yaml if len(sys.argv) != 3: print 'Usage: %s FILE_A FILE_B\nSort tile metadata yaml files and compare FILE_A to FILE_B.' % sys.argv[0].split('/')[-1] sys.exit(1) with open(sys.argv[1], 'r') as f: a = f.read() with open(sys.argv[2], 'r') as f: ...
30.235294
154
0.63716
7954bd748326eb667db0d4c4fed66ea50c1593cd
282
py
Python
easy_dict/tests/test_05_sets.py
cahoy/NestedDictionary
881f0ea8af36a60fcd1b9d7a84b1aec4cd7072b2
[ "MIT" ]
2
2021-02-13T03:58:59.000Z
2021-09-15T01:02:12.000Z
easy_dict/tests/test_05_sets.py
cahoy/NestedDictionary
881f0ea8af36a60fcd1b9d7a84b1aec4cd7072b2
[ "MIT" ]
1
2017-01-12T00:18:38.000Z
2017-01-12T00:18:38.000Z
easy_dict/tests/test_05_sets.py
cahoy/NestedDictionary
881f0ea8af36a60fcd1b9d7a84b1aec4cd7072b2
[ "MIT" ]
1
2022-02-16T18:28:52.000Z
2022-02-16T18:28:52.000Z
from pytest import fixture import easy_dict as nd @fixture() def n(): return nd.NestedDict() def test_set_pair_deep_keys_with_bracket(n): n['a'] = {} n['a']['b'] = {} n['a']['b']['c'] = 123 n['d'] = None assert n == {'a': {'b': {'c': 123}}, 'd': None}
15.666667
51
0.521277
7954be248a7b1a4e57baaae1e47f3a97a3ed865e
15,056
py
Python
tensorflow_data_validation/utils/display_util.py
aaltay/data-validation
14773d06aa673f7f525d76bb785887e51d920a6f
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/utils/display_util.py
aaltay/data-validation
14773d06aa673f7f525d76bb785887e51d920a6f
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/utils/display_util.py
aaltay/data-validation
14773d06aa673f7f525d76bb785887e51d920a6f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.913043
306
0.702046
7954be49be8fcebfe2882a5a0529d3f5edfc90b7
10,780
py
Python
ryu_enhancements/utils/bgp.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
8
2021-08-25T01:08:09.000Z
2022-01-18T12:44:41.000Z
ryu_enhancements/utils/bgp.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
null
null
null
ryu_enhancements/utils/bgp.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
1
2022-03-13T22:36:18.000Z
2022-03-13T22:36:18.000Z
# Copyright (C) 2014 Nippon Telegraph and Telephone 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 required by appli...
36.053512
81
0.707978
7954bec750e8ec5ae25f7e73efe764ad8fde3b64
858
py
Python
data_utils/pyrnashapes_bp.py
lygztq/ml-proj2
e0c61ae58f61fa04d264008f35fceaac5999708b
[ "WTFPL" ]
2
2018-06-13T06:51:42.000Z
2018-07-01T07:09:28.000Z
data_utils/pyrnashapes_bp.py
lygztq/ml-proj2
e0c61ae58f61fa04d264008f35fceaac5999708b
[ "WTFPL" ]
2
2018-06-11T09:08:23.000Z
2018-07-10T01:53:23.000Z
data_utils/pyrnashapes_bp.py
lygztq/ml-proj2
e0c61ae58f61fa04d264008f35fceaac5999708b
[ "WTFPL" ]
null
null
null
import subprocess # from data_utils.RNA_process import shape2matrix from RNA_process import shape2matrix def rnashapes(rna): result = subprocess.run(['./data_utils/rnashapes', '-O', 'D{$%s}', rna], stdout = subprocess.PIPE) result.check_returncode() result = result.stdout.decode('utf8') result = result...
35.75
310
0.763403
7954bf29a9e2a560d969402c739688ead6e7bb68
685
py
Python
PyOpenGL-3.0.2/OpenGL/raw/GL/EXT/index_func.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/EXT/index_func.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/EXT/index_func.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
'''Autogenerated by get_gl_extensions script, do not edit!''' from OpenGL import platform as _p, constants as _cs, arrays from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_EXT_index_func' def _f( function ): return _p.createFunction( function,_p.GL,'GL_EXT_index_func',False) _p.unpack_constants( """GL_...
34.25
71
0.786861
7954bf59a0755d132e9ab5a4f33593b474c0b330
2,887
py
Python
shreder/__main__.py
mkdirlove/Shreder
785eab317d5d07cc468585ea97a5b0bef74ccddc
[ "MIT" ]
2
2021-07-28T13:21:49.000Z
2021-09-07T12:36:44.000Z
shreder/__main__.py
mkdirlove/Shreder
785eab317d5d07cc468585ea97a5b0bef74ccddc
[ "MIT" ]
null
null
null
shreder/__main__.py
mkdirlove/Shreder
785eab317d5d07cc468585ea97a5b0bef74ccddc
[ "MIT" ]
1
2021-09-22T10:33:56.000Z
2021-09-22T10:33:56.000Z
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2021 EntySec # # 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...
33.183908
111
0.592657
7954bf959964ace9bd15d258958da924b7f659c7
78,499
py
Python
NN_layers/SEResNeXt50.py
Mxbonn/zigzag_fork
250ee5e22904ba846dfb106983d46b83bd9ee230
[ "BSD-3-Clause" ]
34
2020-08-11T14:38:29.000Z
2022-03-30T10:32:34.000Z
NN_layers/SEResNeXt50.py
Mxbonn/zigzag_fork
250ee5e22904ba846dfb106983d46b83bd9ee230
[ "BSD-3-Clause" ]
9
2020-11-16T19:19:48.000Z
2022-03-31T18:29:24.000Z
NN_layers/SEResNeXt50.py
Mxbonn/zigzag_fork
250ee5e22904ba846dfb106983d46b83bd9ee230
[ "BSD-3-Clause" ]
18
2020-08-24T07:26:51.000Z
2022-01-06T00:59:11.000Z
layer_info = \ {1: {'B': 1, 'K': 64, 'C': 3, 'OY': 112, 'OX': 112, 'FY': 7, 'FX': 7, 'SY': 2, 'SX': 2, 'SFY': 1, 'SFX': 1, 'PY': 0, 'PX': 0, 'G': 1}, 2: {'B': 1, 'K': 128, 'C': 64, 'OY': 56, 'OX': 56, 'FY': 1, 'FX': 1, 'SY': 1, 'SX': 1, 'SFY': 1, 'SFX': 1, 'PY': 0, 'PX': 0, 'G': 1}, 3: {'B': 1, 'K': 4, 'C': 4, 'OY':...
134.416096
139
0.340068
7954bf98a489379c82cbc06f1630108eba1dd616
3,089
py
Python
analysis/rank/rank_small_barriers.py
astutespruce/sarp
7ce503380440c47b762ed1a8efd1d3e3aab6605e
[ "MIT" ]
null
null
null
analysis/rank/rank_small_barriers.py
astutespruce/sarp
7ce503380440c47b762ed1a8efd1d3e3aab6605e
[ "MIT" ]
null
null
null
analysis/rank/rank_small_barriers.py
astutespruce/sarp
7ce503380440c47b762ed1a8efd1d3e3aab6605e
[ "MIT" ]
null
null
null
import os from pathlib import Path from time import time import warnings import pandas as pd from analysis.rank.lib.networks import get_network_results from analysis.rank.lib.metrics import ( classify_streamorder, classify_spps, classify_percent_altered, ) from api.constants import SB_API_FIELDS warning...
26.401709
117
0.679508
7954bfa8109e3b1811a508c979c711c085866c19
4,174
py
Python
accounts/views.py
AlenKrga1/FreelanceSolution
0a0d656bd90a20c6250bcc889b35cea2fb945427
[ "BSD-Source-Code" ]
null
null
null
accounts/views.py
AlenKrga1/FreelanceSolution
0a0d656bd90a20c6250bcc889b35cea2fb945427
[ "BSD-Source-Code" ]
7
2021-03-30T14:04:17.000Z
2022-03-12T00:44:39.000Z
accounts/views.py
AlenKrga1/FreelanceSolution
0a0d656bd90a20c6250bcc889b35cea2fb945427
[ "BSD-Source-Code" ]
2
2020-07-30T21:55:06.000Z
2020-10-27T20:53:56.000Z
from django.contrib.auth.mixins import UserPassesTestMixin, AccessMixin from .forms import UserSignInForm, UserRegisterForm, ContactMeForm from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.contrib import messages, auth from django.core.mail import send_m...
27.281046
96
0.705798
7954bfddc76594ba909220df8c36c99ef673b97a
623
py
Python
manage.py
beatitud/beatitud-back
32de6c33ec5d70e35bf76c38bedc73c5b2c3e719
[ "MIT" ]
null
null
null
manage.py
beatitud/beatitud-back
32de6c33ec5d70e35bf76c38bedc73c5b2c3e719
[ "MIT" ]
null
null
null
manage.py
beatitud/beatitud-back
32de6c33ec5d70e35bf76c38bedc73c5b2c3e719
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': # If DJANGO_SETTINGS_MODULE not given, then we take local settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'beatitud_back.settings.local') try: from django.core.management import execute_from_command_line except Impor...
34.611111
83
0.699839
7954c1502740dcda284eba261caaf970ae84d8e9
1,563
py
Python
tests/incident_cost/test_incident_cost_service.py
ymatsiuk/dispatch
cfc0b238f980d9f8140294dd50a5527ca4e1cdb8
[ "Apache-2.0" ]
null
null
null
tests/incident_cost/test_incident_cost_service.py
ymatsiuk/dispatch
cfc0b238f980d9f8140294dd50a5527ca4e1cdb8
[ "Apache-2.0" ]
null
null
null
tests/incident_cost/test_incident_cost_service.py
ymatsiuk/dispatch
cfc0b238f980d9f8140294dd50a5527ca4e1cdb8
[ "Apache-2.0" ]
null
null
null
import pytest def test_get(session, incident_cost): from dispatch.incident_cost.service import get t_incident_cost = get(db_session=session, incident_cost_id=incident_cost.id) assert t_incident_cost.id == incident_cost.id def test_get_all(session, incident_costs): from dispatch.incident_cost.servic...
28.944444
90
0.768394
7954c1dc08de57562893ae47aa2a48d221e16793
1,090
py
Python
itests/test_blocking.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
86
2016-07-04T13:26:02.000Z
2022-02-19T10:26:21.000Z
itests/test_blocking.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
10
2016-09-30T18:55:41.000Z
2020-05-01T14:22:47.000Z
itests/test_blocking.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
45
2016-09-30T18:48:41.000Z
2022-03-18T21:39:33.000Z
import unittest from slixmpp import JID from slixmpp.test.integration import SlixIntegration class TestBlocking(SlixIntegration): async def asyncSetUp(self): await super().asyncSetUp() self.add_client( self.envjid('CI_ACCOUNT1'), self.envstr('CI_ACCOUNT1_PASSWORD'), ...
33.030303
68
0.629358
7954c3fb7fb0de00bc46aec0d1c40b206a93d411
44,755
py
Python
bin/ADFRsuite/lib/python2.7/site-packages/Bio/SeqIO/_index.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
Bio/SeqIO/_index.py
OpenSourceCancer/biopython
5245222e4de976bbfeb17e72ea0cde66c8da604d
[ "PostgreSQL" ]
null
null
null
Bio/SeqIO/_index.py
OpenSourceCancer/biopython
5245222e4de976bbfeb17e72ea0cde66c8da604d
[ "PostgreSQL" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
# Copyright 2009-2011 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Dictionary like indexing of sequence files (PRIVATE). You are not expected to access this...
41.710158
116
0.554396
7954c4e00a057f68f0ffefad12f42616bf1cc3e4
10,559
py
Python
services/traction/bdd-tests/features/steps/credential_templates.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/bdd-tests/features/steps/credential_templates.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/bdd-tests/features/steps/credential_templates.py
bcgov/traction
90cec4f1aebccd68eb986cb89dfae5819a07a2ee
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
import json import time from behave import * from starlette import status from v1_api import * @then( 'wait {timeout:d} seconds until "{tenant}" can create credential template for "{name}"' ) def step_impl( context, timeout: int, tenant: str, name: str, ): schema_template = context.config.us...
36.285223
91
0.677053
7954c5017caa2553016030dcfd75a243e1c23592
6,347
py
Python
async_retriever/print_versions.py
cheginit/async_retriever
ee90b7cc0b56664b46ec4723723ed52a346165e3
[ "MIT" ]
1
2022-03-07T23:40:48.000Z
2022-03-07T23:40:48.000Z
async_retriever/print_versions.py
cheginit/async_retriever
ee90b7cc0b56664b46ec4723723ed52a346165e3
[ "MIT" ]
30
2021-05-12T06:23:21.000Z
2022-03-22T08:14:41.000Z
async_retriever/print_versions.py
cheginit/async_retriever
ee90b7cc0b56664b46ec4723723ed52a346165e3
[ "MIT" ]
null
null
null
"""Utility functions for printing version information. The original script is from `xarray <https://github.com/pydata/xarray/blob/master/xarray/util/print_versions.py>`__ """ import importlib import locale import os import platform import struct import subprocess import sys from types import ModuleType from typing imp...
33.582011
87
0.587679
7954c5a2082e0c55c3b0ecc89bb16db04c0bd912
6,681
py
Python
bindings/python/ensmallen_graph/datasets/string/hyperthermusbutylicus.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/hyperthermusbutylicus.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/hyperthermusbutylicus.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Hyperthermus butylicus. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021...
35.349206
223
0.703488
7954c5aa04cecfe82f11661190356497e83ee323
23,842
py
Python
lib/modeling/model_builder.py
mbajaj01/seg_every_thing
2593487754daf625a951f1e417f6389a211bd004
[ "Apache-2.0" ]
429
2018-04-28T00:01:57.000Z
2021-12-18T12:53:22.000Z
lib/modeling/model_builder.py
mbajaj01/seg_every_thing
2593487754daf625a951f1e417f6389a211bd004
[ "Apache-2.0" ]
13
2018-07-20T03:07:12.000Z
2022-02-20T10:26:20.000Z
lib/modeling/model_builder.py
mbajaj01/seg_every_thing
2593487754daf625a951f1e417f6389a211bd004
[ "Apache-2.0" ]
82
2018-04-28T06:15:53.000Z
2022-02-17T04:16:21.000Z
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
35.061765
80
0.656824
7954c5cf95226d8c0b37dfdb0462536c44cdad48
1,318
py
Python
lib/rucio/db/sqla/migrate_repo/versions/b818052fa670_add_index_to_quarantined_replicas.py
efajardo/rucio
460f394715568b937584ef671382b2b93add1758
[ "Apache-2.0" ]
1
2019-03-04T09:09:42.000Z
2019-03-04T09:09:42.000Z
lib/rucio/db/sqla/migrate_repo/versions/b818052fa670_add_index_to_quarantined_replicas.py
pujanm/rucio
355a997a5ea213c427a5d841ab151ceb01073eb4
[ "Apache-2.0" ]
null
null
null
lib/rucio/db/sqla/migrate_repo/versions/b818052fa670_add_index_to_quarantined_replicas.py
pujanm/rucio
355a997a5ea213c427a5d841ab151ceb01073eb4
[ "Apache-2.0" ]
1
2021-06-17T14:15:15.000Z
2021-06-17T14:15:15.000Z
# Copyright 2013-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
29.954545
106
0.738998
7954c5ea132e9d1c02047a616998066f446cf1b1
24,774
py
Python
glance_store/openstack/common/log.py
citrix-openstack-build/glance_store
475d144cfe2a3fb5fc49dd0ad0a95fa90790f5b7
[ "Apache-2.0" ]
null
null
null
glance_store/openstack/common/log.py
citrix-openstack-build/glance_store
475d144cfe2a3fb5fc49dd0ad0a95fa90790f5b7
[ "Apache-2.0" ]
null
null
null
glance_store/openstack/common/log.py
citrix-openstack-build/glance_store
475d144cfe2a3fb5fc49dd0ad0a95fa90790f5b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance w...
36.378855
81
0.609994
7954c6b156e9cabb190323fbbf260fce556e24cb
13,200
py
Python
Tests/test_edgecase.py
CarlGroth/TagScript
14f0417a3f9a82b04c28c29570686260048de6ac
[ "CC-BY-4.0" ]
3
2019-09-26T18:23:02.000Z
2021-05-21T20:16:14.000Z
Tests/test_edgecase.py
CarlGroth/TagScript
14f0417a3f9a82b04c28c29570686260048de6ac
[ "CC-BY-4.0" ]
null
null
null
Tests/test_edgecase.py
CarlGroth/TagScript
14f0417a3f9a82b04c28c29570686260048de6ac
[ "CC-BY-4.0" ]
2
2020-06-19T11:19:42.000Z
2021-09-27T05:10:11.000Z
from ..TagScriptEngine import Verb, Interpreter, adapter, block, interface, WorkloadExceededError import unittest # Required third party blocks. class ReplaceBlock(interface.Block): def will_accept(self, ctx : Interpreter.Context): dec = ctx.verb.declaration.lower() return any([dec=="replace"]) ...
68.041237
497
0.580833
7954c6cfb28b70ed897cc19c86f20fb3b08bb9e5
6,389
py
Python
ducky/devices/keyboard.py
happz/ducky
1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad
[ "MIT" ]
3
2015-04-25T18:25:37.000Z
2017-08-31T20:52:29.000Z
ducky/devices/keyboard.py
happz/ducky-legacy
1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad
[ "MIT" ]
27
2015-01-06T21:59:22.000Z
2016-11-12T07:31:39.000Z
ducky/devices/keyboard.py
happz/ducky-legacy
1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad
[ "MIT" ]
1
2017-05-14T18:52:34.000Z
2017-05-14T18:52:34.000Z
""" Keyboard controller - provides events for pressed and released keys. """ import enum import io from collections import deque from . import DeviceFrontend, DeviceBackend, MMIOMemoryPage from ..errors import InvalidResourceError from ..mm import UINT8_FMT, addr_to_page, UINT32_FMT, u32_t from ..hdt import HDTEntry...
28.522321
131
0.702301
7954c7d42d1b96cfa7333e265176f992cd814610
2,909
py
Python
fastestimator/util/data.py
TortoiseHam/fastestimator
97b9fe134a8b5cc3cf21e84c782d1149eecfa3cc
[ "Apache-2.0" ]
1
2019-10-03T00:40:12.000Z
2019-10-03T00:40:12.000Z
fastestimator/util/data.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
null
null
null
fastestimator/util/data.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
40.402778
120
0.648677