hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a22fdd7d14ecfd07b11dd803793dafe2d21afd0
4,391
py
Python
rokso/rokso.py
matrixbegins/rokso-migrations
96f1a92e6278c535db73d231867cc60226dd8f18
[ "MIT" ]
1
2022-03-15T13:17:47.000Z
2022-03-15T13:17:47.000Z
rokso/rokso.py
matrixbegins/rokso-migrations
96f1a92e6278c535db73d231867cc60226dd8f18
[ "MIT" ]
null
null
null
rokso/rokso.py
matrixbegins/rokso-migrations
96f1a92e6278c535db73d231867cc60226dd8f18
[ "MIT" ]
1
2020-05-13T14:12:20.000Z
2020-05-13T14:12:20.000Z
import click, sys, os, pathlib # sys.path.append(pathlib.Path(__file__).parent.absolute()) try: from .lib import agent except ImportError: from lib import agent @click.group() def cli(): pass @click.command('init', short_help='🚀 init your migration project. configures db connection parameters') @click...
43.91
208
0.73719
4a22fe21071891c677cbdc4409f946c2979fd518
383
py
Python
tests/python-reference/property/simple_property_decorator.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
25
2015-04-16T04:31:49.000Z
2022-03-10T15:53:28.000Z
tests/python-reference/property/simple_property_decorator.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2018-11-21T22:40:02.000Z
2018-11-26T17:53:11.000Z
tests/python-reference/property/simple_property_decorator.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2021-03-26T03:36:19.000Z
2021-03-26T03:36:19.000Z
class C(object): def __init__(self): self.x = 42 @property def f(self): self.x += 1 return self.x @f.setter def f(self, value): self.x = value @f.deleter def f(self): del self.x c = C() assert c.x == 42 assert c.f == 43 c.f = 55 assert c.x == 55 assert c.f == 56 del c.f assert not has...
15.32
26
0.582245
4a22fe3dc836ded77f9e576984da0d11042601e3
2,420
py
Python
crypto/xnuca-2020/imposter/task.py
BadMonkey7/funny-ctf-challenge
827caed5ab54f1da9217dfa25b034b9b398b11ef
[ "MIT" ]
2
2020-10-22T08:13:52.000Z
2021-01-16T06:56:24.000Z
crypto/xnuca-2020/imposter/task.py
BadMonkey7/funny-ctf-challenge
827caed5ab54f1da9217dfa25b034b9b398b11ef
[ "MIT" ]
null
null
null
crypto/xnuca-2020/imposter/task.py
BadMonkey7/funny-ctf-challenge
827caed5ab54f1da9217dfa25b034b9b398b11ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import random import string from hashlib import sha256 from Toy_AE import Toy_AE from secret import FLAG def proof_of_work(): random.seed(os.urandom(8)) proof = b''.join([random.choice(string.ascii_letters + string.digits).encode() for _ in range(20)]) digest = sha256(proo...
28.470588
103
0.572314
4a22ff454ee0aebd0e368db6956218984223477f
4,659
py
Python
configuration.py
SDRAST/support
ebe081692fc8c892c1389156e979d5baa7f8f0e6
[ "Apache-2.0" ]
null
null
null
configuration.py
SDRAST/support
ebe081692fc8c892c1389156e979d5baa7f8f0e6
[ "Apache-2.0" ]
null
null
null
configuration.py
SDRAST/support
ebe081692fc8c892c1389156e979d5baa7f8f0e6
[ "Apache-2.0" ]
null
null
null
""" module configuration - Provides a single file for program parameters Includes names of directories and files. Both functions are private, meant to be used only by software configuration generators. """ import os import datetime #from support.pyro import async # ----- general classes and functions for managing s...
32.58042
79
0.618158
4a23001717e15f004959047456813bc5d74f9513
3,361
py
Python
actions/configure_vcs_vip.py
StackStorm-Exchange/vdx_vtep
aa010847faf83a6c57be551133c76c999ee885f8
[ "Apache-2.0" ]
null
null
null
actions/configure_vcs_vip.py
StackStorm-Exchange/vdx_vtep
aa010847faf83a6c57be551133c76c999ee885f8
[ "Apache-2.0" ]
1
2017-05-03T16:09:28.000Z
2017-07-19T12:53:40.000Z
actions/configure_vcs_vip.py
StackStorm-Exchange/vdx_vtep
aa010847faf83a6c57be551133c76c999ee885f8
[ "Apache-2.0" ]
2
2017-05-03T12:43:55.000Z
2021-01-28T17:48:14.000Z
# Copyright 2017 Great Software Laboratory Pvt. Ltd. # # 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 ...
34.649485
100
0.607855
4a23004fa365a64140f9b665e2cd0df5eda9cdf8
4,532
py
Python
plaid_integration/plaid_integration/doctype/plaid_settings/plaid_settings.py
drivedgevd/plaid_integration
41965e6afee61586614f0de38e361e41a424be40
[ "MIT" ]
null
null
null
plaid_integration/plaid_integration/doctype/plaid_settings/plaid_settings.py
drivedgevd/plaid_integration
41965e6afee61586614f0de38e361e41a424be40
[ "MIT" ]
null
null
null
plaid_integration/plaid_integration/doctype/plaid_settings/plaid_settings.py
drivedgevd/plaid_integration
41965e6afee61586614f0de38e361e41a424be40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Drivedgevd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json from frappe import _ from frappe.utils import cstr from frappe.model.document import Document from frappe.utils import now_dateti...
34.861538
103
0.716461
4a2300c5a16548e846e5fdc7b94e8857711d0e49
1,043
py
Python
motey/val/plugins/xenVAL.py
Neoklosch/fog_node_prototype
d3f07d9d161d97ec2c19f66167dfb26eb9c6e616
[ "Apache-2.0" ]
null
null
null
motey/val/plugins/xenVAL.py
Neoklosch/fog_node_prototype
d3f07d9d161d97ec2c19f66167dfb26eb9c6e616
[ "Apache-2.0" ]
null
null
null
motey/val/plugins/xenVAL.py
Neoklosch/fog_node_prototype
d3f07d9d161d97ec2c19f66167dfb26eb9c6e616
[ "Apache-2.0" ]
1
2017-08-29T20:37:12.000Z
2017-08-29T20:37:12.000Z
import motey.val.plugins.abstractVAL as abstractVAL class XenVAL(abstractVAL.AbstractVAL): def __init__(self): super().__init__() def has_image(self, image_name): raise NotImplementedError("Should have implemented this") def load_image(self, image_name): raise NotImplementedError...
33.645161
65
0.731544
4a23018def484762eca33992075f151eb5927854
377
py
Python
tests/test_boolean.py
masteralves/python-fastjsonschema
c0f196463d517b45cf55f717b1468e4d9a5b68e8
[ "BSD-3-Clause" ]
1
2019-06-29T22:50:26.000Z
2019-06-29T22:50:26.000Z
tests/test_boolean.py
masteralves/python-fastjsonschema
c0f196463d517b45cf55f717b1468e4d9a5b68e8
[ "BSD-3-Clause" ]
null
null
null
tests/test_boolean.py
masteralves/python-fastjsonschema
c0f196463d517b45cf55f717b1468e4d9a5b68e8
[ "BSD-3-Clause" ]
null
null
null
import pytest from fastjsonschema import JsonSchemaException exc = JsonSchemaException('data must be boolean') @pytest.mark.parametrize('value, expected', [ (0, exc), (None, exc), (True, True), (False, False), ('abc', exc), ([], exc), ({}, exc), ]) def test_boolean(asserter, value, expec...
19.842105
50
0.628647
4a230208e901b1c867ca350bfeac4c23db34d799
1,265
py
Python
tests/test_event.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
7
2015-03-17T18:29:14.000Z
2020-01-03T06:45:43.000Z
tests/test_event.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
1
2015-06-04T03:06:46.000Z
2015-06-04T03:06:46.000Z
tests/test_event.py
johnnoone/aioconsul
02f7a529d7dc2e49bed942111067aa5faf320e90
[ "BSD-3-Clause" ]
2
2015-06-03T16:53:11.000Z
2021-12-16T13:38:23.000Z
import pytest from collections.abc import Mapping, Sequence @pytest.mark.asyncio async def test_endpoint(client): assert repr(client.event) == "<EventEndpoint(%r)>" % str(client.address) @pytest.mark.asyncio async def test_event(client): event = await client.event.fire("foobar") assert isinstance(event,...
28.111111
76
0.66166
4a230287b262e0bdd854cbbb419aa495ab1529bd
16,673
py
Python
language/mentionmemory/tasks/mention_memory_task.py
greck2908/language
61fa7260ac7d690d11ef72ca863e45a37c0bdc80
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/mentionmemory/tasks/mention_memory_task.py
greck2908/language
61fa7260ac7d690d11ef72ca863e45a37c0bdc80
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/mentionmemory/tasks/mention_memory_task.py
greck2908/language
61fa7260ac7d690d11ef72ca863e45a37c0bdc80
[ "Apache-2.0" ]
303
2018-10-22T12:35:12.000Z
2022-03-27T17:38:17.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
41.269802
130
0.704132
4a230290b2a46a40286a765697451db7b2fe7c4d
17,406
py
Python
news-analysis.py
harrypottercookies/Binance-News-Sentiment-Bot
28dcbc944f07cc9e1a507f7c7e202627740e736b
[ "MIT" ]
1,521
2021-04-17T17:45:31.000Z
2022-03-29T23:15:33.000Z
news-analysis.py
harrypottercookies/Binance-News-Sentiment-Bot
28dcbc944f07cc9e1a507f7c7e202627740e736b
[ "MIT" ]
56
2021-04-18T11:26:01.000Z
2022-02-20T16:26:31.000Z
news-analysis.py
harrypottercookies/Binance-News-Sentiment-Bot
28dcbc944f07cc9e1a507f7c7e202627740e736b
[ "MIT" ]
305
2021-04-17T18:39:54.000Z
2022-03-19T03:55:06.000Z
# import for environment variables and waiting import os, time # used to parse XML feeds import xml.etree.ElementTree as ET # we use it to make async http requests import aiohttp # allows us to make our functions async import asyncio # date modules that we'll most likely need from datetime import date, datetime, t...
33.602317
178
0.645237
4a23035b6afed8018c6e4eacd2896ef4d9fb84ca
982
py
Python
examples/hacker_news/setup.py
devarajnadiger/dagster
fae430f1d9463c23a427efa06dc9d0deb76429bb
[ "Apache-2.0" ]
1
2021-07-03T09:05:58.000Z
2021-07-03T09:05:58.000Z
examples/hacker_news/setup.py
devarajnadiger/dagster
fae430f1d9463c23a427efa06dc9d0deb76429bb
[ "Apache-2.0" ]
null
null
null
examples/hacker_news/setup.py
devarajnadiger/dagster
fae430f1d9463c23a427efa06dc9d0deb76429bb
[ "Apache-2.0" ]
1
2021-11-30T21:40:46.000Z
2021-11-30T21:40:46.000Z
from setuptools import find_packages, setup setup( name="hacker_news", version="dev", author="Elementl", author_email="hello@elementl.com", classifiers=[ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8"...
25.179487
59
0.529532
4a23053ee79a5b0ca4778c00df082e10ca546359
3,063
py
Python
src/wired_components/request/utils.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
1
2019-09-15T12:30:44.000Z
2019-09-15T12:30:44.000Z
src/wired_components/request/utils.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
null
null
null
src/wired_components/request/utils.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
null
null
null
""" Mimic the various Pyramid path helpers. """ from typing import Union, Optional, List from wired_components.resource import Root, Resource SEP = "/" # Taken from Sphinx def relative_uri(base: str, to: str): """Return a relative URL from ``base`` to ``to``.""" # if to.startswith(SEP): # return ...
27.594595
75
0.613777
4a23057d86a74b89121841778f8c5df325dd8380
2,344
py
Python
predict.py
GT-AcerZhang/yolov3.insects_challenge
1ac6ee5a8a5c534ec11723542f4c10583935a2ad
[ "MIT" ]
1
2021-02-27T17:59:32.000Z
2021-02-27T17:59:32.000Z
predict.py
GT-AcerZhang/yolov3.insects_challenge
1ac6ee5a8a5c534ec11723542f4c10583935a2ad
[ "MIT" ]
1
2020-06-12T07:29:27.000Z
2020-06-12T07:29:27.000Z
predict.py
GT-AcerZhang/yolov3.insects_challenge
1ac6ee5a8a5c534ec11723542f4c10583935a2ad
[ "MIT" ]
1
2021-03-05T11:08:50.000Z
2021-03-05T11:08:50.000Z
# -*- coding: utf-8 -*- import numpy as np import paddle.fluid as fluid from paddle.fluid.dygraph.base import to_variable from reader import single_image_data_loader from multinms import multiclass_nms from yolov3 import YOLOv3 from draw_results import draw_results import argparse def parse_args(): parser = ar...
29.670886
88
0.605375
4a230ac34dba750db1e6266fd2c08488cfc9e9b8
450
py
Python
bio_embeddings/__init__.py
kvetab/bio_embeddings
97309f73c964861f6e4e3d4510f4b5711d3b6b32
[ "MIT" ]
219
2020-01-19T16:39:09.000Z
2022-03-21T16:02:04.000Z
bio_embeddings/__init__.py
kvetab/bio_embeddings
97309f73c964861f6e4e3d4510f4b5711d3b6b32
[ "MIT" ]
175
2019-12-05T13:27:14.000Z
2022-03-30T16:58:32.000Z
bio_embeddings/__init__.py
kvetab/bio_embeddings
97309f73c964861f6e4e3d4510f4b5711d3b6b32
[ "MIT" ]
33
2019-12-16T09:59:44.000Z
2022-03-05T06:35:16.000Z
""" The functionality of bio_embeddings is split into 5 different modules .. autosummary:: bio_embeddings.embed bio_embeddings.extract bio_embeddings.project bio_embeddings.utilities bio_embeddings.visualize """ import bio_embeddings.embed import bio_embeddings.extract import bio_embeddings.project imp...
23.684211
69
0.797778
4a230b54319b43590b53a4007e6dcaeed7548014
4,667
py
Python
scripts/compute_attribution_maps.py
dgrinwald93/pytorch_bnns
09bf7504f30373229579f15e847f1a7f87cf6ef0
[ "Apache-2.0" ]
null
null
null
scripts/compute_attribution_maps.py
dgrinwald93/pytorch_bnns
09bf7504f30373229579f15e847f1a7f87cf6ef0
[ "Apache-2.0" ]
null
null
null
scripts/compute_attribution_maps.py
dgrinwald93/pytorch_bnns
09bf7504f30373229579f15e847f1a7f87cf6ef0
[ "Apache-2.0" ]
null
null
null
import os import sys import json import copy import time import matplotlib.pyplot as plt from scipy.stats import entropy import numpy as np import torch from torch import cuda, device from curvature.sampling import invert_factors from pbnn.datasets.get_datasets import * from pbnn.models.utils import s...
35.356061
132
0.667881
4a230bc4631a4c98380a434647a49287aef1599e
15,351
py
Python
egs/word_embedding/steps/tfrnnlm/fast_cbow.py
charlesliucn/LanMIT
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
17
2019-07-08T08:34:50.000Z
2021-11-19T13:39:29.000Z
egs/word_embedding/steps/tfrnnlm/fast_cbow.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
egs/word_embedding/steps/tfrnnlm/fast_cbow.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import os import sys import time import math import reader import random import inspect import collections import numpy as np import tensorflow as tf reload(sys) sys.setdefaultencoding("utf-8") os.environ["CUDA_VISIBLE_DEVICES"] = "5" config = tf.ConfigProto() config.gpu_options.per_process_g...
33.962389
115
0.712787
4a230c50923f6defb1f39ad8b9bf8e41a7288ba8
49,485
py
Python
AppPkg/Applications/Python/Python-2.7.2/Lib/httplib.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/httplib.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/httplib.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
"""HTTP/1.1 client library <intro stuff goes here> <other stuff, too> HTTPConnection goes through a number of "states", which define when a client may legally make another request or fetch the response for a particular request. This diagram details these state transitions: (null) | | HTTPC...
35.524049
86
0.558472
4a230cb443d1a97b9a69bd2a7164f3612c1e9ecc
1,077
py
Python
tests/config/testing.py
medecau/lamson
e78520b857384462b9eecdedfc0f8c2e57cdd00a
[ "BSD-3-Clause" ]
null
null
null
tests/config/testing.py
medecau/lamson
e78520b857384462b9eecdedfc0f8c2e57cdd00a
[ "BSD-3-Clause" ]
null
null
null
tests/config/testing.py
medecau/lamson
e78520b857384462b9eecdedfc0f8c2e57cdd00a
[ "BSD-3-Clause" ]
null
null
null
from config import settings from lamson import view from lamson.routing import Router from lamson.server import Relay import jinja2 import logging import logging.config import os # configure logging to go to a log file logging.config.fileConfig("tests/config/logging.conf") # the relay host to actually send the final ...
32.636364
90
0.777159
4a230ccc50f3eb4aab305c414d6ec079c65b6692
2,185
py
Python
one_app/img/app (1).py
wikucha/Alfik
541124dbe1c458fac54da65a80d9577a9abf3954
[ "MIT" ]
1
2018-05-17T10:26:51.000Z
2018-05-17T10:26:51.000Z
one_app/img/app (1).py
wikucha/Alfik
541124dbe1c458fac54da65a80d9577a9abf3954
[ "MIT" ]
21
2018-01-26T14:47:43.000Z
2018-06-08T06:56:17.000Z
one_app/img/app (1).py
wikucha/Alfik
541124dbe1c458fac54da65a80d9577a9abf3954
[ "MIT" ]
1
2021-01-20T18:09:54.000Z
2021-01-20T18:09:54.000Z
from kivy.app import App from kivy.lang import Builder from kivy.uix.screenmanager import ScreenManager, Screen from kivy.graphics import Color, Rectangle from kivy.core.window import Window from learn import LearnScreen from memory import MemoryScreen from fon_quiz import FonquizScreen from tools import load_lang, lo...
29.931507
77
0.667735
4a230d265f8e43711e49f539fbc194d7c430039c
1,087
py
Python
HausdorffDistance/ROICoordinate.py
az7jh2/My-Raystation-Scripts
3454378239320c2944fd96de8cb86be8824b5210
[ "MIT" ]
1
2021-05-29T22:48:49.000Z
2021-05-29T22:48:49.000Z
HausdorffDistance/ROICoordinate.py
az7jh2/My-Raystation-Scripts
3454378239320c2944fd96de8cb86be8824b5210
[ "MIT" ]
null
null
null
HausdorffDistance/ROICoordinate.py
az7jh2/My-Raystation-Scripts
3454378239320c2944fd96de8cb86be8824b5210
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #根据ROI类型,获取ROI的点坐标 def RoiCoord(structure_set,x): #每一序列下有多个ROIGeometries,可用RoiGeometries[0],[1]或RoiGeometries['ROI名']访问具体的一个ROI roi_geometries=structure_set.RoiGeometries[x] #Contours中包含有组成该ROI轮廓线的所有点坐标(DICOM格式) #指定Contours的长度len为其所含的CT层数,类型为list,可用Contours[0],[1]访问 #每一层CT指定轮廓线Contours[0...
43.48
81
0.687213
4a230db78c41cce0d8f52d733e02dacbb0a81496
26,538
py
Python
tensorforce/models/memory_model.py
hcarlens/tensorforce
e28898c6a07c2d4b4245008dee7a5324f0530cbe
[ "Apache-2.0" ]
null
null
null
tensorforce/models/memory_model.py
hcarlens/tensorforce
e28898c6a07c2d4b4245008dee7a5324f0530cbe
[ "Apache-2.0" ]
null
null
null
tensorforce/models/memory_model.py
hcarlens/tensorforce
e28898c6a07c2d4b4245008dee7a5324f0530cbe
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 reinforce.io. 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...
41.336449
121
0.612593
4a230f2c152b6cd81c2fba8a78397490d0b2f074
20,499
py
Python
nemo/collections/nlp/models/intent_slot_classification/intent_slot_classification_model.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
2
2021-09-21T07:36:20.000Z
2022-02-05T15:29:04.000Z
nemo/collections/nlp/models/intent_slot_classification/intent_slot_classification_model.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/models/intent_slot_classification/intent_slot_classification_model.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
12
2021-06-20T08:56:10.000Z
2022-03-16T19:07:10.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
42.006148
223
0.655495
4a230f32efe95095bb6de392b4d6fb34fff5f4f6
1,518
py
Python
src/kvt/losses/arcface.py
Ynakatsuka/birdclef-2021
d7cf7b39e3164a75547ee50cc9a29bd5ed4c29bd
[ "BSD-2-Clause" ]
6
2021-06-02T01:40:27.000Z
2022-03-04T05:00:52.000Z
src/kvt/losses/arcface.py
Ynakatsuka/birdclef-2021
d7cf7b39e3164a75547ee50cc9a29bd5ed4c29bd
[ "BSD-2-Clause" ]
null
null
null
src/kvt/losses/arcface.py
Ynakatsuka/birdclef-2021
d7cf7b39e3164a75547ee50cc9a29bd5ed4c29bd
[ "BSD-2-Clause" ]
null
null
null
import math import torch import torch.nn.functional as F from torch import nn class DenseCrossEntropy(nn.Module): def forward(self, x, target, reduction="mean"): x = x.float() target = target.float() logprobs = torch.nn.functional.log_softmax(x, dim=-1) loss = -logprobs * target ...
32.297872
71
0.577734
4a230fd6b4eab0e7a90e7a3c3d460a727645311d
449
py
Python
pproxy/__doc__.py
NellyD3v/python-proxy
7fccf8dd62204f34b0aa3a70fc568fd6ddff7728
[ "MIT" ]
1
2021-01-12T04:29:45.000Z
2021-01-12T04:29:45.000Z
pproxy/__doc__.py
NellyD3v/python-proxy
7fccf8dd62204f34b0aa3a70fc568fd6ddff7728
[ "MIT" ]
null
null
null
pproxy/__doc__.py
NellyD3v/python-proxy
7fccf8dd62204f34b0aa3a70fc568fd6ddff7728
[ "MIT" ]
null
null
null
__title__ = "pproxy" __version__ = "2.3.7" __license__ = "MIT" __description__ = "Proxy server that can tunnel among remote servers by regex rules." __keywords__ = "proxy socks http shadowsocks shadowsocksr ssr redirect pf tunnel cipher ssl udp" __author__ = "Qian Wenjie" __email__ = "qianwe...
40.818182
99
0.699332
4a231001413bec79943339bbb43fe7e8613cfde6
1,395
py
Python
kitkopt/utilities.py
jgolebiowski/kitkopt
0b46d38004b75799dd1e8603a445b1d711c03735
[ "MIT" ]
6
2018-11-19T09:49:19.000Z
2020-01-16T00:21:14.000Z
kitkopt/utilities.py
jgolebiowski/kitkopt
0b46d38004b75799dd1e8603a445b1d711c03735
[ "MIT" ]
null
null
null
kitkopt/utilities.py
jgolebiowski/kitkopt
0b46d38004b75799dd1e8603a445b1d711c03735
[ "MIT" ]
1
2019-02-20T19:57:47.000Z
2019-02-20T19:57:47.000Z
import functools import sys import time def debugtool(some_function): """ Wrapper that launches a post mortem pdb debugger on errors in the function """ @functools.wraps(some_function) def wrapper(*args, **kwargs): try: return some_function(*args, **kwargs) except: ...
21.461538
98
0.618638
4a2310f1cf9c1e85c3f716308663aeb41eaf447c
47,692
py
Python
tests/sentry/event_manager/test_event_manager.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/event_manager/test_event_manager.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/event_manager/test_event_manager.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import logging from sentry.utils.compat import mock import pytest import uuid from collections import namedtuple from datetime import datetime, timedelta from django.utils import timezone from time import time from sentry import nodestor...
36.048375
100
0.60096
4a23118f9a19b9d5c62130d94d29de602873c349
2,544
py
Python
python/equeenInput.py
Fatizel/EightQueensPuzzle
d8fd190621be9d2e0cbc835df360024cc6e5b8d3
[ "MIT" ]
null
null
null
python/equeenInput.py
Fatizel/EightQueensPuzzle
d8fd190621be9d2e0cbc835df360024cc6e5b8d3
[ "MIT" ]
null
null
null
python/equeenInput.py
Fatizel/EightQueensPuzzle
d8fd190621be9d2e0cbc835df360024cc6e5b8d3
[ "MIT" ]
null
null
null
import datetime #import library for conection db from sqlalchemy import create_engine # Funtion for define if exist a queen in the dashboard def verification(row, col, queens): if not len(queens): return False for queen in queens: if not len(queen): continue r,c = queen if ...
33.038961
108
0.639151
4a2312c1d6639d0e4c867b3a9c5a815a576e1d32
2,671
py
Python
var/spack/repos/builtin/packages/r-genomicranges/package.py
robertsawko/spack
135cf4835f5b646c4aaa0e2eb5552c80fc3a5ce8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-11-28T10:14:14.000Z
2019-11-28T10:14:14.000Z
var/spack/repos/builtin/packages/r-genomicranges/package.py
robertsawko/spack
135cf4835f5b646c4aaa0e2eb5552c80fc3a5ce8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-genomicranges/package.py
robertsawko/spack
135cf4835f5b646c4aaa0e2eb5552c80fc3a5ce8
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2017-01-21T17:19:32.000Z
2017-01-21T17:19:32.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RGenomicranges(RPackage): """Representation and manipulation of genomic intervals. ...
51.365385
80
0.681018
4a2312d1b20262e42760698917b2465f453e499f
21,540
py
Python
test/chain_lighting.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
1
2017-10-04T12:21:20.000Z
2017-10-04T12:21:20.000Z
test/chain_lighting.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
null
null
null
test/chain_lighting.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
null
null
null
import copy import inspect from functools import reduce from itertools import islice from reprlib import recursive_repr from collections import Iterator, Iterable, OrderedDict, Mapping class OrderedTable(OrderedDict): """ enabling dot operation for dict/OrderedDict Example: >>> t = OrderedTable({'key1...
29.506849
114
0.516806
4a2312d5aad749a7ae10fc8daa93546207067ebd
453
py
Python
eventkit_cloud/jobs/migrations/0014_dataprovidertype_use_bbox.py
zta6/eventkit-cloud
a9e1aaa2bbfd3d11d3cf3df91e413e6220d6e876
[ "BSD-3-Clause" ]
9
2019-02-27T19:42:02.000Z
2021-05-09T14:16:28.000Z
eventkit_cloud/jobs/migrations/0014_dataprovidertype_use_bbox.py
zta6/eventkit-cloud
a9e1aaa2bbfd3d11d3cf3df91e413e6220d6e876
[ "BSD-3-Clause" ]
9
2019-05-14T01:23:30.000Z
2021-05-26T07:53:09.000Z
eventkit_cloud/jobs/migrations/0014_dataprovidertype_use_bbox.py
zta6/eventkit-cloud
a9e1aaa2bbfd3d11d3cf3df91e413e6220d6e876
[ "BSD-3-Clause" ]
3
2019-04-24T07:09:54.000Z
2021-04-14T02:42:53.000Z
# Generated by Django 3.1.2 on 2021-05-04 14:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0013_add_ogc_process_provider'), ] operations = [ migrations.AddField( model_name='dataprovidertype', name='...
23.842105
104
0.635762
4a231386e563f3729a208f7d303d54e6e383de34
6,547
py
Python
pynet/models/CoRA.py
Duplums/pynet
5f91dc2e80c2eb4e44d57403dd65aa80e8a5875b
[ "CECILL-B" ]
null
null
null
pynet/models/CoRA.py
Duplums/pynet
5f91dc2e80c2eb4e44d57403dd65aa80e8a5875b
[ "CECILL-B" ]
null
null
null
pynet/models/CoRA.py
Duplums/pynet
5f91dc2e80c2eb4e44d57403dd65aa80e8a5875b
[ "CECILL-B" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F def passthrough(x, **kwargs): return x def ELUCons(elu, nchan): if elu: return nn.LeakyReLU(inplace=True) else: return nn.PReLU(nchan) # normalization between sub-volumes is necessary # for good performance class ContBatc...
35.389189
120
0.608676
4a23147a4630c083a1cf2db91864eb8ad3a03d17
2,014
py
Python
pcat2py/class/22326cdc-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/22326cdc-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/22326cdc-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 22326cdc-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
33.016393
120
0.518868
4a2314b0c4c4cc7ba108544d4685aaec852e2d94
10,476
py
Python
sensor/optimization_stock_weight_v0.py
jokbull/benew_model
12dfcfcf48a8fd14d62faee5e79e9ac83b0f02d7
[ "MIT" ]
1
2019-05-27T02:13:47.000Z
2019-05-27T02:13:47.000Z
sensor/optimization_stock_weight_v0.py
jokbull/benew_model
12dfcfcf48a8fd14d62faee5e79e9ac83b0f02d7
[ "MIT" ]
null
null
null
sensor/optimization_stock_weight_v0.py
jokbull/benew_model
12dfcfcf48a8fd14d62faee5e79e9ac83b0f02d7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @author: scrat import numpy as np from cvxopt import solvers, matrix from collider.data.sensor import Sensor class OptimizationStockWeight(Sensor): @property def output_variables(self): return ["targetWeight"] def do(self, date, mp, **kwargs): # region 读入参数, 对...
37.414286
156
0.524723
4a2317e31d84ee633eb1f64926f7f757502123df
592
py
Python
decorate_args/main.py
FlynnOwen/Python-utils
7d720c6654aba69115b5bc5cdfd8052d93a438b6
[ "MIT" ]
2
2022-03-27T03:51:02.000Z
2022-03-27T09:03:22.000Z
decorate_args/main.py
FlynnOwen/Python-utils
7d720c6654aba69115b5bc5cdfd8052d93a438b6
[ "MIT" ]
null
null
null
decorate_args/main.py
FlynnOwen/Python-utils
7d720c6654aba69115b5bc5cdfd8052d93a438b6
[ "MIT" ]
null
null
null
def prefix_decorator(prefix): def decorator_function(original_function): def wrapper_function(*args, **kwargs): print(prefix, 'Executed before', original_function.__name__) result = original_function(*args, **kwargs) print(prefix, 'Executed after', original_function.__nam...
31.157895
77
0.680743
4a2319e0236c6cd5771ac6ca88cf8b5573e07ab9
362
py
Python
ex_08_05/ex_08_05.py
ColinTing/Python-Specialization
7a1b096362526d3574e9d787c9a63d3d13686608
[ "MIT" ]
2
2019-05-04T12:25:34.000Z
2019-05-04T15:18:03.000Z
ex_08_05/ex_08_05.py
ColinTing/Python-for-Everybody-Specialization
7a1b096362526d3574e9d787c9a63d3d13686608
[ "MIT" ]
null
null
null
ex_08_05/ex_08_05.py
ColinTing/Python-for-Everybody-Specialization
7a1b096362526d3574e9d787c9a63d3d13686608
[ "MIT" ]
null
null
null
fname = input("Enter file name: ") if len(fname) < 1 : fname = "mbox-short.txt" fh = open(fname) count = 0 #lst = list() for line in fh: line = line.rstrip() lst = line.split() if len(lst)>1 and lst[0] == "From": count = count + 1 print(lst[1]) print("There were", count, "lines ...
24.133333
75
0.571823
4a231a29a5b6e41b53cc9186da387e20c4b3fd58
647
py
Python
anno/views.py
voelkerb/annoticity
8c99fcd5c42b8b170bf54eaf7474db661eb9b45d
[ "CC0-1.0" ]
5
2021-03-08T16:54:19.000Z
2021-10-02T08:14:38.000Z
anno/views.py
voelkerb/annoticity
8c99fcd5c42b8b170bf54eaf7474db661eb9b45d
[ "CC0-1.0" ]
null
null
null
anno/views.py
voelkerb/annoticity
8c99fcd5c42b8b170bf54eaf7474db661eb9b45d
[ "CC0-1.0" ]
null
null
null
from django.shortcuts import render import json from . import redd from . import fired from . import blond from . import eco from . import ukdale def index(request): """ view function for sales app """ reddInfo = redd.info() firedInfo = fired.info() blondInfo = blond.info() ecoInfo = eco.info() ...
29.409091
228
0.700155
4a231a7ea031355ecb03dda9d780f2cbde05bd97
4,479
py
Python
pocs/tests/test_config.py
zacharyt20/POCS
8f785eaf27178be7d72106cb82e5400a8b852ba8
[ "MIT" ]
1
2019-07-19T10:37:08.000Z
2019-07-19T10:37:08.000Z
pocs/tests/test_config.py
zacharyt20/POCS
8f785eaf27178be7d72106cb82e5400a8b852ba8
[ "MIT" ]
null
null
null
pocs/tests/test_config.py
zacharyt20/POCS
8f785eaf27178be7d72106cb82e5400a8b852ba8
[ "MIT" ]
null
null
null
import os import pytest import uuid import yaml from astropy import units as u from pocs.utils.config import load_config from pocs.utils.config import save_config def test_load_simulator(config): assert 'camera' in config['simulator'] assert 'mount' in config['simulator'] assert 'weather' in config['sim...
25.448864
85
0.658406
4a231b1a5fd4d69717fce7ec7c00535eccdeb34b
4,792
py
Python
inter_iit.py
ISROMP/MP_ISRO_T13
6cde7c4866a47a2819197f82e83d77735661e5d0
[ "MIT" ]
null
null
null
inter_iit.py
ISROMP/MP_ISRO_T13
6cde7c4866a47a2819197f82e83d77735661e5d0
[ "MIT" ]
null
null
null
inter_iit.py
ISROMP/MP_ISRO_T13
6cde7c4866a47a2819197f82e83d77735661e5d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """inter_iit.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1mrxMKcojB1HFFw6kTOKMIdMZdx7ZmPiI """ import matplotlib.pyplot as plt import numpy as np from astropy.visualization import astropy_mpl_style plt.style.use(astrop...
20.925764
102
0.657972
4a231c476844b6bcdc5c0dff40754205f7b43483
2,305
py
Python
vega/trainer/modules/conf/loss.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
724
2020-06-22T12:05:30.000Z
2022-03-31T07:10:54.000Z
vega/trainer/modules/conf/loss.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
147
2020-06-30T13:34:46.000Z
2022-03-29T11:30:17.000Z
vega/trainer/modules/conf/loss.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
160
2020-06-29T18:27:58.000Z
2022-03-23T08:42:21.000Z
# -*- coding=utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
36.015625
102
0.636009
4a231d83cd4de21b0fc11818433bb64ca3a12db4
489
py
Python
blender/arm/logicnode/scene/LN_set_scene_active.py
notwarp/armory
bd6078e3035eefcb3c725664698eeb369b4c2d88
[ "Zlib" ]
null
null
null
blender/arm/logicnode/scene/LN_set_scene_active.py
notwarp/armory
bd6078e3035eefcb3c725664698eeb369b4c2d88
[ "Zlib" ]
null
null
null
blender/arm/logicnode/scene/LN_set_scene_active.py
notwarp/armory
bd6078e3035eefcb3c725664698eeb369b4c2d88
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class SetSceneNode(ArmLogicTreeNode): """Sets the active scene.""" bl_idname = 'LNSetSceneNode' bl_label = 'Set Scene Active' arm_version = 1 def init(self, context): super(SetSceneNode, self).init(context) self.add_input('ArmNodeSocketAction',...
30.5625
54
0.674847
4a231e0719f77b0cb5128a896a17d6ee62ffa1d0
149
py
Python
ding/worker/__init__.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
464
2021-07-08T07:26:33.000Z
2022-03-31T12:35:16.000Z
ding/worker/__init__.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
177
2021-07-09T08:22:55.000Z
2022-03-31T07:35:22.000Z
ding/worker/__init__.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
92
2021-07-08T12:16:37.000Z
2022-03-31T09:24:41.000Z
from .collector import * from .learner import * from .replay_buffer import * from .coordinator import * from .adapter import * from .buffer import *
21.285714
28
0.758389
4a231e2098419df2281fba0e307580332842ba6b
8,465
py
Python
applications/popart/bert/utils/packed_bert_utils.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
260
2019-11-18T01:50:00.000Z
2022-03-28T23:08:53.000Z
applications/popart/bert/utils/packed_bert_utils.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
27
2020-01-28T23:07:50.000Z
2022-02-14T15:37:06.000Z
applications/popart/bert/utils/packed_bert_utils.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
56
2019-11-18T02:13:12.000Z
2022-02-28T14:36:09.000Z
# Copyright (c) 2021 Graphcore Ltd. 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 l...
50.688623
131
0.691199
4a231e56a4b2169f65f4a6a2e33d04beea4563af
1,909
py
Python
jupyter_releaser/python.py
jupyterlab-bot/jupyter_releaser
1ef0ebcc39cb268ef8949e809582bd9a5a244dc3
[ "BSD-3-Clause" ]
null
null
null
jupyter_releaser/python.py
jupyterlab-bot/jupyter_releaser
1ef0ebcc39cb268ef8949e809582bd9a5a244dc3
[ "BSD-3-Clause" ]
59
2021-03-09T10:11:27.000Z
2021-04-13T09:06:46.000Z
jupyter_releaser/python.py
jupyterlab-bot/jupyter_releaser
1ef0ebcc39cb268ef8949e809582bd9a5a244dc3
[ "BSD-3-Clause" ]
1
2021-05-02T16:04:02.000Z
2021-05-02T16:04:02.000Z
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import os import os.path as osp import re from glob import glob from pathlib import Path from tempfile import TemporaryDirectory from jupyter_releaser import util PYPROJECT = util.PYPROJECT SETUP_PY = util.SETUP_PY ...
33.491228
73
0.647459
4a231f55460cc6ddfb4ad565e8064fae0de63ca8
9,859
py
Python
mapillary_tools/commands/process_and_upload.py
testbalda/mapillary_tools
07c00bb83815e512e1b85f5957b7d1ac9dfdeb0c
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/commands/process_and_upload.py
testbalda/mapillary_tools
07c00bb83815e512e1b85f5957b7d1ac9dfdeb0c
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/commands/process_and_upload.py
testbalda/mapillary_tools
07c00bb83815e512e1b85f5957b7d1ac9dfdeb0c
[ "BSD-2-Clause" ]
null
null
null
import inspect from mapillary_tools.process_user_properties import process_user_properties from mapillary_tools.process_import_meta_properties import process_import_meta_properties from mapillary_tools.process_geotag_properties import process_geotag_properties from mapillary_tools.process_sequence_properties import pro...
70.421429
402
0.666396
4a231fdf8251014862b5592ff8df939633c425a1
8,844
py
Python
src/gluonts/distribution/distribution.py
strawberrypie/gluon-ts
1d27423478f1dc4621f81c4659d8ba78f88ee89b
[ "Apache-2.0" ]
1
2020-01-19T13:27:51.000Z
2020-01-19T13:27:51.000Z
src/gluonts/distribution/distribution.py
strawberrypie/gluon-ts
1d27423478f1dc4621f81c4659d8ba78f88ee89b
[ "Apache-2.0" ]
null
null
null
src/gluonts/distribution/distribution.py
strawberrypie/gluon-ts
1d27423478f1dc4621f81c4659d8ba78f88ee89b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
29.092105
81
0.604251
4a23206136e1051895444fde51bd589585c365f6
2,153
py
Python
nicos_demo/mantid/setups/pixels.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_demo/mantid/setups/pixels.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_demo/mantid/setups/pixels.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Example Sans2D Pixel Detector Setup with Instrument View' group = 'basic' sysconfig = dict( instrument = 'sans2d', ) devices = dict( sans2d = device('nicos_demo.mantid.devices.instrument.ViewableInstrument', description = 'instrument object', responsible = 'R. Esponsible <r.esp...
32.134328
89
0.553646
4a232146daaff1e6c2dae009900ce361f4e24083
4,276
py
Python
omnifit/fitter/functions.py
astrobot/omnifit
7cc9e499fd149d6d3a3a15761c5380778a3f4f42
[ "BSD-3-Clause" ]
6
2015-08-25T16:40:30.000Z
2021-05-13T08:25:07.000Z
omnifit/fitter/functions.py
astrobot/omnifit
7cc9e499fd149d6d3a3a15761c5380778a3f4f42
[ "BSD-3-Clause" ]
22
2015-08-27T15:19:50.000Z
2022-01-12T18:50:31.000Z
omnifit/fitter/functions.py
astrobot/omnifit
7cc9e499fd149d6d3a3a15761c5380778a3f4f42
[ "BSD-3-Clause" ]
4
2015-12-31T19:24:48.000Z
2019-06-18T07:28:19.000Z
import numpy as np from astropy import convolution def muldata(data,mul): """ muldata(data,mul) Multiplies data with a given multiplier, and returns the result. Parameters ---------- data : numpy.ndarray The data to multiply mul : float The multiplier to multiply the data with Returns ----...
31.441176
98
0.693405
4a23214cb6ef31dcabd174b1e2fb16d5d23f0b02
106,495
py
Python
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_alias_id/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_alias_id/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_alias_id/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
59.997183
7,352
0.489676
4a23216edbaeb4d6a154a269a4a9a8486f2944a6
2,108
py
Python
flasky_db/env.py
simonZhou-x/flasky-simon
b1ff326a9d12bccd838348aa4edf4abc311a60c7
[ "MIT" ]
null
null
null
flasky_db/env.py
simonZhou-x/flasky-simon
b1ff326a9d12bccd838348aa4edf4abc311a60c7
[ "MIT" ]
null
null
null
flasky_db/env.py
simonZhou-x/flasky-simon
b1ff326a9d12bccd838348aa4edf4abc311a60c7
[ "MIT" ]
null
null
null
from __future__ import with_statement from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../") from manage import db # this is the Alembic Config object, which provides # ac...
28.486486
69
0.726281
4a2321a87b984a344edbeca64234cd4aaf5cefa6
15,162
py
Python
dodola/core.py
brews/dodola
f209631654f9c5658bbf8a824eca7e3742c8aafe
[ "Apache-2.0" ]
1
2020-11-20T21:25:47.000Z
2020-11-20T21:25:47.000Z
dodola/core.py
brews/dodola
f209631654f9c5658bbf8a824eca7e3742c8aafe
[ "Apache-2.0" ]
null
null
null
dodola/core.py
brews/dodola
f209631654f9c5658bbf8a824eca7e3742c8aafe
[ "Apache-2.0" ]
null
null
null
"""Core logic for bias-correction and downscaling Math stuff and business logic goes here. This is the "business logic". """ import numpy as np import logging from skdownscale.spatial_models import SpatialDisaggregator import xarray as xr from xclim import sdba, set_options from xclim.sdba.utils import equally_space...
31.456432
226
0.65895
4a232287cbf80188706afa6aedfe1fdfc6dccb61
896
py
Python
altair/examples/simple_scatter_with_errorbars.py
Mechachleopteryx/altair
c1523443f2a3c15c6181a3a7a154351518784df7
[ "BSD-3-Clause" ]
6,831
2016-09-23T19:35:19.000Z
2022-03-31T13:29:39.000Z
altair/examples/simple_scatter_with_errorbars.py
Mechachleopteryx/altair
c1523443f2a3c15c6181a3a7a154351518784df7
[ "BSD-3-Clause" ]
2,068
2016-09-23T14:53:23.000Z
2022-03-31T01:43:15.000Z
altair/examples/simple_scatter_with_errorbars.py
Mechachleopteryx/altair
c1523443f2a3c15c6181a3a7a154351518784df7
[ "BSD-3-Clause" ]
711
2016-09-26T16:59:18.000Z
2022-03-24T11:32:40.000Z
""" Simple Scatter Plot with Errorbars ---------------------------------- A simple scatter plot of a data set with errorbars. """ # category: scatter plots import altair as alt import pandas as pd import numpy as np # generate some data points with uncertainties np.random.seed(0) x = [1, 2, 3, 4, 5] y = np.random.norm...
20.363636
53
0.631696
4a23231154521c0c9179cba7c140cd7bedc3ddda
2,431
py
Python
src/python/DTNRMAgent/RecurringActions/Plugins/CPUInfo.py
juztas/backup-siterm
28f4027e8c9995df5a969dee3d65263b9a09d075
[ "Apache-2.0" ]
null
null
null
src/python/DTNRMAgent/RecurringActions/Plugins/CPUInfo.py
juztas/backup-siterm
28f4027e8c9995df5a969dee3d65263b9a09d075
[ "Apache-2.0" ]
null
null
null
src/python/DTNRMAgent/RecurringActions/Plugins/CPUInfo.py
juztas/backup-siterm
28f4027e8c9995df5a969dee3d65263b9a09d075
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Plugin which produces all info from lscpu It produces: {'CPU(s)': 2, 'L1d cache': '32K', 'CPU op-mode(s)': '32-bit, 64-bit', 'NUMA node0 CPU(s)': '0,1', 'Hypervisor vendor': 'VMware', 'L2 cache': '256K', 'L1i cache': '32K', 'CPU MHz': 3392.164, 'Core(s) per socket': 1, 'Virtualization type':...
42.649123
111
0.663924
4a23241529ad082c45904a034a3d43c59f5113d9
3,912
py
Python
handwritten_digits/element_wise_operations.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
handwritten_digits/element_wise_operations.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
handwritten_digits/element_wise_operations.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
import numpy as np def naive_relu(x): # X must be 2D Numpy tensor assert len(x.shape) == 2 # Avoid overwriting the input tensor x = x.copy() for row in range(x.shape[0]): for col in range(x.shape[1]): x[row, col] = max(x[row, col], 0) return x def naive_add(x, y): #...
23.42515
84
0.55956
4a2324500db1154b46bf7bcc1946bf61ed677cd8
2,915
py
Python
server/tests/dbtest.py
Kraken-CI/kraken
cc64cc1791e8d35bf978edac4cc65db738cf5133
[ "Apache-2.0" ]
66
2020-08-14T12:52:39.000Z
2022-03-31T13:56:25.000Z
server/tests/dbtest.py
kinsanras/kraken
3938ee4e65ba8f67ec5ee0e912b43fad84548f2c
[ "Apache-2.0" ]
110
2020-07-23T07:12:09.000Z
2022-03-26T05:54:18.000Z
server/tests/dbtest.py
kinsanras/kraken
3938ee4e65ba8f67ec5ee0e912b43fad84548f2c
[ "Apache-2.0" ]
4
2021-03-10T05:25:03.000Z
2022-01-24T10:12:33.000Z
# Copyright 2020-2021 The Kraken 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 or agreed to ...
31.010638
91
0.67307
4a2324e57e1f6b4908891e5e1b7193e2a683b27f
2,860
py
Python
logger/json_logger.py
gvalvano/idas
e1b112c8d0cd17b2b8486435dfe9de477bca2221
[ "Apache-2.0" ]
29
2020-07-04T00:04:28.000Z
2022-03-18T01:49:34.000Z
idas/logger/json_logger.py
gvalvano/unet_crf_as_rnn
31b79741b77614764dcf3d2690fe0b0fab44934d
[ "Apache-2.0" ]
2
2020-10-31T14:41:02.000Z
2021-11-21T18:16:19.000Z
logger/json_logger.py
gvalvano/idas
e1b112c8d0cd17b2b8486435dfe9de477bca2221
[ "Apache-2.0" ]
7
2020-10-21T01:02:52.000Z
2021-11-14T16:52:18.000Z
# Copyright 2019 Gabriele Valvano # # 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...
30.105263
96
0.633566
4a232581b8a60885474b07c2a1212893df675ead
6,633
py
Python
doc/conf.py
neuromusic/umap
86a2ce834f37db9f5b57f58440ac66e41d035ea0
[ "BSD-2-Clause" ]
null
null
null
doc/conf.py
neuromusic/umap
86a2ce834f37db9f5b57f58440ac66e41d035ea0
[ "BSD-2-Clause" ]
null
null
null
doc/conf.py
neuromusic/umap
86a2ce834f37db9f5b57f58440ac66e41d035ea0
[ "BSD-2-Clause" ]
1
2018-08-16T11:11:08.000Z
2018-08-16T11:11:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # umap documentation build configuration file, created by # sphinx-quickstart on Fri Jun 8 10:09:40 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
32.356098
82
0.664405
4a2326071aaa5e78d4d98e4f39c95090e947380b
3,956
py
Python
gemini_instruments/hokupaa_quirc/adclass.py
astrochun/DRAGONS
041cdeeaf3eca9751085f6e01222d48c8e63cd3c
[ "BSD-3-Clause" ]
1
2020-06-03T15:13:18.000Z
2020-06-03T15:13:18.000Z
gemini_instruments/hokupaa_quirc/adclass.py
b1quint/DRAGONS
0f5814caaa791bda47edf00407722247095f8427
[ "BSD-3-Clause" ]
null
null
null
gemini_instruments/hokupaa_quirc/adclass.py
b1quint/DRAGONS
0f5814caaa791bda47edf00407722247095f8427
[ "BSD-3-Clause" ]
null
null
null
# # Gemini Observatory # # Dragons # gemini_instruments # hokupaa_QUIRC.adcl...
24.725
80
0.512892
4a23263a9447c141032064b3fe856f1ea98126fa
415
py
Python
noise_helpers/is_class.py
marhoy/Koopen
50b45a1bc4e6b5a157758e3091925405a28920ab
[ "CC-BY-4.0" ]
1
2021-03-19T14:40:35.000Z
2021-03-19T14:40:35.000Z
noise_helpers/is_class.py
marhoy/Koopen
50b45a1bc4e6b5a157758e3091925405a28920ab
[ "CC-BY-4.0" ]
null
null
null
noise_helpers/is_class.py
marhoy/Koopen
50b45a1bc4e6b5a157758e3091925405a28920ab
[ "CC-BY-4.0" ]
null
null
null
import numpy as np def is_class(df): if (df["weekday"] == 0) & (11 <= df["hour"] < 16 ): return 1 if (df["weekday"] == 1) & (12 <= df["hour"] < 16): return 1 if (df["weekday"] == 2) & (8 <= df["hour"] < 16): return 1 if (df["weekday"] == 3) & (8 <= df["hour"] < 12): retu...
31.923077
55
0.426506
4a23272d612a0b76ad94ba75b503e08efbf66d27
2,150
py
Python
superset/superset/db_engine_specs/clickhouse.py
smola/superset-compose
749803b1ad0df0f424a7f99ae0dbc6e429934c45
[ "Apache-2.0" ]
6
2019-06-14T11:16:54.000Z
2020-11-08T16:02:00.000Z
superset/superset/db_engine_specs/clickhouse.py
smola/superset-compose
749803b1ad0df0f424a7f99ae0dbc6e429934c45
[ "Apache-2.0" ]
203
2019-05-31T11:13:10.000Z
2020-03-31T02:50:54.000Z
superset/superset/db_engine_specs/clickhouse.py
smola/superset-compose
749803b1ad0df0f424a7f99ae0dbc6e429934c45
[ "Apache-2.0" ]
14
2019-05-31T11:32:40.000Z
2021-01-28T11:18:16.000Z
# 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...
41.346154
80
0.66186
4a2327d6a465653f310b61b803d6dc17c20d6746
483
py
Python
tests/test_api.py
rafpyprog/pySGS
095c9c1326ff9d7b5ad38297841d2bbe22654a74
[ "MIT" ]
66
2018-02-02T16:23:11.000Z
2022-01-29T21:34:40.000Z
tests/test_api.py
rafpyprog/pySGS
095c9c1326ff9d7b5ad38297841d2bbe22654a74
[ "MIT" ]
22
2018-05-28T00:01:30.000Z
2021-03-20T16:25:08.000Z
tests/test_api.py
rafpyprog/pySGS
095c9c1326ff9d7b5ad38297841d2bbe22654a74
[ "MIT" ]
16
2019-01-13T16:07:45.000Z
2021-11-19T13:18:01.000Z
import pytest from sgs import api import pandas as pd @pytest.mark.api def test_get_data(): NUMBER_OF_LINES = 20 data = api.get_data(4, "02/01/2018", "31/01/2018") assert isinstance(data, list) assert len(data) == NUMBER_OF_LINES @pytest.mark.api def test_get_data_with_strict_range(): NUMBER_OF...
21.954545
76
0.710145
4a2327eea34ccd3ddb84bfc4a0bc02d1ecc0eb50
1,823
py
Python
opencv_learn/biaoge.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
opencv_learn/biaoge.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
opencv_learn/biaoge.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
import os import shutil import cv2 import numpy as np from random import random, randint from math import sin, cos, atan2, pi, sqrt class Perspective: ''' 图形斜切变换 args: img - 图片(类型: cv::mat) bbox - 边框 [{'filename': '0.jpg', 'name': 'red_stop', 'bndbox': [299...
30.383333
103
0.47943
4a23280129b71abe78de78094091a82ae957357c
261
py
Python
oddeven.py
mahendra1904/pythod-programs
d4d75dac65e9795ea5728f75d90aa0b39296b25e
[ "bzip2-1.0.6" ]
null
null
null
oddeven.py
mahendra1904/pythod-programs
d4d75dac65e9795ea5728f75d90aa0b39296b25e
[ "bzip2-1.0.6" ]
null
null
null
oddeven.py
mahendra1904/pythod-programs
d4d75dac65e9795ea5728f75d90aa0b39296b25e
[ "bzip2-1.0.6" ]
null
null
null
n=int(input("Enter a number"))#123 rev=0 temp=n while n>0:#n=123,12,1 rem=n%10#3,2,1 rev=rev*10+rem#3,32,321 n=n//10#12,1,0 if temp==rev: print("The given number is palindrome number") else: print("The number is not palindrome number")
20.076923
50
0.636015
4a23290ad4b252618fdd648d22283a9e4561fe39
1,880
py
Python
imnn/imnn/_imnn_test.py
InformationMaximisingNeuralNetworks/imnn
2eb04d9dc1acc4e8d1e60ef0bb25dfac17bd9f81
[ "MIT" ]
18
2019-03-15T09:08:11.000Z
2021-08-08T17:24:04.000Z
imnn/imnn/_imnn_test.py
InformationMaximisingNeuralNetworks/imnn
2eb04d9dc1acc4e8d1e60ef0bb25dfac17bd9f81
[ "MIT" ]
4
2019-03-21T14:56:23.000Z
2020-07-17T15:27:41.000Z
imnn/imnn/_imnn_test.py
InformationMaximisingNeuralNetworks/imnn
2eb04d9dc1acc4e8d1e60ef0bb25dfac17bd9f81
[ "MIT" ]
4
2019-11-21T20:54:27.000Z
2021-11-14T16:46:12.000Z
import pytest import jax.numpy as np from test.defaults import defaultTests from imnn.imnn._imnn import _IMNN test = defaultTests(imnn=_IMNN, filename="_imnn") # Test that all initialisation parameters correctly raise errors @pytest.mark.parametrize("kwargs", [test.kwargs, test.reduced_kwargs]) @pytest.mark.parametr...
41.777778
77
0.739362
4a232b82b5e34c0b0cd80977266ba98940d3ba78
812
py
Python
notebooks/solutions/golomb.py
xoolive/edu_constraints
9fcb226c2bd37f7a9c74c7b83b59de607ec07e4b
[ "MIT" ]
1
2020-10-13T07:15:07.000Z
2020-10-13T07:15:07.000Z
notebooks/solutions/golomb.py
xoolive/edu_constraints
9fcb226c2bd37f7a9c74c7b83b59de607ec07e4b
[ "MIT" ]
null
null
null
notebooks/solutions/golomb.py
xoolive/edu_constraints
9fcb226c2bd37f7a9c74c7b83b59de607ec07e4b
[ "MIT" ]
7
2020-10-13T09:40:02.000Z
2020-11-03T07:21:24.000Z
import facile def golomb(n: int) -> facile.Solution: ticks = [facile.variable(range(2 ** n)) for i in range(n)] # First tick at the start of the ruler facile.constraint(ticks[0] == 0) # Ticks are ordered for i in range(n - 1): facile.constraint(ticks[i] < ticks[i + 1]) # All distanc...
23.882353
66
0.614532
4a232bc70d6f58ad267d1f5e284b49fa227ef29c
756
py
Python
bothanasius/cogs/meta.py
bryanforbes/Bothanasius
2fb264f52de46c4ea3dccd57d23c76c9dd313e3e
[ "BSD-3-Clause" ]
null
null
null
bothanasius/cogs/meta.py
bryanforbes/Bothanasius
2fb264f52de46c4ea3dccd57d23c76c9dd313e3e
[ "BSD-3-Clause" ]
null
null
null
bothanasius/cogs/meta.py
bryanforbes/Bothanasius
2fb264f52de46c4ea3dccd57d23c76c9dd313e3e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import logging from discord.ext import commands from ..context import Context from ..bothanasius import Bothanasius log = logging.getLogger(__name__) class Meta(commands.Cog[Context]): def __init__(self, bot: Bothanasius) -> None: self.bot = bot @commands.is_own...
26.068966
67
0.677249
4a232c9d3e8eb8abd77a9cdd5aac9ab0c7b55646
5,381
py
Python
requires.py
openstack/charm-interface-rabbitmq
383121fc584d2d3bf9d233eba0d3708398a4c468
[ "Apache-2.0" ]
12
2016-07-07T23:42:18.000Z
2019-01-28T21:53:38.000Z
requires.py
openstack/charm-interface-rabbitmq
383121fc584d2d3bf9d233eba0d3708398a4c468
[ "Apache-2.0" ]
null
null
null
requires.py
openstack/charm-interface-rabbitmq
383121fc584d2d3bf9d233eba0d3708398a4c468
[ "Apache-2.0" ]
1
2018-10-11T15:48:50.000Z
2018-10-11T15:48:50.000Z
#!/usr/bin/python # 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 # di...
35.169935
79
0.60565
4a232e33c209c63692082e6204eb3fc5384b8e81
670
py
Python
app/tests/tech/plasma_attacker.py
systemicsmitty/TI4_battle_sim
b4ed142ff57d19ed50705ba40f83b8b3b7e3a774
[ "MIT" ]
3
2021-05-12T20:32:06.000Z
2022-02-25T21:29:23.000Z
app/tests/tech/plasma_attacker.py
systemicsmitty/TI4_battle_sim
b4ed142ff57d19ed50705ba40f83b8b3b7e3a774
[ "MIT" ]
109
2021-01-10T11:09:11.000Z
2021-03-25T20:33:13.000Z
app/tests/tech/plasma_attacker.py
systemicsmitty/TI4_battle_sim
b4ed142ff57d19ed50705ba40f83b8b3b7e3a774
[ "MIT" ]
1
2021-03-25T00:49:12.000Z
2021-03-25T00:49:12.000Z
import os import sys sys.path.insert(1, os.path.join(sys.path[0], '../../..')) import app.calculator.calculator as calc from app import testing_helpers attacker, defender, options, tol = testing_helpers.defaults() # target source: http://alphamou.se/ti4calc/ target = [3, 86, 11] # target percentages; [tie, attacker...
23.103448
69
0.726866
4a232e3ea4158158a05476ec4dae24e39a50c0a2
4,146
py
Python
purity_fb/purity_fb_1dot9/models/support_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
purity_fb/purity_fb_1dot9/models/support_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
purity_fb/purity_fb_1dot9/models/support_response.py
mabdelhafez/purity_fb_python_client
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Pure Storage FlashBlade REST 1.9 Python SDK Pure Storage FlashBlade REST 1.9 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.9 Contact: i...
26.922078
204
0.573806
4a232fe9564372234ceee65a6374e1979d68bbc5
3,234
py
Python
src/toml_config/settings.py
meaksh/bgzfiltra
4724bd919c7c440f5388c8718d3d75cd637e51f4
[ "MIT" ]
1
2021-05-26T15:44:57.000Z
2021-05-26T15:44:57.000Z
src/toml_config/settings.py
meaksh/bgzfiltra
4724bd919c7c440f5388c8718d3d75cd637e51f4
[ "MIT" ]
1
2021-05-19T09:55:27.000Z
2021-05-19T09:55:27.000Z
src/toml_config/settings.py
meaksh/bgzfiltra
4724bd919c7c440f5388c8718d3d75cd637e51f4
[ "MIT" ]
1
2021-05-26T15:48:52.000Z
2021-05-26T15:48:52.000Z
import os import sys import toml def get_settings(): """\ Loads TOML settings from one of the defined paths: ./.bgzfiltra.toml ./bgzfiltra.toml ~/.bgzfiltra.toml ~/.config/bgzfiltra.toml /etc/bgzfiltra.toml """ paths = ( "./.bgzfiltra.toml", "./b...
28.368421
120
0.544836
4a233018ca957db3a0b1948e2f587534d9872ba5
8,445
py
Python
aggregation-repulsion-parameter-search.py
fberlinger/UndercoverBot
ce6c1c02114cf52b0afe03af452398f7ccf12d2f
[ "MIT" ]
null
null
null
aggregation-repulsion-parameter-search.py
fberlinger/UndercoverBot
ce6c1c02114cf52b0afe03af452398f7ccf12d2f
[ "MIT" ]
null
null
null
aggregation-repulsion-parameter-search.py
fberlinger/UndercoverBot
ce6c1c02114cf52b0afe03af452398f7ccf12d2f
[ "MIT" ]
null
null
null
import matplotlib matplotlib.rcParams['figure.figsize'] = [12, 8] import math import numpy as np from queue import Queue, PriorityQueue import time import matplotlib.patches as mpatches import matplotlib.pyplot as plt from interaction import Interaction from environment import Environment from DelightFish import Fis...
33.78
117
0.644168
4a233132ed2e659c2fe215c8b426df73748556e1
7,478
py
Python
PyChan/Core/Commands/Help/help.py
ErnestBytnar/PyChan-Bot
7ce38547fa85e6f56c1702db5bea4ef2700d9b6f
[ "MIT" ]
null
null
null
PyChan/Core/Commands/Help/help.py
ErnestBytnar/PyChan-Bot
7ce38547fa85e6f56c1702db5bea4ef2700d9b6f
[ "MIT" ]
null
null
null
PyChan/Core/Commands/Help/help.py
ErnestBytnar/PyChan-Bot
7ce38547fa85e6f56c1702db5bea4ef2700d9b6f
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from Core.Decorators.decorators import Decorator from Core.Commands.Settings.Functions.get_server_prefix import GetServerPrefix class Help(commands.Cog): """Class contains help methods """ def __init__(self, bot): """Constructor method """ ...
49.197368
181
0.555229
4a233201ac22c7991fd0361f054605d527b62a96
2,572
py
Python
assignments/models.py
manisharmagarg/oddnary
e2dea772d44d72773aa63c449d4082a9bf07dfe1
[ "Apache-2.0" ]
null
null
null
assignments/models.py
manisharmagarg/oddnary
e2dea772d44d72773aa63c449d4082a9bf07dfe1
[ "Apache-2.0" ]
null
null
null
assignments/models.py
manisharmagarg/oddnary
e2dea772d44d72773aa63c449d4082a9bf07dfe1
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import get_user_model from utils.base_model import BaseModel from utils.upload_location import ( assignment_file_location, assignment_solution_file_location ) from courses.models import ( Course, C...
37.275362
100
0.710731
4a233449a633487efd89f9568a2194ccd27eaba7
4,343
py
Python
multiworld/core/image_env.py
stevenlin1111/multiworld
7576a00b884f629ad5de86f6c8a3618770273029
[ "MIT" ]
null
null
null
multiworld/core/image_env.py
stevenlin1111/multiworld
7576a00b884f629ad5de86f6c8a3618770273029
[ "MIT" ]
null
null
null
multiworld/core/image_env.py
stevenlin1111/multiworld
7576a00b884f629ad5de86f6c8a3618770273029
[ "MIT" ]
1
2021-08-13T23:47:47.000Z
2021-08-13T23:47:47.000Z
import cv2 import mujoco_py import numpy as np import warnings from PIL import Image from gym.spaces import Box, Dict from multiworld.core.wrapper_env import ProxyEnv class ImageEnv(ProxyEnv): def __init__( self, wrapped_env, imsize=84, init_camera=None, ...
33.666667
76
0.63067
4a23346e4c2c74e08459b200c85a6b9db2bf7fa1
306
py
Python
good/users/apps.py
choi010521/good
7c10ab403f681591d70d22970e2d5f1e3dea9c84
[ "MIT" ]
null
null
null
good/users/apps.py
choi010521/good
7c10ab403f681591d70d22970e2d5f1e3dea9c84
[ "MIT" ]
null
null
null
good/users/apps.py
choi010521/good
7c10ab403f681591d70d22970e2d5f1e3dea9c84
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "good.users" verbose_name = _("Users") def ready(self): try: import good.users.signals # noqa F401 except ImportError: pass
21.857143
54
0.647059
4a23355c0c1a10731bca26dd9492fc53ad3e3837
70
py
Python
dltb/tool/face/__init__.py
Petr-By/qtpyvis
0b9a151ee6b9a56b486c2bece9c1f03414629efc
[ "MIT" ]
3
2017-10-04T14:51:26.000Z
2017-10-22T09:35:50.000Z
dltb/tool/face/__init__.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
13
2017-11-26T10:05:00.000Z
2018-03-11T14:08:40.000Z
dltb/tool/face/__init__.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
2
2017-09-24T21:39:42.000Z
2017-10-04T15:29:54.000Z
from .detector import Detector from .landmarks import FacialLandmarks
23.333333
38
0.857143
4a23364cde0e837c9fb3ec57044e267dce0235d7
384
py
Python
leetcode/__init__.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
leetcode/__init__.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
leetcode/__init__.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple # noqa from .convert import main # noqa from .etc.imported import * # noqa from .etc.list_node import * # noqa from .etc.tree_node import * # noqa null = None # noqa try: import pkg_resources __version__ = pkg_resources.get_distribution(__package__).version except ...
24
69
0.739583
4a23385ed652576d7b9b4ad8ad3191e06514406b
11,220
py
Python
utils/routine.py
CreeperLin/PyTorch_ProxylessNAS
9ab6d7bf284d31196f7cf985d29c62aa1c172c8c
[ "MIT" ]
9
2019-11-06T07:19:09.000Z
2021-09-17T02:44:49.000Z
utils/routine.py
Kyrie-Zhao/PyTorch_ProxylessNAS
9ab6d7bf284d31196f7cf985d29c62aa1c172c8c
[ "MIT" ]
2
2021-04-24T22:23:23.000Z
2021-04-24T22:24:18.000Z
utils/routine.py
Kyrie-Zhao/PyTorch_ProxylessNAS
9ab6d7bf284d31196f7cf985d29c62aa1c172c8c
[ "MIT" ]
4
2020-03-01T06:47:41.000Z
2021-09-17T02:44:51.000Z
# -*- coding: utf-8 -*- import os import torch import torch.nn as nn import torch.nn.functional as F import itertools import utils from visualize import plot from utils.profiling import tprof import genotypes as gt from models.nas_modules import NASModule def save_checkpoint(out_dir, model, w_optim, a_optim, lr_schedu...
39.230769
136
0.62139
4a23385fc80157946bb482b847cbba060ebb0e30
2,255
py
Python
BotData/ConfiG.py
SOUFIANEZAZA/fitness_1
9fcd1ed5135f34a4528f79f714538987750b0351
[ "Unlicense" ]
1
2020-11-02T12:23:37.000Z
2020-11-02T12:23:37.000Z
BotData/ConfiG.py
SOUFIANEZAZA/fitness_1
9fcd1ed5135f34a4528f79f714538987750b0351
[ "Unlicense" ]
null
null
null
BotData/ConfiG.py
SOUFIANEZAZA/fitness_1
9fcd1ed5135f34a4528f79f714538987750b0351
[ "Unlicense" ]
null
null
null
from MokupData.mokupfun import * from FunctionData.somefun import * # After Login Displaying Options def Option(): KMFHEADER() OPTIONLIST() while True: try: usrInp = input("\u001b[32m[+]\u001b[0m Enter Input:-") # If statment for option selection if usrInp == "1"...
28.1875
81
0.439911
4a2338732f1ec949d037c26165b39cb80c317142
623
py
Python
services/alice/speech-kit/server.py
IlyaBerezhnoy/sensor_server
e2ab512d3596be6516ae9b4de28a8e0f767cce90
[ "MIT" ]
1
2018-05-11T13:34:07.000Z
2018-05-11T13:34:07.000Z
services/alice/speech-kit/server.py
IlyaBerezhnoy/sensor_server
e2ab512d3596be6516ae9b4de28a8e0f767cce90
[ "MIT" ]
null
null
null
services/alice/speech-kit/server.py
IlyaBerezhnoy/sensor_server
e2ab512d3596be6516ae9b4de28a8e0f767cce90
[ "MIT" ]
null
null
null
#!/bin/python from flask import Flask, jsonify, request import subprocess import os app = Flask(__name__) text = "" greetings = "'/play' and '/replay'\n" @app.route('/') def index(): return greetings @app.route('/play', methods=['POST']) def play(): global text text = request.data.decode('utf-8') o...
20.766667
58
0.616372
4a233885d9fd6f4a47eb3900370d6070acedb2fc
2,487
py
Python
marmot/representations/wmt_representation_generator.py
qe-team/marmot
38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff
[ "0BSD" ]
19
2015-08-21T13:06:37.000Z
2021-07-26T09:56:29.000Z
marmot/representations/wmt_representation_generator.py
qe-team/marmot
38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff
[ "0BSD" ]
36
2015-01-13T13:01:07.000Z
2016-06-22T06:59:59.000Z
marmot/representations/wmt_representation_generator.py
qe-team/marmot
38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff
[ "0BSD" ]
8
2015-12-11T16:41:47.000Z
2019-04-08T16:28:40.000Z
import os from nltk import word_tokenize from marmot.representations.representation_generator import RepresentationGenerator from marmot.experiment.import_utils import mk_tmp_dir class WMTRepresentationGenerator(RepresentationGenerator): def _write_to_file(self, filename, lofl): a_file = open(filename, ...
38.859375
88
0.592682
4a23390822658c8601855d27ba75629f3e6d82ed
58,226
py
Python
statsmodels/tsa/statespace/dynamic_factor.py
AustinJAdams/statsmodels
e6632b6466dc7eb7062df0f26a6888da0e67e347
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/statespace/dynamic_factor.py
AustinJAdams/statsmodels
e6632b6466dc7eb7062df0f26a6888da0e67e347
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/statespace/dynamic_factor.py
AustinJAdams/statsmodels
e6632b6466dc7eb7062df0f26a6888da0e67e347
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Dynamic factor model Author: Chad Fulton License: Simplified-BSD """ from warnings import warn from collections import OrderedDict import numpy as np from .mlemodel import MLEModel, MLEResults, MLEResultsWrapper from .tools import ( is_invertible, prepare_exog, constrain_stationar...
41.47151
79
0.595559
4a233a8c3744fbf4f8a464eeeb200c5eff585c30
17,673
py
Python
python_modules/dagster/dagster/core/execution/resources_init.py
metinsenturk/dagster
3560475d0d99a319632625683002931e502f32ed
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/resources_init.py
metinsenturk/dagster
3560475d0d99a319632625683002931e502f32ed
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/resources_init.py
metinsenturk/dagster
3560475d0d99a319632625683002931e502f32ed
[ "Apache-2.0" ]
null
null
null
import inspect from collections import deque from typing import AbstractSet, Any, Callable, Deque, Dict, Optional, cast from dagster import check from dagster.core.decorator_utils import get_function_params from dagster.core.definitions.pipeline import PipelineDefinition from dagster.core.definitions.resource import (...
42.688406
106
0.700843
4a233b686e523080df20fc709aa1fa7920d176a6
17,644
py
Python
databricks/koalas/tests/test_indexing.py
abishekganesh72/koalas
40c2e209384d078ee75d08c7681d2e6a276ab834
[ "Apache-2.0" ]
null
null
null
databricks/koalas/tests/test_indexing.py
abishekganesh72/koalas
40c2e209384d078ee75d08c7681d2e6a276ab834
[ "Apache-2.0" ]
null
null
null
databricks/koalas/tests/test_indexing.py
abishekganesh72/koalas
40c2e209384d078ee75d08c7681d2e6a276ab834
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
42.72155
100
0.545285
4a233c3784e51473706f5deef0f4ed3f7530cc6b
5,134
py
Python
Lib/test/test_msilib.py
ShiboXing/cpython
ef19bad7d6da99575d66c1f5dc8fd6ac57e92f6e
[ "CNRI-Python-GPL-Compatible" ]
1,318
2019-07-11T10:34:39.000Z
2022-03-29T15:05:19.000Z
Lib/test/test_msilib.py
ShiboXing/cpython
ef19bad7d6da99575d66c1f5dc8fd6ac57e92f6e
[ "CNRI-Python-GPL-Compatible" ]
387
2019-09-05T16:33:09.000Z
2022-03-31T10:43:39.000Z
Lib/test/test_msilib.py
docmarionum1/pyvcs-python
f62cf1a76d51302f342319d446d6fbf3c60f29c3
[ "0BSD" ]
66
2019-11-11T15:33:12.000Z
2022-03-01T07:55:55.000Z
""" Test suite for the code in msilib """ import os import unittest from test.support import TESTFN, import_module, unlink msilib = import_module('msilib') import msilib.schema def init_database(): path = TESTFN + '.msi' db = msilib.init_database( path, msilib.schema, 'Python Tests', ...
33.555556
78
0.608103
4a233c46cfa2ec61b5783332591e9f3903735dc7
1,312
py
Python
src/dataset.py
jkulhanek/faster-rcnn-pytorch
a8db36f1ff3497b24e5d87f2b6e327534cceb688
[ "MIT" ]
2
2018-07-02T11:49:28.000Z
2020-06-21T21:40:43.000Z
src/dataset.py
jkulhanek/faster-rcnn-pytorch
a8db36f1ff3497b24e5d87f2b6e327534cceb688
[ "MIT" ]
null
null
null
src/dataset.py
jkulhanek/faster-rcnn-pytorch
a8db36f1ff3497b24e5d87f2b6e327534cceb688
[ "MIT" ]
null
null
null
import torch import torchvision import model import model_utils as utils import torchvision.transforms as transforms DATASET_PATH = "/datasets/pascalvoc/VOC2007/JPEGImages" DATASET_TRAIN_TARGET = "/datasets/pascalvoc/annotations/pascal_train2007.json" DATASET_PATH = "D:\\datasets\\pascalvoc\\VOC2007\\JPEGI...
37.485714
97
0.692073
4a233dd1a2f7b56b37a0686592ac356a1007f48a
1,204
py
Python
xmltranslate/xml_ops.py
ramansah/xmllib
71d375c7735636d28a5915afb04f19325f8a2bf7
[ "MIT" ]
null
null
null
xmltranslate/xml_ops.py
ramansah/xmllib
71d375c7735636d28a5915afb04f19325f8a2bf7
[ "MIT" ]
null
null
null
xmltranslate/xml_ops.py
ramansah/xmllib
71d375c7735636d28a5915afb04f19325f8a2bf7
[ "MIT" ]
null
null
null
from xml.etree.ElementTree import fromstring, Element, SubElement, dump def xml2dict(xml_obj: str): tree = fromstring(xml_obj) return _xml2dict(tree) def dict2xml(dict_obj: dict): for key, value in dict_obj.items(): xml_ele = Element(key) return dump(_dict2xml(value, xml_ele)) def _dic...
24.571429
103
0.568106
4a233dd4541846e38dfd8d77cd00be2b898331bf
153
py
Python
pyrep/robots/arms/locobot_arm.py
WeiWeic6222848/PyRep
231a1ac6b0a179cff53c1d403d379260b9f05f2f
[ "MIT" ]
505
2019-06-26T17:02:44.000Z
2022-03-31T04:03:23.000Z
pyrep/robots/arms/locobot_arm.py
WeiWeic6222848/PyRep
231a1ac6b0a179cff53c1d403d379260b9f05f2f
[ "MIT" ]
255
2019-06-27T07:04:17.000Z
2022-03-29T18:25:48.000Z
pyrep/robots/arms/locobot_arm.py
WeiWeic6222848/PyRep
231a1ac6b0a179cff53c1d403d379260b9f05f2f
[ "MIT" ]
171
2019-06-27T05:33:50.000Z
2022-03-30T03:34:24.000Z
from pyrep.robots.arms.arm import Arm class LoCoBotArm(Arm): def __init__(self, count: int = 0): super().__init__(count, 'LoCoBotArm', 5)
19.125
48
0.666667
4a233df672395721ff4647f1f67ac71391518ed7
48
wsgi
Python
tmp/www/wsgi-scripts/graphite-api.wsgi
anvart/stormwatch
7a5f277d4021b3429871ea0c045567c365aec7f4
[ "MIT" ]
6
2017-07-05T16:59:16.000Z
2020-07-01T10:17:09.000Z
tmp/www/wsgi-scripts/graphite-api.wsgi
anvart/stormwatch
7a5f277d4021b3429871ea0c045567c365aec7f4
[ "MIT" ]
8
2017-11-03T13:36:53.000Z
2021-09-05T11:05:17.000Z
tmp/www/wsgi-scripts/graphite-api.wsgi
anvart/stormwatch
7a5f277d4021b3429871ea0c045567c365aec7f4
[ "MIT" ]
6
2016-11-10T12:56:41.000Z
2018-06-19T21:53:58.000Z
from graphite_api.app import app as application
24
47
0.854167
4a233e9f10d49d2881df2b11546b1e33d6a2fbfe
13,252
py
Python
src/ExportCsvToInflux/csv_object.py
7yl4r/export-csv-to-influx
9bb5a192983363d15e2f4210ef0f8b8e3cd185d3
[ "BSD-3-Clause" ]
null
null
null
src/ExportCsvToInflux/csv_object.py
7yl4r/export-csv-to-influx
9bb5a192983363d15e2f4210ef0f8b8e3cd185d3
[ "BSD-3-Clause" ]
null
null
null
src/ExportCsvToInflux/csv_object.py
7yl4r/export-csv-to-influx
9bb5a192983363d15e2f4210ef0f8b8e3cd185d3
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from .base_object import BaseObject from itertools import tee from glob import glob import hashlib import types import time import json import csv import sys import os class CSVObject(object): """CSV Object""" def __init__(self, delimiter=',', lineterminator='\n'): ...
37.120448
120
0.541956
4a233ea9eee4061fd7ff883078303aef2e90f084
483
py
Python
tagulous/serializers/json.py
marxide/django-tagulous
80c057c5dd2dce85f4bb531b25d3b4982bd03e8f
[ "Apache-2.0" ]
null
null
null
tagulous/serializers/json.py
marxide/django-tagulous
80c057c5dd2dce85f4bb531b25d3b4982bd03e8f
[ "Apache-2.0" ]
null
null
null
tagulous/serializers/json.py
marxide/django-tagulous
80c057c5dd2dce85f4bb531b25d3b4982bd03e8f
[ "Apache-2.0" ]
null
null
null
""" JSON serializer with Tagulous support """ from __future__ import unicode_literals from django.core.serializers import json as json_serializer from tagulous.serializers import base class Serializer(base.SerializerMixin, json_serializer.Serializer): """ JSON serializer with tag field support """ ...
21
78
0.766046
4a233f05a5100d2f81b91a62e8a3d28d13bc7bd9
11,842
py
Python
dj_hetmech_app/views.py
dhimmel/hetmech-backend
28d9626d75c5fa78b03ae0cb18b32f90bcf1fe8f
[ "BSD-3-Clause" ]
4
2020-01-24T16:11:10.000Z
2020-11-19T20:40:53.000Z
dj_hetmech_app/views.py
dhimmel/hetmech-backend
28d9626d75c5fa78b03ae0cb18b32f90bcf1fe8f
[ "BSD-3-Clause" ]
57
2018-10-30T18:29:14.000Z
2019-11-04T15:19:51.000Z
dj_hetmech_app/views.py
dhimmel/hetmech-backend
28d9626d75c5fa78b03ae0cb18b32f90bcf1fe8f
[ "BSD-3-Clause" ]
3
2018-10-30T18:07:19.000Z
2019-06-04T14:50:44.000Z
import functools from django.db.models import Q from rest_framework import filters from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework.views import APIView from rest_framework.viewsets import ReadOnlyModelViewSet fr...
43.218978
159
0.665259
4a233f128bd890849ac2ae2cd5160f1edf45f7e4
5,564
py
Python
model/topic.py
jaiminpan/F2E.pg
3b5baabc6f5a250bc96ff283e0afb3b1c44318de
[ "BSD-3-Clause" ]
null
null
null
model/topic.py
jaiminpan/F2E.pg
3b5baabc6f5a250bc96ff283e0afb3b1c44318de
[ "BSD-3-Clause" ]
null
null
null
model/topic.py
jaiminpan/F2E.pg
3b5baabc6f5a250bc96ff283e0afb3b1c44318de
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # # Copyright 2012 F2E.im # Do have a faith in what you're doing. # Make your life a story worth telling. import time from lib.query import Query class TopicModel(Query): def __init__(self, db): self.db = db self.table_name = "topic" super(TopicModel, s...
48.807018
134
0.63138
4a233f3271d12938ca9505b4e942bdcd0342f0e1
1,948
py
Python
okta/models/ws_federation_application_settings.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
145
2017-06-13T21:54:04.000Z
2022-02-25T05:44:34.000Z
okta/models/ws_federation_application_settings.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
146
2017-06-02T17:46:12.000Z
2022-03-29T15:52:15.000Z
okta/models/ws_federation_application_settings.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
98
2017-06-27T03:44:51.000Z
2022-03-23T04:58:18.000Z
# flake8: noqa """ Copyright 2020 - Present Okta, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
33.016949
121
0.666838
4a23413f89804f690215d9a822b011e84f43d865
184
py
Python
poradnia/cases/apps.py
efefre/poradnia
8bf9c88888d538cf4d1224431355c850d31ef252
[ "MIT" ]
23
2015-07-20T01:10:52.000Z
2021-01-12T10:05:48.000Z
poradnia/cases/apps.py
efefre/poradnia
8bf9c88888d538cf4d1224431355c850d31ef252
[ "MIT" ]
710
2015-07-12T13:19:14.000Z
2022-03-29T12:38:18.000Z
poradnia/cases/apps.py
efefre/poradnia
8bf9c88888d538cf4d1224431355c850d31ef252
[ "MIT" ]
20
2015-07-21T00:45:34.000Z
2021-01-31T12:48:18.000Z
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class CustomAppConfig(AppConfig): name = "poradnia.cases" verbose_name = _("Cases")
23
55
0.766304
4a234156724f02501103597e1db5b79f6463e576
6,553
py
Python
medusa/config.py
chebelom/cassandra-medusa
5afc3aaf9295466cd24b5d97f9f6e3455498be72
[ "Apache-2.0" ]
null
null
null
medusa/config.py
chebelom/cassandra-medusa
5afc3aaf9295466cd24b5d97f9f6e3455498be72
[ "Apache-2.0" ]
null
null
null
medusa/config.py
chebelom/cassandra-medusa
5afc3aaf9295466cd24b5d97f9f6e3455498be72
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Spotify AB. 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...
31.657005
120
0.654662
4a23435b1bb7abe7ad949d7dad9a9bd2b68044f8
160
py
Python
submit_site/post_funcs.py
tai-korestate/budongsanbuddy
8f4ddbcc2bc68c50394b62decee4882c7837fec6
[ "MIT" ]
null
null
null
submit_site/post_funcs.py
tai-korestate/budongsanbuddy
8f4ddbcc2bc68c50394b62decee4882c7837fec6
[ "MIT" ]
null
null
null
submit_site/post_funcs.py
tai-korestate/budongsanbuddy
8f4ddbcc2bc68c50394b62decee4882c7837fec6
[ "MIT" ]
null
null
null
def upload_file(fil_name): with open(string(fil_name),"wb+") as destination: for chunk in fil_name.chunk(): destination.write(chunk)
26.666667
53
0.64375
4a2343e77d46624c6170f58774fcd3d0f75a665a
5,887
py
Python
aiomisc/entrypoint.py
dizballanze/aiomisc
8c6444e4ffa56d82f1ba6947ad9e46a4020c4016
[ "MIT" ]
1
2019-03-07T11:13:30.000Z
2019-03-07T11:13:30.000Z
aiomisc/entrypoint.py
dizballanze/aiomisc
8c6444e4ffa56d82f1ba6947ad9e46a4020c4016
[ "MIT" ]
null
null
null
aiomisc/entrypoint.py
dizballanze/aiomisc
8c6444e4ffa56d82f1ba6947ad9e46a4020c4016
[ "MIT" ]
null
null
null
import asyncio import logging import typing as t from concurrent.futures._base import Executor from .context import Context, get_context from .log import LogFormat, basic_config from .service import Service from .signal import Signal from .utils import create_default_event_loop, event_loop_policy ExecutorType = Exec...
28.857843
74
0.597758
4a23441477b2ba3b04c45b611a7f606bfe635d3f
7,022
py
Python
acloud/_internal.py
rfc2119/acloud-dl
a17f1c4c31c48b64f23d8bd29d88e228489322f7
[ "MIT" ]
null
null
null
acloud/_internal.py
rfc2119/acloud-dl
a17f1c4c31c48b64f23d8bd29d88e228489322f7
[ "MIT" ]
null
null
null
acloud/_internal.py
rfc2119/acloud-dl
a17f1c4c31c48b64f23d8bd29d88e228489322f7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- ''' Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Sof...
39.011111
168
0.660496
4a23442f436456b900bf2b2e1e9c5799f4c8936d
2,028
py
Python
leather/scales/ordinal.py
nickromano/django-daily-digest
8f9a289d772cfd6b6c72536dd40c2012516b9d28
[ "MIT" ]
6
2019-03-02T09:16:12.000Z
2021-08-17T13:54:49.000Z
leather/scales/ordinal.py
nickromano/django-daily-digest
8f9a289d772cfd6b6c72536dd40c2012516b9d28
[ "MIT" ]
66
2018-01-04T07:25:13.000Z
2022-03-29T09:19:09.000Z
leather/scales/ordinal.py
nickromano/django-daily-digest
8f9a289d772cfd6b6c72536dd40c2012516b9d28
[ "MIT" ]
2
2019-09-03T09:35:44.000Z
2021-12-28T15:29:13.000Z
#!/usr/bin/env python from decimal import Decimal from leather.scales.base import Scale class Ordinal(Scale): """ A scale that maps individual values (e.g. strings) to a range. """ def __init__(self, domain): self._domain = domain def contains(self, v): """ Return :code...
27.780822
82
0.560651