blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4a6509bc339ace408084b4adb86615b66af80ab | e92a3d0fb77120be99de6040cb6cd34eda0a95f4 | /1.7 Алгоритмы/code_7_algo_Python/quick.py | 91d3e980502c8d6d8cba822a674205e0b574203f | [] | no_license | Python18Academy/python_first_level | 495f85631f5afc737aa156ef8ca0ea307340c322 | 9ce490da3108474b135a17086f4d11f2a3bbbe55 | refs/heads/master | 2023-09-04T17:00:36.920987 | 2021-03-31T18:44:37 | 2021-03-31T18:44:37 | 331,934,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | """
A pure Python implementation of the quick sort algorithm
For doctests run following command:
python3 -m doctest -v quick_sort.py
For manual testing run:
python3 quick_sort.py
"""
from typing import List
def quick_sort(collection: list) -> list:
"""A pure Python implementation of quick sort algorithm
:p... | [
"isakura313@gmail.com"
] | isakura313@gmail.com |
935a2e9c16b9bbc90ddac700a3d33b58d6b9a2c4 | afb572446506500ac2512424c324406b9118a19e | /medium_513. Find Bottom Left Tree Value.py | e1a8a7909433f4534a9541bbd0b92ac107def303 | [] | no_license | sdksfo/leetcode | 11aa578588123a59c111352e89f6b9678f322e16 | fa1ed20d266b9c226f10fdb64528ffae0a595aa4 | refs/heads/master | 2020-04-17T09:14:50.268823 | 2019-05-12T06:13:10 | 2019-05-12T06:13:10 | 166,450,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py |
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def findBottomLeftValue(self, root):
"""
:type root: TreeNode
:rtype: int
"""
q... | [
"sdksfo@gmail.com"
] | sdksfo@gmail.com |
89719df8adc1e62f21a456fab1e8a5b366ddae4d | a989728b92eb141ccef685574a671ed64a01ca9d | /15112/Final Review/recursion_2.py | 8b4b92ea63c04b3cbb16e5853ddfa0b985b2e02f | [] | no_license | jackalsin/Python | 9588f78fb7385a8f51c9842f36242a2d495a9c93 | 0459c8cc963d975a644172a9edaade85e913056c | refs/heads/master | 2021-01-10T10:26:32.708826 | 2017-01-06T04:36:00 | 2017-01-06T04:36:00 | 51,420,101 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # recursion Advanced
#
def powerset(a):
if (len(a) == 0):
return [[]]
else:
otherSet = powerset(a[1:])
result = []
for other in otherSet:
result.append(other + [a[0]])
return otherSet + result
print(sorted(powerset([1,2,3])))
def permutation(l):
if len... | [
"jackal.sin@hotmail.com"
] | jackal.sin@hotmail.com |
ff15d88c9a7b915fc59e0778dbb8674ef7a685e5 | 26f8a8782a03693905a2d1eef69a5b9f37a07cce | /swagger_client/models/destiny_destiny_progression_scope.py | f60cb5b6fdc2e94caff23a3cc004860eb772d2a1 | [] | no_license | roscroft/openapi3-swagger | 60975db806095fe9eba6d9d800b96f2feee99a5b | d1c659c7f301dcfee97ab30ba9db0f2506f4e95d | refs/heads/master | 2021-06-27T13:20:53.767130 | 2017-08-31T17:09:40 | 2017-08-31T17:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | # coding: utf-8
"""
Bungie.Net API
These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
OpenAPI spec version: 2.0.0
Contact: support@bungie.com
Generated by: ... | [
"adherrling@gmail.com"
] | adherrling@gmail.com |
e8bffcbe043aa0ba057b9566abd67462d316ce7f | e1891ca774b6eef5ffb93ef2f734c91d427ffcb4 | /tests/test_atomset.py | bfd78448b7d7b17d7228974f64f39f65bf90d8e1 | [
"BSD-3-Clause"
] | permissive | davidbrochart/atom | d8978f1b21396c3bb51d7f63f82992f0da3b6d4b | a03d5dc845c1c185f3c3f93da95634a22b870a89 | refs/heads/master | 2021-02-13T04:46:55.056174 | 2020-02-20T00:26:21 | 2020-02-20T00:26:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | #------------------------------------------------------------------------------
# Copyright (c) 2019, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"marul@laposte.net"
] | marul@laposte.net |
ad6c076a1d2a3dba21dd49ed61b13bd6f50b1802 | b4b107c74e825ef9a887ff763a6c19ee37905199 | /scripts/music/UCL_MUSIC_adv_xheadshot_v1.py | cd2676dde29df01a6b29079a82841364438a1d6f | [
"MIT"
] | permissive | leiloong/inferbeddings | 6fa21ea2f1925247e48e5c5b140333a150e43c49 | 80492a7aebcdcac21e758514c8af403d77e8594a | refs/heads/master | 2020-03-15T00:05:02.505112 | 2018-02-01T15:56:23 | 2018-02-01T15:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,158 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import itertools
import os
import os.path
import sys
import argparse
import logging
def cartesian_product(dicts):
return (dict(zip(dicts, x)) for x in itertools.product(*dicts.values()))
def summary(configuration):
kvs = sorted([(k, v) for k, v in configurati... | [
"pasquale.minervini@insight-centre.org"
] | pasquale.minervini@insight-centre.org |
a45f91bccb0e24e7c5e80f199027543f2d4c1bfa | 1e8b9aac62de005ff53246b1381271865585355b | /bin/openaps-vendor | e8197c9f6c152a99c3b9b39ab611f494d8a99d19 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jiapei100/openaps | 8624d39fa19afc29106c8f6f53e3179895de6a6e | d8e5878327ff34a41807ed0d94d782c47c28c1ee | refs/heads/master | 2021-05-19T23:37:25.159710 | 2020-04-01T06:40:08 | 2020-04-01T06:40:08 | 252,085,749 | 0 | 0 | MIT | 2020-04-01T06:00:22 | 2020-04-01T06:00:21 | null | UTF-8 | Python | false | false | 803 | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
import sys, os, os.path
import argparse, argcomplete
import openaps
from openaps import cli
from openaps.vendors import plugins
class VendorApp (cli.ConfigApp):
"""
openaps-vendor - Manage vendor plugins.
show - lists all known vendors
add - add a new... | [
"bewest@gmail.com"
] | bewest@gmail.com | |
928b2a71f96e98dbf715c0a6f998236854476b8f | 6cc2d3b96819074f703fc0538dbe54c6bf63f29e | /project_scripts/fdr_thresholed_clique_analysis.py | 9298253e4846d97d7015f276d30197c372e8c339 | [] | no_license | lhogstrom/jailbird | 197685ed1760cf782bf68b2b8bd1cc343f317c11 | c768c40a8caee2367190fab436810d926daee59d | refs/heads/master | 2016-09-02T03:52:50.877322 | 2014-07-29T17:45:26 | 2014-07-29T17:45:26 | 9,912,211 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | #! /usr/bin/env python
'''
-threshold lass matrix acording to connection q-val
-prep to run Rajiv's sig_cliqueselect_tool in matlab
'''
import os
import numpy as np, pandas as pd, scipy as sp
from matplotlib import pyplot as plt
from cmap.analytics.statsig import ConnectivitySignificance
from cmap.io import gct
impor... | [
"hogstrom@broadinstitute.org"
] | hogstrom@broadinstitute.org |
15701c2119ec9e9d5377fb09635453dd89856197 | 40132307c631dccbf7aa341eb308f69389715c73 | /PY3/vene3/Scripts/futurize-script.py | 0501aa29b4488ace1ba5a19d7faac5a5d254b837 | [] | no_license | Bn-com/myProj_octv | be77613cebc450b1fd6487a6d7bac991e3388d3f | c11f715996a435396c28ffb4c20f11f8e3c1a681 | refs/heads/master | 2023-03-25T08:58:58.609869 | 2021-03-23T11:17:13 | 2021-03-23T11:17:13 | 348,676,742 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!F:\Development\myProj\PY3\vene3\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"snakelonely@outlook.com"
] | snakelonely@outlook.com |
738d97840d477209f944440c8a9d12bce1656f3b | 35979ed5415386a78c4b7a73e716e71e9bd86ac1 | /evaluate_synthesis.py | c3d927a235912a270170f3f72878842755b99606 | [
"MIT"
] | permissive | smalgireddy/dusty-gan | 6a082995b467bae5f27a6103fb1e061890e5f30e | 63ea1757660806cd04976b24fc7733ab26b2a3a1 | refs/heads/main | 2023-07-01T18:43:04.665186 | 2021-08-02T07:04:29 | 2021-08-02T07:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | import argparse
import datetime
import json
import os
import os.path as osp
import pprint
from collections import defaultdict
import torch
from tqdm import tqdm
import utils
from datasets import define_dataset
from utils import sigmoid_to_tanh, tanh_to_sigmoid
from utils.metrics.cov_mmd_1nna import compute_cov_mmd_1n... | [
"k_nakashima@irvs.ait.kyushu-u.ac.jp"
] | k_nakashima@irvs.ait.kyushu-u.ac.jp |
e0a19bff99557effc49ee1adb2199bad439ff4d3 | 33e006f5ae711d44d796a0e3ca384caefe1ec299 | /AAATESTY/ZESTAW 9/zad6.py | 1efe75f77540cfc20f9abbef9d1a5e0b90ed0645 | [] | no_license | Cozoob/Algorithms_and_data_structures | 959b188f8cef3e6b7b1fd2a6c45a5e169d8f41fe | f786a397964f71e2938d9fd6268d3428e3ed7992 | refs/heads/main | 2023-08-05T02:23:43.565651 | 2021-09-17T10:52:14 | 2021-09-17T10:52:14 | 407,532,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,216 | py | # Created by Marcin "Cozoob" Kozub 13.06.2021
from queue import PriorityQueue
import random
import networkx as nx
def Marcin_two_drivers(G, s, t):
# u i v to krotki/tablice wierzcholkow u oraz v
def relax(u, distance_u, v, distance_v, parent, G, x):
if distance_v > distance_u + G[x][v]:
... | [
"kozubmarcin10@gmail.com"
] | kozubmarcin10@gmail.com |
ecd9f144b72351eb00b132098e5fa7ffb76ee503 | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3943/AC_py/520583.py | e466b99936533d9d60bf28a805b4cc0ae1f87c2f | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # coding=utf-8
import sys
def permutation(last_list, first_list=[]):
if len(last_list) == 2:
print(' '.join([str(number) for number in first_list + last_list]))
print(' '.join([str(number) for number in first_list + list(reversed(last_list))]))
else:
for i in range(len(last_list)):
... | [
"543271544@qq.com"
] | 543271544@qq.com |
d4e3907f1bcd913d045fb81be640acb8dd754a1a | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/disk/nvramid.py | d1e1eb31346500499e6bae283caf33582c28c607 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | class Nvramid(int):
"""
NVRAM Id
"""
@staticmethod
def get_api_name():
return "nvramid"
| [
"radek@gruchalski.com"
] | radek@gruchalski.com |
55a7b10d3a971d94a71da6e3ea14c11a44315c37 | 6146d080087b21e36347408eea76598f4691ed67 | /code/A/1873.py | e0a1b3efa7f069da4af4d1c290361245c9f3e770 | [] | no_license | banggeut01/algorithm | 682c4c6e90179b8100f0272bf559dbeb1bea5a1d | 503b727134909f46e518c65f9a9aa58479a927e9 | refs/heads/master | 2020-06-27T14:07:51.927565 | 2019-12-19T03:48:30 | 2019-12-19T03:48:30 | 199,800,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | # 1873.py 상호의 배틀필드
import sys
sys.stdin = open('1873input.txt', 'r')
def battle_game(i, j): #i,j 전차위치
global h, w
for act in actions:
if act == 'U':
mymap[i][j] = '^' #방향바꾸기
if 0 <= i - 1 and mymap[i - 1][j] == '.': # 평지면,
mymap[i][j], mymap[i - 1][j] = mymap[i ... | [
"genie121110@gmail.com"
] | genie121110@gmail.com |
45bc289c786b328f5eb7aa247ea6f1a6be18ded6 | eb54d732b5f14f03d9bf2988c6157605c80bbdd5 | /leetcode209.py | d42ce240b4c1722b6e1c346442b37d4b7b13d042 | [] | no_license | tngo0508/practice_coding | 2e60519fed83a9b3c28b52c2d5ec1ee1d2a609ed | 453c9a7b9a8aa80f37b245f9df447525a9b0a2d1 | refs/heads/master | 2022-03-27T01:44:56.589650 | 2020-01-05T18:58:31 | 2020-01-05T18:58:31 | 225,294,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | class Solution:
def minSubArrayLen(self, nums, s):
l, r = 0, -1
sum = 0
res = len(nums) + 1
while(l < len(nums)):
if (sum < s) and (r + 1 < len(nums)):
# if sum is smaller, keep moving right index to increase window
r += 1
s... | [
"tngo0508@gmail.com"
] | tngo0508@gmail.com |
43a9a1ce649f7b08069e85d799d0229141913fca | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_1/Python/Indistinguishible/a.py | 0088a0428077c3b776189c2f0385f6582784a6a2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | lines = open('a.in').read().split("\n")
f = open('a.out', 'w')
def sqrt(n, appr):
appr = long(appr)
if appr**2 <= n:
while appr**2 <= n:
appr += 1
return appr-1
while appr**2 > n:
appr -= 1
return appr
n = int(lines[0])
for i in range(1, n+1):
r, t = ([long(x) f... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
7aec4d52f7e6b8ba60b39eb54ba2018df6a060ea | 128548b223a941c1570aba99c679a698dedb3e72 | /old_script/download_.py | 4cfcf1c9aeb5514873c3582ec7314c1e96539dcf | [] | no_license | hhk86/Barra | de3e8d715f6ead1b425e5b639538df370a4eb11f | ddcf50766bcbdecb602213cccc65cab01146f88b | refs/heads/master | 2020-07-26T18:04:44.006126 | 2019-09-26T07:36:48 | 2019-09-26T07:36:48 | 208,727,872 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | from pymongo import MongoClient
from make_financial_factor import *
class MongoDB():
'''
Connect to local MongoDB
'''
def __init__(self):
self.host = "18.210.68.192"
self.port = 27017
self.db = "basicdb"
self.username = "user"
self.password = "user"
def __e... | [
"hhk0@outlook.com"
] | hhk0@outlook.com |
c2bf2617db42da07c07d136a83f4f72443239f2b | 3961f9f14a2e3ae9806176290a89a1c679612373 | /docs/report/fa20-523-349/project/RankNet/indycar/nabcsv.py | 862ea5b8ed58bc0289746d10cf93d8bd486946e7 | [
"Apache-2.0"
] | permissive | mikahla1/cybertraining-dsc.github.io | c97026096dd36d3fa129c8068b9c1b35ae1617a3 | 168cadb2f755cb6ad4907e5656bd879d57e01e43 | refs/heads/main | 2023-06-10T18:11:53.925182 | 2021-06-30T18:41:43 | 2021-06-30T18:41:43 | 382,053,310 | 0 | 0 | Apache-2.0 | 2021-07-01T14:05:43 | 2021-07-01T14:05:42 | null | UTF-8 | Python | false | false | 5,866 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
CSV File for NAB
Usage:
nabcsv.py [--cmd cmdtype] --threshold threshold --input inputfile --output outputfile
cmdtype ; score by default, to convert nab result file
; flag, to convert flaginfo.csv
; prune, to remove datapoints not in gree... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
192cfa07df18ded043129948f0174c4198c15a4e | c077ee590d003ebada9e292bed0de8cc27fc1c7b | /python/Leetcode/Apr.30day_challenge/0415.py | 5f2f7cc854db785b497c04935a620891e318f222 | [] | no_license | pwchen21/pros | bb744bc451a0ede2a31a6a5c74f7cda7f5abf206 | 9b48e2ec40a3eea12c79b89a00b2be60d65cc8d1 | refs/heads/master | 2023-07-07T11:50:52.599589 | 2023-06-24T19:46:02 | 2023-06-24T19:46:02 | 140,359,861 | 0 | 0 | null | 2020-10-19T17:53:52 | 2018-07-10T01:17:30 | Python | UTF-8 | Python | false | false | 408 | py | class Solution:
def productExceptSelf(self, nums):
ans=[]
left = 1
right = 1
for x in range(len(nums)):
ans.append(left)
left *= nums[x]
for y in range(len(nums)-1, -1, -1):
ans[y] *= right
right *= nums[y]
... | [
"pwchen21@gmail.com"
] | pwchen21@gmail.com |
25fe6c04dc80f7c686731e0d26b484d5f3e47e1e | adbd5d0ea2989623cc930d648e511de2f3a5bf23 | /domainmanager/migrations/0151_auto_20161016_1752.py | d8268f3024f284b95852ff3d94203851fee0107c | [] | no_license | Yshekinah/bpbn | 2f7acf32675ec9343c90c36a344d1f047440ba9b | 173f39270a1607033eb6b8bfd83d98f39337f7d4 | refs/heads/master | 2021-01-16T23:58:21.169023 | 2018-06-28T16:23:43 | 2018-06-28T16:23:43 | 58,466,586 | 1 | 1 | null | 2020-07-22T19:53:50 | 2016-05-10T14:06:50 | JavaScript | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-16 15:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('domainmanager', '0150_auto_20161014_1709'),
]
oper... | [
"david.hampel@gmail.com"
] | david.hampel@gmail.com |
b8c53027e5fb29dc1c85bd76f0aec7aed11312cd | 38b68b2202726bcdea32271448fea22554db6121 | /BOJ/Bronze/10250.py | dcac7363f55d5a1fe49512fe6f55d8dbe5908302 | [] | no_license | Soohee410/Algorithm-in-Python | 42c4f02342dc922e44ee07e3a0e1d6c0a559e0bb | fbc859c092d86174387fe3dc11f16b616e6fdfab | refs/heads/master | 2023-05-06T13:07:19.179143 | 2021-05-14T14:32:44 | 2021-05-14T14:32:44 | 336,232,129 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import sys
import math
T = int(sys.stdin.readline())
for i in range(T):
H,W,N = map(int, sys.stdin.readline().split())
y = math.ceil(N/H)
x = H if N%H==0 else N%H
print('%d%02d' %(x,y))
| [
"ggohee0410@gmail.com"
] | ggohee0410@gmail.com |
b81e758a22313e3cdf647aa8ae0cf3d46e6358fe | fb2e724f2c62e8e6317f261e0ddc42dc2d67a100 | /w3af/plugins/tests/grep/test_csp.py | 9d76271eee2fdad6cd3b96e3e0ce0e3e67453952 | [] | no_license | qatarattack/w3af | 12a864feb85514ad0caebf883106f982a563c5e0 | cb0fa6e1c0ef656d6abc201d8d077745391f8572 | refs/heads/master | 2021-01-20T17:43:38.481921 | 2015-05-02T23:57:22 | 2015-05-02T23:57:22 | 34,966,553 | 1 | 0 | null | 2015-05-02T23:15:38 | 2015-05-02T23:15:37 | null | UTF-8 | Python | false | false | 2,529 | py | """
test_csp.py
Copyright 2013 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af 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 version 2 of the License.
w3af is distributed in the hope tha... | [
"andres.riancho@gmail.com"
] | andres.riancho@gmail.com |
081f52c2e821a7eae83d45fe833f615f07808249 | ad5fe6b2dfba0b04cd8fd638049175fcefe90fcf | /Protheus_WebApp/Modules/SIGABI/BIXLinkTestCase.py | 3b84cda948c5de49521ccf87b7b0bf3c64ef1570 | [
"MIT"
] | permissive | totvs/tir-script-samples | 63833785de206e3e566baeab6f02e07a4313d6be | ccd0eb8038f4f1c91fe17e0813b15ce6dfa52cc9 | refs/heads/master | 2023-08-16T21:52:10.357667 | 2023-08-11T16:58:29 | 2023-08-11T16:58:29 | 148,842,685 | 24 | 22 | MIT | 2023-06-27T20:13:32 | 2018-09-14T21:17:10 | Python | UTF-8 | Python | false | false | 7,971 | py | # -*- coding: utf-8 -*-
import unittest
from tir import Webapp
class BIXLINK(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup('SIGACFG','11/12/2018','T1','D MG 01 ')
inst.oHelper.SetLateralMenu('Ambiente > Extrator Bi')
def test_BIXLINK_CT001(self):
self... | [
"hadrignoli@gmail.com"
] | hadrignoli@gmail.com |
ad62d794ef8f4e1d2220b1564038d6b6ed4ca146 | f3a79fc83061703a90d9f6f78ffa9f3782a58220 | /odbc_into_pandas.py | 0af0f2302cd50d145d38c4571f7fee4bae41a1a0 | [] | no_license | alxfed/work-with | 2e66c459b6a566554c84bc0c2645eec85645eff8 | 456bdb240b021df862f489f871fba9be73bfa844 | refs/heads/master | 2020-09-08T20:59:28.940414 | 2020-01-20T00:08:20 | 2020-01-20T00:08:20 | 221,238,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
"""...
"""
import pandas as pd
import numpy as np
import string
import odbc
import sqlalchemy as sqlalc
def main():
name_of_dsn = 'home'
connection = odbc.dbase.connection_with(name_of_dsn)
SQL = 'select * from companies'
data = pd.read_sql_query(SQL, connection)
id = data... | [
"alxfed@gmail.com"
] | alxfed@gmail.com |
7689b456604bd85cbacc8915a73ba08fb4fb7800 | dd098f8a93f787e38676283679bb39a290ba28b4 | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py | 6c1f8b8c8d76688247eb13cac3657003c4e9e2b7 | [
"Apache-2.0"
] | permissive | InfoSec812/openapi-generator | 727c0235d3bad9b85ac12068808f844287af6003 | e0c72702c3d5dae2a627a2926f0cddeedca61e32 | refs/heads/master | 2022-10-22T00:31:33.318867 | 2022-08-20T14:10:31 | 2022-08-20T14:10:31 | 152,479,633 | 1 | 0 | Apache-2.0 | 2023-09-04T23:34:09 | 2018-10-10T19:38:43 | Java | UTF-8 | Python | false | false | 4,584 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
import functools # noqa: F401
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
im... | [
"noreply@github.com"
] | InfoSec812.noreply@github.com |
21e711ca1080d37bdad655d2efe3ed09c915d506 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /bam/data/feature_spec.py | d9eb7df32659c7d2d8c95a72926f5e6c3592d421 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,757 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
7a0b1133e50156b4c9cc35b73aefb8c6798a31ce | 95253e19abd7725d92aa7214a8bffff39e433092 | /honeybot/gui_manager.py | 958cbfc3875dc0e87ee6d8222240a9b1a0a2692d | [
"MIT"
] | permissive | Felipe-Hub/honeybot | b00369631a70c83649f2dfa3c8478fd2b00fc27f | f3e5019918f549e1a63402a8380b54e2811023e9 | refs/heads/master | 2020-07-08T09:44:22.125946 | 2019-08-21T07:36:24 | 2019-08-21T07:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | from tkinter import *
import tkinter as tk
import os
import inspect
import configparser
window = tk.Tk()
window.geometry("650x670")
window.title("Manager")
current_path = os.path.split(os.path.abspath(__file__))[0]
pluginPath = os.path.join(os.sep, current_path, 'plugins')
configPath = os.path.join(os.sep, current_p... | [
"arj.python@gmail.com"
] | arj.python@gmail.com |
852b670d1b442bd3dcd122e9eb8a7cea1dca371e | 7c12b6487874b3db564e5c900be55fd9e050f765 | /hilder_friends/backup/fanggugu/yanzhengma.py | 2ece0a650e526f0b48339cb374582efdffa3ddd9 | [] | no_license | pjkui/githubproject | 9f1ea63bb12903d8a72e0ecb4aa6c8c02a7a45f8 | 808cb78fc3887f35bf838d77d62308fce9e6aa5d | refs/heads/master | 2022-10-06T00:11:34.493886 | 2019-10-07T13:09:18 | 2019-10-07T13:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | import requests
import re
import time
def get_token():
url = 'http://api.ema666.com/Api/userLogin?uName=muliangshu&pWord=mls8715157&Developer=mMMmg1O%2bH%2bBd0FIZ%2blAc6A%3d%3d'
response = requests.get(url=url)
token = response.text
return token
def get_phone(token):
while True:
get_phon... | [
"1735429225@qq.com"
] | 1735429225@qq.com |
47fbbad05e6f569e4c430de20bb9cb1d6582b44b | 612325535126eaddebc230d8c27af095c8e5cc2f | /src/testing/legion/examples/http_example/http_server.py | e575dd1df742a47551a73afde9852bd2a95afa9f | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # 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.
import argparse
import SimpleHTTPServer
import SocketServer
import sys
import threading
import time
class Handler(SimpleHTTPServer.SimpleHTTPRe... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
d0e5cdf457b80228696615a9027837e1c327bfb3 | 652e6171022bb844102e191e9459e73ff2d7901b | /nuitka/codegen/templates/CodeTemplatesLoader.py | d23b3d75d02f9b196192eda19d8766806f949ae4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | pombredanne/Nuitka | e07ee1ba2c027c25e4feebc9751bbb0c1cb338b1 | 02e8d59a275cd7fe482cbc8100e753ff5abe39d7 | refs/heads/develop | 2022-03-16T23:55:49.295972 | 2022-02-20T14:28:23 | 2022-02-20T14:28:23 | 69,127,861 | 0 | 0 | null | 2016-09-24T21:10:20 | 2016-09-24T21:10:20 | null | UTF-8 | Python | false | false | 3,532 | py | # Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
5f245ef94b59288b459a57817f8f6465555cd055 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/08/42/12.py | 315f467452b57f1b314e43c588a52ac4ba2fa4a0 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | from __future__ import generators
import unittest
import psyco
psyco.full()
IMP = (0,0,0,0,0,0)
def handle_case(N,M,A):
for xb in range(1, N+1):
for yc in range(1, M+1):
for xc in range(1, N+1):
t = A+xb*yc
if t%xc == 0 and t/xc<=M:
yb = t/xc
return (0,0... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
bc089ad8ee30893bda86dbb380db8d62d690ec8a | 71b11008ab0455dd9fd2c47107f8a27e08febb27 | /05、接口测试阶段/Day05/1-课堂资料/codeKT0723/test03_insert.py | 8177ff33331b39dad691d169a6c374b9939c382b | [] | no_license | zmh19941223/heimatest2021 | 49ce328f8ce763df0dd67ed1d26eb553fd9e7da4 | 3d2e9e3551a199bda9945df2b957a9bc70d78f64 | refs/heads/main | 2023-08-25T17:03:31.519976 | 2021-10-18T05:07:03 | 2021-10-18T05:07:03 | 418,348,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | """
1).连接到数据库(host:localhost user:root password:root database:books)
2).查询图书表的数据(包括:图书id、图书名称、阅读量、评论量)
3).获取查询结果的总记录数
4).获取查询结果的第一条数据
5).获取全部的查询结果
"""
# 导包
import pymysql
# 创建连接
# 1).连接到数据库(host:localhost user:root password:root database:books)
conn = pymysql.connect(host="localhost",
port=3306... | [
"1780858508@qq.com"
] | 1780858508@qq.com |
a0559f6623a2e3321d7694cae25eb056351006f1 | b0de8a3a9ddd569455b5dc55f282ace34c959ff9 | /NER/ner_rule.py | 925e305a5f21ed57fc301b1fc97f34d7f51f69d6 | [] | no_license | InsaneLife/MyPicture | 82369e1a8f0a1bde432e22fca0d2b24a7d8ac444 | 7d8d394a693230257aa585ba05e9d1524c618e18 | refs/heads/master | 2022-06-16T02:48:42.023726 | 2022-05-27T06:27:30 | 2022-05-27T06:27:30 | 89,673,315 | 156 | 153 | null | null | null | null | UTF-8 | Python | false | false | 4,443 | py | #!/usr/bin/env python
#encoding=utf-8
'''
@Time : 2021/08/03 23:53:52
@Author : Zhiyang.zzy
@Contact : zhiyangchou@gmail.com
@Desc :
'''
# here put the import lib
from collections import defaultdict
def forward_segment(query:str, dic:set):
"""
使用前向匹配识别分词,从前往后匹配字典中的词典,依次选着最长的词语
query: str
... | [
"993001803@qq.com"
] | 993001803@qq.com |
9afca3184c5a5b85ea707a4f2788b9357613103c | 8ff12c53e31f134b9f39f59b9a6f7d4f9142cea7 | /src1/super.py | 335587f2ae733b667ef518c3ae3b8ee998f6574e | [] | no_license | quhuohuo/python | 5b0a80dbec7d22a0b274e4a32d269e85d254718c | 5732c5974519da8e8919dab42b36ab0ab2c99b37 | refs/heads/master | 2021-06-13T11:41:12.356329 | 2017-04-07T08:58:05 | 2017-04-07T08:58:05 | 75,054,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | #!/usr/bin/python
class Person(object):
def __init__(self):
self.height = 160
def about(self,name):
print("{} is about {}".format(name,self.height))
class Girl(Person):
def __init__(self):
super(Girl,self).__init__()
self.breast = 90
def about(self,name):
print... | [
"813559081@qq.com"
] | 813559081@qq.com |
a58ddd2e24ec1f09403cc1cb0ce4a29df82c716a | bcc6819c26bdbf900e2c76cded20047e11bd8c7c | /testj.py | 308ba1e0d81dd45ce423f36c5d6a8dfff929d3e8 | [] | no_license | babiswas/Python-Notes | 44546721e6f16f630bf4e7d4d821a205ff621d79 | f51e407d074f090cf09d25935c032942658203a2 | refs/heads/master | 2020-04-16T14:33:48.436262 | 2019-12-04T04:31:09 | 2019-12-04T04:31:09 | 165,671,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | import os.path,subprocess
from subprocess import STDOUT,PIPE
import time
def compile_java(java_file):
subprocess.check_call(['javac', java_file])
compile_java('Hello.java')
os.system('java Hello') | [
"noreply@github.com"
] | babiswas.noreply@github.com |
01b836428d6b64ce1406546f1f4789e6c71aa0bc | 96526f06564faac28452549e2d2cd31f533e9f6f | /meat/utils/one_hot_test.py | 4edd222418a3c509ee09208cad88a9a3dad62a58 | [
"Apache-2.0"
] | permissive | oushu1zhangxiangxuan1/learn-neat | 6aaad17d9b3feb1a8a798b343ff06981acfb7621 | f185e12282bf4346351cc4d6cfa75238c38afa51 | refs/heads/master | 2020-07-31T19:46:04.725386 | 2020-02-03T03:32:01 | 2020-02-03T03:32:01 | 210,733,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEncoder
import numpy as np
def test():
le = LabelEncoder()
res = le.fit_transform(['a','b','c'])
print(res)
enc = OneHotEncoder()
# enc.fit()
res = enc.fit_transform([[0],[1],[2]])
print(res.toa... | [
"zhang.xiangxuan@oushu.io"
] | zhang.xiangxuan@oushu.io |
517b94657dabbbbc79a0bee55d65ee2d36ec6c21 | 83e41f2ca9215bb933cdb753770ab04fbc962bd8 | /first_steps_in_coding/exercise/07. Fruit Market.py | 24585c4113dadc6b5b43385b6953548ded1af0a0 | [] | no_license | BobsunPower/python_basics | d8f0d3203406eb6cce1bb35a88391e0a2f812f30 | 52f1dbac904bf963fc60bd877e09c79689ce2299 | refs/heads/main | 2023-03-09T02:47:20.401376 | 2021-03-09T22:09:02 | 2021-03-09T22:09:02 | 346,132,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | strawberry_price = float(input())
banana_quantity = float(input())
orange_quantity = float(input())
raspberry_quantity = float(input())
strawberry_quantity = float(input())
raspberry_price = strawberry_price * 0.5
orange_price = raspberry_price * 0.6
banana_price = raspberry_price * 0.2
money = (strawberry_quantity * s... | [
"bobsunpower@gmail.com"
] | bobsunpower@gmail.com |
321ff65aaec969ca5e04fbbdaaf20b0c8dcb272f | b5550fc728b23cb5890fd58ccc5e1668548dc4e3 | /virt/baremetal/db/sqlalchemy/migrate_repo/versions/008_remove_bm_pxe_ips_table.py | bfdedc26c6b1262d0b4dead29c297d5a7d31b0b8 | [] | no_license | bopopescu/nova-24 | 0de13f078cf7a2b845cf01e613aaca2d3ae6104c | 3247a7199932abf9718fb3260db23e9e40013731 | refs/heads/master | 2022-11-20T00:48:53.224075 | 2016-12-22T09:09:57 | 2016-12-22T09:09:57 | 282,140,423 | 0 | 0 | null | 2020-07-24T06:24:14 | 2020-07-24T06:24:13 | null | UTF-8 | Python | false | false | 1,975 | py | #coding:utf-8
# Copyright 2013 Mirantis 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
#
# Unles... | [
"719184289@qq.com"
] | 719184289@qq.com |
4623fbb2846985538836786c201b0a5de2f735d8 | a3c2f2da7791a0d64a44211a5844281f8c6ff838 | /produceHHMTcards_and_plots_oct19_high.py | 4fe30588165dd210fd855c61c47d3b0cc6246f38 | [] | no_license | RemKamal/HH_scripts | 441a21fd319e3a5891bb4eb35994d62e45bbd12e | e48250d8a1fb24a7f35e3bedaf9b89dd205de4db | refs/heads/master | 2020-04-08T02:28:12.274123 | 2018-11-24T13:10:43 | 2018-11-24T13:10:43 | 158,936,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,763 | py | import subprocess
import time
import numpy as np
import sys
start_time = time.time()
trueRun = True
# if len(sys.argv) > 1:
# directo = sys.argv[1]
# print 'all is fine, using', directo
# else:
# print 'not specified "directory", please provide an input'
# sys.exit(1)
# if not directo:
# print '... | [
"remkamal@mail.ru"
] | remkamal@mail.ru |
0b4dd4cf0a572d79c77af6a70cb8b19ce7558fbb | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/CreateHanaBackupPlanRequest.py | 3d9201e5927018c9494f0b5c57b13d88e933c86e | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,845 | py | # 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
7a7a11b452640d0a910ec84319a76009832e9d1c | 6ceea2578be0cbc1543be3649d0ad01dd55072aa | /src/fipy/meshes/pyMesh/cell.py | bf7e9d3b987d03de829e4fa1a7fddfd68a95391b | [
"LicenseRef-scancode-public-domain"
] | permissive | regmi/fipy | 57972add2cc8e6c04fda09ff2faca9a2c45ad19d | eb4aacf5a8e35cdb0e41beb0d79a93e7c8aacbad | refs/heads/master | 2020-04-27T13:51:45.095692 | 2010-04-09T07:32:42 | 2010-04-09T07:32:42 | 602,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | #!/usr/bin/env python
## -*-Pyth-*-
# ###################################################################
# FiPy - Python-based finite volume PDE solver
#
# FILE: "cell.py"
#
# Author: Jonathan Guyer <guyer@nist.gov>
# Author: Daniel Wheeler <daniel.wheeler@nist.gov>
# Author: James Warren <jwarren@nis... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
9b252a5e3b9f95d28fbc5e113c4a1f469a58e7cd | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/a400d6c20a52f0b3cd5415e833263b1f/snippet.py | 5b1c02e04be1ad7e7b70b6926435b81cdfb12a0b | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
# Now you'll be able to read those encoded/compressed
# responses in your vcrpy test artifacts!
# References:
# https://github.com/kevin1024/vcrpy/issues/249
# http://stackoverflow.com/questions/36366234
# Thanks to Reti43 on StackOverflow
import sys
import yaml
# decode_response doesn't exist... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
77d535acea38a7b4ffcc82951c076baa18e50c8b | 8884cb22c63a345e2b92c3f9252b7f1dcc5364f4 | /test.py | 394b0da8067050d3b14b45d29de4ffcff72e7110 | [
"Apache-2.0"
] | permissive | wqn628/kaldi-python-io | b0341933b4b517f22719101cf4dcd48084282218 | a7191049d79beabffab7256327214d6d875ec7b5 | refs/heads/master | 2023-03-17T12:33:36.363148 | 2021-03-18T12:00:05 | 2021-03-18T12:00:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | #!/usr/bin/env python
# wujian@2019
import numpy as np
from kaldi_python_io import ScriptReader, ArchiveReader
from kaldi_python_io import AlignArchiveReader, Nnet3EgsReader
from kaldi_python_io import ArchiveWriter
def test_archive_writer(ark, scp):
# for matrix
with ArchiveWriter(ark, scp) as writer:
... | [
"funcwj@foxmail.com"
] | funcwj@foxmail.com |
ae52796794c2386e0baab8ad7e8295f81fef1e87 | c13641489927190e935fe41c2c9601a06e63829c | /liveagent_api/models/tag.py | ce41bd622ceb04bc92975998c4b6db0540b9367c | [] | no_license | suresh656/LiveAgent-api-python | 5f68b1da6ccb4d9bb8818d5ecca3ee8901c7c371 | d857c99eda5a6edf3dd9c8342d255c081bd3f2f7 | refs/heads/master | 2020-03-19T02:53:59.764620 | 2018-03-20T14:27:33 | 2018-03-20T14:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,691 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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... | [
"mbebjak@qualityunit.com"
] | mbebjak@qualityunit.com |
5a01baf6f4d88341dbc76be7a32ba8dfddfb67b5 | 7d37e86e622fc1d51d190dbc7c88cba43b001953 | /test.py | 76b2ae3663d5fc531eb67c803f4de43175f2c7d3 | [
"MIT"
] | permissive | michalc/s3selectparser | cb5e1c1485cb5e4cee65032ff86c8d4f039a7f58 | 3eb6d19709245f40376396655ee313309f356f73 | refs/heads/master | 2022-12-06T00:05:10.419854 | 2020-08-23T17:06:06 | 2020-08-23T17:06:06 | 286,232,598 | 2 | 0 | MIT | 2020-08-09T13:02:03 | 2020-08-09T12:27:36 | null | UTF-8 | Python | false | false | 2,572 | py | import unittest
from s3selectparser import s3_select_parser
class TestIntegration(unittest.TestCase):
def test_select_all(self):
parsed = s3_select_parser.parseString('SELECT * FROM S3Object')
self.assertEqual(parsed.asDict(), {
'select': '*',
'from': {
't... | [
"michal@charemza.name"
] | michal@charemza.name |
0d27ebe8dcb27d4b3c503c79d73b283ede0e05e4 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi | 79a3e066d8079852d43b82a4836a32cdd75e214f | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 4,103 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools ... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
bd465e5670f50971fdd1a7e8fd5456fefec7fd0a | 47288e23d0248d7bfbda0cfae5bc138d389cbbb6 | /sympy/polys/agca/extensions.py | 49ae4ed655f74c4e02a7245cf04735503c0bcf69 | [] | no_license | cosmosZhou/sympy | d94ce6ad9028d143bb877f46fad4eda1d5dc2173 | 6160fff63636fd81755bd94e777ba450a09df517 | refs/heads/master | 2022-07-30T20:51:35.359580 | 2022-07-11T12:40:50 | 2022-07-11T12:40:50 | 199,948,191 | 3 | 1 | null | 2020-08-26T14:13:49 | 2019-08-01T00:34:25 | Python | UTF-8 | Python | false | false | 3,831 | py | """Finite extensions of ring domains."""
from sympy.polys.polyerrors import CoercionFailed
from sympy.polys.polytools import Poly
class ExtensionElement(object):
"""
Element of a finite extension.
A class of univariate polynomials modulo the ``modulus``
of the extension ``ext``. It is represented by ... | [
"zhoulizhi@patsnap.com"
] | zhoulizhi@patsnap.com |
fbe0720b912720a80392996387092c18ccd49fd0 | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /autodiag_copro/migrations/0004_auto_20190321_1505.py | c9fbccd932dc8dc16e68e4647a44ce8c691952d5 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | # Generated by Django 2.1.5 on 2019-03-21 14:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('autodiag_copro', '0003_auto_20190310_1633'),
]
operations = [
migrations.R... | [
"norman@xael.org"
] | norman@xael.org |
5397910febb4da48fe56fefd31c716d885d57543 | 9f2c8c6b9c7caac464193fa9a995dc7244f3aac5 | /Exercicios Curso Em Video Mundo 1/ex010.py | 1b8c2c9c976a43630ba278a2abb0b132a6e00e08 | [
"MIT"
] | permissive | JorgeTranin/Python_Curso_Em_Video | a5c1a119e30aa08663d5b3e3d86625fb852ccbe8 | be74c9301aafc055bdf883be649cb8b7716617e3 | refs/heads/master | 2021-06-13T23:29:36.184378 | 2020-04-10T00:49:25 | 2020-04-10T00:49:25 | 254,464,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | n1 = float(input('Quanto dinheiro vc tem ai palhaço? R$ '))
t = n1/3.27
print('Essa merreca de R${:.2f} da de comprar US$ {:.2f}'.format(n1, t)) | [
"antoniotraninjorge@gmail.com"
] | antoniotraninjorge@gmail.com |
8a33940fe9c2d49ba09f31bd7d065c029cb41c6f | 5b77ea24ccda4fcf6ed8a269f27ac33d0a47bcad | /Algorithm/test.py | a71cc43ce37313f8f8b103b01e0438a3b9734be6 | [] | no_license | yooseungju/TIL | 98acdd6a1f0c145bff4ae33cdbfbef4f45d5da42 | e6660aaf52a770508fe8778994e40aa43d2484d4 | refs/heads/master | 2020-04-11T21:13:56.981903 | 2019-09-28T12:34:03 | 2019-09-28T12:34:03 | 162,099,150 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | def solution(brown, red):
if red == 1:
return [3,3]
for i in range(1, red):
R = i
if red % R == 0:
C = red // R
else:
continue
c = 1
while True:
if brown == (R + (2 * c)) * (C + (2 * c)) - red:
return [C + (2 * ... | [
"seung338989@gmail.com"
] | seung338989@gmail.com |
bf23e3b191d23df2eec942c9028fc8060ac3f352 | aa91f6e8d59286f65e7f6ed065823c80b7694439 | /scripts/analysis/liutong_owner/v0.1/owner_test.py | ab9b8ca1c1724b711367f2d11cb113ab16b74366 | [
"MIT"
] | permissive | davidyuqiwei/davidyu_stock | 7f93bcc2c50a0e2c356e3b517dbf7e2e7467093f | c234911f49d5980f2dff651333f8ca957333e094 | refs/heads/master | 2023-01-07T02:08:04.330559 | 2023-01-02T16:31:37 | 2023-01-02T16:31:37 | 163,694,812 | 13 | 2 | null | 2022-12-18T03:55:10 | 2018-12-31T20:07:30 | Jupyter Notebook | UTF-8 | Python | false | false | 396 | py | import pandas as pd
file1 = "/home/davidyu/stock/data/tmp/owner_list.csv"
df1 = pd.read_csv(file1)
def check_owner(x):
#enumerate(x['owner_name_list'])
if '香港' in x['owner_name_list'].tolist()[0]:
x['check'] = 1
else:
x['check'] = 0
return x
def test(x):
x['tt']=1
return x
df1.... | [
"davidyuqiwei@outlook.com"
] | davidyuqiwei@outlook.com |
795dfb816d88d20466a739b6fa515b4371aa7974 | 469a3c959e1b2add5a3380b84e26fbb4f8dc885d | /src/test_softmaxreg.py | 78c2e18d6fce70df1f778ec6ff2d129367520a09 | [] | no_license | fengjiran/softmax_regression_pylearn2 | ce8e477d15af6d1279d5219c805e0d09b074f1f9 | b10042372e275bc9b823b986eca37b72c7567218 | refs/heads/master | 2016-09-10T10:43:35.587379 | 2015-07-15T09:50:52 | 2015-07-15T09:50:52 | 39,126,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | #coding:utf-8
'''
Created on 2015��7��15��
@author: Richard
'''
"""
Test for softmax_regression.ipynb
"""
import os
from pylearn2.testing.skip import skip_if_no_data
from pylearn2.config import yaml_parse
from theano import config
def test():
skip_if_no_data()
dirname = os.path.join(os.path.abspath(os.pat... | [
"fengjiran@foxmail.com"
] | fengjiran@foxmail.com |
20dd0a012752438b3b9df7215ba2eaf2e308bac0 | c4347c4a41a5f8dcacb53afc76a76df765453063 | /setup.py | 28a1745aa8f24b698d878ef4d57f887adf3d92f4 | [
"MIT"
] | permissive | connectthefuture/polyglot | 27bc5508d442b21f131ea1337ee005ea2cef7c54 | 7704da0722f9393dfc8d7d0971fa909116e567ed | refs/heads/master | 2021-07-19T10:46:08.972149 | 2017-01-12T13:32:46 | 2017-01-12T13:32:46 | 80,859,941 | 0 | 0 | MIT | 2021-02-09T22:55:50 | 2017-02-03T19:02:11 | CSS | UTF-8 | Python | false | false | 1,765 | py | from setuptools import setup, find_packages
import os
moduleDirectory = os.path.dirname(os.path.realpath(__file__))
exec(open(moduleDirectory + "/polyglot/__version__.py").read())
def readme():
with open(moduleDirectory + '/README.rst') as f:
return f.read()
install_requires = [
'pyyaml',
'pypol... | [
"nothingbutdave@gmail.com"
] | nothingbutdave@gmail.com |
f3d2ad34365e8e60a84a73ebe54a8101f3ae47b1 | b1b77bb1ed47586f96d8f2554a65bcbd0c7162cc | /SPOTIFY/pyschema/pyschema/contrib/jsonschema.py | 3eae11a2c2869e9c3f50e9f5f471d1be97de6a7f | [] | no_license | DanHefrman/stuff | b3624d7089909972ee806211666374a261c02d08 | b98a5c80cfe7041d8908dcfd4230cf065c17f3f6 | refs/heads/master | 2023-07-10T09:47:04.780112 | 2021-08-13T09:55:17 | 2021-08-13T09:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import warnings
warnings.warn(
"pyschema.contrib.jsonschema is deprecated and will be removed.\n"
"Please use the pyschema_extensions.jsonschema package instead.",
DeprecationWarning,
stacklevel=2
)
import pyschema_extensions.jsonschema
from pyschema_extensions.jsonschema import *
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
938b917d12ac77ea4d0c192ff5a30d44e92bee1b | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/webdav/tests/testPUT_factory.py | 2197291e3a93b7a70f765b9502eae50ef0f23193 | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | import unittest
import Testing
import Zope2
Zope2.startup()
from Testing.makerequest import makerequest
import transaction
import base64
auth_info = 'Basic %s' % base64.encodestring('manager:secret').rstrip()
class TestPUTFactory(unittest.TestCase):
def setUp(self):
self.app = makereques... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
08d431affa6ae4a9804ee6ddd154328f6b3dbffa | e3ec7260806c1e2b045a0de93a150a5c3fc1b9df | /test/ResultsAndPrizes/top-3/test_top_3_results_of_the_draw_date_current_date.py | 3f84f5c3d0b49ec026fe0de0380d9715742ef590 | [
"Apache-2.0"
] | permissive | FearFactor1/SPA | 58a21c9ec7a72a78f5ff50214e58faac43a3059d | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | refs/heads/master | 2021-07-07T04:25:12.525595 | 2020-11-16T14:35:33 | 2020-11-16T14:35:33 | 204,684,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # Топ-3 + Результаты тиража по дате + текущая дата
def test_top_3_results_draw_date_current_date(app):
app.ResultAndPrizes.open_page_results_and_prizes()
app.ResultAndPrizes.click_game_top_3()
app.ResultAndPrizes.click_the_results_of_the_draw_date()
app.ResultAndPrizes.click_ok_in_modal_window_curren... | [
"zelezodoroznik@yandex.ru"
] | zelezodoroznik@yandex.ru |
f10c0e8a277d298d1b2bec3428de8b449d40d2b3 | 6280780d3395e037bf9715e2df74a8b269fb17c2 | /posts/urls.py | 8b2cf4db8c33eeaf3a989a3106b5030c7eae385d | [] | no_license | zerobubus/foodgram-project | 3958f045e9dcc0b3a13abb3f310effe09ebadbb9 | eba01ab68bd70166d158f1569c8908a1a4397533 | refs/heads/master | 2023-03-02T17:45:56.705085 | 2021-02-15T13:59:29 | 2021-02-15T13:59:29 | 330,332,268 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | from django.urls import include, path
from . import views
urlpatterns = [
path("", views.index, name="index"),
path("404/", views.page_not_found, name="page_not_found"),
path("500/", views.server_error, name="server_error"),
path("profile/<str:username>/", views.profile, name="profile"),
path(... | [
"spb.etr@yandex.ru"
] | spb.etr@yandex.ru |
ad0319ee926e1e50a1bc7232af8f533e1c962d53 | 62e45255088abb536e9ea6fcbe497e83bad171a0 | /ippython/sumatorio_124.py | 54e8b8d406eaa93ef04fe715eb0baaa00f709ae4 | [] | no_license | jmery24/python | a24f562c8d893a97a5d9011e9283eba948b8b6dc | 3e35ac9c9efbac4ff20374e1dfa75a7af6003ab9 | refs/heads/master | 2020-12-25T21:56:17.063767 | 2015-06-18T04:59:05 | 2015-06-18T04:59:05 | 36,337,473 | 0 | 0 | null | 2015-05-27T02:26:54 | 2015-05-27T02:26:54 | null | UTF-8 | Python | false | false | 581 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 27 08:06:23 2013
@author: daniel
"""
#programa:sumatorio_124.py
#calcula el sumatorio de i**2 utilizando <for in>
#data input
sumatorio = 0
inicial = 2
limite = 0
while inicial > limite:
inicial = int(raw_input('valor inicial: '))
limite = int(raw_input('valor l... | [
"danmery@gmail.com"
] | danmery@gmail.com |
e6b7ab15b6587477ee324b54cfb1d65dd88a68d0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_wisconsinites.py | 9392f24282d1ee922086aa2f1d022b912c480fac | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py |
#calss header
class _WISCONSINITES():
def __init__(self,):
self.name = "WISCONSINITES"
self.definitions = wisconsinite
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['wisconsinite']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ce0cb76aa18cf44ae804d2a74cef88ee015a0fa6 | 0f59e486ea9d7c96b8c3f7f92bf063fc8389f1e8 | /envi/tests/msp430/isetz.py | 93e8821335cd5618056968be6bf8da8251508a28 | [
"Apache-2.0"
] | permissive | vivisect/vivisect | ac259918b6281d9431c32a0b2307c61f9cab0dec | b07e161cc28b19fdda0d047eefafed22c5b00f15 | refs/heads/master | 2023-08-25T09:02:00.526532 | 2023-07-26T03:07:07 | 2023-07-26T03:07:07 | 26,651,759 | 833 | 181 | Apache-2.0 | 2023-09-07T03:43:53 | 2014-11-14T18:28:47 | Python | UTF-8 | Python | false | false | 304 | py | from envi.archs.msp430.regs import *
checks = [
# SETZ
(
'SETZ',
{ 'regs': [], 'flags': [(SR_N, 0), (SR_Z, 0), (SR_C, 0), (SR_V, 0)], 'code': "22d3", 'data': "" },
{ 'regs': [], 'flags': [(SR_N, 0), (SR_Z, 1), (SR_C, 0), (SR_V, 0)], 'code': "22d3", 'data': "" }
),
]
| [
"jroi.martin@gmail.com"
] | jroi.martin@gmail.com |
a66e28d9e58ebdf6c9649a2b0eba69204574cd49 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch69_2020_03_31_23_47_00_972540.py | bd34bcc2db33fc24edab9b4ec93cfa1aa3c5ba97 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | def junta_listas(lista):
lista1=[]
i=0
while i< len(lista):
a=str.join(lista[i])
i+=1
lista1.append(a)
print (lista1)
| [
"you@example.com"
] | you@example.com |
fc3b125149041d6c93e0fa34a2e5f11cbf3639a6 | f875b0d80254c8f6eee4e5887869442a8abf60e4 | /Official_OpenCV_Docs/GUI_Features_In_OpenCV/mouse_events.py | e8be0304ac65a428c4d2c0906af3d87843f5e025 | [] | no_license | AmitKulkarni23/OpenCV | 6d9320fa9e4fd41af4806cda6df0fb2c641d7884 | 449468f4c9c84ffb5b66ab352086e5b23f342b45 | refs/heads/master | 2020-03-19T12:36:23.305898 | 2018-09-16T00:53:51 | 2018-09-16T00:53:51 | 136,528,669 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | # Python file which demontrates mouse button events in OpenCV
# Example sof mouse events
# EVENT_LBUTTONDBLCLK
# EVENT_LBUTTONDOWN
# EVENT_LBUTTONUP
# EVENT_MBUTTONDBLCLK
# EVENT_MBUTTONDOWN
# EVENT_MBUTTONUP
# EVENT_MOUSEHWHEEL
# EVENT_MOUSEMOVE
# EVENT_RBUTTONDBLCLK
# EVENT_RBUTTONDOWN
# EVENT_RBUTTONUP
#############... | [
"amitrkulkarni232@gmail.com"
] | amitrkulkarni232@gmail.com |
a73cea42db3150e0ecda22374292fd5a98b039c4 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Anscombe/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_Anscombe_ConstantTrend_7__20.py | cc6838cb6b4859c4e12550aadeda85e0b62171db | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 272 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "Anscombe", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
23204052123d72a0ceeb6378f4f708a784354f98 | f8a58ae93ff78c59296a136dff721c5ef666790b | /Starting small/Fibonnacci.py | 5a76066130f58d96db637695f5b0d75ea3fb1c5d | [] | no_license | Anthonymcqueen21/Python-Programs | cb116b36e3c774ef51dba7f1fd29561767f89c7f | 127d5cbab4e7a2d0009d65075508cbaf5a6b6dc2 | refs/heads/master | 2021-06-26T18:03:30.212592 | 2017-09-15T19:59:21 | 2017-09-15T19:59:21 | 79,636,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | parents, babies = (1, 1)
while babies < 100:
print 'This generation has {0} babies'.format(babies)
parents, babies = (babies, parents + babies)
| [
"noreply@github.com"
] | Anthonymcqueen21.noreply@github.com |
f8b52879948b58e4e65e817cc6a51fc210727531 | 33e02609e24512b3324ac949ce522a96e2a952a4 | /py/phl/phlurl_watcher__t.py | 1cfde26c9094329fc229eac335bb441281aee923 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jphiii/phabricator-tools | 37d323c7d98f67953106ca525b02fc9e04439571 | 5a9b9d057b6fa47283bb28deb96002c462803818 | refs/heads/master | 2020-12-25T05:29:22.011174 | 2014-07-21T18:19:41 | 2014-07-21T18:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,084 | py | """Test suite for phlurl_watcher."""
# =============================================================================
# TEST PLAN
# -----------------------------------------------------------------------------
# Here we detail the things we are concerned to test and specify which tests
... | [
"jevripiotis@bloomberg.net"
] | jevripiotis@bloomberg.net |
5c9e2a99daa843d138ede06d9b282849bdc26725 | 7f8f49e77c3d71531688c41e5147c75257a661f6 | /analysis/annotation_enrichment.py | 6491fad5386e05e4e848f075804370dae446fb47 | [] | no_license | francosimonetti/trans-eqtl-pipeline | 4ef83e007ee9d4e5aeb8650b30e4684b4150d6e8 | 877b835d832649056cd80cbb7feeedcebebcfb69 | refs/heads/master | 2023-06-19T18:40:55.354166 | 2021-03-02T20:34:29 | 2021-03-02T20:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | import numpy as np
import collections
import os
import argparse
import sys
sys.path.append('./')
from utils import utils
from utils import read_tejaas_results
def parse_args():
parser = argparse.ArgumentParser(description='Calculate annotation enrichment for trans-eQTLs')
parser.add_argument('--annot',
... | [
"bnrj.saikat@gmail.com"
] | bnrj.saikat@gmail.com |
e157c0a6a705a978b298cf61ab28eb62a0a1c635 | 2447effa4ea6ae298c826967cc572583f6bde5d9 | /grants_reports/admin.py | 5e3c36fe4824fb04c6f41be8cba7dc686b0b672b | [] | no_license | lydia-karungi/Ruforum | fc317d74092c9d77903fd5a96b46c296fee9b2a7 | d1d6714fbac47a357bc51f0867f577b98e1bbf62 | refs/heads/main | 2023-02-06T04:10:51.032368 | 2020-12-23T09:11:33 | 2020-12-23T09:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | from django.contrib import admin
from reversion.admin import VersionAdmin
from .models import (
Month12Report, Month18Report, Month24Report, LastReport,
FirstReport, Studentmonth12Report, Studentmonth18Report, Studentmonth24Report,
LastStudentReport, FirstStudentReport, Technology,Beneficiary
)
c... | [
"karungilydia43@gmail.com"
] | karungilydia43@gmail.com |
6a3d5677a5a9f8455b0622a4cede37fcdf5fa428 | d590fe1324fa72f0a22bee03e78cd01b86c71677 | /settings_example.py | cb588150eb9b80b168b1bc6db266eedff460fd9f | [] | no_license | gunny26/homie_esp | efd5ffa1ec475e9839e7e91e5edd5f21ff1c5521 | 58bcbcd097d3c1abff52c1158b94ebab6fd5a39a | refs/heads/main | 2023-02-11T18:41:27.696642 | 2021-01-07T14:26:13 | 2021-01-07T14:26:13 | 327,674,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | # Debug mode disables WDT, print mqtt messages
# DEBUG = False
###
# Wifi settings
###
# Name of Wifi
WIFI_SSID = "YOUR_WIFI_SSID"
# Password for the Wifi
WIFI_PASSWORD = "YOUR_WIFI_PASSWORD"
# Multiple WiFi credentials
# If a ssid near your device matchs a wifi credentials in the dictionary,
# WIFI_SSID and WIFI_... | [
"arthur.messner@gmail.com"
] | arthur.messner@gmail.com |
0905fb26560de87411c21960997c6875014dbccb | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/portal/azure-mgmt-portal/generated_samples/get_list_of_of_items_that_violate_tenant's_configuration.py | 61fbafab6d87131451f7e466baa3c1564f00f009 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,545 | py | # 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 ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
deea930e09d6a60e18d76a92b7cfe16ffaeb611f | f1f3f6230b4eac01c0619991cc3a9a7fb543c8ed | /cmsplugin_news/feeds.py | 52907fb875c093c5b95649c85e99665ad4cd8c7f | [
"BSD-2-Clause"
] | permissive | Troyhy/cmsplugin-news | f85fb6fd59305d9d13957456439911e7d262b8f0 | 456b94bb75797c44fac29f1df6182a2cf5973652 | refs/heads/master | 2021-01-23T13:17:04.579040 | 2013-05-31T12:41:38 | 2013-05-31T12:41:38 | 10,172,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from . import models
from . import settings
class NewsFeed(Feed):
title = settings.FEED_TITLE
description = settings.FEED_DESCRIPTION
title_template = 'cmsplugin_news/feeds/item_title.html'
description_tem... | [
"zerok@zerokspot.com"
] | zerok@zerokspot.com |
fc48134690043d49bf895866d0959aca4540c786 | 73999ce16be0eb0fccd2fc2f08e07bd7b0905eb7 | /tests/flickr_count_job.py | 3a8993d0ad78dfece7269c2a78a6a52dd9979253 | [
"Apache-2.0"
] | permissive | bwhite/hadoopy_hbase | 79027f09668ac95a279903a8796e8fa055cc3a4a | e6156f14884174a1e7135c4f2df4b2e04b29263d | refs/heads/master | 2016-09-15T21:06:15.678970 | 2013-06-24T14:16:49 | 2013-06-24T14:16:49 | 4,660,651 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | #!/usr/bin/python
import hadoopy
def mapper(row, column_families):
yield 'num_rows', 1
def reducer(key, values):
yield key, sum(values)
if __name__ == '__main__':
hadoopy.run(mapper, reducer)
| [
"bwhite@dappervision.com"
] | bwhite@dappervision.com |
e8e9505c0149bcdc1bba216925378fbd6521fef1 | 81b80dcb5dae151903bed55bc717942edb4ecadb | /90_Do_duplicate_subsets.py | 8bdafd0bc138f84e5d3dcbd69cfab1ba2870c249 | [] | no_license | chuzcjoe/Leetcode | 742bbb71e08ae8833865174b40e4a8f3c2529916 | a6eb22c3f84459c3c054c00aec59d0d87b685bfa | refs/heads/master | 2021-07-10T15:40:47.332063 | 2020-09-27T23:54:13 | 2020-09-27T23:54:13 | 198,936,895 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | class Solution(object):
def subsetsWithDup(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
nums = sorted(nums)
def dfs(nums,index,res,path):
if path in res:
pass
... | [
"noreply@github.com"
] | chuzcjoe.noreply@github.com |
ca254c0cf50d017c1192bab15c05e9000d0daf42 | 3f0e349a1e7f0dc40e32e94a82577575115d3b24 | /billometer/tests/statsd_client.py | 32c9a43ad1c83afbb85567c76bcf04bfe960bd2a | [] | no_license | ratheeshspiral09/django-billometer | 157398e205c87546ff470410cd8aeba336a5658d | 9ca0457e26e064bf9b33099ed183ba32abd5105e | refs/heads/master | 2021-01-11T19:03:20.257223 | 2013-12-02T20:19:31 | 2016-05-16T11:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from django.test import TestCase
import statsd
from django.conf import settings
from billometer.utils.carbon import send_data
SAMPLE_RATE = getattr(settings, "STATSD_SAMPLE_RATE", 1)
HOST = getattr(settings, "STATSD_HOST", "10.0.103.159")
PORT = getattr(settings, "PORT", 8125)
class BaseTestCase(TestCase):
pr... | [
"filip@pytloun.cz"
] | filip@pytloun.cz |
e038475865f491077599aba65ce96e0659ead47c | 82a673b34a5d26103f259df1eb8797b865af94c0 | /koalixcrm/crm/documents/paymentreminder.py | 06f7a30d786ff0e34ce68d4b765bdc2d6f01f8db | [
"BSD-3-Clause"
] | permissive | pchaos/koalixcrm | 665f1dad5e3d772518f5bc1968be86542eaa9f0e | 7ce698b62771628b4673ac45fecdef2ad653a4dc | refs/heads/master | 2020-03-16T18:51:23.058113 | 2018-06-13T20:57:36 | 2018-06-13T20:57:36 | 132,889,590 | 1 | 0 | null | 2018-05-10T11:14:27 | 2018-05-10T11:14:26 | null | UTF-8 | Python | false | false | 2,674 | py | # -*- coding: utf-8 -*-
from datetime import *
from django.db import models
from django.utils.translation import ugettext as _
from koalixcrm.crm.const.status import *
from django.core.validators import MaxValueValidator, MinValueValidator
from koalixcrm.crm.documents.salesdocument import SalesDocument, OptionSalesDoc... | [
"aaron.riedener@gmail.com"
] | aaron.riedener@gmail.com |
64182de2360f4c095735187670c8153684b2bdc4 | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox2/py2rhino/_make/data/parser_out/light/rectangular_light_plane.py | dbb30a301d1cd3fe80d69aaf8e803d83f2ba66d9 | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | rectangular_light_plane = {
"input_folder_name": "Light_Methods",
"input_file_name": "RectangularLightPlane",
"output_package_name": "light",
"output_module_name": "rectangular_light_plane",
"doc_html": """
Returns the plane of a rectangular light object.
""",
"syntax_htm... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
46d2a45ed584f5d74b7ecdb971a9542da0ccec45 | 861d25fe3985340dae621d179f7af368e0dd7f39 | /learn_models/learn/migrations/0002_auto_20161221_1647.py | 67860231e48ae0005d3d25fed7a69006cc0350bf | [] | no_license | zhuwei302/python | 1ebcfac3e4f208ba81af93d13b8857bea9497862 | dfad635149b8f307ae0eb5b2b8c348843de663bb | refs/heads/master | 2021-01-19T18:44:32.843216 | 2018-09-18T15:17:21 | 2018-09-18T15:17:21 | 101,160,521 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-21 08:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('learn', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"244840434@qq.com"
] | 244840434@qq.com |
00bad0f33c4448abaef3e6b3cbd03a38ef87c1b9 | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /compress.py | c191cf11606f8c73bad4728f783d04c7f5adf156 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | from typing import List
class Solution:
def compress(self, chars: List[str]) -> int:
p1 = 0
p2 = 0
while p1 < len(chars):
now = chars[p1]
count = 0
while p1 < len(chars) and chars[p1] == now:
p1 += 1
count += 1
... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
45a0225beac8a780ab7a89d7a217fc4e0daece2e | 98081c9557570066c5cd4a66b845e32855fcce53 | /web/pgadmin/tools/debugger/utils/debugger_instance.py | 66393801b70c80ee093adbfc6e156b60a7fa48ca | [
"PostgreSQL"
] | permissive | mk8310/pgadmin4 | 15e5d6cb5ac6b34a6bd2d13b31904c00816fdae6 | ded71be73f219884fe3e4a21adc7aef8fb630764 | refs/heads/master | 2020-11-25T07:09:22.438727 | 2019-12-16T12:56:22 | 2019-12-16T12:56:22 | 228,550,172 | 0 | 0 | NOASSERTION | 2019-12-17T06:39:10 | 2019-12-17T06:39:10 | null | UTF-8 | Python | false | false | 2,474 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2019, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
from flask import... | [
"dpage@pgadmin.org"
] | dpage@pgadmin.org |
497ce91140d10b218d5d5b36d4452fb801b02395 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /testing/testing_submissions/testing_assignment_004/testing_assignment_004/asgi.py | 8e47ade95af977ef1ea52052833d18c6abb2d856 | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 421 | py | """
ASGI config for testing_assignment_004 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefaul... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in |
65c2694ee857ac8849def6e8d2fd1f10a835b044 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/azure-firewall/azext_firewall/vendored_sdks/v2020_05_01/v2020_05_01/operations/_bgp_service_communities_operations.py | b2ded383c93be0ca2b93f65ea4fba46e5a55175d | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 4,308 | py | # 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 ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
ee8e827aadaced4b4c1c363ef3f559e29f80a1dc | b3e363ceea415480ed5cda8b6dd74ec5ab0fc5e3 | /run_real_predict.py | 176da9a512bb74b25bd6e5a53441ea6fc82900e2 | [
"Apache-2.0"
] | permissive | QAQ1551QAQ/ASRFrame | 4c90530b7b865e69512121123461d08ee3e76c10 | 8fa7f0b8a361579b316e9df080e9f95bc880e11e | refs/heads/master | 2020-06-20T02:50:24.633648 | 2019-07-14T16:59:19 | 2019-07-14T16:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from examples.real_predict import predict_sommalpha,predict_dchmm,predict_dcsom
import config
# dcbnn = config.join_model_path("DCBNN1D_cur_best.h5")
dcbnn = config.join_model_path("DCBNN1D_step_30000.h5")
sommalpha = config.join_model_path("language/SOMMalpha_step_11500.h5")
if __name__ == "__main__":
predict_dc... | [
"sailist@outlook.com"
] | sailist@outlook.com |
b1b10447abf9c5015cc86a8e0314833cc528bf90 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/NumPy-Beginner/CODE/Chapter6/determinant.py | 70987c9122e529a17b2e7e5507b17cf876c2059b | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 136 | py | from __future__ import print_function
import numpy as np
A = np.mat("3 4;5 6")
print("A\n", A)
print("Determinant", np.linalg.det(A))
| [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
3bc91f6361ebecd28d9bc044564e49aad83953d1 | e10bbfe65bb69f1261ab62dc790d53048dc122b0 | /plotCarbNonCarbFigure7.py | f969f4557caf4cbc697838ad16acd054d6ed22fe | [] | no_license | newtein/ozone_network | 8cc2182485b3e85e82b0bb7f7d980b6503c82a0a | 4c537e91fa22a74dda004d8f00c812c0559dad36 | refs/heads/master | 2023-05-26T14:11:58.433590 | 2021-06-08T23:43:52 | 2021-06-08T23:43:52 | 375,172,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,879 | py | import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
#import seaborn as sns
import os,sys
import pickle
import random
import math
import time
import numpy as np
import networkx as nx
from mpl_toolkits.basemap import Basemap
from matplotlib.collections import PatchCollection
from matplotlib.patches im... | [
"harshitgujral12@gmail.com"
] | harshitgujral12@gmail.com |
c2f2be1a327df1f3a35aa17a76a6ad945ffd81ef | 85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b | /api/tacticalrmm/accounts/migrations/0017_auto_20210508_1716.py | 38ee27fb6e53bdc9761e76a2916e6630e3c3fad3 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sadnub/tacticalrmm | a4ecaf994abe39244a6d75ed2166222abb00d4f4 | 0af95aa9b1084973642da80e9b01a18dcacec74a | refs/heads/develop | 2023-08-30T16:48:33.504137 | 2023-04-10T22:57:44 | 2023-04-10T22:57:44 | 243,405,684 | 0 | 2 | MIT | 2020-09-08T13:03:30 | 2020-02-27T01:43:56 | Python | UTF-8 | Python | false | false | 5,474 | py | # Generated by Django 3.2.1 on 2021-05-08 17:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0016_auto_20210507_1526'),
]
operations = [
migrations.AddField(
model_name='user',
name='can_code_sign'... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
165dc02321a8b09eeccda36f93b720a8284d9b4f | 77faf4ed009072132c7fbf63584ed8cf287d56e0 | /venv/Scripts/django-admin.py | 233ade7a48aac9dcb626cea7a5876a1fd11d8de5 | [] | no_license | rodrigues87/gpagendamentos | edcd9e5d8714ca2f215cbb835485dcc63a05eb1d | ced542c00182e246bd795e60815f9d1c705807c5 | refs/heads/master | 2022-11-05T12:46:02.339176 | 2020-06-24T21:47:29 | 2020-06-24T21:47:29 | 274,775,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!C:\Users\pedro.rodrigues\PycharmProjects\gpagendamentos\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"pedroh.mix@gmail.com"
] | pedroh.mix@gmail.com |
42796f96b85ea3e9a4e0b57a7285daee203eabbf | 72b74f66f83239a928bf049c0dd6e47576e57bae | /competition/recommend/get_data.py | 67e2f72ba45571785bf004f6a0005b2fe11f75d9 | [] | no_license | InsaneLife/DeepLearning | 7934056682e4fec7f3241dd2d4fbe1b4c5f192d2 | 4b60fe40587b96ba2a351c1b3cb832d03c2071ab | refs/heads/master | 2022-10-08T08:18:19.633449 | 2017-08-30T10:47:05 | 2017-08-30T10:47:05 | 65,697,666 | 2 | 4 | null | 2022-09-30T21:55:05 | 2016-08-15T02:16:34 | C++ | UTF-8 | Python | false | false | 4,206 | py | # coding=utf8
import cPickle
from numpy import *
import numpy as np
import matplotlib.pyplot as plt
import time
from sklearn import preprocessing
import MySQLdb
import sys
from sklearn import ensemble
reload(sys)
sys.setdefaultencoding('utf-8')
def excuteSql(sql):
"""
:rtype : MySQL执行
... | [
"993001803@qq.com"
] | 993001803@qq.com |
3ed79477ba88f3ece7ea4fd12a37b910eb9608fb | 00f3468d8917ac0c1b4df8b4dc50e82c0d9be3fa | /run_intrepid_byFamilyAccession.py | 7dac4fd2c24df21200adf447d60ae7c4c5086471 | [] | no_license | berkeleyphylogenomics/BPG_utilities | 4e332bb401b8c057502a1a0a1d532396bfff9542 | bbf5df137a0a459598c3f9073d80f0086e5f7550 | refs/heads/master | 2021-01-01T19:21:13.740575 | 2014-11-05T18:40:31 | 2014-11-05T18:40:31 | 24,867,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | #! /usr/bin/python
'''
This script takes a bpg accession and a uniprot accession, and run interpid to
score the residues in the sequence corresponding to the uniprot accession
'''
import sys
from bpg.common.utils.dir_of_family import get_dir_of_family_accession as get_dir
import glob
import os
def get_file(family_dir... | [
"afrasiabi@berkeley.edu"
] | afrasiabi@berkeley.edu |
eaa97c6f0704afe99f9a9b8c4d2b1b5328158f57 | b416bc21bc18e5c3c944b492b6e4aa3046ec033d | /setup.py | 08b3f7159c37fbae4429fe35307d9aad055354b0 | [] | no_license | annp89/django-cerberus | 672e3d568727790414498436629a7784d0140900 | bdbb1eacd43a7a7ddba62a2e5b1638576e4af2bc | refs/heads/master | 2021-01-12T22:29:21.599791 | 2015-07-08T12:02:59 | 2015-07-08T12:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | #!/usr/bin/env python
from setuptools import setup
setup(
name='django-cerberus',
version='0.3.2',
description='Django app that locks out users after too many failed login attempts.',
long_description=open('README.rst').read(),
author='Pragmatic Mates',
author_email='info@pragmaticmates.com',
... | [
"erik.telepovsky@gmail.com"
] | erik.telepovsky@gmail.com |
ae26ece82e541122ad91b5de72f23b03b8727aad | f90006998d59f07d89e479548652a34a08b54cba | /harvester/manager.py | d925e13921d918e65b1bd67b6628c6d9ee8c785c | [] | no_license | TomasTomecek/MindTask | a7e7b7365211802c02e850a6241c88f755fabade | ee84e2772c7dfc1c7fa47269aea6e7c7f7115e07 | refs/heads/master | 2021-01-15T17:07:06.113978 | 2013-03-13T08:45:09 | 2013-03-13T08:45:09 | 8,249,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
"""
DEPRECATED
Uses plancake API
"""
from targets.plancake import createPlancake
from xmind import get_tasks
P = createPlancake()
def sync_work_dir():
path = "/home/tt/Documents/covscan.xmind"
tasks = get_tasks(path)
for t in tasks:
P.run.add_task(t['title'])
def del... | [
"ttomecek@redhat.com"
] | ttomecek@redhat.com |
3a205fc74111f3fbba51b76f64849752932e4f3a | 84d0f700d12fb4121296c0e35eecd41afa126e06 | /src/pyglottolog/links/wikidata.py | d15ee268e2977e5e3fdcab658da8ebe18e878e92 | [
"Apache-2.0"
] | permissive | d97hah/pyglottolog | 00e1daf945d3d1fbc38cc066f12dd22ddd1f4ce5 | fe4c2a52d54cdcf0804b4f889598dbb9b8698dbd | refs/heads/master | 2021-01-05T09:43:51.069043 | 2020-02-07T15:02:32 | 2020-02-07T15:02:32 | 240,979,353 | 1 | 0 | Apache-2.0 | 2020-02-16T22:55:52 | 2020-02-16T22:55:51 | null | UTF-8 | Python | false | false | 1,401 | py | """
Query wikidata's SPARQL endpoint for info about Glottolog languoids identified by Glottocode.
"""
from csvw.dsv import reader
import requests
from .util import LinkProvider
SPARQL = """\
prefix schema: <http://schema.org/>
SELECT ?item ?glottocode ?wikipedia WHERE {
?item wdt:P1394 ?glottocode.
OPTIONAL {... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
5a3e0ba36c90006ed90901e09bc25b1696bf4bb2 | d668209e9951d249020765c011a836f193004c01 | /tools/pnnx/tests/ncnn/test_F_interpolate.py | 691e4379d2caf402c90d6cdf90be1f695dba1e18 | [
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | Tencent/ncnn | d8371746c00439304c279041647362a723330a79 | 14b000d2b739bd0f169a9ccfeb042da06fa0a84a | refs/heads/master | 2023-08-31T14:04:36.635201 | 2023-08-31T04:19:23 | 2023-08-31T04:19:23 | 95,879,426 | 18,818 | 4,491 | NOASSERTION | 2023-09-14T15:44:56 | 2017-06-30T10:55:37 | C++ | UTF-8 | Python | false | false | 4,384 | py | # Tencent is pleased to support the open source community by making ncnn available.
#
# Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the... | [
"noreply@github.com"
] | Tencent.noreply@github.com |
ef7e6a5ed876bd7cef094788b45cd766dcbdb229 | 1a6ee5e89285e3229428af579dd88564c90a5e35 | /uploaded_files/convert_edf_to_csv.py | 18b711046bd66e6b76064dbed5aa5ef8a518f926 | [] | no_license | khannasarthak/BraiNetMCProject | 0887922c30bea2f4e800acf3985a6e29a6982b36 | 5023a11f1ed28980037ba7b48b5b877c3a02bc59 | refs/heads/master | 2021-05-06T06:09:39.434388 | 2017-12-16T01:37:18 | 2017-12-16T01:37:18 | 113,814,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | import pyedflib
import numpy as np
import sys
import pdb
from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir('D:\Academic\ASU\Sem 3\Mobile Computing\project\data') if
isfile(join('D:\Academic\ASU\Sem 3\Mobile Computing\project\data', f))]
for file in onlyfiles[1:]:
... | [
"khannasarthak.1994@gmail.com"
] | khannasarthak.1994@gmail.com |
b0e98f4260203a715071c123572f00224d2f45a3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02837/s310894869.py | bbed2101f73a5808d3ef8d54907bb98b31f388f3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | n=int(input())
xy=[[] for i in range(n)]
for i in range(n):
a=int(input())
for j in range(a):
x,y=map(int,input().split())
x-=1
xy[i].append((x,y))
ans=0
for i in range(1<<n):
cnt=bin(i).count("1")
if cnt<=ans:continue
for j in range(n):
if i&(1<<j):
for x,y in xy[j]:
if y==1 and... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8c9797943d6af916752fece4a901c0e0bb6eccc3 | de4c519557357830e39cd7f970b4813afda259d4 | /0x11-python-network_1/1-hbtn_header.py | e008e73dde3c31833d6881e9c5b97b18ef9632e4 | [] | no_license | lancewburklin/holbertonschool-higher_level_programming | 096013cefcd2eefdf0dc16e1282bf15cd056792a | 56e40025c748d4f9eca2da268a1dd36923f148ff | refs/heads/master | 2022-12-17T00:12:43.896896 | 2020-09-24T22:29:56 | 2020-09-24T22:29:56 | 259,383,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #!/usr/bin/python3
"""
Time to get some headers
"""
if __name__ == "__main__":
import urllib.parse
import urllib.request
import sys
req = urllib.request.Request(sys.argv[1])
with urllib.request.urlopen(req) as response:
the_page = response.read()
print(response.info().get('X-Reques... | [
"1677@holbertonschool.com"
] | 1677@holbertonschool.com |
7cb58dbad836cefa16877095bb68faf83130033b | b885eaf4df374d41c5a790e7635726a4a45413ca | /LeetCode/Session3/EditDistance.py | a982a07b9e0420082c729422a8fdea4d3ac4d6cf | [
"MIT"
] | permissive | shobhitmishra/CodingProblems | 2a5de0850478c3c2889ddac40c4ed73e652cf65f | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | refs/heads/master | 2021-01-17T23:22:42.442018 | 2020-04-17T18:25:24 | 2020-04-17T18:25:24 | 84,218,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | class Solution:
def minDistance(self, word1: str, word2: str) -> int:
result = [[0 for _ in range(len(word2)+1)] for _ in range(len(word1) + 1)]
# update top row
for j in range(1,len(word2)+1):
result[0][j] = 1+ result[0][j-1]
# update first column
for i in rang... | [
"shmishra@microsoft.com"
] | shmishra@microsoft.com |
6db1a8305aba039c5e3c21b9728138b6aec35ef1 | 79e4547322e256ffbb31d4b94ac1353aaed05e8b | /lianxi001/testSearchpage.py | 9db75a29c4f619c2a483f82db372fd327a2bb53c | [] | no_license | 18939300962/dey_makabaka | 498b5e96bd885458f6b31c7684f1402895c5b284 | 43da8a0aabaa726ca5baf8181cb10a528afaab38 | refs/heads/main | 2023-08-11T20:07:55.614526 | 2021-09-17T03:26:55 | 2021-09-17T03:26:55 | 406,684,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import unittest
from selenium import webdriver
from time import sleep
from xue_001.lianxi001.searchpage import ymfz
class baidu(unittest.TestCase):
def setUp(self) -> None:
self.driver = webdriver.Firefox()
sleep(1)
def tearDown(self) -> None:
self.driver.quit()
def test_001(self):
... | [
"you@example.com"
] | you@example.com |
f98cedcefc4cf64e15cda5ecd4089d020811a46a | b80046173b4faea69b37c990cf58a8468908b60e | /decaf_PA4/TestCases/S4/runAll.py | c84f151b776e2939cf9fb5b958689e5a7b911bdc | [] | no_license | xcjthu/decaf | 0d7b9d419630254134b7d4922d1ff78fc6d62f41 | 00aba419c0e9c4529fece9213f98100d58681b45 | refs/heads/master | 2020-03-30T15:06:59.057022 | 2019-01-08T01:42:14 | 2019-01-08T01:42:14 | 151,349,002 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess
import sys
import re
filter = re.compile('^(SPIM Version|Copyright|All Rights|.*copyright|Loaded:).*(\n|$)', re.M)
def read_txt_file(filename):
with open(filename,'r') as f:
txt = f.read().strip()
# Python should be able to do ... | [
"xiaocj16@mails.tsinghua.edu.cn"
] | xiaocj16@mails.tsinghua.edu.cn |
0a89ed348f25066a76bf1c45a997f88237ddf972 | ec4ac469d53ffc3892fdc5a16db4af2df26d418a | /tests/unit/test_context.py | 519346e12b9f6b607017157a2849d5605ee2168a | [
"Apache-2.0"
] | permissive | akshat-kakkar/boson | bce029027ac36561081f36b0ce24f4cff90fb9d8 | c9c78a4eaec2d189d42186447d0a1b91fa29aff4 | refs/heads/master | 2021-01-17T23:12:08.825574 | 2013-06-18T14:52:44 | 2013-06-18T14:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack LLC.
# 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/... | [
"kevin.mitchell@rackspace.com"
] | kevin.mitchell@rackspace.com |
52eec84a72224ea351683a6f180ae11b5c224287 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/sphinx/pycode/pgen2/grammar.py | ac276776e76afeca1cf839a33f6a5e52ec18031e | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 5,446 | py | # Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""This module defines the data structures used to represent a grammar.
These are a bit arcane because they are derived from the data
structures used by Python's 'pgen' parser generator.
There's also ... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
1e9fdc21ffd9a2e6eadfe427547b47d7a4d11ff2 | 4e23ff457c737886d3f1280162b90987bbc12211 | /main/apps/product/migrations/0003_remove_product_slug.py | e895de46f18684e2c2ee03f33a40d0d9c4c574c9 | [] | no_license | ehoversten/Ecommerce_Django | 8ab1edeb1b7ed2a0e9f33920ecccc2d6b1996cd9 | b109b62e2fd318c4feb37c448898cbeada722968 | refs/heads/master | 2022-12-21T09:42:53.317891 | 2019-02-14T16:24:00 | 2019-02-14T16:24:00 | 143,313,907 | 6 | 2 | null | 2022-11-22T02:34:42 | 2018-08-02T15:34:32 | Python | UTF-8 | Python | false | false | 384 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-10 03:37
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0002_product_slug'),
]
operations = [
migrations.RemoveField(
... | [
"ehoversten@gmail.com"
] | ehoversten@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.