hexsha
stringlengths
40
40
size
int64
4
996k
ext
stringclasses
8 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
4
996k
avg_line_length
float64
1.33
58.2k
max_line_length
int64
2
323k
alphanum_fraction
float64
0
0.97
content_no_comment
stringlengths
0
946k
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f724bf3443b15e4d6d7686f56cce4260cbc558a0
460
py
Python
fma/analyze.py
adipasquale/frontmatter-analysis
068b8870ee35569a81600f637569ad589087e2a8
[ "MIT" ]
null
null
null
fma/analyze.py
adipasquale/frontmatter-analysis
068b8870ee35569a81600f637569ad589087e2a8
[ "MIT" ]
null
null
null
fma/analyze.py
adipasquale/frontmatter-analysis
068b8870ee35569a81600f637569ad589087e2a8
[ "MIT" ]
null
null
null
import pandas as pd import os from pathlib import Path import frontmatter import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("path", help="path containing .md files") args = parser.parse_args() data = [frontmatter.load(path).metadata for path in Path(args...
28.75
85
0.702174
import pandas as pd import os from pathlib import Path import frontmatter import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("path", help="path containing .md files") args = parser.parse_args() data = [frontmatter.load(path).metadata for path in Path(args...
true
true
f724bf5a11fa8d7fe68f54b4735fe3d897c56f22
499
py
Python
python2/main.py
miptleha/bubble-sort
bae2212e80333de343e85c72c0ceef17136e88d5
[ "MIT" ]
null
null
null
python2/main.py
miptleha/bubble-sort
bae2212e80333de343e85c72c0ceef17136e88d5
[ "MIT" ]
null
null
null
python2/main.py
miptleha/bubble-sort
bae2212e80333de343e85c72c0ceef17136e88d5
[ "MIT" ]
null
null
null
import time def getMaxSubSum(a): s = 0 s1 = s for i in range(0, n): s += a[i] s1 = max(s1, s) if (s < 0): s = 0; return s1 n = 10000 a = [] for i in range(0, n): a.append(pow(-1, i) * i) #for i in range(0, n): # print(a[i], " ") #print(); start = time.pe...
17.206897
46
0.478958
import time def getMaxSubSum(a): s = 0 s1 = s for i in range(0, n): s += a[i] s1 = max(s1, s) if (s < 0): s = 0; return s1 n = 10000 a = [] for i in range(0, n): a.append(pow(-1, i) * i) start = time.perf_counter() res = 0; for i in range(0, n): a[0]...
true
true
f724bfa6d406a2deee8665a8e2f1df9aceed69c7
15,613
py
Python
fhirclient/r4models/chargeitemdefinition.py
cspears-mitre/CapStatement
2390566ed75d420e0615e3a0aacb77e8c030fdcc
[ "Apache-2.0" ]
1
2021-12-24T11:14:38.000Z
2021-12-24T11:14:38.000Z
fhirclient/r4models/chargeitemdefinition.py
cspears-mitre/CapStatement
2390566ed75d420e0615e3a0aacb77e8c030fdcc
[ "Apache-2.0" ]
null
null
null
fhirclient/r4models/chargeitemdefinition.py
cspears-mitre/CapStatement
2390566ed75d420e0615e3a0aacb77e8c030fdcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 3.6.0-bd605d07 (http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition) on 2018-12-20. # 2018, SMART Health IT. from . import domainresource class ChargeItemDefinition(domainresource.DomainResource): """ Definition of properties and ru...
38.173594
117
0.609172
from . import domainresource class ChargeItemDefinition(domainresource.DomainResource): resource_type = "ChargeItemDefinition" def __init__(self, jsondict=None, strict=True): self.applicability = None self.approvalDate = None ...
true
true
f724bfd76f144d7fb329df62913b3c4cd7da8450
1,114
py
Python
app.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
1
2021-12-03T16:10:27.000Z
2021-12-03T16:10:27.000Z
app.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
null
null
null
app.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
5
2021-11-15T23:30:05.000Z
2021-11-30T13:10:59.000Z
# Crear una funcion que permita ingresar al usuario # Numero enteros... y strings... # 1- print -> imprime la lista que su fue cargando hasta el momento... # 2- append a -> siendo a numero entero # 3- remove b -> siendo b numero entero # 4- sort # 5- reverse # 6- insert c d -> siendo ambos numeros enteros c le indice y...
30.108108
72
0.633752
isRunning = True myList = [] while isRunning: userInput = input("Ingrese comando: ") command = userInput.split() if command[0] == "exit": isRunning = False elif command[0] == "append": argumentos = command[1] if argumentos.isdigit(): myList.append...
true
true
f724c14a74f53741ea1f5af11f5d2c8219bed97c
2,073
py
Python
contrib/devtools/check-doc.py
deyoonoo/bendos
5e161bda7006ccc78233415ac3881fde523a3fe6
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
deyoonoo/bendos
5e161bda7006ccc78233415ac3881fde523a3fe6
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
deyoonoo/bendos
5e161bda7006ccc78233415ac3881fde523a3fe6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author:...
43.1875
298
0.687892
from subprocess import check_output import re import sys FOLDER_GREP = 'src' FOLDER_TEST = 'src/test/' CMD_ROOT_DIR = '`git rev-parse --show-toplevel`/{}'.format(FOLDER_GREP) CMD_GREP_ARGS = r"egrep -r -I '(map(Multi)?Args(\.count\(|\[)|Get(Bool)?Arg\()\"\-[^\"]+?\"' {} | grep -v '{}'".format(CMD_ROOT_DIR, FOLDE...
true
true
f724c1f56a74845c221aa7a44ad661b8138463aa
3,255
py
Python
pkg/core/core.py
GarrettHaley/ida-cfp
b1fdef053c71b4cb6508291990fc01d95ad4895e
[ "MIT" ]
null
null
null
pkg/core/core.py
GarrettHaley/ida-cfp
b1fdef053c71b4cb6508291990fc01d95ad4895e
[ "MIT" ]
null
null
null
pkg/core/core.py
GarrettHaley/ida-cfp
b1fdef053c71b4cb6508291990fc01d95ad4895e
[ "MIT" ]
1
2020-05-14T20:04:31.000Z
2020-05-14T20:04:31.000Z
""" Defines `Core`. Instantiates the module-level logger with the appropriate naming convention. """ import logging from abc import ABC from interface.interface import Interface from astparser.astparser import AstParser from record.record import Record from exception.exception import NoFilesSpecifiedErr...
32.878788
73
0.651306
import logging from abc import ABC from interface.interface import Interface from astparser.astparser import AstParser from record.record import Record from exception.exception import NoFilesSpecifiedError LOGGER = logging.getLogger(__name__) class Core(ABC): def __init__(self) -> None: ...
true
true
f724c21e1e6a61b8d8f476e230c0c8957dd47917
919
py
Python
utillity/apicheck.py
dominik-air/lol-afk-buddy
b9e76336803922bd5f60dac33ec34f471eea3422
[ "MIT" ]
1
2021-10-11T23:02:19.000Z
2021-10-11T23:02:19.000Z
utillity/apicheck.py
dominik-air/lol-afk-buddy
b9e76336803922bd5f60dac33ec34f471eea3422
[ "MIT" ]
2
2022-02-04T20:32:18.000Z
2022-02-04T20:38:49.000Z
utillity/apicheck.py
dominik-air/lol-afk-buddy
b9e76336803922bd5f60dac33ec34f471eea3422
[ "MIT" ]
1
2022-02-05T15:12:15.000Z
2022-02-05T15:12:15.000Z
from lcu_driver import Connector import json connector = Connector() @connector.ready async def connect(connection): print("LCU API is ready to be used.") # check if the user is already logged into his account summoner = await connection.request("get", "/lol-summoner/v1/current-summoner") if summoner...
31.689655
90
0.638738
from lcu_driver import Connector import json connector = Connector() @connector.ready async def connect(connection): print("LCU API is ready to be used.") summoner = await connection.request("get", "/lol-summoner/v1/current-summoner") if summoner.status != 200: print( "Please log...
true
true
f724c2d13ac7970d0010056bcfbce749495e3f07
4,414
py
Python
pytorchvideo/models/memory_bank.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
2,391
2021-04-13T18:10:18.000Z
2022-03-31T15:07:09.000Z
pytorchvideo/models/memory_bank.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
156
2021-04-13T18:51:49.000Z
2022-03-31T08:05:50.000Z
pytorchvideo/models/memory_bank.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
231
2021-04-14T05:04:55.000Z
2022-03-22T09:35:46.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import math from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from pytorchvideo.layers.utils import set_attributes class MemoryBank(nn.Module): """ Performs Non-Parametric Instance Discrimina...
38.719298
88
0.599909
import math from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from pytorchvideo.layers.utils import set_attributes class MemoryBank(nn.Module): def __init__( self, backbone: nn.Module, mlp: Optional[nn.Module] = None, neg_size: int =...
true
true
f724c36991439fd46c3b0dcb954ba15f7db2cfd6
2,255
py
Python
workbook/convert.py
hantongliu/BETTER-hacktron
37a919dd225970649cd9e7a58c74e2d8f0cca88c
[ "Apache-2.0" ]
null
null
null
workbook/convert.py
hantongliu/BETTER-hacktron
37a919dd225970649cd9e7a58c74e2d8f0cca88c
[ "Apache-2.0" ]
null
null
null
workbook/convert.py
hantongliu/BETTER-hacktron
37a919dd225970649cd9e7a58c74e2d8f0cca88c
[ "Apache-2.0" ]
1
2020-10-15T13:57:13.000Z
2020-10-15T13:57:13.000Z
import json prefix = "http://slipo.eu/id/poi" rdftype = "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>" poi = "<http://slipo.eu/def#POI>" category = "<http://slipo.eu/def#category>" termPrefix = "http://slipo.eu/id/term" termValue = "<http://slipo.eu/def#termValue>" rdf = "" i = 0 hasGeometry = "<http://www.opengi...
35.793651
124
0.531264
import json prefix = "http://slipo.eu/id/poi" rdftype = "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>" poi = "<http://slipo.eu/def#POI>" category = "<http://slipo.eu/def#category>" termPrefix = "http://slipo.eu/id/term" termValue = "<http://slipo.eu/def#termValue>" rdf = "" i = 0 hasGeometry = "<http://www.opengi...
true
true
f724c39610fa99418467816bbb09a2a24a283c11
776
py
Python
alpyro_msgs/tf2_msgs/tf2error.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
1
2020-12-13T13:07:10.000Z
2020-12-13T13:07:10.000Z
alpyro_msgs/tf2_msgs/tf2error.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
alpyro_msgs/tf2_msgs/tf2error.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
from typing import Final from alpyro_msgs import RosMessage, string, uint8 class TF2Error(RosMessage): __msg_typ__ = "tf2_msgs/TF2Error" __msg_def__ = "dWludDggTk9fRVJST1I9MAp1aW50OCBMT09LVVBfRVJST1I9MQp1aW50OCBDT05ORUNUSVZJVFlfRVJST1I9Mgp1aW50OCBFWFRSQVBPTEFUSU9OX0VSUk9SPTMKdWludDggSU5WQUxJRF9BUkdVTUVOVF9FUlJPUj...
40.842105
290
0.837629
from typing import Final from alpyro_msgs import RosMessage, string, uint8 class TF2Error(RosMessage): __msg_typ__ = "tf2_msgs/TF2Error" __msg_def__ = "dWludDggTk9fRVJST1I9MAp1aW50OCBMT09LVVBfRVJST1I9MQp1aW50OCBDT05ORUNUSVZJVFlfRVJST1I9Mgp1aW50OCBFWFRSQVBPTEFUSU9OX0VSUk9SPTMKdWludDggSU5WQUxJRF9BUkdVTUVOVF9FUlJPUj...
true
true
f724c467f82e4312c2a73d80e60f4b58409440e2
4,977
py
Python
tests/contrib/operators/test_hive_to_dynamodb_operator.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
3
2019-03-28T05:59:39.000Z
2019-10-03T22:05:25.000Z
tests/contrib/operators/test_hive_to_dynamodb_operator.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
7
2019-03-27T07:58:14.000Z
2020-02-12T17:42:33.000Z
tests/contrib/operators/test_hive_to_dynamodb_operator.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
34.089041
103
0.625477
import json import unittest from unittest import mock import datetime import pandas as pd from airflow import DAG from airflow.contrib.hooks.aws_dynamodb_hook import AwsDynamoDBHook import airflow.contrib.operators.hive_to_dynamodb DEFAULT_DATE = datetime.datetime(2015, 1, 1) DEFAULT_DATE_ISO = ...
true
true
f724c73e2a3a025bfe20a3a8f316a5cc999fcf47
1,013
py
Python
dashboard/models.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
dashboard/models.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
dashboard/models.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
from django.db import models from login.models import User #add this from django.dispatch import receiver #add this from django.db.models.signals import post_save from datetime import datetime # SOURCE: https://www.ordinarycoders.com/django-custom-user-profile class Profile(models.Model): user = models.OneToOne...
38.961538
87
0.740375
from django.db import models from login.models import User from django.dispatch import receiver from django.db.models.signals import post_save from datetime import datetime class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) image = models.ImageField(default = 'undraw...
true
true
f724c7566d86613c348af51cc3a34cdf7fc5d540
97,191
py
Python
snmp/tests/test_profiles.py
onurdialpad/integrations-core
e718b52d5878b20ff161a3ee6f24e5e845102d91
[ "BSD-3-Clause" ]
null
null
null
snmp/tests/test_profiles.py
onurdialpad/integrations-core
e718b52d5878b20ff161a3ee6f24e5e845102d91
[ "BSD-3-Clause" ]
null
null
null
snmp/tests/test_profiles.py
onurdialpad/integrations-core
e718b52d5878b20ff161a3ee6f24e5e845102d91
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import logging import pytest from datadog_checks.base import ConfigurationError from datadog_checks.dev.utils import get_metadata_metrics from datadog_checks.snmp import SnmpCheck from datadog_checks.snmp.util...
40.546934
120
0.668066
import logging import pytest from datadog_checks.base import ConfigurationError from datadog_checks.dev.utils import get_metadata_metrics from datadog_checks.snmp import SnmpCheck from datadog_checks.snmp.utils import ( _get_profile_name, _is_abstract_profile, _iter_default_profile_file_paths, get_...
true
true
f724c766689f3310fcf1ff1658220beb097c094a
30,199
py
Python
Ingredient_Extractor/with_unknown_words_concideration/with_various_accuracies_on_first_layer/mean_values_1.py
ziko1305/Hidden-Markov-Based-Mathematical-Model
0ad906e6c4f99ad91d4047aed78df49399447633
[ "MIT" ]
null
null
null
Ingredient_Extractor/with_unknown_words_concideration/with_various_accuracies_on_first_layer/mean_values_1.py
ziko1305/Hidden-Markov-Based-Mathematical-Model
0ad906e6c4f99ad91d4047aed78df49399447633
[ "MIT" ]
null
null
null
Ingredient_Extractor/with_unknown_words_concideration/with_various_accuracies_on_first_layer/mean_values_1.py
ziko1305/Hidden-Markov-Based-Mathematical-Model
0ad906e6c4f99ad91d4047aed78df49399447633
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 20 09:49:40 2020 @author: Mehdi """ import numpy as np a1=np.nanmean([table_11.loc['A'].accuracy,table_12.loc['A'].accuracy,table_13.loc['A'].accuracy,table_14.loc['A'].accuracy, table_15.loc['A'].accuracy,table_16.loc['A'].accuracy,table_17.loc['A'...
61.008081
130
0.594324
import numpy as np a1=np.nanmean([table_11.loc['A'].accuracy,table_12.loc['A'].accuracy,table_13.loc['A'].accuracy,table_14.loc['A'].accuracy, table_15.loc['A'].accuracy,table_16.loc['A'].accuracy,table_17.loc['A'].accuracy,table_18.loc['A'].accuracy, table_19.loc['A'].accuracy,table_110.l...
true
true
f724c79b6742776adde045c80e5e517302744145
2,786
py
Python
scripts/dct/data/GpioData.py
ABM-Community-Ports/droidboot_device_planet-cosmocom
4e157f7f3def69cc47e2c5c8fec5346feaea2a8c
[ "MIT" ]
10
2020-07-17T14:51:36.000Z
2022-03-12T03:35:42.000Z
scripts/dct/data/GpioData.py
ABM-Community-Ports/droidboot_device_planet-cosmocom
4e157f7f3def69cc47e2c5c8fec5346feaea2a8c
[ "MIT" ]
6
2020-07-23T19:33:25.000Z
2021-02-23T18:21:59.000Z
scripts/dct/data/GpioData.py
ABM-Community-Ports/droidboot_device_planet-cosmocom
4e157f7f3def69cc47e2c5c8fec5346feaea2a8c
[ "MIT" ]
4
2020-11-12T03:07:39.000Z
2022-03-23T19:30:20.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- class GpioData: _count = 0 _modNum = 8 _specMap = {} _freqMap = {} _mapList = [] _modeMap = {} _smtMap = {} _map_table = {} def __init__(self): self.__defMode = 0 self.__eintMode = False self.__modeVec = ['0', '0', ...
21.106061
65
0.585068
class GpioData: _count = 0 _modNum = 8 _specMap = {} _freqMap = {} _mapList = [] _modeMap = {} _smtMap = {} _map_table = {} def __init__(self): self.__defMode = 0 self.__eintMode = False self.__modeVec = ['0', '0', '0', '0', '0', '0', '0', '0'] sel...
true
true
f724c7bf893a319eb8f171129f7bf5a55e44dd61
837
py
Python
test/fpga/spi_video_ram_test/spi_video_ram_test.py
mbalestrini/hack_soc
157428ee6856a9e4cee5953b8b3c144b4f57f5ee
[ "Apache-2.0" ]
1
2021-12-18T18:31:53.000Z
2021-12-18T18:31:53.000Z
test/fpga/spi_video_ram_test/spi_video_ram_test.py
mbalestrini/hack_soc
157428ee6856a9e4cee5953b8b3c144b4f57f5ee
[ "Apache-2.0" ]
null
null
null
test/fpga/spi_video_ram_test/spi_video_ram_test.py
mbalestrini/hack_soc
157428ee6856a9e4cee5953b8b3c144b4f57f5ee
[ "Apache-2.0" ]
null
null
null
import cocotb from cocotb.clock import Clock from cocotb.triggers import RisingEdge, FallingEdge, ClockCycles import random async def reset(dut): dut.RESET_N <= 0 await ClockCycles(dut.EXTERNAL_CLK, 20) dut.RESET_N <= 1 await ClockCycles(dut.EXTERNAL_CLK, 1) @cocotb.test() async def spi_v...
19.465116
64
0.659498
import cocotb from cocotb.clock import Clock from cocotb.triggers import RisingEdge, FallingEdge, ClockCycles import random async def reset(dut): dut.RESET_N <= 0 await ClockCycles(dut.EXTERNAL_CLK, 20) dut.RESET_N <= 1 await ClockCycles(dut.EXTERNAL_CLK, 1) @cocotb.test() async def spi_v...
true
true
f724c85914703d848de5492a26e8b70312f96884
1,725
py
Python
notest/ext/generator_mysql.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
3
2019-05-10T09:36:07.000Z
2021-04-16T23:40:46.000Z
notest/ext/generator_mysql.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
null
null
null
notest/ext/generator_mysql.py
GodQ/notest
530d91782e8ed06493a1313facbed86e06662daf
[ "Apache-2.0" ]
1
2019-05-10T09:43:48.000Z
2019-05-10T09:43:48.000Z
import sys import logging import json logger = logging.Logger("mysql_generator") from notest.lib.mysql_lib import MysqlClient from notest.lib.utils import templated_var from notest import generators ''' - generators: - task_id: {type: 'number_sequence', start: 10} - task_name: type: 'm...
31.363636
80
0.607536
import sys import logging import json logger = logging.Logger("mysql_generator") from notest.lib.mysql_lib import MysqlClient from notest.lib.utils import templated_var from notest import generators def parse_mysql_query_generator(config, variable_binds): mysql_config = config.get('config') sql = config....
true
true
f724c9711779d4f88a28880eec79b4a0e04ab006
907
py
Python
src/coinc/exceptions.py
kimklai/Coinc
dbce0d257d90104bd012996c18884a68e01375a9
[ "MIT" ]
15
2020-07-11T23:30:23.000Z
2022-03-25T08:10:26.000Z
src/coinc/exceptions.py
kimklai/Coinc
dbce0d257d90104bd012996c18884a68e01375a9
[ "MIT" ]
10
2020-06-26T18:20:22.000Z
2022-03-31T02:55:29.000Z
src/coinc/exceptions.py
kimklai/Coinc
dbce0d257d90104bd012996c18884a68e01375a9
[ "MIT" ]
2
2020-09-10T10:51:01.000Z
2021-04-11T09:08:48.000Z
# -*- coding: utf-8 -*- """Exceptions used in this module""" class CoincError(Exception): """Base Class used to declare other errors for Coinc Extends: Exception """ pass class ConfigError(CoincError): """Raised when there are invalid value filled in Configuration Sheet Extends: ...
15.912281
72
0.63065
class CoincError(Exception): pass class ConfigError(CoincError): pass class QueryError(CoincError): pass class AppIDError(CoincError): pass class ApiError(CoincError): pass class UnknownPythonError(CoincError): pass
true
true
f724c9cbe59430da0dd2210d4efb6ddff77348cb
9,522
py
Python
tessia/server/db/alembic/versions/4f32ee5b2d29_0_0_3_remove_os_from_template_add_.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
5
2020-06-04T10:20:33.000Z
2020-10-26T15:09:19.000Z
tessia/server/db/alembic/versions/4f32ee5b2d29_0_0_3_remove_os_from_template_add_.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
null
null
null
tessia/server/db/alembic/versions/4f32ee5b2d29_0_0_3_remove_os_from_template_add_.py
tessia-project/tessia
b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
40.347458
146
0.664251
revision = '4f32ee5b2d29' down_revision = '14e7934c17c8' branch_labels = None depends_on = None from alembic import op from sqlalchemy import Column from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm import relationship, sessio...
true
true
f724c9e936f9b464bc9ef938bd84202c5c01e1e8
6,935
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.858108
94
0.839366
from ._operations import ApplicationGatewaysOperations from ._operations import ApplicationSecurityGroupsOperations from ._operations import AvailableDelegationsOperations from ._operations import AvailableResourceGroupDelegationsOperations from ._operations import AzureFirewallsOperations from ._operations imp...
true
true
f724cac7525d981babd6c466078597e54db40a89
1,080
py
Python
step2_run_perl_RT_fdda_reformat_obsnud.py
M2LabOrg/WRF_little_r
8f46e733387db4c62f39426a03b6a03b3b406b0e
[ "Apache-2.0" ]
1
2021-09-14T06:41:02.000Z
2021-09-14T06:41:02.000Z
step2_run_perl_RT_fdda_reformat_obsnud.py
M2LabOrg/WRF_little_r
8f46e733387db4c62f39426a03b6a03b3b406b0e
[ "Apache-2.0" ]
null
null
null
step2_run_perl_RT_fdda_reformat_obsnud.py
M2LabOrg/WRF_little_r
8f46e733387db4c62f39426a03b6a03b3b406b0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This script creates WRF ready files using the little_r formatted files. They are part of the input files needed for observation nudging. Note that: - You need to step1_run_time_series_converter.py first - Here we convert to the format needed by WRF - You do that by running: $ perl RT_fd...
28.421053
82
0.746296
import os import glob for filepath in glob.iglob('OUTPUT_STEP1/*'): print(filepath) filename = os.path.basename(filepath) os.system(f"perl RT_fdda_reformat_obsnud.pl {filepath}") os.system("mv OUTPUT_STEP1/*.obsnud OUTPUT_STEP2/") os.system("rm OUTPUT_STEP1/*.tmp")
true
true
f724cad0080defcb0f50376906f3de9ab0cedd9e
440
py
Python
invenio_i18n/version.py
mvidalgarcia/invenio-i18n
123b3db1538529ebb5eff165802d387d3337c7d1
[ "MIT" ]
null
null
null
invenio_i18n/version.py
mvidalgarcia/invenio-i18n
123b3db1538529ebb5eff165802d387d3337c7d1
[ "MIT" ]
null
null
null
invenio_i18n/version.py
mvidalgarcia/invenio-i18n
123b3db1538529ebb5eff165802d387d3337c7d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2020 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Version information for Invenio-I18N. This file is imported by ``invenio_i18n.__i...
24.444444
72
0.722727
from __future__ import absolute_import, print_function __version__ = '1.2.0'
true
true
f724cb2af35070c9347e3228b9791a0c3e03873f
13,189
py
Python
test/functional/test_framework/wallet.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
459
2015-09-25T22:46:28.000Z
2022-02-27T18:01:48.000Z
test/functional/test_framework/wallet.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
472
2015-09-17T09:42:03.000Z
2022-03-29T05:29:04.000Z
test/functional/test_framework/wallet.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
209
2015-10-04T00:49:49.000Z
2022-03-24T11:05:09.000Z
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """A limited-functionality wallet, which may replace a real wallet in tests""" from copy import deepcopy ...
45.323024
140
0.656759
from copy import deepcopy from decimal import Decimal from enum import Enum from random import choice from typing import Optional from test_framework.address import create_deterministic_address_bcrt1_p2tr_op_true from test_framework.descriptors import descsum_create from test_framework.key import ECKey from test_f...
true
true
f724cb595d2162e3e332ee66f877f324cfe44a48
16,524
py
Python
modules/routes/user/forms.py
manu-p-1/meet
5e6865a9b5035e324ab0b7cf5a9a71383dfcac9d
[ "MIT" ]
3
2020-08-27T20:15:52.000Z
2022-02-19T12:05:11.000Z
modules/routes/user/forms.py
manu-p-1/meet
5e6865a9b5035e324ab0b7cf5a9a71383dfcac9d
[ "MIT" ]
null
null
null
modules/routes/user/forms.py
manu-p-1/meet
5e6865a9b5035e324ab0b7cf5a9a71383dfcac9d
[ "MIT" ]
2
2020-09-26T00:37:46.000Z
2021-09-23T03:45:00.000Z
import sys from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, TextAreaField, SelectField, BooleanField, DecimalField, HiddenField, \ RadioField, FieldList from wtforms.validators import InputRequired, NumberRange, Length, AnyOf from wtforms.widgets.html5 import NumberInput from modules...
42.26087
118
0.489893
import sys from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, TextAreaField, SelectField, BooleanField, DecimalField, HiddenField, \ RadioField, FieldList from wtforms.validators import InputRequired, NumberRange, Length, AnyOf from wtforms.widgets.html5 import NumberInput from modules...
true
true
f724cdce03e831ba60b697c99d9b9995f15edd45
18,132
py
Python
cltk/corpus/utils/importer.py
Nada1996/cltk
594f6aecff64c449a637ed05cd2c4655a606ba2d
[ "MIT" ]
null
null
null
cltk/corpus/utils/importer.py
Nada1996/cltk
594f6aecff64c449a637ed05cd2c4655a606ba2d
[ "MIT" ]
null
null
null
cltk/corpus/utils/importer.py
Nada1996/cltk
594f6aecff64c449a637ed05cd2c4655a606ba2d
[ "MIT" ]
null
null
null
"""Import CLTK corpora. TODO: Fix so ``import_corpora()`` can take relative path. TODO: Add https://github.com/cltk/pos_latin """ from cltk.corpus.arabic.corpora import ARABIC_CORPORA from cltk.corpus.chinese.corpora import CHINESE_CORPORA from cltk.corpus.coptic.corpora import COPTIC_CORPORA from cltk.corpus.greek.cor...
46.020305
120
0.596073
from cltk.corpus.arabic.corpora import ARABIC_CORPORA from cltk.corpus.chinese.corpora import CHINESE_CORPORA from cltk.corpus.coptic.corpora import COPTIC_CORPORA from cltk.corpus.greek.corpora import GREEK_CORPORA from cltk.corpus.hebrew.corpora import HEBREW_CORPORA from cltk.corpus.latin.corpora import LATIN_CORPOR...
true
true
f724cdeca3f91643abf9127ba1abde54edc87cec
16,147
py
Python
hikyuu/admin/HikyuuAdmin.py
dasuren/hikyuu
d1a1a43c10653d17ac91446e4499e6cfbfdbce12
[ "MIT" ]
1
2021-05-20T14:47:16.000Z
2021-05-20T14:47:16.000Z
hikyuu/admin/HikyuuAdmin.py
dasuren/hikyuu
d1a1a43c10653d17ac91446e4499e6cfbfdbce12
[ "MIT" ]
null
null
null
hikyuu/admin/HikyuuAdmin.py
dasuren/hikyuu
d1a1a43c10653d17ac91446e4499e6cfbfdbce12
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2010-2019 fasiondog/hikyuu # # 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 limitat...
45.872159
118
0.675543
import logging import sys import os from PyQt5.QtWidgets import QVBoxLayout cur_dir = os.path.dirname(__file__) sys.path.append(cur_dir) sys.path.append(os.path.split(cur_dir)[0]) from PyQt5 import QtCore, QtGui, QtWidgets import qdarkstyle from UiConfig import UiConfig from translate im...
true
true
f724ce0ba695747e01f48c7c55ced6477e36a6ed
823
py
Python
python/recursion/fibonacci.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
null
null
null
python/recursion/fibonacci.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
11
2020-01-09T06:53:45.000Z
2022-02-11T01:34:44.000Z
python/recursion/fibonacci.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
1
2017-03-18T17:19:43.000Z
2017-03-18T17:19:43.000Z
def solution(number): # O(N) """ Write a function to compute the fibonacci sequence value to the requested iteration. >>> solution(3) 2 >>> solution(10) 55 >>> solution(20) 6765 """ m = { 0: 0, 1: 1 } ...
30.481481
88
0.351154
def solution(number): m = { 0: 0, 1: 1 } def run_sequence(n): if not isinstance(m.get(n), int): ...
true
true
f724cf0a2f8b0040903ca54f7bc46584d2243ff1
33
py
Python
lib/python3.4/_bootlocale.py
caiocsalvador/whats_the_craic
c49ef62f1acd7379f6fd90c2b93aa1fa00c8661d
[ "MIT" ]
7
2017-04-26T12:28:22.000Z
2021-02-09T18:59:50.000Z
django-ng/lib/python3.4/_bootlocale.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
13
2015-12-04T03:38:37.000Z
2015-12-12T00:15:46.000Z
django-ng/lib/python3.4/_bootlocale.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
8
2017-06-01T08:42:16.000Z
2020-07-23T12:30:19.000Z
/usr/lib/python3.4/_bootlocale.py
33
33
0.818182
/usr/lib/python3.4/_bootlocale.py
false
true
f724cf25e6669a9f5102947f3cef81489c325e8c
24,857
py
Python
pikciosdk/PikcioChain.py
Pikciochain/PikcioChainSDK
2a89b655268516060044ec51672c0cc46f44bd9b
[ "MIT" ]
1
2019-04-11T06:24:40.000Z
2019-04-11T06:24:40.000Z
pikciosdk/PikcioChain.py
Pikciochain/PythonSDK
2a89b655268516060044ec51672c0cc46f44bd9b
[ "MIT" ]
3
2018-10-26T08:52:10.000Z
2018-10-26T08:55:38.000Z
pikciosdk/PikcioChain.py
Pikciochain/PythonSDK
2a89b655268516060044ec51672c0cc46f44bd9b
[ "MIT" ]
null
null
null
import base64 import json import os import requests import time from flask import Flask, jsonify, abort, make_response, redirect, request, \ url_for from flask_oauthlib.client import OAuth from selenium import webdriver from config import get_config from log import Logger access_token = '' def init_api_client(...
39.083333
79
0.518968
import base64 import json import os import requests import time from flask import Flask, jsonify, abort, make_response, redirect, request, \ url_for from flask_oauthlib.client import OAuth from selenium import webdriver from config import get_config from log import Logger access_token = '' def init_api_client(...
true
true
f724cfc965d385156ea1686e76199775451ff589
4,083
py
Python
test/functional/feature_includeconf.py
minblock/arcticoin
fc0ee011cc8a27cc22dd9841d563b37a8fa12255
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
minblock/arcticoin
fc0ee011cc8a27cc22dd9841d563b37a8fa12255
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
minblock/arcticoin
fc0ee011cc8a27cc22dd9841d563b37a8fa12255
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests the includeconf argument Verify that: 1. adding includeconf to the configuration file causes the inc...
49.192771
224
0.694832
import os from test_framework.test_framework import BitcoinTestFramework class IncludeConfTest(BitcoinTestFramework): def set_test_params(self): self.setup_clean_chain = False self.num_nodes = 1 def setup_chain(self): super().setup_chain() with open(os.pa...
true
true
f724cfe100b6d8d018d01d3fec03c2b0c5e1f781
6,287
py
Python
DuelingDQN/agent.py
emarche/Value-based-DeepRL
8b6458d4b82f293b401fc9e9c81cc482e0948830
[ "MIT" ]
1
2021-06-21T06:25:43.000Z
2021-06-21T06:25:43.000Z
DuelingDQN/agent.py
emarche/Value-based-DeepRL
8b6458d4b82f293b401fc9e9c81cc482e0948830
[ "MIT" ]
null
null
null
DuelingDQN/agent.py
emarche/Value-based-DeepRL
8b6458d4b82f293b401fc9e9c81cc482e0948830
[ "MIT" ]
null
null
null
"""DuelingDQN agent script This manages the training phase of the off-policy DuelingDQN. """ import random from collections import deque import yaml import numpy as np with open('config.yml', 'r') as ymlfile: cfg = yaml.load(ymlfile, Loader=yaml.FullLoader) seed = cfg['setup']['seed'] ymlfile.close() ...
33.801075
436
0.576905
import random from collections import deque import yaml import numpy as np with open('config.yml', 'r') as ymlfile: cfg = yaml.load(ymlfile, Loader=yaml.FullLoader) seed = cfg['setup']['seed'] ymlfile.close() random.seed(seed) np.random.seed(seed) import tensorflow as tf from tensorflow.keras.optim...
true
true
f724d00e6329a8b543e74c51d75c61d1be59e773
165
py
Python
Oops/Python.py
SharkDeveloper/Client-Server-app
071092f7f0a5ecc0c7e05eb8a5abeda759216709
[ "Apache-2.0" ]
null
null
null
Oops/Python.py
SharkDeveloper/Client-Server-app
071092f7f0a5ecc0c7e05eb8a5abeda759216709
[ "Apache-2.0" ]
null
null
null
Oops/Python.py
SharkDeveloper/Client-Server-app
071092f7f0a5ecc0c7e05eb8a5abeda759216709
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- try: from PySide import QtWidgets except: from PyQt5 import QtWidgets class Python: def __init__(self): print("Hi")
11.785714
32
0.612121
try: from PySide import QtWidgets except: from PyQt5 import QtWidgets class Python: def __init__(self): print("Hi")
true
true
f724d0189448a885ec38db8eea6a6121e6ff2796
11,397
py
Python
django/db/backends/base/features.py
thomazzo/django
b0d716cbffdd66dd9108895d0524bef2530fc732
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/base/features.py
thomazzo/django
b0d716cbffdd66dd9108895d0524bef2530fc732
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/base/features.py
thomazzo/django
b0d716cbffdd66dd9108895d0524bef2530fc732
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.db.models.aggregates import StdDev from django.db.utils import NotSupportedError, ProgrammingError from django.utils.functional import cached_property class BaseDatabaseFeatures: gis_enabled = False allows_group_by_pk = False allows_group_by_selected_pks = False empty_fetchmany_value = [] ...
36.883495
85
0.742476
from django.db.models.aggregates import StdDev from django.db.utils import NotSupportedError, ProgrammingError from django.utils.functional import cached_property class BaseDatabaseFeatures: gis_enabled = False allows_group_by_pk = False allows_group_by_selected_pks = False empty_fetchmany_value = [] ...
true
true
f724d089bc635ac3025f0392ab99da036fdef499
3,249
py
Python
main.py
deeso/slow-hitter
1fd3c7effaf532a828f30908715157b188ef5884
[ "Apache-2.0" ]
null
null
null
main.py
deeso/slow-hitter
1fd3c7effaf532a828f30908715157b188ef5884
[ "Apache-2.0" ]
null
null
null
main.py
deeso/slow-hitter
1fd3c7effaf532a828f30908715157b188ef5884
[ "Apache-2.0" ]
null
null
null
import logging import argparse import sys from slow.hitter import HitterService as Hitter from slow.hitter import KnownHosts from slow.etl import ETL, DEFAULT_NAMES, DEFAULT_PATTERNS, DEFAULT_CONFIG from slow.mongo_backend import MongoConnection parser = argparse.ArgumentParser(description='Start syslog-grok-mongo ...
39.621951
81
0.634349
import logging import argparse import sys from slow.hitter import HitterService as Hitter from slow.hitter import KnownHosts from slow.etl import ETL, DEFAULT_NAMES, DEFAULT_PATTERNS, DEFAULT_CONFIG from slow.mongo_backend import MongoConnection parser = argparse.ArgumentParser(description='Start syslog-grok-mongo ...
true
true
f724d09925aef79360ace23f3ceeeecc66e5dc5d
21,173
py
Python
infra/libs/gerrit_api/test/gerrit_api_test.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
infra/libs/gerrit_api/test/gerrit_api_test.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
infra/libs/gerrit_api/test/gerrit_api_test.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
# Copyright 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. """Tests for gerrit_api.py""" import copy import json import mock import requests import tempfile import time import unittest from infra.libs import gerrit...
39.064576
80
0.654277
import copy import json import mock import requests import tempfile import time import unittest from infra.libs import gerrit_api GERRIT_JSON_HEADER = ')]}\'\n' HEADERS = { 'Accept': 'application/json', 'Accept-encoding': 'gzip', 'Authorization': 'Basic Z2l0LWNvbW1pdC1ib3RAY2hyb21pdW0ub3JnOnNlY3Jld...
true
true
f724d0f2012370079322010867b41194ad671123
330
py
Python
Python-3/basic_examples/strings/trim-string.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
1,139
2018-05-09T11:54:36.000Z
2022-03-31T06:52:50.000Z
Python-3/basic_examples/strings/trim-string.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
56
2018-06-20T03:52:53.000Z
2022-02-09T22:57:41.000Z
Python-3/basic_examples/strings/trim-string.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
2,058
2018-05-09T09:32:17.000Z
2022-03-29T13:19:42.000Z
s1 = ' abc ' print(f'String =\'{s1}\'') print(f'After Removing Leading Whitespaces String =\'{s1.lstrip()}\'') print(f'After Removing Trailing Whitespaces String =\'{s1.rstrip()}\'') print(f'After Trimming Whitespaces String =\'{s1.strip()}\'') # string with new line s1 = ' X\n Y \nZ \t' print(s1) print(s1....
19.411765
71
0.633333
s1 = ' abc ' print(f'String =\'{s1}\'') print(f'After Removing Leading Whitespaces String =\'{s1.lstrip()}\'') print(f'After Removing Trailing Whitespaces String =\'{s1.rstrip()}\'') print(f'After Trimming Whitespaces String =\'{s1.strip()}\'') s1 = ' X\n Y \nZ \t' print(s1) print(s1.strip())
true
true
f724d12f6d6351caa87e074ea046e25613b6fe8c
413
py
Python
Task1E.py
ginnylaw/138-floodwarningsystem
dc9b674c5517761904062c5b35729d8f14504c48
[ "MIT" ]
null
null
null
Task1E.py
ginnylaw/138-floodwarningsystem
dc9b674c5517761904062c5b35729d8f14504c48
[ "MIT" ]
1
2022-01-21T22:07:02.000Z
2022-01-22T11:19:31.000Z
Task1E.py
ginnylaw/138-floodwarningsystem
dc9b674c5517761904062c5b35729d8f14504c48
[ "MIT" ]
null
null
null
# Not Copyright (¬C) 2022 Greg S. Kurzepa from floodsystem.geo import rivers_by_station_number from floodsystem.stationdata import build_station_list def run(): """Requirements for Task 1E""" station_list = build_station_list() output = rivers_by_station_number(station_list, 9) print(output) if __na...
27.533333
63
0.72155
from floodsystem.geo import rivers_by_station_number from floodsystem.stationdata import build_station_list def run(): station_list = build_station_list() output = rivers_by_station_number(station_list, 9) print(output) if __name__ == "__main__": print("*** Task 1E: CUED Part IA Flood Warning Syste...
true
true
f724d145f5fb4bdcfe48b20384224152e82d9a51
127
py
Python
oss4blog/__init__.py
JianxunRao/oss4blog
9e328ad5d2bc23806ef1c4d149f0bcc916674d03
[ "MIT" ]
3
2019-01-02T03:00:17.000Z
2021-06-06T02:00:44.000Z
oss4blog/__init__.py
JianxunRao/oss4blog
9e328ad5d2bc23806ef1c4d149f0bcc916674d03
[ "MIT" ]
null
null
null
oss4blog/__init__.py
JianxunRao/oss4blog
9e328ad5d2bc23806ef1c4d149f0bcc916674d03
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/2/5 0005 上午 8:56 # @Author : Trojx # @File : __init__.py.py
25.4
34
0.559055
true
true
f724d19652f09efe12713994a7c76259c5afea06
3,189
py
Python
ParlAI/parlai/tasks/mutualfriends/agents.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
163
2019-06-23T14:07:57.000Z
2022-02-25T23:06:07.000Z
ParlAI/parlai/tasks/mutualfriends/agents.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
8
2019-07-24T12:41:31.000Z
2022-02-10T00:17:20.000Z
ParlAI/parlai/tasks/mutualfriends/agents.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
31
2019-06-26T01:21:07.000Z
2021-09-06T17:23:24.000Z
#!/usr/bin/env python3 # 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 parlai.core.teachers import DialogTeacher from .build import build import json import os class DefaultTeacher(Di...
39.37037
90
0.461587
from parlai.core.teachers import DialogTeacher from .build import build import json import os class DefaultTeacher(DialogTeacher): def __init__(self, opt, shared=None): self.datatype = opt['datatype'] build(opt) if not opt['datatype'].startswith('train'): raise Runtime...
true
true
f724d1efb6cc2a309577cdfab02d22ed387da3a1
6,306
py
Python
py-polars/polars/utils.py
JakobGM/polars
fe10d4a180e59e5e34f4ab17303f12f1cd64e6c8
[ "MIT" ]
null
null
null
py-polars/polars/utils.py
JakobGM/polars
fe10d4a180e59e5e34f4ab17303f12f1cd64e6c8
[ "MIT" ]
null
null
null
py-polars/polars/utils.py
JakobGM/polars
fe10d4a180e59e5e34f4ab17303f12f1cd64e6c8
[ "MIT" ]
null
null
null
import ctypes import os import sys from datetime import date, datetime, timedelta, timezone from pathlib import Path from typing import Any, Dict, Iterable, List, Optional, Sequence, Tuple, Type, Union import numpy as np from polars.datatypes import DataType, Date, Datetime if sys.version_info >= (3, 10): from t...
29.605634
98
0.64288
import ctypes import os import sys from datetime import date, datetime, timedelta, timezone from pathlib import Path from typing import Any, Dict, Iterable, List, Optional, Sequence, Tuple, Type, Union import numpy as np from polars.datatypes import DataType, Date, Datetime if sys.version_info >= (3, 10): from t...
true
true
f724d251d69499fc6e1ec87430fba69964909b5d
2,310
py
Python
tests/test_datasets/test_dataset_wrapper.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
1
2022-02-13T12:27:40.000Z
2022-02-13T12:27:40.000Z
tests/test_datasets/test_dataset_wrapper.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
tests/test_datasets/test_dataset_wrapper.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from mmcv import Config from mmpose.datasets.builder import build_dataset def test_concat_dataset(): # build COCO-like dataset config dataset_info = Config.fromfile( 'configs/_base_/datasets/coco.py').dataset_info channel_cfg = dict( num_ou...
33.970588
71
0.646753
from mmcv import Config from mmpose.datasets.builder import build_dataset def test_concat_dataset(): dataset_info = Config.fromfile( 'configs/_base_/datasets/coco.py').dataset_info channel_cfg = dict( num_output_channels=17, dataset_joints=17, dataset_channel=[ ...
true
true
f724d3be4fab7267380619189339e046a243a317
741
py
Python
face_recon_deform/PhotoAvatarLib_exe/run.py
halfjoe/3D-Portrait-Stylization
ccf0edd5cf7764d67d2740aa0e2cd18cc503c937
[ "MIT" ]
38
2022-01-12T14:17:25.000Z
2022-03-23T06:34:23.000Z
face_recon_deform/PhotoAvatarLib_exe/run.py
halfjoe/3D-Portrait-Stylization
ccf0edd5cf7764d67d2740aa0e2cd18cc503c937
[ "MIT" ]
5
2022-01-19T12:14:45.000Z
2022-03-22T15:59:12.000Z
face_recon_deform/PhotoAvatarLib_exe/run.py
halfjoe/3D-Portrait-Stylization
ccf0edd5cf7764d67d2740aa0e2cd18cc503c937
[ "MIT" ]
6
2022-01-14T06:59:37.000Z
2022-03-15T03:58:54.000Z
import os for file in os.listdir("upload"): if file.endswith(".jpg"): print(file.rsplit('.', 1)[0]) os.system('PhotoAvatarLib.exe ' + file.rsplit('.', 1)[0]) fp = open(os.path.join('result', file.rsplit('.', 1)[0] + '.mtl'), "w") fp.write('newmtl material_1\nmap_Kd %s_face....
35.285714
95
0.522267
import os for file in os.listdir("upload"): if file.endswith(".jpg"): print(file.rsplit('.', 1)[0]) os.system('PhotoAvatarLib.exe ' + file.rsplit('.', 1)[0]) fp = open(os.path.join('result', file.rsplit('.', 1)[0] + '.mtl'), "w") fp.write('newmtl material_1\nmap_Kd %s_face....
true
true
f724d762255165511edcd4f30973356a4b81b6a1
964
py
Python
tests/test_main.py
thorgate/pyevr
168f2e9459020212213ed0291882a285ebb53839
[ "MIT" ]
3
2020-04-18T19:45:51.000Z
2022-03-01T19:48:11.000Z
tests/test_main.py
thorgate/pyevr
168f2e9459020212213ed0291882a285ebb53839
[ "MIT" ]
39
2019-11-16T01:35:35.000Z
2021-11-18T12:58:41.000Z
tests/test_main.py
thorgate/pyevr
168f2e9459020212213ed0291882a285ebb53839
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `pyevr.main`.""" import pytest from click.testing import CliRunner from pyevr.main import main @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests #...
25.368421
78
0.690871
import pytest from click.testing import CliRunner from pyevr.main import main @pytest.fixture def response(): def test_content(response): def test_command_line_interface(): runner = CliRunner() result = runner.invoke(main) assert result.exit_code == 0 assert 'pyevr.cli.ma...
true
true
f724d7d23d4236fb0d0aeead2ccfc8a44b4b705c
17,325
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/ios/ios_user.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/ios/ios_user.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/ios/ios_user.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # # This file is part of Ansible by Red Hat # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Li...
31.847426
110
0.633709
ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'network'} DOCUMENTATION = """ --- module: ios_user version_added: "2.4" author: "Trishna Guha (@trishnaguha)" short_description: Manage the aggregate of local users on Cis...
true
true
f724d87fd763688168a55ea7c5a6817849d45718
125
py
Python
src/hist/numpy.py
andrzejnovak/hist
15a41565ac9a3683bff74b98803c4b88ad8a19ae
[ "BSD-3-Clause" ]
null
null
null
src/hist/numpy.py
andrzejnovak/hist
15a41565ac9a3683bff74b98803c4b88ad8a19ae
[ "BSD-3-Clause" ]
null
null
null
src/hist/numpy.py
andrzejnovak/hist
15a41565ac9a3683bff74b98803c4b88ad8a19ae
[ "BSD-3-Clause" ]
null
null
null
from boost_histogram.numpy import histogram, histogram2d, histogramdd __all__ = ("histogram", "histogram2d", "histogramdd")
31.25
69
0.792
from boost_histogram.numpy import histogram, histogram2d, histogramdd __all__ = ("histogram", "histogram2d", "histogramdd")
true
true
f724d8ab5bf6fadc70a44f28e9bffcf70edecf16
1,732
py
Python
tools/randomData.py
Tandelajr/mr.tandela
096cce682de58f2a7035d3e114787a78a1015a9b
[ "MIT" ]
3
2020-06-23T11:59:14.000Z
2020-12-03T15:20:18.000Z
tools/randomData.py
Tandelajr/mr.tandela
096cce682de58f2a7035d3e114787a78a1015a9b
[ "MIT" ]
1
2020-06-23T12:01:41.000Z
2020-06-23T12:01:41.000Z
tools/randomData.py
Tandelajr/mr.tandela
096cce682de58f2a7035d3e114787a78a1015a9b
[ "MIT" ]
1
2020-12-03T15:20:26.000Z
2020-12-03T15:20:26.000Z
#!/usr/bin/env https://github.com/Tandelajr/mr.tandela # MIT License # # Copyright (C) 2020, Entynetproject. 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 re...
37.652174
80
0.741917
import json import random def random_IP(): ip = [] for _ in range(0, 4): ip.append(str(random.randint(1,255))) return ".".join(ip) def random_referer(): with open("tools/other/referers.txt", 'r') as referers: referers = referers.readlines() return random.choi...
true
true
f724d950f3f0f4ab4df0111f810aec962a3b5e21
149,021
py
Python
scipy/stats/stats.py
Dapid/scipy
dde07a64407ffaa9442b3d8298c6c26ff91fb384
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/stats.py
Dapid/scipy
dde07a64407ffaa9442b3d8298c6c26ff91fb384
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/stats.py
Dapid/scipy
dde07a64407ffaa9442b3d8298c6c26ff91fb384
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Gary Strangman. All rights reserved # # Disclaimer # # This software is provided "as-is". There are no expressed or implied # warranties of any kind, including, but not limited to, the warranties # of merchantability and fitness for a given application. In no event # shall Gary Strangman be liable fo...
31.699851
95
0.597949
from __future__ import division, print_function, absolute_import import warnings import math from collections import namedtuple from scipy._lib.six import xrange from scipy._lib.six import callable, string_types from numpy import array, asarray, ma, zeros import scipy.special as special import sc...
true
true
f724da7af2704b4ffec5878bcac55c4bb2e57d18
4,446
py
Python
models/experimental/mnist_keras_ds/mnist.py
cs-gn/tpu
fadb409b8dae2385191050aa5c901d9084d8bb8c
[ "Apache-2.0" ]
1
2020-08-27T18:52:09.000Z
2020-08-27T18:52:09.000Z
models/experimental/mnist_keras_ds/mnist.py
omar16100/tpu
4727594874e8587a60cb088627d46f73a1769823
[ "Apache-2.0" ]
null
null
null
models/experimental/mnist_keras_ds/mnist.py
omar16100/tpu
4727594874e8587a60cb088627d46f73a1769823
[ "Apache-2.0" ]
1
2019-03-25T07:50:04.000Z
2019-03-25T07:50:04.000Z
# Copyright 2018 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...
31.531915
80
0.703554
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from absl import flags import numpy as np import tensorflow as tf flags.DEFINE_bool('use_tpu', True, 'Use TPU model instead of CPU.') flags.DEFINE_string('tpu', None, 'Name...
true
true
f724dabdf285c5d14bf55e9bd7e21f067f7b0934
403
py
Python
award_project/wsgi.py
Esther-Anyona/Developer-Awards
64030da79cc1ed993b1bc4420725b2a996be84da
[ "MIT" ]
null
null
null
award_project/wsgi.py
Esther-Anyona/Developer-Awards
64030da79cc1ed993b1bc4420725b2a996be84da
[ "MIT" ]
null
null
null
award_project/wsgi.py
Esther-Anyona/Developer-Awards
64030da79cc1ed993b1bc4420725b2a996be84da
[ "MIT" ]
null
null
null
""" WSGI config for award_project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'award_project.settings') application = get_wsgi_application()
true
true
f724db24b2380e8d19e2fcdab914785ada4e9c4a
854
py
Python
buildlib/helpers/events.py
ForwardLine/backup-nanny
67c687f43d732c60ab2e569e50bc40cc5e696b25
[ "Apache-2.0" ]
1
2019-11-13T04:15:41.000Z
2019-11-13T04:15:41.000Z
buildlib/helpers/events.py
ForwardLine/backup-nanny
67c687f43d732c60ab2e569e50bc40cc5e696b25
[ "Apache-2.0" ]
null
null
null
buildlib/helpers/events.py
ForwardLine/backup-nanny
67c687f43d732c60ab2e569e50bc40cc5e696b25
[ "Apache-2.0" ]
1
2019-10-25T21:24:20.000Z
2019-10-25T21:24:20.000Z
import logging from troposphere.events import Rule, Target from buildlib.helpers.client_helper import ClientHelper class EventsHelper(object): def __init__(self, template, project, session=None): self.client = ClientHelper.get_client('events', session) self.project = project self.templat...
29.448276
104
0.637002
import logging from troposphere.events import Rule, Target from buildlib.helpers.client_helper import ClientHelper class EventsHelper(object): def __init__(self, template, project, session=None): self.client = ClientHelper.get_client('events', session) self.project = project self.templat...
true
true
f724db442a0f5748c892e969a3bc7eed6d4c5a14
16,050
py
Python
pybvc/netconfdev/vrouter/interfaces.py
brocade/pybvc
316e8cb79ecbeb3670276afd43286e57897bc8ba
[ "BSD-3-Clause" ]
1
2015-11-22T15:53:00.000Z
2015-11-22T15:53:00.000Z
pybvc/netconfdev/vrouter/interfaces.py
brocade/pybvc
316e8cb79ecbeb3670276afd43286e57897bc8ba
[ "BSD-3-Clause" ]
null
null
null
pybvc/netconfdev/vrouter/interfaces.py
brocade/pybvc
316e8cb79ecbeb3670276afd43286e57897bc8ba
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2015 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in ...
35.666667
98
0.406417
import json from pybvc.common.utils import strip_none, remove_empty_from_dict, dict_keys_underscored_to_dashed class DataPlaneInterface(): def __init__(self, name): self.tagnode = name self.description = None self.dhcpv6_options = None self.ip = None ...
true
true
f724dbc632ab957d93fb0b05c7dd5db1e521ac4b
1,048
py
Python
RosViewer.py
MikeHallettUK/RosRobotics
953486cfd042d6adec1edaf425243eac0f473571
[ "CC0-1.0" ]
null
null
null
RosViewer.py
MikeHallettUK/RosRobotics
953486cfd042d6adec1edaf425243eac0f473571
[ "CC0-1.0" ]
null
null
null
RosViewer.py
MikeHallettUK/RosRobotics
953486cfd042d6adec1edaf425243eac0f473571
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # RosViewer.py = node that listens to a ROS image message topic, # and displays the image using OpenCV. import rospy import cv2 from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError class image_viewer: # "/camera/color/image_raw" or "/camera/color...
36.137931
117
0.676527
import rospy import cv2 from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError class image_viewer: def __init__(self): self.bridge = CvBridge() self.image_sub = rospy.Subscriber("/camera/color/image_raw", Image, self.ros_cb, queue_size=1, buff_size=2 ** 24) def...
true
true
f724dd1a39a7f175e46aa6568a64a8dd26d6775b
251
py
Python
temboo/core/Library/OneLogin/Roles/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/OneLogin/Roles/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/OneLogin/Roles/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.OneLogin.Roles.ListAll import ListAll, ListAllInputSet, ListAllResultSet, ListAllChoreographyExecution from temboo.Library.OneLogin.Roles.ShowRole import ShowRole, ShowRoleInputSet, ShowRoleResultSet, ShowRoleChoreographyExecution
83.666667
127
0.888446
from temboo.Library.OneLogin.Roles.ListAll import ListAll, ListAllInputSet, ListAllResultSet, ListAllChoreographyExecution from temboo.Library.OneLogin.Roles.ShowRole import ShowRole, ShowRoleInputSet, ShowRoleResultSet, ShowRoleChoreographyExecution
true
true
f724dd6c5a854504a4b01aac06593f75753a45b0
4,911
py
Python
ttt.py
JotaGo/tic-tac-toe
237288f84bf388c219f6b5cf6cbae6334bfddb26
[ "MIT" ]
null
null
null
ttt.py
JotaGo/tic-tac-toe
237288f84bf388c219f6b5cf6cbae6334bfddb26
[ "MIT" ]
null
null
null
ttt.py
JotaGo/tic-tac-toe
237288f84bf388c219f6b5cf6cbae6334bfddb26
[ "MIT" ]
null
null
null
import random #GLOBAL VARIABLE ttt = [[1,2,3],[4,5,6],[7,8,9]] #PRINTING THE BOARD FUNCTION def printing(): print() for i , j in enumerate(ttt): if i > 0: print('---------') print(j[0],'|',j[1],'|',j[2]) print() #RESET THE BOARD ## WITH THIS FUNCTION THE USER CAN RESET BOARD ...
27.283333
85
0.476074
import random ttt = [[1,2,3],[4,5,6],[7,8,9]] def printing(): print() for i , j in enumerate(ttt): if i > 0: print('---------') print(j[0],'|',j[1],'|',j[2]) print() nav2] != cnt: ttt[nav1][nav2] = cnt cnt += 1 nav2 +=1 nav2 ...
true
true
f724dd876dd86bd7229b96394df79995ae66159a
2,035
py
Python
test/TestShellWithoutPipefail.py
chilicheech/ansible-lint
57d4d3346179bb4142aeb7218dbf5f91befcab72
[ "MIT" ]
null
null
null
test/TestShellWithoutPipefail.py
chilicheech/ansible-lint
57d4d3346179bb4142aeb7218dbf5f91befcab72
[ "MIT" ]
null
null
null
test/TestShellWithoutPipefail.py
chilicheech/ansible-lint
57d4d3346179bb4142aeb7218dbf5f91befcab72
[ "MIT" ]
null
null
null
# pylint: disable=preferred-module # FIXME: remove once migrated per GH-725 import unittest from ansiblelint.rules import RulesCollection from ansiblelint.rules.ShellWithoutPipefail import ShellWithoutPipefail from ansiblelint.testing import RunFromText FAIL_TASKS = ''' --- - hosts: localhost become: no tasks: ...
22.865169
76
0.633907
import RulesCollection from ansiblelint.rules.ShellWithoutPipefail import ShellWithoutPipefail from ansiblelint.testing import RunFromText FAIL_TASKS = ''' --- - hosts: localhost become: no tasks: - name: pipeline without pipefail shell: false | cat - name: pipeline with or and pipe, no pipefail ...
true
true
f724de43aa9b83eb0afc55ae9f946720ab6db30a
38,330
py
Python
tests/system/robot/chromeTests.py
krzysz00/nvda
d34444242a529098499131165a3e60d5a05ac96f
[ "bzip2-1.0.6" ]
1,592
2015-11-10T12:05:44.000Z
2022-03-31T11:50:40.000Z
tests/system/robot/chromeTests.py
krzysz00/nvda
d34444242a529098499131165a3e60d5a05ac96f
[ "bzip2-1.0.6" ]
9,479
2015-11-10T20:56:48.000Z
2022-03-31T23:51:30.000Z
tests/system/robot/chromeTests.py
TheQuinbox/nvda
9c7b763a2428b43802758a3859de8708cefcd4a0
[ "bzip2-1.0.6" ]
682
2015-11-10T11:19:23.000Z
2022-03-31T07:51:29.000Z
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2020-2021 NV Access Limited, Leonard de Ruijter # This file may be used under the terms of the GNU General Public License, version 2 or later. # For more details see: https://www.gnu.org/licenses/gpl-2.0.html """Logic for NVDA + Google Chrome tests """ ...
28.776276
109
0.688469
import os from robot.libraries.BuiltIn import BuiltIn from SystemTestSpy import ( _getLib, ) # Imported for type information from ChromeLib import ChromeLib as _ChromeLib from AssertsLib import AssertsLib as _AssertsLib import NvdaLib as _NvdaLib _builtIn: BuiltIn = BuiltIn() _chrome: _ChromeLib...
true
true
f724de73bfb07fa9766f490a464f1f8eb216b233
738
py
Python
tags/migrations/0002_auto_20160704_1112.py
making3/summonerqa
7ab8472b2d24236ba1e6919fa0f00881f4a3e633
[ "MIT" ]
null
null
null
tags/migrations/0002_auto_20160704_1112.py
making3/summonerqa
7ab8472b2d24236ba1e6919fa0f00881f4a3e633
[ "MIT" ]
null
null
null
tags/migrations/0002_auto_20160704_1112.py
making3/summonerqa
7ab8472b2d24236ba1e6919fa0f00881f4a3e633
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-04 16:12 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tags', '0001_initial'), ] operations = [ mi...
26.357143
124
0.611111
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tags', '0001_initial'), ] operations = [ migrations.AddField( model_name='tag', name='Cat...
true
true
f724ded074f8fa3a1a1d5041388c8593fb112856
924
py
Python
cogs/slashes.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
2
2021-07-05T12:00:39.000Z
2021-07-05T12:00:49.000Z
cogs/slashes.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
null
null
null
cogs/slashes.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.ext.commands import cog import discord_slash from discord_slash import cog_ext class Slashes(commands.Cog): def __init__(self, client) -> None: self.client: commands.Bot = client @commands.Cog.listener() async def on_ready(self): ...
35.538462
108
0.676407
import discord from discord.ext import commands from discord.ext.commands import cog import discord_slash from discord_slash import cog_ext class Slashes(commands.Cog): def __init__(self, client) -> None: self.client: commands.Bot = client @commands.Cog.listener() async def on_ready(self): ...
true
true
f724dee757778c7059a8bbb1f08fe86a9affccc9
652
py
Python
manage_index.py
jdoiro3/myPersonalSite
a61245cfdc497a864c58fd0d9eee27a35f0b52f3
[ "MIT" ]
2
2021-10-05T03:03:34.000Z
2022-03-15T12:38:07.000Z
manage_index.py
jdoiro3/myPersonalSite
a61245cfdc497a864c58fd0d9eee27a35f0b52f3
[ "MIT" ]
null
null
null
manage_index.py
jdoiro3/myPersonalSite
a61245cfdc497a864c58fd0d9eee27a35f0b52f3
[ "MIT" ]
null
null
null
from modules import index import argparse commands = ["cleanup", "re-index"] parser = argparse.ArgumentParser(description='Manager for the Inverted Index.') parser.add_argument('command', choices=commands, help='Command to perform on index.') parser.add_argument('--in_s3', action='store_true', help='If passed, the in...
46.571429
114
0.753067
from modules import index import argparse commands = ["cleanup", "re-index"] parser = argparse.ArgumentParser(description='Manager for the Inverted Index.') parser.add_argument('command', choices=commands, help='Command to perform on index.') parser.add_argument('--in_s3', action='store_true', help='If passed, the in...
true
true
f724df091556b7dbed963d14802c99783e73424c
4,049
py
Python
pajbot/modules/top.py
Troy-Bot/pajbot
11b7e86ca270d57d4f35226effc3eb16250e2dfc
[ "MIT" ]
null
null
null
pajbot/modules/top.py
Troy-Bot/pajbot
11b7e86ca270d57d4f35226effc3eb16250e2dfc
[ "MIT" ]
null
null
null
pajbot/modules/top.py
Troy-Bot/pajbot
11b7e86ca270d57d4f35226effc3eb16250e2dfc
[ "MIT" ]
null
null
null
import logging from pajbot.managers.db import DBManager from pajbot.models.command import Command from pajbot.models.user import User from pajbot.modules import BaseModule from pajbot.modules import ModuleSetting from pajbot.utils import time_since log = logging.getLogger(__name__) class TopModule(BaseModule): ...
37.841121
138
0.605829
import logging from pajbot.managers.db import DBManager from pajbot.models.command import Command from pajbot.models.user import User from pajbot.modules import BaseModule from pajbot.modules import ModuleSetting from pajbot.utils import time_since log = logging.getLogger(__name__) class TopModule(BaseModule): ...
true
true
f724df327e8441ac179a887f4d64a5bd5eb292a3
3,207
py
Python
jigs/hpcc/source/lysozyme_we.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
35
2017-08-22T15:39:06.000Z
2022-03-20T15:17:52.000Z
jigs/hpcc/source/lysozyme_we.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
33
2017-10-02T22:04:45.000Z
2022-03-02T22:19:08.000Z
jigs/hpcc/source/lysozyme_we.py
stxinsite/wepy
352d4c1316b20e839aae8824eedd66f0f2d0b456
[ "MIT" ]
17
2018-07-14T15:33:30.000Z
2022-01-18T16:30:55.000Z
from pympler.asizeof import asizeof def get_size(obj): """get the size in units of Mb""" return asizeof(obj) / 1000000 if __name__ == "__main__": # prom.start_http_server(9001) import os import shutil import sys import logging from pathlib import Path # from multiprocessing_lo...
28.633929
106
0.565326
from pympler.asizeof import asizeof def get_size(obj): return asizeof(obj) / 1000000 if __name__ == "__main__": import os import shutil import sys import logging from pathlib import Path from wepy_tools.monitoring.prometheus import SimMonitor from wepy_tools.sim_makers....
true
true
f724e052a84d5bf01809f05e2ce2708627528d63
6,634
py
Python
sendSMSSkillLambda/package/ask_sdk_model/session_ended_request.py
shneydor/aws-alexa-lambda-workshop
0fa6b7067b04fc85c46b9ce1c2cc04554ed5baf4
[ "Apache-2.0" ]
null
null
null
sendSMSSkillLambda/package/ask_sdk_model/session_ended_request.py
shneydor/aws-alexa-lambda-workshop
0fa6b7067b04fc85c46b9ce1c2cc04554ed5baf4
[ "Apache-2.0" ]
null
null
null
sendSMSSkillLambda/package/ask_sdk_model/session_ended_request.py
shneydor/aws-alexa-lambda-workshop
0fa6b7067b04fc85c46b9ce1c2cc04554ed5baf4
[ "Apache-2.0" ]
1
2019-10-11T17:15:20.000Z
2019-10-11T17:15:20.000Z
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
47.385714
527
0.668074
import pprint import re import six import typing from enum import Enum from ask_sdk_model.request import Request if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union from datetime import datetime from ask_sdk_model.session_ended_error import SessionEndedError from a...
true
true
f724e0dae8457b34df64dc725e37573bd868d2fc
1,108
py
Python
gym-unity/setup.py
alexcercos/ML-Agents
c096c36b0348e3673b687499e17891cd35168939
[ "Apache-2.0" ]
1
2019-12-29T13:40:16.000Z
2019-12-29T13:40:16.000Z
gym-unity/setup.py
alexcercos/ML-Agents
c096c36b0348e3673b687499e17891cd35168939
[ "Apache-2.0" ]
null
null
null
gym-unity/setup.py
alexcercos/ML-Agents
c096c36b0348e3673b687499e17891cd35168939
[ "Apache-2.0" ]
2
2020-08-16T14:18:16.000Z
2022-03-18T12:22:54.000Z
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from setuptools.command.install import install VERSION = "0.11.0" class VerifyVersionCommand(install): """ Custom command to verify that the git tag matches our version See https://circleci.com/blog/continuously-deplo...
27.02439
95
0.666968
import os import sys from setuptools import setup, find_packages from setuptools.command.install import install VERSION = "0.11.0" class VerifyVersionCommand(install): description = "verify that the git tag matches our version" def run(self): tag = os.getenv("CIRCLE_TAG") if tag != VERSI...
true
true
f724e1095b8e197a2c35d40a6c7744239f4d58e6
2,426
py
Python
webapp/web_app.py
baishalidutta/Comments-Toxicity-Detection
c56cd2eb02983c418cbe91fc4a2a257067cdcb89
[ "Apache-2.0" ]
7
2021-01-11T05:57:18.000Z
2022-01-14T21:51:54.000Z
webapp/web_app.py
baishalidutta/Comments-Toxicity-Detection
c56cd2eb02983c418cbe91fc4a2a257067cdcb89
[ "Apache-2.0" ]
1
2021-04-09T17:00:57.000Z
2021-04-09T17:00:57.000Z
webapp/web_app.py
baishalidutta/Comments-Toxicity-Detection
c56cd2eb02983c418cbe91fc4a2a257067cdcb89
[ "Apache-2.0" ]
1
2021-02-20T23:47:26.000Z
2021-02-20T23:47:26.000Z
__author__ = "Baishali Dutta" __copyright__ = "Copyright (C) 2021 Baishali Dutta" __license__ = "Apache License 2.0" __version__ = "0.1" # ------------------------------------------------------------------------- # Import Libraries # -----------------------------------------------------------...
33.694444
117
0.528854
__author__ = "Baishali Dutta" __copyright__ = "Copyright (C) 2021 Baishali Dutta" __license__ = "Apache License 2.0" __version__ = "0.1" import pickle import gradio as gr from keras.models import load_model from keras.preprocessing.sequence import pad_sequences from source.config import * from source.data_cleanin...
true
true
f724e1cf06b432b67c696656847168d974deac36
2,657
py
Python
test/programytest/parser/template/graph_tests/test_eval.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:13:45.000Z
2018-09-01T20:00:55.000Z
test/programytest/parser/template/graph_tests/test_eval.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
1
2018-09-12T18:30:17.000Z
2018-09-12T18:30:17.000Z
test/programytest/parser/template/graph_tests/test_eval.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:08:36.000Z
2018-09-23T06:11:04.000Z
import xml.etree.ElementTree as ET from programy.parser.template.nodes.base import TemplateNode from programy.parser.template.nodes.word import TemplateWordNode from programy.parser.template.nodes.get import TemplateGetNode from programy.parser.template.nodes.eval import TemplateEvalNode from programytest.parser.temp...
36.39726
94
0.705307
import xml.etree.ElementTree as ET from programy.parser.template.nodes.base import TemplateNode from programy.parser.template.nodes.word import TemplateWordNode from programy.parser.template.nodes.get import TemplateGetNode from programy.parser.template.nodes.eval import TemplateEvalNode from programytest.parser.temp...
true
true
f724e27067df0d8b936028ff1d33b38c5cfba530
462
py
Python
djangoapp_cloudedbats_bat_activity/urls.py
cloudedbats/cloudedbats_web_archive
39e571aa88efd149fd07b4ecc33207af44276c9b
[ "MIT" ]
null
null
null
djangoapp_cloudedbats_bat_activity/urls.py
cloudedbats/cloudedbats_web_archive
39e571aa88efd149fd07b4ecc33207af44276c9b
[ "MIT" ]
null
null
null
djangoapp_cloudedbats_bat_activity/urls.py
cloudedbats/cloudedbats_web_archive
39e571aa88efd149fd07b4ecc33207af44276c9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Project: http://cloudedbats.org # Copyright (c) 2016 Arnold Andreasson # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). from django.conf.urls import url, include # import cloudedbats_django.djangoapp_cloudedbats_species.views as species_vie...
28.875
80
0.772727
from django.conf.urls import url, include import djangoapp_cloudedbats_bat_activity.views as bat_activity_views urlpatterns = [ url(r'^', bat_activity_views.bat_activity), ]
true
true
f724e28c80153996114878fb2122ab04143fb7c4
5,426
py
Python
tests/opentracer/core/test_span.py
brettlangdon/dd-trace-py
95e2641d734669719ca07841de58e233cb0f49e9
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/opentracer/core/test_span.py
brettlangdon/dd-trace-py
95e2641d734669719ca07841de58e233cb0f49e9
[ "Apache-2.0", "BSD-3-Clause" ]
3
2021-10-07T02:22:59.000Z
2021-12-15T02:15:48.000Z
tests/opentracer/core/test_span.py
depop/dd-trace-py
95e2641d734669719ca07841de58e233cb0f49e9
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-09-28T06:20:53.000Z
2020-09-28T06:20:53.000Z
import pytest from ddtrace.opentracer.span import Span from tests.utils import DummyTracer @pytest.fixture def nop_tracer(): from ddtrace.opentracer import Tracer tracer = Tracer(service_name="mysvc", config={}) # use the same test tracer used by the primary tests tracer._tracer = DummyTracer() ...
33.9125
83
0.653336
import pytest from ddtrace.opentracer.span import Span from tests.utils import DummyTracer @pytest.fixture def nop_tracer(): from ddtrace.opentracer import Tracer tracer = Tracer(service_name="mysvc", config={}) tracer._tracer = DummyTracer() return tracer @pytest.fixture def nop_span_ctx(): ...
true
true
f724e2e16afd314dfd71391ec47943c9a4b364d9
7,749
py
Python
src/shimoku_api_python/configuration.py
shimoku-tech/shimoku-api-python
de26e7d80631647e68794277b15397403336f252
[ "MIT" ]
4
2021-12-23T15:51:21.000Z
2022-01-25T08:55:31.000Z
src/shimoku_api_python/configuration.py
shimoku-tech/shimoku-api-python
de26e7d80631647e68794277b15397403336f252
[ "MIT" ]
null
null
null
src/shimoku_api_python/configuration.py
shimoku-tech/shimoku-api-python
de26e7d80631647e68794277b15397403336f252
[ "MIT" ]
1
2022-03-02T01:13:04.000Z
2022-03-02T01:13:04.000Z
"""""" import copy import logging import multiprocessing import sys import urllib3 class Configuration(object): """NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ _default = None ...
34.748879
80
0.599303
import copy import logging import multiprocessing import sys import urllib3 class Configuration(object): _default = None def __init__(self): if self._default: for key in self._default.__dict__.keys(): self.__dict__[key] = copy.copy(self._default.__dict__[key]) ...
true
true
f724e3bba3d8657105215851506d1fc853c91c4f
96
py
Python
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/parsers/earley_common.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/parsers/earley_common.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/parsers/earley_common.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/19/95/b4/79c323071b97ca9595e50046631f61416d54102a34467d3d73b54737d7
96
96
0.895833
/home/runner/.cache/pip/pool/19/95/b4/79c323071b97ca9595e50046631f61416d54102a34467d3d73b54737d7
false
true
f724e4bc2f3b9f7eafff6e16166f0dbe55dce02c
1,138
py
Python
send_msg.py
nocholasrift/wordlebot
c97576697c47a1f5a35722af78a6758ba9a325bf
[ "MIT" ]
null
null
null
send_msg.py
nocholasrift/wordlebot
c97576697c47a1f5a35722af78a6758ba9a325bf
[ "MIT" ]
null
null
null
send_msg.py
nocholasrift/wordlebot
c97576697c47a1f5a35722af78a6758ba9a325bf
[ "MIT" ]
null
null
null
import os from slack_sdk import WebClient from slack_sdk.errors import SlackApiError client = WebClient(token="xoxb-435046985394-3004455722741-fpIQQHskeFNILHcT3hGoPIF7"); channel_id="wordle" is_solved = True guesses = [] with open("tmp", "r") as f: for line in f: line = line.strip() if line == "IMP...
22.313725
95
0.655536
import os from slack_sdk import WebClient from slack_sdk.errors import SlackApiError client = WebClient(token="xoxb-435046985394-3004455722741-fpIQQHskeFNILHcT3hGoPIF7"); channel_id="wordle" is_solved = True guesses = [] with open("tmp", "r") as f: for line in f: line = line.strip() if line == "IMP...
true
true
f724e59cba98bdc89e3b0cc4fb9742fa0ed18df5
17,717
py
Python
vital/bindings/python/vital/tests/test_rotation.py
acidburn0zzz/kwiver
6e4205f1c46df04759c57c040f01cc804b27e00d
[ "BSD-3-Clause" ]
1
2017-07-31T07:07:32.000Z
2017-07-31T07:07:32.000Z
vital/bindings/python/vital/tests/test_rotation.py
Acidburn0zzz/kwiver
6e4205f1c46df04759c57c040f01cc804b27e00d
[ "BSD-3-Clause" ]
3
2021-03-19T15:39:43.000Z
2021-09-08T02:47:15.000Z
vital/bindings/python/vital/tests/test_rotation.py
acidburn0zzz/kwiver
6e4205f1c46df04759c57c040f01cc804b27e00d
[ "BSD-3-Clause" ]
null
null
null
""" ckwg +31 Copyright 2016-2017 by Kitware, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
38.101075
85
0.570469
""" ckwg +31 Copyright 2016-2017 by Kitware, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
false
true
f724e6dae565bcc5a26d05bdb7f2553473458a1f
1,242
py
Python
tests/test_project_setups.py
insspb/python3-boilerplate
7d70cd8a7bbbe2805ae5f4cb538996a30b96c736
[ "MIT" ]
3
2020-04-22T04:09:18.000Z
2021-12-20T08:44:44.000Z
tests/test_project_setups.py
insspb/python3-boilerplate
7d70cd8a7bbbe2805ae5f4cb538996a30b96c736
[ "MIT" ]
11
2019-08-31T08:37:40.000Z
2019-08-31T11:25:29.000Z
tests/test_project_setups.py
insspb/python3-boilerplate
7d70cd8a7bbbe2805ae5f4cb538996a30b96c736
[ "MIT" ]
1
2020-11-24T11:18:50.000Z
2020-11-24T11:18:50.000Z
import pytest """ This file include several configuration of answers to setup file. Each configuration should be completed without errors to pass this tests. """ @pytest.mark.skip def test_all_python_versions_deploy(): """Test setup.py format correct for all Python versions support.""" pass @pytest.mark.s...
16.342105
77
0.750403
import pytest @pytest.mark.skip def test_all_python_versions_deploy(): pass @pytest.mark.skip def test_2x_only_python_version_deploy(): pass @pytest.mark.skip def test_3x_only_python_versions_deploy(): pass @pytest.mark.skip def test_markdown_documentation(): pass @pytest.mark.skip def test_...
true
true
f724e874d78e8be3faac5983bcecca02a0597e59
4,291
py
Python
benchmark/startQiskit_QC2348.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2348.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2348.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=36 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
35.172131
165
0.655558
import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np...
true
true
f724e8a3de033be4e0d6edde1760bbeabfca72f8
1,538
py
Python
clients/python-legacy/generated/test/test_queue_item_impl.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/python-legacy/generated/test/test_queue_item_impl.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/python-legacy/generated/test/test_queue_item_impl.py
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
# coding: utf-8 """ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification # noqa: E501 The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
26.982456
85
0.641743
from __future__ import absolute_import import unittest import datetime import openapi_client from openapi_client.models.queue_item_impl import QueueItemImpl from openapi_client.rest import ApiException class TestQueueItemImpl(unittest.TestCase): def setUp(self): pass def tearDown(self): ...
true
true
f724e8d11edae12200491270eda330db309592bd
927
py
Python
test/test_create_records.py
Borye/vika.py
7b4ac29d308e00e2bbfc37dbcaa3f6c7a4a2236f
[ "MIT" ]
39
2020-10-27T13:17:37.000Z
2022-03-17T11:04:39.000Z
test/test_create_records.py
Borye/vika.py
7b4ac29d308e00e2bbfc37dbcaa3f6c7a4a2236f
[ "MIT" ]
9
2020-10-27T14:44:48.000Z
2022-01-19T04:46:58.000Z
test/test_create_records.py
Borye/vika.py
7b4ac29d308e00e2bbfc37dbcaa3f6c7a4a2236f
[ "MIT" ]
8
2020-10-27T15:12:34.000Z
2022-01-19T14:23:15.000Z
import unittest import time from vika import Vika from . import TEST_TABLE, TEST_API_BASE, TEST_API_TOKEN class TestCreateRecords(unittest.TestCase): def setUp(self): vika = Vika(TEST_API_TOKEN) vika.set_api_base(TEST_API_BASE) self.dst = vika.datasheet(TEST_TABLE) def test_record_cre...
24.394737
55
0.577131
import unittest import time from vika import Vika from . import TEST_TABLE, TEST_API_BASE, TEST_API_TOKEN class TestCreateRecords(unittest.TestCase): def setUp(self): vika = Vika(TEST_API_TOKEN) vika.set_api_base(TEST_API_BASE) self.dst = vika.datasheet(TEST_TABLE) def test_record_cre...
true
true
f724e8e9d1a8e16562e5a832d20c371877bd9ce1
17,324
py
Python
openmaptiles/mbtile_tools.py
smellman/openmaptiles-tools
c310d1a57d60477c0452575c5b1983bce3fffac2
[ "MIT" ]
3
2021-02-02T10:16:43.000Z
2021-06-14T20:00:06.000Z
openmaptiles/mbtile_tools.py
smellman/openmaptiles-tools
c310d1a57d60477c0452575c5b1983bce3fffac2
[ "MIT" ]
1
2021-02-23T17:02:14.000Z
2021-02-23T17:02:14.000Z
openmaptiles/mbtile_tools.py
isabella232/openmaptiles-tools
84e76e7dd5e7118de8dd11f1945607de04d3ea0e
[ "MIT" ]
1
2020-08-13T09:01:10.000Z
2020-08-13T09:01:10.000Z
import json import os import sqlite3 from datetime import datetime from pathlib import Path import asyncpg from tabulate import tabulate from typing import Dict from openmaptiles.pgutils import get_postgis_version, get_vector_layers from openmaptiles.sqlite_utils import query from openmaptiles.sqltomvt import MvtGene...
40.571429
90
0.510102
import json import os import sqlite3 from datetime import datetime from pathlib import Path import asyncpg from tabulate import tabulate from typing import Dict from openmaptiles.pgutils import get_postgis_version, get_vector_layers from openmaptiles.sqlite_utils import query from openmaptiles.sqltomvt import MvtGene...
true
true
f724e92c199fe24cf4485298fdf880c51432d6c6
6,498
py
Python
onnx_chainer/functions/__init__.py
blakexu/chainer
f3c2948af2796bb5096f628220fd7321120e1a75
[ "MIT" ]
1
2019-10-30T06:43:45.000Z
2019-10-30T06:43:45.000Z
onnx_chainer/functions/__init__.py
blakexu/chainer
f3c2948af2796bb5096f628220fd7321120e1a75
[ "MIT" ]
null
null
null
onnx_chainer/functions/__init__.py
blakexu/chainer
f3c2948af2796bb5096f628220fd7321120e1a75
[ "MIT" ]
null
null
null
from onnx_chainer.functions.activation import convert_ClippedReLU # NOQA from onnx_chainer.functions.activation import convert_ELU # NOQA from onnx_chainer.functions.activation import convert_HardSigmoid # NOQA from onnx_chainer.functions.activation import convert_LeakyReLU # NOQA from onnx_chainer.functions.activa...
62.480769
91
0.851185
from onnx_chainer.functions.activation import convert_ClippedReLU from onnx_chainer.functions.activation import convert_ELU from onnx_chainer.functions.activation import convert_HardSigmoid from onnx_chainer.functions.activation import convert_LeakyReLU from onnx_chainer.functions.activation import convert_LogS...
true
true
f724eb2bf2b936eabc0cf6b12314246ce61bb4cc
244
py
Python
crypten/common/__init__.py
vreis/CrypTen-2
839a751277a901e4edd9166a720fb3a29deac641
[ "MIT" ]
2
2020-03-23T18:32:13.000Z
2020-12-11T10:54:08.000Z
crypten/common/__init__.py
vreis/CrypTen-2
839a751277a901e4edd9166a720fb3a29deac641
[ "MIT" ]
null
null
null
crypten/common/__init__.py
vreis/CrypTen-2
839a751277a901e4edd9166a720fb3a29deac641
[ "MIT" ]
2
2020-04-15T19:28:02.000Z
2020-04-16T01:59:30.000Z
#!/usr/bin/env python3 # 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. __all__ = ["rng", "tensor_types", "util"]
27.111111
65
0.721311
__all__ = ["rng", "tensor_types", "util"]
true
true
f724ebf9502cb921a15388d5af77f9d5423ced5c
104,651
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_firewall_policy6.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_firewall_policy6.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_firewall_policy6.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of th...
32.230059
144
0.32553
from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', 'metadata_version': '1.1'} DOCUMENTATION = ''' --- module: fortios_firewall_policy6 short_description:...
true
true
f724ef7c58e53166da599152abac034e13800121
368
py
Python
copyspecial/my_test.py
rayedbar/google_python_exercises
9b0903ab9acd91ca82d9568725139cfbb43edae6
[ "Apache-2.0" ]
null
null
null
copyspecial/my_test.py
rayedbar/google_python_exercises
9b0903ab9acd91ca82d9568725139cfbb43edae6
[ "Apache-2.0" ]
null
null
null
copyspecial/my_test.py
rayedbar/google_python_exercises
9b0903ab9acd91ca82d9568725139cfbb43edae6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import os import subprocess filename = 'haha.txt' try: f = open(filename, 'rU') text = f.read() f.close() except IOError: ## Control jumps directly to here if any of the above lines throws IOError. sys.stderr.write('problem reading:' + filename) ## In any case, the code th...
21.647059
79
0.701087
import sys import os import subprocess filename = 'haha.txt' try: f = open(filename, 'rU') text = f.read() f.close() except IOError:
true
true
f724efb25c23769a08c939a3c661b1d41864648b
7,801
py
Python
laser-chess-backend/app/core/routers/users.py
tojatos/laser-tactics
538bef7ab03bf35c0ef27e195001f6f7f12c1ba4
[ "MIT" ]
2
2021-12-12T03:45:18.000Z
2021-12-21T03:53:23.000Z
laser-chess-backend/app/core/routers/users.py
tojatos/laser-tactics
538bef7ab03bf35c0ef27e195001f6f7f12c1ba4
[ "MIT" ]
1
2022-03-26T15:13:29.000Z
2022-03-26T15:13:29.000Z
laser-chess-backend/app/core/routers/users.py
tojatos/laser-tactics
538bef7ab03bf35c0ef27e195001f6f7f12c1ba4
[ "MIT" ]
null
null
null
from fastapi import Depends, HTTPException from fastapi import status, APIRouter from jose import JWTError, jwt from sqlalchemy.orm import Session from app.core.dependecies import get_db, SECRET_KEY, ALGORITHM, TokenPurpose, get_current_active_user, get_current_user, \ verify_password from app.core.internal import...
46.159763
122
0.735419
from fastapi import Depends, HTTPException from fastapi import status, APIRouter from jose import JWTError, jwt from sqlalchemy.orm import Session from app.core.dependecies import get_db, SECRET_KEY, ALGORITHM, TokenPurpose, get_current_active_user, get_current_user, \ verify_password from app.core.internal import...
true
true
f724f1291e5caf124dff577988cb066ae98c82f0
22,034
py
Python
tests/gcp/hooks/test_bigtable.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-09-19T15:22:15.000Z
2019-09-19T15:22:15.000Z
tests/gcp/hooks/test_bigtable.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2017-05-11T22:57:49.000Z
2017-05-11T22:57:49.000Z
tests/gcp/hooks/test_bigtable.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-11-16T09:03:58.000Z
2020-11-16T09:03:58.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
49.626126
102
0.745983
import unittest import google from google.cloud.bigtable import Client from google.cloud.bigtable.instance import Instance from tests.contrib.utils.base_gcp_mock import mock_base_gcp_hook_no_default_project_id, \ mock_base_gcp_hook_default_project_id, GCP_PROJECT_ID_HOOK_UNIT_TEST from tests.c...
true
true
f724f160afc41ed74cc89d83afb1c22e3d02f806
3,920
py
Python
example.py
byu-dml/d3m-profiler
9a3bc45061267091b0109f2159648785e370a18b
[ "MIT" ]
null
null
null
example.py
byu-dml/d3m-profiler
9a3bc45061267091b0109f2159648785e370a18b
[ "MIT" ]
5
2020-04-22T19:15:06.000Z
2021-03-25T15:28:30.000Z
example.py
byu-dml/d3m-profiler
9a3bc45061267091b0109f2159648785e370a18b
[ "MIT" ]
null
null
null
import numpy as np import multiprocessing as mp import pathlib as pl import pandas as pd import pickle from sklearn.ensemble import RandomForestClassifier from sklearn.svm import SVC as SupportVectorClassifier from sklearn.metrics import accuracy_score, f1_score from sklearn.model_selection import train_test_split fro...
36.981132
152
0.685969
import numpy as np import multiprocessing as mp import pathlib as pl import pandas as pd import pickle from sklearn.ensemble import RandomForestClassifier from sklearn.svm import SVC as SupportVectorClassifier from sklearn.metrics import accuracy_score, f1_score from sklearn.model_selection import train_test_split fro...
true
true
f724f1b8cc56dd4a31f3d47d459ebef89ff7cdca
21,725
py
Python
mmdet/datasets/coco.py
YunongPan/swin_gui
52adc917d3413781e76609d021c6a2579fdf44d1
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/coco.py
YunongPan/swin_gui
52adc917d3413781e76609d021c6a2579fdf44d1
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/coco.py
YunongPan/swin_gui
52adc917d3413781e76609d021c6a2579fdf44d1
[ "Apache-2.0" ]
null
null
null
import itertools import logging import os.path as osp import tempfile from collections import OrderedDict import mmcv import numpy as np import pycocotools from mmcv.utils import print_log from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval from terminaltables import AsciiTable from mmdet.core...
40.683521
79
0.529758
import itertools import logging import os.path as osp import tempfile from collections import OrderedDict import mmcv import numpy as np import pycocotools from mmcv.utils import print_log from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval from terminaltables import AsciiTable from mmdet.core...
true
true
f724f1c71834d7b7a9d035b610d98d0f0773158a
1,933
py
Python
website/migrations/0005_auto_20191213_1623.py
mwalsh161/iquise-website
ab674d7881e418fe02b533ae477982e328e8fec7
[ "MIT" ]
1
2021-12-19T01:05:26.000Z
2021-12-19T01:05:26.000Z
website/migrations/0005_auto_20191213_1623.py
iQuISE/iquise-website
e6125fe938c549e020cd53a5aa718de101e972e9
[ "MIT" ]
16
2020-07-29T14:12:30.000Z
2021-08-24T13:00:48.000Z
website/migrations/0005_auto_20191213_1623.py
mwalsh161/iquise-website
ab674d7881e418fe02b533ae477982e328e8fec7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-12-13 21:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0004_presenter_profile_image_thumb'), ] ...
39.44898
144
0.608381
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0004_presenter_profile_image_thumb'), ] operations = [ migrations.CreateModel( name='Embed...
true
true
f724f29c529e0e3435e1c89bd6dd7fdf76857abc
14,833
py
Python
scripts/tool_shed/migrate_tools_to_repositories.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
scripts/tool_shed/migrate_tools_to_repositories.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
4
2017-05-24T19:36:34.000Z
2019-08-23T02:49:18.000Z
scripts/tool_shed/migrate_tools_to_repositories.py
abretaud/galaxy
1ad89511540e6800cd2d0da5d878c1c77d8ccfe9
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ''' Migrate old Galaxy tool shed to next gen Galaxy tool shed. Specifically, the tool archives stored as files in the old tool shed will be migrated to mercurial repositories in the next gen tool shed. This script can be run any number of times as it initially eliminates any current repositories...
43.884615
140
0.644239
''' Migrate old Galaxy tool shed to next gen Galaxy tool shed. Specifically, the tool archives stored as files in the old tool shed will be migrated to mercurial repositories in the next gen tool shed. This script can be run any number of times as it initially eliminates any current repositories and db records assoc...
false
true
f724f2e2d80fad9431aae8674677cf6022972166
7,735
py
Python
telepresence/proxy/remote.py
Nesurion/telepresence
cfe60eb91b42345ff890b7726c6388e923bc441a
[ "Apache-2.0" ]
null
null
null
telepresence/proxy/remote.py
Nesurion/telepresence
cfe60eb91b42345ff890b7726c6388e923bc441a
[ "Apache-2.0" ]
null
null
null
telepresence/proxy/remote.py
Nesurion/telepresence
cfe60eb91b42345ff890b7726c6388e923bc441a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
35.645161
78
0.587589
import json from subprocess import STDOUT, CalledProcessError from typing import Dict, Optional from telepresence import image_version from telepresence.runner import Runner class RemoteInfo(object): def __init__( self, runner: Runner, deployment_name: str, pod_name...
true
true
f724f33ecccdbc81d47a05655141217459e84376
3,882
py
Python
src/simulate.py
ElanVB/noisy_signal_prop
3ad81e15f02a92b3a669c9b81c8b2f12f331a1b6
[ "MIT" ]
5
2018-10-31T08:55:37.000Z
2020-01-14T08:18:22.000Z
src/simulate.py
ElanVB/noisy_signal_prop
3ad81e15f02a92b3a669c9b81c8b2f12f331a1b6
[ "MIT" ]
null
null
null
src/simulate.py
ElanVB/noisy_signal_prop
3ad81e15f02a92b3a669c9b81c8b2f12f331a1b6
[ "MIT" ]
null
null
null
# imports import numpy as np import os, sys, pickle file_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(file_dir) # custom import from theory import depth from viz import get_colours from numpy_simulation import * from utils import load_experiment from theory import critical_point def perform_exp...
44.62069
89
0.519578
import numpy as np import os, sys, pickle file_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(file_dir) from theory import depth from viz import get_colours from numpy_simulation import * from utils import load_experiment from theory import critical_point def perform_experiment(experiments): ...
true
true
f724f3b40f32d0b3f43e1e0eb69678d13e641ccd
872
py
Python
python-threatexchange/threatexchange/extensions/text_tlsh/tests/test_tlsh_hash_and_match.py
dxdc/ThreatExchange
f9aff6dd0c90e6c47ffe4151bced4de1676d84f6
[ "BSD-3-Clause" ]
null
null
null
python-threatexchange/threatexchange/extensions/text_tlsh/tests/test_tlsh_hash_and_match.py
dxdc/ThreatExchange
f9aff6dd0c90e6c47ffe4151bced4de1676d84f6
[ "BSD-3-Clause" ]
null
null
null
python-threatexchange/threatexchange/extensions/text_tlsh/tests/test_tlsh_hash_and_match.py
dxdc/ThreatExchange
f9aff6dd0c90e6c47ffe4151bced4de1676d84f6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import unittest from threatexchange.extensions.text_tlsh.text_tlsh import TextTLSHSignal try: import tlsh _DISABLED = False except ImportError: _DISABLED = True @unittest.skipIf(_DISABLED, "tlsh not installed") class TLSHHasherModul...
31.142857
79
0.681193
import unittest from threatexchange.extensions.text_tlsh.text_tlsh import TextTLSHSignal try: import tlsh _DISABLED = False except ImportError: _DISABLED = True @unittest.skipIf(_DISABLED, "tlsh not installed") class TLSHHasherModuleUnitTest(unittest.TestCase): def test_tlsh_from_string(self): ...
true
true
f724f4175b844d00837287ebdccd736416103c4b
4,382
py
Python
jeremy/plotting/.Test4TESTESETES.py
jupsal/schmies-jTEM
565696dbabc70adb50aaaab8f61fad0f91f123c0
[ "BSD-2-Clause" ]
null
null
null
jeremy/plotting/.Test4TESTESETES.py
jupsal/schmies-jTEM
565696dbabc70adb50aaaab8f61fad0f91f123c0
[ "BSD-2-Clause" ]
null
null
null
jeremy/plotting/.Test4TESTESETES.py
jupsal/schmies-jTEM
565696dbabc70adb50aaaab8f61fad0f91f123c0
[ "BSD-2-Clause" ]
null
null
null
########################################################################### # This file holds the plotting routine for the KP solution from the Schmiesy # Thesie. There is no timestepping, it plots only the initial condition. ############################################################################ import numpy as ...
36.823529
116
0.620037
false
true
f724f5a468382942a4bfe330e8981878747ab446
342
py
Python
backend/rumergy_backend/rumergy/serializers/data_log_measures_serializer.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-11-08T00:28:37.000Z
2021-11-08T00:28:37.000Z
backend/rumergy_backend/rumergy/serializers/data_log_measures_serializer.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-11-02T02:17:37.000Z
2021-11-02T02:17:37.000Z
backend/rumergy_backend/rumergy/serializers/data_log_measures_serializer.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-10-18T22:27:04.000Z
2021-10-18T22:27:04.000Z
from rumergy_backend.rumergy.models import DataLogMeasures from rest_framework import serializers class DataLogMeasuresSerializer(serializers.ModelSerializer): """Serializer for data log measures model""" class Meta: model = DataLogMeasures fields = ["id", "data_log", "data_point", "value", "...
31.090909
81
0.736842
from rumergy_backend.rumergy.models import DataLogMeasures from rest_framework import serializers class DataLogMeasuresSerializer(serializers.ModelSerializer): class Meta: model = DataLogMeasures fields = ["id", "data_log", "data_point", "value", "timestamp", "status"]
true
true
f724f7cfee52c3eaa2ba94c61fd8676dd873a730
56,226
py
Python
python/paddle/nn/layer/conv.py
SmirnovKol/Paddle
a3730dc87bc61593514b830727e36e5d19e753cd
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/nn/layer/conv.py
SmirnovKol/Paddle
a3730dc87bc61593514b830727e36e5d19e753cd
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/layer/conv.py
SmirnovKol/Paddle
a3730dc87bc61593514b830727e36e5d19e753cd
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
47.974403
417
0.571426
import numpy as np from paddle import get_flags from ...device import get_cudnn_version from .. import Layer from ..initializer import Normal from .. import functional as F from ...fluid.layers import utils from ..functional.conv import _update_padding_nd from ...device import is_compiled_with_cuda fro...
true
true
f724fa482a2e003d04725bb8120a96a0f5ea185d
232
py
Python
torpedo/dialects/torpedo-vertica/tests/connection_config.py
darKoram/torpedo
fbda29225044e946465bae3782a3071d0d1a2fe3
[ "MIT" ]
1
2015-02-28T14:42:57.000Z
2015-02-28T14:42:57.000Z
torpedo/dialects/torpedo-vertica/tests/connection_config.py
darKoram/torpedo
fbda29225044e946465bae3782a3071d0d1a2fe3
[ "MIT" ]
null
null
null
torpedo/dialects/torpedo-vertica/tests/connection_config.py
darKoram/torpedo
fbda29225044e946465bae3782a3071d0d1a2fe3
[ "MIT" ]
null
null
null
drivername = 'vertica+pyodbc' username = 'your_name' host = 'your_host_ip_or_hostname' database = 'your_db_name' # odbcinst.ini entry [vertica_deploy_test_db] odbcpath = '/path/to/your/odbc.ini' datasource = 'your_odbc.ini_section'
29
45
0.780172
drivername = 'vertica+pyodbc' username = 'your_name' host = 'your_host_ip_or_hostname' database = 'your_db_name' odbcpath = '/path/to/your/odbc.ini' datasource = 'your_odbc.ini_section'
true
true
f724fa517398283eeaa453c0a6afffa1631cdf46
3,846
py
Python
TA-linode/bin/ta_linode/aob_py3/splunktalib/common/log.py
jriddle-linode/splunk-addon-linode
5954acd12ef88ab991365ef51072db68aed46aa1
[ "Apache-2.0" ]
11
2020-01-23T11:32:26.000Z
2021-09-23T09:24:02.000Z
TA-linode/bin/ta_linode/aob_py3/splunktalib/common/log.py
jriddle-linode/splunk-addon-linode
5954acd12ef88ab991365ef51072db68aed46aa1
[ "Apache-2.0" ]
26
2019-07-15T02:38:22.000Z
2021-12-01T04:14:17.000Z
TA-linode/bin/ta_linode/aob_py3/splunktalib/common/log.py
jriddle-linode/splunk-addon-linode
5954acd12ef88ab991365ef51072db68aed46aa1
[ "Apache-2.0" ]
6
2019-07-14T17:44:06.000Z
2020-11-17T17:33:23.000Z
# SPDX-FileCopyrightText: 2020 Splunk Inc. # # SPDX-License-Identifier: Apache-2.0 """ Copyright (C) 2005-2019 Splunk Inc. All Rights Reserved. log utility for TA """ from builtins import object import logging import logging.handlers as handlers import os.path as op from splunktalib.splunk_platform import make_splun...
28.488889
98
0.608684
from builtins import object import logging import logging.handlers as handlers import os.path as op from splunktalib.splunk_platform import make_splunkhome_path import splunktalib.common.util as cutil from splunktalib.common.pattern import singleton import time logging.Formatter.converter = time.gmtime def log...
true
true
f724fb20745e78bebd0c20e4126667f97df1a297
1,882
py
Python
toontown/chat/ToonChatGarbler.py
philicheese2003/ToontownProjectAltisServer
cfa225d1bdddacdbd29b621382347fce17e1dc66
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/chat/ToonChatGarbler.py
kool601/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
null
null
null
toontown/chat/ToonChatGarbler.py
kool601/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
2
2017-12-20T17:46:56.000Z
2021-06-25T02:56:36.000Z
import string import random from toontown.toonbase import TTLocalizer from otp.otpbase import OTPLocalizer from otp.chat import ChatGarbler class ToonChatGarbler(ChatGarbler.ChatGarbler): animalSounds = {'dog': TTLocalizer.ChatGarblerDog, 'cat': TTLocalizer.ChatGarblerCat, 'mouse': TTLocalizer.ChatGarble...
36.901961
63
0.652497
import string import random from toontown.toonbase import TTLocalizer from otp.otpbase import OTPLocalizer from otp.chat import ChatGarbler class ToonChatGarbler(ChatGarbler.ChatGarbler): animalSounds = {'dog': TTLocalizer.ChatGarblerDog, 'cat': TTLocalizer.ChatGarblerCat, 'mouse': TTLocalizer.ChatGarble...
true
true
f724fb8f9f9d4d1e3c0793409f6c05445f76ed63
5,652
py
Python
xscale/signal/tests/test_fitting.py
serazing/xscale
a804866aa6f6a5a0f293a7f6765ea17403159134
[ "Apache-2.0" ]
24
2017-02-28T15:01:29.000Z
2022-02-22T08:26:23.000Z
xscale/signal/tests/test_fitting.py
serazing/xscale
a804866aa6f6a5a0f293a7f6765ea17403159134
[ "Apache-2.0" ]
19
2017-02-24T12:30:26.000Z
2022-02-25T04:57:32.000Z
xscale/signal/tests/test_fitting.py
serazing/xscale
a804866aa6f6a5a0f293a7f6765ea17403159134
[ "Apache-2.0" ]
10
2017-03-04T02:59:42.000Z
2021-11-14T12:40:54.000Z
# Python 2/3 compatibility from __future__ import absolute_import, division, print_function import xarray as xr import numpy as np import pandas as pd import xscale.signal.fitting as xfit def test_polyfit(): Nt, Nx, Ny = 100, 128, 128 rand = xr.DataArray(np.random.rand(Nt, Nx, Ny), dims=['time', 'x', 'y']) slopes =...
43.476923
77
0.607396
from __future__ import absolute_import, division, print_function import xarray as xr import numpy as np import pandas as pd import xscale.signal.fitting as xfit def test_polyfit(): Nt, Nx, Ny = 100, 128, 128 rand = xr.DataArray(np.random.rand(Nt, Nx, Ny), dims=['time', 'x', 'y']) slopes = 0.02 * xr.DataArray(np.co...
true
true
f724fdc85b1773dff69d97659ac96bcf9ba268b2
937
py
Python
sql/hive/src/test/resources/data/scripts/dumpdata_script.py
OlegPt/spark
c79fd911ca85f883c493c5e888f7690868d7b5ea
[ "Apache-2.0" ]
35,083
2015-01-01T03:05:13.000Z
2022-03-31T21:57:40.000Z
sql/hive/src/test/resources/data/scripts/dumpdata_script.py
OlegPt/spark
c79fd911ca85f883c493c5e888f7690868d7b5ea
[ "Apache-2.0" ]
32,117
2015-01-01T00:00:24.000Z
2022-03-31T23:54:58.000Z
sql/hive/src/test/resources/data/scripts/dumpdata_script.py
OlegPt/spark
c79fd911ca85f883c493c5e888f7690868d7b5ea
[ "Apache-2.0" ]
29,687
2015-01-01T02:40:43.000Z
2022-03-31T16:49:33.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.464286
61
0.736393
import sys for i in range(50): for j in range(5): for k in range(20022): print(20000 * i + k) for line in sys.stdin: pass
true
true
f724feb3c1b587e44e19364e647668548b195782
860
py
Python
grnglow/glow/views/home.py
xiaokai111/green-glow
19e399c32ee4d3cfc026684b06f49df9b7dd10d5
[ "MIT" ]
18
2016-03-19T10:57:43.000Z
2021-10-10T07:52:51.000Z
grnglow/glow/views/home.py
xiaokai111/green-glow
19e399c32ee4d3cfc026684b06f49df9b7dd10d5
[ "MIT" ]
3
2019-06-13T03:15:11.000Z
2020-06-05T18:16:52.000Z
grnglow/glow/views/home.py
xiaokai111/green-glow
19e399c32ee4d3cfc026684b06f49df9b7dd10d5
[ "MIT" ]
11
2017-05-15T14:24:17.000Z
2021-10-10T07:52:56.000Z
# -*- encoding: utf-8 -*- ''' Created on 2012-3-23 @author: Neil ''' from django.shortcuts import render_to_response from grnglow.glow.views import people from grnglow.glow.models.photo import Photo def base(request): return render_to_response('base.html') def index(request): if request.user.is_authenticat...
28.666667
89
0.660465
from django.shortcuts import render_to_response from grnglow.glow.views import people from grnglow.glow.models.photo import Photo def base(request): return render_to_response('base.html') def index(request): if request.user.is_authenticated(): return people.home(request, str(request.user.i...
true
true
f72500addb9c5aa51a6fb2310b80123201744064
5,721
py
Python
parsers/file_name_validators.py
ddexnet/dsrf
1dc231ef911e9ee4fbf2fae77ceaef08755f3f7e
[ "Apache-2.0" ]
34
2016-04-28T13:35:50.000Z
2022-02-21T08:25:21.000Z
parsers/file_name_validators.py
ddexnet/dsrf
1dc231ef911e9ee4fbf2fae77ceaef08755f3f7e
[ "Apache-2.0" ]
2
2020-02-07T16:37:19.000Z
2021-01-13T16:57:40.000Z
parsers/file_name_validators.py
ddexnet/dsrf
1dc231ef911e9ee4fbf2fae77ceaef08755f3f7e
[ "Apache-2.0" ]
16
2016-05-20T12:30:20.000Z
2022-03-24T13:44:16.000Z
# Lint as: python2, python3 # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
38.918367
80
0.707394
from __future__ import absolute_import from __future__ import division from __future__ import print_function from six.moves import zip from dsrf import constants from dsrf import error class FileNameValidator(object): def __init__(self, expected_components): self.expected_components = expected...
true
true
f725013d099dbb0b8a35ade5b1cc606b7b8eb889
3,373
py
Python
webcams/eye_status.py
OlegBezverhii/python-notebooks
5d4b501173a2f3519bff9a085c3d2190ce6cf808
[ "MIT" ]
null
null
null
webcams/eye_status.py
OlegBezverhii/python-notebooks
5d4b501173a2f3519bff9a085c3d2190ce6cf808
[ "MIT" ]
null
null
null
webcams/eye_status.py
OlegBezverhii/python-notebooks
5d4b501173a2f3519bff9a085c3d2190ce6cf808
[ "MIT" ]
null
null
null
import os from PIL import Image import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Conv2D from tensorflow.keras.layers import AveragePooling2D from tensorflow.keras.layers import Flatten from tensorflow.keras.layers import Dense from tensorflow.keras.models import mod...
26.769841
103
0.731693
import os from PIL import Image import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Conv2D from tensorflow.keras.layers import AveragePooling2D from tensorflow.keras.layers import Flatten from tensorflow.keras.layers import Dense from tensorflow.keras.models import mod...
true
true