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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2a6d6fb5d856841a71f7e4dbe3e29b07e0c0679 | bb0ced047bd1b1113c70b62c2391988b76c3c3c4 | /24_practiceProblem.py | 5e1eeb19c0f9dca177dcb0ae4e2613d9c015fb0d | [] | no_license | sabrinsingh/Python | 2e37168c051ca3829a082a6087980fcc1eb499aa | 4c138b53b1dd333e5648972006e1317a6e7be083 | refs/heads/master | 2023-01-19T16:53:48.311332 | 2020-11-26T08:40:39 | 2020-11-26T08:40:39 | 291,505,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Separate the number from the string, then add each number and show the result. A
# Also, return the remaining string character
inp=input("Please enter a string : ")
numTotal=0
num=[]
chars=''
for char in inp:
if(char.isdigit()):
num.append(char)
numTotal += int(char)
else:
chars+=cha... | [
"you@example.com"
] | you@example.com |
cf97e3dacbe7bb6bcd9d77abb693ba87c15a54a8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03359/s319406767.py | 6a55692dc0807ae5dd6c29bbd13012eb46548eb0 | [] | 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 | 85 | py | a, b = [int(i) for i in input().split()]
if a <= b:
print(a)
else:
print(a-1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3f928470fbb4591bc6a8200b3529af86e203898f | 76dbfe3ecdaa82092a80b7010053f1fe921184b3 | /rqt_topic/src/topic_info.py | 30d0dd7415dd44eb593424fa2525c1b99e386a5a | [] | no_license | my-garbage-collection/rqt_test | d9eea02bfd437150c14a877429b3f92a5d222db5 | 27ff71e8dd3ea763df78e29159cd45d440cac527 | refs/heads/master | 2021-01-23T03:53:05.488467 | 2015-04-19T02:00:51 | 2015-04-19T02:00:51 | 34,189,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | #!/usr/bin/env python
from __future__ import division, with_statement
from StringIO import StringIO
from python_qt_binding.QtCore import qWarning
import roslib
import rospy
from rostopic import ROSTopicHz
class TopicInfo(ROSTopicHz):
def __init__(self, topic_name, topic_type):
super(TopicInfo, self)._... | [
"ryosuke.murata.7@gmail.com"
] | ryosuke.murata.7@gmail.com |
68d843890b5701194122f091471f667ebeed0a74 | d49a7f1f2d6b41a3b0eb63beb154e46394f971df | /python/colors.py | 93aa73d58d9169319a4cb4a8a5a08fc827979208 | [] | no_license | zhangzc11/HHLooper | a54fa2b665791e80deda3ff927c2b1735c7fff61 | e16d3ef1d8776c8d4d39ecf3ca32980b995581c7 | refs/heads/master | 2021-11-22T05:42:21.645894 | 2021-09-01T05:27:43 | 2021-09-01T05:27:43 | 251,122,384 | 0 | 1 | null | 2021-09-01T05:27:43 | 2020-03-29T20:01:56 | C++ | UTF-8 | Python | false | false | 3,960 | py | import ROOT as r
mycolors = []
mycolors.append(r.TColor(11005 , 103 / 255. , 0 / 255. , 31 / 255.))
mycolors.append(r.TColor(11004 , 178 / 255. , 24 / 255. , 43 / 255.))
mycolors.append(r.TColor(11003 , 214 / 255. , 96 / 255. , 77 / 255.))
mycolors.append(r.TColor(11002 , 244 / 255. , 165 / 255. , 130 / 255.))
m... | [
"zzhang2@caltech.edu"
] | zzhang2@caltech.edu |
a1d2a2d75452a89fd89d1b7716ffaed39ca1139b | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /zerver/migrations/0313_finish_is_user_active_migration.py | 4f78dd41ea3d5fb09d3ec962d625ab2723304f19 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 2,175 | py | # Generated by Django 3.1.5 on 2021-02-07 14:56
from django.contrib.postgres.operations import AddIndexConcurrently
from django.db import connection, migrations, models
from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def backfill_is_user_active(a... | [
"tabbott@zulip.com"
] | tabbott@zulip.com |
6f39509cb427da96008e4546087cb354dec2836f | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkWatershedImageFilterPython.py | ffea0b0ac304d2486b2edf40ebe7da47d4cc2525 | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 66,171 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _itkWaters... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
f41e63f712678da6daebba5c00fad9b09496ee70 | f5579df6dc0094e8a4770e1000a573369f7c7f4e | /mirage/catalogs/model_atmosphere.py | 654f3859227514512c862132ece671f03a086c0f | [
"BSD-3-Clause"
] | permissive | spacetelescope/mirage | 987c8bfbe9620e66b943d571b1f7a613d5f260e3 | 3704c9cac80c49904a03c636126d3b7138666ebf | refs/heads/master | 2023-03-16T18:41:00.759350 | 2022-12-19T20:34:35 | 2022-12-19T20:34:35 | 109,982,775 | 41 | 46 | BSD-3-Clause | 2023-03-13T10:57:30 | 2017-11-08T13:58:01 | Python | UTF-8 | Python | false | false | 20,938 | py | #!/usr/stsci/pyssg/Python-2.7/bin/python
"""
Module to download and normalize stellar model atmospheres for soss_simulator.SossModelSim class
Author: Nestor Espinoza
"""
import numpy as np
import os
from pkg_resources import resource_filename
from scipy import interpolate, ndimage
import shutil
import urllib.request ... | [
"jfilippazzo@stsci.edu"
] | jfilippazzo@stsci.edu |
48ad03ea590372a80a87c1337fae3022b6202f3f | 9c5116ab446a0fba4dfaaa1685cbd3a1042dc054 | /kubernetes/test/test_v1_build.py | 5fba57b577f0c0e499850bb4f57be90c495d5d44 | [
"Apache-2.0"
] | permissive | caruccio/client-python | fc11a354ce15507c94308e35b6790b6776e01e6e | cb65186027ce68beedcd7752c488b8e3b5c0968e | refs/heads/master | 2021-01-25T08:18:45.601502 | 2017-06-08T13:14:06 | 2017-06-08T13:14:06 | 93,747,698 | 0 | 0 | null | 2017-06-08T12:37:32 | 2017-06-08T12:37:32 | null | UTF-8 | Python | false | false | 4,094 | py | # coding: utf-8
"""
OpenShift API (with Kubernetes)
OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is... | [
"mateus.caruccio@getupcloud.com"
] | mateus.caruccio@getupcloud.com |
195ddf346dde8f1aedd8ebb3cc6be0c242fb1637 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py | 77ef5a7ad2ca49d1dd71fcbaeaeb584b91e28a43 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 33,687 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
a6df934e8df570d1c7d3931b05001087d4eca25c | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v1/aio/_configuration.py | 25ac221adc24229a6b27028b8eb506ca1e4167d7 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 3,301 | 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 |
eadcca15a3bdceba4acd18b24d9ac7dd2460adb8 | f48eb9ba6760a4705f01664ace3fabe72ac15a51 | /ex31.py | 0deabb337ff3754fdc2cba8a5eeeeb4f394770bc | [] | no_license | dorabelme/Learn-Python-3-the-Hard-Way | cc68c42c2cc132ed8633623c2f45d61ef2780a22 | f025742868f29fe6a476546ef9fb89676b79ef6d | refs/heads/master | 2020-05-02T23:21:30.179316 | 2019-03-28T20:33:26 | 2019-03-28T20:33:26 | 178,277,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | print("""You enter a dark room with two doors.
Do you go through door #1 or door #2?""")
door = input("> ")
if door == "1":
print("There's a giant bear here eating a cheese cake.")
print("What do you do?")
print("1. Take the cake.")
print("2. Scream at the bear.")
bear = input("> ")
if bear == "1":
print("... | [
"contact.dorabelme@gmail.com"
] | contact.dorabelme@gmail.com |
aaf7af8efd9f293b11e2b947bad1e8c17299bfce | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/tests/storage/unit/api/test_versions.py | 4122e3ea4446ba1135c726f22da85c9b2c58b8d0 | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,977 | py | # Copyright 2015 Clinton Knight
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"nkapotoxin@gmail.com"
] | nkapotoxin@gmail.com |
f133538bce527e8fc1e1c884498108adc9619e15 | 5e9bda2d6082f62d889df1c28973436af905faaa | /demo/AboutBox.py | ed56845bd37c76e293a5b35cf29d8b63350b906d | [] | no_license | FXCMAPI/Phoenix | cab74db4e8f141f4d27b4b2e3d5bab06994b2e52 | 040763282f04a5b98f89c054b254993d1a8ca618 | refs/heads/master | 2020-03-16T15:42:10.660845 | 2018-05-09T01:41:51 | 2018-05-09T01:45:33 | 132,755,174 | 1 | 1 | null | 2018-05-09T12:41:54 | 2018-05-09T12:41:53 | null | UTF-8 | Python | false | false | 2,485 | py | #!/usr/bin/env python
import wx
import wx.adv
from wx.lib.wordwrap import wordwrap
#----------------------------------------------------------------------
class TestPanel(wx.Panel):
def __init__(self, parent, log):
self.log = log
wx.Panel.__init__(self, parent, -1)
b = wx.Button(self, -1... | [
"robin@alldunn.com"
] | robin@alldunn.com |
04c189fdc7b873d31981af5e4f2f7b2a0312fa81 | 38422c3edeb269926502fed31a0761aff8dd3d3b | /LIMS/TEST_gui_v1.py | 9003c6313b4665e5aba2a2bfd44042dcbd44b1e8 | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,923 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 12 09:06:01 2018
@author: Vedran Furtula
"""
import traceback, sys, os, sqlite3, configparser
import re, serial, time, datetime, numpy, random, yagmail, visa, scipy.io
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c5308127383b6f988d2aa54bec0de3c3e0d84771 | 5210993914691c70076be979aa5c57c33d5d3bc4 | /Programming0-1/Week_1/5-Saturday-Tasks/reverse_int.py | b2c990faee95eb6eb45580433fff736c6fa352d7 | [] | no_license | presian/HackBulgaria | d29f84ab7edc85a4d8dfbf055def7d0be783539e | 8bc95bb31daeb1f5a313d25b928f505013f5f0b0 | refs/heads/master | 2021-01-10T04:38:05.759005 | 2015-10-15T07:05:21 | 2015-10-15T07:05:21 | 36,889,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | print(input("Please enter a number: ")[::-1]) | [
"presiandanailov@gmail.com"
] | presiandanailov@gmail.com |
b3591b4efce664ab607410f9afee1f2e7305700f | 119a5718263ada4ef9303223b906bc7b50481193 | /src/running_example/explore_illustrative_example.py | 369a98e6dc43bca4bfbfe359fc3e491870cea11d | [] | no_license | thearod5/LeveragingIntermediateArtifacts | 9467400505dcb3f30673fa8160b8bc3105370842 | 3fcd74929d15f7dc314a35c87d32e0de614efca2 | refs/heads/master | 2023-06-03T07:43:48.292111 | 2021-06-18T00:55:37 | 2021-06-18T00:55:37 | 307,234,065 | 0 | 0 | null | 2021-03-19T06:50:37 | 2020-10-26T01:47:02 | Java | UTF-8 | Python | false | false | 1,356 | py | from api.datasets.builder.dataset_builder import DatasetBuilder
from api.datasets.dataset import Dataset
from api.tracer import Tracer
DATASET_NAME = "IllustrativeExample"
TOP_TECHNIQUE_NAME = "(. (VSM NT) (0 1))"
BOTTOM_TECHNIQUE_NAME = "(. (VSM NT) (1 2))"
DIRECT_TECHNIQUE_NAME = "(. (VSM NT) (0 2))"
TECHNIQUE_NAME ... | [
"vhsalbertorodriguez@gmail.com"
] | vhsalbertorodriguez@gmail.com |
757a33e61ec3cd5f767c901b92db489dfedecaf9 | 6ada2963ec266fe22c3890b4aa0fae1bd179efbd | /leetcode/高频面试/我和我的小伙伴们的面试题/百度面试题/我的面试题/将整数转换成字符串/int2str.py | 2e4e81b75e9f8d864c8a8e22005803d058958fbd | [] | no_license | guohaoyuan/algorithms-for-work | e40bc920dbae0436146b590441d4c83d1fb8ab51 | f1bbd6b3197cd9ac4f0d35a37539c11b02272065 | refs/heads/master | 2023-06-20T21:55:46.037990 | 2021-08-06T08:20:05 | 2021-08-06T08:20:05 | 267,294,002 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | """
我是真的菜
将整型转换成字符串,
例如,
1->A, 2->B, 3->C
4->AA 5->AB 6->AC
7->BA 8->BB 9->BC
10->CA 11->CB 12->CC
13->AAA 14->AAB 15->AAC
"""
class Solution:
def int2str(self, n):
"""
:param n: > 0
:return: str
"""
shang, yu = n // 3, n % 3
res = ''
wh... | [
"970992936@qq.com"
] | 970992936@qq.com |
ad9bf2e3438dc5fdb39a836be6f0a043c3681f02 | 609187b54212d9101329641f1204482f01cf39dd | /RedditLive.py | c85c242d1a01d7ddd18d919d53cd1a0b25dffc01 | [] | no_license | cthacker-udel/Python-Reddit-API | 116e4f9b2c94d7cdabc527197d52c390056a96a6 | 873b7c53636dc3867e113d33ab8ff936cd5c4bd7 | refs/heads/master | 2023-06-01T11:38:24.381831 | 2021-06-19T20:43:21 | 2021-06-19T20:43:21 | 362,561,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,763 | py | from RedditClient import RedditClient
class RedditLive(RedditClient):
def __init__(self):
super().__init__()
self.names = []
self.api_type = None
self.description = None
self.nsfw = None
self.resources = None
self.title = None
self.uh_x_modhash_heade... | [
"cthacker@udel.edu"
] | cthacker@udel.edu |
11095ee5bbf40aa6269206b223728f455a23a3a1 | 222a9d26e163c7f40011c75fe7bfa2813fa34806 | /vitrinebela/accounts/migrations/0002_auto_20170223_2138.py | 3e41b26b4d35af35063cdeb55bc8c1fd8ab6c8f7 | [] | no_license | CoutinhoElias/vitrinebela | 75e30d06d1bc5a21f11ed426ce12caa12e770989 | b11991d4588b45301ba20c895bc9012cadc3c39f | refs/heads/master | 2020-04-22T10:09:31.065340 | 2017-03-16T17:31:16 | 2017-03-16T17:31:16 | 66,220,416 | 6 | 4 | null | 2017-03-01T23:59:04 | 2016-08-21T20:58:16 | JavaScript | UTF-8 | Python | false | false | 510 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-23 21:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"coutinho.elias@gmail.com"
] | coutinho.elias@gmail.com |
e861295a352968acb7c6318e718e3d3abcee98ad | 825aa5a7f6b1b7a2ca724db771f50a131ed837a2 | /hyperengine/model/__init__.py | 99dcdec074b30b7ef4f42015a8725cfde5201be4 | [
"Apache-2.0"
] | permissive | Sanyam07/hyper-engine | 295898ae25691ee8a99617ffdc030e5e4e151858 | 743344afa52032d7b2b4a2cfb25caf2190c1a8ac | refs/heads/master | 2021-05-21T16:09:12.691309 | 2018-08-28T07:21:06 | 2018-08-28T07:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'maxim'
from .base_runner import BaseRunner
from .base_solver import BaseSolver
from .curve_predictor import BaseCurvePredictor, LinearCurvePredictor
from .data_set import Data, DataSet, DataProvider, IterableDataProvider, merge_data_sets
from .hyper_tuner im... | [
"Maxim.Podkolzine@jetbrains.com"
] | Maxim.Podkolzine@jetbrains.com |
ce4286588db83ec7c28b1d772c7861b0ba642970 | d346c1e694e376c303f1b55808d90429a1ad3c3a | /medium/105.construct_binary_tree_from_preorder_and_inorder.py | b5f9cc3f494856c8bd43e7d212722fe9f16e92fa | [] | no_license | littleliona/leetcode | 3d06bc27c0ef59b863a2119cd5222dc94ed57b56 | 789d8d5c9cfd90b872be4a4c35a34a766d95f282 | refs/heads/master | 2021-01-19T11:52:11.938391 | 2018-02-19T03:01:47 | 2018-02-19T03:01:47 | 88,000,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def buildTree(self, preorder, inorder):
"""
:type preorder: List[int]
:type inorder: List[int]
:rtype: Tr... | [
"aria@Arias-MacBook-Pro.local"
] | aria@Arias-MacBook-Pro.local |
496895a289efc357ebbe8ab6199d2b14a74a381e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1350.py | d11517bb70a076f407fa3e8ec1c683d6eca36e62 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # Solution to "Cookie Clicker Alpha" for Google Code Jam 2014
# by Peter Mattsson (quantum.caffeine@gmail.com)
import sys
import string
def inputData():
with open(sys.argv[1], 'r') as infile:
numCases = int(infile.readline())
for c in range(numCases):
data = (float(x) for x in infile.readline().split())
yie... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
00ddaa21213c07ec950eaee876c2494b71fd3b9e | 61dd3524e904ee055a761815239da55db26f03eb | /PYTHON-CURSO EM VIDEO/Desafio 015.py | 403085f05f5d09f1b4a727d5fd6efb17ba56841e | [
"Apache-2.0"
] | permissive | JaumVitor/HOMEWORK-PYTHON | 149e4cb6d10421d1e980dd5b75a92f87355582f8 | 7be3299f36af3a924fc5c6f4a63aeed0fd8fb38e | refs/heads/master | 2022-09-15T11:00:55.019562 | 2022-08-26T18:46:06 | 2022-08-26T18:46:06 | 256,103,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | dia = int ( input ( 'Quantos dias passou com o carro ? '))
km = float ( input ( 'Quantos km foram rodados ? '))
custo = (dia * 60) + (km * 0.15)
print ( 'Valor do aluguel é de R${}'.format(custo ))
| [
"joao.vitor.pires.060@gmail.com"
] | joao.vitor.pires.060@gmail.com |
d5eece458ee9d0735d6261a265c0f7828a060380 | eae4038397ea0b0b1ea56424888f53369a1e4282 | /moai/data/datasets/synthesis/CelebA/__init__.py | e9888f84cc5f7a538b972bd607b8dfa85a4ccc16 | [
"Apache-2.0"
] | permissive | iampakos/moai-0.1.0a2 | b2378e9e0a84b85c0e2251a419d39d3da7ea17f9 | 2f066bffc66faca0bdc9af53e7992df34d09ce5d | refs/heads/main | 2023-03-13T13:27:54.318498 | 2021-04-01T14:36:52 | 2021-04-01T14:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from moai.data.datasets.synthesis.CelebA.CelebA import CelebA
__all__ = [
"CelebA",
] | [
"pakos@ai-in-motion.dev"
] | pakos@ai-in-motion.dev |
458144b130dbd1467a278a0d5988afb322bde8cc | 98dbdb76f570f35499359cd4161c0fd6ecd6e1da | /solutions/238-1.py | ff509174590c1c282418eecfdc1fc1b770e69e6c | [] | no_license | Anshul1196/leetcode | 194846ceba4d202e78a4b6961b859e2801f3f156 | de2b8bbc7cd744bb28ff9dcfe1d1cdc388c3fe8d | refs/heads/master | 2022-12-08T18:50:56.727974 | 2020-08-18T07:56:12 | 2020-08-18T07:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | """
Solution for Algorithms #238: Product of Array Except Self.
- N: Length of `nums`
- Space Complexity: O(N)
- Time Complexity: O(N)
Runtime: 112 ms, faster than 32.74% of Python3 online submissions for Product of Array Except Self.
Memory Usage: 20.5 MB, less than 77.34% of Python3 online submissions for Product o... | [
"seungjaeryanlee@gmail.com"
] | seungjaeryanlee@gmail.com |
d7fc2a91fecb04b86dc02d7301f7b338bc0155bf | db8fc660e5e8e5651fce5dcd6144a82bb912ee32 | /com/TheoryAndPracticeBook/02chapter/2.2.1.py | 7b9a258d2f46a9ebb6bdf4920b77f16185ecd263 | [] | no_license | xianglingchuan/python-learn-project | 8d43038d2d0238fabed6ff27f0d21233f6a682b9 | fcd40ac9ab6a04d3aee62879c058219c58c8fae3 | refs/heads/master | 2021-10-19T05:03:50.427325 | 2019-02-17T14:56:07 | 2019-02-17T14:56:07 | 115,020,638 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | # -*- coding: utf-8 -*-
# !/usr/bin/python
###################
#Hellow world
###################
def callHello():
print ("hello world python.");
callHello();
print("============= 语句和控制流 ===============");
def CallLevel(score):
if score >= 90:
print ("优秀");
elif score >= 60:
print ("及格");
... | [
"xianglingchuan@sina.cn"
] | xianglingchuan@sina.cn |
e67182c404e5c212bf5f768b19004383f038a6db | 5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04 | /google/ads/googleads/v5/enums/types/access_role.py | 78c0ed67c41b9c62e5b494af20a8ee0ca831f942 | [
"Apache-2.0"
] | permissive | pdsing/google-ads-python | 0ce70227cd6bb13a25cd13de0ca05c2636279ecd | ee2c059498d5679a0d1d9011f3795324439fad7c | refs/heads/master | 2023-05-04T18:39:57.412453 | 2021-05-21T16:38:17 | 2021-05-21T16:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | pdsing.noreply@github.com |
b8d135b884da6ee812e20013d0095f132ee67683 | c7ea95a0be5ca305f199cddfb4df0b788d8103c4 | /DummyExercises/NumberOfDigitsInAnInteger.py | f69e9864e2f0552583f1f547f272ca8759596273 | [] | no_license | YeasirArafatRatul/Python | ee1cdc4aab0e0c7a79ce70e45e3928df6ebfd94a | e96c17f368248ac714c412be16ddbb9e2355ba3b | refs/heads/master | 2021-07-15T02:10:45.938145 | 2021-07-13T15:10:42 | 2021-07-13T15:10:42 | 186,282,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | n = int(input("Enter a number: "))
counter = 0
while(n>0):
n = n//10
counter += 1
print("Digits in the integer : ",counter)
| [
"yeasirarafat.ratul@gmail.com"
] | yeasirarafat.ratul@gmail.com |
0069ccb01d578051b593e9270ddd22a5eb8666a8 | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/test_base.py | 602fec32a076f96cca00248e052e4efd9b4aa675 | [] | 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 | 4,363 | py | # -*- coding: utf-8 -*-
from collections import OrderedDict
from plone.testing.zca import UNIT_TESTING
import unittest
class TestBase(unittest.TestCase):
layer = UNIT_TESTING
def test_calc_field_move_basics(self):
from plone.autoform.base import AutoFields
autofields = AutoFields()
... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
8c2f983a0d77abdb6c51132d8ffc2249807d1dbd | 00dc6da86b52880fcf41448b76f39329c1474487 | /tetris.py | 232e4f68405b1839edf918cf200c6a55890e062b | [] | no_license | vtt-info/gameESP-micropython | 83da6dc30c9647070d4464f17be1d85dab553d2b | d43b65393ca3c3e9656d625a693f4d483d1966e5 | refs/heads/master | 2020-11-27T20:42:49.666898 | 2019-12-22T14:51:24 | 2019-12-22T14:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,036 | py | # tetris.py
#
# ESP8266 (node MCU D1 mini) micropython game for Tetris
# by Billy Cheung 2019 08 31
#
# SPI OLED
# GND
# VCC
# D0/Sck - D5 (=GPIO14=HSCLK)
# D1/MOSI- D7 (=GPIO13=HMOSI)
# RES - D0 (=GPIO16)
# DC - D4 (=GPIO2)
# CS - D3 (=GPIO0)
# Speaker
# GPIO15 D8 Speaker
# n.c. - D6 ... | [
"noreply@github.com"
] | vtt-info.noreply@github.com |
27505c09ca374e7bf58f41a3c3517198b9c37768 | 4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8 | /flask/blueprint/app/main/errors.py | d03bc09049ccaef6ab852a4232a1fbb335c8b6a7 | [
"MIT"
] | permissive | gozeon/code-collections | 464986c7765df5dca980ac5146b847416b750998 | 13f07176a6c7b6ac13586228cec4c1e2ed32cae4 | refs/heads/master | 2023-08-17T18:53:24.189958 | 2023-08-10T04:52:47 | 2023-08-10T04:52:47 | 99,432,793 | 1 | 0 | NOASSERTION | 2020-07-17T09:25:44 | 2017-08-05T15:56:53 | JavaScript | UTF-8 | Python | false | false | 247 | py | from flask import render_template
from . import main
@main.app_errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
@main.app_errorhandler(500)
def page_not_found(e):
return render_template('500.html'), 500
| [
"goze.qiu@gmail.com"
] | goze.qiu@gmail.com |
3a1d05e6d5ccbbb2b9ff9521ea30f279822db427 | de3413c3af4ac0a76d817a7e624d8d2e08379003 | /tools/parse_out_email_text.py | 58447ddca09ae1c6999747df589ef6db29083db3 | [] | no_license | victorlifan/ud120-projects_mechine_learning_ex | 8aded0e48955e1970ab501567317e660fdce97e9 | 39834cf8607dd448db332937953bf0a8a7303832 | refs/heads/master | 2022-07-10T15:03:04.212606 | 2020-04-14T02:02:22 | 2020-04-14T02:02:22 | 250,891,814 | 0 | 0 | null | 2022-06-22T01:35:58 | 2020-03-28T20:56:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,367 | py | #!/usr/bin/python
from nltk.stem.snowball import SnowballStemmer
import string
def parseOutText(f):
""" given an opened email file f, parse out all text below the
metadata block at the top
(in Part 2, you will also add stemming capabilities)
and return a string that contains all the words
... | [
"victorlifan@vip.qq.com"
] | victorlifan@vip.qq.com |
e7be86e2769141c1901f15ebf37940ff60c1aab8 | 5ae4faed34e12607930cf7294f0a4a1b3fe484d7 | /code/240 Search a 2D Matrix II.py | 26633167b777d77f435fdd6d6a89a15ff2460f7d | [
"MIT"
] | permissive | Hehwang/Leetcode-Python | 9c09ee838699fea471bda9a694c0248073dfa3fb | 1e53d6575143aac2ea8424f3f4830f1b1eb0aaee | refs/heads/master | 2022-03-27T12:42:44.089866 | 2020-01-08T07:44:12 | 2020-01-08T07:44:12 | 105,106,700 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class Solution(object):
def searchMatrix(self, matrix, target):
"""
:type matrix: List[List[int]]
:type target: int
:rtype: bool
"""
if len(matrix)==0 or len(matrix[0])==0:return False
row,col,width=len(matrix)-1,0,len(matrix[0])
while row>=0 and col<w... | [
"565182282@qq.com"
] | 565182282@qq.com |
49e75e2a3e48b045f3487d63e48e3739740be06b | 76356eb3f3963051a15f7dfe6867586293bd7534 | /models/pruned/random_pruning/imagenet/resnet18_70.py | df64709481434060c74c7a1fa9a25955c5fe239e | [] | no_license | ICIdsl/performance_modelling | f59c74c0c6b2e60457694978f9a6d2251f3a70c2 | c48cf66db8e530797d0106a737c5c7da0852423c | refs/heads/master | 2023-07-07T22:32:30.718833 | 2021-08-13T12:48:37 | 2021-08-13T12:48:37 | 394,321,871 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,054 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class ResNet18(nn.Module):
def __init__(self, num_classes=10):
super().__init__()
self.conv1 = nn.Conv2d(3, 20, kernel_size=(7, 7), stride=(2, 2), padding=(3, 3), bias=False)
self.bn1 = nn.BatchNorm2d(20, eps=1e-05, momentu... | [
"ar4414@ic.ac.uk"
] | ar4414@ic.ac.uk |
a8f5542c3d722045f6b4c2aefad24616ec639258 | 6c5daf5133656a33574dc2f5b62b9f1a1bdf1390 | /linear programming/gurobi/benders/sddp_multiperiod_old.py | 366b70cfb7d59d44e442d3ac6f239e6a69c271d3 | [] | no_license | RobinChen121/Python-Practices | 6c10b721dce3a8d2b76e190959d0940c52f0d1cc | 85bd9ad30c245dd62dc7ea837f964eaecbe24ed9 | refs/heads/master | 2023-08-31T10:08:01.613828 | 2023-08-27T14:51:46 | 2023-08-27T14:51:46 | 142,564,793 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,123 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 13 14:25:47 2022
@author: zhen chen
@Email: chen.zhen5526@gmail.com
MIT Licence.
Python version: 3.8
Description: test sddp in multi period newsvendor problems,
the state variables are also decision variables in the linear programming models.
"""
import numpy a... | [
"40953071+RobinChen121@users.noreply.github.com"
] | 40953071+RobinChen121@users.noreply.github.com |
29a89bc1e96950acef49478333d1f5dab60c7b43 | a364f53dda3a96c59b2b54799907f7d5cde57214 | /easy/949-Largest Time for Given Digits.py | 2daf74b854981f7a4d853b356c6377480d6cb64d | [
"Apache-2.0"
] | permissive | Davidxswang/leetcode | 641cc5c10d2a97d5eb0396be0cfc818f371aff52 | d554b7f5228f14c646f726ddb91014a612673e06 | refs/heads/master | 2022-12-24T11:31:48.930229 | 2020-10-08T06:02:57 | 2020-10-08T06:02:57 | 260,053,912 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | """
https://leetcode.com/problems/largest-time-for-given-digits/
Given an array of 4 digits, return the largest 24 hour time that can be made.
The smallest 24 hour time is 00:00, and the largest is 23:59. Starting from 00:00, a time is larger if more time has elapsed since midnight.
Return the answer as a string of ... | [
"wxs199327@hotmail.com"
] | wxs199327@hotmail.com |
3c1118cc42cac21a2c27cb8bcf77b920553064a1 | fb4a589b87fde22d43fe4345794c00bbc3785085 | /resources/oci-lib/lib/python3.6/site-packages/services/ons/tests/extend_test_ons.py | d6ba7fa0f56d7e89d0c06440aebf27f4bb72b2a2 | [] | no_license | dickiesanders/oci-cli-action | a29ccf353a09cb110a38dc9c7f9ea76260c62a48 | ef409321a0b9bdbce37e0e39cfe0e6499ccffe1f | refs/heads/master | 2022-12-18T02:52:07.786446 | 2020-09-19T09:44:02 | 2020-09-19T09:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | [
"bytesbay@icloud.com"
] | bytesbay@icloud.com |
a8fbf4e68bc7c97ab40e0f263ea863b4da319aac | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/network/fortios/test_fortios_system_fortiguard.py | 48c8246d7c29e5cfd8e6f283fb10e870ba905aa9 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,275 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
2880056d62ee0f2ef9ec094ee1a5b16bc35748fc | 30d36cbbc483a3fcf3c43dac42d4e78f0821d16a | /SDN_SNMP/Supporting_Libs/a.py | 784453d1bb2d193be2fd6d3c5942bbf576f922fa | [] | no_license | sindhukotluru/HAPPIEST_FRAMEWORK | d84f70051ac3b82af81e91c62e51f394b0467dca | 6f65a498b40e906e7b806de043cfc4e2bd157244 | refs/heads/master | 2020-04-12T14:46:36.439718 | 2018-12-19T08:14:53 | 2018-12-19T08:14:53 | 162,561,162 | 0 | 0 | null | 2018-12-20T10:05:26 | 2018-12-20T10:05:26 | null | UTF-8 | Python | false | false | 136 | py | my_mapping = {'a': 23, 'b': 42, 'c': 0xc0ffee}
print(my_mapping)
import json
print(json.dumps(my_mapping, indent=10, sort_keys=False))
| [
"dinesh.bhatta@happiestminds.com"
] | dinesh.bhatta@happiestminds.com |
8070d1d4ae815548375b48ba1251b9b04a17eb9b | 89c9142a8d6e004f28cd0d22aa455d8571035ec4 | /PyMOTW/codecs/codecs_stdin.py | b646b21b94c2a6f996a4d56a0ba75847183dfbdd | [] | no_license | pkueecslibo/amw-python-study | c8d34f2151877fe098c06d71c51563dafd71e652 | ff789e148158bfa8f7ae2b749240b868eed1e0bc | refs/heads/master | 2021-01-20T17:27:16.262750 | 2014-08-19T15:18:54 | 2014-08-19T15:18:54 | 28,998,135 | 1 | 0 | null | 2015-01-09T03:09:50 | 2015-01-09T03:09:48 | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/python
import codecs
import locale
import sys
# Configure locale from the user's environment settings.
locale.setlocale(locale.LC_ALL, '')
# Wrap stdin with an encoding-aware reader
lang, encoding = locale.getdefaultlocale()
sys.stdin = codecs.getwriter(encoding)(sys.stdin)
print 'From stdin: ', repr(sys... | [
"huangxiaobo.routon@gmail.com@cdea0e49-4e81-d697-b58f-f95e96613c0c"
] | huangxiaobo.routon@gmail.com@cdea0e49-4e81-d697-b58f-f95e96613c0c |
013ceae5f56dfb3c601154b3800bb6c91514baae | dffe32dc7f1819217168c42234cc148b142ebe10 | /scripts/patches.py | 608c3c62c5d6c99faeb710a58d1587873ce53dad | [] | no_license | willgdjones/HistoVAE | d4070b991877fb0be83b42b0c110ece6c47563e1 | 5956447b703b5d06115e54843df8c9528a7c1943 | refs/heads/master | 2022-12-12T04:28:06.829139 | 2018-10-18T09:52:25 | 2018-10-18T09:52:25 | 114,638,657 | 10 | 2 | null | 2022-12-08T02:22:28 | 2017-12-18T12:30:02 | Python | UTF-8 | Python | false | false | 825 | py | import sys
import logging
import click
import os
sys.path.append('.')
from src.classes import Dataset
logger = logging.getLogger(__name__)
@click.command()
@click.option(
'--n_images', default=10,
help="Number of images per tissue"
)
@click.option(
'--n_tissues', default=6,
help="Number of tissues wi... | [
"williamgdjones@gmail.com"
] | williamgdjones@gmail.com |
afb35dac6407b5aef2787bfba3e06a2f2d4040ff | 476206a822415adb6fed0403831aaa5cbdd3c590 | /docs/conf.py | c3d03c2b4617ce3f6725a7ea624938d643a6139d | [
"BSD-3-Clause"
] | permissive | rehandalal/flask-funnel | 06f5024aa988e1ce8bb21019d68cb436f4d33056 | b635cf52d1c9133c748aab7465edd7caef48e433 | refs/heads/master | 2021-01-25T07:08:51.337390 | 2013-12-26T15:04:50 | 2014-05-29T14:58:30 | 6,342,207 | 9 | 4 | BSD-3-Clause | 2022-12-21T05:20:27 | 2012-10-22T20:53:36 | JavaScript | UTF-8 | Python | false | false | 7,858 | py | # -*- coding: utf-8 -*-
#
# flask-funnel documentation build configuration file, created by
# sphinx-quickstart on Sat Feb 23 02:12:49 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"rehandalal@gmail.com"
] | rehandalal@gmail.com |
46c9e1d76f652ee12b17af09fbddd6bb830639a5 | 2e07c81e9303f3aa66044323575d0e411de52504 | /io/py_33.py | 44af6bf1697c8af10bffb2ba27d4a8a8dfe34f4b | [] | no_license | Near-River/py_code | a6800a01fd6ae5691da6fb05babb960bb8f6242d | 4a1134dc435098c9955d57de136671a08a226667 | refs/heads/master | 2021-01-21T14:23:29.878240 | 2016-07-23T06:38:25 | 2016-07-23T06:38:25 | 58,114,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
from datetime import datetime
# IO 3: Manipulating files and directories
print(os.name)
# print(os.environ.get('PATH'))
print(os.path.abspath('.'))
print(os.path.join('/Users/tempdir/', 'file.txt'))
print(os.path.split('/Users/tempdir/file.txt')[1])
print(os.p... | [
"798563420@qq.com"
] | 798563420@qq.com |
edaaa7d93a1355e38147a5305e6c98085935ecfe | 286d85d2b09de9d371fe62eea8efa1804e4cf5a2 | /venv/bin/pyrsa-decrypt-bigfile | 2f6ed48a37d8e86462403c326114e7deae18b66f | [] | no_license | sug5806/restAPI | 733e7b87308b87d4367c371aec3f2dbfa05e8497 | 3a1e1ffe2afb8064ec9a52aa6e1c805ae89cccba | refs/heads/master | 2020-06-10T13:15:29.343370 | 2019-06-27T06:55:36 | 2019-06-27T06:55:36 | 193,649,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/martine/back/date/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt_bigfile
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt_bigfile())
| [
"sug5806@gmail.com"
] | sug5806@gmail.com | |
5672fa170cf13d16b9ce8e535c22b8b838def361 | 0f5dd525aba7747a6036f991e5dc98db6deb5e58 | /Strings/permutations.py | fa95224835efbb4f040c7d1b614d7c9e97234f4a | [] | no_license | aye-am-rt/python-practice | cc9894577b4f394724975acaa59138c9ca5b70d1 | 0b65a739a4bce86774327d9dfbda6eee7123691f | refs/heads/master | 2020-12-09T11:55:15.541509 | 2020-07-02T16:48:07 | 2020-07-02T16:48:07 | 233,296,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | from collections import OrderedDict
statesAndCapitals = OrderedDict([('Gujarat', 'Gandhinagar'), ('Maharashtra', 'Mumbai'),
('Rajasthan', 'Jaipur'), ('Bihar', 'Patna')])
for state, capital in statesAndCapitals.items():
print(state, ":", capital)
# Iterating over values
for capital... | [
"riteshtiwari.271097@gmail.com"
] | riteshtiwari.271097@gmail.com |
15f5886fc32e5f814e32bf1c347079e495470b8f | c3f953e18bcc5231ac53b97eab9b3824114067f1 | /app/models.py | 114614f2b83d6455aa40b8b2455e049e3f2a2c5c | [] | no_license | pmaddi/sourced | 8fda0a080d3176f13388900b1925e2db625d9bee | c710d092b2582688bdd316595e8b70d60087412f | refs/heads/master | 2021-01-16T23:09:51.165785 | 2014-05-19T23:41:32 | 2014-05-19T23:41:32 | 19,894,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | from app import db
from passlib.apps import custom_app_context as pwd_context
from datetime import datetime
from config import WHOOSH_ENABLED
# if WHOOSH_ENABLED:
# import flask.ext.whooshalchemy as whooshalchemy
# whooshalchemy.whoosh_index(app, Post)
ROLE_USER = 0
ROLE_ADMIN = 1
SUB_GROUP = 0
MAIN_GROUP =... | [
"pranav.maddi@gmail.com"
] | pranav.maddi@gmail.com |
3de378dda1b2030f15d68c2fe3496a189d43fb2b | b25f2fb171af7a0072b963e1d86c30dbf163a8ad | /tests/testCaseSubscriptions.py | 408492ec1ddb9740ece5d5fc3ef62f299c313ec4 | [] | no_license | rebeccamills/WALKOFF | ed39370a12fa43e913312716e9483595a7087adf | 8d019483d1edaa332cc83b164a6e835dd1d4537c | refs/heads/master | 2021-01-21T07:08:43.785549 | 2017-03-28T14:38:56 | 2017-03-28T14:39:00 | 83,326,326 | 0 | 0 | null | 2017-02-27T18:18:34 | 2017-02-27T15:36:59 | HTML | UTF-8 | Python | false | false | 29,737 | py | import unittest
import core.case.database as case_database
from tests.util.case import *
import copy
class TestGlobalSubscriptions(unittest.TestCase):
def setUp(self):
self.step_subs_events = ['b', 'c']
self.filter_subs_events = ['d', 'e']
self.global_subs = GlobalSubscriptions(controller... | [
"Tervala_Justin@bah.com"
] | Tervala_Justin@bah.com |
143a236548a1d29c7d3369c1055961b2b290855a | 3d562382e85cfb87d0d20fcd3b8d653e643b513e | /tutorial/produtos/migrations/0001_initial.py | 5acf67ab1d41171764ea702d9b1f92edeb90778c | [] | no_license | suedavid83/python3 | 379be589f5a86f3f10b03b0cbd095a315ae649cb | 8682c8ea47e62dc5cf0182de45534a0edcbb9b09 | refs/heads/main | 2023-01-02T22:33:26.228895 | 2020-10-22T03:00:17 | 2020-10-22T03:00:17 | 306,204,646 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | # Generated by Django 3.0.5 on 2020-09-26 00:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Categoria',
fields=[
... | [
"you@example.com"
] | you@example.com |
63f05620b73ae8e78ae0015981762db486c04e33 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/offer_availability_modifiers.py | 57351357d2d5ef9bd47bfe3af4063f31e0f77bf3 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 1,218 | py | from __future__ import annotations
from dataclasses import dataclass, field
__NAMESPACE__ = "http://www.travelport.com/schema/air_v52_0"
@dataclass
class OfferAvailabilityModifiers:
"""
Parameters
----------
service_type
To restrict offers to only this type.
carrier
The carrier wh... | [
"chris@komposta.net"
] | chris@komposta.net |
3fe354651d9fe0e404b671b3b283cadd70de4f61 | 523e24bd96d7de004a13e34a58f5c2d79c8222e0 | /plugin.video.titan/resources/lib/resolvers/novamov.py | 2851c88751daeaea1bf342fa31c0150ceb285fea | [] | no_license | Bonitillo/Bonitillonew | ec281e5ab9d4fec83d88936e8d8ce32bad6a81c9 | a8099e326dda297f66096480ec93def8a8c124a8 | refs/heads/master | 2022-10-13T05:39:01.126653 | 2017-03-21T16:47:23 | 2017-03-21T16:47:23 | 85,725,652 | 2 | 4 | null | 2022-09-30T21:18:58 | 2017-03-21T16:16:33 | Python | UTF-8 | Python | false | false | 1,629 | py | # -*- coding: utf-8 -*-
'''
Genesis Add-on
Copyright (C) 2015 lambda
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opt... | [
"richellizardo@Djs-MacBook-Pro.local"
] | richellizardo@Djs-MacBook-Pro.local |
fe3835c144bb7c079dd3e9ad44ff316b3b7f6d5b | bf40147ba5fbfd270118c10c4f5d7656b4711f63 | /composite_laminate_analysis/application/composites/utilities/swig_array_2d_setup.py | e027ce4fdf0a11cd66dc9e5f95b78f62d1958e41 | [] | no_license | MRedAero/CompositeLaminateTool | 5c5bee4ed2e786ed3eccabf46ed90d75d17ca512 | 5fe97d073b4a039e2838e2a3fdc1b5260b845f36 | refs/heads/master | 2021-03-27T15:25:29.768184 | 2015-07-03T14:51:54 | 2015-07-03T14:51:54 | 37,413,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | import sys
sys.argv.append('build_ext')
sys.argv.append('--inplace')
sys.argv.append('--compiler=mingw32')
from distutils.core import setup, Extension
laminate = Extension('_array_2d',
sources=['array_2d.i'],
language='c++',
swig_opts=['-c++'],)
setup(nam... | [
"michael.j.redmond@gmail.com"
] | michael.j.redmond@gmail.com |
7f4756c24a90e95fb8c1859bac0d7a66616998d3 | f9ed608c620093b9f6b5058bcedf7ae610c09c8d | /1411-Number_of_Ways_to_Paint_N×3_Grid.py | 886334dac6c8337904e2f15188d46117894ab02a | [] | no_license | chanyoonzhu/leetcode-python | 9b88d7f2749e1ae3ed597759b1bf9f7fa4912c35 | 085d868ba0458fc8e6b5549aa00fa151c335fa7f | refs/heads/master | 2022-05-24T11:20:35.927915 | 2022-04-16T06:02:33 | 2022-04-16T06:02:33 | 166,224,197 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | """
- dynamic programming
- intuition: https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid/discuss/575000/DP-solution-with-illustration
"""
class Solution:
def numOfWays(self, n: int) -> int:
Mod = 10 ** 9 + 7
dp = [[0]*2 for _ in range(n)]
dp[0][0] = 6 # i - row, j - 0:ABC 1:ABA... | [
"zhuchanyoon@gmail.com"
] | zhuchanyoon@gmail.com |
ae9e931f15894f941595b674eaba2463222db117 | 01062df369907a6ff4367ad006d9be75f3b0886f | /zvt/utils/git_utils.py | 884d57009691f3bbee61626fbafdf1dd2d92fb1b | [
"MIT"
] | permissive | scanfyu/zvt | 917d8dd6df63fd3d55183896710573700f615a0e | 2ff38155bd85fb0945a7b45cad8dbdf2f175a3d5 | refs/heads/master | 2021-12-01T13:40:00.241766 | 2021-11-26T16:04:04 | 2021-11-26T16:04:04 | 186,553,012 | 0 | 0 | MIT | 2020-03-01T02:33:08 | 2019-05-14T05:46:40 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
import subprocess
def get_git_user_name():
try:
return subprocess.check_output(['git', 'config', '--get', 'user.name']).decode('utf8').strip()
except:
return "foolcage"
def get_git_user_email():
try:
return subprocess.check_output(['git', 'config', '--get'... | [
"5533061@qq.com"
] | 5533061@qq.com |
7be9c01c116dfcd18b6fb4da4b6bc436d06d06aa | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/gl6.py | 4b45d2c9d884b17dc817c8c493f42efb9e435173 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
363f09224b0fe9921706ae2f11d76a2a70992220 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03268/s912433689.py | 66e23345fc6ac20b31b958103936e13e56f8ab53 | [] | 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 | 157 | py | def mypow(x,y):
if y==0:return 0
return x**y
N,K = map(int,input().split())
ans = mypow(N//K,3)
if K%2==0:
ans+=mypow((N-K//2)//K+1,3)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fea9cfa16ba08a67ace06d86eb31337d175e156b | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/objects/terrain.py | 175e6ea47c628e36d06a578f8221e87710150ee2 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,850 | py | import element_utils
from _sims4_collections import frozendict
from _weakrefset import WeakSet
from weakref import WeakKeyDictionary
from interactions.base.interaction_constants import InteractionQueuePreparationStatus
from interactions.interaction_finisher import FinishingType
from protocolbuffers import InteractionOp... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
d3a923f488fa35d892824f05d6d18eac38a63f76 | d9db85ccb0855e0629c4bfb4cb9dafe9ebfb63e6 | /lifelines/fitters/mixins.py | 723da44d59e917f663ad0188ae66d3498f583ec5 | [
"MIT"
] | permissive | anggijaya/lifelines | a5af9014879f69424b739ece81d8ec6a0d8128f0 | e330e4996c41fab5ccd4a4af027f71ab341a146d | refs/heads/master | 2022-04-11T23:46:34.469285 | 2020-03-25T22:26:07 | 2020-03-25T22:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,223 | py | # -*- coding: utf-8 -*-
from typing import List, Optional, Dict, Any, Iterable
from textwrap import dedent, fill
from autograd import numpy as anp
import numpy as np
from pandas import DataFrame, Series
from lifelines.statistics import proportional_hazard_test, TimeTransformers
from lifelines.utils import format_p_valu... | [
"cam.davidson.pilon@gmail.com"
] | cam.davidson.pilon@gmail.com |
441aae3142e1d3b097d485f851f8a628617b9d3f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/FlaskIntroduction/env/lib/python3.6/site-packages/pip/_internal/req/req_uninstall.py | f7d5cdb313003f5abf9f24549a8b733a93d10f8b | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ad53a4f0144cfcbf6bb1452bf659a457a2e6f4dd4eb3b4c42038abead4f543b5
size 23105
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
9c2448125ff53c3a5e2ad8e095bcf0f18e53a707 | b769be8c39204015642e79d5464471de372ce164 | /Python/PythonC++Scala/script/.svn/pristine/f9/f934dd392f894611df7d2c5f47bfe5211fa50f80.svn-base | 295ac8bbfc5d9c4031b5f43b91955dec73a62731 | [] | no_license | cash2one/dataMining-1 | 2248968fe7649b33f263a4a3df1472c027e46ad0 | 05dae4225db1fedbe738d317bf44aca8604c9eed | refs/heads/master | 2021-05-31T23:51:39.694667 | 2016-05-19T08:27:19 | 2016-05-19T08:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
'''
auther:Cooper
date:2012.9.19
'''
import json
import unittest
import sys
sys.path.insert(0, '../../')
from dfhspider.app import getItemsByKeyword
class DFHSpiderLibTestCase(unittest.TestCase):
def test_getitemsbykeyword(self):
for keyword in [
... | [
"1209398893@qq.com"
] | 1209398893@qq.com | |
011195a238ca77afe7864fbcfb5e1ac3ceefaf20 | 177338a720f904f63926da055364cc0e2c0a850c | /python_stu/s11_10/s4/process_array.py | 71f0f3911a8449239db856d021bfa4e3da65987a | [] | no_license | xuefenga616/mygit | 60ef7bf7201603e13d4621cf7a39dea8ec92e0b7 | be3b8003fcc900ce7ca6616a9ddebb0edcbc1407 | refs/heads/master | 2020-09-13T11:50:55.448041 | 2017-08-27T10:59:00 | 2017-08-27T10:59:00 | 67,042,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | #coding:utf-8
__author__ = 'xuefeng'
from multiprocessing import Process,Array
#创建一个只包含数字类型的一个列表,列表个数不可变
tmp = Array('i',[11,22,33,44])
def foo(i):
tmp[i] = 100 + i
for item in tmp:
print i,"---->",item
for i in range(4):
p = Process(target=foo,args=(i,))
p.start() | [
"xuefeng_11@qq.com"
] | xuefeng_11@qq.com |
55d99f2f88823cfbeac93da22b21c621b7942cd5 | e0ede722874d222a789411070f76b50026bbe3d8 | /practice/solution/0977_squares_of_a_sorted_array.py | 8649df984e51be85c1577c1d32b7740797367d69 | [] | no_license | kesarb/leetcode-summary-python | cd67456cb57bdff7ee227dab3930aaf9c2a6ad00 | dc45210cb2cc50bfefd8c21c865e6ee2163a022a | refs/heads/master | 2023-05-26T06:07:25.943854 | 2021-06-06T20:02:13 | 2021-06-06T20:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | class Solution(object):
def sortedSquares(self, A):
"""
:type A: List[int]
:rtype: List[int]
"""
value_list = []
res = []
for num in A:
value_list.append(num ** 2)
res = sorted(value_list)
ret... | [
"weikunhan@g.ucla.edu"
] | weikunhan@g.ucla.edu |
594cb520e78556f0f0e1eda254e16fa6aa6a71fc | b68e3b8485ea8bef9fc7b3cbf6baa98a51fa533f | /section4/lesson23.py | 71e727538add7f007455cfd9ca26ca44c3a5a848 | [] | no_license | Naoya-abe/siliconvalley-python | 7936b7e779072b23e16c9d50cca44c2e0bf6eb5f | 8d226adaea839b64b1e5eb62985349b5bb2e1484 | refs/heads/master | 2021-05-20T14:40:47.682812 | 2020-04-27T02:02:43 | 2020-04-27T02:02:43 | 252,336,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # タプルの使い所
# 選択肢が3つある質問をユーザに投げて、その中から2つ選んでもらう
# OK 質問のところを書き換えできないようにする
chose_from_two = ('A', 'B', 'C')
answer = []
answer.append('A')
answer.append('C')
# chose_from_two.append('A') タプルで書けばここはエラーが出るのでバグがすぐわかる
# chose_from_two.append('C')
print(chose_from_two)
print(answer)
print('##############################')
... | [
"n.abe@gemcook.com"
] | n.abe@gemcook.com |
cf874a9b35998ce9264022d4b8f5f89ca787b539 | 1a6b53ceb5f00ca78c91a70d69e0d7ca73287a9f | /BLSeg/blseg/model/deeplab/deeplabv3plus.py | 7b84ca79f43dee52d8bd08df10853bb928824475 | [
"MIT"
] | permissive | ForrestPi/semanticSegmentation | 73f29b20f68bdc5b25b999f504edd558bc20fc7e | 1e5519279e2a9574f09eaf91439138b74b0f860c | refs/heads/master | 2021-03-12T12:23:42.141828 | 2020-04-06T15:06:47 | 2020-04-06T15:06:47 | 246,620,342 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import torch
from torch import nn
import torch.nn.functional as F
from ...backbone.utils import conv3x3
from ..base import SegBaseModule
from .aspp import ASPP
class DeepLabV3Plus(SegBaseModule):
def __init__(self,
backbone='xception',
num_classes=21,
dilations=... | [
"forrest_zhu@foxmail.com"
] | forrest_zhu@foxmail.com |
b60dcc78aacc35a63cfee79034375f3b58d59130 | dbad629ee516c26c09de0c845daddda6022c28fd | /django_hello/music_example/migrations/0001_initial.py | 14f6ae49d79513badae2d8781aba15ba54457065 | [] | no_license | tails5555/django_study | db702e91f686a28b7a32aa0bccc58e9cfcd66dd0 | 31f4052faed44185412fb24361963cf694d0ded3 | refs/heads/master | 2020-03-31T08:03:43.569216 | 2018-11-17T12:30:41 | 2018-11-17T12:30:41 | 152,043,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | # Generated by Django 2.1.2 on 2018-10-16 13:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
('id', models.AutoField(pr... | [
"tails5555@naver.com"
] | tails5555@naver.com |
b2eeadade675a71c218832fb26a81589b1eb5e0f | 298d98406df60c9016f37e781cb9c6652517fece | /magetool/HttpServer.py | e25be617492039ab5c1b6e9706034e7e9ab52a4b | [] | no_license | forging2012/pipProject | 40f5f3ded2b0754ed495d2b7e3dbf45c3e5729b8 | f23ee8f1e0c74cb50aacd55b2340e75ee972d40e | refs/heads/master | 2022-11-28T15:43:16.997541 | 2020-08-10T14:34:33 | 2020-08-10T14:34:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import time
import threading
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
datatool = None
class TestHTTPHandler(BaseHTTPRequestHandler):
def do_GET(self):
print self.path
print self.client_address
global datatoo... | [
"fengmm521@gmail.com"
] | fengmm521@gmail.com |
735e14dac4f56af561422fe9f73815c16d28ddf6 | 426aed70aa6925105f10c7fcb7b611b277bf8b84 | /examples/pytorch/vgae/input_data.py | d32e92427d8f41ad341863e6e9db0355ac901a0a | [
"Apache-2.0"
] | permissive | hengruizhang98/dgl | 0ce7201ca7380482440f031cb8ced6ca0e8c8dc1 | 195f99362d883f8b6d131b70a7868a537e55b786 | refs/heads/master | 2023-06-10T22:21:45.835646 | 2021-04-13T12:29:43 | 2021-04-13T12:29:43 | 336,804,001 | 3 | 0 | Apache-2.0 | 2021-02-07T14:16:20 | 2021-02-07T14:16:20 | null | UTF-8 | Python | false | false | 1,697 | py | '''
****************NOTE*****************
CREDITS : Thomas Kipf
since datasets are the same as those in kipf's implementation,
Their preprocessing source was used as-is.
*************************************
'''
import numpy as np
import sys
import pickle as pkl
import networkx as nx
import scipy.sparse as ... | [
"noreply@github.com"
] | hengruizhang98.noreply@github.com |
3867e460c173ff08fdcc9d6839028a476fa0c377 | 3c6e4f51123169535811e01d5cd60854a44f3036 | /data_structure/栈/Stack.py | cdf4be9ee35dafec957f4e655ac3357cd3d90eab | [] | no_license | ShiJianYingxiang/myartline | 03bd8084deab096f15d0d8bd6f48c31c1de2c759 | 49e8a4d9153166620449e7a5e4090ede14186ceb | refs/heads/master | 2020-06-28T07:43:29.135722 | 2019-08-02T06:43:10 | 2019-08-02T06:43:10 | 200,179,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | class Stack():
"""
以list为基础实现的栈
"""
def __init__(self):
self._data = []
def __len__(self):
return len(self._data)
def is_empty(self):
if len(self._data) == 0:
return True
else:
return False
def push(self, e):
self._data.appe... | [
"948443627@qq.com"
] | 948443627@qq.com |
00c7348907d3b6d16bb0fabef9e87410f0b537d8 | aafba3346120db47cf87ba67dee21848576c337f | /beet/pools/pool_config.py | dc53148468c958ca53984eff764318d4136aaa95 | [
"Apache-2.0"
] | permissive | beetseeds/beet-blockchain | 9f7fa9e221364bb865a8b9f60455afc82b4a022b | e5d93f1f9041c48dd0c38416d845c8675bf22738 | refs/heads/main | 2023-07-14T21:30:18.089664 | 2021-09-10T01:40:00 | 2021-09-10T01:40:00 | 401,708,903 | 5 | 3 | Apache-2.0 | 2021-09-05T09:26:51 | 2021-08-31T13:14:50 | Python | UTF-8 | Python | false | false | 2,801 | py | import logging
from dataclasses import dataclass
from pathlib import Path
from typing import List
from blspy import G1Element
from beet.types.blockchain_format.sized_bytes import bytes32
from beet.util.byte_types import hexstr_to_bytes
from beet.util.config import load_config, save_config
from beet.util.streamable im... | [
"89267907+BEET-BLOCKCHAIN@users.noreply.github.com"
] | 89267907+BEET-BLOCKCHAIN@users.noreply.github.com |
2f75c70e1bd614e18d9ee3957638e9023a46b921 | 10b4db1d4f894897b5ee435780bddfdedd91caf7 | /thrift/lib/py3/server.pyi | 4eff0320979ae64fd38351c97f89428e4eea05d6 | [
"Apache-2.0"
] | permissive | SammyEnigma/fbthrift | 04f4aca77a64c65f3d4537338f7fbf3b8214e06a | 31d7b90e30de5f90891e4a845f6704e4c13748df | refs/heads/master | 2021-11-11T16:59:04.628193 | 2021-10-12T11:19:22 | 2021-10-12T11:20:27 | 211,245,426 | 1 | 0 | Apache-2.0 | 2021-07-15T21:12:07 | 2019-09-27T05:50:42 | C++ | UTF-8 | Python | false | false | 4,404 | pyi | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# 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 require... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0b34fe00747d61b299681ca134102a12785c0a4b | 023abbc3e1ffb0e489208cbb8293fc0b5b1726ed | /CodeUp_py/Basic_100_py/6050.py | 32113a3fe8da37a4595372e4fbe52f24774c540e | [] | no_license | jbro321/CodeUP_py | 6b64cb2c964130c7e225dd228114cb004f87d5c6 | e504e86209c31db08142ad74cd81e68fe5d89a67 | refs/heads/main | 2023-04-10T09:50:03.810316 | 2021-04-22T16:06:33 | 2021-04-22T16:06:33 | 352,072,071 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | # CodeUp #6050
a, b = input().split()
a = int(a)
b = int(b)
print(a<=b) | [
"jaehyung0321@gmail.com"
] | jaehyung0321@gmail.com |
10cad27c884cdd23f005a97c5da772cb78e826c3 | 153fb205395605f631e92950fc86ba205bd85665 | /wagtail/wagtail/wagtaildocs/migrations/0001_initial.py | f0d6c5c749988830a47678fb3ca131c44d82bc74 | [
"BSD-3-Clause"
] | permissive | YoungSphere/Wagtail_Young | 8e385ab37263acf4b609bb6aa1f75d3e9035eee0 | 536b137446ef5bff464cbe8a82175ba099d4a15a | refs/heads/master | 2020-04-23T07:10:45.479469 | 2019-02-16T14:09:24 | 2019-02-16T14:09:24 | 170,998,679 | 0 | 0 | BSD-3-Clause | 2019-02-16T14:05:12 | 2019-02-16T11:55:39 | Python | UTF-8 | Python | false | false | 1,676 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import taggit.managers
from django.conf import settings
from django.db import migrations, models
import wagtail.wagtailsearch.index
class Migration(migrations.Migration):
dependencies = [
('taggit', '0001_initial'),
migrations.swap... | [
"nikhil684@gmail.com"
] | nikhil684@gmail.com |
2b62369592670e8f5c0ef6222ed9a2e9b2d995a4 | 1eddc123709611cf2ddccb0b7d48b722b2a09a5d | /plugins/modules/fmgr_pkg_firewall_multicastpolicy6.py | 7554ea0c09a37c035b28e67f69b146e7a0828879 | [] | no_license | fortinet-ansible-dev/ansible-galaxy-fortimanager-collection | bfb2014a72007358b491bb1d27c0fa3191ec62a8 | 63b65abce410ed4d6b76e3dd1dcf7a4341cc173d | refs/heads/main | 2023-07-09T04:33:38.304263 | 2023-06-21T21:11:57 | 2023-06-21T21:11:57 | 242,629,431 | 10 | 18 | null | 2022-12-16T15:57:16 | 2020-02-24T02:28:03 | Python | UTF-8 | Python | false | false | 36,361 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2023 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"hq-devops-admin@fortinet.com"
] | hq-devops-admin@fortinet.com |
7028717ed5a36c8de72e7a17bd5d02d23529dcf0 | 73641b3442e0c5ece50496c7edf57eccb81e10b2 | /plugin.video.nfl-teams/resources/lib/teams/fourtyniners.py | 580b29215c0be5d4e8541b10197cc92ec13eef0a | [
"MIT"
] | permissive | ian10951/tdbaddon | b76c25cecdb387b3e2194d94d8e33fdb96a4d26a | bdba5d83322bdcacb9071cc92fc4a68b5d8d1766 | refs/heads/master | 2021-01-25T01:22:04.443402 | 2017-06-19T06:02:05 | 2017-06-19T06:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import resources.lib.nflcs
class Team(resources.lib.nflcs.NFLCS):
_short = "fourtyniners"
_cdaweb_url = "http://www.49ers.com/cda-web/"
_categories = [
"Video - 1on1",
"Video - 49ers Live",
"Video - 49ers Press Pass",
"Video - 49ers Studios",
"Video - Action Cam",
... | [
"tdbaddon@hotmail.com"
] | tdbaddon@hotmail.com |
308d4a5d066491d07ed73ea986e8e459fad03074 | bcbc11a98d6685159ca87f23c4bd879f00100681 | /Python/gminer_run | e3df70b916490a1c8661ebeb3b8ff59aefa4be10 | [] | no_license | hjanime/bbcfutils | 8798ebca2184220d5f174f9b882293aad6f06800 | 748aac3225373f34e7e228d2e45b3646ca0ec2a3 | refs/heads/master | 2020-12-25T11:52:55.136394 | 2011-11-28T09:53:46 | 2011-11-28T09:53:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | #!/usr/bin/env python
# Built-in modules #
import sys, optparse
# Constants #
doc_url = 'http://bbcf.epfl.ch/gMiner'
example = "gminer_run --tracks=a.sql,b.sql --genomic_manip=overlap"
# We might be missing gMiner #
try:
import gMiner
except ImportError:
print 'You do not seem to have the "gMiner" package in... | [
"lucas.sinclair@me.com"
] | lucas.sinclair@me.com | |
c1a6f2bc37f1fc9353e042272b84d6dcff332dd4 | b1fdf4f13067d58e91b4e67e840ddb7df5e13ec3 | /src/hub/parser.py | 095c4f7189856d2e3da3754e67a862023446ebd9 | [] | no_license | Qirky/Troop | de76a8e83d3219fcf364b9bdf933cca19b638963 | 529c5eb14e456f683e6d23fd4adcddc8446aa115 | refs/heads/OT | 2021-07-12T10:23:45.483487 | 2020-08-19T19:45:07 | 2020-08-19T19:45:07 | 75,213,232 | 291 | 34 | null | 2020-07-19T13:22:07 | 2016-11-30T18:03:54 | Python | UTF-8 | Python | false | false | 364 | py | class HubParser(dict):
def __init__(self, input):
super().__init__()
if '@' in input:
self['name'], address = input.split('@', 1)
if ':' in address:
self['host'], self['port'] = address.split(':', 1)
else:
self['host'] = address
... | [
"ryankirkbride26@gmail.com"
] | ryankirkbride26@gmail.com |
1d5b6b716e7319b59f78de6e71d92b0ae8a16b96 | fd67592b2338105e0cd0b3503552d188b814ad95 | /egoi_api/apis/paths/campaigns_sms_campaign_hash_actions_send.py | 8d78175a41c110cc459619d7901140480d7effe2 | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from egoi_api.paths.campaigns_sms_campaign_hash_actions_send.post import ApiForpost
class CampaignsSmsCampaignHashActionsSend(
ApiForpost,
):
pass
| [
"integrations@e-goi.com"
] | integrations@e-goi.com |
d8e4c8dec6acdfecd209a0e33c412a6af976b2e2 | 52fa4c0a130ac23b531840d1cc4e2a10854f3048 | /dayu_widgets3/switch.py | ba2fceb382ed8e783f57e09655befb56a9462e77 | [
"MIT"
] | permissive | YanruMu-sunding/dayu_widgets3 | 127b629406c609edf3db2828cf98772ed37fe06c | a319cc719d84c031829893c45b8f20e87cbbabc8 | refs/heads/master | 2023-02-24T04:33:21.239949 | 2021-01-29T09:31:04 | 2021-01-29T09:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.2
# Email : muyanru345@163.com
###################################################################
"""
MSwitch
"""
from dayu_widgets3 import dayu_theme
from dayu_widgets3.m... | [
"muyanru345@163.com"
] | muyanru345@163.com |
2b77974b1dc4f9af01c406732e512c53a951e249 | bf7611891a01d5752298b2b41a42ad205ea0504b | /elementpath/datatypes/numeric.py | 4d03e469e154dc2d7caf99a7520b30ab8b082b6f | [
"MIT"
] | permissive | mi-xiao/elementpath | a1419f306842b956a51418c06203927a0ebe46da | 7ac39461b3e98ae98fc00e625d8391141899399e | refs/heads/master | 2023-02-27T23:38:25.163531 | 2021-01-31T09:39:15 | 2021-01-31T09:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,423 | py | #
# Copyright (c), 2018-2020, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Davide Brunato <brunato@... | [
"brunato@sissa.it"
] | brunato@sissa.it |
7c6ea289c1ab2f13b83759275d3e31f29813ba2b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/3812/codes/1595_1014.py | 1ff6863800d6fc895a6517597a0c006cb6a7b288 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | total = float(input('digite o total de vendas: '))
lucro = total * 0.3
print(round(lucro,2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
ecc9f11c74e1cdca17f3ccc843c4421266d4bd97 | 64182d1fdd3c4f72c0dfdce08eb01e6416b55d3a | /app/migrations/0001_initial.py | 047287d81ce61e091c4b62f4bece78c56f0aa73a | [] | no_license | haruyasu/qrlog | 99401a15ffb6f94d6d1457d6cbbd858397fa2e4c | 9cf729e98040c3f3f2164e7c5f441a25ce986aca | refs/heads/main | 2023-07-04T09:57:20.000551 | 2021-08-05T05:49:42 | 2021-08-05T05:49:42 | 392,249,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # Generated by Django 3.2.6 on 2021-08-03 11:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"harukun2002@gmail.com"
] | harukun2002@gmail.com |
af388fbc80258eb20b1c584a17dc575d1d8fecb4 | 4a0382af1a226bfd41700bc6d4c25becfd588670 | /week12/Snake/models/wall.py | 528003b70ec06c6118e919a84039c615ad3a006d | [] | no_license | Nimor111/101-v5 | acbfd6e4f1824aac2ead69b8121096f208d6d002 | 3fe686f15f697195dec9771c278a43005d7e3120 | refs/heads/master | 2021-01-12T11:38:03.912897 | 2017-10-10T14:21:01 | 2017-10-10T14:21:01 | 72,240,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from models.world_object import WorldObject
class Wall(WorldObject):
pass
| [
"georgi.bojinov@hotmail.com"
] | georgi.bojinov@hotmail.com |
aa8a5dd695770d90ec705721b753053e3f627888 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03210/s898185961.py | d1a134df8a562e9ee87e5e598f881ed0b99aa227 | [] | 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 | 391 | py | # Python3 (3.4.3)
import sys
input = sys.stdin.readline
# -------------------------------------------------------------
# function
# -------------------------------------------------------------
# -------------------------------------------------------------
# main
# -------------------------------------------------... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
51f48514f43d536ac948b9137813f7cc2d4b10bd | 115d4be6df61f1e555826f49c2fd605ae83107bd | /solutions/869_reordered-power-of-2.py | 54b09dc22b0f8e73c2e195cb600265e5d2bd370b | [] | no_license | ipudu/leetcode | 82dd12236b31b5fc48e20b8cccadc2392bce7b52 | 0e4b0b83c8d3fb50b7db1dc0e1bc55942e91d811 | refs/heads/master | 2021-06-07T14:04:04.114618 | 2020-02-27T21:52:54 | 2020-02-27T21:52:54 | 108,054,385 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """
Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the leading digit is not zero.
Return true if and only if we can do this in a way such that the resulting number is a power of 2.
Example 1:
Input: 1
Output: true
Example 2:
Input: 10
Output: false... | [
"rocketsboy@gmail.com"
] | rocketsboy@gmail.com |
6b8c594e32bfb27f5a9f4792deebc8d81709ba2e | 1068d311e16d5e94ccd4354dc6a23a2a02f62b46 | /examples/cluster.py | 508a4409993f674147884d1333162dd9f038c389 | [] | no_license | vmehmeri/mininet-optical-wifi | de4ff773381184dec9c7beffc52e57286e294ca1 | f11c56e84d64fd9397e100df3add05a2ebc8a2a5 | refs/heads/master | 2021-01-01T18:15:36.544498 | 2017-07-28T14:57:25 | 2017-07-28T14:57:25 | 98,288,748 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,958 | py | #!/usr/bin/python
"""
cluster.py: prototyping/experimentation for distributed Mininet,
aka Mininet: Cluster Edition
Author: Bob Lantz
Core classes:
RemoteNode: a Node() running on a remote server
RemoteOVSSwitch(): an OVSSwitch() running on a remote server
RemoteLink: a Link() on a remote se... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
c35b3fa735829a54cce5b699b3a27d700a2fed4e | 031978e9701c7c5cd3aa37ded8ae2be97511fe75 | /nodejs/3rd/oracledb/build/config.gypi | 90b0cf2a0103aed9cf8721d1556d7e243dfee186 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"ISC",
"BSD-2-Clause"
] | permissive | oudream/limi | 3ea53e35974ea6d4468520b53e7778f596c639d4 | 695f8799eb51e8a3565ed3e85e69b418f30aca1e | refs/heads/master | 2021-04-09T16:19:30.472401 | 2019-03-26T10:16:20 | 2019-03-26T10:16:20 | 125,787,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,692 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v141",
"msvs_windows_target_platform_version": "10.0.17134.0"
},
"variables"... | [
"oudream@126.com"
] | oudream@126.com |
62d94fa963565eda6a43b164ecd010d3597a4608 | 1279908d488776ef1450492f0995e1bd48c99767 | /.history/app_20210728163934.py | b3a9669ae38ac0260ea05c2c34f4e1485a283949 | [] | no_license | tritchlin/sqlalchemy-challenge | 249ed221daab1e148209904aa1544a924ce6a344 | 5d9288b516a1ab68bd6af16c98ca5c1170d3b927 | refs/heads/main | 2023-06-25T23:27:10.175847 | 2021-07-29T06:35:04 | 2021-07-29T06:35:04 | 388,950,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
import climate_flask_data.py as querydata
#################################################
# Database Setup
################################... | [
"annylin@gmail.com"
] | annylin@gmail.com |
8cbd0ca7057a734e6bf52f426718545cc4022bc3 | 7003ce3ca4c6ce0ef7b1c5eede30314f421c3315 | /ax/utils/report/render.py | 97a3f0a4a56258ca8c7e3327e75e3c68e96fe259 | [
"MIT"
] | permissive | thiago-franco/Ax | ce60cf717876ad20b9bb6871d528ce7c4695cc2a | a6169bcefb3cabf8c6d58aad33aba3d3a0c79768 | refs/heads/master | 2020-08-17T09:31:13.278392 | 2019-10-16T22:28:04 | 2019-10-16T22:28:04 | 215,645,309 | 0 | 0 | MIT | 2019-10-16T21:11:18 | 2019-10-16T21:11:17 | null | UTF-8 | Python | false | false | 3,951 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os
import pkgutil
from typing import List, Optional
import ax.utils.report as report_module
from ax.plot.render import _js_requires, _load_css_resource as _load_plot_css_resource
from jinja2 import Environment, Funct... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ddd5b3571edefcf72c3a96916222443e7b194609 | 9b2255e0a474555d8a4d90f586e280d40224a181 | /apps/main/models.py | 71fd408d7fd0d13530075fc2f9a92bb403d430ec | [] | no_license | rogeriofalcone/redirector | 85f496f7c3a3c755b2d9f86f90d25ace783842e4 | 8255be80ce4e3245317864dcc580a1ef68a7c244 | refs/heads/master | 2020-04-08T07:03:19.053680 | 2012-08-12T19:13:35 | 2012-08-12T19:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext
from django.contrib.sites.models import Site
from django.template.defaultfilters import slugify
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes i... | [
"Roberto.Rosario.Gonzalez@gmail.com"
] | Roberto.Rosario.Gonzalez@gmail.com |
c2297c647af2cf649703515012ec864660c744a3 | b0c02d7ca86c1ef84af18a8c701702e8bb212b64 | /network/socket_server.py | 6f99019e80e80e623162a605985f60b36566e9eb | [] | no_license | flashypepo/myMicropython-Examples | 24fa2f372e68742abe0f74913df000dfe64a9e55 | b2b63df865b5ad471b351ca5f279135025859f5d | refs/heads/master | 2021-09-24T18:52:18.083444 | 2018-10-13T11:59:19 | 2018-10-13T11:59:19 | 98,223,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # project: a socket server running on the huzzah ESP8266
# and a client running on Mac/client
# 2017-0716 source: https://forums.adafruit.com/viewtopic.php?f=60&t=117874
import socket
def Main():
# creating server socket for communication I/O
host = "192.168.178.24" # host ip
#MAC-test: host = "192.168.178... | [
"peter@pepo.nl"
] | peter@pepo.nl |
257e82967c171680e7a98e36531c3302a341413f | 14bb0b5d7478d3a8740cbc15cc7870fcd1fa8207 | /tensorflow/python/distribute/strategy_combinations_test.py | 8b5ea27f5121c276fff6bb594bc903c1a2d5f7be | [
"Apache-2.0"
] | permissive | terigrossheim/tensorflow | 2be34891c99e0fcf88cf8418632f24676f1620a7 | ed9d45f096097c77664815c361c75e73af4f32d4 | refs/heads/master | 2022-11-06T12:08:10.099807 | 2020-06-29T12:10:56 | 2020-06-29T12:35:24 | 275,867,898 | 1 | 0 | Apache-2.0 | 2020-06-29T16:21:41 | 2020-06-29T16:21:39 | null | UTF-8 | Python | false | false | 3,996 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
88c6be29a0612a96f5e10879f81b67675dc67837 | e073873a34f227b4b7ff5a5d071cfd486cf0a881 | /bcftbx/test/test_Pipeline.py | af3cdf7830a73480226466710ce69322ca425a39 | [
"Artistic-2.0"
] | permissive | nandr0id/genomics | b067fcb1c8c7a6ffaa1e83606688fafdef2d6941 | 0cac3a75b6802ec623522d060df5dff8d823bfec | refs/heads/master | 2020-06-26T02:57:21.822505 | 2019-07-04T14:15:06 | 2019-07-04T14:15:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,571 | py | #######################################################################
# Tests for Pipeline.py module
#######################################################################
import os
import unittest
import tempfile
import shutil
import time
import bcftbx.utils
from bcftbx.JobRunner import SimpleJobRunner
from bcftbx.... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
5ca9c6130ff5842b79146022ba7ddf527ee26c4f | ebe5167148cfff43d24b6c66e44634bb55513b72 | /solutions/dp/091.Decode.Ways.py | d7a1d060036c9c352a3515fde2817901fc7b9407 | [] | no_license | ljia2/leetcode.py | c90ac38a25331d61d3ff77fd135b82372da3a09f | 08c6d27498e35f636045fed05a6f94b760ab69ca | refs/heads/master | 2020-03-25T03:37:13.318582 | 2019-07-18T23:14:41 | 2019-07-18T23:14:41 | 143,351,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py | class DPSolution:
def numDecodings(self, s):
"""
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given a non-empty string containing only digits, determine the total number of way... | [
"ljia@conversantmedia.com"
] | ljia@conversantmedia.com |
bece8d861cd1f43e096ec8a50ce5222dadba4c5e | 4bde2d1e2282014f71b8cfec4440cb062db172cb | /euler_035_test.py | 600357003ca41fb88bcb1df2b55b19abab90999b | [] | no_license | MrDeshaies/NOT-projecteuler.net | 6b107a515b1322fcd5f7d88e187ca2ea97edddcf | c6f0bd38d074b427345b4f5b41733bda38fbcdb4 | refs/heads/master | 2022-11-17T18:39:43.321814 | 2022-11-13T11:35:10 | 2022-11-13T11:35:10 | 201,793,983 | 0 | 0 | null | 2019-08-18T19:50:45 | 2019-08-11T17:20:18 | Python | UTF-8 | Python | false | false | 1,035 | py | import unittest
import euler_035
from euler_035 import contains_even_digits
from euler_035 import find_rotations
class Test35(unittest.TestCase):
def setUp(self):
pass
def test_contains_even_digits(self):
for d in (2,4,6,8,0):
self.assertTrue(contains_even_digits(d))
f... | [
"benoit.deshaies@gmail.com"
] | benoit.deshaies@gmail.com |
874a267b8b5b47c1a3a31c1b7cd13be52dcd5475 | cfa8972963d7a9d141841aeb581461cb03e89821 | /getNames.py | b56aab00d6416d5dafd6a807645d8051c4bdec5e | [] | no_license | iamkamleshrangi/DN | f7239a3d50db11f53850b99d2b788ea965fd4665 | ed124a1193bcebceafbd54ce1ceef2adfbe4668d | refs/heads/master | 2022-12-12T21:41:49.584003 | 2019-03-05T18:00:43 | 2019-03-05T18:00:43 | 170,338,417 | 0 | 0 | null | 2022-12-08T01:37:45 | 2019-02-12T15:08:15 | Python | UTF-8 | Python | false | false | 3,142 | py | from nltk.tokenize import word_tokenize
from bs4 import BeautifulSoup, Comment
from nltk.tag.stanford import StanfordNERTagger
import os, re
from nltk.corpus import stopwords
from nltk.corpus import names
#PreTrain DataSet of Standford
nlp_model = 'stanford-ner/english.all.3class.distsim.crf.ser.gz'
standford_jar = '... | [
"iamkamleshrangi@gmail.com"
] | iamkamleshrangi@gmail.com |
2fa7ab73a3871ef359d8b541896005235a00bf02 | 291ac7422666f016b62be0d6fafc96b02372b02a | /layers/keras/complexnn/measurement.py | a932b07aa8704126fdd0f85a044cc1234c234a33 | [] | no_license | qiuchili/qnn_text | d9adaab759d48778b95ca04e924d3bb2af9287f1 | 3fbc866b3ef95274e4f36f0560b0a7b88d53d48e | refs/heads/master | 2020-05-07T19:16:15.965522 | 2019-04-11T14:15:54 | 2019-04-11T14:15:54 | 180,806,260 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,167 | py | import numpy as np
from keras import backend as K
from keras.layers import Layer
from keras.models import Model, Input
from keras.constraints import unit_norm
from keras.initializers import Orthogonal
import tensorflow as tf
import sys
import os
import keras.backend as K
import math
class ComplexMeasurement(Layer):
... | [
"qiuchi.li@studenti.unipd.it"
] | qiuchi.li@studenti.unipd.it |
f005be2878eef5b2c0e6881d4a280e7470ec1065 | efcd21234f3291e8fc561f49a7c88fc57a63e952 | /tartiflette/language/validators/query/lone_anonymous_operation.py | beaca2c9a35dc143aa7dc528243b2b9a428663e8 | [
"MIT"
] | permissive | tartiflette/tartiflette | 146214a43847d2f423bf74594643c1fdefc746f1 | 421c1e937f553d6a5bf2f30154022c0d77053cfb | refs/heads/master | 2023-09-01T02:40:05.974025 | 2022-01-20T14:55:31 | 2022-01-20T14:55:31 | 119,035,565 | 586 | 39 | MIT | 2023-09-11T07:49:27 | 2018-01-26T09:56:10 | Python | UTF-8 | Python | false | false | 1,216 | py | from tartiflette.language.validators.query.rule import (
June2018ReleaseValidationRule,
)
from tartiflette.utils.errors import graphql_error_from_nodes
class LoneAnonymousOperation(June2018ReleaseValidationRule):
"""
This validator validates that an Anonymous operation
is the only defined operation of... | [
"raulic.maximilien@gmail.com"
] | raulic.maximilien@gmail.com |
843671f8060abab821b1f89a6f35d0c6af7b98d6 | 7f8ec3cd95e21d98e9b4a260c5142cf41dfe01cd | /dingpush.py | c90571cf5e5cb48a018f6dde9fb7f8d8b90d6afe | [] | no_license | taojy123/dingpuah | f0d2701d3ff52c1fefa8dfd726a7199d2ce448e8 | d20af4adcd0a616be77041b6505c36444a2fa88a | refs/heads/master | 2022-03-08T02:33:39.836752 | 2019-12-06T02:20:53 | 2019-12-06T02:20:53 | 219,924,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | import requests
import os
import datetime
import time
import traceback
import re
PHONES = ['13402110752', '15098942790', '15039211110', '18611010376']
# PHONES = ['13402110752']
print('==== dingpush begin =====')
print(PHONES)
while True:
try:
t = datetime.datetime.now().strftime('%H:%M')
pr... | [
"taojy123@163.com"
] | taojy123@163.com |
69139dd6f93cb2f4e0434229dacab5a4253969ad | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/gzip/gzip_writelines.py | 72f7233d04b4755caacc3c82cd64c592c6da9aa8 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 384 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""
__version__ = "$Id$"
#end_pymotw_header
import gzip
import itertools
import os
with gzip.open('example_lines.txt.gz', 'wb') as output:
output.writelines(
itertools.repeat('The same line, over and o... | [
"350840291@qq.com"
] | 350840291@qq.com |
e1e01fd0b347096e654c4a043e601afaba689449 | cb73fe89463892c8c147c6995e220f5b1635fabb | /ZONe/q1.py | 6e465bbdef87b44f8044d46dc4cc7f22947b9336 | [] | no_license | Haraboo0814/AtCoder | 244f6fd17e8f6beee2d46fbfaea6a8e798878920 | 7ad794fd85e8d22d4e35087ed38f453da3c573ca | refs/heads/master | 2023-06-15T20:08:37.348078 | 2021-07-17T09:31:30 | 2021-07-17T09:31:30 | 254,162,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import sys
from io import StringIO
import unittest
def resolve():
s = input()
print(s.count("ZONe"))
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
... | [
"harada-kyohei-fj@ynu.jp"
] | harada-kyohei-fj@ynu.jp |
2f9aff57e82a28edb3f7a03b0a420634fcea0354 | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /DayDayCoding/pySV/3.merge.py | cc9ce8344dbdf761f7935a16a1935612ae6f9159 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #!/usr/bin/env python
import sys
inFile = open(sys.argv[1])
ouFile = open(sys.argv[1] + '.merged', 'w')
pre = ['chrN', 'chrN', 0, 0]
interval = 500
row = 0
for line in inFile:
row += 1
line = line.strip()
fields = line.split('\t')
if fields[0] == pre[0] and fields[1] == pre[1]:
if int(pre[2]) - ... | [
"sunahnice@gmail.com"
] | sunahnice@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.