hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f74f8120e9b462eb6456b7cfccf5a20184b1bf35
16,367
py
Python
sunpy/wcs/wcs.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/wcs/wcs.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/wcs/wcs.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
from __future__ import absolute_import import numpy as np import sunpy.sun as sun import astropy.units as u rsun_meters = sun.constants.radius.si.value __all__ = ['_convert_angle_units', 'convert_pixel_to_data', 'convert_hpc_hg', 'convert_data_to_pixel', 'convert_hpc_hcc', 'convert_hcc_hpc', '...
33.886128
117
0.637136
from __future__ import absolute_import import numpy as np import sunpy.sun as sun import astropy.units as u rsun_meters = sun.constants.radius.si.value __all__ = ['_convert_angle_units', 'convert_pixel_to_data', 'convert_hpc_hg', 'convert_data_to_pixel', 'convert_hpc_hcc', 'convert_hcc_hpc', '...
true
true
f74f82628ad34f135f8d9b85574ebf9d673b3bb0
41,510
py
Python
tests/test_endpoints_scoped.py
Gdeon1337/sanic-jwt
73799af6ab2adb5e5599bab87dd12ed0ac15d88d
[ "MIT" ]
1
2019-09-03T11:07:01.000Z
2019-09-03T11:07:01.000Z
tests/test_endpoints_scoped.py
Gdeon1337/sanic-jwt
73799af6ab2adb5e5599bab87dd12ed0ac15d88d
[ "MIT" ]
null
null
null
tests/test_endpoints_scoped.py
Gdeon1337/sanic-jwt
73799af6ab2adb5e5599bab87dd12ed0ac15d88d
[ "MIT" ]
null
null
null
import pytest from sanic import Sanic from sanic.response import json, text from sanic_jwt import exceptions, Initialize from sanic_jwt.decorators import protected, scoped class User: def __init__(self, id, username, password, scopes): self.id = id self.username = username self.password ...
34.448133
79
0.609251
import pytest from sanic import Sanic from sanic.response import json, text from sanic_jwt import exceptions, Initialize from sanic_jwt.decorators import protected, scoped class User: def __init__(self, id, username, password, scopes): self.id = id self.username = username self.password ...
true
true
f74f826b0aeb9b467b01d54186ea6dc14ddfb689
2,012
py
Python
transmissor.py
Julio-Felix/socket-python
93b6ce44dd88c2af49e7702bb16c69bc4f55240d
[ "MIT" ]
null
null
null
transmissor.py
Julio-Felix/socket-python
93b6ce44dd88c2af49e7702bb16c69bc4f55240d
[ "MIT" ]
null
null
null
transmissor.py
Julio-Felix/socket-python
93b6ce44dd88c2af49e7702bb16c69bc4f55240d
[ "MIT" ]
null
null
null
import socket import numpy as np # pip install numpy socketUDP = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) transmissor = ("127.0.0.1", 2020) receptor = ("127.0.0.1", 3030) socketUDP.bind(transmissor) buff_size = 10000 next_sequence_number = 0 def calculate_checksum(data): data_sum = np.ui...
25.468354
64
0.606859
import socket import numpy as np socketUDP = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) transmissor = ("127.0.0.1", 2020) receptor = ("127.0.0.1", 3030) socketUDP.bind(transmissor) buff_size = 10000 next_sequence_number = 0 def calculate_checksum(data): data_sum = np.uint16(0) for ele...
true
true
f74f833181fc1a620520248000ee47d4206b13bf
13,926
py
Python
keybow2040.py
Dynamonic/keybow2040-circuitpython
831f31e862546a734edabeca62d7c6a8bf87f796
[ "MIT" ]
5
2021-08-28T10:31:31.000Z
2022-02-25T23:34:47.000Z
keybow2040.py
Dynamonic/keybow2040-circuitpython
831f31e862546a734edabeca62d7c6a8bf87f796
[ "MIT" ]
null
null
null
keybow2040.py
Dynamonic/keybow2040-circuitpython
831f31e862546a734edabeca62d7c6a8bf87f796
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Sandy Macdonald # # SPDX-License-Identifier: MIT """ `Keybow 2040 CircuitPython library` ==================================================== CircuitPython driver for the Pimoroni Keybow 2040. Drop the keybow2040.py file into your `lib` folder on your `CIRCUITPY` drive. * Author: Sand...
30.012931
114
0.582795
import time import board from adafruit_is31fl3731.keybow2040 import Keybow2040 as Display from digitalio import DigitalInOut, Direction, Pull _PINS = [board.SW0, board.SW1, board.SW2, board.SW3, board.SW4, board.SW5, board.SW6, board.SW7, board.SW8...
true
true
f74f8505a7b4d0e4643a4ec75259bd45b32d3f2e
1,271
py
Python
oolearning/evaluators/FBetaScore.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
1
2020-10-09T09:11:46.000Z
2020-10-09T09:11:46.000Z
oolearning/evaluators/FBetaScore.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
48
2018-04-09T01:30:31.000Z
2021-06-13T03:25:59.000Z
oolearning/evaluators/FBetaScore.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
null
null
null
from typing import Union import numpy as np import pandas as pd from oolearning.converters.TwoClassConverterBase import TwoClassConverterBase from oolearning.enums.Metric import Metric from oolearning.evaluators.TwoClassConfusionMatrix import TwoClassConfusionMatrix from oolearning.evaluators.ScoreActualPredictedBase...
38.515152
122
0.709677
from typing import Union import numpy as np import pandas as pd from oolearning.converters.TwoClassConverterBase import TwoClassConverterBase from oolearning.enums.Metric import Metric from oolearning.evaluators.TwoClassConfusionMatrix import TwoClassConfusionMatrix from oolearning.evaluators.ScoreActualPredictedBase...
true
true
f74f8717a7855e0ef97c97bb3e5af26a1b4e6b0c
472
py
Python
smaregipy/entities/callback.py
shabaraba/SmaregiPy
5447e5da1f21b38c0da1a759ee50b982de1522f7
[ "MIT" ]
null
null
null
smaregipy/entities/callback.py
shabaraba/SmaregiPy
5447e5da1f21b38c0da1a759ee50b982de1522f7
[ "MIT" ]
1
2021-08-18T21:08:06.000Z
2021-08-18T21:08:06.000Z
smaregipy/entities/callback.py
shabaraba/SmaregiPy
5447e5da1f21b38c0da1a759ee50b982de1522f7
[ "MIT" ]
null
null
null
import dataclasses from typing import Optional from .base_entity import BaseEntity @dataclasses.dataclass class CallbackEntity(BaseEntity): uuid: Optional[str] # or request_code callback_url: Optional[str] state: Optional[str] def __init__(self, data: dict): self.uuid = data.get('uuid') ...
23.6
52
0.684322
import dataclasses from typing import Optional from .base_entity import BaseEntity @dataclasses.dataclass class CallbackEntity(BaseEntity): uuid: Optional[str] callback_url: Optional[str] state: Optional[str] def __init__(self, data: dict): self.uuid = data.get('uuid') self.callback...
true
true
f74f884197d0029e96b0d40a6f9e3bb706e88c5c
4,135
py
Python
production/gcc_wrapper.py
Vlad-Shcherbina/icfpc2014-tbd
8169102307808a80801bf5ee55688e41287990bf
[ "WTFPL" ]
4
2015-01-14T11:35:08.000Z
2020-01-19T19:14:40.000Z
production/gcc_wrapper.py
Vlad-Shcherbina/icfpc2014-tbd
8169102307808a80801bf5ee55688e41287990bf
[ "WTFPL" ]
null
null
null
production/gcc_wrapper.py
Vlad-Shcherbina/icfpc2014-tbd
8169102307808a80801bf5ee55688e41287990bf
[ "WTFPL" ]
null
null
null
import logging logger = logging.getLogger(__name__) from abc import abstractmethod, ABCMeta import game from gcc_utils import deep_unmarshal, lto_to_cons, is_cons, cons_to_list, cons_to_mat class InterpreterException(Exception): pass class GCCInterface(object): __metaclass__ = ABCMeta @abstractmethod...
32.559055
127
0.629988
import logging logger = logging.getLogger(__name__) from abc import abstractmethod, ABCMeta import game from gcc_utils import deep_unmarshal, lto_to_cons, is_cons, cons_to_list, cons_to_mat class InterpreterException(Exception): pass class GCCInterface(object): __metaclass__ = ABCMeta @abstractmethod...
true
true
f74f8846150e29dd5f37a8bc2c53eb362b0d70c1
10,369
py
Python
ryu/lib/rpc.py
SYBreloom/ryu
3b7fc04c4048967ce46ae8c6f039b74b3db118aa
[ "Apache-2.0" ]
975
2015-01-03T02:30:13.000Z
2020-05-07T14:01:48.000Z
ryu/lib/rpc.py
leeshy-tech/ryu
a8e5aff03fe3609243a25eaa7aeb9e01d1c69643
[ "Apache-2.0" ]
66
2020-05-22T21:55:42.000Z
2022-03-31T12:35:04.000Z
ryu/lib/rpc.py
leeshy-tech/ryu
a8e5aff03fe3609243a25eaa7aeb9e01d1c69643
[ "Apache-2.0" ]
763
2015-01-01T03:38:43.000Z
2020-05-06T15:46:09.000Z
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2013 YAMAMOTO Takashi <yamamoto at valinux co jp> # # 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:...
31.904615
78
0.615778
from collections import deque import select import msgpack import six class MessageType(object): REQUEST = 0 RESPONSE = 1 NOTIFY = 2 class MessageEncoder(object): def __init__(self): super(MessageEncoder, self).__init__() if msgpack.version >= (1, 0, 0): ...
true
true
f74f8856c4c6096ed6837b79907d53c6cd9f0587
10,454
py
Python
config/treasure_hunt/args_treasure_humplik.py
lmzintgraf/hyperx
ef1c3a4dbe2e9b9eaa0d3706c18f5cbe3ddb9174
[ "MIT" ]
8
2021-06-08T14:29:26.000Z
2022-02-11T13:54:09.000Z
config/treasure_hunt/args_treasure_humplik.py
lmzintgraf/hyperx
ef1c3a4dbe2e9b9eaa0d3706c18f5cbe3ddb9174
[ "MIT" ]
null
null
null
config/treasure_hunt/args_treasure_humplik.py
lmzintgraf/hyperx
ef1c3a4dbe2e9b9eaa0d3706c18f5cbe3ddb9174
[ "MIT" ]
1
2021-12-09T21:43:08.000Z
2021-12-09T21:43:08.000Z
import argparse from utils.helpers import boolean_argument def get_args(rest_args): parser = argparse.ArgumentParser() # --- GENERAL --- parser.add_argument('--num_frames', type=int, default=1e8, help='number of frames to train') parser.add_argument('--max_rollouts_per_task', type=int, default=1, h...
67.012821
120
0.701645
import argparse from utils.helpers import boolean_argument def get_args(rest_args): parser = argparse.ArgumentParser() parser.add_argument('--num_frames', type=int, default=1e8, help='number of frames to train') parser.add_argument('--max_rollouts_per_task', type=int, default=1, help='number of MD...
true
true
f74f887a7a12898d1de252a1c3489c04a6099d1b
8,782
py
Python
data_steward/cdr_cleaner/cleaning_rules/clean_ppi_numeric_fields_using_parameters.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/clean_ppi_numeric_fields_using_parameters.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/clean_ppi_numeric_fields_using_parameters.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
""" Apply value ranges to ensure that values are reasonable and to minimize the likelihood of sensitive information (like phone numbers) within the free text fields. Original Issues: DC-1058, DC-1061, DC-827, DC-502, DC-487 The intent is to ensure that numeric free-text fields that are not manipulated by de-id have v...
42.631068
164
0.703029
import logging import constants.cdr_cleaner.clean_cdr as cdr_consts from cdr_cleaner.cleaning_rules.base_cleaning_rule import BaseCleaningRule from constants.bq_utils import WRITE_TRUNCATE from common import JINJA_ENV LOGGER = logging.getLogger(__name__) INVALID_VALUES_SANDBOX_QUERY = JINJA_ENV.from_string(""" C...
true
true
f74f895515eae127f34733bf157b4c017678cd50
46,302
py
Python
fanficfare/configurable.py
AlexRiina/FanFicFare
2cd6f53f766e74052c6ca7ab5c2eabff24f59742
[ "Apache-2.0" ]
null
null
null
fanficfare/configurable.py
AlexRiina/FanFicFare
2cd6f53f766e74052c6ca7ab5c2eabff24f59742
[ "Apache-2.0" ]
null
null
null
fanficfare/configurable.py
AlexRiina/FanFicFare
2cd6f53f766e74052c6ca7ab5c2eabff24f59742
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 Fanficdownloader team, 2019 FanFicFare team # # 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 # # Un...
41.341071
190
0.56017
from __future__ import absolute_import import sys import re import codecs from . import six from .six.moves import configparser from .six.moves.configparser import DEFAULTSECT, ParsingError if six.PY2: ConfigParser = configparser.SafeConfigParser else: ConfigParser = configparser.ConfigParse...
true
true
f74f8967e13c0893391f5da7522069a2f4163c7a
1,605
py
Python
Chapter04/03_decimal_precision/my_library/models/library_book.py
PacktPublishing/-Odoo-13-Development-Cookbook-Fouth-Edition
fb75412e1ff13e1a1b3233f06de425c9df18aca7
[ "MIT" ]
125
2020-11-28T18:00:34.000Z
2022-03-07T17:53:22.000Z
Chapter04/03_decimal_precision/my_library/models/library_book.py
PacktPublishing/-Odoo-13-Development-Cookbook-Fouth-Edition
fb75412e1ff13e1a1b3233f06de425c9df18aca7
[ "MIT" ]
5
2021-02-02T10:03:29.000Z
2022-03-16T07:32:28.000Z
Chapter04/03_decimal_precision/my_library/models/library_book.py
PacktPublishing/-Odoo-13-Development-Cookbook-Fouth-Edition
fb75412e1ff13e1a1b3233f06de425c9df18aca7
[ "MIT" ]
182
2020-11-29T12:07:07.000Z
2022-03-22T04:27:51.000Z
# -*- coding: utf-8 -*- from odoo import models, fields from odoo.addons import decimal_precision as dp class LibraryBook(models.Model): _name = 'library.book' _description = 'Library Book' _order = 'date_release desc, name' name = fields.Char('Title', required=True, index=True) short_name = fie...
37.325581
78
0.636137
from odoo import models, fields from odoo.addons import decimal_precision as dp class LibraryBook(models.Model): _name = 'library.book' _description = 'Library Book' _order = 'date_release desc, name' name = fields.Char('Title', required=True, index=True) short_name = fields.Char('Short Title',...
true
true
f74f89927eabe68e1deafafb19ba6f703dd17b28
34,660
py
Python
LogDiscordBot/src/classes/Commands.py
callFEELD/logs.tf-discord-bot
32225f33a727a9be64208b23c6eb883611d43850
[ "MIT" ]
4
2017-12-12T06:44:15.000Z
2019-10-22T22:35:03.000Z
LogDiscordBot/src/classes/Commands.py
callFEELD/logs.tf-discord-bot
32225f33a727a9be64208b23c6eb883611d43850
[ "MIT" ]
3
2017-08-31T15:13:41.000Z
2019-03-07T10:16:31.000Z
LogDiscordBot/src/classes/Commands.py
callFEELD/logs.tf-discord-bot
32225f33a727a9be64208b23c6eb883611d43850
[ "MIT" ]
6
2017-08-22T04:56:20.000Z
2019-09-14T22:43:56.000Z
# This Class handles and contain every command. # last edit: 20.02.2019 (callFEELD) # imports import discord # own imports from src.classes.Essentials import LogBotEssentials, tosteamid3, totime, LogPlayerSearch, LogIDdetails, get_closest_demo, PerformanceDisplay from src.classes.Users import LogBotUsers from src.cla...
48.072122
180
0.525851
import discord from src.classes.Essentials import LogBotEssentials, tosteamid3, totime, LogPlayerSearch, LogIDdetails, get_closest_demo, PerformanceDisplay from src.classes.Users import LogBotUsers from src.classes.Teams import LogBotTeams from src.classes.Database import DB database = DB() LBU = LogBotUsers(dat...
true
true
f74f89bda16e2f70e56529f381de6b2e4eaacb1e
490
py
Python
scrapy/_monkeypatches.py
Respawnz/scrapy
22f7934fcc4912c1f9cdf87e426eb29d777db349
[ "BSD-3-Clause" ]
3
2020-05-16T01:54:47.000Z
2021-04-27T01:37:08.000Z
scrapy/_monkeypatches.py
Venfox/scrapy
cf39602c3038d576e14c20a2ac22f88006deb63b
[ "BSD-3-Clause" ]
7
2020-05-11T01:45:45.000Z
2022-03-02T14:58:30.000Z
scrapy/_monkeypatches.py
Venfox/scrapy
cf39602c3038d576e14c20a2ac22f88006deb63b
[ "BSD-3-Clause" ]
5
2020-05-12T11:04:44.000Z
2020-05-31T14:08:00.000Z
import copyreg # Undo what Twisted's perspective broker adds to pickle register # to prevent bugs like Twisted#7989 while serializing requests import twisted.persisted.styles # NOQA # Remove only entries with twisted serializers for non-twisted types. for k, v in frozenset(copyreg.dispatch_table.items()): if not...
40.833333
72
0.730612
import copyreg # to prevent bugs like Twisted#7989 while serializing requests import twisted.persisted.styles # NOQA # Remove only entries with twisted serializers for non-twisted types. for k, v in frozenset(copyreg.dispatch_table.items()): if not str(getattr(k, '__module__', '')).startswith('twisted') \ ...
true
true
f74f89c9bae698beab2e7c24bdbea1109c688ccf
3,616
py
Python
intrinsic/evaluation/classifiers/embeddings/sentence_embedding.py
UKPLab/linspector
46a7cca6ad34dc673feb47c4d452f1248d5e635b
[ "Apache-2.0" ]
21
2019-03-21T12:10:09.000Z
2022-03-01T04:42:34.000Z
intrinsic/evaluation/classifiers/embeddings/sentence_embedding.py
UKPLab/linspector
46a7cca6ad34dc673feb47c4d452f1248d5e635b
[ "Apache-2.0" ]
1
2019-03-25T17:27:40.000Z
2019-04-04T07:01:08.000Z
intrinsic/evaluation/classifiers/embeddings/sentence_embedding.py
UKPLab/linspector
46a7cca6ad34dc673feb47c4d452f1248d5e635b
[ "Apache-2.0" ]
2
2019-04-17T07:36:12.000Z
2019-10-10T09:15:29.000Z
import codecs from collections import defaultdict import torch from allennlp.common import Params from allennlp.data import Vocabulary from allennlp.modules.token_embedders.token_embedder import TokenEmbedder @TokenEmbedder.register("sentence_embedding") class SentenceEmbedding(TokenEmbedder): """ Embedd...
34.113208
123
0.569414
import codecs from collections import defaultdict import torch from allennlp.common import Params from allennlp.data import Vocabulary from allennlp.modules.token_embedders.token_embedder import TokenEmbedder @TokenEmbedder.register("sentence_embedding") class SentenceEmbedding(TokenEmbedder): def read_file(sel...
true
true
f74f8a08d90691545795754f4141d5c417a4e2b3
634
py
Python
src/medigan/__init__.py
RichardObi/medigan
a2a13e4488c1eb46eb79efa5bf41b33ae7932929
[ "MIT" ]
2
2021-10-07T16:13:05.000Z
2022-03-22T08:04:02.000Z
src/medigan/__init__.py
RichardObi/medigan
a2a13e4488c1eb46eb79efa5bf41b33ae7932929
[ "MIT" ]
2
2022-03-29T19:38:26.000Z
2022-03-29T19:43:45.000Z
src/medigan/__init__.py
RichardObi/medigan
a2a13e4488c1eb46eb79efa5bf41b33ae7932929
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ! /usr/bin/env python """ `medigan` is a modular Python library for automating synthetic dataset generation. .. codeauthor:: Richard Osuala <richard.osuala@gmail.com> .. codeauthor:: Noussair Lazrak <lazrak.noussair@gmail.com> """ # Set default logging handler to avoid "No handler found" warn...
37.294118
114
0.772871
import logging from logging import NullHandler from .generators import Generators logging.getLogger(__name__).addHandler(NullHandler())
true
true
f74f8b8ae5c5c2540bbcc6437b4c5384e353cf36
2,778
py
Python
ck/repo/module/program.output/module.py
santosh653/ck
f09b836df48598aff4db241b52c37899a73eb569
[ "BSD-3-Clause" ]
480
2015-02-04T16:07:43.000Z
2021-08-17T13:47:53.000Z
ck/repo/module/program.output/module.py
santosh653/ck
f09b836df48598aff4db241b52c37899a73eb569
[ "BSD-3-Clause" ]
166
2015-02-05T16:03:52.000Z
2021-08-16T14:21:58.000Z
ck/repo/module/program.output/module.py
santosh653/ck
f09b836df48598aff4db241b52c37899a73eb569
[ "BSD-3-Clause" ]
62
2015-02-05T17:21:14.000Z
2021-09-05T10:24:53.000Z
# # Collective Knowledge (check program output) # # 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 (tem...
25.254545
125
0.49712
cfg={} work={} ck=None
true
true
f74f8bd76f7e5eb3cbb5fac7fe1a42a286c1498e
4,693
py
Python
assists/baremetal_bspconfig_xlnx.py
bentheredonethat/lopper
e6383e6f740b594c930305b2b06393dc898d6f33
[ "BSD-3-Clause" ]
null
null
null
assists/baremetal_bspconfig_xlnx.py
bentheredonethat/lopper
e6383e6f740b594c930305b2b06393dc898d6f33
[ "BSD-3-Clause" ]
null
null
null
assists/baremetal_bspconfig_xlnx.py
bentheredonethat/lopper
e6383e6f740b594c930305b2b06393dc898d6f33
[ "BSD-3-Clause" ]
null
null
null
#/* # * Copyright (c) 2020 Xilinx Inc. All rights reserved. # * # * Author: # * Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> # * # * SPDX-License-Identifier: BSD-3-Clause # */ import struct import sys import types import unittest import os import getopt import re import subprocess import shutil fro...
38.467213
160
0.558918
import struct import sys import types import unittest import os import getopt import re import subprocess import shutil from pathlib import Path from pathlib import PurePath from io import StringIO import contextlib import importlib from lopper import Lopper from lopper import LopperFmt import lopper from lopp...
true
true
f74f8be12176352cbfabf4a079516fae38aa6d99
1,777
py
Python
normal.py
spatchcock/models
b97eef75d080c903cc6280b1d5955033d14bcf84
[ "Unlicense" ]
1
2015-04-01T19:26:26.000Z
2015-04-01T19:26:26.000Z
normal.py
spatchcock/models
b97eef75d080c903cc6280b1d5955033d14bcf84
[ "Unlicense" ]
null
null
null
normal.py
spatchcock/models
b97eef75d080c903cc6280b1d5955033d14bcf84
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 24 22:11:12 2014 @author: spatchcock """ import math import numpy import matplotlib.pyplot as plt # Plot the normal distribution function as well as its first and second derivatives # # Use the numpy.vectorize function to handle array manupulation # http://statistics....
25.753623
126
0.638717
import math import numpy import matplotlib.pyplot as plt def norm(x, mean, sd): var = sd**2 pi = 3.1415926 denom = (2*pi*var)**.5 num = math.exp(-(x-mean)**2/(2*var)) return num/denom def norm_first_deriv(x, mean, std): return -(x-mean)*norm(x, mean, std)/std**2 def norm_seco...
true
true
f74f8dc6f7240afe6a1b92799de98d4f88cb6d9e
4,225
py
Python
src/timetabling/periodic/cycle-base/src/solver.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/timetabling/periodic/cycle-base/src/solver.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/timetabling/periodic/cycle-base/src/solver.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
import logging import gurobipy as gp from gurobipy import GRB from core.solver.impl.gurobi_interface import GurobiFilter from event_activity_network import PeriodicEventActivityNetwork from helper import Parameters logger_ = logging.getLogger(__name__) # workaround to avoid double logging output grbfilter = Gurob...
35.504202
113
0.64
import logging import gurobipy as gp from gurobipy import GRB from core.solver.impl.gurobi_interface import GurobiFilter from event_activity_network import PeriodicEventActivityNetwork from helper import Parameters logger_ = logging.getLogger(__name__) grbfilter = GurobiFilter() grblogger = logging.getLogger('gu...
true
true
f74f8e472303d8170a60cc465e33cac7980017c3
1,424
py
Python
api/tests/conftest.py
open-alchemy/Editor
0f8465bdc13ec5326272adf5e125fa523be29e9d
[ "Apache-2.0" ]
null
null
null
api/tests/conftest.py
open-alchemy/Editor
0f8465bdc13ec5326272adf5e125fa523be29e9d
[ "Apache-2.0" ]
197
2021-01-07T07:14:29.000Z
2021-09-06T08:08:23.000Z
api/tests/conftest.py
open-alchemy/OpenAlchemyEditor
0f8465bdc13ec5326272adf5e125fa523be29e9d
[ "Apache-2.0" ]
null
null
null
"""Fixtures.""" import pytest from library import config from library.facades import seed @pytest.fixture def default_seed(): """Set the default seed.""" name = config.get_env().default_seed_name value = "value 1" seed.get_seed().set(name=name, value=value) yield name, value seed.get_seed()...
21.253731
64
0.65309
import pytest from library import config from library.facades import seed @pytest.fixture def default_seed(): name = config.get_env().default_seed_name value = "value 1" seed.get_seed().set(name=name, value=value) yield name, value seed.get_seed().delete(name=name) @pytest.fixture def single_...
true
true
f74f8eaf5157cf3ca3f72caf88918605e5a94792
4,654
py
Python
raco/expression/expressions_library.py
uwescience/raco
1f2bedbef71bacf715340289f4973d85a3c1dc97
[ "BSD-3-Clause" ]
61
2015-02-09T17:27:40.000Z
2022-03-28T14:37:53.000Z
raco/expression/expressions_library.py
uwescience/raco
1f2bedbef71bacf715340289f4973d85a3c1dc97
[ "BSD-3-Clause" ]
201
2015-01-03T02:46:19.000Z
2017-09-19T02:16:36.000Z
raco/expression/expressions_library.py
uwescience/raco
1f2bedbef71bacf715340289f4973d85a3c1dc97
[ "BSD-3-Clause" ]
17
2015-06-03T12:01:30.000Z
2021-11-27T15:49:21.000Z
""" A library of expressions that can be composed of existing expressions. """ from .udf import Function import raco.expression from raco.expression import * def is_defined(function_name): return function_name.lower() in EXPRESSIONS def lookup(function_name, num_args): func = EXPRESSIONS.get(function_name....
39.109244
88
0.583584
from .udf import Function import raco.expression from raco.expression import * def is_defined(function_name): return function_name.lower() in EXPRESSIONS def lookup(function_name, num_args): func = EXPRESSIONS.get(function_name.lower()) if hasattr(func, '__call__'): return func(num_args) if...
true
true
f74f8ee27fb2a894b951ae9d9e347a821a36e202
1,152
py
Python
src/integration-test/device.py
mikanbako/Android-Log-Matcher
c74ebbe3350746308a7106753db468826946fb4c
[ "Apache-2.0" ]
1
2020-04-28T03:50:19.000Z
2020-04-28T03:50:19.000Z
src/integration-test/device.py
mikanbako/Android-Log-Matcher
c74ebbe3350746308a7106753db468826946fb4c
[ "Apache-2.0" ]
null
null
null
src/integration-test/device.py
mikanbako/Android-Log-Matcher
c74ebbe3350746308a7106753db468826946fb4c
[ "Apache-2.0" ]
null
null
null
# coding: UTF-8 # Copyright 2012 Keita Kita # # 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...
28.097561
76
0.733507
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice device = None def init(): global device if not device: device = MonkeyRunner.waitForConnection(5) def get(): global device return device
true
true
f74f9027c82a4276640107ef60befcb52624eaa3
1,194
py
Python
mediaman/middleware/compression.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
1
2019-05-06T19:51:08.000Z
2019-05-06T19:51:08.000Z
mediaman/middleware/compression.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
1
2021-02-08T20:22:34.000Z
2021-02-08T20:22:34.000Z
mediaman/middleware/compression.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
null
null
null
import shutil import tempfile import zlib from mediaman.middleware import abstract class CompressionMiddlewareService(abstract.SimpleMiddleware): def compress(self, file_path): tempfile_ref = tempfile.NamedTemporaryFile(mode="wb+") with open(file_path, "rb") as infile: tempfile_ref....
29.121951
76
0.670017
import shutil import tempfile import zlib from mediaman.middleware import abstract class CompressionMiddlewareService(abstract.SimpleMiddleware): def compress(self, file_path): tempfile_ref = tempfile.NamedTemporaryFile(mode="wb+") with open(file_path, "rb") as infile: tempfile_ref....
true
true
f74f90341b98d31564b57c680019c3a07cb93d0a
528
py
Python
core/cooggerapp/urls/users.py
maksatweb/coogger
480d4cccb2c6876fba116511b72775e2e434245b
[ "MIT" ]
null
null
null
core/cooggerapp/urls/users.py
maksatweb/coogger
480d4cccb2c6876fba116511b72775e2e434245b
[ "MIT" ]
null
null
null
core/cooggerapp/urls/users.py
maksatweb/coogger
480d4cccb2c6876fba116511b72775e2e434245b
[ "MIT" ]
1
2019-07-01T10:08:33.000Z
2019-07-01T10:08:33.000Z
# django from django.urls import path # views from ..views.users import (About, Comment, Bookmark, UserContent) from ..views.utopic import (UserTopic) urlpatterns = [ path('u/@<username>/about/', About.as_view(), name="userabout"), path('@<username>/', UserTopic.as_view(), name="user"), path('u/@<username...
35.2
78
0.666667
from django.urls import path from ..views.users import (About, Comment, Bookmark, UserContent) from ..views.utopic import (UserTopic) urlpatterns = [ path('u/@<username>/about/', About.as_view(), name="userabout"), path('@<username>/', UserTopic.as_view(), name="user"), path('u/@<username>/comment/', Co...
true
true
f74f90ac2fb2e526af9aaa3e90e4f1fcd69f0437
2,504
py
Python
official/projects/edgetpu/vision/serving/tflite_imagenet_evaluator_run.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
1
2020-09-14T10:46:07.000Z
2020-09-14T10:46:07.000Z
official/projects/edgetpu/vision/serving/tflite_imagenet_evaluator_run.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
8
2020-05-19T00:52:30.000Z
2020-06-04T23:57:20.000Z
official/projects/edgetpu/vision/serving/tflite_imagenet_evaluator_run.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
2
2021-10-07T04:47:04.000Z
2021-12-18T04:18:19.000Z
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.777778
78
0.761981
from typing import Sequence from absl import app from absl import flags import tensorflow as tf from official.core import exp_factory from official.projects.edgetpu.vision.serving import tflite_imagenet_evaluator from official.projects.edgetpu.vision.tasks import image_classification flags.DEFINE_stri...
true
true
f74f91e51f192547d43c2589797191600bb77056
13,458
py
Python
qiskit/algorithms/optimizers/qnspsa.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,456
2017-08-05T16:33:05.000Z
2018-06-05T04:15:35.000Z
qiskit/algorithms/optimizers/qnspsa.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
365
2017-08-04T06:09:16.000Z
2018-06-05T08:33:37.000Z
qiskit/algorithms/optimizers/qnspsa.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
463
2017-08-05T04:10:01.000Z
2018-06-05T06:43:21.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
46.891986
103
0.645267
from typing import Any, Iterator, Optional, Union, Callable, Dict import numpy as np from qiskit.providers import Backend from qiskit.circuit import ParameterVector, QuantumCircuit from qiskit.opflow import StateFn, CircuitSampler, ExpectationBase from qiskit.utils import QuantumInstance from .spsa impor...
true
true
f74f929f293495d43aada9c64aa5e1c7337e525e
893,109
py
Python
nebula2/meta/MetaService.py
kikimo/nebula-python
98e08e489f3a86c3ce2fae3b46c06b48ca387724
[ "Apache-2.0" ]
1
2021-08-23T02:41:41.000Z
2021-08-23T02:41:41.000Z
nebula2/meta/MetaService.py
kikimo/nebula-python
98e08e489f3a86c3ce2fae3b46c06b48ca387724
[ "Apache-2.0" ]
null
null
null
nebula2/meta/MetaService.py
kikimo/nebula-python
98e08e489f3a86c3ce2fae3b46c06b48ca387724
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Thrift # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @generated # from __future__ import absolute_import import six import sys from nebula2.fbthrift.util.Recursive import fix_spec from nebula2.fbthrift.Thrift import TType, TMessageType, TPriority, TRequestContext, TProces...
38.409986
2,694
0.726274
from __future__ import absolute_import import six import sys from nebula2.fbthrift.util.Recursive import fix_spec from nebula2.fbthrift.Thrift import TType, TMessageType, TPriority, TRequestContext, TProcessorEventHandler, TServerInterface, TProcessor, TException, TApplicationException, UnimplementedTypedef from...
true
true
f74f9319a43fb915e38cbf865e1dd486f32fd4db
20,196
py
Python
dygraph/paddlex/ppdet/data/source/category.py
follower/PaddleX
466e985f16cb82a634e3ffcf72a5784fb33a6897
[ "Apache-2.0" ]
1
2021-07-10T09:54:19.000Z
2021-07-10T09:54:19.000Z
dygraph/paddlex/ppdet/data/source/category.py
liyhc/PaddleX
bad2fd2b97cdf2ffa783650ccee0458a53dfbe6e
[ "Apache-2.0" ]
null
null
null
dygraph/paddlex/ppdet/data/source/category.py
liyhc/PaddleX
bad2fd2b97cdf2ffa783650ccee0458a53dfbe6e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
24.509709
78
0.456922
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from paddlex.ppdet.data.source.voc import pascalvoc_label from paddlex.ppdet.data.source.widerface import widerface_label from paddlex.ppdet.utils.logger import setup_logger logger = se...
true
true
f74f93b1c7a54803a36ce401deb2d22c52c4457c
69,817
py
Python
discord/channel.py
Kev-in123/discord.py
6aa3d9a3b2ac96b66bba5773296399c0abcc63cb
[ "MIT" ]
1
2021-09-06T13:13:40.000Z
2021-09-06T13:13:40.000Z
discord/channel.py
Kev-in123/discord.py
6aa3d9a3b2ac96b66bba5773296399c0abcc63cb
[ "MIT" ]
null
null
null
discord/channel.py
Kev-in123/discord.py
6aa3d9a3b2ac96b66bba5773296399c0abcc63cb
[ "MIT" ]
1
2021-08-28T01:01:08.000Z
2021-08-28T01:01:08.000Z
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
33.533622
122
0.607101
from __future__ import annotations import time import asyncio from typing import ( Any, Callable, Dict, Iterable, List, Mapping, Optional, TYPE_CHECKING, Tuple, Type, TypeVar, Union, overload, ) import datetime import discord.abc from .permissions import Permission...
true
true
f74f93b563bb8cfe67c916a6b6ac8066e74d02b1
2,373
py
Python
nsd1902/devops/day01/crud3.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
1
2019-09-19T04:53:22.000Z
2019-09-19T04:53:22.000Z
nsd1902/devops/day01/crud3.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
null
null
null
nsd1902/devops/day01/crud3.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
1
2021-12-28T04:26:02.000Z
2021-12-28T04:26:02.000Z
from dbconn import Session, Departments, Employees # 1. 创建一个会话实例 session = Session() ################################# # 查询数据库,返回实体类的实例 # qset1 = session.query(Departments) # print(qset1) # 此时只是一条SQL语句,不真正连接数据库 # print(list(qset1)) # 取值的时候,才会连接数据库 # for dep in qset1: # print('部门ID: %s, 部门名称: %s' % (dep.dep_id, ...
30.423077
73
0.622419
from dbconn import Session, Departments, Employees session = Session()
true
true
f74f94bd621043aa8306838314d0ee619931738c
2,369
py
Python
src/main/java/com/Da_Technomancer/essentials/python/LootTableGenerator.py
hedgehog1029/Essentials
cdb1995c4d4a664f33f5b13d88a3d0ee603b49e9
[ "MIT" ]
12
2018-06-18T13:57:25.000Z
2021-10-03T20:47:51.000Z
src/main/java/com/Da_Technomancer/essentials/python/LootTableGenerator.py
hedgehog1029/Essentials
cdb1995c4d4a664f33f5b13d88a3d0ee603b49e9
[ "MIT" ]
55
2018-05-18T23:10:10.000Z
2021-09-28T22:26:57.000Z
src/main/java/com/Da_Technomancer/essentials/python/LootTableGenerator.py
hedgehog1029/Essentials
cdb1995c4d4a664f33f5b13d88a3d0ee603b49e9
[ "MIT" ]
12
2018-10-04T20:31:06.000Z
2021-08-25T00:24:01.000Z
import os # Generates a basic loot table entry for every essentials blocks with a defined blockstate file, # where the blocks drops itself blockstates = os.listdir("../../../../../resources/assets/essentials/blockstates/") regNames = [os.path.basename(bstate) for bstate in blockstates] loottablePath = "../../../../....
78.966667
700
0.604897
import os blockstates = os.listdir("../../../../../resources/assets/essentials/blockstates/") regNames = [os.path.basename(bstate) for bstate in blockstates] loottablePath = "../../../../../resources/data/essentials/loot_tables/blocks" for prevTable in os.listdir(loottablePath): if os.path.isfile(prevTable): o...
true
true
f74f94eef5170aff2334d148a9b513e84978269a
7,735
py
Python
eda.py
magood/MarkeplacePredict
f74ea035d6b861b9594ec2b91b38adad18e1bb00
[ "MIT" ]
null
null
null
eda.py
magood/MarkeplacePredict
f74ea035d6b861b9594ec2b91b38adad18e1bb00
[ "MIT" ]
null
null
null
eda.py
magood/MarkeplacePredict
f74ea035d6b861b9594ec2b91b38adad18e1bb00
[ "MIT" ]
null
null
null
# Exploratory data analysis # py 3, using "mplace" conda env. import numpy as np import pandas as pd import pickle, itertools, os from matplotlib import pyplot as plt import seaborn as sns from yahoofinancials import YahooFinancials as YF from sklearn.preprocessing import StandardScaler from sklearn.preprocessing impo...
37.36715
226
0.669683
import numpy as np import pandas as pd import pickle, itertools, os from matplotlib import pyplot as plt import seaborn as sns from yahoofinancials import YahooFinancials as YF from sklearn.preprocessing import StandardScaler from sklearn.preprocessing import LabelEncoder from sklearn.ensemble import RandomForestCla...
true
true
f74f9548abaeada3ef4659b76d6a79a8b773821c
68,245
py
Python
owncloud/owncloud.py
vitusbenson/pyocclient
824cfec6c6386d070ec57bca3b33e469c479e563
[ "MIT" ]
null
null
null
owncloud/owncloud.py
vitusbenson/pyocclient
824cfec6c6386d070ec57bca3b33e469c479e563
[ "MIT" ]
null
null
null
owncloud/owncloud.py
vitusbenson/pyocclient
824cfec6c6386d070ec57bca3b33e469c479e563
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # vim: expandtab shiftwidth=4 softtabstop=4 # """ownCloud client module Makes it possible to access files on a remote ownCloud instance, share them or access application attributes. """ import datetime import time import requests import xml.etree.ElementTree as ET import os import math impor...
34.571935
137
0.580643
import datetime import time import requests import xml.etree.ElementTree as ET import os import math import six from six.moves.urllib import parse from tqdm import tqdm class ResponseError(Exception): def __init__(self, res, errorType): if type(res) is int: code = res else: ...
true
true
f74f959b66cdcc972a6a418908147495d874676d
9,358
py
Python
ros/src/visual/visual.py
ongchinkiat/CarND-Capstone
abd768450825a03975f2b7b87f1379285357347b
[ "MIT" ]
null
null
null
ros/src/visual/visual.py
ongchinkiat/CarND-Capstone
abd768450825a03975f2b7b87f1379285357347b
[ "MIT" ]
null
null
null
ros/src/visual/visual.py
ongchinkiat/CarND-Capstone
abd768450825a03975f2b7b87f1379285357347b
[ "MIT" ]
1
2018-11-28T22:59:05.000Z
2018-11-28T22:59:05.000Z
#!/usr/bin/env python import numpy as np import rospy import matplotlib matplotlib.use('Qt5Agg') from matplotlib import pyplot as plt from geometry_msgs.msg import PoseStamped from geometry_msgs.msg import TwistStamped from sensor_msgs.msg import Image from styx_msgs.msg import TrafficLightArray, TrafficLight from st...
34.91791
99
0.595961
import numpy as np import rospy import matplotlib matplotlib.use('Qt5Agg') from matplotlib import pyplot as plt from geometry_msgs.msg import PoseStamped from geometry_msgs.msg import TwistStamped from sensor_msgs.msg import Image from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import La...
true
true
f74f973138f9e7db5e67fec9d508aac284513312
922
py
Python
tests/test_000_client_core.py
vilkasgroup/Procountor
f3ed0f4071ddbd6f2ee3a4ce455ca5e1090217a2
[ "MIT" ]
2
2019-07-25T12:21:49.000Z
2021-11-27T12:26:12.000Z
tests/test_000_client_core.py
vilkasgroup/Procountor
f3ed0f4071ddbd6f2ee3a4ce455ca5e1090217a2
[ "MIT" ]
11
2018-01-30T13:21:49.000Z
2021-11-16T07:09:27.000Z
tests/test_000_client_core.py
vilkasgroup/Procountor
f3ed0f4071ddbd6f2ee3a4ce455ca5e1090217a2
[ "MIT" ]
3
2018-05-15T12:49:54.000Z
2019-07-25T12:21:55.000Z
import unittest from tests import TestClient from procountor.client import Client class TestClientClient(TestClient): def __init__(self, *args, **kwargs): super(TestClientClient, self).__init__(*args, **kwargs) def test_0001_init(self): """ Testing that client has required params """ ...
34.148148
97
0.710412
import unittest from tests import TestClient from procountor.client import Client class TestClientClient(TestClient): def __init__(self, *args, **kwargs): super(TestClientClient, self).__init__(*args, **kwargs) def test_0001_init(self): self.assertIsInstance(self.client, Client) self...
true
true
f74f973d6b48575aab18bd6455c0ff93388b81ce
7,855
py
Python
pytorch_lightning/loops/utilities.py
aphedges/pytorch-lightning
160e7e128909abc8489261287a562777cf1ada02
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/loops/utilities.py
aphedges/pytorch-lightning
160e7e128909abc8489261287a562777cf1ada02
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/loops/utilities.py
aphedges/pytorch-lightning
160e7e128909abc8489261287a562777cf1ada02
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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...
40.699482
116
0.713813
from collections import OrderedDict from contextlib import contextmanager from typing import Any, Dict, Generator, Iterator, Mapping, Optional, Sequence, Tuple import torch from torch.optim import Optimizer import pytorch_lightning as pl from pytorch_lightning.plugins import ParallelPlugin from pytorch_l...
true
true
f74f97454f84b4d4e9b6af065f89a200aaa13123
3,962
py
Python
python/pysmurf/core/emulators/_StreamDataEmulatorI32.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T02:37:59.000Z
2022-03-09T16:42:34.000Z
python/pysmurf/core/emulators/_StreamDataEmulatorI32.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
446
2019-04-10T04:46:20.000Z
2022-03-15T20:27:57.000Z
python/pysmurf/core/emulators/_StreamDataEmulatorI32.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
13
2019-02-05T18:02:05.000Z
2021-03-02T18:41:49.000Z
#!/usr/bin/env python #----------------------------------------------------------------------------- # Title : PySMuRF StreamDataEmulator #----------------------------------------------------------------------------- # File : _StreamDataEmulatorI32.py # Created : 2019-10-29 #------------------------------...
37.028037
127
0.544422
import pyrogue import smurf import smurf.core.emulators class StreamDataEmulatorI32(pyrogue.Device): def __init__(self, name="StreamDataEmulatorI32", description="SMURF Data Emulator, with output data type Int32", **kwargs): pyrogue.Device.__init__(self, name=name, description=descripti...
true
true
f74f97beb580d3cd22b04f4eaf293e909e886927
7,069
py
Python
tempest/api/image/base.py
HybridF5/tempest-jacket
7066346b3de76e024df6f1230b8a829b53840d40
[ "Apache-2.0" ]
null
null
null
tempest/api/image/base.py
HybridF5/tempest-jacket
7066346b3de76e024df6f1230b8a829b53840d40
[ "Apache-2.0" ]
null
null
null
tempest/api/image/base.py
HybridF5/tempest-jacket
7066346b3de76e024df6f1230b8a829b53840d40
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
33.822967
79
0.66346
import six from tempest.common import image as common_image from tempest.common.utils import data_utils from tempest import config from tempest.lib.common.utils import test_utils import tempest.test CONF = config.CONF class BaseImageTest(tempest.test.BaseTestCase): credentials = ['primary'] ...
true
true
f74f98f60f38ef718975aa40bdddfd0ad79588a7
511
py
Python
env/lib/python3.8/site-packages/plotly/validators/bar/marker/colorbar/_ticklen.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/bar/marker/colorbar/_ticklen.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/bar/marker/colorbar/_ticklen.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="ticklen", parent_name="bar.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_na...
31.9375
80
0.626223
import _plotly_utils.basevalidators class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="ticklen", parent_name="bar.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_na...
true
true
f74f99aa09424c836af2d37f0727ec2b7f439bd1
1,531
py
Python
src/grokcore/site/__init__.py
zopefoundation/grokcore.site
2bd79d64bb661a9e170356cd2cb89189faa8d5e7
[ "ZPL-2.1" ]
null
null
null
src/grokcore/site/__init__.py
zopefoundation/grokcore.site
2bd79d64bb661a9e170356cd2cb89189faa8d5e7
[ "ZPL-2.1" ]
4
2018-01-10T16:20:32.000Z
2021-04-20T08:51:17.000Z
src/grokcore/site/__init__.py
zopefoundation/grokcore.site
2bd79d64bb661a9e170356cd2cb89189faa8d5e7
[ "ZPL-2.1" ]
2
2015-04-03T04:58:58.000Z
2018-01-12T06:52:53.000Z
############################################################################## # # Copyright (c) 2006-2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
46.393939
78
0.707381
true
true
f74f99d8fa0838d4ecf9b0283276fccb521113fe
685
py
Python
Python_challege/formate_and_string.py
pavi-ninjaac/HackerRank
1808c8ee8fb475e453aa1c19feb3734fa2be6325
[ "MIT" ]
null
null
null
Python_challege/formate_and_string.py
pavi-ninjaac/HackerRank
1808c8ee8fb475e453aa1c19feb3734fa2be6325
[ "MIT" ]
null
null
null
Python_challege/formate_and_string.py
pavi-ninjaac/HackerRank
1808c8ee8fb475e453aa1c19feb3734fa2be6325
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 13 20:12:58 2020 @author: ninjaac """ #############using the formate function def print_full_name(a, b): print("Hello {a} {b} ! You just delved into python.") if __name__ == '__main__': first_name = input() last_name = input() print_full_na...
22.833333
58
0.589781
true
true
f74f9a297bc982f05e21a2602cb41f812045a723
218
py
Python
src/postfix/constants.py
theProgrammerDavid/PyGraph
e6a011c75352d15c727dca3d1e33cafa62ef0e81
[ "MIT" ]
1
2017-11-07T15:59:06.000Z
2017-11-07T15:59:06.000Z
src/postfix/constants.py
theProgrammerDavid/PyGraph
e6a011c75352d15c727dca3d1e33cafa62ef0e81
[ "MIT" ]
2
2021-03-31T14:55:56.000Z
2021-03-31T15:01:14.000Z
src/postfix/constants.py
theProgrammerDavid/PyGraph
e6a011c75352d15c727dca3d1e33cafa62ef0e81
[ "MIT" ]
2
2019-12-19T17:44:23.000Z
2020-01-19T08:58:02.000Z
''' File to store special mathematical constants supported by the program ''' import math CONSTANTS = { "e":math.e, "pi":math.pi } def add_constant(name, value): CONSTANTS[name] = value
14.533333
69
0.619266
import math CONSTANTS = { "e":math.e, "pi":math.pi } def add_constant(name, value): CONSTANTS[name] = value
true
true
f74f9abb0d9b304cc7e8bf67e5ff8115c9721589
38,318
py
Python
tests/commands/install_uninstall_test.py
pre-commit-fork/pre-commit
53283596529f4e9bc1a34b4e62051a84fda78caa
[ "MIT" ]
null
null
null
tests/commands/install_uninstall_test.py
pre-commit-fork/pre-commit
53283596529f4e9bc1a34b4e62051a84fda78caa
[ "MIT" ]
2
2022-03-31T17:06:36.000Z
2022-03-31T17:07:15.000Z
tests/commands/install_uninstall_test.py
pre-commit-fork/pre-commit
53283596529f4e9bc1a34b4e62051a84fda78caa
[ "MIT" ]
1
2022-03-30T22:16:24.000Z
2022-03-30T22:16:24.000Z
from __future__ import annotations import os.path import re import re_assert import before_commit.constants as C from before_commit import git from before_commit.commands.install_uninstall import _hook_types from before_commit.commands.install_uninstall import CURRENT_HASH from before_commit.commands.install_uninsta...
34.897996
79
0.63996
from __future__ import annotations import os.path import re import re_assert import before_commit.constants as C from before_commit import git from before_commit.commands.install_uninstall import _hook_types from before_commit.commands.install_uninstall import CURRENT_HASH from before_commit.commands.install_uninsta...
true
true
f74f9acfe7dc7ac75c1c66e5dd65e22caadf2ec1
2,158
py
Python
src/programy/parser/template/nodes/person.py
cdoebler1/AIML2
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
src/programy/parser/template/nodes/person.py
MikeyBeez/program-y
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
src/programy/parser/template/nodes/person.py
VProgramMist/modified-program-y
f32efcafafd773683b3fe30054d5485fe9002b7d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
""" Copyright (c) 2016-2020 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
44.040816
120
0.712234
from programy.utils.logging.ylogger import YLogger from programy.parser.template.nodes.base import TemplateNode class TemplatePersonNode(TemplateNode): def __init__(self): TemplateNode.__init__(self) def resolve_to_string(self, client_context): string = self.resolve_children_to_string(client...
true
true
f74f9aeb149d2a8c9e4de395b56eb919e03a749c
2,134
py
Python
setup.py
ehoraizon/engineCrawler
9a69b2982a4c1e89158507b3703a9ef7575e1e85
[ "MIT" ]
7
2020-10-26T08:04:45.000Z
2022-02-14T03:22:22.000Z
setup.py
ehoraizon/engineCrawler
9a69b2982a4c1e89158507b3703a9ef7575e1e85
[ "MIT" ]
null
null
null
setup.py
ehoraizon/engineCrawler
9a69b2982a4c1e89158507b3703a9ef7575e1e85
[ "MIT" ]
null
null
null
from setuptools import setup from os import sep from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( version='1.3', description='Scraping images from the web.', author='Eri...
36.169492
73
0.60731
from setuptools import setup from os import sep from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( version='1.3', description='Scraping images from the web.', author='Eri...
true
true
f74f9b1122925120cb48ff13aa361f968d61d536
441
py
Python
solid/3-bad-lsp.py
CtrlWebInc/montreal-django-tests
b7e9921d90574b68b4f7c036fb0e086ff8a065f1
[ "MIT" ]
1
2016-03-30T13:16:17.000Z
2016-03-30T13:16:17.000Z
solid/3-bad-lsp.py
CtrlWebInc/montreal-django-tests
b7e9921d90574b68b4f7c036fb0e086ff8a065f1
[ "MIT" ]
null
null
null
solid/3-bad-lsp.py
CtrlWebInc/montreal-django-tests
b7e9921d90574b68b4f7c036fb0e086ff8a065f1
[ "MIT" ]
null
null
null
class Animal(object): pass class Duck(Animal): pass class Snake(Animal): pass class Platypus(Animal): pass def can_quack(animal): if isinstance(animal, Duck): return True elif isinstance(animal, Snake): return False else: raise RuntimeError('Unknown animal!') ...
14.7
45
0.634921
class Animal(object): pass class Duck(Animal): pass class Snake(Animal): pass class Platypus(Animal): pass def can_quack(animal): if isinstance(animal, Duck): return True elif isinstance(animal, Snake): return False else: raise RuntimeError('Unknown animal!') ...
true
true
f74f9bfcb007d61bff895557ca07aa922e92178c
883
py
Python
questiondb/questions/migrations/0006_document.py
shmish/question-bank
f5e7e578632148bb564a7fef044cc2e79b4b8f4e
[ "MIT" ]
null
null
null
questiondb/questions/migrations/0006_document.py
shmish/question-bank
f5e7e578632148bb564a7fef044cc2e79b4b8f4e
[ "MIT" ]
5
2020-06-06T00:23:39.000Z
2021-06-09T18:52:49.000Z
questiondb/questions/migrations/0006_document.py
shmish/question-bank
f5e7e578632148bb564a7fef044cc2e79b4b8f4e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-06 03:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('questions', '0005_auto_20191103_1957'), ] operations = [ migrations.CreateModel( name='Document...
33.961538
122
0.605889
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('questions', '0005_auto_20191103_1957'), ] operations = [ migrations.CreateModel( name='Document', fields=[ ('id', ...
true
true
f74f9d1d25158cbff550baaff8a75f7a0e7067c9
302
py
Python
tests/binding_tests/point_tests/test_initialization.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
1
2021-01-20T05:49:13.000Z
2021-01-20T05:49:13.000Z
tests/binding_tests/point_tests/test_initialization.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
1
2020-11-20T18:21:24.000Z
2020-11-20T18:21:37.000Z
tests/binding_tests/point_tests/test_initialization.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
2
2020-11-20T18:17:31.000Z
2021-01-20T14:58:22.000Z
from _wagyu import Point from hypothesis import given from wagyu.hints import Coordinate from . import strategies @given(strategies.coordinates, strategies.coordinates) def test_basic(x: Coordinate, y: Coordinate) -> None: result = Point(x, y) assert result.x == x assert result.y == y
21.571429
54
0.738411
from _wagyu import Point from hypothesis import given from wagyu.hints import Coordinate from . import strategies @given(strategies.coordinates, strategies.coordinates) def test_basic(x: Coordinate, y: Coordinate) -> None: result = Point(x, y) assert result.x == x assert result.y == y
true
true
f74f9d1e3c5fcfff5969d59ebf9f203b6f9c41e4
14,274
py
Python
qualcoder/attributes.py
qwertygc/QualCoder
2a4820f4de7a2ddf1a629336c74e534c20bdb5d9
[ "MIT" ]
null
null
null
qualcoder/attributes.py
qwertygc/QualCoder
2a4820f4de7a2ddf1a629336c74e534c20bdb5d9
[ "MIT" ]
null
null
null
qualcoder/attributes.py
qwertygc/QualCoder
2a4820f4de7a2ddf1a629336c74e534c20bdb5d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) 2020 Colin Curtain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
45.314286
126
0.630097
import datetime import os import platform import sys import logging import traceback from PyQt5 import QtCore, QtGui, QtWidgets from add_attribute import DialogAddAttribute from confirm_delete import DialogConfirmDelete from memo import DialogMemo from GUI.base64_helper import * from GUI.ui_dialog_manage_attribute...
true
true
f74f9d546b65c97ac0bbebe07a75b7ae23915f0b
1,696
py
Python
Python/phonenumbers/data/region_GI.py
skykisl/uberbruns2
26933efce04dba700d93cc75c7b74e069fb02d26
[ "Unlicense" ]
5
2015-04-27T20:10:56.000Z
2018-06-14T18:19:09.000Z
python/phonenumbers/data/region_GI.py
vemel/python-phonenumbers
595c322bf12106a3b95e3f202e948a7c6b6c15b8
[ "Apache-2.0" ]
2
2017-06-08T16:11:13.000Z
2018-05-07T11:50:13.000Z
python/phonenumbers/data/region_GI.py
vemel/python-phonenumbers
595c322bf12106a3b95e3f202e948a7c6b6c15b8
[ "Apache-2.0" ]
6
2015-02-19T11:11:04.000Z
2022-03-15T19:38:31.000Z
"""Auto-generated file, do not edit by hand. GI metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GI = PhoneMetadata(id='GI', country_code=350, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2568]\\d{7}', possible_number_pattern='...
94.222222
153
0.774764
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GI = PhoneMetadata(id='GI', country_code=350, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2568]\\d{7}', possible_number_pattern='\\d{8}'), fixed_line=PhoneNumberDesc(national_number_pat...
true
true
f74f9e1347dafa0bc7e5931220e7730020df6e15
2,243
py
Python
MachineLearning/MINST/CNN.py
fengtony686/workspace
9e382a02439cb510df5fb2c278ae4e206d830336
[ "MIT" ]
null
null
null
MachineLearning/MINST/CNN.py
fengtony686/workspace
9e382a02439cb510df5fb2c278ae4e206d830336
[ "MIT" ]
null
null
null
MachineLearning/MINST/CNN.py
fengtony686/workspace
9e382a02439cb510df5fb2c278ae4e206d830336
[ "MIT" ]
2
2019-07-08T01:50:48.000Z
2019-07-08T03:59:20.000Z
import os import torch import torch.nn as nn import torch.utils.data as Data import torchvision EPOCH = 1 BATCH_SIZE = 50 LR = 0.001 DOWNLOAD_MNIST = False if not(os.path.exists('./mnist/')) or not os.listdir('./mnist/'): DOWNLOAD_MNIST = True train_data = torchvision.datasets.MNIST( root='./mnist/', ...
26.388235
116
0.615247
import os import torch import torch.nn as nn import torch.utils.data as Data import torchvision EPOCH = 1 BATCH_SIZE = 50 LR = 0.001 DOWNLOAD_MNIST = False if not(os.path.exists('./mnist/')) or not os.listdir('./mnist/'): DOWNLOAD_MNIST = True train_data = torchvision.datasets.MNIST( root='./mnist/', ...
true
true
f74f9e9636f1808248d0bafbd0bec0e3d641755d
446
py
Python
constants.py
xfredeq/CT-simulator
b7cde915ed56fc6170c25f534d5cc4fd80217ba2
[ "MIT" ]
null
null
null
constants.py
xfredeq/CT-simulator
b7cde915ed56fc6170c25f534d5cc4fd80217ba2
[ "MIT" ]
null
null
null
constants.py
xfredeq/CT-simulator
b7cde915ed56fc6170c25f534d5cc4fd80217ba2
[ "MIT" ]
null
null
null
TITLE = "Computer Tomograph Simulation" ABOUT = "# This is a header. This is an *extremely* cool app!" AUTHORS = """ <h3 style='text-align: left; color: grey;'>Authors:</h3> <h4 style='text-align: left; color: grey;'>Mateusz Frąckowiak 145264</h4> <h4 style='text-align: left; color: grey;'>Kamil Niżnik 14...
29.733333
77
0.668161
TITLE = "Computer Tomograph Simulation" ABOUT = "# This is a header. This is an *extremely* cool app!" AUTHORS = """ <h3 style='text-align: left; color: grey;'>Authors:</h3> <h4 style='text-align: left; color: grey;'>Mateusz Frąckowiak 145264</h4> <h4 style='text-align: left; color: grey;'>Kamil Niżnik 14...
true
true
f74f9ebe240491e009a230a9d778e4a5deac1a74
671
py
Python
01_week/mip1.py
WoojaeJang/AppliedOptimization-Gurobi
067e4e5a0391de74f673f935b0ba765b037a4149
[ "AFL-1.1" ]
null
null
null
01_week/mip1.py
WoojaeJang/AppliedOptimization-Gurobi
067e4e5a0391de74f673f935b0ba765b037a4149
[ "AFL-1.1" ]
null
null
null
01_week/mip1.py
WoojaeJang/AppliedOptimization-Gurobi
067e4e5a0391de74f673f935b0ba765b037a4149
[ "AFL-1.1" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 3 10:08:38 2021 @author: woojae-macbook13 """ from gurobipy import * try: m = Model("mip1") Z = LinExpr() A = m.addVar(vtype=GRB.CONTINUOUS, name='A') C = m.addVar(vtype=GRB.CONTINUOUS, name='C') Z = 20*A + 30*C c0 =...
17.657895
48
0.52459
from gurobipy import * try: m = Model("mip1") Z = LinExpr() A = m.addVar(vtype=GRB.CONTINUOUS, name='A') C = m.addVar(vtype=GRB.CONTINUOUS, name='C') Z = 20*A + 30*C c0 = A <= 60 c1 = C <= 50 c2 = A + 2*C <= 120 m.setObjective(Z, GRB.MAXIMIZE) m.addConstr(c0, "c0")...
true
true
f74f9f565ecdceb04e267d25a3066792c8e1c4b7
1,897
py
Python
src/sentry/discover/endpoints/discover_saved_queries.py
evanspjz/sentry
032afdc4dd46cc54a99315bfa13304c44c4e546f
[ "BSD-3-Clause" ]
null
null
null
src/sentry/discover/endpoints/discover_saved_queries.py
evanspjz/sentry
032afdc4dd46cc54a99315bfa13304c44c4e546f
[ "BSD-3-Clause" ]
null
null
null
src/sentry/discover/endpoints/discover_saved_queries.py
evanspjz/sentry
032afdc4dd46cc54a99315bfa13304c44c4e546f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from rest_framework.response import Response from sentry.api.serializers import serialize from sentry.api.bases import OrganizationEndpoint from sentry.discover.models import DiscoverSavedQuery from sentry import features from sentry.discover.endpoints.bases import DiscoverSaved...
32.706897
88
0.684765
from __future__ import absolute_import from rest_framework.response import Response from sentry.api.serializers import serialize from sentry.api.bases import OrganizationEndpoint from sentry.discover.models import DiscoverSavedQuery from sentry import features from sentry.discover.endpoints.bases import DiscoverSaved...
true
true
f74f9fad68d691ab11a535481075be9b0c68d42c
2,873
py
Python
genomewide_gc/get_gc_content.py
kundajelab/bias_correction
521678ea8739473f793b0ce85e22e622d13df6fe
[ "MIT" ]
null
null
null
genomewide_gc/get_gc_content.py
kundajelab/bias_correction
521678ea8739473f793b0ce85e22e622d13df6fe
[ "MIT" ]
null
null
null
genomewide_gc/get_gc_content.py
kundajelab/bias_correction
521678ea8739473f793b0ce85e22e622d13df6fe
[ "MIT" ]
null
null
null
import pandas as pd import pysam import argparse def parse_args(): parser=argparse.ArgumentParser(description="get gc content from a bed file") parser.add_argument("--input_bed") parser.add_argument("--ref_fasta") parser.add_argument("--split_chroms",action="store_true",default=False) parser.add_arg...
32.280899
88
0.594152
import pandas as pd import pysam import argparse def parse_args(): parser=argparse.ArgumentParser(description="get gc content from a bed file") parser.add_argument("--input_bed") parser.add_argument("--ref_fasta") parser.add_argument("--split_chroms",action="store_true",default=False) parser.add_arg...
true
true
f74f9fdcdf2e4eef050033ba9110b8512ffecec0
13,880
py
Python
django_xsede_warehouse/warehouse_views/views.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
1
2019-10-29T22:50:29.000Z
2019-10-29T22:50:29.000Z
django_xsede_warehouse/warehouse_views/views.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
django_xsede_warehouse/warehouse_views/views.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
from django.db.models import Q from django.core.serializers import serialize from django.shortcuts import render from django.template.loader import get_template from django.utils.encoding import uri_to_iri from django.urls import reverse, get_script_prefix from rest_framework.views import APIView from rest_framework.p...
47.862069
176
0.666643
from django.db.models import Q from django.core.serializers import serialize from django.shortcuts import render from django.template.loader import get_template from django.utils.encoding import uri_to_iri from django.urls import reverse, get_script_prefix from rest_framework.views import APIView from rest_framework.p...
true
true
f74fa03c8cbf828bf8478c0979e84a9f824ae966
5,962
py
Python
neat/attributes.py
jgerster-wetec/neat-python
5bd3ef3eb59a50f17a2376643fc81e8069146f2e
[ "BSD-3-Clause" ]
null
null
null
neat/attributes.py
jgerster-wetec/neat-python
5bd3ef3eb59a50f17a2376643fc81e8069146f2e
[ "BSD-3-Clause" ]
1
2021-09-26T14:00:11.000Z
2021-09-26T14:00:11.000Z
neat/attributes.py
jgerster-wetec/neat-python
5bd3ef3eb59a50f17a2376643fc81e8069146f2e
[ "BSD-3-Clause" ]
null
null
null
"""Deals with the attributes (variable parameters) of genes""" from neat.random import choice, gauss, random, uniform from neat.config import ConfigParameter # TODO: There is probably a lot of room for simplification of these classes using metaprogramming. class BaseAttribute(object): """Superclass for the type...
36.802469
98
0.572459
from neat.random import choice, gauss, random, uniform from neat.config import ConfigParameter class BaseAttribute(object): def __init__(self, name, **default_dict): self.name = name for n, default in default_dict.items(): self._config_items[n] = [self._config_items[n][0], default]...
true
true
f74fa0f3a2763d5eaa33dddd189e55e34c5fb13b
339
py
Python
src/supervised_model.py
gdex1/irl-maxent
86cfdaab6111cb65a866d384fbf811d812ee434d
[ "MIT" ]
null
null
null
src/supervised_model.py
gdex1/irl-maxent
86cfdaab6111cb65a866d384fbf811d812ee434d
[ "MIT" ]
null
null
null
src/supervised_model.py
gdex1/irl-maxent
86cfdaab6111cb65a866d384fbf811d812ee434d
[ "MIT" ]
null
null
null
class SupervisedModel: def train(self, x, y): raise NotImplementedError def predict(self, x): raise NotImplementedError def predict_classes(self, x): raise NotImplementedError def save(self, path): raise NotImplementedError def load(self, path): raise ...
22.6
33
0.654867
class SupervisedModel: def train(self, x, y): raise NotImplementedError def predict(self, x): raise NotImplementedError def predict_classes(self, x): raise NotImplementedError def save(self, path): raise NotImplementedError def load(self, path): raise ...
true
true
f74fa166db3f429c4019a37d83b99d2f3ee43e62
5,139
py
Python
tensorflow_datasets/summarization/opinion_abstracts.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
1
2020-10-11T19:15:49.000Z
2020-10-11T19:15:49.000Z
tensorflow_datasets/summarization/opinion_abstracts.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
1
2021-02-23T20:16:05.000Z
2021-02-23T20:16:05.000Z
tensorflow_datasets/summarization/opinion_abstracts.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
1
2020-08-03T20:19:12.000Z
2020-08-03T20:19:12.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
33.154839
163
0.642732
import json import os from typing import Any, Dict, Iterator, List, Text, Tuple import tensorflow.compat.v2 as tf import tensorflow_datasets.public_api as tfds _CITATION = """ @inproceedings{wang-ling-2016-neural, title = "Neural Network-Based Abstract Generation for Opinions and Arguments", a...
true
true
f74fa1cf800af236bdfe0f0b2ff4c0d0bf37341e
1,682
py
Python
akshare/index/index_eri.py
repos-cl/akshare
94fa42fb095ac4bfa5d8d58673b805d36cc0128e
[ "MIT" ]
5
2020-09-08T02:51:37.000Z
2022-03-23T07:43:45.000Z
akshare/index/index_eri.py
repos-cl/akshare
94fa42fb095ac4bfa5d8d58673b805d36cc0128e
[ "MIT" ]
3
2021-01-26T09:31:43.000Z
2021-12-08T08:31:54.000Z
akshare/index/index_eri.py
repos-cl/akshare
94fa42fb095ac4bfa5d8d58673b805d36cc0128e
[ "MIT" ]
13
2020-07-08T08:48:33.000Z
2022-03-23T08:37:11.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2021/5/9 16:16 Desc: 浙江省排污权交易指数 https://zs.zjpwq.net/ """ import requests import pandas as pd def index_eri() -> pd.DataFrame: """ 浙江省排污权交易指数 https://zs.zjpwq.net :return: 浙江省排污权交易指数 :rtype: pandas.DataFrame """ url = "https://zs.zjpwq...
21.564103
72
0.53805
import requests import pandas as pd def index_eri() -> pd.DataFrame: url = "https://zs.zjpwq.net/zhe-jiang-pwq-webapi/indexData" params = { "indexId": "1", "areaCode": "330000", "cycle": "MONTH", "structCode": "01", } r = requests.get(url, params=params) data_json...
true
true
f74fa1d7034961f18f3eb656f154e31b8d7a4774
9,535
py
Python
build/lib/abc4pwm/clustering.py
abc4pwm/abc4pwm
29c9e833b076f8ce7e3e206c5ae8b560eff02b9e
[ "MIT" ]
null
null
null
build/lib/abc4pwm/clustering.py
abc4pwm/abc4pwm
29c9e833b076f8ce7e3e206c5ae8b560eff02b9e
[ "MIT" ]
null
null
null
build/lib/abc4pwm/clustering.py
abc4pwm/abc4pwm
29c9e833b076f8ce7e3e206c5ae8b560eff02b9e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Oct 23 14:43:24 2019 @author: omerali """ import numpy as np import os, shutil from pathlib import Path from time import gmtime, strftime import json from glob import glob import warnings warnings.filterwarnings("ignore") from distutils.dir_util import...
37.988048
164
0.647195
import numpy as np import os, shutil from pathlib import Path from time import gmtime, strftime import json from glob import glob import warnings warnings.filterwarnings("ignore") from distutils.dir_util import copy_tree import multiprocessing as mp from abc4pwm.convert_count_to_pwm import motif_weight2p from abc4pw...
true
true
f74fa24a80fc49f5f2ef615d5a71e739cdec3f73
2,486
py
Python
tests/integration/integration_test.py
hellsan631/marquez-airflow
5f38c6332b4af9ad4bce98b443e9f39887f20486
[ "Apache-2.0" ]
1
2021-04-28T21:30:06.000Z
2021-04-28T21:30:06.000Z
tests/integration/integration_test.py
hellsan631/marquez-airflow
5f38c6332b4af9ad4bce98b443e9f39887f20486
[ "Apache-2.0" ]
null
null
null
tests/integration/integration_test.py
hellsan631/marquez-airflow
5f38c6332b4af9ad4bce98b443e9f39887f20486
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
30.317073
74
0.701126
from marquez_client import MarquezClient import logging import os import pytest import requests import subprocess import sys from urllib3.util.retry import Retry def test_data_in_marquez(wait_for_marquez, init_airflow_db): dag_id = "test_dag_v2" execution_date = "2019-02-01T00:00:00" namespa...
true
true
f74fa2a20cae56f412fac98df07ac043c05f19df
450
py
Python
data/scripts/templates/object/tangible/hair/human/shared_hair_human_female_s02.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/hair/human/shared_hair_human_female_s02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/hair/human/shared_hair_human_female_s02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/hair/human/shared_hair_human_female_s02.iff" result.attribute_templ...
26.470588
80
0.726667
true
true
f74fa2cb028927552f8d94c30d3cb061c4ce3f60
11,812
py
Python
src/conf.py
shreya024/conda-forge.github.io
e1df800d9ac4d59d1701106543895f444ccbb81e
[ "BSD-3-Clause" ]
null
null
null
src/conf.py
shreya024/conda-forge.github.io
e1df800d9ac4d59d1701106543895f444ccbb81e
[ "BSD-3-Clause" ]
null
null
null
src/conf.py
shreya024/conda-forge.github.io
e1df800d9ac4d59d1701106543895f444ccbb81e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # conda-forge documentation build configuration file, created by # sphinx-quickstart on Wed Jun 1 01:44:13 2016. # # 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 # autogenerated file. #...
33.086835
82
0.700643
import csv import os import sys import datetime import cloud_sptheme as csp extensions = [ 'myst_parser', 'sphinx.ext.todo', 'sphinxcontrib.fulltoc', 'sphinxcontrib.newsfeed', ] templates_path = ['_templates'] source_suffix = ['.rst', '.md'] master_doc = 'index' ...
true
true
f74fa3e2f5948a6dde8b70a01180b83996a90416
1,134
py
Python
shellstreaming/util/resource.py
laysakura/shellstreaming
a1e34af507b94d51ba588ad4a039ce0115b46475
[ "Apache-2.0" ]
1
2015-10-04T10:03:27.000Z
2015-10-04T10:03:27.000Z
shellstreaming/util/resource.py
laysakura/shellstreaming
a1e34af507b94d51ba588ad4a039ce0115b46475
[ "Apache-2.0" ]
null
null
null
shellstreaming/util/resource.py
laysakura/shellstreaming
a1e34af507b94d51ba588ad4a039ce0115b46475
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ shellstreaming.util.resource ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :synopsis: Reports HW resource info """ # standard modules import time # 3rd party moduels import psutil _cpu_percent_called = False def avail_cores(): """Return number of available cores on the node""" # Sin...
29.076923
103
0.674603
import time import psutil _cpu_percent_called = False def avail_cores(): global _cpu_percent_called if not _cpu_percent_called: psutil.cpu_percent(interval=0, percpu=True) _cpu_percent_called = True time.sleep(0.1) ret = 0 for core_usage in psutil.cpu_percent(i...
true
true
f74fa58ee841c2e392e0e3e41b1d3f467b0c99d5
5,293
py
Python
forms_builder/contrib/cmsplugin_forms_builder/south_migrations/0001_initial.py
maykinmedia/django-forms-builder-artis
064ead6c5e977eb8e85f01b7ad34a3c8faa3e7e0
[ "BSD-2-Clause" ]
null
null
null
forms_builder/contrib/cmsplugin_forms_builder/south_migrations/0001_initial.py
maykinmedia/django-forms-builder-artis
064ead6c5e977eb8e85f01b7ad34a3c8faa3e7e0
[ "BSD-2-Clause" ]
null
null
null
forms_builder/contrib/cmsplugin_forms_builder/south_migrations/0001_initial.py
maykinmedia/django-forms-builder-artis
064ead6c5e977eb8e85f01b7ad34a3c8faa3e7e0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Forms' db.create_table(u'cmsplugin_forms_builder_forms', ...
67
188
0.574532
from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.create_table(u'cmsplugin_forms_builder_forms', ( (u'cmsplugin_ptr', self.gf('dja...
true
true
f74fa6c6e95f92779fa0f99fe97fba65042a4588
9,334
py
Python
ci/build_windows.py
DeepLearning-WJ/incubator-mxnet
78fc40f68e062258f6897987e8b93686f47af85a
[ "Apache-2.0", "MIT" ]
2
2019-01-15T07:34:36.000Z
2019-06-13T04:46:31.000Z
ci/build_windows.py
DeepLearning-WJ/incubator-mxnet
78fc40f68e062258f6897987e8b93686f47af85a
[ "Apache-2.0", "MIT" ]
27
2020-02-28T19:54:08.000Z
2020-09-20T02:39:46.000Z
ci/build_windows.py
DeepLearning-WJ/incubator-mxnet
78fc40f68e062258f6897987e8b93686f47af85a
[ "Apache-2.0", "MIT" ]
5
2020-08-18T19:16:21.000Z
2020-09-10T20:30:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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 Licens...
31.640678
123
0.60135
import argparse import datetime import glob import logging import os import platform import shutil import sys import tempfile import time import zipfile import requests from distutils.dir_util import copy_tree from enum import Enum from subprocess import check_call, call from util import * KNOWN_...
true
true
f74fa6cf9c02681b570ace29924b9cba454eac18
775
py
Python
wildlifecompliance/migrations/0175_auto_20190527_1644.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0175_auto_20190527_1644.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0175_auto_20190527_1644.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-05-27 08:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0174_auto_20190524_1209'), ] operations = [ migration...
36.904762
349
0.663226
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0174_auto_20190524_1209'), ] operations = [ migrations.AlterField( model_name='application', name='c...
true
true
f74fa94872cd14c3d87153da18cd0400c5857c4b
74,699
py
Python
libcloud/test/compute/test_ec2.py
ardling/libcloud
e90e759341e36d6168756c59648d9088ae8499d2
[ "Apache-2.0" ]
1
2019-01-19T06:01:59.000Z
2019-01-19T06:01:59.000Z
libcloud/test/compute/test_ec2.py
ardling/libcloud
e90e759341e36d6168756c59648d9088ae8499d2
[ "Apache-2.0" ]
null
null
null
libcloud/test/compute/test_ec2.py
ardling/libcloud
e90e759341e36d6168756c59648d9088ae8499d2
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
42.490899
119
0.633502
from __future__ import with_statement import os import sys from datetime import datetime from libcloud.utils.iso8601 import UTC from libcloud.utils.py3 import httplib from libcloud.compute.drivers.ec2 import EC2NodeDriver from libcloud.compute.drivers.ec2 import EC2USWestNodeDriver from libcloud.compu...
true
true
f74fa9b85ac07f1a8ba550ec057b7d838eeb5ab7
4,154
py
Python
contentai_metadata_flatten/parsers/yolo3.py
ezavesky/metadata-flatten-extractor
5e81713424970087492b7835195235575f0024e2
[ "Apache-2.0" ]
5
2020-01-30T14:04:57.000Z
2022-02-28T12:49:36.000Z
contentai_metadata_flatten/parsers/yolo3.py
ezavesky/metadata-flatten-extractor
5e81713424970087492b7835195235575f0024e2
[ "Apache-2.0" ]
4
2020-01-31T02:25:23.000Z
2020-03-11T20:22:18.000Z
contentai_metadata_flatten/parsers/yolo3.py
ezavesky/metadata-flatten-extractor
5e81713424970087492b7835195235575f0024e2
[ "Apache-2.0" ]
2
2020-11-26T06:39:38.000Z
2022-02-28T12:50:06.000Z
#! python # ===============LICENSE_START======================================================= # metadata-flatten-extractor Apache-2.0 # =================================================================================== # Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. # =====================...
50.658537
121
0.544776
from os import path import json from pandas import DataFrame from contentai_metadata_flatten.parsers import Flatten class Parser(Flatten): def __init__(self, path_content, logger=None): super().__init__(path_content, logger=logger) self.EXTRACTOR = "yolo3" @staticmethod ...
true
true
f74faa6675251faa298b668e8891cc5a2835ced8
36,731
py
Python
JsPrettier.py
davidhq/SublimeJsPrettier
acb17f023c00c07320fad26a9b12ec7329f5dfbd
[ "MIT" ]
null
null
null
JsPrettier.py
davidhq/SublimeJsPrettier
acb17f023c00c07320fad26a9b12ec7329f5dfbd
[ "MIT" ]
null
null
null
JsPrettier.py
davidhq/SublimeJsPrettier
acb17f023c00c07320fad26a9b12ec7329f5dfbd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import fnmatch import os from sys import version_info from re import match from subprocess import PIPE from subprocess import Popen import sublime import sublime_plugin if version_info[0] == 2: # st-v2x with py...
40.452643
115
0.624867
from __future__ import absolute_import from __future__ import print_function import fnmatch import os from sys import version_info from re import match from subprocess import PIPE from subprocess import Popen import sublime import sublime_plugin if version_info[0] == 2: from jsprettier.const import IS_ST...
true
true
f74face76c20db41097b4b40150b1abb9e64617d
1,678
py
Python
IMPORTAMBIENTE.py
tiagotouso/TALENTOS_HUMANOS
c391f7d7a331d5f8b186b27af6a9b61448620cc6
[ "MIT" ]
null
null
null
IMPORTAMBIENTE.py
tiagotouso/TALENTOS_HUMANOS
c391f7d7a331d5f8b186b27af6a9b61448620cc6
[ "MIT" ]
null
null
null
IMPORTAMBIENTE.py
tiagotouso/TALENTOS_HUMANOS
c391f7d7a331d5f8b186b27af6a9b61448620cc6
[ "MIT" ]
null
null
null
''' ARQUIVO PARA IMPORTAR OS AMBIENTES DOS SERVIDORES OSB: COLOCAR A LISTA DE SERVIDORES (XLSX) COM OS CAMPOS [SIAPE - AMBIENTE - SETOR EXERCÍCIO] ''' import os import pandas as pd from SQL import sqlexecute from MENSAGEM import mensagemErro, mensagemInformacao def importarAmbienteServidores(): ''' FUNÇÃO IM...
31.660377
95
0.606675
import os import pandas as pd from SQL import sqlexecute from MENSAGEM import mensagemErro, mensagemInformacao def importarAmbienteServidores(): listdir = os.listdir('DADOS_EXTRATOR\\') if 'servidores.xlsx' in listdir: xls = 'DADOS_EXTRATOR\\servidores.xlsx' folha = 'Servidores' arq...
true
true
f74faed36b2cf164068d3a5963e1fa102cb614f9
1,347
py
Python
erica/domain/ElsterXml/common/xml_conversion.py
punknoir101/erica-1
675a6280d38ca5b56946af6f3ed7e295ba896db0
[ "MIT" ]
null
null
null
erica/domain/ElsterXml/common/xml_conversion.py
punknoir101/erica-1
675a6280d38ca5b56946af6f3ed7e295ba896db0
[ "MIT" ]
null
null
null
erica/domain/ElsterXml/common/xml_conversion.py
punknoir101/erica-1
675a6280d38ca5b56946af6f3ed7e295ba896db0
[ "MIT" ]
null
null
null
import copy from dataclasses import asdict from erica.domain.ElsterXml.common.basic_xml_data_representation import EXml class CustomDictParser(dict): """ Parse the given object to a dict structure that xmltodict will interpret correctly. Attributes starting with "xml_attr_" will be interpreted as XML att...
42.09375
99
0.688938
import copy from dataclasses import asdict from erica.domain.ElsterXml.common.basic_xml_data_representation import EXml class CustomDictParser(dict): def __init__(self, data): new_data = copy.deepcopy(data) for index, item in enumerate(data): if item[1] is None or item[1] == {}: ...
true
true
f74fb019242da512390f129e04f1c79e587cbcd8
1,278
py
Python
auth-api/migrations/versions/d5b5eb2e8dd0_added_branch_name.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
11
2019-09-26T06:58:25.000Z
2022-01-26T06:19:39.000Z
auth-api/migrations/versions/d5b5eb2e8dd0_added_branch_name.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
1,622
2019-05-07T21:08:38.000Z
2022-03-28T17:07:15.000Z
auth-api/migrations/versions/d5b5eb2e8dd0_added_branch_name.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
98
2019-03-01T21:36:15.000Z
2021-12-01T22:11:25.000Z
"""added branch name Revision ID: d5b5eb2e8dd0 Revises: 69a7e464fef3 Create Date: 2021-03-03 21:30:29.597634 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. from sqlalchemy.sql import column, table revision = 'd5b5eb2e8dd0' down_revision = '69a7e464fef3' branch_labels = N...
29.72093
97
0.600156
import sqlalchemy as sa from alembic import op from sqlalchemy.sql import column, table revision = 'd5b5eb2e8dd0' down_revision = '69a7e464fef3' branch_labels = None depends_on = None def upgrade(): op.add_column('orgs', sa.Column('branch_name', sa.String(length=100), nullable=True)) op.add_column('orgs_ve...
true
true
f74fb03dcfa4359340d92d557518201179af8cab
667
py
Python
examples/tab_colors.py
Aeon1/XlsxWriter
6871b6c3fe6c294632054ea91f23d9e27068bcc1
[ "BSD-2-Clause-FreeBSD" ]
1
2019-06-12T15:34:25.000Z
2019-06-12T15:34:25.000Z
examples/tab_colors.py
Aeon1/XlsxWriter
6871b6c3fe6c294632054ea91f23d9e27068bcc1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/tab_colors.py
Aeon1/XlsxWriter
6871b6c3fe6c294632054ea91f23d9e27068bcc1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
####################################################################### # # Example of how to set Excel worksheet tab colors using Python # and the XlsxWriter module. # # Copyright 2013-2019, John McNamara, jmcnamara@cpan.org # import xlsxwriter workbook = xlsxwriter.Workbook('tab_colors.xlsx') # Set up some workshee...
25.653846
71
0.695652
true
true
f74fb0478f9bf461f583c12245f5973a56fefc44
1,170
py
Python
dnload/glsl_block_preprocessor.py
Konsonanz/dnload
52668c73339f6d11b54c8b41e6fe3ba6c4ef6b77
[ "BSD-3-Clause" ]
63
2016-11-03T09:13:58.000Z
2022-03-29T12:54:58.000Z
dnload/glsl_block_preprocessor.py
Konsonanz/dnload
52668c73339f6d11b54c8b41e6fe3ba6c4ef6b77
[ "BSD-3-Clause" ]
6
2018-07-27T18:21:25.000Z
2021-03-19T08:04:07.000Z
dnload/glsl_block_preprocessor.py
Konsonanz/dnload
52668c73339f6d11b54c8b41e6fe3ba6c4ef6b77
[ "BSD-3-Clause" ]
10
2016-07-27T17:03:00.000Z
2021-03-13T19:34:36.000Z
import re from dnload.glsl_block import GlslBlock ######################################## # GlslBlock ############################ ######################################## class GlslBlockPreprocessor(GlslBlock): """Preprocessor block.""" def __init__(self, source): """Constructor.""" GlslBl...
27.209302
54
0.439316
import re from dnload.glsl_block import GlslBlock
true
true
f74fb09137b2742f1e1a781f72458259225eb6dd
32
py
Python
web400-10/src/static/hint.py
mehrdad-shokri/CTF_web
206529603af3824fc8117166ff978af3495f5a58
[ "MIT" ]
664
2016-08-23T01:03:00.000Z
2022-03-20T17:02:45.000Z
hitcon-ctf-2018/oh-my-raddit/src/static/hint.py
soulofan/hitconDockerfile
2b7c9ab1e84c8a02b256a87f68a7f334f8867a7f
[ "Apache-2.0" ]
12
2016-09-09T07:25:12.000Z
2021-10-05T21:11:48.000Z
hitcon-ctf-2018/oh-my-raddit/src/static/hint.py
soulofan/hitconDockerfile
2b7c9ab1e84c8a02b256a87f68a7f334f8867a7f
[ "Apache-2.0" ]
203
2016-10-17T02:15:33.000Z
2021-10-17T06:36:37.000Z
assert ENCRYPTION_KEY.islower()
16
31
0.84375
assert ENCRYPTION_KEY.islower()
true
true
f74fb4201cc62d4fec1cb4178b3e540caeadc6e8
4,281
py
Python
Adafruit_Python_SSD1306/examples/shapes.py
RoboPi-CSEDU/rupai
2c76bcafe1ed4a633155b86b29e24cbedbab9d44
[ "MIT" ]
2
2019-02-02T11:10:55.000Z
2021-01-24T14:26:24.000Z
Adafruit_Python_SSD1306/examples/shapes.py
RoboPi-CSEDU/rupai
2c76bcafe1ed4a633155b86b29e24cbedbab9d44
[ "MIT" ]
null
null
null
Adafruit_Python_SSD1306/examples/shapes.py
RoboPi-CSEDU/rupai
2c76bcafe1ed4a633155b86b29e24cbedbab9d44
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
34.524194
116
0.754263
import time import Adafruit_GPIO.SPI as SPI import Adafruit_SSD1306 from PIL import Image from PIL import ImageDraw from PIL import ImageFont RST = 24 DC = 23 SPI_PORT = 0 SPI_DEVICE = 0 disp = Adafruit_SSD1306.SSD1306_128_64(rst=RST, dc=DC, spi=SPI.SpiDev(SPI_PORT, SP...
true
true
f74fb44091ff86290aa6143a1fcd7cf65d3a4e84
181
py
Python
setup.py
Widiot/simple
5535973f595b6f540cba3d44e289605ad4b98d1d
[ "MIT" ]
1
2018-07-03T02:05:14.000Z
2018-07-03T02:05:14.000Z
setup.py
Widiot/simpleblog
5535973f595b6f540cba3d44e289605ad4b98d1d
[ "MIT" ]
3
2020-03-24T15:34:32.000Z
2021-02-02T21:43:31.000Z
setup.py
Widiot/simpleblog
5535973f595b6f540cba3d44e289605ad4b98d1d
[ "MIT" ]
1
2018-10-09T02:55:47.000Z
2018-10-09T02:55:47.000Z
from setuptools import setup setup( name='simple', packages=['simple'], include_package_data=True, zip_safe=False, install_requires=[ 'flask', ], )
15.083333
30
0.618785
from setuptools import setup setup( name='simple', packages=['simple'], include_package_data=True, zip_safe=False, install_requires=[ 'flask', ], )
true
true
f74fb46c32f4c994bd6c41114c6e0bb038618b54
2,679
py
Python
RI/flask_server/tapi_server/models/tapi_notification_deletenotificationsubscriptionservice_output.py
arthurMll/TAPI
e1171bb139c6791a953af09cfc2bc7ad928da73d
[ "Apache-2.0" ]
57
2018-04-09T08:56:18.000Z
2022-03-23T08:31:06.000Z
RI/flask_server/tapi_server/models/tapi_notification_deletenotificationsubscriptionservice_output.py
arthurMll/TAPI
e1171bb139c6791a953af09cfc2bc7ad928da73d
[ "Apache-2.0" ]
143
2016-06-08T04:09:54.000Z
2018-02-23T10:45:59.000Z
RI/flask_server/tapi_server/models/tapi_notification_deletenotificationsubscriptionservice_output.py
arthurMll/TAPI
e1171bb139c6791a953af09cfc2bc7ad928da73d
[ "Apache-2.0" ]
64
2018-03-07T07:55:17.000Z
2022-03-28T07:14:28.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from tapi_server.models.base_model_ import Model from tapi_server.models.tapi_notification_notification_subscription_service import TapiNotificationNotificationSubscrip...
40.590909
166
0.768944
from __future__ import absolute_import from datetime import date, datetime from typing import List, Dict from tapi_server.models.base_model_ import Model from tapi_server.models.tapi_notification_notification_subscription_service import TapiNotificationNotificationSubscriptionService from tapi_server import u...
true
true
f74fb47876571e8a0229f19e33b3c57f0ce509cf
20
py
Python
src/scikit_na/mpl/__init__.py
maximtrp/scikit-na
18b563d77b9efe5d166671485df576cf11d3034b
[ "MIT" ]
1
2021-07-01T11:55:04.000Z
2021-07-01T11:55:04.000Z
src/scikit_na/mpl/__init__.py
maximtrp/scikit-na
18b563d77b9efe5d166671485df576cf11d3034b
[ "MIT" ]
null
null
null
src/scikit_na/mpl/__init__.py
maximtrp/scikit-na
18b563d77b9efe5d166671485df576cf11d3034b
[ "MIT" ]
null
null
null
from ._mpl import *
10
19
0.7
from ._mpl import *
true
true
f74fb48b6559a0bc42149c87705c4feecce805af
720
py
Python
tests/journal.api/firewall_empty.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/journal.api/firewall_empty.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/journal.api/firewall_empty.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved def test(): """ Verify that empty messages are handled correctly """ # get the journal import journal # make a channel channel = journal.firewall(nam...
18
60
0.604167
def test(): import journal channel = journal.firewall(name="test.journal.firewall") try: channel.log() assert False, "unreachable" # if the correct exception was raised except channel.FirewallError as error: # all good pass ...
true
true
f74fb5beb981374234105754ddbc835c62e5d4f4
655
py
Python
advent02/advent02.py
yoccozgeoffrey/adventofcode2017
66ebc23ae4ce31cd9f7faa9d113629fd7dc90c23
[ "MIT" ]
null
null
null
advent02/advent02.py
yoccozgeoffrey/adventofcode2017
66ebc23ae4ce31cd9f7faa9d113629fd7dc90c23
[ "MIT" ]
null
null
null
advent02/advent02.py
yoccozgeoffrey/adventofcode2017
66ebc23ae4ce31cd9f7faa9d113629fd7dc90c23
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def solve(): '''For example, given the following spreadsheet: 5 1 9 5 7 5 3 2 4 6 8 The first row's largest and smallest values are 9 and 1, and their difference is 8. The second row's largest and smallest values are 7 and 3, and their difference is 4. The third row's...
29.772727
88
0.618321
def solve(): checksum = 0 with open('input.txt') as f: for line in f: array = [int(x) for x in line.split('\t')] checksum = checksum + abs(max(array) - min(array)) return checksum print("result =", solve())
true
true
f74fb5ebce9c57818173ac4fea01bd68112477e2
1,955
py
Python
tests/check_tests.py
snare/idiot
840a8e0de30724bca8298ae1318906d3f273f3d9
[ "MIT" ]
145
2016-03-16T10:37:06.000Z
2021-08-02T16:51:01.000Z
tests/check_tests.py
snare/idiot
840a8e0de30724bca8298ae1318906d3f273f3d9
[ "MIT" ]
5
2016-03-27T11:27:51.000Z
2018-07-03T08:00:47.000Z
tests/check_tests.py
snare/idiot
840a8e0de30724bca8298ae1318906d3f273f3d9
[ "MIT" ]
16
2016-03-17T06:08:38.000Z
2020-12-18T18:21:08.000Z
import nose import idiot import datetime import time def setup(): idiot.init() def teardown(): pass def test_snooze_intervals(): p = idiot.CheckPlugin() assert p.snooze_intervals == idiot.config.snooze_intervals class TestPlugin(idiot.CheckPlugin): snooze_intervals = [1, 2, 3, 4] ...
26.418919
112
0.6711
import nose import idiot import datetime import time def setup(): idiot.init() def teardown(): pass def test_snooze_intervals(): p = idiot.CheckPlugin() assert p.snooze_intervals == idiot.config.snooze_intervals class TestPlugin(idiot.CheckPlugin): snooze_intervals = [1, 2, 3, 4] ...
true
true
f74fb6262e747ca36d465502f2e6b961e42ccb8c
1,262
py
Python
src/probnum/quad/solvers/stopping_criteria/_rel_mean_change.py
treid5/probnum
fabb51243d0952fbd35e542aeb5c2dc9a449ec81
[ "MIT" ]
1
2021-06-22T14:25:43.000Z
2021-06-22T14:25:43.000Z
src/probnum/quad/solvers/stopping_criteria/_rel_mean_change.py
simeoncarstens/probnum
b69587b07e2fffbdcd4c850acc98bb3de97a6e0b
[ "MIT" ]
42
2021-03-08T07:20:40.000Z
2022-03-28T05:04:48.000Z
src/probnum/quad/solvers/stopping_criteria/_rel_mean_change.py
JonathanWenger/probnum
1c5499883672cfa029c12045848ea04491c69e08
[ "MIT" ]
null
null
null
"""Stopping criterion based on the relative change of the successive integral estimators.""" import numpy as np from probnum.quad.solvers.bq_state import BQState from probnum.quad.solvers.stopping_criteria import BQStoppingCriterion from probnum.typing import FloatArgType # pylint: disable=too-few-public-methods c...
33.210526
120
0.672742
import numpy as np from probnum.quad.solvers.bq_state import BQState from probnum.quad.solvers.stopping_criteria import BQStoppingCriterion from probnum.typing import FloatArgType class RelativeMeanChange(BQStoppingCriterion): def __init__(self, rel_tol: FloatArgType): self.rel_tol = rel_tol def...
true
true
f74fb62d08d1662b20786a29676e9dbbc3077ad5
139
py
Python
tests/test_dependencies.py
iods/meatball
a45b891ac9dc32c7879479891fa7f20212881af8
[ "MIT" ]
null
null
null
tests/test_dependencies.py
iods/meatball
a45b891ac9dc32c7879479891fa7f20212881af8
[ "MIT" ]
4
2021-01-21T06:49:25.000Z
2021-01-21T07:27:08.000Z
tests/test_dependencies.py
iods/meatball
a45b891ac9dc32c7879479891fa7f20212881af8
[ "MIT" ]
null
null
null
""" Tests to confirm all required dependencies are installed and loaded. """ # What do we import to unit test? # class TestDependencies()
17.375
46
0.741007
true
true
f74fb65fad4946e4c67cb7e67d21ea41082e07d8
18,137
py
Python
src/newick.py
glottobank/python-newick
ffe3010b0d342c07e4668692cf9b0186609b529f
[ "Apache-2.0" ]
25
2016-10-12T14:09:32.000Z
2020-11-12T05:29:42.000Z
src/newick.py
glottobank/python-newick
ffe3010b0d342c07e4668692cf9b0186609b529f
[ "Apache-2.0" ]
39
2016-02-19T07:42:58.000Z
2021-01-25T12:59:34.000Z
src/newick.py
glottobank/python-newick
ffe3010b0d342c07e4668692cf9b0186609b529f
[ "Apache-2.0" ]
16
2016-02-19T07:37:20.000Z
2020-03-16T09:07:18.000Z
""" Functionality to read and write the Newick serialization format for trees. .. seealso:: https://en.wikipedia.org/wiki/Newick_format """ import re import pathlib __version__ = "1.3.3.dev0" RESERVED_PUNCTUATION = ':;,()' COMMENT = re.compile(r'\[[^]]*]') def length_parser(x): return float(x or 0.0) def len...
35.285992
99
0.564261
import re import pathlib __version__ = "1.3.3.dev0" RESERVED_PUNCTUATION = ':;,()' COMMENT = re.compile(r'\[[^]]*]') def length_parser(x): return float(x or 0.0) def length_formatter(x): return '%s' % x class Node(object): def __init__(self, name=None, length=None, comment=None, **kw): for c...
true
true
f74fb76bb7ba8c8146f562068bcf6ccb13981bf4
8,052
py
Python
google/cloud/aiplatform/datasets/text_dataset.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/datasets/text_dataset.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/datasets/text_dataset.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
46.275862
104
0.636985
from typing import Dict, Optional, Sequence, Tuple, Union from google.auth import credentials as auth_credentials from google.cloud.aiplatform import datasets from google.cloud.aiplatform.datasets import _datasources from google.cloud.aiplatform import initializer from google.cloud.aiplatform import ...
true
true
f74fbad3a93f8ebedfd2d0f41336d289e2a96be0
13,746
py
Python
docs/conf.py
KaushikSathvara/django
3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946
[ "BSD-3-Clause", "0BSD" ]
5
2021-11-08T13:23:05.000Z
2022-01-08T09:14:23.000Z
docs/conf.py
KaushikSathvara/django
3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946
[ "BSD-3-Clause", "0BSD" ]
3
2022-02-01T12:12:02.000Z
2022-02-01T12:27:06.000Z
docs/conf.py
KaushikSathvara/django
3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946
[ "BSD-3-Clause", "0BSD" ]
1
2021-12-21T17:39:18.000Z
2021-12-21T17:39:18.000Z
# Django documentation build configuration file, created by # sphinx-quickstart on Thu Mar 27 09:06:53 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't picklable (module imports are okay...
34.024752
90
0.70355
# that aren't picklable (module imports are okay, they're removed automatically). # # All configuration values have a default; values that are commented out # serve to show the default. import sys from os.path import abspath, dirname, join # Workaround for sphinx-build recursion limit overflow: # pickle.dump(do...
true
true
f74fbd8a8e9bfd027cb93ac2c44d3b51a4a15f66
1,891
py
Python
samples/tensorflow/dataset_reader.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
samples/tensorflow/dataset_reader.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
samples/tensorflow/dataset_reader.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import tensorflow as tf import numpy as np from dace.frontend.tensorflow import TFSession import matplotlib.pyplot as plt import sys def data_input_fn(filenames, batch_size=2, shuffle=False): def _parser(record): features = { ...
31.516667
76
0.625595
import tensorflow as tf import numpy as np from dace.frontend.tensorflow import TFSession import matplotlib.pyplot as plt import sys def data_input_fn(filenames, batch_size=2, shuffle=False): def _parser(record): features = { "label": tf.FixedLenFeature([], tf.int64), "image_raw":...
true
true
f74fbe2f114200fbf3598f2eb7c082a9efd94d87
19,173
py
Python
bop_toolkit_lib/renderer_py.py
JiangBowen0008/bop_toolkit
375da05664c1b9b4249b191378f25d5815c305f9
[ "MIT" ]
null
null
null
bop_toolkit_lib/renderer_py.py
JiangBowen0008/bop_toolkit
375da05664c1b9b4249b191378f25d5815c305f9
[ "MIT" ]
null
null
null
bop_toolkit_lib/renderer_py.py
JiangBowen0008/bop_toolkit
375da05664c1b9b4249b191378f25d5815c305f9
[ "MIT" ]
null
null
null
# Author: Tomas Hodan (hodantom@cmp.felk.cvut.cz) # Center for Machine Perception, Czech Technical University in Prague """A Python based renderer.""" import os import numpy as np from glumpy import app, gloo, gl from bop_toolkit_lib import inout from bop_toolkit_lib import misc from bop_toolkit_lib import renderer ...
34.2375
104
0.664059
import os import numpy as np from glumpy import app, gloo, gl from bop_toolkit_lib import inout from bop_toolkit_lib import misc from bop_toolkit_lib import renderer from glumpy.log import log import logging log.setLevel(logging.WARNING) uniform mat4 u_nm; uniform mat4 u_mvp; uniform vec3 u_light_eye_pos; ...
true
true
f74fbe41fbcd42e194834b4fe3b1a5fdee9bf7f7
45
py
Python
mticket.py
namlevu/mticket
181239463f077ae2cf41a46c590a0f2996d44b85
[ "MIT" ]
null
null
null
mticket.py
namlevu/mticket
181239463f077ae2cf41a46c590a0f2996d44b85
[ "MIT" ]
null
null
null
mticket.py
namlevu/mticket
181239463f077ae2cf41a46c590a0f2996d44b85
[ "MIT" ]
null
null
null
from app import app app.run(host='0.0.0.0')
11.25
23
0.666667
from app import app app.run(host='0.0.0.0')
true
true
f74fbe74d0cddb6748941c11783a2914094e9928
10,462
py
Python
build/tools/roomservice.py
MukulSharma06175/vendor_aosp
dfec3dcb1b6b602c9392d03e8abefed0fc2a6488
[ "Apache-2.0" ]
null
null
null
build/tools/roomservice.py
MukulSharma06175/vendor_aosp
dfec3dcb1b6b602c9392d03e8abefed0fc2a6488
[ "Apache-2.0" ]
null
null
null
build/tools/roomservice.py
MukulSharma06175/vendor_aosp
dfec3dcb1b6b602c9392d03e8abefed0fc2a6488
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2012-2013, The CyanogenMod Project # (C) 2017-2018,2020-2021, The LineageOS Project # # 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 # # ht...
33.639871
186
0.666699
from __future__ import print_function import base64 import json import netrc import os import re import sys try: import urllib.error import urllib.parse import urllib.request except ImportError: import imp import urllib2 import urlparse urllib = imp.new_module('urllib') urllib.err...
true
true
f74fbf5810502c99958ff6aee7f52f950f9b620d
1,310
py
Python
icubam/messaging/server.py
Deathn0t/icubam
3b28bd9c013dedce09fe4864effc9ecde40c46da
[ "Apache-2.0" ]
null
null
null
icubam/messaging/server.py
Deathn0t/icubam
3b28bd9c013dedce09fe4864effc9ecde40c46da
[ "Apache-2.0" ]
null
null
null
icubam/messaging/server.py
Deathn0t/icubam
3b28bd9c013dedce09fe4864effc9ecde40c46da
[ "Apache-2.0" ]
null
null
null
from absl import logging import tornado.ioloop from tornado import queues import tornado.web from icubam.db import sqlite from icubam.messaging import sms_sender from icubam.messaging import scheduler from icubam.www import token class MessageServer: """Sends and schedule SMS.""" def __init__(self, config, port=...
29.772727
62
0.718321
from absl import logging import tornado.ioloop from tornado import queues import tornado.web from icubam.db import sqlite from icubam.messaging import sms_sender from icubam.messaging import scheduler from icubam.www import token class MessageServer: def __init__(self, config, port=8889): self.config = config ...
true
true
f74fbfb26b6411ffe447d08b514d9de8776d70c8
1,908
py
Python
yearn/middleware.py
scottincrypto/yearn-exporter
8addda383c70cb588005d3ef1ae8af750f0bb67d
[ "MIT" ]
14
2020-10-05T06:47:05.000Z
2021-02-28T04:43:17.000Z
yearn/middleware.py
manifoldfinance/yearn-exporter
5953266a072966638a60d76ea05c4fb3e976c588
[ "MIT" ]
9
2020-11-07T07:00:25.000Z
2021-02-10T05:19:34.000Z
yearn/middleware.py
manifoldfinance/yearn-exporter
5953266a072966638a60d76ea05c4fb3e976c588
[ "MIT" ]
14
2020-10-11T13:54:21.000Z
2021-02-24T23:12:56.000Z
import logging from brownie import web3 as w3 from eth_utils import encode_hex from eth_utils import function_signature_to_4byte_selector as fourbyte from requests import Session from requests.adapters import HTTPAdapter from web3 import HTTPProvider from web3.middleware import filter from yearn.cache import memory ...
30.774194
105
0.696017
import logging from brownie import web3 as w3 from eth_utils import encode_hex from eth_utils import function_signature_to_4byte_selector as fourbyte from requests import Session from requests.adapters import HTTPAdapter from web3 import HTTPProvider from web3.middleware import filter from yearn.cache import memory ...
true
true
f74fc19df844a1a1ac2c76f025907d1ab24056a3
8,112
py
Python
drf_spectacular/contrib/django_filters.py
shirakia/drf-spectacular
73b5aaa7b2f3661ed0df480b28ddf48239fd4007
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/contrib/django_filters.py
shirakia/drf-spectacular
73b5aaa7b2f3661ed0df480b28ddf48239fd4007
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/contrib/django_filters.py
shirakia/drf-spectacular
73b5aaa7b2f3661ed0df480b28ddf48239fd4007
[ "BSD-3-Clause" ]
null
null
null
import typing from django.db import models from drf_spectacular.drainage import warn from drf_spectacular.extensions import OpenApiFilterExtension from drf_spectacular.plumbing import ( build_array_type, build_basic_type, build_parameter_type, follow_field_source, get_view_model, is_basic_type, ) from drf_spe...
44.571429
98
0.635478
import typing from django.db import models from drf_spectacular.drainage import warn from drf_spectacular.extensions import OpenApiFilterExtension from drf_spectacular.plumbing import ( build_array_type, build_basic_type, build_parameter_type, follow_field_source, get_view_model, is_basic_type, ) from drf_spe...
true
true
f74fc1fb2e861f9f4da33ae60d04a4be7a6dcb65
5,404
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/staticmacsec/staticmacsec_9ab47bdf2b3b33d22965d0aa28f2bb3d.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/staticmacsec/staticmacsec_9ab47bdf2b3b33d22965d0aa28f2bb3d.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/staticmacsec/staticmacsec_9ab47bdf2b3b33d22965d0aa28f2bb3d.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
36.268456
182
0.657476
from uhd_restpy.base import Base from uhd_restpy.files import Files from typing import List, Any, Union class StaticMacsec(Base): __slots__ = () _SDM_NAME = 'staticMacsec' _SDM_ATT_MAP = { 'Count': 'count', 'DescriptiveName': 'descriptiveName', 'KeyGenerationM...
true
true
f74fc21aebfafae242b78bffb61fb7865549d022
8,074
py
Python
moto/s3/exceptions.py
ogckw/moto
e4a4e6183560489e98b95e815b439c7a1cf3566c
[ "Apache-2.0" ]
null
null
null
moto/s3/exceptions.py
ogckw/moto
e4a4e6183560489e98b95e815b439c7a1cf3566c
[ "Apache-2.0" ]
null
null
null
moto/s3/exceptions.py
ogckw/moto
e4a4e6183560489e98b95e815b439c7a1cf3566c
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from moto.core.exceptions import RESTError ERROR_WITH_BUCKET_NAME = """{% extends 'single_error' %} {% block extra %}<BucketName>{{ bucket }}</BucketName>{% endblock %} """ ERROR_WITH_KEY_NAME = """{% extends 'single_error' %} {% block extra %}<KeyName>{{ key_name }}</KeyName>...
30.353383
145
0.64974
from __future__ import unicode_literals from moto.core.exceptions import RESTError ERROR_WITH_BUCKET_NAME = """{% extends 'single_error' %} {% block extra %}<BucketName>{{ bucket }}</BucketName>{% endblock %} """ ERROR_WITH_KEY_NAME = """{% extends 'single_error' %} {% block extra %}<KeyName>{{ key_name }}</KeyName>...
true
true
f74fc4587cec4e965530f9929b0309e1e8faa0be
6,149
py
Python
utils/clustering/cluster.py
falabrasil/kaldi-br
2b11eb937c485941c2209f577af38c2f21bf9017
[ "MIT" ]
13
2020-12-23T12:07:09.000Z
2022-03-02T19:06:29.000Z
utils/clustering/cluster.py
falabrasil/kaldi-br
2b11eb937c485941c2209f577af38c2f21bf9017
[ "MIT" ]
5
2020-11-18T12:41:59.000Z
2022-02-11T12:11:43.000Z
utils/clustering/cluster.py
falabrasil/kaldi-br
2b11eb937c485941c2209f577af38c2f21bf9017
[ "MIT" ]
4
2021-01-22T00:05:38.000Z
2022-03-03T18:43:36.000Z
#!/usr/bin/env python3 # # author: dec 2020 # cassio batista - https://cassota.gitlab.io # # sponsored by MidiaClip (Salvador - BA) import sys import os import shutil import glob import argparse import logging from collections import OrderedDict import torch import numpy as np from pyannote.pipeline.blocks.clusteri...
40.993333
119
0.591478
import sys import os import shutil import glob import argparse import logging from collections import OrderedDict import torch import numpy as np from pyannote.pipeline.blocks.clustering import ( HierarchicalAgglomerativeClustering ) logging.basicConfig(format="[%(filename)s] %(levelname)s: %(message)s"...
true
true