blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8f73126fc22be07d42d2a77922ad56ada2d4f88 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/betatim/olympictorch.py | 1709579327060749ceb057ef76c55d72bf56d79f | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | import scraperwiki
import json
import pprint
import urllib
import urllib2
def get_json(url):
req = urllib2.Request(url)
req.add_header("User-Agent", "Mozilla")
req.add_header("Host", "mappingdata.london2012.com")
req.add_header("Accept", "*/*")
r = urllib2.urlopen(req)
text = r.read()
... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
7889c4687247678479a157170a7861db77bdb876 | 7208db50a22368c335e7d7d8b37a3fedb09c60e5 | /cairis/gui/CodeDialog.py | 8921dfa3539e11325603e1883a5450b666f836b1 | [
"Apache-2.0"
] | permissive | nebloc/cairis | 41c7f20af56c46bddcb3927dc4aa410f6477e6ed | 1277a148a270d5471b59fc238aa6590bc1d3044e | refs/heads/master | 2020-03-24T03:51:11.908096 | 2018-07-27T16:07:36 | 2018-07-27T16:07:36 | 142,434,768 | 0 | 0 | Apache-2.0 | 2018-07-26T11:58:24 | 2018-07-26T11:58:24 | null | UTF-8 | Python | false | false | 3,700 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
8ebc3f9177ebd4da9cde9be63e844bc6c0095fe8 | a31de016611f3b4efc7a576e7113cad1a738419b | /2017/hackerrank/suffix_array_ManberMyers.py | 3b7c77c2c84b0d3afa251c1b4954113f4f5f2c2e | [] | no_license | Ing-Josef-Klotzner/python | 9d4044d632672fff966b28ab80e1ef77763c78f5 | 3913729d7d6e1b7ac72b46db7b06ca0c58c8a608 | refs/heads/master | 2022-12-09T01:40:52.275592 | 2022-12-01T22:46:43 | 2022-12-01T22:46:43 | 189,040,355 | 0 | 0 | null | 2022-12-01T19:52:37 | 2019-05-28T14:05:16 | Python | UTF-8 | Python | false | false | 728 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from collections import defaultdict
def sort_bucket (str, bucket, order):
d = defaultdict (list)
for i in bucket:
key = str [i : i + order]
d [key].append (i)
result = []
for k,v in sorted (d.items ()):
if len (v) > 1:
resu... | [
"josef.klotzner@gmail.com"
] | josef.klotzner@gmail.com |
4036d1863e0c1fcc1a56e21b943ab5f23a044cf3 | 667c324c7e8ac6a38cc91cd8ec4921a0dc9a0492 | /setup.py | 428dde733081b7d7aac6733410e5ff00b6244575 | [] | no_license | litvaOo/elmy-clone | 86fdf80fff91642c088fa3cee50bd4ad32518afd | eb30b5fd2eb8cfc177f3c6fec53d61722c7fe9cd | refs/heads/master | 2021-05-08T02:33:48.277250 | 2017-10-23T16:11:21 | 2017-10-23T16:11:21 | 108,006,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | import os
import json
import sys
import yaml
import shutil
def make_frontend(*args, **kwargs):
json_file = {}
project_name = raw_input(
'Front-end project name (default: Frontend): '
) or 'Frontend'
with open(os.path.join('.', 'frontend', 'package.json'), 'r') as file:
json_file = jso... | [
"alexander.ksenzov@gmail.com"
] | alexander.ksenzov@gmail.com |
e12bb2762ba4f4cccb617d860271ca54db0c80f5 | 8a29f983b122602ef960d8c1f6fc6451569ed2d2 | /te_discovery/te_domains/te_insertions/draw_domains.py | a978be6c8596f31e2982e1c7679f1b215db1f260 | [
"MIT"
] | permissive | oaxiom/hesc_lincrna | a4832841b49f2b9b0da6bf8a169857550a0e8797 | 7a87d426bba93a027794b6bea36f1ae61d5d205b | refs/heads/master | 2022-05-08T04:16:57.760960 | 2022-04-02T00:17:57 | 2022-04-02T00:17:57 | 187,936,591 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py |
'''
Draw protein domain-style plots, but containing the locations of the TEs
The plots should be the mRNA, with a protein coding exon (if present), and the location of the TE;
This script collectes the data
'''
import glob, sys, os, gzip
from glbase3 import glload, utils, expression, genelist, genome_sql
sys.pat... | [
"oaxiom@gmail.com"
] | oaxiom@gmail.com |
bd504c0c5757d459193ce025195d4192f056ed76 | 0083e0bd887bc062a0b075bff7b7426b96048c95 | /wx_site/wx_site/settings.py | 6a5bc8c664f7c8b6c8e86c41218095fb4ad57e8c | [
"MIT"
] | permissive | China-00-com/wx-movie-share | a1873c640ae92fd8fa217b88ea00d18aa21dd450 | f2a60a397d3a934126c5885f9e510840670c48f6 | refs/heads/master | 2021-06-15T02:03:43.475660 | 2017-03-02T07:40:56 | 2017-03-02T07:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | """
Django settings for wx_site project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os... | [
"xinyong.wang@qq.com"
] | xinyong.wang@qq.com |
b8248f70d2f8879a69f76251af44ffa79f37794f | df3e3e937e85ae03bc6714bf9aa487d9338d44fd | /mpmp/utilities/analysis_utilities.py | 5dbea0a3dcd6a2d941a84e3db84222662d59e17b | [
"BSD-3-Clause"
] | permissive | mayala1925/mpmp | 9a6b4be43f9bc29874e9c0cdfa0866d70b61263c | 7bd4d49e4acd745447dc0018ac121d1a45e8bfbc | refs/heads/master | 2023-08-16T13:23:08.019630 | 2021-10-13T23:09:07 | 2021-10-13T23:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,218 | py | import os
import sys
import glob
import pickle as pkl
import warnings
from pathlib import Path
import numpy as np
import pandas as pd
from scipy.stats import ttest_rel
def load_stratified_prediction_results(results_dir, experiment_descriptor):
"""Load results of stratified prediction experiments.
Arguments
... | [
"jjc2718@gmail.com"
] | jjc2718@gmail.com |
d803268c2a44c4278c9b73332cf5ad095bba4475 | 8edd63a42469bf09fcad1c1070995ceda6e49646 | /env/lib/python2.7/site-packages/observations/r/seizure.py | 054064a084dbd4b2a1e21e33f8b8af55113f7726 | [] | no_license | silky/bell-ppls | fa0b5418f40dab59de48b7220ff30caba5945b56 | 369e7602c810b694a70ac1e875017480c8910ac8 | refs/heads/master | 2020-04-06T08:40:28.588492 | 2018-11-01T06:51:33 | 2018-11-01T06:51:33 | 157,312,221 | 1 | 0 | null | 2018-11-13T03:04:18 | 2018-11-13T03:04:18 | null | UTF-8 | Python | false | false | 2,036 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def seizure(path):
"""Epiliptic Seizures
The `seizure` data frame has ... | [
"akobeid.1@gmail.com"
] | akobeid.1@gmail.com |
85dc404415023c5c08ff0bcfd4843511f568bba3 | af5c34d0881ed4acedce57206be17b9a21a5bfb2 | /shimstar/item/engine.py | 418f73e25296b5e12f0775ab825e475ec6e5a800 | [] | no_license | shimstar/editor | 158419f92f19fd33bfc251629760b10724f6ce1a | 12e8854918746645071cd34bbb840bc03a43af3b | refs/heads/master | 2016-08-05T01:49:23.179984 | 2015-07-31T19:02:05 | 2015-07-31T19:02:05 | 39,218,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,172 | py | from dbconnector import *
from item import *
import xml.dom.minidom
class engine(ShimstarItem):
def __init__(self,id,idTemplate=0,new=False):
super(engine,self).__init__(id,idTemplate)
print "engine::init " + str(id) + "/" + str(idTemplate)
self.id=id
self.label=""
self.templateId=idTemplate
self.locatio... | [
"shimrod@free.fr"
] | shimrod@free.fr |
5afd28198a4ac9c1941bec0470eeae94e9daf204 | 94724578994ab1438dcefb51b7ef4d8570da5d4c | /z42/zapp/_WEB/model/password.py | c7e2ae2555d350a1b6c6348f34e9c88d2ff99629 | [] | no_license | PegasusWang/collection_python | 6648d83203634abf44fd42c0b37b0bf7cc406d8f | 9ef019a737a0817860d3184924c67a0833bd1252 | refs/heads/master | 2023-09-01T23:15:39.813635 | 2023-08-24T06:46:12 | 2023-08-24T06:46:12 | 43,693,872 | 130 | 90 | null | 2021-04-26T15:12:55 | 2015-10-05T15:28:15 | JavaScript | UTF-8 | Python | false | false | 972 | py | #!/usr/bin/env python
# coding:utf-8
import _env
from os import urandom
from zapp._WEB.model._db import redis, Doc
from hashlib import sha512
from bson.binary import Binary
class Password(Doc):
structure = dict(
id=int,
salt_hash=Binary,
)
indexes = [
{'fields':['id']}
]
... | [
"tianma201211@gmail.com"
] | tianma201211@gmail.com |
b50d68e71b23463ab5ccb919298c1d188d406c46 | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/battle_results/results/club.py | 06476a63c11d86004f2d3d1b83c81b2b53bc1dbe | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | # Embedded file name: scripts/client/gui/battle_results/results/club.py
from collections import namedtuple
from functools import partial
from club_shared import ladderRating, ladderRatingLocal
from shared_utils import makeTupleByDict
from gui import makeHtmlString
from gui.shared.formatters import icons
from gui.shared... | [
"info@webium.sk"
] | info@webium.sk |
1eb1a92e01fb1c2b72b09548723424ed29e64906 | 4ca340961c32d9738b0e91d55179688a9d9c3ae8 | /fn_utilities/fn_utilities/components/utilities_attachment_to_base64.py | b19df1fb3d0cb5e9c2b593eef832897a92e3f75b | [
"MIT"
] | permissive | bkaathi/resilient-community-apps | 99a319db837aa0a51bbae60d11c0eb4249395bc8 | 1cd6519808e83f94d2fe6d4eed647f863017535d | refs/heads/master | 2020-04-18T06:27:09.654541 | 2019-01-10T19:51:59 | 2019-01-10T19:51:59 | 167,321,490 | 1 | 0 | MIT | 2019-01-24T07:15:43 | 2019-01-24T07:15:43 | null | UTF-8 | Python | false | false | 2,440 | py | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2018. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
import base64
import json
from resilient_circuits import ResilientComponent, function, StatusMessage, FunctionResult, FunctionError
class Fu... | [
"hpyle@us.ibm.com"
] | hpyle@us.ibm.com |
56d3dfd4d53f1eebc1dead093060abcbf92c3203 | 812f9822ddbfc986f4f230a9e6814f22c7c50e2f | /list/list_ascending_order_check.py | 2035266d2fef4492e9d0f152b663638dee5eb066 | [] | no_license | devopsvj/PythonAndMe | 31b4aa9bade1431d6f13917122dc12bf6a118da6 | 0b1362023960b7c77c79856d4bdef0a58fec1446 | refs/heads/master | 2023-07-25T23:06:39.081191 | 2019-01-15T09:50:08 | 2019-01-15T09:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | def ascend(list1):
i=0
x=len(list1)
if x==0:
return True
else:
while i<x-1:
if list1[i+1] < list1[i]:
return False
i=i+1
return True
x=ascend([])
print "Ascending order : ",x
x=ascend([3,3,4])
print "Ascending order : ",x
x=ascend([7,18,17,... | [
"vani_kani@hotmail.com"
] | vani_kani@hotmail.com |
8cf05039062ef59f45f339c08d42c81fef6675d6 | 4abe2ed78c68473a4e22b5d86f8e631a0bab06e8 | /py-polars/legacy/pypolars/datatypes.py | 5a6ee75b7654db41e923653cddae9611a3c3ce24 | [
"MIT"
] | permissive | FlorianWilhelm/polars | dfde03c703341eaba7015ac424cdc4ded037d5f8 | ccf901bec47ad78603a9f6ba2a20ee586f8116bc | refs/heads/master | 2023-05-06T13:12:54.643300 | 2021-05-14T09:49:00 | 2021-05-14T10:46:23 | 367,397,569 | 1 | 0 | MIT | 2021-05-14T15:03:00 | 2021-05-14T15:02:59 | null | UTF-8 | Python | false | false | 31 | py | from polars.datatypes import *
| [
"ritchie46@gmail.com"
] | ritchie46@gmail.com |
d1dcf33c78b42ad1fab79c8bf53cb5919c6c2d16 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/Full_v6Production/ForAN/TriggerEff/2018/configuration.py | 433d19e044a528517f101d887f51a01d2a31efaa | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 912 | py |
import os
import sys
sys.path.append(os.getcwd())
sys.path.append(os.getcwd()+'/../')
#-----Variable Deinition-----#
##Just set below things##
#BOOST='__BST__'
#PROD='__PROD__'
#REG='__REG__'
Year='20... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
f61f11b1140b959dad8ab9cb2e39bffefc920c84 | e9aba67fd59abf7fd68df28a0cc69cae97c7dc4c | /backend/demo_20477/urls.py | 0b7ac38503cd07418481d711a806f3d556437cd0 | [] | no_license | crowdbotics-apps/demo-20477 | d709c453c8411ffbd5b41c5bab1030ec94d9af2e | 63f7e3b9f5304bbfa0e31647d3fbc13287564373 | refs/heads/master | 2022-12-08T20:19:33.326484 | 2020-09-20T13:12:17 | 2020-09-20T13:12:17 | 297,078,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | """demo_20477 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e6ad185a7d176640a661792d8ed16ec8683d2cbd | 97bd006a2a9885f1733bead1fcb6cb59b7779c43 | /experiments/naive_bayes/led_a/delayed.py | d0c728dc617fb4b54d572c11971df1a4f6cdf8c6 | [] | no_license | foxriver76/master-thesis-rslvq | d3524176d05e553b7cca5a37f580ef2cf9efc805 | 00a6c0b4bc3289fe30ead7d7c4e1ae41984dcf8b | refs/heads/master | 2022-03-07T03:55:19.244161 | 2018-10-15T08:28:41 | 2018-10-15T08:28:41 | 139,425,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 13 08:53:06 2018
@author: moritz
"""
from skmultiflow.evaluation.evaluate_holdout import EvaluateHoldout
from skmultiflow.data.led_generator_drift import LEDGeneratorDrift
from skmultiflow.bayes.naive_bayes import NaiveBayes
from skmultiflow.data.co... | [
"moritz.heusinger@gmail.com"
] | moritz.heusinger@gmail.com |
fda411e4e8d191e4de301ed0068f67f7518b8f12 | a14ab3348a9e10693e3978ce66b21ede4724e08c | /547_medium_[dfs]_number_of_provinces.py | 9ad83339ea392cba5e54612210eb3b0769e53474 | [] | no_license | voidsatisfaction/leet_code_solutions | 9a97ec7ea342240e0dd4a7e57601ab0a93816f40 | 2e790fdd5e8db5f55e87e244a2453f62c7463f33 | refs/heads/master | 2021-12-10T08:53:35.201065 | 2021-12-06T15:00:55 | 2021-12-06T15:00:55 | 219,742,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | from typing import List
class Solution:
def findCircleNum(self, isConnected: List[List[int]]) -> int:
adj_list = [ [] for _ in range(len(isConnected)) ]
for i in range(len(isConnected)):
for j in range(len(isConnected[0])):
if isConnected[i][j] == 1:
... | [
"lourie@naver.com"
] | lourie@naver.com |
d7562a97fdf5f3f22299da218c278e64727a9575 | 6da9c8536378131cc28d6a9bbe2d1de7de70fbe8 | /Hackerrank/_Contests/Project_Euler/Python/pe042.py | d7e47f8a089866d95756a2f53f62636fdc1a16de | [] | no_license | austinsonger/CodingChallenges | 50f61330270cb6452715e6c28ae93b4595df6aa3 | 0cdc23fb909aa06a24294d923cedd37621e56a81 | refs/heads/master | 2021-04-30T13:21:36.111770 | 2019-07-16T18:49:02 | 2019-07-16T18:49:02 | 121,293,018 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | """
Coded triangle numbers
Problem 42
The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so
the first ten triangle numbers are:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
By converting each letter in a word to a number corresponding to its
alphabetical position and adding these values we form a... | [
"austinvernsonger@protonmail.com"
] | austinvernsonger@protonmail.com |
95339debfdeb585c85f3a3484ccb7d7cd5f49e17 | a0a0932b6ab6ec47c2757d8929216790f5bc6535 | /tongguan/apps.py | 079d5222bae2c9549025d1b163c31ebc31047ca4 | [] | no_license | lianglunzhong/latte-erp | b4e6e3b13c4bce17911ff166fecc36172e0bea5b | b58936c8d9917f3efdcb3585c54bfd3aba4723c2 | refs/heads/master | 2022-11-27T03:08:23.780124 | 2017-04-28T02:51:43 | 2017-04-28T02:51:43 | 89,660,834 | 0 | 0 | null | 2022-11-22T01:04:12 | 2017-04-28T02:48:50 | Python | UTF-8 | Python | false | false | 132 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class TongguanConfig(AppConfig):
name = 'tongguan'
| [
"liang.lunzhong@wxzeshang.com"
] | liang.lunzhong@wxzeshang.com |
fbe8cb73b0cd3c00309b436bcea4fd8508682a6b | 2834298c6a50ff7cfada61fb028b9fd3fc796e85 | /visoes_1/programas/tartaruga_1/desenhos_3.py | 83381d36e3777e20f98a05564f9ee8857276910b | [] | no_license | ernestojfcosta/IPRP_LIVRO_2013_06 | 73841c45d000dee7fc898279d4b10d008c039fd0 | a7bb48745ad2fbfeb5bd4bc334cb7203d8f204a4 | refs/heads/master | 2021-01-22T05:00:57.868387 | 2013-06-07T11:00:55 | 2013-06-07T11:00:55 | 10,548,127 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | #-*- coding: utf-8 -*-
from turtle import *
from math import *
def linha(x1,y1,x2,y2):
""" Traça uma linha entre dois pontos."""
up()
goto(x1,y1)
pd()
goto(x2,y2)
up()
def grafico(func, inf, sup):
"""Faz o gráfico da função entre os dois valores."""
delta = 0.1
x = inf
pu... | [
"ernesto@dei.uc.pt"
] | ernesto@dei.uc.pt |
f51539b821e6121ef75200de81ce1001e9dabe5b | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /glue_write_1/workflow-run_start.py | 5dbd6a4664c5290805ca1731343905e888935df0 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/start-workflow-run.html
if __name__ == '__m... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
daced9b62e429b2495238d5193e595cf1d2a8b57 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02742/s406978096.py | c078b09388ca7f5124ba2ac8968dd701bb1b26dd | [] | 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 | 119 | py | H,W=map(int,input().split())
w1=0--W//2
w2=W//2
if H==1 or W==1:
print(1)
else:
print(w1*(0--H//2)+w2*(H//2)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
344bb8052d03f23daccd79dd7e5873d43e16d3c8 | c8a0410686b044dc07936cdddcac94e1c21eaddb | /eshop_slider/admin.py | e358ae23919807c95081012674ca685335132c1d | [] | no_license | sahandtebyani/eshop | 1afd6aaf33ed94f99e3da287e96da61373b9e4c5 | c550fa66d457e89d190a00f8ea8052958eac41ba | refs/heads/main | 2023-04-05T16:10:35.832349 | 2021-04-25T19:46:22 | 2021-04-25T19:46:22 | 361,372,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.contrib import admin
from eshop_slider.models import Slider
admin.site.register(Slider)
| [
"sahadina10@gmail.com"
] | sahadina10@gmail.com |
ead7c1757fa1c1c8efc4ad4f6e48e8a39c563a7b | c208954de92470c0144fad2e07a92ed1822edd59 | /perusak/key_file.py | 91c8115f802fdea70ba8ccbb92d6c50caca29ed9 | [
"MIT"
] | permissive | rendy026/reverse-enginnering | 4217f3b723569fb792bac0f22a56a305199db1dc | f04cec0bf518a2617fc4fd7155f755fafc2af799 | refs/heads/master | 2023-01-07T15:49:15.791052 | 2020-10-13T09:22:02 | 2020-10-13T09:22:02 | 303,575,571 | 0 | 0 | MIT | 2020-10-13T09:41:59 | 2020-10-13T03:17:42 | Python | UTF-8 | Python | false | false | 375 | py | # Time Succses Parser : Tue Jun 16 00:39:52 2020
# Auto Parser Dis Version : 1.1.0
# Source : https://www.github.com/Datez-Kun
import hashlib
#return hashlib.sha512(__file__).hexdigest()
print hashlib.sha512('perusak.py').hexdigest()
#'7f84926b65ef83a2d8d13219e5d8ee8ccf1557f0558159945a26561efd8d044fd2bf46e5df351074af71... | [
"noreply@github.com"
] | rendy026.noreply@github.com |
67ee33d07b48d0c98c5ae9e3c1e9c64b1fdae733 | 8edd63a42469bf09fcad1c1070995ceda6e49646 | /env/lib/python2.7/site-packages/observations/__init__.py | 9611b94b5d240f60908bd6cc9aa6f31703a56b31 | [] | no_license | silky/bell-ppls | fa0b5418f40dab59de48b7220ff30caba5945b56 | 369e7602c810b694a70ac1e875017480c8910ac8 | refs/heads/master | 2020-04-06T08:40:28.588492 | 2018-11-01T06:51:33 | 2018-11-01T06:51:33 | 157,312,221 | 1 | 0 | null | 2018-11-13T03:04:18 | 2018-11-13T03:04:18 | null | UTF-8 | Python | false | false | 3,521 | py | """[Observations](https://github.com/edwardlib/observations) provides
a one line Python API for loading standard data sets in machine
learning. It automates the process from downloading, extracting,
loading, and preprocessing data. Observations helps keep the workflow
reproducible and follow sensible standards.
Observ... | [
"akobeid.1@gmail.com"
] | akobeid.1@gmail.com |
c2c2d726960b345a79e39efc64b26be11466baa6 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/pushthings4ward/ixd12.py | d20d0535197003f13a53aa175d8a88f5123455bc | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | ###############################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###############################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to your sear... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
61154f07775873c1e7e42e08f9cf3ccfca7764b6 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019125006.py | 264d5c0d6ada04585c180fbce85ec569aed9bf7f | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
l... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
9d7c33699f9fedfbd482a9898033589aed3b87aa | de4452e9d7d7a347679667519aa3d99d1209be70 | /SWexpertacademy/D3/6190_정곤이의단조증가하는수.py | 51b2d7fe6561b44e1fc5f27769f491689ff3bc4d | [] | no_license | seoul-ssafy-class-2-studyclub/Algorithms-Tess | 550b09456b1efb3c763ea29331fdc91bac578719 | 1a4a13c30de40ac2e1d5dc24cf2c86de6875ccfa | refs/heads/master | 2020-06-22T22:53:03.079120 | 2020-06-03T11:19:04 | 2020-06-03T11:19:04 | 198,420,928 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | import sys
sys.stdin = open('6190.txt', 'r')
def shorten(n):
a = n % 10
n = int(n / 10)
print(n)
while n != 0:
if n % 10 > a:
return False
else:
a = n % 10
n = int(n / 10)
return True
T = int(input())
for tc in range(1, T+1):
N = int(input()... | [
"geobera0910@naver.com"
] | geobera0910@naver.com |
bd6647cb7cdf673090fd1ea83e49832eee650fea | 80f8eb6ebc005ff8380bfe91b9fc8ac12943eeb4 | /venv/bin/pip | 62638011bb5f066aec340369aea352c28e585dd0 | [] | no_license | SqpuHkS/Django_blog | ade4d0c35c44d8ba72382acfb06d1388a030b7b2 | c0c93b526a7e7abfb35f2433de32c22a23a05448 | refs/heads/master | 2020-12-26T09:06:45.212998 | 2020-02-05T21:41:31 | 2020-02-05T21:41:31 | 237,453,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | #!/home/alexey/PycharmProjects/blog/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
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])
sys.ex... | [
"kovaleksey01@gmail.com"
] | kovaleksey01@gmail.com | |
1cc782abfc6e57dfb3755bd34671d08ce268c496 | ea6139072049b8e0680ac94653d09f90d909256c | /tools/gcmole/gcmole.py | 357ef363e3be48b451ae3e6425fbbc2ce42f2932 | [
"BSD-3-Clause",
"SunPro",
"Apache-2.0"
] | permissive | lsh1003/v8 | f3b699e31a2f874da2c57cc6bf1a29eb6fe8056e | e070505f5cd09bdd1825ec61618c5c4196c3eebb | refs/heads/master | 2023-01-29T03:01:43.628712 | 2021-01-10T03:08:16 | 2021-01-10T03:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,869 | py | #!/usr/bin/env python
# Copyright 2020 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is main driver for gcmole tool. See README for more details.
# Usage: CLANG_BIN=clang-bin-dir python tools/gcmole/gcmole.py [a... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
77ecb5a8fdbcf9b4e7c1a1596b8b8a9d77d98554 | 915ac708aeac53125f29bef90c2c047eaed4940e | /Anaconda/Scripts/grind-script.py | 39e7cfd020a0221d020c7f1d72ee3eabb1584dd4 | [] | no_license | bopopescu/newGitTest | c8c480ddd585ef416a5ccb63cbc43e3019f92534 | 5a19f7d01d417a34170a8f760a76e6a8bb7c9274 | refs/heads/master | 2021-05-31T17:00:26.656450 | 2016-06-08T06:43:52 | 2016-06-08T06:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | if __name__ == '__main__':
import sys
from grin import grind_main
sys.exit(grind_main())
| [
"arvindchari88@gmail.com"
] | arvindchari88@gmail.com |
a73aebe711e245f5dee8a831cdc3296ade6901f4 | 5142e81b50d15202ff79a34c9b888f18d2baec27 | /tests/test_geom_abline.py | 84e2b2a47561e6668fdd6b1641262f1f7c3c5727 | [
"MIT"
] | permissive | has2k1/plotnine | 03c0e979b6b05b5e92cb869cca903cfce20988dc | ef5650c4aabb29dcfe810043fb0fc8a4ea83f14b | refs/heads/main | 2023-08-30T22:17:07.835055 | 2023-08-08T07:57:53 | 2023-08-08T07:57:53 | 89,276,692 | 3,719 | 233 | MIT | 2023-08-08T13:09:24 | 2017-04-24T19:00:44 | Python | UTF-8 | Python | false | false | 1,504 | py | import pandas as pd
import pytest
from plotnine import aes, geom_abline, geom_point, ggplot
from plotnine.exceptions import PlotnineWarning
data = pd.DataFrame(
{
"slope": [1, 1],
"intercept": [1, -1],
"x": [-1, 1],
"y": [-1, 1],
"z": range(2),
}
)
def test_aesthetics... | [
"has2k1@gmail.com"
] | has2k1@gmail.com |
d75ca0d1efc992a61d8e495efbfd7a53f59bc005 | 10d17864a685c025bb77959545f74b797f1d6077 | /capitulo 10/10.24.py | 993d78e52f58a1d7bc87614bbbda37d9c9e9955b | [] | no_license | jcicerof/IntroducaoPython | 02178d2dfcaa014587edbd3090c517089ccef7c2 | 02e619c7c17e74acdc3268fbfae9ab624a3601dd | refs/heads/master | 2020-04-24T18:12:21.422079 | 2019-02-23T05:14:43 | 2019-02-23T05:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2019
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"jose.cicero@gmail.com"
] | jose.cicero@gmail.com |
06351c823a9473abbcb97b23edc74cf8a23aae33 | 323716a35ee2b649031ec8a09b196b8e7b833e8d | /lab7/codingBat/warmUp1/sum_double.py | 7ce14bf56307fe1dbd1a4b0eb8d0e282d481c756 | [] | no_license | Zhaisan/WebDev | 0377cec0c553900c5126794a8addc16e2e62b558 | 959ecf5b2e5032ccd2ab704b840e8f680dbcfc42 | refs/heads/main | 2023-05-27T17:24:17.026750 | 2021-05-31T15:02:15 | 2021-05-31T15:02:15 | 334,424,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | def sum_double(a, b):
sum = a + b
if a == b:
sum = sum * 2
return sum
| [
"noreply@github.com"
] | Zhaisan.noreply@github.com |
4f4e2ec31bbb4dc96b19922a0d20332c870b582c | 09aef2e12a67f1f736644c7fa460a79f215bb4c0 | /scripts/templates/web/tests/test_gevent_server.py_tmpl | 3a7039ea89b23e1858aa60535571fe8b4e91aaf3 | [
"BSD-3-Clause",
"Apache-2.0",
"CC-BY-3.0",
"MIT"
] | permissive | g0v/roadpin | 095e2c04b5df8bebd5bec746fbbf7521f15b4ee0 | c2919552dd3ce0e3614a35466bae6d6a740e9368 | refs/heads/master | 2021-01-01T19:07:43.569744 | 2014-06-21T08:16:31 | 2014-06-21T08:16:31 | 10,563,207 | 5 | 0 | null | 2014-01-28T16:20:36 | 2013-06-08T03:33:15 | Python | UTF-8 | Python | false | false | 705 | # -*- coding: utf-8 -*-
import logging
import unittest
from app import gevent_server
class TestGeventServer(unittest.TestCase):
'''unit tests for gevent_server'''
def setUp(self):
'''setup for all the tests'''
logging.info('setup')
self.____never_used_variable = 1
def tearDown(se... | [
"hsiao.chuanheng@gmail.com"
] | hsiao.chuanheng@gmail.com | |
981b4fa9258dcf4edce0120b753e5099506c9b26 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/Lib/plat-mac/ic.py | dbf8cbc9a7f780a4192e5c51cba93d41a75517d1 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,442 | py | # 2017.08.29 21:58:34 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/ic.py
"""IC wrapper module, based on Internet Config 1.3"""
from warnings import warnpy3k
warnpy3k('In 3.x, the ic module is removed.', stacklevel=2)
import icglue
import string
import sys
import os
from Carbon import Res... | [
"info@webium.sk"
] | info@webium.sk |
61d92cb85b54a951062761370aabbef284f75799 | 75f4300fe3285e49db111095e517cbb14257707d | /comiety/dongzip/migrations/0012_auto_20170210_1639.py | 4c4e646e7369a4908c68e3767c9bfb4d0c603485 | [] | no_license | jucie15/comiety | 2e06dd48eebf95a966b24f9bc8f68fe90ac6c2b8 | f1dc3b4828be3756f4b07a90fdd56d248212cbfd | refs/heads/master | 2021-01-11T11:40:06.798426 | 2017-04-11T15:53:13 | 2017-04-11T15:53:13 | 79,707,958 | 0 | 0 | null | 2017-02-19T00:30:13 | 2017-01-22T09:32:29 | HTML | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-10 07:39
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dongzip', '0011_auto_20170210_1626'),
]
operations = [
migrations.RenameField(
... | [
"jucie15@nate.com"
] | jucie15@nate.com |
f8d3b163db1832afbc08aed3ee34ad6571696f49 | c059d1528a495e5858eaeb07a19a821e8e9fae72 | /tests/unit/test_ingester.py | 9b083322665fa0a800d744420cd3e4850faa8f04 | [
"Apache-2.0"
] | permissive | sh8121att/drydock | f82ae4873966a6f6f36743462042b035c1a868f1 | 267b0cfdcc0e21c9ce6b04c0c3a1daf12e36f9d9 | refs/heads/master | 2021-01-14T09:36:50.787951 | 2017-07-14T02:06:20 | 2017-07-14T02:06:20 | 81,995,373 | 0 | 2 | null | 2017-07-19T16:06:30 | 2017-02-14T22:26:47 | Python | UTF-8 | Python | false | false | 3,044 | py | # Copyright 2017 AT&T Intellectual Property. All other 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... | [
"sh8121@att.com"
] | sh8121@att.com |
3eef8ec4f3ec58d845cbb030503c8430428589d3 | 74c8f10bfc82e762d83db424e5d4f4b3681ffba0 | /venv/Lib/site-packages/winrt/windows/applicationmodel/store/preview/__init__.py | 13bbeb9b7b0ba46b71e9199e6561a1de65a21cea | [] | no_license | meghnaraswan/HEARTLabHapticSleeveProject | 1e7bd0710c26dad6588f73f6b1f0741c8e31334d | 6c2c9a227aaacf34b2205bcb1a856cc70ceccd55 | refs/heads/main | 2023-07-04T01:51:01.462007 | 2021-08-17T13:34:43 | 2021-08-17T13:34:43 | 390,823,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | # WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1
import typing, winrt
import enum
_ns_module = winrt._import_ns_module("Windows.ApplicationModel.Store.Preview")
try:
import winrt.windows.foundation
except:
pass
try:
import winrt.windows.foundation.collections
except... | [
"raswan@chapman.edu"
] | raswan@chapman.edu |
8fcb587a55b2e6abcc96be2c2629f470f390d932 | bb6ebff7a7f6140903d37905c350954ff6599091 | /remoting/host/linux/linux_me2me_host.py | 082ecc0edb5880fcba691abaa57100b1f5d84c0f | [
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 45,783 | py | #!/usr/bin/python
# Copyright (c) 2012 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.
# Virtual Me2Me implementation. This script runs and manages the processes
# required for a Virtual Me2Me desktop, which are: X server... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
094f66b62ff4611bc687ef6d06d55ee18b58b71c | 3094b146a1520355e25edbe0590bbfa76c11b563 | /MonoXAnalysis/scripts/files/mergeDirectories.py | ce260f76cfe6e7d332475f7e6d47f7c59788afa7 | [] | no_license | rgerosa/AnalysisCode | db575aec5973326571bc6a40bf5099646982d709 | a0b3b42fe91cee930579c718514e5cccf0678d34 | refs/heads/master | 2021-05-02T04:20:05.144569 | 2016-12-14T16:57:43 | 2016-12-14T16:57:43 | 76,379,249 | 0 | 2 | null | 2016-12-13T16:49:22 | 2016-12-13T16:49:22 | null | UTF-8 | Python | false | false | 2,837 | py | import os
import glob
import math
from array import array
import sys
import time
import subprocess
import ROOT
from optparse import OptionParser
from subprocess import Popen
############################################ ... | [
"raffaele.gerosa@cern.ch"
] | raffaele.gerosa@cern.ch |
72ef12871fbf0dbecb4ea288ca1fb57f1bd14228 | f3233957361f6e90562590af6b30d3d3e633f0be | /scratch/setup.py | d8fc8971a5c9530a4ec7eaf113a197b05fc91872 | [
"MIT"
] | permissive | davidjrivera/aws-orgs | f9e6e797920a3b6fc2e057344919ecc3977a1bc3 | 0d65987c2b8f7e6c7a7c792554371470e13821e1 | refs/heads/master | 2020-04-15T13:19:45.372725 | 2019-01-07T19:03:24 | 2019-01-07T19:03:24 | 164,712,564 | 1 | 0 | null | 2019-01-08T18:50:41 | 2019-01-08T18:50:41 | null | UTF-8 | Python | false | false | 4,007 | py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.absp... | [
"agould@ucop.edu"
] | agould@ucop.edu |
d050f75aac6606bd6e5367c94629bc54a17c8502 | 085486ba480b406ec7d25df749953d0ddaa3f295 | /script/base_api/service_user/user_api.py | 1a4e0dbef5ac63b480d4ba13cdf5196b771e98aa | [] | no_license | WDD185/Interface-automation | 0256d8772a5c25b8207ecfa640a29b50a4d56616 | 36cdcc30194ab9064fd9a06388cb34be30adbdc5 | refs/heads/main | 2023-06-19T21:15:17.518032 | 2021-06-22T10:17:40 | 2021-06-22T10:17:40 | 358,517,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py |
from common.run_method import RunMethod
import allure
@allure.step("极运营/系统设置/校区设置/校区详情服务")
def user_api_user_department_school_detail_get(params=None, header=None, return_json=True, **kwargs):
'''
:param: url地址后面的参数
:body: 请求体
:return_json: 是否返回json格式的响应(默认是)
:header: 请求的header
:host: 请求的环境
... | [
"2356401963@qq.com"
] | 2356401963@qq.com |
82b1498ce9eb8d590506b5423a76ec7703e3cf89 | 9d4a03990d94e9fb0248ec94875376c82139891a | /GUI/pyqt/PyQt_2/findandreplacedlg.py | 3933152be82ffa116f02b5836b61ea349293ffac | [] | no_license | wenhaoliang/learn-python | 114744f3c94859f665a998b03c6d5f5d908fb94d | bd31daa34cc79f3171a2e195c149af60a7e0ebed | refs/heads/master | 2020-04-16T02:14:36.345629 | 2019-07-06T12:26:23 | 2019-07-06T12:26:23 | 58,053,238 | 7 | 7 | null | 2017-07-21T09:35:55 | 2016-05-04T13:14:26 | Python | UTF-8 | Python | false | false | 388 | py | #coding:utf-8
import re
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import ui_AddressBook
ui_AddressBook.Ui_MainWindow):
def __init__(self, parent=None):
super(QtAddressbook, self).__init__(parent)
self.setupUi(self)
if __name__ == "__main__":
import sys
app = QApplication(... | [
"641541452@qq.com"
] | 641541452@qq.com |
434ba6ecd5bb3fc1dd5e7f26ce9008120c4c7065 | 60a6ba6e5f3faca2b1e17c1e90917efc3cfc561a | /aoc2022/day10/day10_part1.py | e730b4bd48162a56b2561d677f881a1aa1b8c042 | [
"MIT"
] | permissive | GetPastTheMonkey/advent-of-code | f462f5e2b72d913e39484446ce92a043d455091c | 7a5ee30dbafaf8ef6f9bf9936e484efd024aa308 | refs/heads/master | 2023-01-14T09:45:00.553575 | 2022-12-25T10:59:19 | 2022-12-25T13:00:44 | 160,684,715 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from aoc2022.day10.day10_common import load_crt
if __name__ == '__main__':
print(load_crt().strength)
| [
"sven.gruebel@gmx.ch"
] | sven.gruebel@gmx.ch |
5c086c246b3e1a807ac11307505ea7d284330fdf | ffb8fb6e9494117f1e5c98c067df86e7f1c3d1c7 | /day17/pod_list/pod_create.py | 6e3b3729d2413acf00e9938dd70509cd4e533a88 | [] | no_license | anliu520/pyprogram | b4f56fa3bc18c2475dd6fb27d05d6017bfe5977c | f72c7b66fd5671c5f217f37e13b23720a5f7f4a4 | refs/heads/master | 2021-04-23T03:09:44.445763 | 2021-01-23T10:04:01 | 2021-01-23T10:04:01 | 249,892,917 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | #Author:Anliu
import yaml,json
with open("parameter","r",encoding="utf-8") as f2:
parameter = json.load(f2)
with open("pod_list.yaml","r",encoding="utf-8") as f1:
#print() # 1__next__():
text1 = yaml.load(f1,Loader=yaml.FullLoader) #2_next__()
print(type(text1))
print(text1["apiVersion"])
... | [
"ljwenjie66@163.com"
] | ljwenjie66@163.com |
2e43ecf437865d67deda34ca446b238bb2ed8bc6 | a873f3cd46a10ad879fc56d78e1f533d8bf486c0 | /vova_project/vova/正式测试文件/login_in/test_green_0004.py | 2961e3309032c98656bf7439942750b8f1ac5a39 | [] | no_license | shenhaiyu0923/resful | d0301b39363e6b3d3659f62fa4a9b2532ebcd225 | 1e66cae7d68fa231794776953cc1a5e999bf36c6 | refs/heads/master | 2021-07-08T20:46:57.300298 | 2021-06-01T08:17:27 | 2021-06-01T08:17:27 | 244,308,016 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | from pylib.Mobile_green import *
class Test_older:
def setup_method(self,):
print('下单_tc0004 -- 初始化数据')
pass
def teardown_method(self,):
print('下单_tc0004 -- 清除数据')
pass
# @badpng
def test_green_0004(self):#用例一,信用卡下单验证
ret=CardGreen.green_fourth('13121569', 'Polan... | [
"jwang9@vova.com.hk"
] | jwang9@vova.com.hk |
7496276a3da7df040cea8df69bd3860e5ab41f43 | 9461195cac30788855359753ac2856d746e81cd6 | /apps/valida_plan/urls.py | a6cd7cc8d59ea0931d3afe86de8c222fcfef77f8 | [] | no_license | ChristianSmith18/python-project | e15460b29e29a6bb841c82a762618f7ff86ab724 | 76d876f3fded93643af58e65f183bb6403beb755 | refs/heads/master | 2023-04-30T15:30:48.472909 | 2021-05-24T17:33:46 | 2021-05-24T17:33:46 | 370,433,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,458 | py | from django.urls import path
from django.conf.urls import url
from . import views
from django.contrib.auth.decorators import login_required
from django.conf.urls import url
from apps.valida_plan.views import UnidadesList, Objetivos, Actividades, ObservacionesListar, ObservacionesCreate\
, ObservacionDelete, ... | [
"cgr.gonzalezrossier@gmail.com"
] | cgr.gonzalezrossier@gmail.com |
ef04d1dce8f7a105b3d75da1a83e1fcff3d6126c | 848010b765524a37f3dd4742092107e7e0afe2b7 | /disk_usage.py | 0986331e99f04347ee77edcd97442f206d04c350 | [] | no_license | redorteal/Health_Checks | a72b6366f64e9dbf7f5e1c6c742fc5e4289273d2 | 8802b0416ed9699d0e0494c490eb4af836d40478 | refs/heads/master | 2022-12-01T05:33:58.233973 | 2020-07-29T07:55:23 | 2020-07-29T07:55:23 | 283,512,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/env python3
import shutil
def main():
disk_stats = shutil.disk_usage("/")
total = disk_stats[0]/10**9
print("total GB: {:.2f}".format(total))
free = disk_stats[2]/10**9
free_space_percent = free/total*100
if free_space_percent>60:
print("Sufficient disk space available: {:.2... | [
"user@example.com"
] | user@example.com |
01ef234451782d1b3c1b0669abc53654fb83b96a | 0125293cfd8bf87bea47e341e5738532a285d05d | /fcn/models/fcn16s.py | 37178c532f0f7013757d0b679d3ca4b111650a59 | [
"MIT"
] | permissive | rcalland/fcn | b604557ebb651a3918bbcf6a410e90b700a059b0 | 48c63d2d325c260b77ea4b54eba356e9b6f3adb6 | refs/heads/master | 2021-01-02T08:51:25.539243 | 2017-01-11T06:52:34 | 2017-01-11T06:52:34 | 78,611,096 | 0 | 0 | null | 2017-01-11T06:51:42 | 2017-01-11T06:51:42 | null | UTF-8 | Python | false | false | 4,027 | py | import chainer
import chainer.functions as F
import chainer.links as L
class FCN16s(chainer.Chain):
"""Full Convolutional Network 16s"""
def __init__(self, n_class=21):
self.n_class = n_class
super(self.__class__, self).__init__(
conv1_1=L.Convolution2D(3, 64, 3, stride=1, pad=10... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
9c5da19b639c04e5877ced81afdf7ca870b22f37 | 921f5c21500eb3526d153c6b50fb73bbfe4ecef9 | /2.2 Linear DS/Stack/p732.py | e06421c9aa35092cefede9e564e9560541172a8f | [] | no_license | alex-stephens/competitive-programming | c3c2919b1e3978e2f498f2d53837774b490c2a3c | 833363f56ef9ada91952c501829a8f430db0caf5 | refs/heads/master | 2021-09-13T18:25:22.432073 | 2018-05-03T00:46:39 | 2018-05-03T00:46:39 | 119,809,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # Competitive Programming 3
# Problem 732
from itertools import combinations
while True:
try:
input1 = list(input())
while input1 == []:
input1 = list(input())
except EOFError:
break
input2 = input()
while input2 == '': input2 = list(input())
length = len(... | [
"alexstephens9@gmail.com"
] | alexstephens9@gmail.com |
33afdadbe0c7e26f03ec85b8470ea5bdfdfe7510 | 9afade05963f611b3fe5874a611ebdefade9b003 | /code/client/munkilib/updatecheck/analyze.py | 6a9bb104799ce31fee30dfb628115f5940dd5d8c | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | RichardLafontaine/munki | 635d9316e3221c08698b1ccfdfd8cb24381b9874 | 55ec9430e5b7567fef0f766176283d69d62e4c36 | refs/heads/master | 2020-12-26T19:38:31.832183 | 2017-03-10T15:35:36 | 2017-03-10T15:35:36 | 25,924,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,406 | py | # encoding: utf-8
#
# Copyright 2009-2017 Greg Neagle.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"gregneagle@mac.com"
] | gregneagle@mac.com |
cf4fda11b7e8bee75cfa8b9e12c07d1f351ca583 | d3cba1a1355aa88c793166d3fa610780441d038c | /data-processing/scripts/upload_citations.py | ed41aac1ce521710b3b61211031ddb6771d34660 | [] | no_license | IntuitionMachine/scholar-reader | 427093b2ff2c2740c4aa412e6a1aee4746fa0a33 | 99c6492de5fbe7b916fcc16143601af52f3213e4 | refs/heads/master | 2020-09-15T14:50:03.356182 | 2019-11-18T16:41:57 | 2019-11-18T16:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,263 | py | import csv
import json
import logging
import os.path
from typing import Dict, Iterator, List, NamedTuple, Tuple, cast
import explanations.directories as directories
from explanations.directories import (
SOURCES_DIR,
get_arxiv_ids,
get_data_subdirectory_for_iteration,
get_iteration_names,
)
from explan... | [
"head.andrewm@gmail.com"
] | head.andrewm@gmail.com |
a674e9466e5e122edda2b016de42c8d476f478ec | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_premium_block_blob_storage.py | 5921d3d80b9c618abc54cd30b8a3effe0634c22a | [
"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 | 2,315 | 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 |
3582c5014981076746f723586d1e0484ef58b793 | 5d5947bb734188795c3b9dcc1c59ec070f32756f | /usuario/migrations/0006_auto_20200903_1955.py | bac1ef6367d9c9b63b64f285f9c6fbe5b8e55be1 | [] | no_license | rauldosS/e-votacao | d92b9505b9cf1025d62f8f257da60b8974b2c39e | 110078ec27faaf30e9cb27a1fd3ff01e08b79128 | refs/heads/master | 2022-12-27T19:19:08.452093 | 2020-09-30T21:09:23 | 2020-09-30T21:09:23 | 292,128,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # Generated by Django 3.0.8 on 2020-09-03 22:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('usuario', '0005_remove_usuario_fullname'),
]
operations = [
migrations.RemoveField(
model_name='usuario',
name='birth_date',... | [
"48498755+rauldosS@users.noreply.github.com"
] | 48498755+rauldosS@users.noreply.github.com |
7a0edfbe08edeb6555cb6706933e139344d952ab | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_illegalities.py | 180c5449c23c7b3ea4e3d73ade12fcf2fa73c79e | [
"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 | 268 | py |
from xai.brain.wordbase.nouns._illegality import _ILLEGALITY
#calss header
class _ILLEGALITIES(_ILLEGALITY, ):
def __init__(self,):
_ILLEGALITY.__init__(self)
self.name = "ILLEGALITIES"
self.specie = 'nouns'
self.basic = "illegality"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
87b9f3653f7ee802535a908c38664174e4751906 | 134441af0aa524a2b87d1efe07938aa82e326471 | /vgg16.py | 02bb95ec17e216ee0f46961cd6fc7bf5e07ec426 | [] | no_license | fenggehua/tensorflow-style-transfer | 11d707eb2d0a48e47ac55c3506ebfbd8e6c1aa9c | e7de4ab2d9d75046c61b3dd5a2c2150fbbd0fe24 | refs/heads/master | 2020-07-28T07:14:34.539230 | 2019-07-31T09:34:48 | 2019-07-31T09:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,855 | py | import tensorflow as tf
def VGG16(x, weights):
mean = tf.constant([123.68, 116.779, 103.99], dtype=tf.float32, shape=[1, 1, 1, 3], name='vgg_mean')
x = tf.subtract(x, mean)
with tf.variable_scope('vgg16', reuse=tf.AUTO_REUSE):
with tf.name_scope('conv1_1') as scope:
kernel = tf.get_var... | [
"vincentcheng929@gmail.com"
] | vincentcheng929@gmail.com |
e21e186d68d28a7d65a8b5138277e765896bf6d3 | ae8a5853c2f0e8fd190e4d16f2bd148b832be713 | /DatasetCreator.py | afe753580882171301940ba51a8387f677178a77 | [] | no_license | luizgh/datasetCreator | 1b7242160ce4a1e32aa7a925f453c3048817c128 | cefdafbd2cf022db577cea3ca08191557cebc2d7 | refs/heads/master | 2021-01-01T10:13:40.618508 | 2014-12-17T10:03:58 | 2014-12-17T10:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | class DatasetCreator:
def __init__(self, imageSource, datasetSplitter, preprocessor = None):
self.imageSource = imageSource
self.datasetSplitter = datasetSplitter
self.preprocessor = preprocessor
def buildDataset(self, datasetSplitIn = [0.6, 0.2, 0.2]):
images = self.imageSource.load()
dataset ... | [
"luiz.gh@gmail.com"
] | luiz.gh@gmail.com |
6ca099b5329b47e29327b2d1245833ebb7bd7efb | cebf2e5276e6d064d0ec86beaf1129fe0d0fd582 | /days021-030/day029/lectures/lec01.py | 4f90cfc3d905080fac103277c5462443550bde8e | [] | no_license | SheikhFahimFayasalSowrav/100days | 532a71c5c790bc28b9fd93c936126a082bc415f5 | 0af9f2f16044facc0ee6bce96ae5e1b5f88977bc | refs/heads/master | 2023-06-14T06:18:44.109685 | 2021-07-08T16:58:13 | 2021-07-08T16:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from tkinter import *
window = Tk()
red = Label(bg="red", width=20, height=5)
red.grid(row=0, column=0)
green = Label(bg="green", width=20, height=5)
green.grid(row=1, column=1)
blue = Label(bg="blue", width=20, height=5)
blue.grid(row=2, column=0)
window.mainloop()
| [
"pullynnhah@icloud.com"
] | pullynnhah@icloud.com |
7336a40a42cca29574fd1c43b173ded491178dd0 | 527d3d38b57b9f12ea6e91167a9a06149a89044b | /wxFEFactory/python/tools/nds/metalmax/mm2r/__init__.py | 28b11094b265c66504f6f00f00bcabd474f683a4 | [] | no_license | czastack/wxFEFactory | 0d7ee77e542234c039b6056aeb44cb2a40341714 | bed824746266734e40103010c0132aad069d723a | refs/heads/master | 2021-06-04T11:31:05.808038 | 2019-06-03T18:51:01 | 2019-06-03T18:51:01 | 97,013,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | name = "重装机兵2 Reload"
| [
"2464851375@qq.com"
] | 2464851375@qq.com |
69b7a726781c982d2d772365a3c004f9fd82f78d | f4f3c7f55512dd47495ee2c8c08a386648806f4c | /examples/utils_ner_pos.py | adf016d02f1f9c698e77821d9fde68fe51cce28c | [] | no_license | Tarpelite/UniNLPv2.0 | 28d80a91f31e36b19cb5ccce6e339289ae3116c9 | c47831b61f012642a3753cceae08a587a6c8ab2e | refs/heads/master | 2022-04-14T23:54:55.648372 | 2020-04-02T02:30:24 | 2020-04-02T02:30:24 | 231,536,882 | 2 | 0 | null | 2020-03-03T14:39:41 | 2020-01-03T07:33:32 | Python | UTF-8 | Python | false | false | 10,711 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"tarpelite_chan@foxmail.com"
] | tarpelite_chan@foxmail.com |
4dffd6ec9d66dc8d5e645ab2525fa92ef0d040ae | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/crawler_20200405025444.py | 323b2d6efdd5c544d1199d2515d1f88c3cf96ddc | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | import requests
from bs4 import BeautifulSoup
import time
import re
# from antz.models import Car
def crawlCarPage(url):
time.sleep(1)
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html.parser')
title = soup.findAll("h1", {"class": "addetail-title"})[0]
titleSpans = title.find_all('span')
year = ... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
0f6bd82af84ad3cc28b89f38fd581f499bd0a909 | c934e7c27f0e72385218a14b4e2a7e94a747a360 | /google-cloud-sdk/lib/surface/events/brokers/delete.py | 72e135654bca69068f00d53001ef2d4394ecf8b7 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PrateekKhatri/gcloud_cli | 5f74b97494df4f61816026af9460b9c4d8e89431 | 849d09dd7863efecbdf4072a504e1554e119f6ae | refs/heads/master | 2023-03-27T05:53:53.796695 | 2021-03-10T04:08:14 | 2021-03-10T04:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google 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/licenses/LICENSE-2.0
#
# Unless requir... | [
"actions@github.com"
] | actions@github.com |
a8d077c41f9c4c7701251ae4c4888da44681e6d5 | de8106716d5a7a53f0bb538fbcdd76b85268abdd | /users.py | 49ff2fd9d4881797aa3eb9490e4c724ea87fc033 | [] | no_license | zerc/flask-test | c405c44f0907ae2b8ee344d93cf09d0d0154921e | 03a6c82220b7b566ae8c1db418cf40da56e06de2 | refs/heads/master | 2020-05-20T07:02:49.885583 | 2013-09-07T16:33:14 | 2013-09-07T16:33:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | # coding: utf-8
import hashlib
from functools import wraps
import simplejson as json
from flask import render_template, request, url_for, flash, redirect
from flask.ext.wtf import Form
from wtforms import TextField
from wtforms.validators import DataRequired
from wtforms.ext.sqlalchemy.orm import model_form
from werkz... | [
"zero13cool@yandex.ru"
] | zero13cool@yandex.ru |
2cc98dd3f0ed28e20c27a3ae7866ac6581f25f90 | 4851d160a423b4a65e81a75d5b4de5218de958ee | /Nth Root of a Number.py | 137ea6ecc13e624a9f0232109b7debbb83205450 | [] | no_license | LarisaOvchinnikova/python_codewars | 519508e5626303dcead5ecb839c6d9b53cb3c764 | 5399f4be17e4972e61be74831703a82ce9badffd | refs/heads/master | 2023-05-05T14:52:02.100435 | 2021-05-25T18:36:51 | 2021-05-25T18:36:51 | 319,399,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | # https://www.codewars.com/kata/5520714decb43308ea000083
def root(x, n):
return x ** (1 / n) | [
"larisaplantation@gmail.com"
] | larisaplantation@gmail.com |
5d5c919416226b252799ced95b96bab878dc5c4e | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/leetenki_YOLOv2/YOLOv2-master/darknet19_predict.py | eab06ab366e85155dc511472658cb0137d1d7f2d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,435 | py | import time
import cv2
import numpy as np
from chainer import serializers, Variable
import chainer.functions as F
import argparse
from darknet19 import *
# argument parse
parser = argparse.ArgumentParser(description="指定したパスの画像を読み込み、darknet19でカテゴリ分類を行う")
parser.add_argument('path', help="クラス分類する画像へのパスを指定")
args = parse... | [
"659338505@qq.com"
] | 659338505@qq.com |
d526dcf86c7ae2686bb4998416555904a8e5d67c | c85657463ea896571f28aaead3825b52baf199bd | /test/script1.py | c6018214d8c1438631fb943bd6249c460fadaa1e | [] | no_license | jasonhogan/sti | ffc9469557bf1480aae4004321d261bb5473e237 | 928428767b8c4131fa342dbbc2bf2e5cbea7340a | refs/heads/master | 2021-07-12T17:55:26.696064 | 2020-08-10T20:56:56 | 2020-08-10T20:56:56 | 19,015,405 | 1 | 1 | null | 2018-04-04T03:14:44 | 2014-04-22T03:09:49 | C++ | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/python
import timing
# Overwrite one variable
timing._overloads['MOT_Current'] = 2
# Run experiment script
timing.include("experiment.py")
# Output results
print "events = ", timing._events
print "event_pos = ", timing._event_pos
print "measurements = ", timing._measurements
print "measu... | [
"FPGA@8bcac300-4d60-4aec-84ba-b7489f70e69b"
] | FPGA@8bcac300-4d60-4aec-84ba-b7489f70e69b |
94f2e1d66cff2b7fb63d270b16485a79914c53e7 | ccb1c24470ce2e646c5fdbd1b421e2d355012385 | /wagtail_srcset/__init__.py | b438091c6d702b16f6de4f9a0f3458304f11c951 | [
"BSD-3-Clause"
] | permissive | ephes/wagtail_srcset | 19b1a801d49161975cec590721f87c1fa6aeb3f2 | 620ec5a364ecadb6777b7832100582c59c2e9eec | refs/heads/main | 2023-08-17T08:19:29.842742 | 2023-08-14T19:48:18 | 2023-08-14T19:48:18 | 240,942,219 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | """
HTML5 image srcset support for Wagtail.
"""
__version__ = "0.3.0"
| [
"jochen@wersdoerfer.de"
] | jochen@wersdoerfer.de |
3a8d00378cf890ecdb3621935d54afe8dc17b6ca | ab2802cd1db32d58478e979420d6738118aeb114 | /venv/bin/django-admin.py | 759d370cbe6e26942ed562acf1d2a1d3c61c14dd | [] | no_license | cosmic-byte/django-seed | 2bb9e7eb891a631ac21dfc78e5ce8056fc9d8c4f | 4790843cf3545654431dd8c5285f307056da963d | refs/heads/master | 2020-03-17T10:07:41.918905 | 2018-05-15T10:40:57 | 2018-05-15T10:40:57 | 133,490,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #!/home/bionic/PycharmProjects/test/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"gregobinna@gmail.com"
] | gregobinna@gmail.com |
243a280c5e14fa14dbcfb948bfa4c7210f659313 | bb76125ed0be54d7179d6843fd870409a4c52314 | /alchemyjsonschema/command/driver.py | 233cebf84f415a42a841215e439b3e9360e55c0b | [
"MIT"
] | permissive | podhmo/alchemyjsonschema | 631e62d2a27641455dfb85c8601365312bff67f1 | 6dd637129146e401301c52880c86c193e85b14ba | refs/heads/master | 2023-08-19T09:52:05.588982 | 2023-08-05T11:37:22 | 2023-08-05T11:37:22 | 20,022,129 | 63 | 16 | MIT | 2023-08-19T10:09:08 | 2014-05-21T13:27:42 | Python | UTF-8 | Python | false | false | 2,201 | py | import magicalimport
from dictknife import loading
from alchemyjsonschema import SchemaFactory
from alchemyjsonschema import StructuralWalker, NoForeignKeyWalker, ForeignKeyWalker
from alchemyjsonschema import RelationDesicion, UseForeignKeyIfPossibleDecision
from ._transformer import (
JSONSchemaTransformer,
O... | [
"noreply@github.com"
] | podhmo.noreply@github.com |
761346647f8d004f2b7f2e21cf11781040b98e85 | 9f6f31bb7fc79067d22bf61feeec03afce663bf2 | /Challenge_Kth_Smallest_Element_in_a_Sorted_Matrix1.py | ac45afd7b7c0d6aad78a8fd474722a701040e6df | [] | no_license | elena0624/leetcode_practice | 8910fef20d5bf7ff0d749602f6aaf5cd4cfc856f | 393ca92a76f00335dd6f4830938d126b9c5af8bc | refs/heads/main | 2023-06-24T00:37:00.890871 | 2021-07-22T10:54:41 | 2021-07-22T10:54:41 | 349,133,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 7 18:08:11 2021
@author: ppj
"""
import heapq
matrix = [[1,5,9],[10,11,13],[12,13,15]]
k = 8
matrix = [[-5]]
k = 1
m=len(matrix)
n=len(matrix[0])
# 從前面
#if k<=(m*n//2):
# 先都從最前面
# 紀錄每一列現在紀到哪裡
idx_ls = [0 for i in range(m)]
stack=[]
# 把每一列的第一個先加進去一個sorted的list
for i... | [
"daipeinew.dif02@g2.nctu.edu.tw"
] | daipeinew.dif02@g2.nctu.edu.tw |
ba9e5d968e77bb05a95f118f7c4d4d03518c1885 | d1944798306dab0d4e591d1522f6172fab36db3c | /0x04-python-more_data_structures/2-uniq_add.py | 39b276d1bccca9b2904ed26492fcab4699348e5f | [] | no_license | Fares84/holbertonschool-higher_level_programming | 775dc73abbc5cef89c7ea6835d99db5a7a9313c3 | 1a7527b6f140ac441dcc2506a77c858cdcd09be4 | refs/heads/master | 2023-05-03T10:41:07.945582 | 2021-05-15T12:36:10 | 2021-05-15T12:36:10 | 319,332,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | #!/usr/bin/python3
def uniq_add(my_list=[]):
sum = 0
arr = []
for i in my_list:
if i not in arr:
arr.append(i)
for i in arr:
sum = sum + i
return sum
| [
"fares.sassi2015@gmail.com"
] | fares.sassi2015@gmail.com |
b763408b57a8d3aacc4c86f9ba64eea8b57fc5fe | a9739c911064a263b6aec5544c41ccdad3fde4d7 | /New folder/py game chess gui .py | 5e68883d36c1be136fff4b8bc39187a91d069ed2 | [] | no_license | Mayank-Bhatt-450/mpl-chess-bot | 57dd17918842e715b9967d8a04c7ae98a174fbdd | 008a56e044ef19fe397fc3cdceb72bb854101b6b | refs/heads/main | 2023-01-01T11:30:32.198080 | 2020-10-07T14:45:52 | 2020-10-07T14:45:52 | 302,067,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | import pygame
def extend(s):
atem1=''
for iii in s:
if ord(iii)>=49 and ord(iii)<=57:
atem1+='-'*int(iii)
else:
atem1+=iii
return atem1
def setfen(past,pr):
alpha={'a':0,'b':1,'c':2,'d':3,'e':4,'f':5,'g':6,'h':7}
past=past.split('/')
for i in range(8... | [
"mayankbhatt457@gmail.com"
] | mayankbhatt457@gmail.com |
86870aaafe2dd70535fdf6247317f58719c32fc7 | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain/datasets/__init__.py | f92bb9642c37c93c60e01ee1eac6056d6c684fe1 | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 301 | py | # $Id$
from sequential import SequentialDataSet
from supervised import SupervisedDataSet
from unsupervised import UnsupervisedDataSet
from importance import ImportanceDataSet
from reinforcement import ReinforcementDataSet
from classification import ClassificationDataSet, SequenceClassificationDataSet | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
39d26ab5f3eafbd71c9b30e26b108c247531e950 | 8cf3a19eb3d0f69e5c0237fc504977330e95aac2 | /workflow/wrappers/bio/popoolation2/fst_sliding/wrapper.py | bb15a8afa23d0b151eee491248f4a76533d466ae | [
"MIT"
] | permissive | NBISweden/manticore-smk | 0c46ab5da5cdf7a40806bfef5ea05558efea8c5e | fd0b4ccd4239dc91dac423d0ea13478d36702561 | refs/heads/main | 2023-08-13T05:44:36.125066 | 2021-10-19T19:12:55 | 2021-10-19T19:12:55 | 308,556,800 | 1 | 2 | MIT | 2021-05-13T07:15:20 | 2020-10-30T07:33:11 | Python | UTF-8 | Python | false | false | 1,275 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Per Unneberg"
__copyright__ = "Copyright 2020, Per Unneberg"
__email__ = "per.unneberg@scilifelab.se"
__license__ = "MIT"
import os
import re
import tempfile
from snakemake.shell import shell
from snakemake.utils import logger
log = snakemake.log_fmt_shell(... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
1b01a7066faf40824ac54b16b37c3b0b85c09797 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/pfnet_chainer/chainer-master/chainer/links/loss/black_out.py | 6a892e6d7673978859800b8ad05c04ddaed2773e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,788 | py | import numpy
import chainer
from chainer import cuda
from chainer.functions.loss import black_out
from chainer import link
from chainer.utils import walker_alias
class BlackOut(link.Link):
"""BlackOut loss layer.
.. seealso:: :func:`~chainer.functions.black_out` for more detail.
Args:
in_size ... | [
"659338505@qq.com"
] | 659338505@qq.com |
57325ad06f00b0dbb3575193c74960d788a21f8d | 57b516169b1b98fc70b78dd2d9e7c427634c28dd | /origin/gen2.py | 3b660956e7caa673e292c367a2898cd6d5ab78c7 | [] | no_license | sswwd95/Project | f32968b6a640dffcfba53df943f0cf48e60d29df | 277e21f25aee49514ac0e28d98143491d1d0a01d | refs/heads/main | 2023-04-21T23:03:24.282518 | 2021-05-18T08:17:15 | 2021-05-18T08:17:15 | 338,989,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,483 | py | import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
import cv2, os
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Flatten, MaxPooling2D, Dropout, BatchNormalization
from tensorflow.keras.preprocessing import image
from tensorflow.keras.utils impo... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
119a572a3c652efc62c17443f9e2187b0beb8dc7 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/generatedServer/tasklets/clouduser/getXMLSchema/clouduser_getXMLSchema.py | 22c50dc9e5a863cc3c4e210820dd3b9dd3c60da0 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 185 | py | __author__ = 'aserver'
__tags__ = 'clouduser', 'getXMLSchema'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
f25d95a1cd2eba339468913e1b802a648ab336c3 | fc5801c60187a036839afac5ddbee834b273b0e1 | /speech_to_text/__init__.py | 252adf9be0ef2a40f44fc6a5a971780dd2042990 | [] | no_license | riquellopes/fala-que-eu-te-escuto | d344bb1dbc0efc28d92c03515dab97e4e05be767 | 68cce32887d58e7d172470ef3bdbc82ca115ea72 | refs/heads/master | 2021-05-16T03:10:59.107276 | 2018-06-30T11:30:28 | 2018-06-30T11:30:28 | 41,651,718 | 1 | 1 | null | 2015-08-31T15:01:16 | 2015-08-31T02:33:26 | Python | UTF-8 | Python | false | false | 2,322 | py | # coding: utf-8
# http://stackoverflow.com/questions/23039101/using-the-att-speech-to-text-api-with-python
import requests
import urllib
import mimetypes
from functools import wraps
API_URL_ATT = "https://api.att.com"
SPEECH_MIME_TYPE = (
"audio/x-wav",
)
class SpeechToTextException(Exception):
pass
def mi... | [
"riquellopes@gmail.com"
] | riquellopes@gmail.com |
06ea74f9c91839e25fe735f5fee4c8fb6c358d72 | c1ff870879152fba2b54eddfb7591ec322eb3061 | /plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/openssl/config/archs/darwin64-x86_64-cc/asm/openssl-cl.gypi | e32b3afb5c571adf4fcd1e211eb3b16b45280826 | [
"ISC",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Artistic-2.0",
"NAIST-2003",
"MIT",
"BSD-3-Clause",
"Zlib",
"NTP",
"LicenseRef-scancode-openssl",
"ICU",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown"
] | permissive | MTASZTAKI/ApertusVR | 1a9809fb7af81c3cd7fb732ed481ebe4ce66fefa | 424ec5515ae08780542f33cc4841a8f9a96337b3 | refs/heads/0.9 | 2022-12-11T20:03:42.926813 | 2019-10-11T09:29:45 | 2019-10-11T09:29:45 | 73,708,854 | 188 | 55 | MIT | 2022-12-11T08:53:21 | 2016-11-14T13:48:00 | C++ | UTF-8 | Python | false | false | 2,602 | gypi | {
'variables': {
'openssl_defines_darwin64-x86_64-cc': [
'DSO_DLFCN',
'HAVE_DLFCN_H',
'NDEBUG',
'OPENSSL_THREADS',
'OPENSSL_NO_DYNAMIC_ENGINE',
'OPENSSL_PIC',
'OPENSSL_IA32_SSE2',
'OPENSSL_BN_ASM_MONT',
'OPENSSL_BN_ASM_MONT5',
'OPENSSL_BN_ASM_GF2m',
... | [
"peter.kovacs@sztaki.mta.hu"
] | peter.kovacs@sztaki.mta.hu |
e00df065bde6870682ca6ff1c5ad8d283df8035b | f15d08f2c287d8694a4bcffe4f053b827a9d5a6a | /nbvnbv/migrations/0001_initial.py | a203c2873bb81b86781e14f862188bf059b99eb0 | [] | no_license | crowdbotics-apps/web-25-dev-6539 | 7e126bc153cb43dcd79affc640e99af7eba6b130 | 6942670374fcf22ac84060691521d4313550dd1d | refs/heads/master | 2022-11-10T15:05:47.573560 | 2020-06-25T12:40:55 | 2020-06-25T12:40:55 | 274,832,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Generated by Django 2.2.13 on 2020-06-25 12:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Skjlkjlj',
fields=[
('id', models.AutoFiel... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5dd5487724d6e5aed64987990b47763897680fa9 | e3a9be3b7c46a14b368404fe30658b83b4effa7c | /setup.py | db4758e4b1b1250065c5ea6707968cd35fc8b94a | [] | no_license | cequencer/profilehooks | 3dace0bdee7c114eaf403f87cfe8d692663537dc | b53247dfce466a42a6449ddc62a959f212ccd1f9 | refs/heads/master | 2020-12-03T05:09:33.707291 | 2015-09-21T08:30:13 | 2015-09-21T08:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | #!/usr/bin/env python
import os
from setuptools import setup
here = os.path.dirname(__file__)
def read(filename):
with open(os.path.join(here, filename)) as f:
return f.read()
setup(
name='profilehooks',
version='1.8.1.dev0',
author='Marius Gedminas',
author_email='marius@gedmin.as',
... | [
"marius@gedmin.as"
] | marius@gedmin.as |
83aa0971a8d8e57beab1a01937ab4496f95392cc | 66313e23c7a7c4202724efb500c25b009b6a207a | /tests/test_report_fixtures.py | 4b65cdd75cefc3ab7559da6603c650ebf195d60e | [
"MIT"
] | permissive | Tomasz-Kluczkowski/Weather-App | 5097a2613038321155ed2acb637ababb124b7344 | 560f6bb84f48618f38da50b94bb19ad73941c596 | refs/heads/master | 2022-12-23T09:58:05.459246 | 2018-01-08T22:30:50 | 2018-01-08T22:30:50 | 90,778,050 | 6 | 3 | MIT | 2022-11-22T01:52:27 | 2017-05-09T18:17:26 | Python | UTF-8 | Python | false | false | 11,931 | py | import pytest
from unittest import mock
import shutil
import appdirs
import os
from weather_backend import Report
from controller import Controller
from weather_gui import WeatherApp
@pytest.fixture(scope="module", autouse=True)
def remove_dirs(app_directories):
"""Delete application folders before testing."""
... | [
"tomaszk1@hotmail.co.uk"
] | tomaszk1@hotmail.co.uk |
d880823e69d7980f8c235aeac3fbde35e4e7887d | dbb7d30603c95908989cae50d21db1c1ac6a001b | /kamal/metrics/__init__.py | 7d35b74a0a6b706b078831e88ad6e1a696bf7e57 | [] | no_license | choppaluv/KamalEngine | 19bca2fd2d74bdf5d2fb083faecc7852e9e2b2cc | afd055779c489af38176d16a94a775564d2e6169 | refs/heads/master | 2020-12-03T13:52:36.334407 | 2019-10-24T13:41:47 | 2019-10-24T13:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from .stream_metrics import *
| [
"2218880241@qq.com"
] | 2218880241@qq.com |
909d64f4d0d639a56c2994477d00341b6c54bda3 | 55c0c2abbdc9ca026ce7cb63fb778780275622f3 | /src/middlewared/middlewared/pytest/functional/test_0075_support.py | 072b8bbe552211119f1fe1dd888cfeffdce0fa56 | [] | no_license | heinrich-foto/freenas | 4b2bb1097dafdfbed39b3ada4144e9335d8601e5 | 367772940aa45cd774efb13c673313785ab4c458 | refs/heads/master | 2021-09-08T08:47:10.473265 | 2017-09-29T17:10:38 | 2017-09-29T17:10:38 | 105,439,202 | 0 | 0 | null | 2017-10-01T12:03:11 | 2017-10-01T12:03:11 | null | UTF-8 | Python | false | false | 670 | py | import errno
import os
from middlewared.client import ClientException
def test_support_fetch_categories(conn):
username = os.environ.get('SUPPORT_USERNAME')
password = os.environ.get('SUPPORT_PASSWORD')
if username and password:
req = conn.rest.post('support/fetch_categories', data=[username, p... | [
"wg@FreeBSD.org"
] | wg@FreeBSD.org |
556f938eed0924ee02f85e71bf515a208e56d602 | a1015793f12ccf0c1b2d830709f26e76d4ba6c48 | /test/test_api/test_call_signatures.py | 56f9ef29e183717cac1d5d584b53d1f6af9080ad | [
"MIT"
] | permissive | IanLee1521/jedi | 20ecc562b665c7a55e46c9aeded81bc9a35b2f5e | 8775d901733a5fbef51445d08ed302d151af75da | refs/heads/master | 2021-01-24T04:20:00.194704 | 2015-02-09T13:41:41 | 2015-02-09T13:41:41 | 31,098,656 | 0 | 0 | null | 2015-02-21T01:11:43 | 2015-02-21T01:11:43 | null | UTF-8 | Python | false | false | 8,044 | py | from textwrap import dedent
import inspect
from ..helpers import TestCase
from jedi import Script
from jedi import cache
from jedi._compatibility import is_py33
class TestCallSignatures(TestCase):
def _run(self, source, expected_name, expected_index=0, line=None, column=None):
signatures = Script(source,... | [
"davidhalter88@gmail.com"
] | davidhalter88@gmail.com |
c36f2b064e75831a06e24534e955e3aa2c4b55b6 | ae54a9f921cece8798249611e17b0f52d888f589 | /ch2-postgresql/manage.py | f789b6b196885b31cd90328c720bd6e07a12b1df | [
"MIT"
] | permissive | adamchainz/djangoforprofessionals | 7d5b0b082f3acaa4e33c6ece5a4fbb7f2f12f259 | 4375c5931ef9b46a04553a057da454b68cf38f27 | refs/heads/master | 2023-07-07T16:35:05.249970 | 2019-09-20T17:47:04 | 2019-09-20T17:47:04 | 214,158,625 | 0 | 0 | MIT | 2019-10-10T10:55:57 | 2019-10-10T10:55:56 | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'postgresql_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"will@wsvincent.com"
] | will@wsvincent.com |
4ddebe1254bf9ea7da4e679d88855f39157f7782 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/ApiModules/Scripts/AnsibleApiModule/AnsibleApiModule_test.py | 8dcff10304c85ece93b915010fa9a4a24d3b674e | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 12,992 | py | import os
from AnsibleApiModule import dict2md, rec_ansible_key_strip, generate_ansible_inventory, generic_ansible
from TestsInput.markdown import MOCK_SINGLE_LEVEL_LIST, EXPECTED_MD_LIST, MOCK_SINGLE_LEVEL_DICT, EXPECTED_MD_DICT
from TestsInput.markdown import MOCK_MULTI_LEVEL_DICT, EXPECTED_MD_MULTI_DICT, MOCK_MULTI... | [
"noreply@github.com"
] | demisto.noreply@github.com |
4d3fd2e85ae6ef51c49b2058f410940b1104790d | 769f6d88fd777459eb60eb1bbb0fba17cb20d963 | /Chapter02/parse_xml_w_lxml.py | 5794b6e5820aaae94093c5a9ecba3169fe05d847 | [
"MIT"
] | permissive | PacktPublishing/Python-Web-Scraping-Cookbook | 141379d09abe2c7d8f408858a2eb44ff0fe3ef26 | 030eb974ba1437b2590b59d38f19fb697bbf9d4c | refs/heads/master | 2023-02-16T04:29:49.942243 | 2023-01-30T04:19:03 | 2023-01-30T04:19:03 | 120,744,571 | 115 | 105 | MIT | 2019-10-03T17:38:37 | 2018-02-08T10:08:48 | HTML | UTF-8 | Python | false | false | 2,221 | py | import xml.etree.ElementTree as ET
def main():
file_name = 'sample.xml'
tree = ET.parse(file_name)
# you can also read data from a string:
# with open(file_name, 'r') as fr:
# file_as_string = fr.read()
# tree = ET.fromstring(file_as_string)
# the root node (which is catalog in thi... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
199965267c4e55ccbfdddbded1d537a5f9ede247 | 3fb0ce33f00b96ae3808a32da44de3e887434afb | /.提出一覧/AtCoder/abc182/e/main.py | 865d7eb9ecf86fe3f19f647f0769ad55c3a0a5b5 | [] | no_license | Yukikazari/kyoupuro | ca3d74d8db024b1988cd0ff00bf069ab739783d7 | 343de455c4344dbcfa4524b492f7f6205c9db26f | refs/heads/master | 2023-02-21T01:53:52.403729 | 2021-01-27T03:55:01 | 2021-01-27T03:55:01 | 282,222,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | #!/usr/bin/env python3
#import
#import math
#import numpy as np
#= int(input())
#= input()
H, W, N, M = map(int, input().split())
AB = [list(map(int, input().split())) for _ in range(N)]
CD = [list(map(int, input().split())) for _ in range(M)]
lh = {i:[] for i in range(H)}
lw = {i:[] for i in range(W)}
bh = {i:[] for... | [
"haya_nanakusa793@yahoo.co.jp"
] | haya_nanakusa793@yahoo.co.jp |
be4b05d45f5fe7a10d8066662fc98573b4b197e5 | 9fd0e9df52bff792b5b96f6dcd1fa03cc467c18d | /source/members/migrations/0003_auto_20140922_2126.py | 7db6dad3d97405ec585880ba50b235a88544a688 | [] | no_license | mooja/ssip209 | 87d4385c7e5038bb0ecfb2a4a3faee7aa2a9cea1 | bfba4cddecff44057bd6d9da171b1ebfdb5148f3 | refs/heads/master | 2020-04-30T22:00:58.032859 | 2015-02-20T14:55:48 | 2015-02-20T14:55:48 | 24,278,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('members', '0002_auto_20140922_2124'),
]
operations = [
migrations.AlterField(
model_name='member',
n... | [
"max.atreides@gmail.com"
] | max.atreides@gmail.com |
45c2dde2f9d255a2f93dc348faab58310193a1cd | ab0315bcded75c10c591076b22ed8ff664ee76af | /fig4/8mods_round3_0919/config_scf_8mods_data_freeze_190917_sub6_1.py | 6f486e1bc97192a6d59c6c71bcd6509344032d4f | [] | no_license | mukamel-lab/BICCN-Mouse-MOp | 389f62492986a2ffe4278ed16f59fc17dc75b767 | 8058ab8ae827c6e019fff719903b0ba5b400931d | refs/heads/master | 2021-07-06T11:14:25.401628 | 2020-09-30T04:54:27 | 2020-09-30T04:54:27 | 189,758,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | #!/usr/bin/env python3
"""An example configuration file
"""
import sys
sys.path.insert(0, '/cndd/fangming/CEMBA/snmcseq_dev')
import os
import snmcseq_utils
# # Configs
name = 'mop_8mods_0915_k30_sub6-1'
outdir = '/cndd/fangming/CEMBA/data/MOp_all/results'
output_pcX_all = outdir + '/pcX_all_{}.npy'.format(name)
out... | [
"fmxie1993@gmail.com"
] | fmxie1993@gmail.com |
e9ab67893525b89312763a76eae4bcce1a3a1cf5 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/PhysicsAnalysis/PrimaryDPDMaker/share/DRAW_EGJPSI.py | d4ea9dff565f7492b4c6176d09085dd356f4ef0c | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | ####################################################
### Setup:
### sequencer
### derivation framework / event selection
####################################################
# Sequence
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
DRAW_EGJPSI_Seq = CfgMgr.AthSequencer("DRAW_EGJ... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
7ea85b66372e4d69b003e83c7865be39547aab82 | 2f4184af31121fd31b397d5b529b795774b30856 | /backend/mobile_app_deploy_de_1434/settings.py | 4be29ec2506df0c4084aae1edb77c34f019a7a82 | [] | no_license | crowdbotics-apps/mobileappdeploy-dev-1434 | c0944b53808fbb02ff664a8f2bd012648fc9e352 | 5a9bcdda33a473174be7f0446e4109c1d8d2c383 | refs/heads/master | 2022-03-28T11:20:26.124765 | 2020-01-15T10:40:11 | 2020-01-15T10:40:11 | 231,558,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,759 | py | """
Django settings for mobile_app_deploy_de_1434 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8ea16082845a58b09d725dccca265b824a59245b | e2778ce4462b1e02437d5778047e4cd9772163dd | /blog/models.py | fba796a25bd14c537956b39922035180837b7126 | [] | no_license | Gifty99/my-first-blog | 9e03cd310844132d82e223f561ef51f96f933b3f | dfd873388e5a86c8374c00ddf92e47841cd35add | refs/heads/master | 2020-07-01T03:19:20.572362 | 2019-08-07T09:51:37 | 2019-08-07T09:51:37 | 201,030,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=tim... | [
"you@example.com"
] | you@example.com |
1825b00443b4a9a80a3456a607835ff9a44227a3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_077/ch18_2020_03_31_03_00_29_526554.py | 31142e1caba7e8ef2b9f99e9db67298186fda438 | [] | 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 | 208 | py | def verifica_idade(idade):
if idade >= 21:
return 'Maior nos EUA e BRASIL'
else:
if idade >= 18:
return 'Maior no BRASIL'
else:
return 'Menor de idade'
| [
"you@example.com"
] | you@example.com |
00eea4f98e413db8d3af92be7519225832969b7f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02772/s223284706.py | 49d66d110da6a3ffb032c48f8f00477188ad73e6 | [] | 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 | 191 | py | MM = int(input())
AA = input().split()
count = 0
for j in AA:
i = int(j)
if i%2 ==0:
if i%3 !=0 and i%5 !=0:
count +=1
if count == 0:
print('APPROVED')
else:
print('DENIED') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e744a9aa21a943c3f4f2330cdcaecebcd27ff2ae | 60ec1bf5342eca3d97629dcdf974f7731d7be12b | /direzione/apps.py | 0b71719eca69e4e48e24d91b9fc5a8d4760e986d | [
"BSD-2-Clause"
] | permissive | andywar65/rpnew_base | 8eef1b71562a00889d170b1668faa487a753cb05 | 9281cb16783313a1cd23b1394f2bad485ac1b33d | refs/heads/master | 2020-09-07T15:06:23.205802 | 2020-03-09T17:24:13 | 2020-03-09T17:24:13 | 220,818,439 | 1 | 0 | BSD-2-Clause | 2020-02-16T12:30:04 | 2019-11-10T16:38:52 | Python | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class DirezioneConfig(AppConfig):
name = 'direzione'
| [
"andy.war1965@gmail.com"
] | andy.war1965@gmail.com |
e03dd5caed8c415887d7547f61cc93f6c18b22c5 | 4664328482163fd927603d66f47209b28471cf0f | /venv/lib/python3.7/site-packages/datalad/support/third/loris_token_generator.py | 603758268a5ef75f0f2473259a2719c984511a77 | [
"MIT"
] | permissive | emmetaobrien/dats-validator | 08706ddab795d272391b3611cd3ba0de8c4a91a1 | fb25f97a32119c2bce4eb50dc080a93d5ee77141 | refs/heads/master | 2020-12-19T05:03:17.179117 | 2020-01-22T17:28:38 | 2020-01-22T17:28:38 | 235,626,049 | 0 | 0 | MIT | 2020-01-22T17:24:56 | 2020-01-22T17:24:56 | null | UTF-8 | Python | false | false | 1,474 | py | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ##... | [
"giulia.ippoliti@mail.mcgill.ca"
] | giulia.ippoliti@mail.mcgill.ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.