hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c1dc89cefecc64ea21e3ae057486e59c08fdbc37
3,999
py
Python
zerver/webhooks/gogs/view.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
1
2019-10-01T14:04:07.000Z
2019-10-01T14:04:07.000Z
zerver/webhooks/gogs/view.py
991rajat/zulip
648a60baf63f9afade83148bd9ae1fc480510178
[ "Apache-2.0" ]
4
2020-06-06T00:51:42.000Z
2022-02-10T21:38:40.000Z
zerver/webhooks/gogs/view.py
991rajat/zulip
648a60baf63f9afade83148bd9ae1fc480510178
[ "Apache-2.0" ]
1
2020-01-06T15:12:36.000Z
2020-01-06T15:12:36.000Z
# -*- coding: utf-8 -*- # vim:fenc=utf-8 from typing import Any, Dict, Optional from django.http import HttpRequest, HttpResponse from zerver.decorator import api_key_only_webhook_view from zerver.lib.request import REQ, has_request_variables from zerver.lib.response import json_success from zerver.lib.webhooks.commo...
37.373832
101
0.653163
0ab22662bd3300b595b3c2cf036579e35200f2d0
544
py
Python
froide/campaign/migrations/0006_auto_20190826_1451.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
198
2016-12-03T22:42:55.000Z
2022-03-25T15:08:36.000Z
froide/campaign/migrations/0006_auto_20190826_1451.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
264
2016-11-30T18:53:17.000Z
2022-03-17T11:34:18.000Z
froide/campaign/migrations/0006_auto_20190826_1451.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
42
2016-12-22T04:08:27.000Z
2022-02-26T08:30:38.000Z
# Generated by Django 2.1.11 on 2019-08-26 12:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("campaign", "0005_campaign_group"), ] operations = [ migrations.AddField( model_name="campaign", name="request_hint"...
22.666667
48
0.577206
098429470f168122a47b880313de231b6b9ead81
6,760
py
Python
code.py
arcsinY/DM_Project2
1775f1890a59d92aaed0d5ed08588712e659aeaf
[ "Apache-2.0" ]
2
2021-06-07T02:22:47.000Z
2021-09-02T08:06:54.000Z
code.py
arcsinY/DM_Project2
1775f1890a59d92aaed0d5ed08588712e659aeaf
[ "Apache-2.0" ]
null
null
null
code.py
arcsinY/DM_Project2
1775f1890a59d92aaed0d5ed08588712e659aeaf
[ "Apache-2.0" ]
null
null
null
import pandas as pd import orangecontrib.associate.fpgrowth as oaf import json as js import matplotlib.pyplot as plt import seaborn as sns data = pd.read_csv('USvideos.csv', sep = ',') # 转化category_id with open('US_category_id.json') as f: json_date = js.load(f) f.close() id2cat = {} for i in range...
28.888889
183
0.522929
086157de2e4ae5eda2e9d15175dee84010a61cb3
628
py
Python
manage.py
chelocool/orbinweb
b52b12f335c076c8cf1f80d462d911f7c48c91f1
[ "Apache-2.0" ]
null
null
null
manage.py
chelocool/orbinweb
b52b12f335c076c8cf1f80d462d911f7c48c91f1
[ "Apache-2.0" ]
null
null
null
manage.py
chelocool/orbinweb
b52b12f335c076c8cf1f80d462d911f7c48c91f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'OrbinWeb.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
28.545455
73
0.683121
495fa8b63cd6af479192db1f7d66a4f405bee29f
3,420
py
Python
ibis/pandas/execution/temporal.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/pandas/execution/temporal.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/pandas/execution/temporal.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
import six import datetime import numpy as np import pandas as pd import ibis.expr.operations as ops from ibis.pandas.dispatch import execute_node from ibis.pandas.core import numeric_types @execute_node.register(ops.Strftime, pd.Timestamp, six.string_types) def execute_strftime_timestamp_str(op, data, format_string...
27.804878
76
0.726608
9a2d387a2b3ae45e27bd138677e8b7e67c7398cf
2,447
py
Python
avm_client/models/wall_insulation.py
ENBISYS/avmPython
daa3686ea431e752687c915e2f5b6f65b6c77130
[ "Unlicense" ]
null
null
null
avm_client/models/wall_insulation.py
ENBISYS/avmPython
daa3686ea431e752687c915e2f5b6f65b6c77130
[ "Unlicense" ]
null
null
null
avm_client/models/wall_insulation.py
ENBISYS/avmPython
daa3686ea431e752687c915e2f5b6f65b6c77130
[ "Unlicense" ]
null
null
null
# coding: utf-8 """ AVM This is api for AVM (automated valuation machine) # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: info@enbisys.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class WallInsulation(object): """...
26.031915
74
0.549244
deb3f7752649b74277824ee2117cfa1c06a52797
3,475
py
Python
management/serializer.py
tonythomas01/quarantine_backend
dea1c8a4838954fca531ae9c1c7763fc1d1a4fd8
[ "MIT" ]
3
2020-05-20T14:07:57.000Z
2020-12-18T22:01:59.000Z
management/serializer.py
tonythomas01/quarantine_backend
dea1c8a4838954fca531ae9c1c7763fc1d1a4fd8
[ "MIT" ]
22
2020-04-04T11:23:22.000Z
2021-12-13T20:37:18.000Z
management/serializer.py
Quarantine-Help/quarantined_backend
3cab95d0716bb914f8005075674aa7bbdccfdae4
[ "MIT" ]
2
2020-04-04T15:02:57.000Z
2020-05-02T18:10:41.000Z
from rest_framework import fields, serializers from rest_framework.serializers import ModelSerializer from authentication.serializer import ( UserSerializer, ParticipantSerializer, ParticipantAnonymizedSerializer, ) from crisis.models.crisis_request import Request from crisis.models.request_assignment impo...
32.783019
88
0.637698
28545b5de3dc843010b0c429623358c6cc38e6cf
41,479
py
Python
tests/unit/test_loader.py
johnj/salt
b23656fa5ee24047c43ac702d6796a700570f749
[ "Apache-2.0" ]
5
2017-02-07T05:39:29.000Z
2020-06-13T02:07:33.000Z
tests/unit/test_loader.py
johnj/salt
b23656fa5ee24047c43ac702d6796a700570f749
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
tests/unit/test_loader.py
johnj/salt
b23656fa5ee24047c43ac702d6796a700570f749
[ "Apache-2.0" ]
11
2017-01-26T19:36:29.000Z
2021-12-11T07:54:16.000Z
# -*- coding: utf-8 -*- ''' unit.loader ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Test Salt's loader ''' # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import collections import compileall import copy import imp import inspect import logging import os import shutil impo...
32.66063
109
0.611587
564368bc3177eaef7dacff296611ee7e3a02cd2e
6,136
py
Python
Chimera/python3_scripts/test_dds_ramp.py
zzpwahaha/Chimera-Control-Trim
df1bbf6bea0b87b8c7c9a99dce213fdc249118f2
[ "MIT" ]
null
null
null
Chimera/python3_scripts/test_dds_ramp.py
zzpwahaha/Chimera-Control-Trim
df1bbf6bea0b87b8c7c9a99dce213fdc249118f2
[ "MIT" ]
null
null
null
Chimera/python3_scripts/test_dds_ramp.py
zzpwahaha/Chimera-Control-Trim
df1bbf6bea0b87b8c7c9a99dce213fdc249118f2
[ "MIT" ]
null
null
null
from axis_fifo import AXIS_FIFO from devices import fifo_devices from axi_gpio import AXI_GPIO from devices import gpio_devices from dac81416 import DAC81416 from ad9959 import AD9959 import struct import math from dds_lock_pll import writeToDDS from getSeqGPIOWords import getSeqGPIOWords class GPIO_seq_point: de...
36.963855
146
0.704205
fad23d784eb4b4f941e0451e5bbe922f12c23094
30,800
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/operations/_service_endpoint_policies_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/operations/_service_endpoint_policies_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/operations/_service_endpoint_policies_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50
214
0.670097
c4c1e2de7cbb47de7bb5f3c568afdd543bfd21d3
1,359
py
Python
rlbench/action_modes/action_mode.py
guhur/RLBench
e267f9eb036390109b24d9ace0b032407ac7f29d
[ "BSD-3-Clause" ]
null
null
null
rlbench/action_modes/action_mode.py
guhur/RLBench
e267f9eb036390109b24d9ace0b032407ac7f29d
[ "BSD-3-Clause" ]
null
null
null
rlbench/action_modes/action_mode.py
guhur/RLBench
e267f9eb036390109b24d9ace0b032407ac7f29d
[ "BSD-3-Clause" ]
null
null
null
from abc import abstractmethod import numpy as np from rlbench.action_modes.arm_action_modes import ArmActionMode from rlbench.action_modes.gripper_action_modes import GripperActionMode from rlbench.backend.scene import Scene class ActionMode(object): def __init__(self, arm_action_mode: 'ArmAc...
32.357143
75
0.710817
d347723fa1401388e12e1942276240d7da3e31b9
210
py
Python
Q04/Q04.2.py
edisalvo/patterns
a56a49289c3a7de87713afc8923f44a229037dd1
[ "MIT" ]
8
2021-01-14T14:55:40.000Z
2021-03-01T13:55:56.000Z
Q04/Q04.2.py
edisalvo/patterns
a56a49289c3a7de87713afc8923f44a229037dd1
[ "MIT" ]
17
2021-01-12T15:42:16.000Z
2021-03-04T06:44:55.000Z
Q04/Q04.2.py
edisalvo/patterns
a56a49289c3a7de87713afc8923f44a229037dd1
[ "MIT" ]
22
2021-01-13T00:00:02.000Z
2021-03-22T18:54:11.000Z
def pattern(n): for i in range(n): j=n k=0 while j>i+1: print(" ",end='') j-=1 while k<i+1: print("*",end='') k+=1 print() print("give input for pattern") n=int(input()) pattern(n)
10
31
0.519048
c1eb220859aa5be4255e4c60d0eba6d4db5a30d0
120
py
Python
agent/lib/supervisor/__init__.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
2
2016-05-02T14:16:07.000Z
2020-06-25T19:24:29.000Z
agent/lib/supervisor/__init__.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
null
null
null
agent/lib/supervisor/__init__.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
1
2020-06-25T19:24:31.000Z
2020-06-25T19:24:31.000Z
""" This package contains functionality that manages the job queue and the workers """ __author__ = 'Nicklas Börjesson'
24
78
0.775
5646b1aa082a0ae18c79651f5ae017bb9edc1152
4,040
py
Python
datalad/interface/tests/test_docs.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
null
null
null
datalad/interface/tests/test_docs.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
6
2015-11-20T21:41:13.000Z
2018-06-12T14:27:32.000Z
datalad/interface/tests/test_docs.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
1
2017-03-28T14:44:16.000Z
2017-03-28T14:44:16.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
32.063492
100
0.659653
c85dd3ec6991d3f04dd19e64440042b2d4ea4667
7,631
py
Python
flax/plotters/madmax.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
174
2021-06-16T17:49:22.000Z
2022-03-17T03:03:17.000Z
flax/plotters/madmax.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
49
2021-06-17T14:10:53.000Z
2022-01-31T11:04:21.000Z
flax/plotters/madmax.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
80
2021-06-17T14:23:31.000Z
2022-02-24T05:52:47.000Z
import asyncio import traceback import os import logging import sys from pathlib import Path from typing import Any, Dict, Optional from flax.plotting.create_plots import resolve_plot_keys from flax.plotters.plotters_util import run_plotter, run_command log = logging.getLogger(__name__) MADMAX_PLOTTER_DIR = "madmax...
33.178261
100
0.58721
d12b94978214bc265e37e6a9639e7d187a16534f
343
py
Python
security-bijective-functions.py
shreyakupadhyay/Hacks-py
d779e6eeca0a42dab68e599c1e48143338662a28
[ "MIT" ]
11
2015-07-12T09:06:58.000Z
2020-09-16T06:35:39.000Z
security-bijective-functions.py
shreyakupadhyay/Hacks-py
d779e6eeca0a42dab68e599c1e48143338662a28
[ "MIT" ]
null
null
null
security-bijective-functions.py
shreyakupadhyay/Hacks-py
d779e6eeca0a42dab68e599c1e48143338662a28
[ "MIT" ]
6
2017-06-07T01:16:39.000Z
2020-04-30T21:42:21.000Z
# Enter your code here. Read input from STDIN. Print output to STDOUT a=int(raw_input()) arr = [int(i) for i in raw_input().strip().split()] array=sorted(arr) c=1 for i in range(0,len(arr)): if(array[i]==i+1): continue else: c=0 break if(c==0): print "NO" if(c==1): ...
16.333333
69
0.539359
2e969d11dcc683a40bf712de2801712b773bf1c1
1,566
py
Python
scripts/metrics.py
manas-avi/detection-2016-nipsws
b25669dbf1c5d3d1a79638f928c989aca1c32622
[ "MIT" ]
null
null
null
scripts/metrics.py
manas-avi/detection-2016-nipsws
b25669dbf1c5d3d1a79638f928c989aca1c32622
[ "MIT" ]
null
null
null
scripts/metrics.py
manas-avi/detection-2016-nipsws
b25669dbf1c5d3d1a79638f928c989aca1c32622
[ "MIT" ]
2
2018-12-02T08:39:24.000Z
2018-12-08T15:55:54.000Z
import numpy as np import cv2 import pdb import matplotlib.pyplot as plt def dimg(img): plt.imshow(img) plt.show() def calculate_iou(img_mask, gt_mask): gt_mask *= 1.0 img_mask *= 1.0 img_and = cv2.bitwise_and(img_mask, gt_mask) img_or = cv2.bitwise_or(img_mask, gt_mask) j = np.count_no...
27.473684
66
0.676884
12414801a524ec97eaa59cedddb7659e2c56ad33
8,343
py
Python
tests/components/media_player/test_async_helpers.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
tests/components/media_player/test_async_helpers.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
tests/components/media_player/test_async_helpers.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""The tests for the Async Media player helper functions.""" import asyncio import unittest import homeassistant.components.media_player as mp from homeassistant.const import ( STATE_IDLE, STATE_OFF, STATE_ON, STATE_PAUSED, STATE_PLAYING, ) from tests.common import get_test_home_assistant class ...
32.088462
67
0.627472
3122030b8107f629f26470fa4bcbd229fbb77f9c
9,019
py
Python
userFunc/myFunction.py
pchaos/quanttesting
98331670547e8a45ba93b49f3e9c660495645114
[ "MIT" ]
5
2020-04-08T14:14:05.000Z
2021-06-29T03:42:01.000Z
userFunc/myFunction.py
pchaos/quanttesting
98331670547e8a45ba93b49f3e9c660495645114
[ "MIT" ]
null
null
null
userFunc/myFunction.py
pchaos/quanttesting
98331670547e8a45ba93b49f3e9c660495645114
[ "MIT" ]
7
2020-04-15T15:07:39.000Z
2022-03-23T05:44:02.000Z
# -*- coding: utf-8 -*- import bz2 import pickle try: # 在python3.x上已从cPickle更改cPickle为_pickle import _pickle as cPickle except ImportError: import cpickle as cPickle import os import numpy as np import pandas as pd import QUANTAXIS as qa from QUANTAXIS.QAUtil.QACache import QA_util_cache as qacache def s...
27.922601
122
0.598625
29bb92bd9913967d580149ba14cbcf1269bb8414
9,007
py
Python
document_worker/templates/steps.py
ds-wizard/document-worker
09b1f1c29b47d8bd504aea86d0b5cff1a3bbb01b
[ "Apache-2.0" ]
2
2021-04-23T19:28:10.000Z
2021-04-27T05:30:07.000Z
document_worker/templates/steps.py
ds-wizard/document-worker
09b1f1c29b47d8bd504aea86d0b5cff1a3bbb01b
[ "Apache-2.0" ]
9
2021-04-07T16:48:34.000Z
2022-02-21T15:48:31.000Z
document_worker/templates/steps.py
ds-wizard/document-worker
09b1f1c29b47d8bd504aea86d0b5cff1a3bbb01b
[ "Apache-2.0" ]
6
2020-03-09T07:44:01.000Z
2020-12-02T18:26:37.000Z
import jinja2 # type: ignore import jinja2.exceptions # type: ignore import json from typing import Optional from document_worker.consts import DEFAULT_ENCODING from document_worker.context import Context from document_worker.conversions import Pandoc, WkHtmlToPdf, RdfLibConvert from document_worker.documents impor...
35.46063
104
0.661819
fb8a38d061f84ba12c33ad6178614316f8236b39
5,056
py
Python
c_01_intro_to_CV_and_Python/NumPy_tutorial.py
keissar3/AI_is_Math
ab82d37f23d9c87cc4dcdfbcbc04a127d8ca3408
[ "MIT" ]
null
null
null
c_01_intro_to_CV_and_Python/NumPy_tutorial.py
keissar3/AI_is_Math
ab82d37f23d9c87cc4dcdfbcbc04a127d8ca3408
[ "MIT" ]
null
null
null
c_01_intro_to_CV_and_Python/NumPy_tutorial.py
keissar3/AI_is_Math
ab82d37f23d9c87cc4dcdfbcbc04a127d8ca3408
[ "MIT" ]
null
null
null
# %% [markdown] # #Python Workshop: NumPy # [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YoniChechik/AI_is_Math/blob/master/c_01_intro_to_CV_and_Python/NumPy_tutorial.ipynb) # # <hr> # # Based on: # # This [git](https://github.com/zhiyzuo/python-t...
18.385455
232
0.645174
a713fb8f5ad2f478cad25cd8c2d1c9b1d50e5b47
274
py
Python
authors/apps/articles/exceptions.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
2
2018-08-17T15:47:36.000Z
2018-09-13T13:58:34.000Z
authors/apps/articles/exceptions.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
35
2018-07-24T11:42:53.000Z
2021-06-10T20:34:41.000Z
authors/apps/articles/exceptions.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
3
2018-07-17T13:05:35.000Z
2018-09-06T16:03:52.000Z
from rest_framework.exceptions import APIException class ArticlesNotExist(APIException): status_code = 400 default_detail = 'you have no articles' class NoResultsMatch(APIException): status_code = 400 default_detail = 'results matching search not found'
22.833333
56
0.773723
9732b60de28d488edad208ea773e608070c5100a
409
py
Python
tests/test_helpers.py
BenTopping/baracoda
873504c678d925a8174b7d76b26f540c149c9e17
[ "MIT" ]
null
null
null
tests/test_helpers.py
BenTopping/baracoda
873504c678d925a8174b7d76b26f540c149c9e17
[ "MIT" ]
1
2021-03-04T15:01:24.000Z
2021-03-04T15:01:24.000Z
tests/test_helpers.py
BenTopping/baracoda
873504c678d925a8174b7d76b26f540c149c9e17
[ "MIT" ]
null
null
null
from baracoda.helpers import get_prefix_item def test_correct_prefix_item_is_returned(app, prefixes): with app.app_context(): prefix_item = get_prefix_item("LEED") assert prefix_item == {"prefix": "LEED", "sequence_name": "heron", "convert": True} def test_none_is_returned_for_invalid_prefix(app): with ap...
37.181818
87
0.760391
caa22032a4d0211121c6d945a0b050b76960e7d3
1,590
py
Python
backend/cw_backend/courses/helpers.py
Zuzanita/pyladies-courseware
0161a26ae318a919025fe6a2205c5948d151be37
[ "MIT" ]
null
null
null
backend/cw_backend/courses/helpers.py
Zuzanita/pyladies-courseware
0161a26ae318a919025fe6a2205c5948d151be37
[ "MIT" ]
null
null
null
backend/cw_backend/courses/helpers.py
Zuzanita/pyladies-courseware
0161a26ae318a919025fe6a2205c5948d151be37
[ "MIT" ]
null
null
null
from datetime import date import re class DataProperty: ''' Example: class C: def __init__(self): self.data = {'foo': 'bar'} foo = DataProperty('foo') # Now you can access C().data['foo'] via C().foo C().foo == 'bar' C().foo = 'baz' ...
24.84375
76
0.543396
fac5f2a684a0983d8ba26b4d90120d9e0879cf1d
3,112
py
Python
metrics/extract_tfms.py
edhowler/qmMath
aee6e6eecf667cb97cc825ba728d72cd3417ffc4
[ "MIT" ]
1
2017-09-06T02:49:13.000Z
2017-09-06T02:49:13.000Z
metrics/extract_tfms.py
sophiebits/KaTeX
1da8c8938bfb02ae049b92483fc317f68394e5fe
[ "MIT" ]
null
null
null
metrics/extract_tfms.py
sophiebits/KaTeX
1da8c8938bfb02ae049b92483fc317f68394e5fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python import collections import json import parse_tfm import subprocess import sys def find_font_path(font_name): try: font_path = subprocess.check_output(['kpsewhich', font_name]) except OSError: raise RuntimeError("Couldn't find kpsewhich program, make sure you" + ...
29.084112
81
0.546915
3bfd761fb1ef937fe388f79a0eab4c9dc0408ae0
10,371
py
Python
test/functional/rpc_listtransactions.py
XcelRProject/XcelR
991f0ca8b60078d5b8fe95c122fff0e95275009b
[ "MIT" ]
null
null
null
test/functional/rpc_listtransactions.py
XcelRProject/XcelR
991f0ca8b60078d5b8fe95c122fff0e95275009b
[ "MIT" ]
null
null
null
test/functional/rpc_listtransactions.py
XcelRProject/XcelR
991f0ca8b60078d5b8fe95c122fff0e95275009b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listtransactions API.""" from test_framework.test_framework import BitcoinTestFramework from ...
51.08867
113
0.600617
53a647a8e06abc47f22b7aa448176be17e775353
3,664
py
Python
flatpak_indexer/models.py
owtaylor/flatpak-indexer
6d4227677d2ff1a60735ecbaa10b241336f4b55b
[ "MIT" ]
6
2021-03-29T09:01:51.000Z
2021-11-29T15:28:13.000Z
flatpak_indexer/models.py
owtaylor/flatpak-indexer
6d4227677d2ff1a60735ecbaa10b241336f4b55b
[ "MIT" ]
4
2020-09-14T15:55:11.000Z
2022-01-06T15:56:26.000Z
flatpak_indexer/models.py
owtaylor/flatpak-indexer
6d4227677d2ff1a60735ecbaa10b241336f4b55b
[ "MIT" ]
1
2021-08-30T10:17:16.000Z
2021-08-30T10:17:16.000Z
from datetime import datetime from functools import cached_property from typing import Any, Dict, List, Optional from .json_model import BaseModel, field from .utils import parse_pull_spec class TagHistoryItemModel(BaseModel): architecture: str date: datetime digest: str class TagHistoryModel(BaseModel...
24.264901
84
0.682587
28878225da61a435d0a7d49dbd5449df09f7a68f
10,418
py
Python
anaconda_project/test/test_project_lock_file.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
anaconda_project/test/test_project_lock_file.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
anaconda_project/test/test_project_lock_file.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016, Anaconda, Inc. All rights reserved. # # Licensed under the terms of the BSD 3-Clause License. # The full license is in the file LICENSE.txt, distributed with this software. # -------------------...
34.611296
105
0.668362
e71ab575a47c483b76b6246e03cdc69757741f3c
924
py
Python
apps/platforms/linux/terminal.py
joshpearce/knausj_talon
44c49806c6e53b2e5fe90fc24fd06a1fc5125883
[ "MIT" ]
1
2020-11-13T18:02:12.000Z
2020-11-13T18:02:12.000Z
apps/platforms/linux/terminal.py
joshpearce/knausj_talon
44c49806c6e53b2e5fe90fc24fd06a1fc5125883
[ "MIT" ]
null
null
null
apps/platforms/linux/terminal.py
joshpearce/knausj_talon
44c49806c6e53b2e5fe90fc24fd06a1fc5125883
[ "MIT" ]
null
null
null
from talon import Context, actions ctx = Context() ctx.matches = r""" os: linux tag: terminal """ @ctx.action_class('edit') class EditActions: #todo: generic tab commands #tag(): tabs def page_down(): actions.key('shift-pagedown') def page_up(): actions.key('shift-pageup') def paste...
23.692308
37
0.598485
f3801e8ac51568f506874febf9c27aee04d6df03
337
py
Python
src/meetings/templatetags/letter_tag.py
ofirr/OpenCommunity
7786ac2996530af8f545f4398c071793c73634c8
[ "BSD-3-Clause" ]
1
2015-05-12T17:59:35.000Z
2015-05-12T17:59:35.000Z
src/meetings/templatetags/letter_tag.py
Niros/OpenCommunity
4c91136db6243a1cd65b55ecf5a44c2bce24a45a
[ "BSD-3-Clause" ]
null
null
null
src/meetings/templatetags/letter_tag.py
Niros/OpenCommunity
4c91136db6243a1cd65b55ecf5a44c2bce24a45a
[ "BSD-3-Clause" ]
null
null
null
from django import template from django.utils.translation import ugettext_lazy as _ LETTERS = [_("a"), _("b"), _("c"), _("d"), _("e"), _("f"), _("g"), _("h"), _("i"), _("j")] register = template.Library() @register.filter def to_char(value): if value > len(LETTERS): return value return LE...
22.466667
55
0.587537
10106ffc4e4db622eaab2a471d59e8165c72f8c7
3,258
py
Python
tests/test_R14.py
drunsinn/pyXSteam
8d1f178fa59ee99b269fd1d3b88d5cf4b8ad74af
[ "BSD-3-Clause" ]
27
2015-03-14T09:24:41.000Z
2022-03-19T16:39:48.000Z
tests/test_R14.py
drunsinn/pyXSteam
8d1f178fa59ee99b269fd1d3b88d5cf4b8ad74af
[ "BSD-3-Clause" ]
6
2017-10-11T15:13:02.000Z
2021-03-24T08:05:51.000Z
tests/test_R14.py
drunsinn/pyXSteam
8d1f178fa59ee99b269fd1d3b88d5cf4b8ad74af
[ "BSD-3-Clause" ]
13
2017-10-11T08:07:06.000Z
2021-07-25T01:28:46.000Z
# -*- coding: utf-8 -*- import unittest from pyXSteam import IAPWS_R14 class R14_FunctionTester(unittest.TestCase): def setUp(self): self.maxError = 1E-6 self.maxError_ice_III = 0.003 self.maxError_ice_V = 0.003 self.maxError_ice_VI = 0.003 self.maxError_ice_VII = 0.007 ...
51.714286
164
0.694291
4b0ef688d72f3ff129c8e6de1afe6222c0b1fa26
14,885
py
Python
tests/execution/test_union_interface.py
corydolphin/graphql-core
cc303671559822d9c3991e04fee170dce0f23553
[ "MIT" ]
1
2021-07-27T20:47:34.000Z
2021-07-27T20:47:34.000Z
tests/execution/test_union_interface.py
vpetrovykh/graphql-core
7af97e22afb27861fc1b7d7ca0292095f8427ecb
[ "MIT" ]
null
null
null
tests/execution/test_union_interface.py
vpetrovykh/graphql-core
7af97e22afb27861fc1b7d7ca0292095f8427ecb
[ "MIT" ]
null
null
null
from typing import Optional, Union, List from graphql.execution import execute_sync from graphql.language import parse from graphql.type import ( GraphQLBoolean, GraphQLField, GraphQLInterfaceType, GraphQLList, GraphQLObjectType, GraphQLSchema, GraphQLString, GraphQLUnionType, ) class...
28.032015
85
0.420961
8067862deaa2622ae7ba96e5b83fa72517582d2b
1,061
py
Python
libpaste/management/commands/cleanup_snippets.py
rbarrois/xelpaste
54ca4a60169245fb01b3b2ddae9473a706ea6ec1
[ "MIT" ]
null
null
null
libpaste/management/commands/cleanup_snippets.py
rbarrois/xelpaste
54ca4a60169245fb01b3b2ddae9473a706ea6ec1
[ "MIT" ]
null
null
null
libpaste/management/commands/cleanup_snippets.py
rbarrois/xelpaste
54ca4a60169245fb01b3b2ddae9473a706ea6ec1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import argparse from django.utils import timezone from django.core.management.base import BaseCommand from ...models import Snippet class Command(BaseCommand): help = "Purges snippets that are expired" def add_arguments(self, parser): ...
30.314286
87
0.625825
542b1e7ead17adb7e295a15a58f45f995c7ab440
7,858
py
Python
plaso/parsers/mac_appfirewall.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
plaso/parsers/mac_appfirewall.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
plaso/parsers/mac_appfirewall.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """This file contains a appfirewall.log (MacOS Firewall) parser.""" from __future__ import unicode_literals import pyparsing from dfdatetime import time_elements as dfdatetime_time_elements from plaso.containers import events from plaso.containers import time_events from plaso.lib import err...
33.87069
80
0.696742
0a4f07f7bcb49e069ed8958be8c70d412f0514f2
1,917
py
Python
samples/level_3/candlestick.py
masayang/bokeh_bokeh
ddc8e61abc0992bbd3694461b6d108b7f09fad27
[ "BSD-3-Clause" ]
null
null
null
samples/level_3/candlestick.py
masayang/bokeh_bokeh
ddc8e61abc0992bbd3694461b6d108b7f09fad27
[ "BSD-3-Clause" ]
null
null
null
samples/level_3/candlestick.py
masayang/bokeh_bokeh
ddc8e61abc0992bbd3694461b6d108b7f09fad27
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd from bokeh.plotting import figure, show, output_file from math import pi from bokeh.models import HoverTool from bokeh.layouts import gridplot def read_data(): return pd.read_csv( "SPY.csv", names=["Date", "Open", "High", "Low", "Close", "Volume"], parse_dates=[0] )...
30.919355
132
0.591549
82c5fb3fcf40fbfecf8f72b0ee93f737c99fcd64
531
py
Python
Chapter03/0301.py
0201shj/Python-OpenCV
249f8cc9404e547da0f5c68000f29f2e598562a5
[ "MIT" ]
null
null
null
Chapter03/0301.py
0201shj/Python-OpenCV
249f8cc9404e547da0f5c68000f29f2e598562a5
[ "MIT" ]
null
null
null
Chapter03/0301.py
0201shj/Python-OpenCV
249f8cc9404e547da0f5c68000f29f2e598562a5
[ "MIT" ]
null
null
null
#0301.py import cv2 import numpy as np #White 배경 생성 img = np.zeros(shape = (512, 512, 3), dtype = np.uint8) + 255 #img = np.ones((512, 512, 3), np.uint8) * 255 #img = np.full((512, 512, 3), (255, 255, 255), dtype = np.uint8) #img = np.zeros((512, 512, 3), np.uint8) # Black 배경 pt1 = 100, 100 pt2 = 400, 400 c...
26.55
65
0.572505
b88b4db66bd29f0d2ec5e31f0618b1ba5fd7bd0b
452
py
Python
apps/classes/migrations/0003_alter_classes_id.py
Ev1dentSnow/ArtemisAPI_django
ca7ef0ccc97114f2c5439b7b1bbc0e635facf020
[ "MIT" ]
null
null
null
apps/classes/migrations/0003_alter_classes_id.py
Ev1dentSnow/ArtemisAPI_django
ca7ef0ccc97114f2c5439b7b1bbc0e635facf020
[ "MIT" ]
null
null
null
apps/classes/migrations/0003_alter_classes_id.py
Ev1dentSnow/ArtemisAPI_django
ca7ef0ccc97114f2c5439b7b1bbc0e635facf020
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-14 21:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('classes', '0002_alter_studentclasses_table'), ] operations = [ migrations.AlterField( model_name='classes', name='id...
23.789474
111
0.632743
176c35d135bfa077e0c58dc43daf16c99749e99d
2,186
py
Python
scrapyTest/spiders/xhsd.py
DeSireFire/scrapyTest
322a0a8bdff969d0506c9169890ef2bf794fd102
[ "MIT" ]
null
null
null
scrapyTest/spiders/xhsd.py
DeSireFire/scrapyTest
322a0a8bdff969d0506c9169890ef2bf794fd102
[ "MIT" ]
null
null
null
scrapyTest/spiders/xhsd.py
DeSireFire/scrapyTest
322a0a8bdff969d0506c9169890ef2bf794fd102
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy,json class XhsdSpider(scrapy.Spider): name = 'xhsd' allowed_domains = ['search.xhsd.com'] start_urls = ['http://search.xhsd.com/'] def start_requests(self): url = 'https://search.xhsd.com/search?frontCategoryId=33&pageNo=' # for page in range(1,18...
39.745455
159
0.554437
adef3f00988e694924c25a6e01a7835ba15ba88f
3,437
py
Python
core/src/epicli/cli/engine/InitEngine.py
AnnaKlank/epiphany
2ec7ec1bb9d0ec1343a0937a496c50f90cf4b5b1
[ "Apache-2.0" ]
null
null
null
core/src/epicli/cli/engine/InitEngine.py
AnnaKlank/epiphany
2ec7ec1bb9d0ec1343a0937a496c50f90cf4b5b1
[ "Apache-2.0" ]
null
null
null
core/src/epicli/cli/engine/InitEngine.py
AnnaKlank/epiphany
2ec7ec1bb9d0ec1343a0937a496c50f90cf4b5b1
[ "Apache-2.0" ]
null
null
null
import os from cli.helpers.Step import Step from cli.helpers.build_saver import save_manifest, get_build_path from cli.helpers.data_loader import load_all_yaml_objs, types from cli.engine.ApplyEngine import ApplyEngine from cli.helpers.objdict_helpers import remove_value from cli.version import VERSION from cli.helper...
40.435294
143
0.649985
cb72ae39b74ec235bacbf8d51619980602a51cc5
2,403
py
Python
contrib/opentimelineio_contrib/adapters/tests/test_kdenlive_adapter.py
michdolan/OpenTimelineIO
1ec6f07f1af525ba4ca0aa91e01e5939d6237f01
[ "Apache-2.0" ]
null
null
null
contrib/opentimelineio_contrib/adapters/tests/test_kdenlive_adapter.py
michdolan/OpenTimelineIO
1ec6f07f1af525ba4ca0aa91e01e5939d6237f01
[ "Apache-2.0" ]
4
2022-03-09T22:28:42.000Z
2022-03-14T15:16:50.000Z
contrib/opentimelineio_contrib/adapters/tests/test_kdenlive_adapter.py
michdolan/OpenTimelineIO
1ec6f07f1af525ba4ca0aa91e01e5939d6237f01
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # Copyright Contributors to the OpenTimelineIO project import unittest import opentimelineio as otio import opentimelineio.test_utils as otio_test_utils import os class AdaptersKdenliveTest(unittest.TestCase, otio_test_utils.OTIOAssertions): def __init__(self, *args, **kwar...
34.328571
79
0.608822
7a276408c92d94fe153dd402ba55b7b6b026f61a
3,762
py
Python
cogs/inactive/memelicense.py
MiningMark48/Tidal-Bot
8db6ecb220fd35930ffe1df5653af7a1ca03c8e9
[ "MIT" ]
6
2020-08-09T15:43:07.000Z
2022-03-11T15:12:21.000Z
cogs/inactive/memelicense.py
MiningMark48/Tidal-Bot
8db6ecb220fd35930ffe1df5653af7a1ca03c8e9
[ "MIT" ]
6
2020-10-29T02:32:40.000Z
2022-01-13T03:12:45.000Z
cogs/inactive/memelicense.py
MiningMark48/Tidal-Bot
8db6ecb220fd35930ffe1df5653af7a1ca03c8e9
[ "MIT" ]
1
2021-06-09T08:06:31.000Z
2021-06-09T08:06:31.000Z
import datetime import string from functools import partial from io import BytesIO from typing import Union import aiohttp import discord from PIL import Image, ImageDraw, ImageFont from discord.ext import commands class Memes(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot s...
38
118
0.610314
4f9dd0b3161276864494239c35a29c918a77f350
9,633
py
Python
pandas/tools/tests/test_util.py
michaelaye/pandas
c6110e25b3eceb2f25022c2aa9ccea03c0b8b359
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
3
2017-02-25T14:06:43.000Z
2017-05-25T05:18:03.000Z
pandas/tools/tests/test_util.py
michaelaye/pandas
c6110e25b3eceb2f25022c2aa9ccea03c0b8b359
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
11
2020-06-05T17:24:17.000Z
2022-03-11T23:15:26.000Z
pandas/tools/tests/test_util.py
michaelaye/pandas
c6110e25b3eceb2f25022c2aa9ccea03c0b8b359
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
3
2017-02-25T15:26:47.000Z
2017-12-20T06:27:07.000Z
import os import locale import codecs import nose import numpy as np from numpy.testing import assert_equal import pandas as pd from pandas import date_range, Index import pandas.util.testing as tm from pandas.tools.util import cartesian_product, to_numeric CURRENT_LOCALE = locale.getlocale() LOCALE_OVERRIDE = os.en...
33.919014
75
0.58746
9336b8c23bfe1937df465ef468130b1d81773ad4
2,327
py
Python
epac/tests/utils.py
ilgrad/pylearn-epac
bb1915ba999828f7fa1dd1523ebb18f38ff39b06
[ "BSD-3-Clause" ]
null
null
null
epac/tests/utils.py
ilgrad/pylearn-epac
bb1915ba999828f7fa1dd1523ebb18f38ff39b06
[ "BSD-3-Clause" ]
null
null
null
epac/tests/utils.py
ilgrad/pylearn-epac
bb1915ba999828f7fa1dd1523ebb18f38ff39b06
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on 20 June 2013 @author: jinpeng.li@cea.fr @author: edouard.duchesnay@cea.fr @author: benoit.da_mota@inria.fr """ import numpy as np import copy def _is_numeric(obj): return isinstance(obj, (int, float, complex)) def _is_dict_or_array_or_list(obj): ...
24.239583
68
0.594327
f2527f9b50b08f3395676d7a5c4440a528f4e4cf
2,753
py
Python
mayan/apps/converter/apps.py
edsonbin/maxacali
1fd3ac99543788f77f1a7795981179b2cc8c4421
[ "Apache-2.0" ]
1
2020-07-15T02:56:02.000Z
2020-07-15T02:56:02.000Z
mayan/apps/converter/apps.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
null
null
null
mayan/apps/converter/apps.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
2
2020-02-24T21:02:31.000Z
2021-01-05T23:52:01.000Z
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from common import MayanAppConfig, menu_object, menu_sidebar from common.classes import Package from navigation import SourceColumn from .links import ( link_transformation_create, link_transformation_delete, lin...
45.131148
485
0.72757
eaf37b73c02cbfeee10775ab71693715cb7e1652
2,127
py
Python
tests/nemo_text_processing/en/test_roman.py
gkucsko/NeMo
c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9
[ "Apache-2.0" ]
null
null
null
tests/nemo_text_processing/en/test_roman.py
gkucsko/NeMo
c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9
[ "Apache-2.0" ]
null
null
null
tests/nemo_text_processing/en/test_roman.py
gkucsko/NeMo
c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
40.903846
111
0.735308
29238e503072468f324a14ee78bfdb30b601670a
3,532
py
Python
code.py
harsh199910/Movie-recommandation-
1dbd13d3eb7ae96428236c213a867f1bf8a2014f
[ "Apache-2.0" ]
1
2019-04-18T19:28:02.000Z
2019-04-18T19:28:02.000Z
code.py
harsh199910/Movie-recommandation-
1dbd13d3eb7ae96428236c213a867f1bf8a2014f
[ "Apache-2.0" ]
null
null
null
code.py
harsh199910/Movie-recommandation-
1dbd13d3eb7ae96428236c213a867f1bf8a2014f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 18 18:01:19 2019 @author: HARSH """ import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.parallel import torch.optim as optim import torch.utils.data from torch.autograd import Variable movies = pd.read_csv('ml-1m/movies.dat', sep ...
32.109091
109
0.614666
0231da0d45578b0397a541f5ed68a97448fc4c23
1,842
py
Python
datasets/characters/download.py
mommothazaz123/mnist_gan
d5abb693dc3798f459053529d036a2a39a58bb78
[ "MIT" ]
null
null
null
datasets/characters/download.py
mommothazaz123/mnist_gan
d5abb693dc3798f459053529d036a2a39a58bb78
[ "MIT" ]
null
null
null
datasets/characters/download.py
mommothazaz123/mnist_gan
d5abb693dc3798f459053529d036a2a39a58bb78
[ "MIT" ]
null
null
null
import collections import json import re import shutil import time import requests HEADERS = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " "Chrome/60.0.3112.113 Safari/537.36" } with open('characters.json') as f: characters = json.load(f...
28.78125
112
0.592834
de54e66bc3b2a932637420b79b039becefbd9abc
4,322
py
Python
tests/xbmcplugin.py
jelly/plugin.fosdem.org
6cbed96f9df3bb4165e5cc9eb26d8abb4bfc3f9e
[ "MIT" ]
7
2019-03-27T00:02:59.000Z
2022-02-07T20:29:49.000Z
tests/xbmcplugin.py
jelly/plugin.fosdem.org
6cbed96f9df3bb4165e5cc9eb26d8abb4bfc3f9e
[ "MIT" ]
12
2019-01-06T15:53:16.000Z
2022-02-13T00:59:22.000Z
tests/xbmcplugin.py
jelly/plugin.fosdem.org
6cbed96f9df3bb4165e5cc9eb26d8abb4bfc3f9e
[ "MIT" ]
3
2019-02-14T16:08:15.000Z
2019-05-05T17:06:37.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Dag Wieers (@dagwieers) <dag@wieers.com> # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """This file implements the Kodi xbmcplugin module, either using stubs or alternative functionality""" # pylint: disable=invalid-name,unuse...
34.854839
102
0.758677
c1228489e96857d9f4a18f2a30971b3aae585ca1
2,626
py
Python
rasa/core/constants.py
YourThomasLee/rasa
501b1b312c158e19e54c67cbca8ed3728ea60ca3
[ "Apache-2.0" ]
1
2020-07-07T06:58:51.000Z
2020-07-07T06:58:51.000Z
rasa/core/constants.py
YourThomasLee/rasa
501b1b312c158e19e54c67cbca8ed3728ea60ca3
[ "Apache-2.0" ]
75
2020-08-06T08:55:42.000Z
2022-03-01T13:22:11.000Z
rasa/core/constants.py
YourThomasLee/rasa
501b1b312c158e19e54c67cbca8ed3728ea60ca3
[ "Apache-2.0" ]
null
null
null
from rasa.constants import DEFAULT_NLU_FALLBACK_INTENT_NAME DEFAULT_SERVER_PORT = 5005 DEFAULT_SERVER_FORMAT = "{}://localhost:{}" DEFAULT_SERVER_URL = DEFAULT_SERVER_FORMAT.format("http", DEFAULT_SERVER_PORT) DEFAULT_NLU_FALLBACK_THRESHOLD = 0.0 DEFAULT_CORE_FALLBACK_THRESHOLD = 0.0 DEFAULT_REQUEST_TIMEOUT = 60 ...
31.261905
83
0.809596
b0ffd5049752f66a25a8ba95907b8a2fadc63eb9
1,334
py
Python
tests/unit/test_imdb_title_page_parser.py
alexandrahably/imdb_scraper
e364c9cdccb42369fcc84de54c15621cfced9b5a
[ "Apache-2.0" ]
null
null
null
tests/unit/test_imdb_title_page_parser.py
alexandrahably/imdb_scraper
e364c9cdccb42369fcc84de54c15621cfced9b5a
[ "Apache-2.0" ]
null
null
null
tests/unit/test_imdb_title_page_parser.py
alexandrahably/imdb_scraper
e364c9cdccb42369fcc84de54c15621cfced9b5a
[ "Apache-2.0" ]
null
null
null
import pytest import os from pathlib import Path from unittest import TestCase from tests.unit.helpers.helpers import path_for_resource from src.imdb.parsers import IMDBTitlePageParser def movie_without_oscars_page_text(): movie_page_no_oscars_path = path_for_resource('movie_page_no_oscars.html') with open(mo...
37.055556
118
0.788606
86d31c6d3ef64efa6c86f9a1e58733d3626cdced
8,610
py
Python
editor/views/generic.py
NabeelSait/editor
035c1a7ffdaa4a9557bec17f2d5a7ddb3b316fce
[ "Apache-2.0" ]
null
null
null
editor/views/generic.py
NabeelSait/editor
035c1a7ffdaa4a9557bec17f2d5a7ddb3b316fce
[ "Apache-2.0" ]
null
null
null
editor/views/generic.py
NabeelSait/editor
035c1a7ffdaa4a9557bec17f2d5a7ddb3b316fce
[ "Apache-2.0" ]
null
null
null
import json from django.shortcuts import redirect from django import http from django.views import generic from django.template.loader import get_template from django.template import RequestContext from django.template.response import TemplateResponse import reversion from editor.models import NewStampOfApproval, Com...
36.95279
166
0.655749
3506ffe2980142eda2755c1e36e516831344a27f
5,314
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_sizes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_sizes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_sizes_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.026549
135
0.660896
c4e8382ed32ac5f8b39890e227d726526ae55458
147
py
Python
text_nlp/apps.py
hamza-manssor/News-Category-Classification-using-ML-in-Django
8d8579e6010bee1451df5653eb6bc45b4a1072ef
[ "MIT" ]
null
null
null
text_nlp/apps.py
hamza-manssor/News-Category-Classification-using-ML-in-Django
8d8579e6010bee1451df5653eb6bc45b4a1072ef
[ "MIT" ]
null
null
null
text_nlp/apps.py
hamza-manssor/News-Category-Classification-using-ML-in-Django
8d8579e6010bee1451df5653eb6bc45b4a1072ef
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TextNlpConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'text_nlp'
21
56
0.761905
fee1aceef4f99873d3ac5fae941f37132b5d5d4a
364
py
Python
taobao-tianmao/top/api/rest/AlibabaWdkMarketingOpenHeartbeatRequest.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
null
null
null
taobao-tianmao/top/api/rest/AlibabaWdkMarketingOpenHeartbeatRequest.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
7
2021-03-19T02:12:42.000Z
2022-03-12T00:25:28.000Z
taobao-tianmao/top/api/rest/AlibabaWdkMarketingOpenHeartbeatRequest.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2019.03.26 ''' from top.api.base import RestApi class AlibabaWdkMarketingOpenHeartbeatRequest(RestApi): def __init__(self, domain='gw.api.taobao.com', port=80): RestApi.__init__(self, domain, port) self.heart_beat = None def getapiname(self): ret...
26
61
0.681319
37ea2899cde8120df2cdbd0511e09986d0fbdaee
20,201
py
Python
SMPyBandits/Environment/EvaluatorSparseMultiPlayers.py
balbok0/SMPyBandits
c8ff765687989e0c20ab42c2e2e1d8440923225b
[ "MIT" ]
309
2018-03-03T22:07:59.000Z
2022-03-26T08:15:58.000Z
Environment/EvaluatorSparseMultiPlayers.py
98k-bot/SMPyBandits
35e675bde29dafbec68288fcfcd14ef3b0f058b2
[ "MIT" ]
125
2018-02-27T22:54:03.000Z
2021-11-05T10:50:15.000Z
Environment/EvaluatorSparseMultiPlayers.py
98k-bot/SMPyBandits
35e675bde29dafbec68288fcfcd14ef3b0f058b2
[ "MIT" ]
60
2018-04-30T20:54:24.000Z
2022-02-21T22:41:46.000Z
# -*- coding: utf-8 -*- """ EvaluatorSparseMultiPlayers class to wrap and run the simulations, for the multi-players case with sparse activated players. Lots of plotting methods, to have various visualizations. See documentation. .. warning:: FIXME this environment is not as up-to-date as :class:`Environment.Evaluator...
57.389205
276
0.681501
3df92b04a84daad85b4a4bd4386d6c188902c278
3,495
py
Python
chaingreen/timelord/timelord_launcher.py
WaitWha/chaingreen-blockchain
959443f03420b80f66028c2183525712aa933465
[ "Apache-2.0" ]
103
2021-05-30T02:09:28.000Z
2022-03-17T20:45:49.000Z
chaingreen/timelord/timelord_launcher.py
WaitWha/chaingreen-blockchain
959443f03420b80f66028c2183525712aa933465
[ "Apache-2.0" ]
107
2021-05-23T02:20:26.000Z
2022-03-29T17:07:43.000Z
chaingreen/timelord/timelord_launcher.py
WaitWha/chaingreen-blockchain
959443f03420b80f66028c2183525712aa933465
[ "Apache-2.0" ]
50
2021-05-23T02:19:06.000Z
2022-01-24T07:32:50.000Z
import asyncio import logging import pathlib import signal import socket import time from typing import Dict, List import pkg_resources from chaingreen.util.chaingreen_logging import initialize_logging from chaingreen.util.config import load_config from chaingreen.util.default_root import DEFAULT_ROOT_PATH from chain...
30.391304
100
0.656366
8d67a183619a90f435572dc5c386f70dc3005c6c
23,161
py
Python
statsmodels/tsa/tests/test_deterministic.py
CCHiggins/statsmodels
300b6fba90c65c8e94b4f83e04f7ae1b0ceeac2e
[ "BSD-3-Clause" ]
1
2022-01-16T01:33:03.000Z
2022-01-16T01:33:03.000Z
statsmodels/tsa/tests/test_deterministic.py
CCHiggins/statsmodels
300b6fba90c65c8e94b4f83e04f7ae1b0ceeac2e
[ "BSD-3-Clause" ]
5
2022-02-13T14:38:04.000Z
2022-02-15T00:13:07.000Z
statsmodels/tsa/tests/test_deterministic.py
CCHiggins/statsmodels
300b6fba90c65c8e94b4f83e04f7ae1b0ceeac2e
[ "BSD-3-Clause" ]
4
2022-02-04T22:58:27.000Z
2022-02-14T19:29:18.000Z
from statsmodels.compat.pandas import PD_LT_1_0_0, is_int_index from statsmodels.compat.pytest import pytest_warns from typing import Hashable, Tuple import numpy as np import pandas as pd import pytest from statsmodels.tsa.deterministic import ( CalendarFourier, CalendarSeasonality, CalendarTimeTrend, ...
32.575246
79
0.638358
49fed8d661e55df92e6ec66e045b6d92cad4271d
1,315
py
Python
app/core/tests/test_admin.py
shravands/django-restapi-recipe
c21d01ab3b0d92d249e638a1b503ea54dd6d69bd
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
shravands/django-restapi-recipe
c21d01ab3b0d92d249e638a1b503ea54dd6d69bd
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
shravands/django-restapi-recipe
c21d01ab3b0d92d249e638a1b503ea54dd6d69bd
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@app.com', ...
32.073171
68
0.638023
3411a4a3bb630e8042bfdf1c4f5c16218df48540
1,100
py
Python
salsa_env/lib/python3.7/site-packages/openai/api_resources/file.py
shahjaidev/Salsa-GPT3
41ecf0d7268300a2435a8eb8f4f4c68139de6e79
[ "MIT" ]
1
2020-11-26T10:28:31.000Z
2020-11-26T10:28:31.000Z
salsa_env/lib/python3.7/site-packages/openai/api_resources/file.py
shahjaidev/Salsa-GPT3
41ecf0d7268300a2435a8eb8f4f4c68139de6e79
[ "MIT" ]
null
null
null
salsa_env/lib/python3.7/site-packages/openai/api_resources/file.py
shahjaidev/Salsa-GPT3
41ecf0d7268300a2435a8eb8f4f4c68139de6e79
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import json import os import tempfile import openai from openai import api_requestor, util from openai.api_resources.abstract import ( APIResource, CreateableAPIResource, DeletableAPIResource, ListableAPIResource, UpdateableAPIResour...
27.5
87
0.683636
04152833046b319516ecf8c22d871a14f9a6d4d2
3,010
py
Python
linetools/lists/tests/test_init_linelist.py
marijana777/linetools
73720a2f6df42b7dde1f35055cd40ad970200f7f
[ "BSD-3-Clause" ]
null
null
null
linetools/lists/tests/test_init_linelist.py
marijana777/linetools
73720a2f6df42b7dde1f35055cd40ad970200f7f
[ "BSD-3-Clause" ]
null
null
null
linetools/lists/tests/test_init_linelist.py
marijana777/linetools
73720a2f6df42b7dde1f35055cd40ad970200f7f
[ "BSD-3-Clause" ]
null
null
null
# Module to run tests on Generating a LineList # Also tests some simple functionality from __future__ import print_function, absolute_import, division, unicode_literals # TEST_UNICODE_LITERALS import pdb import pytest from astropy import units as u import numpy as np from linetools.lists.linelist import LineList ...
26.875
94
0.680731
31c91875c9c182f5229edf1ed446c63b4652f90f
7,923
py
Python
task_geo/data_sources/covid/spain/es_covid_formatter.py
Brian-V/task-geo
f03776b63d9dd60f7fd5795023d36370c70a63b0
[ "MIT" ]
null
null
null
task_geo/data_sources/covid/spain/es_covid_formatter.py
Brian-V/task-geo
f03776b63d9dd60f7fd5795023d36370c70a63b0
[ "MIT" ]
null
null
null
task_geo/data_sources/covid/spain/es_covid_formatter.py
Brian-V/task-geo
f03776b63d9dd60f7fd5795023d36370c70a63b0
[ "MIT" ]
null
null
null
import pandas as pd def es_covid_formatter(df): """Formats data retrieved from https://covid19.isciii.es Arguments: raw(pandas.DataFrame): Returns: pandas.DataFrame """ assert df[pd.isnull(df['CCAA Codigo ISO'])].empty df.rename(columns={'CCAA Codigo ISO': 'autonomous_commu...
65.479339
99
0.258109
f08e9dd3539677ad16d77417e0706cbe93871bd0
693
py
Python
wavencoder/models/baseline.py
shangeth/wavencoder
cd1a277c2cc44075c9f4506e344b3a725ad5b9fe
[ "MIT" ]
56
2020-10-10T18:11:28.000Z
2022-03-05T03:06:27.000Z
wavencoder/models/baseline.py
shangeth/wavencoder
cd1a277c2cc44075c9f4506e344b3a725ad5b9fe
[ "MIT" ]
9
2020-12-04T07:49:25.000Z
2021-11-26T13:16:31.000Z
wavencoder/models/baseline.py
shangeth/wavencoder
cd1a277c2cc44075c9f4506e344b3a725ad5b9fe
[ "MIT" ]
10
2020-10-10T18:06:47.000Z
2022-03-28T20:40:40.000Z
import torch import torch.nn as nn import torch.functional as F class CNN1d(nn.Module): def __init__(self, conv_layers): super(CNN1d, self).__init__() self.conv_layers = nn.ModuleList() in_d = 1 for dim, k, s in conv_layers: self.conv_layers.append(self.cnn_block(in_d, ...
23.896552
68
0.5671
13ed024deec5372eaab4637d53e63c831a150651
7,297
py
Python
hummingbot/connector/budget_checker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
2
2022-03-03T10:00:27.000Z
2022-03-08T13:57:56.000Z
hummingbot/connector/budget_checker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
6
2022-01-31T15:44:54.000Z
2022-03-06T04:27:12.000Z
hummingbot/connector/budget_checker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1
2022-03-28T09:28:40.000Z
2022-03-28T09:28:40.000Z
import typing from collections import defaultdict from copy import copy from decimal import Decimal from typing import Dict, List from hummingbot.core.data_type.order_candidate import OrderCandidate if typing.TYPE_CHECKING: # avoid circular import problems from hummingbot.connector.exchange_base import ExchangeB...
46.477707
120
0.711388
49dc4e9535355ec9753e36daf84aaaa21e272ed4
594
py
Python
test_api.py
CoffeeStraw/CapsNet-Knowledge-Extractor
99dc665bcce394e4dfa0b8a6deda28d1e3713509
[ "MIT" ]
5
2020-09-29T13:34:23.000Z
2021-12-01T15:27:53.000Z
test_api.py
CoffeeStraw/CapsNet-Knowledge-Extractor
99dc665bcce394e4dfa0b8a6deda28d1e3713509
[ "MIT" ]
null
null
null
test_api.py
CoffeeStraw/CapsNet-Knowledge-Extractor
99dc665bcce394e4dfa0b8a6deda28d1e3713509
[ "MIT" ]
null
null
null
""" Simple test file that performs some requests to the API """ import requests # API / getModels response = requests.get("http://127.0.0.1:5000/api/getModels") print(response.text) # API / computeTrainingStep response = requests.post( "http://127.0.0.1:5000/api/computeStep", json={"model": "Simple", "step": ...
25.826087
83
0.671717
9aaf01c44d0a02ebd701c23944224c9c3a9e35db
7,242
py
Python
sarpy/processing/fft_base.py
khavernathy/sarpy
e0c2bb1a55f153628162ef7be89e9b7de34602df
[ "MIT" ]
null
null
null
sarpy/processing/fft_base.py
khavernathy/sarpy
e0c2bb1a55f153628162ef7be89e9b7de34602df
[ "MIT" ]
null
null
null
sarpy/processing/fft_base.py
khavernathy/sarpy
e0c2bb1a55f153628162ef7be89e9b7de34602df
[ "MIT" ]
null
null
null
""" Helper classes and methods for Fourier processing schemes. """ __classification__ = "UNCLASSIFIED" __author__ = 'Thomas McCullough' import logging from sarpy.compliance import int_func from sarpy.io.general.base import BaseReader from sarpy.io.complex.sicd_elements.SICD import SICDType from sarpy.processing.orth...
26.05036
108
0.611571
49a600324f741b555b094c9c52d5934fa3e76cf2
16,914
py
Python
sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_registration_definitions_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_registration_definitions_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_registration_definitions_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.64507
163
0.670273
0c6e008fa59f44a97c1b1a6796294c39e67e5ec4
3,170
py
Python
discord/backoff.py
Buster-2002/discord.py-self
83ab03aacac7571f1787220a3265e0697f6d374a
[ "MIT" ]
null
null
null
discord/backoff.py
Buster-2002/discord.py-self
83ab03aacac7571f1787220a3265e0697f6d374a
[ "MIT" ]
null
null
null
discord/backoff.py
Buster-2002/discord.py-self
83ab03aacac7571f1787220a3265e0697f6d374a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-present Rapptz 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 t...
36.436782
76
0.702839
2f891c789b98e1a97f0a9cd6198bac77e6d0a37e
6,382
py
Python
jiminy/utils/__init__.py
sibeshkar/jiminy
7754f86fb0f246e7d039ea0cbfd9950fcae4adfb
[ "MIT" ]
3
2020-03-16T13:50:40.000Z
2021-06-09T05:26:13.000Z
jiminy/utils/__init__.py
sibeshkar/jiminy
7754f86fb0f246e7d039ea0cbfd9950fcae4adfb
[ "MIT" ]
null
null
null
jiminy/utils/__init__.py
sibeshkar/jiminy
7754f86fb0f246e7d039ea0cbfd9950fcae4adfb
[ "MIT" ]
null
null
null
import logging import six import sys if six.PY2: import Queue as queue else: import queue import threading import signal from twisted.internet import defer from jiminy.twisty import reactor logger = logging.getLogger(__name__) class ErrorBuffer(object): def __init__(self): self.queue = queue.Queu...
30.390476
279
0.631777
ba4906813a5e95f39aa7dedcea6cf35078344326
5,417
py
Python
convs/dyres_conv.py
Nyquixt/DyConv
255193068424aaa83352bee258d34cb8b32b6ee6
[ "MIT" ]
null
null
null
convs/dyres_conv.py
Nyquixt/DyConv
255193068424aaa83352bee258d34cb8b32b6ee6
[ "MIT" ]
null
null
null
convs/dyres_conv.py
Nyquixt/DyConv
255193068424aaa83352bee258d34cb8b32b6ee6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F __all__ = ['DyResConv'] class route_func(nn.Module): def __init__(self, in_channels, num_experts=3, reduction=16, mode='A'): super().__init__() assert mode == 'A' or mode == 'B' or mode == 'S' self.mode = mode # Glo...
43.336
166
0.57818
ffc094997b99e67efa620c4daa1898abc5d851de
8,311
py
Python
mbrl/third_party/pytorch_sac_pranz24/sac.py
maxyang27896/mbrl-lib
4543fc929321fdd6e6522528c68e54d822ad2a6a
[ "MIT" ]
null
null
null
mbrl/third_party/pytorch_sac_pranz24/sac.py
maxyang27896/mbrl-lib
4543fc929321fdd6e6522528c68e54d822ad2a6a
[ "MIT" ]
null
null
null
mbrl/third_party/pytorch_sac_pranz24/sac.py
maxyang27896/mbrl-lib
4543fc929321fdd6e6522528c68e54d822ad2a6a
[ "MIT" ]
null
null
null
import os import torch import torch.nn.functional as F from torch.optim import Adam from mbrl.third_party.pytorch_sac_pranz24.model import ( DeterministicPolicy, GaussianPolicy, QNetwork, ) from mbrl.third_party.pytorch_sac_pranz24.utils import hard_update, soft_update class SAC(object): def __init_...
39.20283
91
0.60089
cf6ef6036daf1b79be4a2dd64771287167822fb3
3,316
py
Python
src/maggma/api/resource/core.py
materialsproject/maggflow
9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/maggma/api/resource/core.py
materialsproject/maggflow
9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/maggma/api/resource/core.py
materialsproject/maggflow
9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d
[ "BSD-3-Clause-LBNL" ]
null
null
null
import logging from abc import ABCMeta, abstractmethod from typing import Dict, Type from fastapi import APIRouter, FastAPI, Response, Request from monty.json import MontyDecoder, MSONable from pydantic import BaseModel from starlette.responses import RedirectResponse from maggma.api.utils import STORE_PARAMS, api_sa...
29.087719
98
0.633896
2a495d6b63b5e22d176bd17569b0c05d76761bc1
800
py
Python
puzzle_editing/messaging.py
jwmclaren/puzzlord
a0420be33658bb88cd34dddf6364f4da76453253
[ "X11" ]
null
null
null
puzzle_editing/messaging.py
jwmclaren/puzzlord
a0420be33658bb88cd34dddf6364f4da76453253
[ "X11" ]
null
null
null
puzzle_editing/messaging.py
jwmclaren/puzzlord
a0420be33658bb88cd34dddf6364f4da76453253
[ "X11" ]
null
null
null
from django.conf import settings from django.core.mail.message import EmailMultiAlternatives from django.template.loader import render_to_string def send_mail_wrapper(subject, template, context, recipients): if recipients: mail = EmailMultiAlternatives( subject=settings.EMAIL_SUBJECT_PREFIX + ...
38.095238
88
0.64625
d03e4d085323f4e2e5432f1094f91139c8f0f3f5
648
py
Python
please2/command/git/cmd_git_new_branch.py
jadnohra/please2
8654347b72758f8f6cd255ef97500da55839a62a
[ "MIT" ]
null
null
null
please2/command/git/cmd_git_new_branch.py
jadnohra/please2
8654347b72758f8f6cd255ef97500da55839a62a
[ "MIT" ]
null
null
null
please2/command/git/cmd_git_new_branch.py
jadnohra/please2
8654347b72758f8f6cd255ef97500da55839a62a
[ "MIT" ]
null
null
null
import please2.reg_cmd as reg_cmd from ..cmd_base import Command, Match from .cmd_git_util import make_error_result, run_git_get_lines from please2.util.args import get_positional_after class CommandGitNewBranch(Command): def help(self): return self.key() + ' <branch-name> [@ <dir>]' def opt_keys(se...
24.923077
70
0.680556
d92c5e75218bd59c6e3054065483ca124ad43be6
179
py
Python
problem0642.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0642.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0642.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #642 Sum of largest prime factors - Project Euler # https://projecteuler.net/problem=642 # # Code by Kevin Marciniak # ###########################
19.888889
51
0.497207
78389bd0d69b5b7f89c349fa2f266a35b561142b
3,226
py
Python
bluegraph/downstream/data_structures.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
25
2021-04-09T09:57:10.000Z
2022-02-09T14:26:55.000Z
bluegraph/downstream/data_structures.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
39
2021-04-09T08:23:28.000Z
2021-11-10T08:35:59.000Z
bluegraph/downstream/data_structures.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
3
2021-07-30T19:00:24.000Z
2022-03-16T21:01:48.000Z
# BlueGraph: unifying Python framework for graph analytics and co-occurrence analysis. # Copyright 2020-2021 Blue Brain Project / EPFL # 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 a...
38.404762
87
0.697458
95ff0faea82be8741f6ef17bf80c6fed00f81a11
5,226
py
Python
unforeseen/analysis/calibrate.py
petoor/unforeseen-client
bd068ddc4029cc66c76f96ce9fc90e4e29106379
[ "MIT" ]
null
null
null
unforeseen/analysis/calibrate.py
petoor/unforeseen-client
bd068ddc4029cc66c76f96ce9fc90e4e29106379
[ "MIT" ]
null
null
null
unforeseen/analysis/calibrate.py
petoor/unforeseen-client
bd068ddc4029cc66c76f96ce9fc90e4e29106379
[ "MIT" ]
null
null
null
# Standard python imports import sys, os, logging, threading, argparse import numpy as np # Gstreamer related import gi gi.require_version('Gst', '1.0') gi.require_version('GstBase', '1.0') gi.require_version('Gtk', '3.0') from gi.repository import GLib, Gst, Gtk from gstreamer import GstPipeline, Gst import gstreame...
33.5
99
0.628205
e731ffabf724e78f27f461f059e3bdf3b3c92720
12,642
py
Python
generated/python/gapic-google-cloud-speech-v1/google/cloud/gapic/speech/v1/speech_client.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/gapic-google-cloud-speech-v1/google/cloud/gapic/speech/v1/speech_client.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/gapic-google-cloud-speech-v1/google/cloud/gapic/speech/v1/speech_client.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Copyright 2017, Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
44.202797
164
0.657174
90bb2395dfb8226545426e4203bbedb1d4d0b049
6,057
py
Python
src/conways.py
atonymartin20/Cellular-Automata
01e28eb593de8ab97d82ce045e449562fd5a5e31
[ "MIT" ]
null
null
null
src/conways.py
atonymartin20/Cellular-Automata
01e28eb593de8ab97d82ce045e449562fd5a5e31
[ "MIT" ]
null
null
null
src/conways.py
atonymartin20/Cellular-Automata
01e28eb593de8ab97d82ce045e449562fd5a5e31
[ "MIT" ]
null
null
null
import pygame, random, time # Define some colors and other constants BLACK = (0, 0, 0) BLUE = (0, 0, 255) WHITE = (255, 255, 255) GREEN = (49, 214, 0) MAGENTA = (206, 41, 255) GRAY = (154, 162, 151) fps = 5 WIN_SIZE = 505 # 1. Create a set of initial states with simple pattern (Ex. blinker) initial_states = [0] * 4...
31.546875
106
0.585273
b7cda316bb6b0a9e7c364ac2129c8602f2a7cf24
6,682
py
Python
stl10/train.py
EricElmoznino/OrthogonalLowrankEmbedding
cce12ca5cb34f7cb888b04739724bdbbd18b1e2d
[ "MIT" ]
null
null
null
stl10/train.py
EricElmoznino/OrthogonalLowrankEmbedding
cce12ca5cb34f7cb888b04739724bdbbd18b1e2d
[ "MIT" ]
null
null
null
stl10/train.py
EricElmoznino/OrthogonalLowrankEmbedding
cce12ca5cb34f7cb888b04739724bdbbd18b1e2d
[ "MIT" ]
null
null
null
""" OLE training script """ from __future__ import print_function import argparse import os, sys import time from utee import misc import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable import dataset import model from IPython import embed # OLE Loss from OLE import *...
36.917127
180
0.66088
1e073f9e35be8d230a5558148b3772b034c7c335
15,653
py
Python
simulate.py
nathancowieson/saxs_scripts
274472f28a630fe688ec00fd535c6679d7d7ef73
[ "MIT" ]
null
null
null
simulate.py
nathancowieson/saxs_scripts
274472f28a630fe688ec00fd535c6679d7d7ef73
[ "MIT" ]
null
null
null
simulate.py
nathancowieson/saxs_scripts
274472f28a630fe688ec00fd535c6679d7d7ef73
[ "MIT" ]
2
2021-03-03T10:29:04.000Z
2021-03-03T15:39:26.000Z
#!/anaconda/bin/python ''' Created on Apr 03, 2014 @author: nathan ''' import sys, logging, os, re, math, numpy, random from subprocess import check_output class Simulate(): """Simulate SAXS data from a PDB file The Simulate class contains various functions for calculating SAXS data from a pdb file....
43.969101
240
0.586788
818326d93ccc2f59b76103917c937749d6997e6b
4,595
py
Python
configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/mpii/hrnet_w48_mpii_256x256.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/mpii/hrnet_w48_mpii_256x256.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/mpii/hrnet_w48_mpii_256x256.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../../../_base_/default_runtime.py', '../../../../_base_/datasets/mpii.py' ] evaluation = dict(interval=10, metric='PCKh', save_best='PCKh') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict( policy='step', warmup...
29.267516
79
0.591513
df95beb71c633f86803037122e89db4234027c1f
3,718
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/application_gateway_http_listener_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/application_gateway_http_listener_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/application_gateway_http_listener_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
48.921053
289
0.673749
5589b97ad49d1d4c965638dd8c5ea281caa83e20
22,832
py
Python
tools/interop_matrix/client_matrix.py
qstanczyk/grpc
34338e5798aa6756d66c1f9b64ba8e94a4aefbee
[ "Apache-2.0" ]
null
null
null
tools/interop_matrix/client_matrix.py
qstanczyk/grpc
34338e5798aa6756d66c1f9b64ba8e94a4aefbee
[ "Apache-2.0" ]
null
null
null
tools/interop_matrix/client_matrix.py
qstanczyk/grpc
34338e5798aa6756d66c1f9b64ba8e94a4aefbee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # Copyright 2017 gRPC 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 applicable la...
47.173554
86
0.522819
ddf241f76afbd61aba466a59fd0facef6be69598
8,857
py
Python
controls.py
zhangenter/tetris
300c668d9732cd037bfc6f47c289bd5ee4a009b2
[ "Apache-2.0" ]
3
2019-05-08T14:49:10.000Z
2021-01-20T13:22:45.000Z
controls.py
zhangenter/tetris
300c668d9732cd037bfc6f47c289bd5ee4a009b2
[ "Apache-2.0" ]
null
null
null
controls.py
zhangenter/tetris
300c668d9732cd037bfc6f47c289bd5ee4a009b2
[ "Apache-2.0" ]
2
2020-01-28T14:37:06.000Z
2020-04-03T13:37:14.000Z
# -*- coding=utf-8 -*- import random import os,pickle import pygame from globals import * from matrix import Matrix class VirtualHintBox(object): pid = 0 block_manage=None next_block= None def __init__(self, pid, block_manage): #print pid self.pid = pid self.block_manage = block...
35.007905
127
0.550525
aeae930842d50a4f37ab6f347a0debb42629a5d2
1,594
py
Python
Two Sum II.py
H-isaac23/LeetCode-Challenges
dcce6c2c45cccd39a45d4b9874561c12f2990cc6
[ "MIT" ]
null
null
null
Two Sum II.py
H-isaac23/LeetCode-Challenges
dcce6c2c45cccd39a45d4b9874561c12f2990cc6
[ "MIT" ]
null
null
null
Two Sum II.py
H-isaac23/LeetCode-Challenges
dcce6c2c45cccd39a45d4b9874561c12f2990cc6
[ "MIT" ]
null
null
null
# Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that # they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where # 1 <= index1 < index2 <= numbers.length. # # Return the indices of the two numbers, inde...
37.952381
122
0.624216
7292b0bfcd898e03486646fdada6580a8c41d0d8
3,093
py
Python
mmdet/models/roi_extractors/single_level.py
shaoqb/multi_scale_booster
8e5155c1ff3ba907966aa3971ce2057deafc27e7
[ "Apache-2.0" ]
24
2019-07-06T07:50:54.000Z
2021-12-12T03:38:24.000Z
mmdet/models/roi_extractors/single_level.py
shaoqb/multi_scale_booster
8e5155c1ff3ba907966aa3971ce2057deafc27e7
[ "Apache-2.0" ]
3
2019-07-29T11:38:30.000Z
2021-11-30T16:11:33.000Z
mmdet/models/roi_extractors/single_level.py
shaoqb/multi_scale_booster
8e5155c1ff3ba907966aa3971ce2057deafc27e7
[ "Apache-2.0" ]
7
2019-07-22T03:14:57.000Z
2021-06-26T01:11:50.000Z
from __future__ import division import torch import torch.nn as nn from mmdet import ops from ..registry import ROI_EXTRACTORS @ROI_EXTRACTORS.register_module class SingleRoIExtractor(nn.Module): """Extract RoI features from a single level feature map. If there are mulitple input feature levels, each RoI is...
34.366667
79
0.602005
2db38a2ef06e18adfced4fea42907f2bd434180a
1,400
py
Python
tests/token/conftest.py
isaac-philip/xyz-spaces-python
67b06efdc4a76934c54c1a828087a27cad26aa5d
[ "Apache-2.0" ]
1
2021-02-20T10:14:36.000Z
2021-02-20T10:14:36.000Z
tests/token/conftest.py
GhostUser/xyz-spaces-python
646aaa74a180871318f3e9aa12acc8e25a1f3b33
[ "Apache-2.0" ]
null
null
null
tests/token/conftest.py
GhostUser/xyz-spaces-python
646aaa74a180871318f3e9aa12acc8e25a1f3b33
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2020 HERE Europe B.V. # # 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 t...
31.111111
74
0.726429
8dce6fde79d0090a247e0e9e6d6b896f2c57033c
3,643
py
Python
pajbot/modules/maxmsglength.py
jardg/pajbot
e1fca604fe25e12dd4761cb0bfc15c140e7cf012
[ "MIT" ]
null
null
null
pajbot/modules/maxmsglength.py
jardg/pajbot
e1fca604fe25e12dd4761cb0bfc15c140e7cf012
[ "MIT" ]
null
null
null
pajbot/modules/maxmsglength.py
jardg/pajbot
e1fca604fe25e12dd4761cb0bfc15c140e7cf012
[ "MIT" ]
null
null
null
import logging from pajbot.managers.handler import HandlerManager from pajbot.modules import BaseModule from pajbot.modules import ModuleSetting log = logging.getLogger(__name__) class MaxMsgLengthModule(BaseModule): ID = __name__.split('.')[-1] NAME = 'Maximum message length' DESCRIPTION = 'Times out ...
40.032967
149
0.540214
14dcefc12311b0db733e8d8426f4f41a2e91f475
532
py
Python
tests/fixtures/exceptions/solution.py
danieleades/cleo
76a4e64668670b4cbfe68ec3ec0ec592a3eadbbd
[ "MIT" ]
null
null
null
tests/fixtures/exceptions/solution.py
danieleades/cleo
76a4e64668670b4cbfe68ec3ec0ec592a3eadbbd
[ "MIT" ]
null
null
null
tests/fixtures/exceptions/solution.py
danieleades/cleo
76a4e64668670b4cbfe68ec3ec0ec592a3eadbbd
[ "MIT" ]
null
null
null
from crashtest.contracts.base_solution import BaseSolution from crashtest.contracts.provides_solution import ProvidesSolution class CustomError(ProvidesSolution, Exception): @property def solution(self) -> BaseSolution: solution = BaseSolution("Solution Title.", "Solution Description") solutio...
31.294118
74
0.746241
bcc57e73b9df081a4e6bb1a91731a0db8c3b1a56
1,169
py
Python
journyio/user_identified.py
journy-io/python-sdk
ef5a216680b754ec2ea184d03431cdc754462656
[ "MIT" ]
null
null
null
journyio/user_identified.py
journy-io/python-sdk
ef5a216680b754ec2ea184d03431cdc754462656
[ "MIT" ]
2
2021-04-09T10:38:09.000Z
2021-06-29T09:43:08.000Z
journyio/user_identified.py
journy-io/python-sdk
ef5a216680b754ec2ea184d03431cdc754462656
[ "MIT" ]
null
null
null
from .utils import assert_journy class UserIdentified(object): def __init__(self, user_id: str or None, email: str or None): assert_journy(user_id or email, "User id and email can not both be empty") if user_id: assert_journy(isinstance(user_id, str), "The user id is not a string.") ...
29.974359
83
0.634731
34fbe440d4d41d09e19d3870247859f50a0ef4ea
3,349
py
Python
nexus_constructor/json/filewriter_json_reader.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
nexus_constructor/json/filewriter_json_reader.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
nexus_constructor/json/filewriter_json_reader.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
import json import h5py import numpy as np import uuid from typing import Union, List from nexus_constructor.common_attrs import CommonAttrs """ Read the JSON and construct an in-memory NeXus file from the nexus_structure field """ NexusObject = Union[h5py.Group, h5py.Dataset] _json_type_to_numpy = { "string": ...
31.59434
82
0.701403
ee0f7a11047fe64fb853aa10eab43f5205523e36
3,785
py
Python
openstackclient/common/exceptions.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
openstackclient/common/exceptions.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
openstackclient/common/exceptions.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2013 OpenStack, 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 ...
27.830882
79
0.670806
7519e5cf7d1cebc826756df3cab39c1c02663ffb
2,765
py
Python
Modules/ThirdParty/pygccxml/src/pygccxml/declarations/typedef.py
nalinimsingh/ITK_4D
95a2eacaeaffe572889832ef0894239f89e3f303
[ "Apache-2.0" ]
3
2018-10-01T20:46:17.000Z
2019-12-17T19:39:50.000Z
Modules/ThirdParty/pygccxml/src/pygccxml/declarations/typedef.py
nalinimsingh/ITK_4D
95a2eacaeaffe572889832ef0894239f89e3f303
[ "Apache-2.0" ]
null
null
null
Modules/ThirdParty/pygccxml/src/pygccxml/declarations/typedef.py
nalinimsingh/ITK_4D
95a2eacaeaffe572889832ef0894239f89e3f303
[ "Apache-2.0" ]
4
2018-05-17T16:34:54.000Z
2020-09-24T02:12:40.000Z
# Copyright 2014-2016 Insight Software Consortium. # Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt """ defines class that describes C++ typedef declaration """ import warnings from . import declaration from . imp...
29.414894
75
0.599638
0dc8d48e84f92512e56f3ad585afba37fa1b553e
14,659
py
Python
api/tests/test_organizations.py
amcquistan/project-time-tracker-api-django
da8a4129964fa4e330939178f12f24097527e77d
[ "MIT" ]
null
null
null
api/tests/test_organizations.py
amcquistan/project-time-tracker-api-django
da8a4129964fa4e330939178f12f24097527e77d
[ "MIT" ]
null
null
null
api/tests/test_organizations.py
amcquistan/project-time-tracker-api-django
da8a4129964fa4e330939178f12f24097527e77d
[ "MIT" ]
1
2021-01-01T14:58:11.000Z
2021-01-01T14:58:11.000Z
from copy import deepcopy from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from api.tests.testing_utils import ( create_user, authenticate_jwt, admin_cred...
40.832869
106
0.670987
5c343d13b7ec3463fbff70b8c8d18fe128ca81d3
260
py
Python
src/053. Combinatoric selections/053.py
yuhao600/project-euler
201fc68aa9cca63b751036bb61623c12939dcac4
[ "MIT" ]
15
2015-02-04T13:47:04.000Z
2021-12-22T08:40:13.000Z
src/053. Combinatoric selections/053.py
yuhao600/project-euler
201fc68aa9cca63b751036bb61623c12939dcac4
[ "MIT" ]
null
null
null
src/053. Combinatoric selections/053.py
yuhao600/project-euler
201fc68aa9cca63b751036bb61623c12939dcac4
[ "MIT" ]
3
2016-02-19T10:47:31.000Z
2017-03-03T16:44:15.000Z
factorials = [1] for n in range(1, 101): factorials.append(factorials[n - 1] * n) count = 0 for n in range(1, 101): for r in range(1, n + 1): if factorials[n] / factorials[r] / factorials[n - r] > 1000000: count += 1 print(count)
21.666667
71
0.573077
4cfbde17d4d4b6ea90e3fa11422b315b87c2ef86
45,119
py
Python
simple_demux_map/_bcs.py
Uditgulati/grocsvs
e7225b0e65e40138053a214130ebaeec1e1448d8
[ "MIT" ]
39
2016-09-11T03:11:09.000Z
2021-04-27T17:08:05.000Z
simple_demux_map/_bcs.py
Uditgulati/grocsvs
e7225b0e65e40138053a214130ebaeec1e1448d8
[ "MIT" ]
34
2016-10-24T22:24:49.000Z
2021-04-12T14:08:54.000Z
simple_demux_map/_bcs.py
Uditgulati/grocsvs
e7225b0e65e40138053a214130ebaeec1e1448d8
[ "MIT" ]
7
2017-10-26T00:55:47.000Z
2020-07-28T10:57:28.000Z
#!/usr/bin/env python # # Copyright (c) 2014 10X Genomics, Inc. All rights reserved. # # What is considered a high confidence mapped read pair HIGH_CONF_MAPQ = 60 # Distance to mate to ensure the MIN_MATE_OFFSET_DUP_FILTER = 20 # Sequencing settings ILLUMINA_MAX_QUAL = 50 # higher than possible right now ILLUMINA_Q...
39.199826
166
0.631286
220a10ae4f94037f2fc5716fb1f0d5f4baeedfd5
820
py
Python
artikel/migrations/0001_initial.py
almaaqila/tugas-tengah-semester-pbp
7b7bc72ea19cedd61c77c26ed503efd9eb42bc0b
[ "MIT" ]
null
null
null
artikel/migrations/0001_initial.py
almaaqila/tugas-tengah-semester-pbp
7b7bc72ea19cedd61c77c26ed503efd9eb42bc0b
[ "MIT" ]
null
null
null
artikel/migrations/0001_initial.py
almaaqila/tugas-tengah-semester-pbp
7b7bc72ea19cedd61c77c26ed503efd9eb42bc0b
[ "MIT" ]
5
2021-10-14T15:22:52.000Z
2021-12-29T12:22:43.000Z
# Generated by Django 3.2.8 on 2021-10-26 06:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Artikel', fields=[ ('id', models.BigAutoFie...
30.37037
117
0.568293
3dd16e259ad940bf592d1ae6981fa9f729ae6a7f
4,063
py
Python
utils/nbtoc.py
mmxsrup/fuzzingbook
a57d1ac940c6bec78ba70f2e1ed04fd87aeeb49e
[ "MIT" ]
1
2021-11-02T18:40:46.000Z
2021-11-02T18:40:46.000Z
utils/nbtoc.py
mmxsrup/fuzzingbook
a57d1ac940c6bec78ba70f2e1ed04fd87aeeb49e
[ "MIT" ]
null
null
null
utils/nbtoc.py
mmxsrup/fuzzingbook
a57d1ac940c6bec78ba70f2e1ed04fd87aeeb49e
[ "MIT" ]
2
2019-12-28T16:53:57.000Z
2021-11-02T18:40:51.000Z
#!/usr/bin/env python # Create table of contents for given notebook(s) """ usage: python nbtoc.py A.ipynb B.ipynb C.ipynb """ import io, os, sys, types, re import nbformat import argparse def get_text_contents(notebook): with io.open(notebook, 'r', encoding='utf-8') as f: nb = nbformat.read(f, as_versi...
31.742188
149
0.634014
17e7278792a8cb8490f89df78b4e1172773c8be4
245
py
Python
app/loader.py
xandrade/alpha-api
03a6a43d1a9dd4c8f1d072b8af11751b17dc35d8
[ "MIT" ]
1
2021-12-20T16:08:37.000Z
2021-12-20T16:08:37.000Z
app/loader.py
xandrade/alpha-api
03a6a43d1a9dd4c8f1d072b8af11751b17dc35d8
[ "MIT" ]
null
null
null
app/loader.py
xandrade/alpha-api
03a6a43d1a9dd4c8f1d072b8af11751b17dc35d8
[ "MIT" ]
1
2022-01-11T21:50:57.000Z
2022-01-11T21:50:57.000Z
from dotenv import load_dotenv, find_dotenv def load_enviroment() -> None: """Load enviroment variables from .env file.""" path = find_dotenv() if path: load_dotenv(path) if __name__ == "__main__": load_enviroment()
17.5
51
0.665306
40f4bb126ed11d7b72dd904c3997c66a58264cc9
2,040
py
Python
source/participant/main.py
netzahdzc/mat-dashboard
b7ada2a6b1fcfca9b375417da1504b1894508719
[ "MIT" ]
null
null
null
source/participant/main.py
netzahdzc/mat-dashboard
b7ada2a6b1fcfca9b375417da1504b1894508719
[ "MIT" ]
null
null
null
source/participant/main.py
netzahdzc/mat-dashboard
b7ada2a6b1fcfca9b375417da1504b1894508719
[ "MIT" ]
null
null
null
# Copyright (c) 2017 CICESE # 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...
32.380952
115
0.743137