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
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f75e2a7bfada15c5c35b4cce1047d4e0e024834c
14,014
py
Python
dpmModule/jobs/adele.py
Nougaga/maplestory_dpm_calc
d48fddc54b986e5f632c1bede8a03b4b2c13a9c5
[ "MIT" ]
null
null
null
dpmModule/jobs/adele.py
Nougaga/maplestory_dpm_calc
d48fddc54b986e5f632c1bede8a03b4b2c13a9c5
[ "MIT" ]
null
null
null
dpmModule/jobs/adele.py
Nougaga/maplestory_dpm_calc
d48fddc54b986e5f632c1bede8a03b4b2c13a9c5
[ "MIT" ]
null
null
null
from ..kernel import core from ..character import characterKernel as ck from functools import partial from ..status.ability import Ability_tool from ..execution.rules import ReservationRule, RuleSet from . import globalSkill from .jobbranch import warriors from .jobclass import flora from . import jobutils from math im...
48.491349
247
0.656558
from ..kernel import core from ..character import characterKernel as ck from functools import partial from ..status.ability import Ability_tool from ..execution.rules import ReservationRule, RuleSet from . import globalSkill from .jobbranch import warriors from .jobclass import flora from . import jobutils from math im...
true
true
f75e2ac9afbdf0164a2beaad2ffc21af4dbb3ab7
5,155
py
Python
dftd3/d3.py
Rafael-G-C/pyDFTD3
d6560f45a1fbdb61a5b493b990a7c407edde7afb
[ "MIT" ]
2
2021-05-18T15:45:57.000Z
2021-05-19T01:30:31.000Z
dftd3/d3.py
Rafael-G-C/pyDFTD3
d6560f45a1fbdb61a5b493b990a7c407edde7afb
[ "MIT" ]
15
2020-09-14T17:13:23.000Z
2021-09-26T16:31:27.000Z
dftd3/d3.py
Rafael-G-C/pyDFTD3
d6560f45a1fbdb61a5b493b990a7c407edde7afb
[ "MIT" ]
1
2021-05-18T14:48:32.000Z
2021-05-18T14:48:32.000Z
# pyDFTD3 -- Python implementation of Grimme's D3 dispersion correction. # Copyright (C) 2020 Rob Paton and contributors. # # This file is part of pyDFTD3. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # i...
38.185185
83
0.572648
# Copyright (C) 2020 Rob Paton and contributors. # # This file is part of pyDFTD3. # # 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 righ...
true
true
f75e2b9b497a190e3091e87959d2e9b4dfce2dbf
3,874
py
Python
label_studio/users/views.py
mehdibenamorr/label-studio
213252d360b028eb031ca127969fb35a897dc2b6
[ "Apache-2.0" ]
8,264
2019-06-25T23:08:05.000Z
2022-03-31T18:48:34.000Z
label_studio/users/views.py
mehdibenamorr/label-studio
213252d360b028eb031ca127969fb35a897dc2b6
[ "Apache-2.0" ]
1,446
2019-08-02T13:46:25.000Z
2022-03-31T23:09:32.000Z
label_studio/users/views.py
mehdibenamorr/label-studio
213252d360b028eb031ca127969fb35a897dc2b6
[ "Apache-2.0" ]
1,092
2019-07-02T16:36:35.000Z
2022-03-31T20:01:19.000Z
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ import logging from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect, reverse from django.contri...
31.241935
168
0.685854
import logging from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect, reverse from django.contrib import auth from django.conf import settings from django.core.exceptions import PermissionDenied from rest_framework.authtoken.models import Token from users import forms...
true
true
f75e2c7c45caf67490182788491bca4ecea0df46
524
py
Python
typhon/plots/__init__.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
typhon/plots/__init__.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
typhon/plots/__init__.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module provides functions related to plot or to plot data. """ from typhon.plots import cm # noqa from typhon.plots.colors import * # noqa from typhon.plots.common import * # noqa from typhon.plots.formatter import * # noqa from typhon.plots.plots import * # noqa from typhon.plots...
27.578947
66
0.70229
from typhon.plots import cm from typhon.plots.colors import * from typhon.plots.common import * from typhon.plots.formatter import * from typhon.plots.plots import * from typhon.plots.arts_lookup import * from typhon.plots.ppath import * try: from typhon.plots.maps import * except ImportError: pass _...
true
true
f75e2ca7b6788a4149644938742cbf74a06e8107
12,469
py
Python
mycroft/skills/common_play_skill.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
4
2021-11-03T22:06:30.000Z
2021-11-19T08:03:58.000Z
mycroft/skills/common_play_skill.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
62
2021-10-29T21:18:51.000Z
2022-03-30T07:08:29.000Z
mycroft/skills/common_play_skill.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
39.964744
86
0.598043
import re from enum import Enum, IntEnum from abc import ABC, abstractmethod from mycroft.messagebus.message import Message from mycroft.skills.mycroft_skill import MycroftSkill from mycroft.skills.audioservice import AudioService class CPSMatchLevel(Enum): EXACT = 1 MULTI_KEY = 2 TITLE = 3 ARTIST = ...
true
true
f75e2d68f6ed029bcb692303bbc23dabadd8e3c5
357
py
Python
src/compas_rv2/singular/rhino/geometry/point.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
4
2022-01-17T19:17:22.000Z
2022-01-21T18:06:02.000Z
src/compas_rv2/singular/rhino/geometry/point.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
src/compas_rv2/singular/rhino/geometry/point.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas_rhino.geometry import RhinoPoint class RhinoPoint(RhinoPoint): @property def xyz(self): return self.geometry.X, self.geometry.Y, self.geometry.Z def closest_point(self, *args...
22.3125
64
0.7507
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas_rhino.geometry import RhinoPoint class RhinoPoint(RhinoPoint): @property def xyz(self): return self.geometry.X, self.geometry.Y, self.geometry.Z def closest_point(self, *args...
true
true
f75e2ddad3d033e62797df25dd6ecb2867de9617
1,996
py
Python
alipay/aop/api/domain/Advert.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
32
2018-05-24T08:40:15.000Z
2019-04-04T20:54:55.000Z
alipay/aop/api/domain/Advert.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
7
2018-05-24T08:42:59.000Z
2020-09-06T23:18:46.000Z
alipay/aop/api/domain/Advert.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
13
2018-04-25T11:27:58.000Z
2021-03-15T12:22:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AdvertItem import AdvertItem class Advert(object): def __init__(self): self._advert_id = None self._advert_items = None @property def advert_id(self)...
29.352941
77
0.57515
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AdvertItem import AdvertItem class Advert(object): def __init__(self): self._advert_id = None self._advert_items = None @property def advert_id(self): return self._advert_id @advert_...
true
true
f75e2e8337c87a707ae00a67ac7fbf956f04c278
220
py
Python
python/sort_list_values_using_second_list.py
codevscolor/codevscolor
35ef9042bdc86f45ef87795c35963b75fb64d5d7
[ "Apache-2.0" ]
6
2019-04-26T03:11:54.000Z
2021-05-07T21:48:29.000Z
python/sort_list_values_using_second_list.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
null
null
null
python/sort_list_values_using_second_list.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
26
2019-02-23T14:50:46.000Z
2022-02-04T23:44:24.000Z
first_list = ["O","X","A","C","D","K"] second_list = ['1','2','3','4','5','6'] zipped_pairs = zip(first_list,second_list) sorted_pairs = sorted(zipped_pairs) result = [item[1] for item in sorted_pairs] print(result)
20
43
0.645455
first_list = ["O","X","A","C","D","K"] second_list = ['1','2','3','4','5','6'] zipped_pairs = zip(first_list,second_list) sorted_pairs = sorted(zipped_pairs) result = [item[1] for item in sorted_pairs] print(result)
true
true
f75e2e9529d0f844dd9d9dadb36bca43e9109053
699
py
Python
src/utilities/parse.py
smccaffrey/plex-etl
341e86f22ae17fa0b48a7ca50ff0a1fc14b6578a
[ "Apache-2.0" ]
7
2020-03-08T05:52:26.000Z
2022-03-18T12:32:50.000Z
src/utilities/parse.py
smccaffrey/plex-etl
341e86f22ae17fa0b48a7ca50ff0a1fc14b6578a
[ "Apache-2.0" ]
5
2020-03-15T05:12:08.000Z
2020-03-15T18:18:38.000Z
src/utilities/parse.py
smccaffrey/plex-etl
341e86f22ae17fa0b48a7ca50ff0a1fc14b6578a
[ "Apache-2.0" ]
1
2020-10-05T14:08:21.000Z
2020-10-05T14:08:21.000Z
from src.utilities.parser.parse import ParseFileName from src.utilities.database.query import QueryExtractedMovies from src.utilities.database.insert import InsertTransformedMovies class ParseExtractedMovies: Parser = ParseFileName() @classmethod def process(cls): for movie in QueryExtractedMov...
34.95
92
0.699571
from src.utilities.parser.parse import ParseFileName from src.utilities.database.query import QueryExtractedMovies from src.utilities.database.insert import InsertTransformedMovies class ParseExtractedMovies: Parser = ParseFileName() @classmethod def process(cls): for movie in QueryExtractedMov...
true
true
f75e30578b3177aa641887a977c93fc2db74b5b2
6,457
py
Python
venv/Scripts/wsdump.py
Hayden50/PRAW-KeyWord-Searcher
712715795c6852e8d054b435c158f4c87dd6b306
[ "MIT" ]
null
null
null
venv/Scripts/wsdump.py
Hayden50/PRAW-KeyWord-Searcher
712715795c6852e8d054b435c158f4c87dd6b306
[ "MIT" ]
1
2021-03-13T21:26:49.000Z
2021-03-13T21:26:49.000Z
venv/Scripts/wsdump.py
Hayden50/PRAW-KeyWord-Searcher
712715795c6852e8d054b435c158f4c87dd6b306
[ "MIT" ]
null
null
null
#!M:\Code\Github\PRAW-KeyWord-Searcher\venv\Scripts\python.exe import argparse import code import sys import threading import time import ssl import gzip import zlib import six from six.moves.urllib.parse import urlparse import websocket try: import readline except ImportError: pass def get_encoding(): ...
29.619266
98
0.556915
import argparse import code import sys import threading import time import ssl import gzip import zlib import six from six.moves.urllib.parse import urlparse import websocket try: import readline except ImportError: pass def get_encoding(): encoding = getattr(sys.stdin, "encoding", "") if not enco...
true
true
f75e309e8cd7900c84f308b783bda958bb2ce954
4,435
py
Python
src/pipeline/text_pipeline_basic.py
georgetown-analytics/Labor-Violations
ce4a8fcd7b396f46a262636ef200b398b3d3e614
[ "MIT" ]
1
2021-04-22T20:26:21.000Z
2021-04-22T20:26:21.000Z
src/pipeline/text_pipeline_basic.py
georgetown-analytics/Labor-Violations
ce4a8fcd7b396f46a262636ef200b398b3d3e614
[ "MIT" ]
9
2019-03-30T01:08:15.000Z
2019-05-04T15:02:59.000Z
src/pipeline/text_pipeline_basic.py
georgetown-analytics/Labor-Violations
ce4a8fcd7b396f46a262636ef200b398b3d3e614
[ "MIT" ]
2
2019-07-05T19:27:04.000Z
2020-03-04T00:56:12.000Z
# Built from the SKLearn basic text processing pipeine # https://scikit-learn.org/stable/auto_examples/model_selection/grid_search_text_feature_extraction.html """ ========================================================== Sample pipeline for text feature extraction and evaluation =====================================...
32.851852
104
0.660879
from pprint import pprint from time import time import logging from sklearn.datasets import fetch_20newsgroups from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.linear_model import SGDClassifier from sklearn.model_selection import Gr...
true
true
f75e30a23c3ace143411548a7817a5d168dc0deb
7,683
py
Python
ros/src/tl_detector/tl_detector.py
laljarus/Programming_Self_Driving_Car
b866f9cb176158badfa15d26b0a5c45e0aaf72bf
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
laljarus/Programming_Self_Driving_Car
b866f9cb176158badfa15d26b0a5c45e0aaf72bf
[ "MIT" ]
10
2020-03-06T09:16:29.000Z
2022-03-11T23:35:00.000Z
ros/src/tl_detector/tl_detector.py
laljarus/Programming_Self_Driving_Car
b866f9cb176158badfa15d26b0a5c45e0aaf72bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
34.452915
132
0.633216
import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLClassifier from scipy.spa...
true
true
f75e31098662ea5452d05bc281f3508c813a7edd
3,220
py
Python
tqdm/contrib/scp.py
Schwaneberg/tqdm
f8ec1858ff79b259ebcbb444639abaaea79ddd0b
[ "MIT" ]
null
null
null
tqdm/contrib/scp.py
Schwaneberg/tqdm
f8ec1858ff79b259ebcbb444639abaaea79ddd0b
[ "MIT" ]
null
null
null
tqdm/contrib/scp.py
Schwaneberg/tqdm
f8ec1858ff79b259ebcbb444639abaaea79ddd0b
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ Providing a progress writer for scp.SCPClient """ from sys import stderr from tqdm import tqdm try: from typing import Tuple, Optional # pylint: disable=unused-import except ImportError: pass __author__ = {"github.com/": ["schwaneberg"]} __all__ = ['ScpProgressWriter'] class ScpP...
35
105
0.560248
from sys import stderr from tqdm import tqdm try: from typing import Tuple, Optional except ImportError: pass __author__ = {"github.com/": ["schwaneberg"]} __all__ = ['ScpProgressWriter'] class ScpProgressWriter: def __init__( self, desc=None, min_file_size=102400, ...
true
true
f75e3146144323862dc8f1a639353f5e7edc9a31
4,873
py
Python
hTools2.roboFontExt/lib/hTools2/modules/languages.py
frankrolf/hTools2_extension
9d73b8640c85209853a72f8d4b167768de5e0d60
[ "BSD-3-Clause" ]
2
2019-12-18T16:12:07.000Z
2019-12-21T01:19:23.000Z
hTools2.roboFontExt/lib/hTools2/modules/languages.py
frankrolf/hTools2_extension
9d73b8640c85209853a72f8d4b167768de5e0d60
[ "BSD-3-Clause" ]
null
null
null
hTools2.roboFontExt/lib/hTools2/modules/languages.py
frankrolf/hTools2_extension
9d73b8640c85209853a72f8d4b167768de5e0d60
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # imports from . import encoding import importlib importlib.reload(encoding) from .encoding import chars2psnames # diacritics per language # source: Diacritics Project # http://diacritics.typo.cz/index.php?id=49 diacritics_chars = { 'albanian' : [ 'ç ë', ...
24.365
69
0.473425
from . import encoding import importlib importlib.reload(encoding) from .encoding import chars2psnames diacritics_chars = { 'albanian' : [ 'ç ë', 'Ç Ë', ], 'bosnian' : [ 'č ć đ š ž', 'Č Ć Đ Š Ž', ], 'catalan' : [ 'à ç è é í ï ŀ ò ó ú ü', 'À Ç È É ...
true
true
f75e315be9c1fa43f3c8375d341bbc256a185eda
4,856
py
Python
tests/feature/smartcd/test_smartcd.py
gfi-centre-ouest/docker-devbox-ddb
1597d85ef6e9e8322cce195a454de54186ce9ec7
[ "MIT" ]
4
2020-06-11T20:54:47.000Z
2020-09-22T13:07:17.000Z
tests/feature/smartcd/test_smartcd.py
gfi-centre-ouest/docker-devbox-ddb
1597d85ef6e9e8322cce195a454de54186ce9ec7
[ "MIT" ]
113
2019-11-07T00:40:36.000Z
2021-01-18T12:50:16.000Z
tests/feature/smartcd/test_smartcd.py
inetum-orleans/docker-devbox-ddb
20c713cf7bfcaf289226a17a9648c17d16003b4d
[ "MIT" ]
null
null
null
import os import pytest from pytest_mock import MockerFixture from ddb.__main__ import main, load_registered_features from ddb.feature import features from ddb.feature.core import CoreFeature from ddb.feature.shell import ShellFeature from ddb.feature.smartcd import SmartcdFeature, SmartcdAction, WindowsProjectActiva...
31.329032
106
0.669481
import os import pytest from pytest_mock import MockerFixture from ddb.__main__ import main, load_registered_features from ddb.feature import features from ddb.feature.core import CoreFeature from ddb.feature.shell import ShellFeature from ddb.feature.smartcd import SmartcdFeature, SmartcdAction, WindowsProjectActiva...
true
true
f75e33942b39086e2a91004ff0b8a94acd8a8b55
409
py
Python
dask/distributed.py
nre/dask
2d14075004fbca3ad7e5907f5f58ab8b05cdbdc2
[ "BSD-3-Clause" ]
1
2020-02-18T20:55:01.000Z
2020-02-18T20:55:01.000Z
dask/distributed.py
nre/dask
2d14075004fbca3ad7e5907f5f58ab8b05cdbdc2
[ "BSD-3-Clause" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
dask/distributed.py
nre/dask
2d14075004fbca3ad7e5907f5f58ab8b05cdbdc2
[ "BSD-3-Clause" ]
2
2020-03-12T23:20:22.000Z
2021-02-15T21:54:02.000Z
# flake8: noqa try: from distributed import * except ImportError: msg = ( "Dask's distributed scheduler is not installed.\n\n" "Please either conda or pip install dask distributed:\n\n" " conda install dask distributed # either conda install\n" " python -m pip install ...
34.083333
88
0.645477
try: from distributed import * except ImportError: msg = ( "Dask's distributed scheduler is not installed.\n\n" "Please either conda or pip install dask distributed:\n\n" " conda install dask distributed # either conda install\n" " python -m pip install dask distribute...
true
true
f75e339aa41d6ff1c880bc793b0684c32b5183ce
8,743
py
Python
tei_entity_enricher/util/helper.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
null
null
null
tei_entity_enricher/util/helper.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
null
null
null
tei_entity_enricher/util/helper.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
1
2021-04-27T13:55:29.000Z
2021-04-27T13:55:29.000Z
import os import logging import contextlib from PIL import Image import streamlit as st logger = logging.getLogger(__name__) module_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) local_save_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) state_...
31.113879
111
0.630104
import os import logging import contextlib from PIL import Image import streamlit as st logger = logging.getLogger(__name__) module_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) local_save_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) state_...
true
true
f75e35fc7cd75703a6f448b1238cfb5de7254eda
31,800
py
Python
src/Base/Evaluation/metrics.py
Alenichel/CodiglioniNichelini_recsys-polimi-2019
ca97e71da7612644833c20155a0d4d3a57850527
[ "MIT" ]
null
null
null
src/Base/Evaluation/metrics.py
Alenichel/CodiglioniNichelini_recsys-polimi-2019
ca97e71da7612644833c20155a0d4d3a57850527
[ "MIT" ]
null
null
null
src/Base/Evaluation/metrics.py
Alenichel/CodiglioniNichelini_recsys-polimi-2019
ca97e71da7612644833c20155a0d4d3a57850527
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Maurizio Ferrari Dacrema, Massimo Quadrana """ import numpy as np import unittest class Metrics_Object(object): """ Abstract class that should be used as superclass of all metrics requiring an object, therefore a state, to be computed """ d...
37.411765
154
0.686101
import numpy as np import unittest class Metrics_Object(object): def __init__(self): pass def add_recommendations(self, recommended_items_ids): raise NotImplementedError() def get_metric_value(self): raise NotImplementedError() def merge_with_other(self, other_metric_object...
true
true
f75e363e96dae24b14779a09a5b29f4603329ee2
3,902
py
Python
source/rttov_test/profile-datasets-py/standard54lev_nogas/005.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/standard54lev_nogas/005.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/standard54lev_nogas/005.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/standard54lev_nogas/005.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/standard54lev_nogas/005.py" self["Q"] = numpy.array([ 1.42240500e+00, 2.29300200e+00, 3.06243300e+00, 3.78981700e+00, 4.34807300e+00, 4.7...
45.372093
90
0.582266
self["ID"] = "../profile-datasets-py/standard54lev_nogas/005.py" self["Q"] = numpy.array([ 1.42240500e+00, 2.29300200e+00, 3.06243300e+00, 3.78981700e+00, 4.34807300e+00, 4.71574400e+00, 4.89684200e+00, 4.97560500e+00, 4.99997500e+00, 4.99997500e+00, 4.99997500e+00, 4.999975...
true
true
f75e36ab8f8eed1910f0753cd437da2aefec06c3
4,161
py
Python
core/contours.py
shibaji7/ISWAT_CV
6239f021b597b66bca213cbc28ad7185f566c0f9
[ "MIT" ]
1
2021-06-30T14:18:49.000Z
2021-06-30T14:18:49.000Z
core/contours.py
shibaji7/ISWAT_CV
6239f021b597b66bca213cbc28ad7185f566c0f9
[ "MIT" ]
null
null
null
core/contours.py
shibaji7/ISWAT_CV
6239f021b597b66bca213cbc28ad7185f566c0f9
[ "MIT" ]
null
null
null
"""contours.py: Module is used to implement edge detection tecqniues using CV2 and apply Kernel estimations on the regions""" __author__ = "Chakraborty, S." __copyright__ = "" __credits__ = [] __license__ = "MIT" __version__ = "1.0." __maintainer__ = "Chakraborty, S." __email__ = "shibaji7@vt.edu" __status__ = "Resear...
44.741935
243
0.607306
__author__ = "Chakraborty, S." __copyright__ = "" __credits__ = [] __license__ = "MIT" __version__ = "1.0." __maintainer__ = "Chakraborty, S." __email__ = "shibaji7@vt.edu" __status__ = "Research" import os import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np import cv2 import da...
true
true
f75e37134480f1f0440e3ae836fec35817c03e61
3,634
py
Python
runtime/bindings/python/tests/test_frontend/test_frontend_onnx.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
1
2021-07-14T07:20:24.000Z
2021-07-14T07:20:24.000Z
runtime/bindings/python/tests/test_frontend/test_frontend_onnx.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
34
2020-11-19T12:27:40.000Z
2022-02-21T13:14:04.000Z
runtime/bindings/python/tests/test_frontend/test_frontend_onnx.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os import onnx import numpy as np from onnx.helper import make_graph, make_model, make_tensor_value_info import pytest from ngraph.frontend import FrontEndManager from tests.runtime import get_runtime def create_onnx_model(): ad...
31.877193
110
0.689048
import os import onnx import numpy as np from onnx.helper import make_graph, make_model, make_tensor_value_info import pytest from ngraph.frontend import FrontEndManager from tests.runtime import get_runtime def create_onnx_model(): add = onnx.helper.make_node("Add", inputs=["x", "y"], outputs=["z"]) const_...
true
true
f75e37c8f400e30099681450ab0f9a8bda1e56f0
703
py
Python
tests/integration/integration_test.py
sohomiitb/hackathonCN
99dfe67d1f6884dc99c7c71663807dcdf0617722
[ "MIT" ]
null
null
null
tests/integration/integration_test.py
sohomiitb/hackathonCN
99dfe67d1f6884dc99c7c71663807dcdf0617722
[ "MIT" ]
null
null
null
tests/integration/integration_test.py
sohomiitb/hackathonCN
99dfe67d1f6884dc99c7c71663807dcdf0617722
[ "MIT" ]
null
null
null
import requests import json test_sample = json.dumps({'data': [ [1,2,3,4,54,6,7,8,88,10], [10,9,8,37,36,45,4,33,2,1] ]}) test_sample = str(test_sample) def test_ml_service(scoreurl, scorekey): assert scoreurl != None if scorekey is None: headers = {'Content-Type':'application/js...
30.565217
94
0.642959
import requests import json test_sample = json.dumps({'data': [ [1,2,3,4,54,6,7,8,88,10], [10,9,8,37,36,45,4,33,2,1] ]}) test_sample = str(test_sample) def test_ml_service(scoreurl, scorekey): assert scoreurl != None if scorekey is None: headers = {'Content-Type':'application/js...
true
true
f75e38d51d5141bff478e45c2772bb7bf62f56e1
378
py
Python
other/APC001_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
other/APC001_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
other/APC001_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
n = int(input()) l = 0 r = n-1 print(l) seet = input() if seet == 'Vacant': exit(0) for _ in range(19): q = (l+r)//2 # 区間が2つの時 # 0-1 1//2=0 if l == q: print(l+1) exit(0) print(q) tmp = input() if ((q-l) & 1 == 0 and tmp == seet) or ((q-l) & 1 == 1 and tmp != seet): ...
14
76
0.404762
n = int(input()) l = 0 r = n-1 print(l) seet = input() if seet == 'Vacant': exit(0) for _ in range(19): q = (l+r)//2 if l == q: print(l+1) exit(0) print(q) tmp = input() if ((q-l) & 1 == 0 and tmp == seet) or ((q-l) & 1 == 1 and tmp != seet): l = q se...
true
true
f75e3936523e2c3a94553cb6cedb55552adeab4f
157
py
Python
physicalconstant/PhysicalConstant.py
a-sandra/Isyn
4d0f3b7af25cb24b60b51a7f1104a748b0bf5ec4
[ "MIT" ]
null
null
null
physicalconstant/PhysicalConstant.py
a-sandra/Isyn
4d0f3b7af25cb24b60b51a7f1104a748b0bf5ec4
[ "MIT" ]
null
null
null
physicalconstant/PhysicalConstant.py
a-sandra/Isyn
4d0f3b7af25cb24b60b51a7f1104a748b0bf5ec4
[ "MIT" ]
null
null
null
import math e = 1.60218e-19 # Electron charge c = 299792458 eps0 = 8.85419e-12 mu0 = 4.*math.pi*10**(-7) Z0 = 377.0
19.625
73
0.484076
import math e = 1.60218e-19 c = 299792458 eps0 = 8.85419e-12 mu0 = 4.*math.pi*10**(-7) Z0 = 377.0
true
true
f75e3a692f311251d5c1c05a6d993d7f38a364e9
10,861
py
Python
homeassistant/components/nest/climate.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/nest/climate.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/components/nest/climate.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Support for Nest thermostats.""" import logging from nest.nest import APIError import voluptuous as vol from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice from homeassistant.components.climate.const import ( ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, CURRENT_HVAC_COOL, CU...
30.767705
88
0.653991
import logging from nest.nest import APIError import voluptuous as vol from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice from homeassistant.components.climate.const import ( ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, CURRENT_HVAC_COOL, CURRENT_HVAC_HEAT, CURRENT_HVAC_ID...
true
true
f75e3a8648d97fad1ec8bfc9af1d86e5634fa5a0
1,090
py
Python
taskbuster/urls.py
caithess/taskbuster
12cc45da0b87867bd13b3cfcffbe776bfcee3c53
[ "MIT" ]
null
null
null
taskbuster/urls.py
caithess/taskbuster
12cc45da0b87867bd13b3cfcffbe776bfcee3c53
[ "MIT" ]
null
null
null
taskbuster/urls.py
caithess/taskbuster
12cc45da0b87867bd13b3cfcffbe776bfcee3c53
[ "MIT" ]
null
null
null
"""taskbuster URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
33.030303
79
0.690826
from django.conf.urls import include, url from django.contrib import admin from django.conf.urls.i18n import i18n_patterns from .views import home, home_files urlpatterns = [ url(r'^(?P<filename>(robots.txt)|(humans.txt))$', home_files, name="home_files"), url(r'^accounts/', include('allauth.urls'...
true
true
f75e3a929ecee1da970bcb0bb42b308819ae95ed
676
py
Python
students/k3342/laboratory_works/Frolov_Alex/laboratory_work_1/lab1_app/forms.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3342/laboratory_works/Frolov_Alex/laboratory_work_1/lab1_app/forms.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3342/laboratory_works/Frolov_Alex/laboratory_work_1/lab1_app/forms.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
from django import forms from django.forms import ModelForm, Textarea from django.contrib.auth.models import User from .models import Comment class AddComment(ModelForm): class Meta: model = Comment fields = [ "conference_name", "type_of_comment", "t...
28.166667
96
0.554734
from django import forms from django.forms import ModelForm, Textarea from django.contrib.auth.models import User from .models import Comment class AddComment(ModelForm): class Meta: model = Comment fields = [ "conference_name", "type_of_comment", "t...
true
true
f75e3c954cbebb168b1ef90b493c99b40208978b
9,265
bzl
Python
go/private/rules/cgo.bzl
josh-newman/rules_go
e3bd34d6c98b8eab232f8260fa98c1e96d12c292
[ "Apache-2.0" ]
1,099
2016-03-15T20:37:57.000Z
2022-03-30T21:16:42.000Z
go/private/rules/cgo.bzl
josh-newman/rules_go
e3bd34d6c98b8eab232f8260fa98c1e96d12c292
[ "Apache-2.0" ]
2,138
2016-03-15T20:18:53.000Z
2022-03-31T23:02:32.000Z
go/private/rules/cgo.bzl
josh-newman/rules_go
e3bd34d6c98b8eab232f8260fa98c1e96d12c292
[ "Apache-2.0" ]
602
2016-03-16T11:35:02.000Z
2022-03-25T09:08:03.000Z
# Copyright 2014 The Bazel 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 applicable la...
44.543269
91
0.645008
load( "//go/private:common.bzl", "has_simple_shared_lib_extension", "has_versioned_shared_lib_extension", "hdr_exts", ) load( "//go/private:mode.bzl", "LINKMODE_NORMAL", "extldflags_from_cc_toolchain", ) def cgo_configure(go, srcs, cdeps, cppopts, copts, cxxopts, clinkopts): if not go....
true
true
f75e3cd23b0f062ef09c869f9e5c5798ecab34a9
840
py
Python
remove_element.py
KevinLuo41/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
19
2015-01-19T19:36:09.000Z
2020-03-18T03:10:12.000Z
remove_element.py
CodingVault/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
null
null
null
remove_element.py
CodingVault/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
12
2015-04-25T14:20:38.000Z
2020-09-27T04:59:59.000Z
#!/usr/bin/env python # encoding: utf-8 """ remove_element.py Created by Shengwei on 2014-07-15. """ # https://oj.leetcode.com/problems/remove-element/ # tags: easy, array, pointer """ Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be cha...
24.705882
98
0.578571
class Solution: def removeElement(self, A, elem): if A is None or len(A) == 0: return 0 cursor = 0 pos = 0 while cursor < len(A): if A[cursor] != elem: A[pos] = A[cursor] pos += 1 cursor += 1 ...
true
true
f75e3d5969af02d3e4b60554fce98316483657fc
1,794
py
Python
bims/api_views/site_search_result.py
Christiaanvdm/django-bims
f92a63156c711b2d53c5f8ea06867cd64cee9eb9
[ "MIT" ]
null
null
null
bims/api_views/site_search_result.py
Christiaanvdm/django-bims
f92a63156c711b2d53c5f8ea06867cd64cee9eb9
[ "MIT" ]
null
null
null
bims/api_views/site_search_result.py
Christiaanvdm/django-bims
f92a63156c711b2d53c5f8ea06867cd64cee9eb9
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bims.api_views.search_version_2 import MAX_PAGINATED_SITES from bims.models.search_process import SearchProcess class SiteSearchResult(APIView): """ ...
32.035714
77
0.638239
from rest_framework.views import APIView from rest_framework.response import Response from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bims.api_views.search_version_2 import MAX_PAGINATED_SITES from bims.models.search_process import SearchProcess class SiteSearchResult(APIView): def e...
true
true
f75e3d9627b9d74a6b49aa87ce32efb72ff74b38
17,859
py
Python
models/official/mask_rcnn/distributed_executer.py
gogasca/tpu
e8801a42e2e2217c464d6a7870e40f19f0ae936b
[ "Apache-2.0" ]
53
2019-10-02T22:00:54.000Z
2021-11-16T13:50:02.000Z
models/official/mask_rcnn/distributed_executer.py
gogasca/tpu
e8801a42e2e2217c464d6a7870e40f19f0ae936b
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
models/official/mask_rcnn/distributed_executer.py
gogasca/tpu
e8801a42e2e2217c464d6a7870e40f19f0ae936b
[ "Apache-2.0" ]
7
2019-10-02T14:24:37.000Z
2020-05-06T08:19:59.000Z
# Copyright 2019 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...
39.511062
80
0.685313
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import json import os import numpy as np import tensorflow as tf from hyperparameters import params_dict import evaluation class DistributedExecuter(object): __metaclass__ = abc.ABCMeta def...
true
true
f75e3ebc29002d45c6754b0c6a197ffe8c707a62
6,300
py
Python
src/exporter.py
spankratov/celery-exporter
f4c98f8e73d8af881675db950e14f8f1b9483d6c
[ "MIT" ]
132
2021-02-06T21:42:28.000Z
2022-03-31T15:24:20.000Z
src/exporter.py
spankratov/celery-exporter
f4c98f8e73d8af881675db950e14f8f1b9483d6c
[ "MIT" ]
47
2021-02-09T11:47:47.000Z
2022-03-29T15:14:18.000Z
src/exporter.py
spankratov/celery-exporter
f4c98f8e73d8af881675db950e14f8f1b9483d6c
[ "MIT" ]
26
2021-02-09T11:41:55.000Z
2022-03-15T11:43:41.000Z
# pylint: disable=protected-access,,attribute-defined-outside-init import re from celery import Celery from loguru import logger from prometheus_client import CollectorRegistry, Counter, Gauge, Histogram from .http_server import start_http_server class Exporter: state = None def __init__(self, buckets=None...
37.058824
113
0.554286
import re from celery import Celery from loguru import logger from prometheus_client import CollectorRegistry, Counter, Gauge, Histogram from .http_server import start_http_server class Exporter: state = None def __init__(self, buckets=None): self.registry = CollectorRegistry(auto_describe=True) ...
true
true
f75e402714314c38e03071fdb1b0696c3cfd452d
1,225
py
Python
edison_note/blog/migrations/0001_initial.py
edison0320/django-web
caaa33596e84cbc4ce193414c03c7faa4861832d
[ "bzip2-1.0.6" ]
null
null
null
edison_note/blog/migrations/0001_initial.py
edison0320/django-web
caaa33596e84cbc4ce193414c03c7faa4861832d
[ "bzip2-1.0.6" ]
null
null
null
edison_note/blog/migrations/0001_initial.py
edison0320/django-web
caaa33596e84cbc4ce193414c03c7faa4861832d
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-22 07:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
36.029412
147
0.597551
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( ...
true
true
f75e40725da0b05d6c5b704afc1ece9406dd61c1
38,809
py
Python
numpy/core/code_generators/generate_umath.py
vincenzosantopietro/numpy
6b0308fad2cf9a37e5b8b9eefa86d4b6ff76d977
[ "BSD-3-Clause" ]
null
null
null
numpy/core/code_generators/generate_umath.py
vincenzosantopietro/numpy
6b0308fad2cf9a37e5b8b9eefa86d4b6ff76d977
[ "BSD-3-Clause" ]
null
null
null
numpy/core/code_generators/generate_umath.py
vincenzosantopietro/numpy
6b0308fad2cf9a37e5b8b9eefa86d4b6ff76d977
[ "BSD-3-Clause" ]
null
null
null
import os import re import struct import sys import textwrap sys.path.insert(0, os.path.dirname(__file__)) import ufunc_docstrings as docstrings sys.path.pop(0) Zero = "PyLong_FromLong(0)" One = "PyLong_FromLong(1)" True_ = "(Py_INCREF(Py_True), Py_True)" False_ = "(Py_INCREF(Py_False), Py_False)" None_ = object() Al...
32.047069
106
0.523899
import os import re import struct import sys import textwrap sys.path.insert(0, os.path.dirname(__file__)) import ufunc_docstrings as docstrings sys.path.pop(0) Zero = "PyLong_FromLong(0)" One = "PyLong_FromLong(1)" True_ = "(Py_INCREF(Py_True), Py_True)" False_ = "(Py_INCREF(Py_False), Py_False)" None_ = object() Al...
true
true
f75e4078179c29a98b4ef0721f713cf814816e2f
5,206
py
Python
scripts/xgboost_simulated_bad_pixel_classifier.py
exowanderer/BadPixelDetector
1dd30eaec6f2a1c6edd40322cde395ac2cd06626
[ "BSD-3-Clause" ]
null
null
null
scripts/xgboost_simulated_bad_pixel_classifier.py
exowanderer/BadPixelDetector
1dd30eaec6f2a1c6edd40322cde395ac2cd06626
[ "BSD-3-Clause" ]
1
2020-06-25T10:46:56.000Z
2020-06-25T10:46:56.000Z
scripts/xgboost_simulated_bad_pixel_classifier.py
exowanderer/HxRGBadPixelDetector
1dd30eaec6f2a1c6edd40322cde395ac2cd06626
[ "BSD-3-Clause" ]
null
null
null
from itertools import product as iterproduct from pylab import *;ion() from sklearn.decomposition import PCA from sklearn.externals import joblib from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score, confusion_matrix from sklearn.preprocessing import StandardScaler from tqdm...
35.414966
89
0.678064
from itertools import product as iterproduct from pylab import *;ion() from sklearn.decomposition import PCA from sklearn.externals import joblib from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score, confusion_matrix from sklearn.preprocessing import StandardScaler from tqdm...
true
true
f75e41656227648d4362ca8b5652ddc9cc094826
1,248
py
Python
setup.py
anatolio-deb/v2sub
6ed2a1d9fd71faa90ecc8d5b51e9067c9bf4409b
[ "MIT" ]
21
2019-08-07T02:07:04.000Z
2022-01-23T16:14:13.000Z
setup.py
anatolio-deb/v2sub
6ed2a1d9fd71faa90ecc8d5b51e9067c9bf4409b
[ "MIT" ]
2
2019-08-31T10:38:54.000Z
2021-04-30T07:32:31.000Z
setup.py
anatolio-deb/v2sub
6ed2a1d9fd71faa90ecc8d5b51e9067c9bf4409b
[ "MIT" ]
8
2019-08-07T02:07:08.000Z
2021-08-22T13:08:31.000Z
import setuptools from v2sub import __version__ with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="v2sub", version=__version__, author="airborne007", author_email="huangtao0202@gmail.com", description="A v2ray subscriber written in python3", long_descri...
29.714286
70
0.616186
import setuptools from v2sub import __version__ with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="v2sub", version=__version__, author="airborne007", author_email="huangtao0202@gmail.com", description="A v2ray subscriber written in python3", long_descri...
true
true
f75e46dadf0aaad46cf7fdaa441a6f57f8a23f18
13,198
py
Python
starcheat/gui/utils.py
mauzao9/testeste
9b0853a625bfd7a1c6e6b35e2dd2cdef9022cf79
[ "MIT" ]
null
null
null
starcheat/gui/utils.py
mauzao9/testeste
9b0853a625bfd7a1c6e6b35e2dd2cdef9022cf79
[ "MIT" ]
null
null
null
starcheat/gui/utils.py
mauzao9/testeste
9b0853a625bfd7a1c6e6b35e2dd2cdef9022cf79
[ "MIT" ]
null
null
null
""" Utility dialogs for starcheat itself """ import os import sys import hashlib import webbrowser from PyQt5.QtWidgets import QDialog from PyQt5.QtWidgets import QFileDialog from PyQt5.QtWidgets import QMessageBox from PyQt5.QtWidgets import QProgressDialog from PyQt5 import QtCore from urllib.request import urlope...
36.559557
127
0.647901
import os import sys import hashlib import webbrowser from PyQt5.QtWidgets import QDialog from PyQt5.QtWidgets import QFileDialog from PyQt5.QtWidgets import QMessageBox from PyQt5.QtWidgets import QProgressDialog from PyQt5 import QtCore from urllib.request import urlopen from urllib.error import URLError import l...
true
true
f75e477f79801c4f6a966b88f8f9ea89d527773a
33,375
py
Python
lib/nets/network.py
zhangyiwen5512/pytorch-faster-rcnn
64b15d3ee4bc2ec62eaab4af63e978a31a0ddbfe
[ "MIT" ]
2
2018-12-16T09:52:47.000Z
2019-01-10T06:55:08.000Z
lib/nets/network.py
zhangyiwen5512/pytorch-faster-rcnn
64b15d3ee4bc2ec62eaab4af63e978a31a0ddbfe
[ "MIT" ]
null
null
null
lib/nets/network.py
zhangyiwen5512/pytorch-faster-rcnn
64b15d3ee4bc2ec62eaab4af63e978a31a0ddbfe
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
47.678571
160
0.606442
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import utils.timer from layer_utils.snippets import generate_anchors_pre ...
true
true
f75e478b28605202731c5a73f935cab928ddbdde
44
py
Python
pages/themes/beginners/stringsNumbersVariablesComments/examples/mathOperations.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/stringsNumbersVariablesComments/examples/mathOperations.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/stringsNumbersVariablesComments/examples/mathOperations.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
x = 5 y = x print(x, y) x = 3 print(x, y)
5.5
11
0.454545
x = 5 y = x print(x, y) x = 3 print(x, y)
true
true
f75e47da6e6ca1abb6d269a9e9ce9c0904f3ba93
2,385
py
Python
parseHtml.py
sicelex/ZhengFangSchoolSystemSpider
c4e5dd3066ce5fe986bc5ba9dba6cabb7e75bab3
[ "Apache-2.0" ]
5
2017-08-25T14:04:26.000Z
2019-01-11T08:32:31.000Z
parseHtml.py
hystrixis/ZhengFangSchoolSystemSpider
c4e5dd3066ce5fe986bc5ba9dba6cabb7e75bab3
[ "Apache-2.0" ]
null
null
null
parseHtml.py
hystrixis/ZhengFangSchoolSystemSpider
c4e5dd3066ce5fe986bc5ba9dba6cabb7e75bab3
[ "Apache-2.0" ]
3
2017-08-25T14:04:29.000Z
2019-01-07T16:32:15.000Z
# coding=utf-8 import os from bs4 import BeautifulSoup # 从网页中解析学生信息 def getStudentInfor(response): html = response.content.decode("gb2312") soup = BeautifulSoup(html.decode("utf-8"), "html.parser") d = {} d["studentnumber"] = soup.find(id="xh").string d["idCardNumber"] = soup.find(id="lbl_sfzh")...
32.22973
89
0.632285
import os from bs4 import BeautifulSoup def getStudentInfor(response): html = response.content.decode("gb2312") soup = BeautifulSoup(html.decode("utf-8"), "html.parser") d = {} d["studentnumber"] = soup.find(id="xh").string d["idCardNumber"] = soup.find(id="lbl_sfzh").string d["name"] = soup...
false
true
f75e48f15604f7d5c054b9a069c232f91f8889a9
16,419
py
Python
Lib/sqlite3/test/test_regression.py
kashishmish/cpython
32ff88af346c6fedfecbfb4abd8681d84283dda7
[ "0BSD" ]
3
2019-12-13T21:02:10.000Z
2020-04-17T15:02:31.000Z
Lib/sqlite3/test/test_regression.py
kashishmish/cpython
32ff88af346c6fedfecbfb4abd8681d84283dda7
[ "0BSD" ]
13
2020-12-01T05:38:43.000Z
2022-03-01T16:01:00.000Z
Lib/sqlite3/test/test_regression.py
jab/cpython
a856364cc920d8b16750fd1fadc902efb509754c
[ "0BSD" ]
1
2020-04-19T08:55:21.000Z
2020-04-19T08:55:21.000Z
# pysqlite2/test/regression.py: pysqlite regression tests # # Copyright (C) 2006-2010 Gerhard Häring <gh@ghaering.de> # # This file is part of pysqlite. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use o...
37.231293
98
0.604239
import datetime import sys import unittest import sqlite3 as sqlite import weakref import functools from test import support class RegressionTests(unittest.TestCase): def setUp(self): self.con = sqlite.connect(":memory:") def tearDown(self): self.con.close() def test_pragma_user_version(...
true
true
f75e4931efbb9b3915341c8ece8a996297419a27
3,815
py
Python
tests/functional/input.py
graingert/py-backwards
fd2d89ad972148024ee667eff5b9f19ac91d98ad
[ "MIT" ]
338
2017-04-27T15:03:46.000Z
2022-03-29T18:59:34.000Z
tests/functional/input.py
graingert/py-backwards
fd2d89ad972148024ee667eff5b9f19ac91d98ad
[ "MIT" ]
43
2017-04-27T19:20:18.000Z
2021-10-11T10:39:35.000Z
tests/functional/input.py
graingert/py-backwards
fd2d89ad972148024ee667eff5b9f19ac91d98ad
[ "MIT" ]
17
2017-04-28T00:36:14.000Z
2021-08-04T15:59:59.000Z
"""This file contains all supported python constructions.""" # Variables: def test_variables(): a = 1 b: int = 2 c: int c = 3 print('test variables:', a, b, c) test_variables() # Strings: def test_strings(): a = 'hi' e = f'{a}' b: str = 'there' c = f'{a}' d = f'{a} {b}!' ...
16.165254
77
0.522412
def test_variables(): a = 1 b: int = 2 c: int c = 3 print('test variables:', a, b, c) test_variables() def test_strings(): a = 'hi' e = f'{a}' b: str = 'there' c = f'{a}' d = f'{a} {b}!' print('test strings:', a, b, c, d, e) test_strings() def test_lists(): a...
true
true
f75e4978695f488af2d2de09a8db36dad9bd86a7
406
py
Python
priactice_test/test2/base_64.py
KongYun-Mrs/practice
72bffdf889ce36e4fcbb12f2456c03d45dec681e
[ "MIT" ]
null
null
null
priactice_test/test2/base_64.py
KongYun-Mrs/practice
72bffdf889ce36e4fcbb12f2456c03d45dec681e
[ "MIT" ]
1
2020-07-11T05:18:06.000Z
2020-07-11T05:18:06.000Z
priactice_test/test2/base_64.py
KongYun-Mrs/practice
72bffdf889ce36e4fcbb12f2456c03d45dec681e
[ "MIT" ]
null
null
null
# coding: utf-8 import base_64 copyright = 'Copyright (c) 2012 Doucube Inc. All rights reserved.' def main(): bytesString = copyright.encode(encoding="utf-8") print(bytesString) # base64 加密 encodestr = base_64.b64encode(bytesString) print(encodestr) # base64 解密 decodestr = base_64.b64de...
18.454545
66
0.679803
import base_64 copyright = 'Copyright (c) 2012 Doucube Inc. All rights reserved.' def main(): bytesString = copyright.encode(encoding="utf-8") print(bytesString) encodestr = base_64.b64encode(bytesString) print(encodestr) decodestr = base_64.b64decode(encodestr) print(decodestr.deco...
true
true
f75e499629ba26af1c67d94192ef64e9ac733964
1,166
py
Python
net/data/verify_certificate_chain_unittest/expired-target/generate-chains.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
net/data/verify_certificate_chain_unittest/expired-target/generate-chains.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
net/data/verify_certificate_chain_unittest/expired-target/generate-chains.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Certificate chain where the target certificate has a smaller validity range than the other certificates, making it easy to violate j...
34.294118
79
0.75729
import sys sys.path += ['..'] import common root = common.create_self_signed_root_certificate('Root') root.set_validity_range(common.JANUARY_1_2015_UTC, common.JANUARY_1_2016_UTC) intermediate = common.create_intermediate_certificate('Intermediate', root) intermediate.set_validity_range(common.JANUARY_1_2015_UTC, ...
true
true
f75e4a8b0a0276bfa117e594e91b8b9d42d5a9b0
455
py
Python
config.py
luffythekid2/TorrentSearcherBot
ab691ebba7a6cd0613c2faf6948b04a1e86fee57
[ "MIT" ]
null
null
null
config.py
luffythekid2/TorrentSearcherBot
ab691ebba7a6cd0613c2faf6948b04a1e86fee57
[ "MIT" ]
null
null
null
config.py
luffythekid2/TorrentSearcherBot
ab691ebba7a6cd0613c2faf6948b04a1e86fee57
[ "MIT" ]
null
null
null
import os TOKEN = os.environ.get("2066417340:AAERvi25V1oe1iV_chpl1VF44Q7FyUHS-xk") API_HASH = os.environ.get("6ac53d0c86a0afb6c3f1d956304912e0") API_ID = int(os.environ.get("8973350")) START_MESSAGE = os.environ.get("START_MESSAGE", "<b>Hi ! I am a simple torrent searcher using @chirag's Torrent Searcher api.\n\n...
50.555556
165
0.731868
import os TOKEN = os.environ.get("2066417340:AAERvi25V1oe1iV_chpl1VF44Q7FyUHS-xk") API_HASH = os.environ.get("6ac53d0c86a0afb6c3f1d956304912e0") API_ID = int(os.environ.get("8973350")) START_MESSAGE = os.environ.get("START_MESSAGE", "<b>Hi ! I am a simple torrent searcher using @chirag's Torrent Searcher api.\n\n...
true
true
f75e4af8886432be6c6cb669827ce9b6e22ee738
60,511
py
Python
pandas/tests/indexes/test_base.py
ptype/pandas
672fb498bb4b4897c2caa2e17daad66d1ba60943
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4
2020-03-31T23:31:24.000Z
2021-08-06T13:47:39.000Z
pandas/tests/indexes/test_base.py
ptype/pandas
672fb498bb4b4897c2caa2e17daad66d1ba60943
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2021-05-31T01:10:55.000Z
2021-07-19T00:37:03.000Z
pandas/tests/indexes/test_base.py
ptype/pandas
672fb498bb4b4897c2caa2e17daad66d1ba60943
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-03-06T10:33:40.000Z
2021-03-06T10:33:40.000Z
from collections import defaultdict from datetime import ( datetime, timedelta, ) from io import StringIO import math import re import numpy as np import pytest from pandas.compat import ( IS64, np_datetime64_compat, ) from pandas.util._test_decorators import async_mark import pandas as pd from panda...
34.225679
88
0.575317
from collections import defaultdict from datetime import ( datetime, timedelta, ) from io import StringIO import math import re import numpy as np import pytest from pandas.compat import ( IS64, np_datetime64_compat, ) from pandas.util._test_decorators import async_mark import pandas as pd from panda...
true
true
f75e4b465d17960feb31db77cf41b84dae52092c
11,727
py
Python
nicos_sinq/icon/devices/camini.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_sinq/icon/devices/camini.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-08-18T10:55:42.000Z
2021-08-18T10:55:42.000Z
nicos_sinq/icon/devices/camini.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
33.505714
79
0.583525
import datetime from time import time as currenttime from nicos import session from nicos.core import Attach, Moveable, Param, Readable, Value, pvname, status from nicos.devices.generic import Detector from nicos.devices.generic.sequence import SeqDev, SeqMethod, SeqSleep, \ SequenceItem, SequencerMixin from nic...
true
true
f75e4b59ee4fbda8f90f9be93db93a6405590b0e
5,669
py
Python
topological_nav/tools/build_nav_graph.py
KH-Kyle/rmp_nav
d598fe70664a4cdc0e9b9dd4b52e84aa3de1b551
[ "MIT" ]
30
2020-03-02T10:31:17.000Z
2022-03-14T08:47:00.000Z
topological_nav/tools/build_nav_graph.py
KH-Kyle/rmp_nav
d598fe70664a4cdc0e9b9dd4b52e84aa3de1b551
[ "MIT" ]
4
2020-06-23T17:07:28.000Z
2021-11-21T02:37:37.000Z
topological_nav/tools/build_nav_graph.py
KH-Kyle/rmp_nav
d598fe70664a4cdc0e9b9dd4b52e84aa3de1b551
[ "MIT" ]
8
2020-05-26T08:18:21.000Z
2022-01-27T09:25:55.000Z
import numpy as np import cv2 import os from topological_nav.reachability.planning import NavGraph, update_nav_graph, NavGraphSPTM from rmp_nav.simulation.gibson_map import MakeGibsonMap from rmp_nav.common.utils import get_gibson_asset_dir, pprint_dict def _make_maps(map_names): def load_maps(datadir, map_names,...
36.574194
109
0.631152
import numpy as np import cv2 import os from topological_nav.reachability.planning import NavGraph, update_nav_graph, NavGraphSPTM from rmp_nav.simulation.gibson_map import MakeGibsonMap from rmp_nav.common.utils import get_gibson_asset_dir, pprint_dict def _make_maps(map_names): def load_maps(datadir, map_names,...
true
true
f75e4c10eb14605c29e1859426f00e8b8c748f6b
9,462
py
Python
ophyd/tests/test_sim.py
ZLLentz/ophyd
c3ae3dac6f37a9befeed0ce80a7684dd645f4bbc
[ "BSD-3-Clause" ]
15
2019-06-17T20:08:50.000Z
2021-10-29T20:31:03.000Z
ophyd/tests/test_sim.py
ZLLentz/ophyd
c3ae3dac6f37a9befeed0ce80a7684dd645f4bbc
[ "BSD-3-Clause" ]
274
2019-05-10T16:57:05.000Z
2022-02-17T19:56:05.000Z
ophyd/tests/test_sim.py
ZLLentz/ophyd
c3ae3dac6f37a9befeed0ce80a7684dd645f4bbc
[ "BSD-3-Clause" ]
37
2019-07-06T18:17:07.000Z
2022-03-09T22:26:18.000Z
from ophyd.sim import (SynGauss, Syn2DGauss, SynAxis, make_fake_device, FakeEpicsSignal, FakeEpicsSignalRO, FakeEpicsSignalWithRBV, clear_fake_device, instantiate_fake_device, SynSignalWithRegistry) from ophyd.device import (Device, Component as Cpt, ...
31.966216
80
0.633376
from ophyd.sim import (SynGauss, Syn2DGauss, SynAxis, make_fake_device, FakeEpicsSignal, FakeEpicsSignalRO, FakeEpicsSignalWithRBV, clear_fake_device, instantiate_fake_device, SynSignalWithRegistry) from ophyd.device import (Device, Component as Cpt, ...
true
true
f75e4d27dc56bb1c209ea600d6d04a8b71103502
948
py
Python
ctf_vuln_app/backend/config/wsgi.py
magnublo/cookiecutter-django-vue
73ea8b056cfcf6b0d7a313159841f406847ed3b6
[ "BSD-3-Clause" ]
null
null
null
ctf_vuln_app/backend/config/wsgi.py
magnublo/cookiecutter-django-vue
73ea8b056cfcf6b0d7a313159841f406847ed3b6
[ "BSD-3-Clause" ]
null
null
null
ctf_vuln_app/backend/config/wsgi.py
magnublo/cookiecutter-django-vue
73ea8b056cfcf6b0d7a313159841f406847ed3b6
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for serenity-escrow project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLIC...
35.111111
79
0.779536
import os import sys from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') current_path = os.path.dirname( os.path.abspath(__file__)).replace( '/config', '') sys.path.append(current_path) sys.path.append(os.path.join(current_path, 'apps')) #...
true
true
f75e4dd80868f5b6c4aa8218b6cb5a325047ab45
15,781
py
Python
src/humanize/time.py
nicksherron/humanize
345f58bed9951584aca8c036f84270a60451147d
[ "MIT" ]
1
2020-12-19T06:17:06.000Z
2020-12-19T06:17:06.000Z
src/humanize/time.py
nicksherron/humanize
345f58bed9951584aca8c036f84270a60451147d
[ "MIT" ]
null
null
null
src/humanize/time.py
nicksherron/humanize
345f58bed9951584aca8c036f84270a60451147d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Time humanizing functions. These are largely borrowed from Django's `contrib.humanize`. """ import datetime as dt import math from enum import Enum from functools import total_ordering from .i18n import gettext as _ from .i18n import ngettext __all__ = [ "naturaldelta", "naturaltim...
31.625251
88
0.614663
import datetime as dt import math from enum import Enum from functools import total_ordering from .i18n import gettext as _ from .i18n import ngettext __all__ = [ "naturaldelta", "naturaltime", "naturalday", "naturaldate", "precisedelta", ] @total_ordering class Unit(Enum): MICROSECONDS = ...
true
true
f75e4e561e863c7957ebe762747464e8604d1cfb
4,635
py
Python
ga.py
JSchapke/bazzan_environment
38c7bba4be47c855f1844758c03a299d5ec94649
[ "MIT" ]
null
null
null
ga.py
JSchapke/bazzan_environment
38c7bba4be47c855f1844758c03a299d5ec94649
[ "MIT" ]
null
null
null
ga.py
JSchapke/bazzan_environment
38c7bba4be47c855f1844758c03a299d5ec94649
[ "MIT" ]
null
null
null
import os import argparse import datetime import random from functools import partial import numpy as np import matplotlib.pyplot as plt from lib.pyeasyga import GeneticAlgorithm from env import Env def create_individual(action_space, *args): high = action_space.high low = action_space.low return [random....
35.930233
126
0.649838
import os import argparse import datetime import random from functools import partial import numpy as np import matplotlib.pyplot as plt from lib.pyeasyga import GeneticAlgorithm from env import Env def create_individual(action_space, *args): high = action_space.high low = action_space.low return [random....
true
true
f75e4f5fae104cf0300604582f0b559c0dbb1cc5
943
py
Python
ex088.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex088.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex088.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
"""Exercício Python 088: Faça um programa que ajude um jogador da MEGA SENA a criar palpites. O programa vai perguntar quantos jogos serão gerados e vai sortear 6 números entre 1 e 60 para cada jogo, cadastrando tudo em uma lista composta.""" print('-=' * 25) print(f'{"JOGO DA MEGA SENA":^50}') print('-=' * 25) total_j...
27.735294
105
0.605514
print('-=' * 25) print(f'{"JOGO DA MEGA SENA":^50}') print('-=' * 25) total_jogos = int(input('Quantos jogos você quer que eu sorteie? ')) print('-' * 50) print(' ' * 15, f'Sorteando {total_jogos} jogos', ' ' * 15) print('-' * 50) from time import sleep from random import randint c = 0 jogo = list() jogos = list() for ...
true
true
f75e4fdafff0f00738d567ca25113467fa3f7e22
3,979
py
Python
sdks/python/apache_beam/io/sources_test.py
NarimanAB/beam
6cedbac5bb42304f4af88634edd276b0b78e4e4e
[ "Apache-2.0", "BSD-3-Clause" ]
5,279
2016-12-29T04:00:44.000Z
2022-03-31T22:56:45.000Z
sdks/python/apache_beam/io/sources_test.py
NarimanAB/beam
6cedbac5bb42304f4af88634edd276b0b78e4e4e
[ "Apache-2.0", "BSD-3-Clause" ]
14,149
2016-12-28T00:43:50.000Z
2022-03-31T23:50:22.000Z
sdks/python/apache_beam/io/sources_test.py
NarimanAB/beam
6cedbac5bb42304f4af88634edd276b0b78e4e4e
[ "Apache-2.0", "BSD-3-Clause" ]
3,763
2016-12-29T04:06:10.000Z
2022-03-31T22:25:49.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
31.832
80
0.722292
import logging import os import tempfile import unittest import apache_beam as beam from apache_beam import coders from apache_beam.io import iobase from apache_beam.io import range_trackers from apache_beam.testing.test_pipeline import TestPipeline from apache_beam.testing.util import assert_that from apache_beam.t...
true
true
f75e5092689a3010d3fd746af567d65aedf7d0bd
3,520
py
Python
tests/intelligent_ingestion_test.py
kracekumar/filestack-python
f12128e6df4c6eb1bcdb95d4c6a920c2781a0a45
[ "Apache-2.0" ]
1
2020-12-12T03:34:24.000Z
2020-12-12T03:34:24.000Z
tests/intelligent_ingestion_test.py
malarozi/filestack-python
7109a9c20225532c95f0204d12649137c0de01a1
[ "Apache-2.0" ]
null
null
null
tests/intelligent_ingestion_test.py
malarozi/filestack-python
7109a9c20225532c95f0204d12649137c0de01a1
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch, call, ANY from collections import defaultdict import pytest from filestack import Security from filestack.uploads.intelligent_ingestion import upload_part, upload from tests.helpers import DummyHttpResponse @patch('filestack.uploads.intelligent_ingestion.requests.put') @patch('file...
37.849462
118
0.642614
from unittest.mock import patch, call, ANY from collections import defaultdict import pytest from filestack import Security from filestack.uploads.intelligent_ingestion import upload_part, upload from tests.helpers import DummyHttpResponse @patch('filestack.uploads.intelligent_ingestion.requests.put') @patch('file...
true
true
f75e5121d136c5125906ee278ce10d07b28ec65d
3,554
py
Python
pytexexam/builder.py
vungocbinh2009/pytexexam
8744c43310601d0d78e3727bdb0d936bd83fa645
[ "Apache-2.0" ]
31
2019-11-29T10:59:17.000Z
2021-04-25T11:50:48.000Z
pytexexam/builder.py
vungocbinh2009/pytexexam
8744c43310601d0d78e3727bdb0d936bd83fa645
[ "Apache-2.0" ]
2
2019-12-09T07:57:04.000Z
2020-12-05T01:15:16.000Z
pytexexam/builder.py
vungocbinh2009/pytexexam
8744c43310601d0d78e3727bdb0d936bd83fa645
[ "Apache-2.0" ]
5
2019-11-25T17:35:53.000Z
2021-01-01T15:47:08.000Z
from enum import Enum from typing import List from latexexam import LatexExamPaper, LatexExamAnswer, LatexExamSolution from latexpaper import LatexPaper from question import Question import random class LatexExamBuilder: """Builder class to create exam,answer and solution paper""" def __init__(self): ...
32.018018
119
0.627743
from enum import Enum from typing import List from latexexam import LatexExamPaper, LatexExamAnswer, LatexExamSolution from latexpaper import LatexPaper from question import Question import random class LatexExamBuilder: def __init__(self): self.preamble = "" self.header = "" self.questio...
true
true
f75e52ddc016679e2df1ffaada9f00f6a55e1f3f
12,790
py
Python
sktime/tests/_config.py
julramos/sktime
192b5ec5e6e4e4ee2e956b48e1cd5930aa193a84
[ "BSD-3-Clause" ]
null
null
null
sktime/tests/_config.py
julramos/sktime
192b5ec5e6e4e4ee2e956b48e1cd5930aa193a84
[ "BSD-3-Clause" ]
null
null
null
sktime/tests/_config.py
julramos/sktime
192b5ec5e6e4e4ee2e956b48e1cd5930aa193a84
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __author__ = ["Markus Löning"] __all__ = ["ESTIMATOR_TEST_PARAMS", "EXCLUDE_ESTIMATORS", "EXCLUDED_TESTS"] import numpy as np from hcrystalball.wrappers import HoltSmoothingWrapper from sklearn.l...
40.732484
88
0.76122
__author__ = ["Markus Löning"] __all__ = ["ESTIMATOR_TEST_PARAMS", "EXCLUDE_ESTIMATORS", "EXCLUDED_TESTS"] import numpy as np from hcrystalball.wrappers import HoltSmoothingWrapper from sklearn.linear_model import LinearRegression from sklearn.pipeline import make_pipeline from sklearn.preprocessing import FunctionT...
true
true
f75e54375657a8f6e5b2b66a1a57911073f5cd88
13,540
py
Python
nncf/config/experimental_schema.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
null
null
null
nncf/config/experimental_schema.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
null
null
null
nncf/config/experimental_schema.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
58.111588
120
0.492467
import copy from nncf.config.schema import ARRAY_OF_NUMBERS from nncf.config.schema import ARRAY_OF_STRINGS from nncf.config.schema import BATCHNORM_ADAPTATION_SCHEMA from nncf.config.schema import BOOLEAN from nncf.config.schema import IGNORED_SCOPES_DESCRIPTION from nncf.config.schema import NUMBER from nncf.config...
true
true
f75e559cd13f51a04e82b4695ad3c3f2b8d9db03
2,843
py
Python
simpleweather/__init__.py
CreatorSky/simpleweather
a79275c4e9a965013fc48b25c3fb9c36fc581f3f
[ "MIT" ]
2
2019-08-14T06:29:59.000Z
2019-08-14T06:44:11.000Z
simpleweather/__init__.py
CreatorSky/simpleweather
a79275c4e9a965013fc48b25c3fb9c36fc581f3f
[ "MIT" ]
null
null
null
simpleweather/__init__.py
CreatorSky/simpleweather
a79275c4e9a965013fc48b25c3fb9c36fc581f3f
[ "MIT" ]
null
null
null
import requests as re from bs4 import BeautifulSoup class Weather(object): def __init__(self, unit='F', cords=None): """ :param unit: F for Fahrenheit, C for Celsius :param cords: Weather of the passed Geocordinates is fetched, If none,automatic Coordinates are fetched by ...
35.098765
112
0.528315
import requests as re from bs4 import BeautifulSoup class Weather(object): def __init__(self, unit='F', cords=None): if not cords: data = re.get('https://ipinfo.io/') cords = data.json()['loc'] w_url = 'https://weather.com/weather/today/l/' + cords wea...
true
true
f75e57423857ebe866afc3eb821ebe9dc6f1b7d7
324
py
Python
platforms/registry.py
sbam13/open_lth
d8c8d450cc8229afed54b26f77b91c3fe0c3f339
[ "MIT" ]
null
null
null
platforms/registry.py
sbam13/open_lth
d8c8d450cc8229afed54b26f77b91c3fe0c3f339
[ "MIT" ]
null
null
null
platforms/registry.py
sbam13/open_lth
d8c8d450cc8229afed54b26f77b91c3fe0c3f339
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from platforms import local registered_platforms = {'local': local.Platform} def get(name): return registered_platforms[nam...
23.142857
66
0.728395
from platforms import local registered_platforms = {'local': local.Platform} def get(name): return registered_platforms[name]
true
true
f75e58204df3b97f7ddd1a440aa6b92e19407616
2,769
py
Python
salt/utils/decorators/state.py
elisaparolo/salt-1
19cf8acb0559f4504971f60ef2065a34bbd8c2f7
[ "Apache-2.0" ]
null
null
null
salt/utils/decorators/state.py
elisaparolo/salt-1
19cf8acb0559f4504971f60ef2065a34bbd8c2f7
[ "Apache-2.0" ]
null
null
null
salt/utils/decorators/state.py
elisaparolo/salt-1
19cf8acb0559f4504971f60ef2065a34bbd8c2f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Decorators for salt.state :codeauthor: :email:`Bo Maryniuk (bo@suse.de)` ''' from __future__ import absolute_import, unicode_literals import traceback from salt.exceptions import SaltException class OutputUnifier(object): def __init__(self, *policies): self.policies = [] ...
32.576471
116
0.535934
from __future__ import absolute_import, unicode_literals import traceback from salt.exceptions import SaltException class OutputUnifier(object): def __init__(self, *policies): self.policies = [] for pls in policies: if not hasattr(self, pls): raise SaltException('Unkno...
true
true
f75e582e2eb0a0ca2d1b27fda7f328797c5b5c67
814
py
Python
tests/test_cp_loader.py
zefciu/equus
d99dad036758c80aa7564c6f0c316e9fa64e2088
[ "MIT" ]
null
null
null
tests/test_cp_loader.py
zefciu/equus
d99dad036758c80aa7564c6f0c316e9fa64e2088
[ "MIT" ]
null
null
null
tests/test_cp_loader.py
zefciu/equus
d99dad036758c80aa7564c6f0c316e9fa64e2088
[ "MIT" ]
1
2021-01-16T13:50:46.000Z
2021-01-16T13:50:46.000Z
import io from nose.tools import assert_equal from tests.shared import SampleFlatConfiguration CONFIGURATION_FULL_DATA = io.StringIO(""" [app_config] required_str_param: spam optional_str_param: eggs default_str_param: sausage required_int_param: 42 """) CONFIGURATION_PARTIAL_DATA = io.StringIO(""" [app_config] re...
22
82
0.793612
import io from nose.tools import assert_equal from tests.shared import SampleFlatConfiguration CONFIGURATION_FULL_DATA = io.StringIO(""" [app_config] required_str_param: spam optional_str_param: eggs default_str_param: sausage required_int_param: 42 """) CONFIGURATION_PARTIAL_DATA = io.StringIO(""" [app_config] re...
true
true
f75e5a2e3b096b1d176a04b7fcd557cda653d596
2,200
py
Python
models/mgnet/modules/network.py
Jerrypiglet/Total3DUnderstanding
655d00a988c839af3b73f8ab890c3f70c1500147
[ "MIT" ]
288
2020-06-27T16:13:35.000Z
2022-03-31T12:47:42.000Z
models/mgnet/modules/network.py
Jerrypiglet/Total3DUnderstanding
655d00a988c839af3b73f8ab890c3f70c1500147
[ "MIT" ]
38
2020-07-03T09:19:24.000Z
2022-03-17T12:32:56.000Z
models/mgnet/modules/network.py
Jerrypiglet/Total3DUnderstanding
655d00a988c839af3b73f8ab890c3f70c1500147
[ "MIT" ]
40
2020-06-28T03:21:01.000Z
2022-03-29T10:17:20.000Z
# Mesh Generation Net: model loader # author: ynie # date: Feb, 2020 from models.registers import METHODS, MODULES, LOSSES from models.network import BaseNetwork import torch from torch import nn @METHODS.register_module class MGNet(BaseNetwork): def __init__(self, cfg): ''' load submodules for t...
39.285714
138
0.640909
from models.registers import METHODS, MODULES, LOSSES from models.network import BaseNetwork import torch from torch import nn @METHODS.register_module class MGNet(BaseNetwork): def __init__(self, cfg): super(BaseNetwork, self).__init__() self.cfg = cfg for phase_name, net_spec in cfg.co...
true
true
f75e5a66d88bc7ed070cbb6e1b358bfbd72f9dba
41,883
py
Python
allennlp/training/trainer.py
loopylangur/allennlp
0fc695b08a0376317e45ae0a45584aa9eb14beb6
[ "Apache-2.0" ]
null
null
null
allennlp/training/trainer.py
loopylangur/allennlp
0fc695b08a0376317e45ae0a45584aa9eb14beb6
[ "Apache-2.0" ]
null
null
null
allennlp/training/trainer.py
loopylangur/allennlp
0fc695b08a0376317e45ae0a45584aa9eb14beb6
[ "Apache-2.0" ]
null
null
null
import datetime import logging import math import os import time import traceback from typing import Dict, Optional, Tuple, Union, Iterable, Any import torch import torch.distributed as dist import torch.optim.lr_scheduler from torch.nn.parallel import DistributedDataParallel from allennlp.common import Params from a...
48.030963
111
0.644247
import datetime import logging import math import os import time import traceback from typing import Dict, Optional, Tuple, Union, Iterable, Any import torch import torch.distributed as dist import torch.optim.lr_scheduler from torch.nn.parallel import DistributedDataParallel from allennlp.common import Params from a...
true
true
f75e5b59c25c7cd069c7fa9b24ac3e4d00600555
9,857
py
Python
log_dumper/log_dumper.py
avihaie/bug-hunter
9a2730d9a61b268f45e9d3115b8bbba039b954db
[ "Apache-2.0" ]
null
null
null
log_dumper/log_dumper.py
avihaie/bug-hunter
9a2730d9a61b268f45e9d3115b8bbba039b954db
[ "Apache-2.0" ]
4
2018-05-29T03:58:15.000Z
2018-10-10T10:27:35.000Z
log_dumper/log_dumper.py
avihaie/bug-hunter
9a2730d9a61b268f45e9d3115b8bbba039b954db
[ "Apache-2.0" ]
null
null
null
import logging import argparse import os from rrmng.rrmngmnt.host import Host from rrmng.rrmngmnt.user import RootUser import helpers import global_helpers import config LOCAL_HOST = Host("127.0.0.1") # set up logging to file logging.basicConfig( level=logging.INFO, format='[%(asctime)s] {%(pathname)s:%(lin...
37.479087
180
0.61469
import logging import argparse import os from rrmng.rrmngmnt.host import Host from rrmng.rrmngmnt.user import RootUser import helpers import global_helpers import config LOCAL_HOST = Host("127.0.0.1") logging.basicConfig( level=logging.INFO, format='[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - ' ...
true
true
f75e5b723eb5333ba4c65b709cb71480120422c1
6,919
py
Python
network/models/coil_reverse.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
1
2021-03-01T19:43:12.000Z
2021-03-01T19:43:12.000Z
network/models/coil_reverse.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
network/models/coil_reverse.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
from logger import coil_logger import torch.nn as nn import torch import importlib from configs import g_conf from coilutils.general import command_number_to_index from .building_blocks import Conv from .building_blocks import Branching from .building_blocks import FC from .building_blocks import Join from .building_...
42.709877
122
0.583177
from logger import coil_logger import torch.nn as nn import torch import importlib from configs import g_conf from coilutils.general import command_number_to_index from .building_blocks import Conv from .building_blocks import Branching from .building_blocks import FC from .building_blocks import Join from .building_...
true
true
f75e5cebd956a4025bf0265b1e7dd05df153d431
1,205
py
Python
appengine/findit/services/test_failure/test_results_service.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/test_failure/test_results_service.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/test_failure/test_results_service.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provides functions for Findit's special operations on test results.""" import base64 def GetFailedTestsInformationFromTestResult(test_results_object): ...
34.428571
79
0.756017
import base64 def GetFailedTestsInformationFromTestResult(test_results_object): failed_test_log, reliable_failed_tests = ( test_results_object.GetFailedTestsInformation()) for test_name in reliable_failed_tests: if not failed_test_log.get(test_name): test_location, _ = test_results_objec...
true
true
f75e5cf11d8fb696d6b903a7a4f6c31fb62edd3b
2,992
py
Python
evaluate.py
thundergolfer/text-classify-with-cnn
02fe7b3f85a5408f38f1fbc97382d41e80b78ff8
[ "MIT" ]
16
2016-10-23T12:52:41.000Z
2020-09-22T13:31:38.000Z
evaluate.py
thundergolfer/text-classify-with-cnn
02fe7b3f85a5408f38f1fbc97382d41e80b78ff8
[ "MIT" ]
null
null
null
evaluate.py
thundergolfer/text-classify-with-cnn
02fe7b3f85a5408f38f1fbc97382d41e80b78ff8
[ "MIT" ]
1
2020-06-08T09:12:01.000Z
2020-06-08T09:12:01.000Z
# coding: utf-8 import tensorflow as tf import numpy as np import os import time import datetime import manage_data from text_network import TextNetwork from tensorflow.contrib import learn # ### Set Params # Eval Parameters tf.flags.DEFINE_integer("batch_size", 64, "Batch Size (default: 64)") tf.flags.DEFINE_stri...
34.390805
102
0.727607
import tensorflow as tf import numpy as np import os import time import datetime import manage_data from text_network import TextNetwork from tensorflow.contrib import learn tf.flags.DEFINE_integer("batch_size", 64, "Batch Size (default: 64)") tf.flags.DEFINE_string("checkpoint_dir", "", "Checkpoint directory from...
true
true
f75e5f9db56a6dbbc51737b73b8cbfcac3a0a1f2
700
py
Python
src/sphobjinv/__main__.py
flying-sheep/sphobjinv
0aa56e3982f99bf811cef4126e452ddd65cae088
[ "MIT" ]
null
null
null
src/sphobjinv/__main__.py
flying-sheep/sphobjinv
0aa56e3982f99bf811cef4126e452ddd65cae088
[ "MIT" ]
null
null
null
src/sphobjinv/__main__.py
flying-sheep/sphobjinv
0aa56e3982f99bf811cef4126e452ddd65cae088
[ "MIT" ]
null
null
null
r"""``sphobjinv`` *package execution module*. ``sphobjinv`` is a toolkit for manipulation and inspection of Sphinx |objects.inv| files. **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 17 May 2016 **Copyright** \(c) Brian Skinn 2016-2020 **Source Repository** https://github.com/bskinn/...
18.421053
62
0.677143
import sys from sphobjinv.cmdline import main if __name__ == "__main__": sys.argv[0] = "sphobjinv" sys.exit(main())
true
true
f75e5fd761662d53e65396980603dbd5c1f2af52
16,606
py
Python
TransformGenotypes_ClassesTop.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
1
2021-10-07T18:55:03.000Z
2021-10-07T18:55:03.000Z
TransformGenotypes_ClassesTop.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
null
null
null
TransformGenotypes_ClassesTop.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
1
2017-04-13T09:07:41.000Z
2017-04-13T09:07:41.000Z
# -*- coding: utf-8 -*- #This is a script to add newly genotyped individuals and downloaded GeneSeek zip file (Final Reports) #to the existing database of the latest genotypes #Pipeline: #1)define chip, dictionary, dictionary to hold chip: genotype package: animal ids, dictionary to hold genotype package : download da...
47.581662
189
0.65374
import os os.chdir("/home/jana/Genotipi/Genotipi_CODES/") import sys import zipfile import shutil from collections import defaultdict import csv import GenFiles import commands import tempfile import pandas as pd def remove_from_zip(zipfname, *filenames): tempdir = tempfile.mkdtemp() try: tempname =...
false
true
f75e60ed666442d18c9dc72ebc0ef8daf1d46911
4,194
py
Python
makehuman-master/makehuman/apps/autoskinblender.py
Radiian-Arts-Main/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
1
2022-03-12T03:52:55.000Z
2022-03-12T03:52:55.000Z
makehuman-master/makehuman/apps/autoskinblender.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
null
null
null
makehuman-master/makehuman/apps/autoskinblender.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
3
2020-05-10T16:11:23.000Z
2021-05-30T02:11:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ **Project Name:** MakeHuman **Product Home Page:** http://www.makehumancommunity.org/ **Github Code Home Page:** https://github.com/makehumancommunity/ **Authors:** Jonas Hauquier **Copyright(c):** MakeHuman Team 2001-2019 **Licensing:** ...
34.661157
126
0.644015
import material import image import image_operations import numpy as np from getpath import getSysDataPath asianColor = np.asarray([0.721, 0.568, 0.431], dtype=np.float32) africanColor = np.asarray([0.207, 0.113, 0.066], dtype=np.float32) caucasianColor = np.asarray([0.843, 0.639, 0.517], dtype=np.float32) c...
true
true
f75e60ff956efb14e8ac3e67f96e3d6f36eddfcc
6,940
py
Python
Benchmarking/sb_benchmark/sb_IoU.py
CipiOrhei/eecvf
759fb2127c8d65a570ba2df536ff8429ccf5bdf2
[ "MIT" ]
1
2021-04-02T15:33:12.000Z
2021-04-02T15:33:12.000Z
Benchmarking/sb_benchmark/sb_IoU.py
CipiOrhei/eecvf
759fb2127c8d65a570ba2df536ff8429ccf5bdf2
[ "MIT" ]
null
null
null
Benchmarking/sb_benchmark/sb_IoU.py
CipiOrhei/eecvf
759fb2127c8d65a570ba2df536ff8429ccf5bdf2
[ "MIT" ]
1
2021-08-14T09:07:22.000Z
2021-08-14T09:07:22.000Z
import os # noinspection PyPackageRequirements import cv2 import numpy as np import json import config_main from Utils.log_handler import log_setup_info_to_console, log_error_to_console, log_benchmark_info_to_console from Benchmarking.Util.image_parsing import find_img_extension def sb_iou(box1, box2) -> float: ...
40.823529
207
0.524207
import os import cv2 import numpy as np import json import config_main from Utils.log_handler import log_setup_info_to_console, log_error_to_console, log_benchmark_info_to_console from Benchmarking.Util.image_parsing import find_img_extension def sb_iou(box1, box2) -> float: x1, y1, x2, y2 = box1[0][0], box1[0]...
true
true
f75e618673247d804b2618ee7f0f2a377972afae
527
py
Python
apps/data/migrations/0061_alter_dataset_dwc_core_type.py
moogoo78/portal20
085d598af0448ad34e22aa55981f7e82a042a893
[ "MIT" ]
7
2020-12-31T13:57:58.000Z
2022-02-07T08:05:15.000Z
apps/data/migrations/0061_alter_dataset_dwc_core_type.py
moogoo78/portal20
085d598af0448ad34e22aa55981f7e82a042a893
[ "MIT" ]
75
2020-03-16T07:18:28.000Z
2022-03-31T09:55:15.000Z
apps/data/migrations/0061_alter_dataset_dwc_core_type.py
moogoo78/portal20
085d598af0448ad34e22aa55981f7e82a042a893
[ "MIT" ]
9
2020-01-06T14:08:51.000Z
2022-01-03T05:19:54.000Z
# Generated by Django 3.2.5 on 2021-09-14 19:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0060_alter_dataset_data_license'), ] operations = [ migrations.AlterField( model_name='dataset', name='dwc_c...
27.736842
178
0.620493
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0060_alter_dataset_data_license'), ] operations = [ migrations.AlterField( model_name='dataset', name='dwc_core_type', field=models.CharField(ch...
true
true
f75e61e721a49d0c30e15c0a026fdc6dbd97fbd5
13,878
py
Python
vgraph/linearmatch.py
mcgml/vgraph
1c96ce80fbfcce2b21f566b528ca787c4affab1e
[ "Apache-2.0" ]
43
2015-05-20T19:14:35.000Z
2022-03-26T19:55:43.000Z
vgraph/linearmatch.py
mcgml/vgraph
1c96ce80fbfcce2b21f566b528ca787c4affab1e
[ "Apache-2.0" ]
9
2015-05-21T12:58:46.000Z
2021-09-16T10:23:49.000Z
vgraph/linearmatch.py
mcgml/vgraph
1c96ce80fbfcce2b21f566b528ca787c4affab1e
[ "Apache-2.0" ]
15
2015-05-20T20:20:29.000Z
2021-09-16T10:27:22.000Z
# Copyright 2015 Kevin B Jacobs # # 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 wr...
31.976959
119
0.619614
import sys from dataclasses import dataclass from itertools import combinations, combinations_with_replacement from collections import defaultdict from typing import List, Set from vgraph.norm import normalize_seq @dataclass(frozen=True) class PathItem: seq: str nodes: List['All...
true
true
f75e642ee2bd605c451da22f7292ebe310f13306
462
py
Python
data/scripts/templates/object/mobile/shared_dressed_noble_naboo_twilek_male_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_noble_naboo_twilek_male_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_noble_naboo_twilek_male_01.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 = Creature() result.template = "object/mobile/shared_dressed_noble_naboo_twilek_male_01.iff" result.attribute_templ...
27.176471
80
0.74026
from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_noble_naboo_twilek_male_01.iff" result.attribute_template_id = 9 result.stfName("npc_name","twilek_base_female") return result
true
true
f75e6458d168c6e5398e43b0652f1d450bb963c4
49,046
py
Python
tests/regressiontests/test_client_regress/models.py
svn2github/django
bcacf4b7f26b9898d21816d8f05cb58f2a3730a3
[ "BSD-3-Clause" ]
2
2020-11-28T20:04:33.000Z
2021-07-12T19:42:45.000Z
tests/regressiontests/test_client_regress/models.py
akaariai/django-old
45b80c420d6655ec5b86bea3b3c17b4adaa61291
[ "BSD-3-Clause" ]
1
2019-02-03T08:41:30.000Z
2019-02-03T08:41:30.000Z
tests/regressiontests/test_client_regress/models.py
akaariai/django-old
45b80c420d6655ec5b86bea3b3c17b4adaa61291
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Regression tests for the Test Client, especially the customized assertions. """ import os from django.conf import settings from django.core.exceptions import SuspiciousOperation from django.core.urlresolvers import reverse from django.template import (TemplateDoesNotExist, TemplateSyntaxErr...
47.663751
180
0.659361
""" Regression tests for the Test Client, especially the customized assertions. """ import os from django.conf import settings from django.core.exceptions import SuspiciousOperation from django.core.urlresolvers import reverse from django.template import (TemplateDoesNotExist, TemplateSyntaxError, Context, Templat...
false
true
f75e66403f965e23c27177176aad232ea028e672
3,973
py
Python
test/functional/wallet_scriptaddress2.py
yody-project/yody
f59f9cb15d2a0f0e842de7ab90ac608877d21b84
[ "MIT" ]
1
2022-01-02T15:28:00.000Z
2022-01-02T15:28:00.000Z
test/functional/wallet_scriptaddress2.py
yody-project/yody
f59f9cb15d2a0f0e842de7ab90ac608877d21b84
[ "MIT" ]
null
null
null
test/functional/wallet_scriptaddress2.py
yody-project/yody
f59f9cb15d2a0f0e842de7ab90ac608877d21b84
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test new Yodycoin multisig prefix functionality. # from test_framework.test_framework import Bitcoin...
38.95098
112
0.649887
from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, connect_nodes, ) class ScriptAddress2Test(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 3 self.setup_clean_chain = True self.extra_args = [['-address...
true
true
f75e66e490819ca8694c2f7ca76e1a9e8e57827b
407
py
Python
scripts/gen_network_configs.py
janev94/DASH-Test
e3ee7d53c905262209d46ad2b510052f74f9489a
[ "MIT" ]
null
null
null
scripts/gen_network_configs.py
janev94/DASH-Test
e3ee7d53c905262209d46ad2b510052f74f9489a
[ "MIT" ]
null
null
null
scripts/gen_network_configs.py
janev94/DASH-Test
e3ee7d53c905262209d46ad2b510052f74f9489a
[ "MIT" ]
null
null
null
import json import os if __name__ == '__main__': s = json.loads('''{ "changes": [ {"time": 0, "bw": 9, "rtt": 70} ] }''') for idx, bw in enumerate(range(14, 131)): path = os.path.join('/', 'vagrant', 'scripts', 'bws', f'network_config_{idx+1}.json') with open(pa...
25.4375
93
0.469287
import json import os if __name__ == '__main__': s = json.loads('''{ "changes": [ {"time": 0, "bw": 9, "rtt": 70} ] }''') for idx, bw in enumerate(range(14, 131)): path = os.path.join('/', 'vagrant', 'scripts', 'bws', f'network_config_{idx+1}.json') with open(pa...
true
true
f75e67ec028d4665defcb50c8cdbcf45fc1b792b
68
py
Python
terminus/__init__.py
briancline/terminus
be9eec78e772b01c32e93866d89e8b6a3d65c965
[ "MIT" ]
null
null
null
terminus/__init__.py
briancline/terminus
be9eec78e772b01c32e93866d89e8b6a3d65c965
[ "MIT" ]
null
null
null
terminus/__init__.py
briancline/terminus
be9eec78e772b01c32e93866d89e8b6a3d65c965
[ "MIT" ]
1
2018-03-27T09:05:45.000Z
2018-03-27T09:05:45.000Z
from terminus.version import version_str __version__ = version_str
17
40
0.852941
from terminus.version import version_str __version__ = version_str
true
true
f75e681300cac4701440024171d6eb1297939808
1,173
py
Python
clients/python/setup.py
zomglings/moonstream
954f6014f782157ff3d708d0697457c4306a6588
[ "Apache-2.0" ]
67
2021-07-22T11:09:30.000Z
2022-03-30T07:38:19.000Z
clients/python/setup.py
zomglings/moonstream
954f6014f782157ff3d708d0697457c4306a6588
[ "Apache-2.0" ]
246
2021-07-19T15:40:59.000Z
2022-03-24T20:30:55.000Z
clients/python/setup.py
zomglings/moonstream
954f6014f782157ff3d708d0697457c4306a6588
[ "Apache-2.0" ]
21
2021-07-25T18:36:05.000Z
2022-03-30T16:30:24.000Z
from setuptools import find_packages, setup from moonstream.version import MOONSTREAM_CLIENT_VERSION long_description = "" with open("README.md") as ifp: long_description = ifp.read() setup( name="moonstream", version=MOONSTREAM_CLIENT_VERSION, packages=find_packages(), package_data={"moonstream"...
30.076923
72
0.629156
from setuptools import find_packages, setup from moonstream.version import MOONSTREAM_CLIENT_VERSION long_description = "" with open("README.md") as ifp: long_description = ifp.read() setup( name="moonstream", version=MOONSTREAM_CLIENT_VERSION, packages=find_packages(), package_data={"moonstream"...
true
true
f75e684997ed998bb609136426eba7604a6d9f60
394
py
Python
python/excel/iterating_over_cell_values.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
python/excel/iterating_over_cell_values.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
python/excel/iterating_over_cell_values.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
from openpyxl import load_workbook def iterating_over_values(path): workbook = load_workbook(filename=path) sheet = workbook.active for value in sheet.iter_rows(min_row=1, max_row=3, min_col=1, max_col=3, values_only=True): print(va...
26.266667
54
0.609137
from openpyxl import load_workbook def iterating_over_values(path): workbook = load_workbook(filename=path) sheet = workbook.active for value in sheet.iter_rows(min_row=1, max_row=3, min_col=1, max_col=3, values_only=True): print(va...
true
true
f75e6885da108c4fbe66c3c814070efeffaa9f10
8,682
py
Python
eridanus/test/test_plugin.py
mithrandi/eridanus
11c80c7024548ce7c41800b077d3d0a738a04875
[ "MIT" ]
null
null
null
eridanus/test/test_plugin.py
mithrandi/eridanus
11c80c7024548ce7c41800b077d3d0a738a04875
[ "MIT" ]
5
2021-03-18T20:19:01.000Z
2022-03-11T23:14:44.000Z
eridanus/test/test_plugin.py
mithrandi/eridanus
11c80c7024548ce7c41800b077d3d0a738a04875
[ "MIT" ]
1
2018-01-10T15:15:15.000Z
2018-01-10T15:15:15.000Z
from twisted.trial import unittest from eridanus import errors from eridanus.ieridanus import (ICommand, IEridanusPluginProvider, IEridanusPlugin, IEridanusBrokenPlugin, IEridanusBrokenPluginProvider) from eridanus.plugin import (safePluginImport, MethodCommand, rest, IncrementalArguments) # Make pyflakes ha...
31.570909
89
0.621055
from twisted.trial import unittest from eridanus import errors from eridanus.ieridanus import (ICommand, IEridanusPluginProvider, IEridanusPlugin, IEridanusBrokenPlugin, IEridanusBrokenPluginProvider) from eridanus.plugin import (safePluginImport, MethodCommand, rest, IncrementalArguments) UselessPlugin = No...
true
true
f75e69d4f06ff9f889edfc52e1411d350c69478f
19,703
py
Python
salt/states/reg.py
vveliev-tc/salt
899ed0046c4d05417edf26e28a30b9969c0e3253
[ "Apache-2.0" ]
null
null
null
salt/states/reg.py
vveliev-tc/salt
899ed0046c4d05417edf26e28a30b9969c0e3253
[ "Apache-2.0" ]
null
null
null
salt/states/reg.py
vveliev-tc/salt
899ed0046c4d05417edf26e28a30b9969c0e3253
[ "Apache-2.0" ]
null
null
null
r""" Manage the Windows registry =========================== Many python developers think of registry keys as if they were python keys in a dictionary which is not the case. The windows registry is broken down into the following components: Hives ----- This is the top level of the registry. They all begin with HKEY....
31.5248
103
0.578135
import logging import salt.utils.stringutils log = logging.getLogger(__name__) def __virtual__(): if "reg.read_value" not in __utils__: return ( False, "reg state module failed to load: missing util function: reg.read_value", ) if "reg.set_value" not in __utils__: ...
true
true
f75e6a222c496719be4ac45213099c77d1eed794
70
py
Python
pyopt/run_tests.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
pyopt/run_tests.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
pyopt/run_tests.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
import nose import sys sys.argv.append("--verbosity=3") nose.main()
10
32
0.714286
import nose import sys sys.argv.append("--verbosity=3") nose.main()
true
true
f75e6a2e31d0c822e59cdd5322f8f3db95417e94
1,294
py
Python
paddlehub/common/stats.py
cclauss/PaddleHub
b155543d00bc5fb3b586e5fe8d97ee999ae71708
[ "Apache-2.0" ]
1
2019-07-03T13:08:39.000Z
2019-07-03T13:08:39.000Z
paddlehub/common/stats.py
binweiwu/PaddleHub
f92d0edd18057044ef248d7f2c42d8f347b62fbf
[ "Apache-2.0" ]
null
null
null
paddlehub/common/stats.py
binweiwu/PaddleHub
f92d0edd18057044ef248d7f2c42d8f347b62fbf
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 # Copyright (c) 2019 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 # # Unless requ...
31.560976
76
0.723338
import os import requests import time from random import randint, seed from paddlehub import version from paddlehub.common.server_config import default_stat_config def get_stat_server(): seed(int(time.time())) stat_env = os.environ.get('HUB_SERVER_STAT_SRV') if stat_env: server_list = stat_env.sp...
true
true
f75e6a97da338b1c17b76ddb195e931eedc600c8
11,405
py
Python
GM2AUTOSAR_MM/Properties/positive/Himesis/HM3ThenClausePart1CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
GM2AUTOSAR_MM/Properties/positive/Himesis/HM3ThenClausePart1CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
GM2AUTOSAR_MM/Properties/positive/Himesis/HM3ThenClausePart1CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternLHS class HM3ThenClausePart1CompleteLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HM3ThenClausePart1CompleteLHS. """ # Flag this instance as compiled no...
47.719665
120
0.530206
from core.himesis import Himesis, HimesisPreConditionPatternLHS class HM3ThenClausePart1CompleteLHS(HimesisPreConditionPatternLHS): def __init__(self): self.is_compiled = True super(HM3ThenClausePart1CompleteLHS, self).__init__(name='HM3ThenClausePart1CompleteLHS', num_nodes=3, e...
true
true
f75e6aaee1669d8d6fe1f8517b8c48358aad80b6
1,548
py
Python
setup.py
jstoxrocky/lifelines
2b457c824a3d9e2a3defa8fcb23da838a03c9100
[ "MIT" ]
null
null
null
setup.py
jstoxrocky/lifelines
2b457c824a3d9e2a3defa8fcb23da838a03c9100
[ "MIT" ]
null
null
null
setup.py
jstoxrocky/lifelines
2b457c824a3d9e2a3defa8fcb23da838a03c9100
[ "MIT" ]
null
null
null
import os import sys from distutils.core import setup # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(os.pat...
29.207547
99
0.595607
import os import sys from distutils.core import setup # README file and 2) it's easier to type in the README file than to put a raw def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() exec(compile(open('lifelines/version.py').read(), 'lifelines/version.py', 'exe...
true
true
f75e6ae5f241f535aaab41d65bc2020d29f7630b
2,445
py
Python
downburst/iso.py
ceph/downburst
c554e82c32bac176d8954095fdee926be4ae3c09
[ "MIT" ]
14
2015-02-08T13:44:32.000Z
2022-02-24T07:46:31.000Z
downburst/iso.py
ceph/downburst
c554e82c32bac176d8954095fdee926be4ae3c09
[ "MIT" ]
8
2015-02-27T21:12:28.000Z
2021-09-29T15:10:50.000Z
downburst/iso.py
ceph/downburst
c554e82c32bac176d8954095fdee926be4ae3c09
[ "MIT" ]
12
2015-07-06T23:48:01.000Z
2021-01-26T10:49:57.000Z
import distro import logging import os import subprocess import tempfile from lxml import etree from . import meta from . import template log = logging.getLogger(__name__) def generate_meta_iso( name, fp, meta_data, user_data, ): def gentemp(prefix): return tempfile.NamedTemporaryFil...
26.290323
74
0.535787
import distro import logging import os import subprocess import tempfile from lxml import etree from . import meta from . import template log = logging.getLogger(__name__) def generate_meta_iso( name, fp, meta_data, user_data, ): def gentemp(prefix): return tempfile.NamedTemporaryFil...
true
true
f75e6af6e30706c209c1021ed3e0fbdd22c0ae88
69,223
py
Python
tensorflow/python/keras/losses.py
Dynmi/tensorflow
74f953df1b3a3e2f32ffdd0065322a0aa9df53e2
[ "Apache-2.0" ]
1
2020-10-21T08:14:38.000Z
2020-10-21T08:14:38.000Z
tensorflow/python/keras/losses.py
Dynmi/tensorflow
74f953df1b3a3e2f32ffdd0065322a0aa9df53e2
[ "Apache-2.0" ]
3
2021-08-25T16:13:38.000Z
2022-02-10T02:04:06.000Z
tensorflow/python/keras/losses.py
Dynmi/tensorflow
74f953df1b3a3e2f32ffdd0065322a0aa9df53e2
[ "Apache-2.0" ]
1
2021-11-07T12:48:44.000Z
2021-11-07T12:48:44.000Z
# Copyright 2015 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...
36.337533
80
0.668044
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import six from tensorflow.python.autograph.core import ag_ctx from tensorflow.python.autograph.impl import api as autograph from tensorflow.python.distribute import distribution_strategy_context f...
true
true
f75e6b6abee948e45d03b170421bc49c467ff446
113
py
Python
exercicio6.py
dgouu/infosatc-lp-avaliativo-02
55a9aa76f3e2f5e44528fe2a6a2a6984eee6e3f6
[ "MIT" ]
null
null
null
exercicio6.py
dgouu/infosatc-lp-avaliativo-02
55a9aa76f3e2f5e44528fe2a6a2a6984eee6e3f6
[ "MIT" ]
null
null
null
exercicio6.py
dgouu/infosatc-lp-avaliativo-02
55a9aa76f3e2f5e44528fe2a6a2a6984eee6e3f6
[ "MIT" ]
null
null
null
meusanjos = ["dgou", "leandro", "bilada"] print("A posição de leandro na lista é: ", meusanjos.index("leandro"))
37.666667
70
0.681416
meusanjos = ["dgou", "leandro", "bilada"] print("A posição de leandro na lista é: ", meusanjos.index("leandro"))
true
true
f75e6bab7d411556e280dc1df95b898b0475aa57
795
py
Python
events/urls.py
aropan/clist
b0eda1c3a7147a3c9300f9b3eadb83c42cdc8bfe
[ "Apache-2.0" ]
166
2019-05-16T23:46:08.000Z
2022-03-31T05:20:23.000Z
events/urls.py
tanvirtareq/clist
7be17dc463e838778ef5dd6c6bc48eb09a8d98dd
[ "Apache-2.0" ]
92
2020-01-18T22:51:53.000Z
2022-03-12T01:23:57.000Z
events/urls.py
tanvirtareq/clist
7be17dc463e838778ef5dd6c6bc48eb09a8d98dd
[ "Apache-2.0" ]
23
2020-02-09T17:38:43.000Z
2021-12-09T14:39:07.000Z
from django.conf.urls import re_path from events import views app_name = 'events' urlpatterns = [ re_path(r'^events/$', views.events, name='events'), re_path(r'^event/(?P<slug>[\w-]+)/$', views.event, name='event'), re_path(r'^event/(?P<slug>[\w-]+)/result/(?P<name>[^/]+)/$', views.result, name='result')...
46.764706
119
0.592453
from django.conf.urls import re_path from events import views app_name = 'events' urlpatterns = [ re_path(r'^events/$', views.events, name='events'), re_path(r'^event/(?P<slug>[\w-]+)/$', views.event, name='event'), re_path(r'^event/(?P<slug>[\w-]+)/result/(?P<name>[^/]+)/$', views.result, name='result')...
true
true
f75e6bf19ac95a5ee8aa9b297ea6659bdfdc2827
20,815
py
Python
tests/components/homekit/test_type_lights.py
RavensburgOP/core
0ea76e848b182ca0ebb0fdb54558f7f733898ad7
[ "Apache-2.0" ]
5
2019-02-24T11:46:18.000Z
2019-05-28T17:37:21.000Z
tests/components/homekit/test_type_lights.py
RavensburgOP/core
0ea76e848b182ca0ebb0fdb54558f7f733898ad7
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
tests/components/homekit/test_type_lights.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
1
2020-03-09T19:15:38.000Z
2020-03-09T19:15:38.000Z
"""Test different accessory types: Lights.""" from pyhap.const import HAP_REPR_AID, HAP_REPR_CHARS, HAP_REPR_IID, HAP_REPR_VALUE import pytest from homeassistant.components.homekit.const import ATTR_VALUE from homeassistant.components.homekit.type_lights import Light from homeassistant.components.light import ( A...
32.574335
88
0.628969
from pyhap.const import HAP_REPR_AID, HAP_REPR_CHARS, HAP_REPR_IID, HAP_REPR_VALUE import pytest from homeassistant.components.homekit.const import ATTR_VALUE from homeassistant.components.homekit.type_lights import Light from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_BRIGHTNESS_PCT, A...
true
true
f75e6c0022a75791b7b0fc0cc580dcde86da9fdd
548
py
Python
src/scripts/orchestrator.py
ai-adams/AVOCADO
4de5fdb47970f9db67191928a08fdb8007a36196
[ "MIT" ]
null
null
null
src/scripts/orchestrator.py
ai-adams/AVOCADO
4de5fdb47970f9db67191928a08fdb8007a36196
[ "MIT" ]
null
null
null
src/scripts/orchestrator.py
ai-adams/AVOCADO
4de5fdb47970f9db67191928a08fdb8007a36196
[ "MIT" ]
null
null
null
def O_get_new_image_path(): from src.scripts.load_image import get_new_image_path new_image_path = get_new_image_path() return new_image_path def O_load_photo(path): from src.scripts.load_image import get_photo photo = get_photo(path) return photo def O_caption_image(image_name): from src....
28.842105
57
0.762774
def O_get_new_image_path(): from src.scripts.load_image import get_new_image_path new_image_path = get_new_image_path() return new_image_path def O_load_photo(path): from src.scripts.load_image import get_photo photo = get_photo(path) return photo def O_caption_image(image_name): from src....
true
true
f75e6d0ab74ace3cb567a11bb268a8b7bf57c8cd
689
py
Python
sqs_workers/__init__.py
Doist/sqs-workers
f2f7d70beffd56030cadf9511f7b898a71f5a451
[ "MIT" ]
21
2018-10-06T21:51:51.000Z
2021-04-30T19:22:38.000Z
sqs_workers/__init__.py
Doist/sqs-workers
f2f7d70beffd56030cadf9511f7b898a71f5a451
[ "MIT" ]
15
2019-02-27T13:19:34.000Z
2022-03-16T17:40:05.000Z
sqs_workers/__init__.py
Doist/sqs-workers
f2f7d70beffd56030cadf9511f7b898a71f5a451
[ "MIT" ]
4
2019-02-27T12:21:26.000Z
2021-09-20T05:04:09.000Z
from sqs_workers.backoff_policies import ( DEFAULT_BACKOFF, IMMEDIATE_RETURN, ConstantBackoff, ExponentialBackoff, ) from sqs_workers.exceptions import SQSError from sqs_workers.memory_sqs import MemorySession from sqs_workers.queue import JobQueue, RawQueue from sqs_workers.sqs_env import SQSEnv from s...
22.225806
48
0.732946
from sqs_workers.backoff_policies import ( DEFAULT_BACKOFF, IMMEDIATE_RETURN, ConstantBackoff, ExponentialBackoff, ) from sqs_workers.exceptions import SQSError from sqs_workers.memory_sqs import MemorySession from sqs_workers.queue import JobQueue, RawQueue from sqs_workers.sqs_env import SQSEnv from s...
true
true
f75e6d94a6afd7aa7efbc9aebf671fcae8605762
35
py
Python
assets/check.py
lennartschoch/newrelic-deployment-resource
84c34a1be37c452119050df6604f6cfdd7b4eca4
[ "MIT" ]
3
2021-01-19T14:50:53.000Z
2022-01-01T08:36:16.000Z
assets/check.py
lennartschoch/newrelic-deployment-resource
84c34a1be37c452119050df6604f6cfdd7b4eca4
[ "MIT" ]
1
2020-11-30T17:25:53.000Z
2020-12-09T11:36:22.000Z
assets/check.py
lennartschoch/newrelic-deployment-resource
84c34a1be37c452119050df6604f6cfdd7b4eca4
[ "MIT" ]
1
2020-11-30T16:47:15.000Z
2020-11-30T16:47:15.000Z
#!/usr/bin/env python3 print('[]')
11.666667
22
0.6
print('[]')
true
true
f75e6ea5d03f06c3283815fd5f462a76c7e5645e
5,450
py
Python
tests/Exscript/LoggerTest.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
226
2015-01-20T19:59:06.000Z
2022-01-02T11:13:01.000Z
tests/Exscript/LoggerTest.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
155
2015-01-02T07:56:27.000Z
2022-01-09T20:56:19.000Z
tests/Exscript/LoggerTest.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
114
2015-01-03T11:48:17.000Z
2022-01-26T02:50:43.000Z
from builtins import next from builtins import str import sys import unittest import re import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) import gc from itertools import islice from tempfile import mkdtemp from shutil import rmtree from Exscript.logger import Log, Logger from LogTest im...
31.871345
76
0.649725
from builtins import next from builtins import str import sys import unittest import re import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) import gc from itertools import islice from tempfile import mkdtemp from shutil import rmtree from Exscript.logger import Log, Logger from LogTest im...
true
true
f75e6ed6fe0aee39eff2fa6a21ecd5cd2cc012c3
642
py
Python
api/migrations/0005_club_email_alter_verificationcode_code.py
szyminson/tournament-manager-backend
40c2db19f40da54d094c6f7b99539e765033c6f5
[ "MIT" ]
null
null
null
api/migrations/0005_club_email_alter_verificationcode_code.py
szyminson/tournament-manager-backend
40c2db19f40da54d094c6f7b99539e765033c6f5
[ "MIT" ]
6
2022-03-20T17:39:59.000Z
2022-03-30T11:56:51.000Z
api/migrations/0005_club_email_alter_verificationcode_code.py
szyminson/tournament-manager-backend
40c2db19f40da54d094c6f7b99539e765033c6f5
[ "MIT" ]
null
null
null
# Generated by Django 4.0.4 on 2022-05-15 13:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0004_rename_club_ceo_club_ceo_rename_club_name_club_name'), ] operations = [ migrations.AddField( model_name='club', ...
25.68
82
0.604361
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0004_rename_club_ceo_club_ceo_rename_club_name_club_name'), ] operations = [ migrations.AddField( model_name='club', name='email', field=models.C...
true
true
f75e6effdd6b59f740e109ba23b9b1bc2f09cc77
23,557
py
Python
enablesecurityhub.py
mi3814/aws-securityhub-multiaccount-scripts
7974cd90b566e27307f18712db3755d054c6912c
[ "MIT-0" ]
null
null
null
enablesecurityhub.py
mi3814/aws-securityhub-multiaccount-scripts
7974cd90b566e27307f18712db3755d054c6912c
[ "MIT-0" ]
null
null
null
enablesecurityhub.py
mi3814/aws-securityhub-multiaccount-scripts
7974cd90b566e27307f18712db3755d054c6912c
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 ...
51.21087
268
0.572102
import boto3 import sys import time import argparse import re import json import random import string import utils from collections import OrderedDict from botocore.exceptions import ClientError from six.moves import input as raw_input def assume_role(aws_account_number, role_name): sts_client = boto3.client...
true
true
f75e6f770dec5247ba96a65593f78550e2c51112
553
py
Python
logs/dump_log.py
trawick/stacktraces.py
405f064f09cf8ecb224540e1f10584f236250196
[ "Apache-2.0" ]
7
2016-02-27T18:12:27.000Z
2022-02-01T13:19:56.000Z
logs/dump_log.py
trawick/stacktraces.py
405f064f09cf8ecb224540e1f10584f236250196
[ "Apache-2.0" ]
null
null
null
logs/dump_log.py
trawick/stacktraces.py
405f064f09cf8ecb224540e1f10584f236250196
[ "Apache-2.0" ]
3
2016-07-14T19:32:00.000Z
2020-09-07T23:01:03.000Z
import json import io import sys from six import text_type import debugger import httpd import process_model import thread_analyzer def main(): p = process_model.Process(None) dbg = debugger.Debugger(debuglog=io.open(sys.argv[1], encoding='utf8').readlines(), proc=p) dbg.parse() thread_analyzer.clea...
22.12
95
0.721519
import json import io import sys from six import text_type import debugger import httpd import process_model import thread_analyzer def main(): p = process_model.Process(None) dbg = debugger.Debugger(debuglog=io.open(sys.argv[1], encoding='utf8').readlines(), proc=p) dbg.parse() thread_analyzer.clea...
true
true
f75e6fe454277b401fb1367e083b2bb1fd04f089
2,184
py
Python
test.py
YongfengGao/CNN-T-DB
11c67eb94b6db36217a837fedd27b393532dd09b
[ "MIT" ]
null
null
null
test.py
YongfengGao/CNN-T-DB
11c67eb94b6db36217a837fedd27b393532dd09b
[ "MIT" ]
null
null
null
test.py
YongfengGao/CNN-T-DB
11c67eb94b6db36217a837fedd27b393532dd09b
[ "MIT" ]
null
null
null
import os,glob import sys import argparse import numpy as np from scipy.io import savemat,loadmat import torch from torch.autograd import Variable import struct from shutil import rmtree from matplotlib import pyplot as plt from numpy import * def testing(): recon = np.zeros((512,512)) ...
30.760563
95
0.453297
import os,glob import sys import argparse import numpy as np from scipy.io import savemat,loadmat import torch from torch.autograd import Variable import struct from shutil import rmtree from matplotlib import pyplot as plt from numpy import * def testing(): recon = np.zeros((512,512)) ...
true
true