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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb02c0864c123cdf0d4f5cb9a32740ba3ceb4d35 | a3926c09872e1f74b57431fbb3e711918a11dc0a | /python/array/1403_minimum_subsequence_in_non_increasing_order.py | 569a2d60dcf2044789138831a3d5a708757a6cfa | [
"MIT"
] | permissive | linshaoyong/leetcode | e64297dc6afcebcee0614a153a566323bf223779 | 57080da5fbe5d62cbc0b8a34e362a8b0978d5b59 | refs/heads/main | 2022-09-15T00:05:36.476268 | 2022-08-16T14:09:11 | 2022-08-16T14:09:11 | 196,914,051 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | class Solution(object):
def minSubsequence(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
half = sum(nums) // 2
snums = sorted(nums, reverse=True)
s, k = 0, 0
for i, n in enumerate(snums):
s += n
k = i
... | [
"linshaoyong@gmail.com"
] | linshaoyong@gmail.com |
84e3b4bc849e6265d6bf69e8105cdf2fc4a7b2fc | 35b0a18a89516ec84806ccb4662246673f109311 | /homework/utils/utils_hw4.py | 8ad12f3734ea88def8ee88e8468fd773013a1718 | [] | no_license | yqdch/MLDS-Note | 5db53236411c9f1f730f02734edc42437dd868d9 | d2800930ce501b4e12a439ac8cd6a75f0217c46d | refs/heads/master | 2021-09-22T01:20:03.243647 | 2018-09-04T15:32:14 | 2018-09-04T15:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from torchvision import transforms
transform = transforms.Compose([transforms.ToPILImage(mode='RGB'),
transforms.Grayscale(1),
transforms.Resize((84, 84)),
transforms.ToTensor()])
# process the image..
def pre_process(x):... | [
"tinyshine@yeah.net"
] | tinyshine@yeah.net |
3d806887d12bfa660bd7e99f1caf1eb68fedf828 | 847f40e0e8dc155ccec271073cbf7eb705d10f9f | /prob22.py | 14c35d156262eda9bbf8a1b6ce9a6fce9e25147f | [] | no_license | joemeens/guvi-1 | 6730e763d6555c91e352e0a45bf804485a155b2a | 5058c9319b36df87394e857cca8d8bc1e998bcc3 | refs/heads/master | 2020-06-25T15:11:12.296939 | 2019-07-25T15:41:43 | 2019-07-25T15:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | a=int(input(" "))
v=map(int,input(" ").split(" "))
print(max(v))
| [
"noreply@github.com"
] | joemeens.noreply@github.com |
74fe39e241501dac412c523f88a7df4820066301 | 50d10939f20e140a116ef222671bc2abb56fa5fd | /daemon/test.py | 8673809400aada1d9fa3662d43dad8d965d3ea67 | [
"CC-BY-4.0"
] | permissive | mattvenn/energy-wristband | 27d82c6c30bc8156aea42705b4ae2b17d9c1f55d | d5afa1f3b86fd9e1f323f82f7af7fb2adb28d1c6 | refs/heads/master | 2020-04-08T07:40:58.606406 | 2017-03-23T10:31:52 | 2017-03-23T10:31:52 | 26,497,101 | 3 | 3 | null | 2017-03-23T10:31:53 | 2014-11-11T17:59:39 | Python | UTF-8 | Python | false | false | 2,822 | py | import unittest
import time
from diff import diff_energy
import os
sens=50
max_energy=3000
max_time=30
class Test_Diff(unittest.TestCase):
def setUp(self):
import logging
logging.basicConfig(level=logging.INFO)
self.d = diff_energy(logging, max_energy=max_energy, sens=sens, max_time=m... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
cbde5fdd7190d1955e4101bdcf828544eb7389e6 | 145129d75d8255e609cdaf1bc9aa66424e4de0d1 | /pattern10.py | a3b75c166d4c647c813af35e6a4366f65cae4fe9 | [] | no_license | Neeraj-kaushik/coding_ninja | 7ca2d004b149ff0193400569864c48749e331aca | 23eb74bb8d4d80032b58c1408ac445aa87037a49 | refs/heads/master | 2022-11-07T19:43:05.869574 | 2020-06-19T17:31:34 | 2020-06-19T17:31:34 | 267,366,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n=int(input())
i=1
while i<=n:
p=1
j=n
while j>=i:
print(p,end="")
j=j-1
p=p+1
print()
i=i+1 | [
"nkthecoder@gmail.com"
] | nkthecoder@gmail.com |
bb2496b1a827a445a662dae77a03705dc4c98659 | 852003f278d597a4a5e4cddfc12a480d563fb7db | /tests/settings.py | df4231c5aa2515f0bfd25444b2a2eafece753338 | [
"MIT"
] | permissive | City-of-Helsinki/helsinki-profile-gdpr-api | 376faef774b673eaea543e92ca82eefb0b2c1a4a | 808dcd30a745f6d18cdf36ccaf07b0cd25844ab0 | refs/heads/main | 2023-04-29T12:20:32.747297 | 2023-04-18T12:18:34 | 2023-04-18T12:26:44 | 346,269,690 | 4 | 0 | MIT | 2023-04-19T05:28:03 | 2021-03-10T07:29:58 | Python | UTF-8 | Python | false | false | 1,244 | py | SECRET_KEY = "secret"
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
INSTALLED_APPS = (
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"helusers.apps.HelusersConfig... | [
"juha.louhiranta@anders.fi"
] | juha.louhiranta@anders.fi |
755da0bc4ea001022621c3901a91605255fac548 | f75609812d20d46a9f94ee0cfdb91c321d26b63d | /flask/flask_fundamentals/Dojo_Survey/server.py | 019a971b2dca48d2d6f92ada60c9697c8990bd46 | [] | no_license | IanAranha/Python2021 | eff47a20451f61b144b17f48321a7b06308aadca | d9769b8b387b77753b77f6efe3a9a270a1f158d3 | refs/heads/main | 2023-04-02T08:20:24.382913 | 2021-04-10T22:27:10 | 2021-04-10T22:27:10 | 345,918,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from flask import Flask, render_template, redirect, request
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/users", methods={"POST"})
def results():
return render_template("result.html")
@app.route("/back", methods=["post"])
def back():
return redirec... | [
"ianorama@gmail.com"
] | ianorama@gmail.com |
9dd52a5dbaf126ed8780d8d3fabfc6508c0af245 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /visualization/grill/pusher_reward_type_ablation.py | 745f1dc8766a01ca39a8d6d7bf1d0f8fa7e1bc90 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | import matplotlib
from visualization.grill.config import (
output_dir,
ashvin_base_dir,
format_func,
configure_matplotlib,
)
import matplotlib.pyplot as plt
from railrl.visualization import plot_util as plot
configure_matplotlib(matplotlib)
f = plot.filter_by_flat_params(
{'replay_kwargs.fraction_... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
164292f20f8de66cf509569b2cdaffd15af4baee | b9a6440766ac6d09cbe5bcb0dd9ec035e79b68de | /0x0F-python-object_relational_mapping/1-filter_states.py | 6f2411d250a3d57fbab1662f954bca9cb3995269 | [] | no_license | zulsb/holbertonschool-higher_level_programming | aa684ce2bad9f583dd54224e7cb1d60d2189b229 | 0a23d2ffc4ec5810213b6fcd82732f221c97a553 | refs/heads/master | 2021-06-25T15:16:48.849508 | 2021-05-23T00:07:13 | 2021-05-23T00:07:13 | 226,905,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | #!/usr/bin/python3
"""
Script that lists states with a name starting with N (upper N)
from the database hbtn_0e_0_usa.
"""
import MySQLdb
from sys import argv
if __name__ == "__main__":
"""Connect to database."""
conec_db = MySQLdb.connect(
host="localhost",
port=3306,
user=ar... | [
"zulsb2093@gmail.com"
] | zulsb2093@gmail.com |
d7024372dfb48700aef449f128ccb72330a581de | 77d6ae92c38d56f2aa7a57fd24dd97bec6fa6cc4 | /blog/admin.py | a94a9be0c5919ee1f095e4b3bb1ae4e28bfb1c13 | [] | no_license | Gentility01/my-project | aaab030abad105094aa1c0206995a95a756448be | 9cd0805ffc7a02b811f6481ad79bda8e4b14a786 | refs/heads/master | 2023-06-17T13:39:01.353408 | 2021-07-07T01:20:59 | 2021-07-07T01:20:59 | 383,476,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.contrib import admin
from .models import Post,Like,Comment
# Register your models here.
admin.site.register(Post)
admin.site.register(Like)
admin.site.register(Comment)
# admin.site.register(Post_pictures) | [
"mastergentility5@gmail.com"
] | mastergentility5@gmail.com |
5d1e60ce7008a10f3d47c22c09d40c60ab591b0f | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/looker/instances/export.py | 5b33b981ed98210dc6b0a5035626ffad0122cc93 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,190 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 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... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
e6d17a0f40ceb577e98f6ae04e3eae4ea842f9db | be51250bcf59e1b47ed417c45e203c50aa233aae | /dojo-python-flask-mysql/pr1/servererr.py | fb918ee40f7bd663d312ead3bde46ed6a7560cc1 | [] | no_license | shoredata/dojo-python | 4f064c76632bf94a385bb9f552562eb5640398b2 | e7b7a542fa086088252ce92257f37c4b5eedd0c4 | refs/heads/master | 2020-05-02T22:07:31.547469 | 2019-03-28T17:44:06 | 2019-03-28T17:44:06 | 178,242,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | from flask import Flask
# import the function connectToMySQL from the file mysqlconnection.py
from mysqlconnerr import connectToMySQL
app = Flask(__name__)
# invoke the connectToMySQL function and pass it the name of the database we're using
# connectToMySQL returns an instance of MySQLConnection, which we will store... | [
"31630233+shoredata@users.noreply.github.com"
] | 31630233+shoredata@users.noreply.github.com |
d623fe68c6326fee1aba92885d989524184c5f2d | 87d5b21265c381104de8f45aa67842a4adc880eb | /486. Predict the Winner.py | 447e9a702208ffb5145c18af27a90a00db128a70 | [] | no_license | MYMSSENDOG/leetcodes | ac047fe0d951e0946740cb75103fc94aae967166 | 8a52a417a903a0742034161471a084bc1e494d68 | refs/heads/master | 2020-09-23T16:55:08.579319 | 2020-09-03T19:44:26 | 2020-09-03T19:44:26 | 225,543,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | class Solution:
def PredictTheWinner(self, nums):
n = len(nums)
dp = [[0] * (n+1) for _ in range(n+1)]
for i in range(n-1,-1,-1):
for j in range(i+1):
l = j
r = i-j
dp[l][r] = max(nums[l] - dp[l+1][r], nums[-r-1] - dp[l][r + 1])
... | [
"fhqmtkfkd@naver.com"
] | fhqmtkfkd@naver.com |
46d2e6cb4678a7bb86f2a93e3287a37554d642b4 | 0466559817d3a1be9409da2c83db99c4db3bacfe | /hubcheck/pageobjects/widgets/tags_view_form.py | 9dfbebcaaa5bac24ee44bdb846f38977e4b932c8 | [
"MIT"
] | permissive | ken2190/hubcheck | 955cf9b75a1ee77e28256dfd3a780cfbc17de961 | 2ff506eb56ba00f035300862f8848e4168452a17 | refs/heads/master | 2023-03-20T15:17:12.949715 | 2015-09-29T16:11:18 | 2015-09-29T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,682 | py | from hubcheck.pageobjects.basepagewidget import BasePageWidget
import re
class TagsViewForm(BasePageWidget):
def __init__(self, owner, locatordict={}):
super(TagsViewForm,self).__init__(owner,locatordict)
# load hub's classes
TagsViewForm_Locators = self.load_class('TagsViewForm_Locator... | [
"telldsk@gmail.com"
] | telldsk@gmail.com |
ef45fa15c61956b4c8f11b18890b9b8cf99f1ac7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_tremble.py | c57447f66e5255d1408b3edd615cc3538b9fba11 | [
"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 | 361 | py |
#calss header
class _TREMBLE():
def __init__(self,):
self.name = "TREMBLE"
self.definitions = [u'to shake slightly, usually because you are cold, frightened, or very emotional: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7aabaa691f488bd199bfc9e87b7c5d6d5fc3cd09 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/cronet/android/DEPS | b2ea5aa4bb5e57257706ea726a0e307f850883f7 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | include_rules = [
"+components/data_reduction_proxy",
"+components/metrics",
"+crypto",
"+jni",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
f22f021684ba14c9aea722e7b575fa83cc9e8627 | 907eecc07842e12cfef8d7dcc367052c528a7e45 | /python/test_builder_of_things.py | c3c788e8bf65bc9f1c47bb67bc6c1db7aadd6d01 | [] | no_license | desertSniper87/codewars | 0126a6962a7e22f9fd2e649c8a4abe2649d1988d | 03f918e818a1c5a8b68ff23e24ad09698c32346b | refs/heads/master | 2021-05-05T04:41:20.424603 | 2021-04-24T16:31:52 | 2021-04-24T16:31:52 | 118,615,045 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | import unittest
from builder_of_things import *
class TestClass(unittest.TestCase):
def testName(self):
jane = Thing('Jane')
self.assertEqual(jane.name, 'Jane')
self.assertEqual(jane.is_a_woman, True)
self.assertEqual(jane.is_a_man, False)
def testArms(self):
jane = ... | [
"torshobuet@gmail.com"
] | torshobuet@gmail.com |
b1041408c8d0b9d51353afa02be2a9407d84e133 | edb9dce04a0e1c7cae6a4fe54c8dc89cef69d8f0 | /Chapter-05/pandas_handlemissingdata.py | 8c1dc0ad66881643d36a5514b833e4bfacaa3926 | [] | no_license | lovejing0306/PythonforDataAnalysis | a4a38dbc0d24e69a5469c662be7e5cfdeba057cb | be8d4862acc7538b52379cec36047b1c5bd48b3e | refs/heads/master | 2021-06-09T20:40:04.157547 | 2016-11-20T02:23:07 | 2016-11-20T02:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | # coding=utf-8
from pandas import DataFrame, Series
import pandas as pd
import numpy as np
# 测试
if __name__ == '__main__':
string_data = Series(['aardvark', 'artichoke', np.nan, 'avocado'])
print(string_data)
print(string_data.isnull())
string_data[0] = None # python内置的None值也会被当作NaN来处理
print(strin... | [
"lovejing0306@gmail.com"
] | lovejing0306@gmail.com |
c8ef1d94e1d70ae6da235286cc8081214dd6866f | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/release/v4_1/models/release_definition_gate.py | 45dbf84e28f1c28054605140573590d08557e663 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
ac54da57e3eea33615811d6513ec2872ea1f784b | 72af42076bac692f9a42e0a914913e031738cc55 | /01, 특강_210705_0706/02, source/CookData(2021.01.15)/Code14-01.py | ba3157038d2415dc09aa47adb6edb5f1ec20f74f | [] | no_license | goareum93/Algorithm | f0ab0ee7926f89802d851c2a80f98cba08116f6c | ec68f2526b1ea2904891b929a7bbc74139a6402e | refs/heads/master | 2023-07-01T07:17:16.987779 | 2021-08-05T14:52:51 | 2021-08-05T14:52:51 | 376,908,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | ## 함수 선언 부분 ##
def knapsack():
print('## 메모이제이션 배열 ##')
array = [[0 for _ in range(maxWeight+1)] for _ in range(rowCount+1)] # 빈 배열을 만들고 모두 0으로
for row in range(1, rowCount+1) : # 1~4개 (4회)
print(row, '개 -->', end = ' ')
for col in range(1, maxWeight+1) : # 1colg ~ 7colg
if weight[row] > col : # 물건의 무게... | [
"goareum7@gmail.com"
] | goareum7@gmail.com |
381c39adca87bdc4c70516ba84929b4bbb345c7f | 73cacd0f22036bec4aa147f7c26961b4b991af22 | /castero/datafile.py | 99b25f7030014950516c1844bb0c4d828d3fd6fa | [
"MIT"
] | permissive | kyokley/castero | cb15fe45fc84547ad1e6dcb1afb2181bdae86146 | 6998e3cbdd722efe53fdc23bb4bb46750dad2d8d | refs/heads/master | 2022-11-06T01:48:06.925790 | 2020-06-11T01:53:50 | 2020-06-11T01:53:50 | 272,463,362 | 0 | 0 | MIT | 2020-06-15T14:39:10 | 2020-06-15T14:39:09 | null | UTF-8 | Python | false | false | 4,245 | py | import collections
import os
import requests
from shutil import copyfile
import castero
from castero.net import Net
class DataFile:
"""Extendable class for objects with filesystem data.
Used when handling files with data that can reasonably be stored in a
dictionary. Particularly used in the Config clas... | [
"jake@faltro.com"
] | jake@faltro.com |
bab08a4477751c2f1fc761d6c0504c5f4dfaba39 | 1e9c67785cd2a07fbd12b63bd93a2eba2272f237 | /image_task_kg/make_KG.py | 22d5463b6fa171d09e5cc20e81cda93da2ed656a | [] | no_license | monisha-jega/mmd | 2975d0f77bce4db38795fa201f515f35498f0eb3 | d4f9d2c94409c2877ff5a5a2242e7e7ed2f87921 | refs/heads/master | 2022-07-20T17:01:39.043859 | 2020-05-16T23:31:35 | 2020-05-16T23:31:35 | 264,543,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | from __future__ import print_function
import json, os, pickle
from parameters import *
def convert_json(the_json):
new_json = {}
for key, val in the_json.items():
new_json[key.lower()] = val
return new_json
def is_int(s):
try:
int(s)
return True
except ValueError:
return False
... | [
"monishaj@Monishas-MacBook-Pro.local"
] | monishaj@Monishas-MacBook-Pro.local |
da7b653eafb429de4d61b697f9d80f9c7895357e | 075ccb25d98e2e55adbbaf0723b99158747bf172 | /nickles_and_dimes.py | cc7764bfda7d891fcabc1e2ed4c5b18154d36da3 | [] | no_license | Th3Lourde/Mathematical_Modeling | 6863694d7a1526cfb665ecf32189522da1d2ee83 | f890273305263a90ac1b18c9fc12ad1aa70b23cf | refs/heads/master | 2020-04-24T01:23:26.447512 | 2019-04-08T02:38:56 | 2019-04-08T02:38:56 | 171,593,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
'''
11 coins
70 cents
nickles and dimes
'''
total = 70
coin_key = []
n = 5
d = 10
# Start with one dime and all nickles
# Hypothesis: 3 dimes, 8 nickles
# Done
# Equation: 5x+10y = 70
# Equation: x + y = 11
# .
# .
# .
| [
"th3sylvia.lourde@gmail.com"
] | th3sylvia.lourde@gmail.com |
47fb4ad7eb88aa972c8ada25f83b2c9c0ba6d233 | eebacbc58a1c99fb6e32f8cd56cac6e18947d3e7 | /3.advanced_features/1.advanced_features.py | 3dd7fc0bc7d1f5260a24d7e40a67c53d99fe69b8 | [] | no_license | fzingithub/LearnPythonFromLiao | ad7f959d7e667a464f2b9a6b1cedfd0f08baaf8e | fcb0f2e7f905aca253b3986c4a1ceab6b82b7cae | refs/heads/master | 2020-03-29T19:37:32.831341 | 2018-09-27T10:39:11 | 2018-09-27T10:39:11 | 150,273,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 21 18:43:50 2018
@author: FZ
"""
#make a list 1...99
L = list(range(1,100,2))
print (L)
#高级特性,1行代码能实现的功能,决不写5行代码。请始终牢记,代码越少,开发效率越高。
| [
"1194585271@qq.com"
] | 1194585271@qq.com |
3fc3f033f79febb3ec41acc993e537e72912483a | 15373eaa353e8aece47a26741b7fb27795268bf6 | /medium/833_find_and_replace_in_string.py | 7ef69a2ccd6f43a06373517a1eba3a6f382b014a | [] | no_license | esddse/leetcode | e1a9bacf04c68a8d642a1e53c90e6c2dda2c1980 | 0ceccdb262149f7916cb30fa5f3dae93aef9e9cd | refs/heads/master | 2021-06-08T19:15:14.346584 | 2020-01-09T01:41:23 | 2020-01-09T01:41:23 | 109,675,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | class Solution:
def findReplaceString(self, S: str, indexes: List[int], sources: List[str], targets: List[str]) -> str:
replacements = sorted(zip(indexes, sources, targets), key=lambda item:item[0])
length = len(S)
start = 0
new_S = ""
for idx, source, target in replace... | [
"tjz427@sina.cn"
] | tjz427@sina.cn |
48cad96ba6767e03054cc6e5d3e7016bfe571a01 | 8ce721977eedb413cec325af9746c3aa778fe1cd | /vbclient/tests/common/test_manager.py | 6f3a10438cf52934342791a7d918c041808f14cb | [
"Apache-2.0"
] | permissive | Huawei/OpenStackClient_VBS | a1618b5d5e0134affbb062da55b7aae79eead376 | 98834c9425af3e8bff6e2db4602c3f7bd72829bd | refs/heads/master | 2021-01-11T23:30:57.494128 | 2017-04-17T09:50:18 | 2017-04-17T09:50:18 | 78,592,078 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,774 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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... | [
"iampurse@vip.qq.com"
] | iampurse@vip.qq.com |
018d690f2b09a7839e2233446c5334d07ba7e40a | 6c5ce1e621e0bd140d127527bf13be2093f4a016 | /ex073/venv/Scripts/easy_install-3.7-script.py | 04b8ee8d192cd98ecbf9446220d1339ffc006211 | [
"MIT"
] | permissive | ArthurAlesi/Python-Exercicios-CursoEmVideo | 124e2ee82c3476a5a49baafed657788591a232c1 | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | refs/heads/master | 2022-12-31T13:21:30.001538 | 2020-09-24T02:09:23 | 2020-09-24T02:09:23 | 268,917,509 | 0 | 0 | null | null | null | null | ISO-8859-2 | Python | false | false | 508 | py | #!C:\Users\User\Documents\github-MeusRepositórios\Python-Exercicios-CursoEmVideo\ex073\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__... | [
"54421573+ArthurAlesi@users.noreply.github.com"
] | 54421573+ArthurAlesi@users.noreply.github.com |
2706a914a8a9b70a04385ebad0180e6781fbffb5 | 07af05141f371ad1c2ab11634d4f5fad20ede2e0 | /python/src/nnabla/backward_function/bc_add2.py | b95e0477b113afd762dead0d62af1338523c465d | [
"Apache-2.0"
] | permissive | chunxiaosz/nnabla | a9c9b30140def0bdf91dea24d70cfa9400258d66 | 9f4249313129d0fd23d304453830157fee96a2e5 | refs/heads/master | 2020-12-03T05:11:24.724125 | 2019-09-04T06:39:41 | 2019-09-04T06:39:41 | 95,741,841 | 0 | 0 | Apache-2.0 | 2019-09-04T06:39:42 | 2017-06-29T05:29:11 | C++ | UTF-8 | Python | false | false | 1,839 | py | # Copyright (c) 2017 Sony 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 copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"Kazuki.Yoshiyama@sony.com"
] | Kazuki.Yoshiyama@sony.com |
1fd62a6bbd372e6a1a9e6651808cdfff227543ad | 4feaf520374804d6f3feebe3700fb448692a44ba | /pullenti/ner/address/StreetReferent.py | 1d48a1baaff7425540277b31fcda5562b60b8735 | [] | no_license | MihaJjDa/APCLtask | f7be3fb6b0f31801196bf779f6a7e62ce245493b | 4745b45e199887d433ab256bb2e2ebf5dbe3f7cd | refs/heads/master | 2020-04-16T17:15:10.846647 | 2020-02-24T16:06:43 | 2020-02-24T16:06:43 | 165,769,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,253 | py | # Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru).
# See www.pullenti.ru/downloadpage.aspx.
import typing
import io
from pullenti.unisharp.Utils import Utils
... | [
"danila.puchkin@mail.ru"
] | danila.puchkin@mail.ru |
2dffbb4034ba6be7a0ed58d07cc0b2c0128ce028 | eeb10d934e1981ba6784573e7de5a269c9ce865f | /RecoStudy/Draw_Sys_ttbar.py | 878b5f1418dde1eb8293db7ed4622234873b3331 | [] | no_license | bisnupriyasahu/DM2018 | c3e954bf0b14362a0b13ba4a46907aa8e9e8f5c1 | 74b5834deb9ae4489c55c8ed226270fa579a6a8c | refs/heads/master | 2022-02-17T22:43:37.325398 | 2019-08-20T22:03:31 | 2019-08-20T22:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,809 | py | import os
import ROOT
from ROOT import *
import math
#OutF=TFile('Out1200.root','RECREATE')
#outHistSys=TH1F('MeanSys','',20,0,2)
#
#File=TFile('test1200.root','R')
#sum=0
#for isys in range(0,100):
# HistSys=File.Get('___Sys_%s'%str(isys))
# mean=HistSys.GetMean()
# print mean
# OutF.cd()
# sum +=(mean... | [
"smohamadi@gmail.com"
] | smohamadi@gmail.com |
b6eebc3348f8b8c588194824b12e99245fc3b3e3 | 72ea510ceaa5a4aa1918ea0cf2bb699439d2587b | /Python/problem0082.py | 66f7113ebe2a267d3c64be861a1d3e5db40e7244 | [
"MIT"
] | permissive | 1050669722/LeetCode-Answers | f18680e0fe74199a630fff214977e91fe428c550 | c8f4d1ccaac09cda63b60d75144335347b06dc81 | refs/heads/master | 2023-03-08T01:25:19.720931 | 2021-02-22T00:34:43 | 2021-02-22T00:34:43 | 270,304,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def deleteDuplicates(self, head: ListNode) -> ListNode:
if not (head and head.next):
return head
d = {}
tmp = head
while... | [
"1050669722@qq.com"
] | 1050669722@qq.com |
8f04c0f007f92b6b025b75fbb32b9204d00f39d6 | 67d95b72da34dcfb3bf0224e66c3f3d345c7c5be | /src/spaceone/inventory/connector/aws_secrets_manager_connector/schema/service_type.py | d671de6dd8ac7a3aae846cdd457597fc2dd8e8f5 | [
"Apache-2.0"
] | permissive | khl6235/plugin-aws-cloudservices | 10971267902a000f3965bbf606283ab71c15823a | e13554df78ff97daefa7011559c00adc44fa10ea | refs/heads/master | 2022-12-12T03:12:10.744727 | 2020-09-11T06:15:42 | 2020-09-11T06:15:42 | 288,607,364 | 0 | 0 | Apache-2.0 | 2020-08-19T01:54:13 | 2020-08-19T01:54:12 | null | UTF-8 | Python | false | false | 1,535 | py | from spaceone.inventory.libs.schema.dynamic_field import TextDyField, DateTimeDyField, SearchField
from spaceone.inventory.libs.schema.resource import CloudServiceTypeResource, CloudServiceTypeResponse, \
CloudServiceTypeMeta
cst_secret = CloudServiceTypeResource()
cst_secret.name = 'Secret'
cst_secret.provider = ... | [
"bluese@megazone.com"
] | bluese@megazone.com |
82aef273e8b579360dbe49588d59fbe2f8e5646f | cab812e505f6ffd0f54436beb053bff07d58a90a | /20_Day_Python_package_manager/mypackage/greetings.py | f256663fd6dd428349cc16a9548cd04497e0bfaa | [
"Apache-2.0"
] | permissive | diegofregolente/30-Days-Of-Python | 778a3f97a03010a528afb91cde22332da81f4af3 | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | refs/heads/master | 2023-03-24T10:25:20.708317 | 2021-03-19T12:30:02 | 2021-03-19T12:30:02 | 348,480,748 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | def greet_person(first_name, second_name):
return f'{first_name} {second_name}, welcome to 30daysofpython challenge'
| [
"diego_fregolente@hotmail.com"
] | diego_fregolente@hotmail.com |
c51f6f32ab60667f3221123353d8004395f8d50b | 7585c77f49d4a3643e4740b2ceae081c20fc4183 | /example06-06-01.py | 06ef28969f2a708ee44808db2e680530b77f4953 | [] | no_license | Minari766/study_python | c4243df47f23e8fda5bcdf16b65f3b3af97f888c | b1e48e750126f377a15f8be8b3c2547687416ec4 | refs/heads/master | 2022-12-15T10:29:05.306690 | 2020-09-03T13:05:21 | 2020-09-03T13:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | # coding:utf-8
import tkinter as tk
import tkinter.messagebox as tmsg
import random
#ボタンがクリックされたときの処理
def ButtonClick():
b = editbox1.get() #テキスト入力欄に入力された文字列を取得。変数.getメソッドを使用
#Lesson 5-4のプログラム。4桁の数字かどうかを判定
#4桁の数字かどうかを判断する
isok = False
if len(b)!= 4:
tmsg.showerror("エラー","4桁の数字を入れてください")
... | [
"mina3.ryu0728@gmail.com"
] | mina3.ryu0728@gmail.com |
bddda615f934da0f8d51fc2c329bb1c89f27a5b8 | ecc0f628f9684cb4a0b18a8ff8c6e7a7fce9253d | /gears/color.py | 0e734838d1b432823e17410d764a2f335ab5983c | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | ii0/gearhead-caramel | fb8f570046df01f000b15ba7073be82fcf2b791a | 8bf4572aefb5f3a1bafd20ad04dfa0b2f44be8b1 | refs/heads/master | 2022-02-28T15:43:46.261543 | 2019-07-12T13:30:30 | 2019-07-12T13:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,579 | py | from pbge.image import Gradient
import random
CLOTHING,SKIN,HAIR,MECHA,DETAILS,METAL = range(6)
# Color Families- the eleven basic color words in English.
PINK,RED,ORANGE,YELLOW,GREEN,BLUE,PURPLE,BROWN,GREY,BLACK,WHITE = range(11)
class ChannelRed( Gradient ):
NAME = 'Channel Red'
COLOR_RANGE = (255,0,0,0,0... | [
"pyrrho12@yahoo.ca"
] | pyrrho12@yahoo.ca |
9c3a7ff70a130962100e8013422cbac5532e9c68 | 1f006f0c7871fcde10986c4f5cec916f545afc9f | /apps/utils/xml_util.py | 88436818198431463283c56e400e32b729582e71 | [] | no_license | ptsefton/integrated-content-environment | 248b8cd29b29e8989ec1a154dd373814742a38c1 | c1d6b5a1bea3df4dde10cb582fb0da361dd747bc | refs/heads/master | 2021-01-10T04:46:09.319989 | 2011-05-05T01:42:52 | 2011-05-05T01:42:52 | 36,273,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,197 | py |
# Copyright (C) 2006 Distance and e-Learning Centre,
# University of Southern Queensland
#
# 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 2 of the License, or
#... | [
"raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05"
] | raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05 |
afc4588addf41ced43e5b3c252a496aba4eb81b9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1400.py | 835aa64a29d9a0037854dec8a6d7fb866cca78a5 | [] | 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 | 1,631 | py | '''Qualification Round Problem A. Speaking in Tongues'''
import sys
SIZE = 4
def checkLine( line ):
o = 0
x = 0
for cell in line:
if cell == 'O':
o += 1
elif cell == 'X':
x += 1
elif cell == '.':
return None
if o == 0:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
65f4ae8993271aeb836d270b7b7b32681944b932 | 46f8860e0e8d4252ad85d2121bb2387c74287a14 | /problem/p_1346_check_if_N_and_its_double_exist/solutions.py | 243895d2c72cb967c256c1796b9de2a4eb65c7cd | [] | no_license | Lee-W/leetcode | 2a11c853cf0a7f8bca39f94f93cc75401e5a1afa | b66e5a6016525bec98e7865d6e31f1dc9f0b4be6 | refs/heads/master | 2023-09-01T15:52:56.570276 | 2022-08-02T07:22:11 | 2022-08-02T07:22:11 | 180,076,811 | 3 | 1 | null | 2023-08-11T19:57:00 | 2019-04-08T05:35:55 | Python | UTF-8 | Python | false | false | 370 | py | from typing import List
class Solution:
def checkIfExist(self, arr: List[int]) -> bool:
for m_i, m in [(num_i, num) for num_i, num in enumerate(arr) if not num % 2]:
for n_i, num in enumerate(arr):
if m_i == n_i:
continue
if num * 2 == m:
... | [
"weilee.rx@gmail.com"
] | weilee.rx@gmail.com |
2a243a90b605d80d93b16d8354927b293145343d | 2aa15786d231136f4487ac904ada5719a0605f3d | /testData/typeinspection/duplicateField.py | 6e6cfe0b41ee6aabb07d0d69b67dc91fe82aedf2 | [
"Apache-2.0",
"MIT"
] | permissive | koxudaxi/pydantic-pycharm-plugin | 7b2f248e45aceccb58e12e67abb34c89e32a53a0 | 61455a7d63c46d567e739ae05f15475b84142a16 | refs/heads/main | 2023-08-23T07:23:40.067425 | 2023-08-07T16:25:52 | 2023-08-07T16:25:52 | 197,027,423 | 362 | 13 | MIT | 2023-09-14T16:39:41 | 2019-07-15T15:41:01 | Kotlin | UTF-8 | Python | false | false | 91 | py |
from pydantic import BaseModel
class A(BaseModel):
a: str
a: int
A(a=int(123))
| [
"koxudaxi@gmail.com"
] | koxudaxi@gmail.com |
29e33034fc5b2b1e405a3d3e676bea6aaa78649f | d007f9482146278d6bf983768bb380fd984d27bb | /manage.py | b4be45e26482dd632dac839736efccafaeec6696 | [
"MIT"
] | permissive | jacob975/poke_dual_emu | 251c4648c2980be86534fc6140f6db8572ccd660 | a172bf7763144b28b87ce5a493d4ccbff038fbe7 | refs/heads/master | 2022-11-30T07:04:44.491426 | 2020-08-07T13:55:04 | 2020-08-07T13:55:04 | 284,881,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/python3
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'poke_dual_emu.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"z123a123s123@gmail.com"
] | z123a123s123@gmail.com |
aeb28c4f953948dd08fcce328c4fd0340eafeac0 | e811c41caa55559d3b482f26c31fcef02ec66138 | /venv/Lib/site-packages/sqlalchemy/dialects/sqlite/pysqlite.py | c84a73473f195dc98a07dc9310c2b83dc3c77484 | [
"MIT"
] | permissive | 1SouravGhosh/POC_REPO | 929ea865d60a51597966ffcfc4a7a3a350a00f54 | e486d9a1fe0e1215f24bac3aaf97517cda21a066 | refs/heads/master | 2022-11-01T09:53:56.443500 | 2019-02-17T16:21:48 | 2019-02-17T16:21:48 | 171,133,391 | 0 | 1 | MIT | 2022-10-22T04:17:54 | 2019-02-17T14:45:39 | Python | UTF-8 | Python | false | false | 15,089 | py | # sqlite/pysqlite.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
r"""
.. dialect:: sqlite+pysqlite
:name: pysqlite
:dbapi: sqlite3
:co... | [
"1SouravGhosh@noreply.github.com"
] | 1SouravGhosh@noreply.github.com |
976e54ad71a17887bafad148b1c31dc652196bf7 | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/s1_3_getHtml_20210209182455.py | 29f07839537a635652c10e242644034e7aa175eb | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | # This module is called from 3R Automation Component.
import os
import sys
# pdftotree is available as part of the virtual environment for 3R Python processing
import pdftotree
import json
from pprint import pprint
import pdfminer
import ocr_extract as imgpdf
from utils.ocr.handle_image import *
# pdf_doc = json.lo... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
583fa6ef03b8b65452f1c039cbd3bf6fb3ea4678 | 8e5ed445e05274dd013f443d9d506695fa08ad9f | /dat/gui/load_variable_dialog.py | 78544e477425d33332d411bf878f0592ef506ab2 | [] | no_license | afcarl/DAT | 5c2237f4b3745d3b47df27a91eab469cfadd9da9 | 1272b630326b05bca27746993fe2d32479a7353c | refs/heads/master | 2020-06-22T05:49:54.135615 | 2015-09-16T14:10:41 | 2015-09-16T14:10:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,593 | py | import re
from PyQt4 import QtCore, QtGui
from dat import DEFAULT_VARIABLE_NAME, variable_format
from dat import data_provenance
from dat.gui import translate
from dat.gui.generic import AdvancedLineEdit
from dat.global_data import GlobalManager
from dat.vistrail_data import VistrailManager
from dat.vistrails_interfac... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
9b245ffc9a5b5714555bcedb7a015c8e4e6c6d80 | 8ec05f1d5800e0b98afa92367f74bed9f95e0ee9 | /venv/Scripts/rst2man.py | 9ef84bd9b4cc305a5aa6ffa93a6cc0aafa425c88 | [] | no_license | ayanchyaziz123/ecom-final-year-project | 28362922a88c71aba29d22f29c7f34e1cad6189f | d21fdd885b3b768935dc29171c5a6761c4b88e9c | refs/heads/master | 2023-08-12T17:10:23.826744 | 2021-10-06T12:36:17 | 2021-10-06T12:36:17 | 405,435,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!f:\proshop_django-master\venv\scripts\python.exe
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
"""
import locale
... | [
"aaziz9642@gmail.com"
] | aaziz9642@gmail.com |
769ca7862fc492c3162d45ff8ce8222afda2829c | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/hvs/adj.py | fb48fc6714990d8e24798555483c62576a4eb77b | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 7,640 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
ef356e1edaae73bf881c1937ec46f1ac044ffbe1 | ec56e3a57fb71f3fc4f19b168d3fa34cebb781ab | /tcga_encoder/models/regularizers.py | 7326b08e9ac4b6ace69433dc138071b247dc3932 | [
"MIT"
] | permissive | tedmeeds/tcga_encoder | 64d60148b0c69092cb499abec22618e740ba8b6c | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | refs/heads/master | 2021-01-13T04:50:42.643743 | 2017-08-25T13:09:38 | 2017-08-25T13:09:38 | 78,621,753 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,136 | py | import tensorflow as tf
from scipy import stats
def Drop( X, keep_rate ):
keep_mask = stats.bernoulli( keep_rate).rvs( X.shape )
Y = X*keep_mask + (1-keep_mask)*0
return Y
def DropColumns( X, cols2drop ):
Y = X.copy()
Y[:,cols2drop] = 0
return Y
class Regularizer(object):
def __init__( self, lam_va... | [
"tmeeds@gmail.com"
] | tmeeds@gmail.com |
ba780aaf42ac35517e278f877cdb859dab20abd9 | 0bf6ecbdebc7424a8946b29127d55c5bc1e7442e | /wetLab/migrations/0017_auto_20161107_1626.py | a4121e0b72612c717750f8d9b822000923594343 | [] | no_license | dekkerlab/cLIMS | 2351a9c81f3e3ba982e073500a4a5cf2fd38ed51 | e76731032a5707027b53746a8f2cc9b01ab7c04e | refs/heads/master | 2021-03-27T06:28:49.718401 | 2017-10-10T19:22:33 | 2017-10-10T19:22:33 | 71,837,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-11-07 16:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wetLab', '0016_auto_20161107_1556'),
]
operations = [
migrations.RenameField(
... | [
"nanda@ankitas-mbp.ad.umassmed.edu"
] | nanda@ankitas-mbp.ad.umassmed.edu |
77bf44bd368a70e3933cfcf5f32ec64eab7ecdd9 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/detail_placement_view_service/transports/base.py | 85ed85c711e8a89a9ba736c1cc3efae58586a2a2 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
220ca96c3e7cbb881449a5efc32e58889f288fbc | 239eafa1bdf684ae8b8663c1f34f8f60df5f523e | /20180305_emeson_rnaediting/findWord.py | 98024d4dce24ad435493433bc73ad27ca88798c9 | [
"Apache-2.0"
] | permissive | shengqh/vangard | 83069b0e2ff2951a8afe6a0e70ec542bb071d2f0 | 8ee611d7eaab2a8fac37aa756921fee2e195c86a | refs/heads/master | 2021-06-29T00:42:43.953492 | 2019-01-02T17:50:15 | 2019-01-02T17:50:15 | 114,392,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,173 | py | import argparse
import sys
import logging
import os
import gzip
sys.path.insert(0, '/home/shengq2/program/ngsperl/lib/RNAediting')
from WordRoleUtils import WordRole
roles = {}
roles["Turnee_word"] = [
WordRole("TurneeA", "AACCAT", 6, "GCTGGACCGGTATGTAGCA", 0.9, 25, "RTRCGTRRTCCTRTTGAGCATAGCCGGTTCAATTCGCGGACTAAGGC... | [
"shengqh@gmail.com"
] | shengqh@gmail.com |
7d62f9b9485d0a086b982af2224380bc8381d6ae | 52e2064daa678499d3d48f5704d68c2eeb549156 | /Facturacion/urls.py | f1fdb7159af18a2548897044a26bb76ac5ae4dcd | [] | no_license | matheo97/ERP | 159723cb42fba179561834d89c45af00163173df | 7ff4f452c6c84c85759a32351fc25cc111dd0c1f | refs/heads/master | 2021-11-12T12:00:55.403003 | 2019-03-06T14:58:02 | 2019-03-06T14:58:02 | 174,161,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | from django.conf.urls import url, include
from .views import *
urlpatterns = [
url(r'^generar_cotizacion/$', generarCotizacion.as_view(), name="generar_cotizacion"),
url(r'^generar_factura/$', generarFactura.as_view(), name="generar_factura"),
url(r'^editar_factura/(?P<id_factura>\w+)$', editarFac... | [
"mateo.salazar@correounivalle.edu.co"
] | mateo.salazar@correounivalle.edu.co |
5752a80b9c4d569351b2dea27135216d006cfe5a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_focusing.py | 3bfe426f06c2ae27b809740c8cfc639425e5f31f | [
"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 | 222 | py |
#calss header
class _FOCUSING():
def __init__(self,):
self.name = "FOCUSING"
self.definitions = focus
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['focus']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
81652859f613988bdd9753ef3a50a151f8e9cdf2 | 462682b3b29304b561eaea3833c29e84d1e95c0e | /PythonLoops/03-Patterns.py | 1d0b2cb5c40e17317ac93192942cee55c45f54a2 | [] | no_license | ravi4all/PythonDecMorning | 4452b8340ce0b4ab067bd769725c5a6f831b7f45 | 1e20da3c90d407dbef714770ad54e72f16be0eec | refs/heads/master | 2021-09-02T11:01:28.686860 | 2018-01-02T05:05:06 | 2018-01-02T05:05:06 | 113,133,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> a = 2
>>> a = "*"
>>> print(a*5)
*****
>>> for i in range(1,6):
print('*' * ((i*2)-1)))
SyntaxError: invalid syntax
>>> for i in range(1,6):
print... | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
50c7515de17781b2aa3264982c36d11d47c5e5bd | 4f408d65db60911f56110c351cb3b64835e0c5fb | /caffe2/python/operator_test/video_input_op_test.py | f447305f341c0f4a1633c9d321e6e10d3adb13eb | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | KeyKy/caffe2_SSD | a02c065aef2dbcfd00faae8be0440d7a4ff0fb76 | 7235688ea5e212dbe8609d780dd94c8c7d9fef54 | refs/heads/master | 2021-09-18T14:36:11.247427 | 2018-07-10T09:59:35 | 2018-07-10T09:59:35 | 89,928,918 | 8 | 5 | null | 2018-07-27T02:14:38 | 2017-05-01T14:04:20 | Jupyter Notebook | UTF-8 | Python | false | false | 3,796 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import sys
import os
import shutil
import lmdb
import unittest
import tempfile
from caffe2.proto import caffe2_pb2
from caffe2.python import workspace, cnn
import numpy ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
bd7bf40d30fa7f4cbeda69eb2b1844a862c81a84 | 341c7c9a8a8482c02c8427db3560b85427f1a7df | /regexlist.py | 9b7d231832c0ede1093ab8c3878927849cda8f23 | [] | no_license | amitks815/pycode | 7d20df97ce423e0a521658c8d9e1929ed04a0992 | 0d03598cd09821f38284fd48510fae236348dc29 | refs/heads/master | 2020-04-08T19:21:19.193705 | 2018-11-29T10:52:58 | 2018-11-29T10:52:58 | 159,651,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import re
list1=[]
with open ("file.txt") as f :
#content=f.readlines()
for line in f.readlines():
list1.append(line)
print(list1)
pattern=(r'[A-za-z0-9.]+@[A-za-z0-9]+.[A-za-z]+')
for val in list1:
matches=re.search(pattern,val)
if matches:
print(matches.group(0))
| [
"42370714+amitks815@users.noreply.github.com"
] | 42370714+amitks815@users.noreply.github.com |
e3e353b9df75f077853dcb92e5f69f8cec164206 | 13a7859b59e401c83e12fd97ab93db9577f87dee | /forH4G/h4gFittingTools/MyCMSStyle.py | d2afed6baf568e36ea0afd8117ff8d3466d3b9fc | [] | no_license | bmarzocc/Scripts | 4a59527c3a8282d1dce2b76ee642d953743ed16c | 6cfc8c3bf10132a1ee55bfcca823c2cf711d783a | refs/heads/master | 2023-03-22T13:40:43.987502 | 2021-03-09T09:15:50 | 2021-03-09T09:15:50 | 255,868,174 | 0 | 0 | null | 2020-04-15T09:29:38 | 2020-04-15T09:29:37 | null | UTF-8 | Python | false | false | 1,108 | py | from ROOT import *
def SetAxisTextSizes(obj, yoff=0, ysize=1, xoff=0, xsize=1):
obj.GetYaxis().SetTitleOffset(1.1+yoff)
obj.GetYaxis().SetTitleSize(0.0425*ysize)
obj.GetYaxis().SetLabelSize(0.04*ysize)
obj.GetXaxis().SetTitleOffset(1.1+xoff)
obj.GetXaxis().SetTitleSize(0.0425*xsize)
obj.GetXaxis().SetLabel... | [
"wamorkar.t@husky.neu.edu"
] | wamorkar.t@husky.neu.edu |
b32c05a30d39745a342625d64163bd4819dcf565 | 6a55fc908497a0d4ada6eae74d64a057b609c261 | /model-optimizer/extensions/front/tf/InterpolateTransposes.py | 91616c0508d912fc5ea71d727d2ee4c924e1408c | [
"Apache-2.0"
] | permissive | anton-potapov/openvino | 9f24be70026a27ea55dafa6e7e2b6b18c6c18e88 | 84119afe9a8c965e0a0cd920fff53aee67b05108 | refs/heads/master | 2023-04-27T16:34:50.724901 | 2020-06-10T11:13:08 | 2020-06-10T11:13:08 | 271,256,329 | 1 | 0 | Apache-2.0 | 2021-04-23T08:22:48 | 2020-06-10T11:16:29 | null | UTF-8 | Python | false | false | 3,105 | py | """
Copyright (C) 2018-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
b650f94d0356557f05a4e13a9e5e678884eeefcd | afa231ff3461a92a67c09ec9311611214a79deca | /pyleecan/Methods/Simulation/StructElmer/process_mesh.py | 8d24ee0ba18e75a04e10b602aec1d2fc335c6b06 | [
"Apache-2.0"
] | permissive | jgdedamas/pyleecan | 38114d0e428597d90648939f9f35abb937fc243d | 52ca00b36bbf1a1ba24ae722cf72c5e8e8e16395 | refs/heads/master | 2023-05-29T16:32:48.380055 | 2021-03-04T10:57:26 | 2021-03-04T10:57:26 | 335,987,909 | 0 | 0 | Apache-2.0 | 2021-02-04T14:58:21 | 2021-02-04T14:58:21 | null | UTF-8 | Python | false | false | 11,783 | py | # -*- coding: utf-8 -*-
import gmsh
import sys
from os import replace
from os.path import splitext
def _remove_entities(gmsh, labels):
"""
Remove model entities that have one of the given labels in their physical
groups names.
Parameters
----------
gmsh :
gmsh object
labels : l... | [
"sebgue@gmx.net"
] | sebgue@gmx.net |
ded63a09112cf239b904ab299115127cdb7a7f01 | 11b583df4dd615a1cfa9d433318f1f7896c81e7e | /cride/users/views/__init__.py | cb7eb70b4b946844d7f271d02f70a64f8c304622 | [
"MIT"
] | permissive | jecs580/django_second_app | 31720513894946d005e0bb37519ccdf46bd5308e | ef04b48342ef560eac8f58540ba684e5eb7d7926 | refs/heads/master | 2022-09-17T04:52:41.419770 | 2020-02-03T23:26:59 | 2020-02-03T23:26:59 | 229,647,968 | 0 | 0 | MIT | 2022-09-13T23:03:32 | 2019-12-23T00:13:33 | Python | UTF-8 | Python | false | false | 55 | py | from .users import *
# Del archivo users importa todo. | [
"sanchezenrique580@gmail.com"
] | sanchezenrique580@gmail.com |
541914f4535d123610ab11ffa73cc29570302b09 | 3add939686f188d4381ea4cc699fca285ff10a46 | /utils/map_county_position.py | a5afbb71d01fb3f177dddf8f28d8cc81bdec910b | [] | no_license | weixinl/2019MCM | a66fdf5ae85dc0dce1df655d2ccae85ed3b553ea | 5caddf4b01044475d2a22097742861eb5cc698b4 | refs/heads/master | 2022-06-25T09:32:57.042550 | 2019-03-07T06:28:38 | 2019-03-07T06:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | # to get new file map a place to a position on map
import pandas as pd
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
nflis_path="../MCM_NFLIS_Data.xlsx"
nflis_df=pd.read_excel(nflis_path,sheet_name="Data")
zipcode_path='../zipcode.csv'
zipcode_df=pd.read_csv(zipcode_path)
zipcode_df=zipco... | [
"weixinluwx@foxmail.com"
] | weixinluwx@foxmail.com |
14c7ed5c95e103cec52a269326a642e3a9dea1cf | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/pyshacl/constraints/sparql/sparql_based_constraint_components.py | 84736e2e6bb0984e9fc8b781b5de8e985def0fd1 | [
"Apache-2.0",
"MIT"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 18,547 | py | # -*- coding: utf-8 -*-
"""
https://www.w3.org/TR/shacl/#sparql-constraint-components
"""
import typing
from typing import Dict, List, Tuple, Type, Union
import rdflib
from pyshacl.constraints.constraint_component import ConstraintComponent, CustomConstraintComponent
from pyshacl.consts import SH, RDF_type, SH_ask, ... | [
"chenlongwei@camera360.com"
] | chenlongwei@camera360.com |
e410f2ddda9eea30c3c3608956c7f3fd9f50ca3a | ddd993057174b52a9c4ecffddda655504ccc2366 | /src/main/python/systemds/operator/algorithm/builtin/imputeByMode.py | c6921b1ead323c2ce6c21c69cf1a5179aad7a138 | [
"Apache-2.0"
] | permissive | atefeh-asayesh/systemds | 68840e3e8005d5bff3e76aeed811c7ab1cb89e8f | 96733360c8f600355d5600f2edb8960ba1d47861 | refs/heads/master | 2023-08-04T18:23:56.076995 | 2021-09-27T08:41:40 | 2021-09-27T08:41:40 | 368,129,199 | 0 | 0 | Apache-2.0 | 2021-06-08T20:22:08 | 2021-05-17T09:29:42 | Java | UTF-8 | Python | false | false | 1,421 | 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 unde... | [
"baunsgaard@tugraz.at"
] | baunsgaard@tugraz.at |
37909ffcf88ac36105ccbcdb2881775b527b6187 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_chart_size02.py | bb8624007d0a0803fa1ea7fec99c5b6f4a73cd6e | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,360 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
a5ed97929c86c1220ab0718c4de35447549ecd42 | fdd9e3131ead660db9485304438993a2a249fb1f | /tests/test_npc_cli/test_describe/test_describe_systems_cmd.py | 7d33b59443410bbcf0d0664b05ce152289b67f07 | [
"MIT"
] | permissive | aurule/npc | 6807aa0723e765cb33fe5f5b49b0f579a6207153 | 2e1b2e92e2a4908d791846f184ee7e4de2f6682e | refs/heads/develop | 2023-09-02T02:46:47.900892 | 2023-08-30T17:31:00 | 2023-08-30T17:31:00 | 47,045,977 | 14 | 2 | MIT | 2023-08-18T20:49:12 | 2015-11-29T01:40:18 | Python | UTF-8 | Python | false | false | 590 | py | from click.testing import CliRunner
from tests.fixtures import tmp_campaign
from npc_cli import cli
def test_shows_system_name(tmp_path):
runner = CliRunner()
with runner.isolated_filesystem(temp_dir=tmp_path):
result = runner.invoke(cli, ['describe', 'systems'])
assert "New World of Darkness" i... | [
"paige.andrews@modolabs.com"
] | paige.andrews@modolabs.com |
bbb794515424fcae3a62640604b057d36412e869 | 2e74cff6c9639f3903ccde662e79359d0724285e | /2019_late/20190920/swea_5188_최소합.py | 73b522689d9b934a03bfafa00236176b182caa0d | [] | no_license | dodonmountain/algorithm | e29988071f651e51ba65e3926302f94a3d4074a5 | ce33e0d74220839aed4b17a47fa0069458a4324e | refs/heads/master | 2022-11-05T05:14:01.527015 | 2022-11-01T04:29:37 | 2022-11-01T04:29:37 | 200,008,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | import sys
sys.stdin = open('5188.txt')
dx, dy = (1,0), (0,1)
def dfs(h,c):
global tmp
if h == (N-1,N-1):
if c < tmp:
tmp = c
return
for i in range(2):
nx, ny = h[0], h[1]
if 0 <= h[0] + dx[i] < N:
nx = h[0] + dx[i]
if 0 <= h[1] + dy[i] < N... | [
"lkh151515@gmail.com"
] | lkh151515@gmail.com |
12d348348906199a44c75cc418f75704de8a63e2 | 0db97db08743783019efe022190f409d22ff95bd | /aliyun/api/rest/Ram20140214AddUserRequest.py | e2541abe6859593f3da162236c1ccb39f69cba4c | [
"Apache-2.0"
] | permissive | snowyxx/aliyun-python-demo | 8052e2a165f1b869affe632dda484d6ca203bd9b | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | refs/heads/master | 2021-01-10T03:37:31.657793 | 2016-01-21T02:03:14 | 2016-01-21T02:03:14 | 49,921,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | '''
Created by auto_sdk on 2015.01.27
'''
from aliyun.api.base import RestApi
class Ram20140214AddUserRequest(RestApi):
def __init__(self,domain='ram.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.AccountSpace = None
self.Comments = None
self.UserName = None
def getapiname(self):... | [
"snowyxx@126.com"
] | snowyxx@126.com |
ade36c2e192e4a454bafe0e1e3ff1cc305908cf3 | 5b9d8b8aeee3ec8c29ca3de3e90182d712705690 | /backend/manage.py | 43df8ce678c2c740da4bad02791a4cd854202e3d | [] | no_license | crowdbotics-apps/music-pro-21325 | 97ff337afbec507e9ed7d99ede19e0cfa2d16e81 | c1f71907b192f72a660f1ac98aee3ae348793cfd | refs/heads/master | 2022-12-25T23:06:26.557969 | 2020-10-10T08:14:08 | 2020-10-10T08:14:08 | 302,850,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | 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', 'music_pro_21325.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4b27a3e0aa124b223b6e2bb7cf56736f2f5905d6 | e6a8793b1b12d47e57f00485350d122946618245 | /home/migrations/0005_remove_page_is_footer_1.py | 02c0d3ec0eed67be17f85c803e78a91e63b41459 | [] | no_license | Fabricourt/school | 70b2eba2c0b8ff9b9290eb0f68d730698a6d3a63 | dad80c36be34b432dfadef195eb9e867f82cafff | refs/heads/main | 2023-01-01T15:48:43.760288 | 2020-10-26T11:15:32 | 2020-10-26T11:15:32 | 305,829,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Generated by Django 3.1.2 on 2020-10-17 13:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0004_auto_20201017_1552'),
]
operations = [
migrations.RemoveField(
model_name='page',
name='is_footer_1',
)... | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
097187bfe4e27f5d2ceaa882fa7a70cfd771c020 | 5ee5853eb335fcf575d4344366ef9b4bce03570d | /p847h/shorest_path_length.py | 9777473ab2a7326a108ab1a574ad0307396ed666 | [
"MIT"
] | permissive | l33tdaima/l33tdaima | 15463fb2f8d61286a4a3a7bacaaee2ab1f7c4f43 | f35305c618b383a79d05074d891cf0f7acabd88f | refs/heads/main | 2023-07-20T21:52:26.330301 | 2023-07-19T02:30:22 | 2023-07-19T02:30:22 | 99,509,451 | 1 | 0 | MIT | 2018-10-31T15:10:49 | 2017-08-06T19:44:29 | JavaScript | UTF-8 | Python | false | false | 939 | py | from cmath import exp
from curses.ascii import SO
class Solution:
def shortestPathLength(self, graph: list[list[int]]) -> int:
memo, final, steps = set(), (1 << len(graph)) - 1, 0
queue = [(i, 1 << i) for i in range(len(graph))]
while True:
new = []
for node, state ... | [
"l33tdaima@github.com"
] | l33tdaima@github.com |
62f9354ab6fcf808aef2ae3afc2deb20f08226ab | 89d5dbd7672d9e03e7ca5277a9fd942b2444db86 | /Advance python/08_global_local_variable.py | c69f04343d0079f2abeadbbb65295b89401249d5 | [] | no_license | rameshparajuli-github/python-programming | 6ff218d4d1cdde73a578e4f2f3ba6241310d6408 | 5d2638a24e8b50614f2c15f04eb1f00dba0f6175 | refs/heads/master | 2023-06-17T18:40:47.797595 | 2021-07-16T14:02:52 | 2021-07-16T14:02:52 | 386,656,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | a=54 # Global Variable
def func1():
global a # This line change Global variable
print(f"This statement:{a}")
a=9 # Local Variable # yadi teo mathi ko global a use nagareko vaya yo line ma 54 naii print hunthyo
print(f"This statement:{a}")
func1()
print(f"This statement:{a}")
| [
"susmitscore619@gmail.com"
] | susmitscore619@gmail.com |
3a40a65282330a85aeb70fd636c76af7cc562d0b | a7a29bc1643e14ae74f95d0b6695de32b6d6cfb5 | /0x0B-python-input_output/1-number_of_lines.py | 148a4fadbe23197c0272795e3bbb6c927d9f17e7 | [] | no_license | ToqYang/holbertonschool-higher_level_programming | 95752a663307534e16d57a73cc4a8b0170f86614 | 862f88652619711eb0d1c7f821467b15d3f9b7cf | refs/heads/master | 2020-07-23T01:41:19.574505 | 2020-02-14T04:46:35 | 2020-02-14T04:46:35 | 207,403,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #!/usr/bin/python3
""" Read a file """
def number_of_lines(filename=""):
""" Received the filename for it can does a syscall for read the file
Return: Counter of the lines"""
count = 0
with open(filename, mode="r", encoding="utf-8") as fil:
for line in fil:
count += 1
ret... | [
"santitoya-2001@outlook.com"
] | santitoya-2001@outlook.com |
d20d8ce179c8f7e5f77654c2d090e1085d1785fb | 1273cef322e21edd65f5c44e0d3ad592959d27bb | /tensorflow/python/eager/context.py | 13fb0e88a6df9cbe6921d8b81bed8003a6a2ed33 | [
"Apache-2.0"
] | permissive | sreesms/tensorflow | 6e176b3ad9d68ac397d02f5dc0fcb4340aead4ae | e105c101f1df18a8f2f2d25f96f43e097483d99b | refs/heads/master | 2020-03-27T12:03:31.035937 | 2018-08-29T00:22:26 | 2018-08-29T00:26:35 | 146,522,667 | 1 | 0 | Apache-2.0 | 2018-08-29T00:33:03 | 2018-08-29T00:33:03 | null | UTF-8 | Python | false | false | 26,767 | py | # Copyright 2017 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 |
0af54381ce4e027b80fe03d99f639a2156eda620 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/mve.py | fc7410e0f820f7925d1245e7228a622819984cc9 | [] | 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 |
caf49e720e7a11db13c00411024b3f18209fde61 | 9c20b0f0ad729b77e970dedaf4a138c99b4364bc | /Lib/site-packages/phonenumbers/shortdata/region_PW.py | 2b53f97da4c5bba6ee25876c99a74d7e9f7544e6 | [] | no_license | GlovesMaker/Sklepinternetowy | 4459f8651d2280e4840cfb293de28f9413df68af | d05372e96f7238c9459caf4f7a890a5a6f2bb2c3 | refs/heads/master | 2022-12-22T02:43:33.628016 | 2018-09-11T18:20:37 | 2018-09-11T18:20:37 | 167,855,928 | 0 | 1 | null | 2022-12-08T05:55:04 | 2019-01-27T20:36:42 | Python | UTF-8 | Python | false | false | 548 | py | """Auto-generated file, do not edit by hand. PW metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_PW = PhoneMetadata(id='PW', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='9\\d\\d', possible_length=(3,)),
em... | [
"buchar123@gmail.com"
] | buchar123@gmail.com |
9a4ba82eb6c3c0b5c1df859b72e504c966f1763a | 74482894c61156c13902044b4d39917df8ed9551 | /test/test_tokens_forwarding_fail_data_item.py | ce8cc93181cac7dc8210c609b3d54fa4af76f3a7 | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 1,274 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
ad96a6a7aee94d1afcd1bceb24d8af138afdff98 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/fuchsia-gn-sdk/src/gn_run_binary.py | b39f49b5c30357b323b41f6911d8d6f0b7c05077 | [
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 720 | py | #!/usr/bin/env python3.8
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Helper script for GN to run an arbitrary binary.
Run with:
python3.8 gn_run_binary.py <binary_name> [args ...]
"""
import os
im... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
9bd8e8da9f5987759171e2b03d02241ddba91fc8 | a96bbc3da8557e68cb01db671b930fec9f46c0c2 | /blog/migrations/0005_comment.py | 2c007c09ada8afc58aec82f33ab624bfc2cadb43 | [] | no_license | winterash2/django_first_blog | dd3de9f01f8e2b2df21fba9cd3d636c6fbd94fd1 | 06f059570ae5851db97b5c7f9b9d043da033c023 | refs/heads/master | 2022-11-26T18:44:47.316248 | 2020-08-10T09:10:16 | 2020-08-10T09:10:16 | 286,345,428 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # Generated by Django 3.0.9 on 2020-08-07 02:01
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20200806_1540'),
]
operations = [
migrations.CreateModel(
... | [
"winterash2@naver.com"
] | winterash2@naver.com |
01a0e9f474c62b7004189040a1985ecc8534dea3 | 0288f98eca5d7c5e274f186a61258746be8627d3 | /venv/Scripts/easy_install-script.py | cefdc254cee2a85daedbbafe7c9795bf3330059a | [] | no_license | Adem54/Python-Tutorials | df67d449e6d8c06134c6ae7a3fec0889e341530e | a30895d7f716d8a3115bc6df9f0af3feb43aa799 | refs/heads/master | 2020-12-24T02:18:49.564989 | 2020-01-31T02:48:03 | 2020-01-31T02:48:03 | 237,347,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!"C:\Users\Adem\Desktop\Python Tutorials\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"adem5434e@gmail.com"
] | adem5434e@gmail.com |
760764837e284ea13127fd1fbbc619a6dbbba28f | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/PySide2/QtGui/QTextBlockUserData.py | a44da54e48e31d0038371f89e05a4a2201acfe19 | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # encoding: utf-8
# module PySide2.QtGui
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\PySide2\QtGui.pyd
# by generator 1.146
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import Shiboken as __Shiboken
class QTextBlockUserData(__Shiboken.Object):
# no doc
def _... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
3772b803daea556dbaca21372e0a9c473332e531 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /sCH5gcyoRqq3Gfzyi_12.py | 581973007ad8ee1c31dd8d0af12ef826a10ecb9d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | """
Create a function which validates whether a given number exists, and could
represent a real life quantity. Inputs will be given as a string.
### Examples
valid_str_number("3.2") ➞ True
valid_str_number("324") ➞ True
valid_str_number("54..4") ➞ False
valid_str_number("number") ➞ F... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
48379baa491f9b23fd8ab9d3483b39f243989824 | 1b52ba1cfc2ffb16cbcd61f89909dd51741f1c28 | /test_env/lib/python3.6/copyreg.py | 4249434c66aa32a572172ae23411e5c76357c82d | [] | no_license | dayananda30/test_run_framework | 9b0cc78ff0f439bf37ac52d6c4f2843ed36861de | b8aaf2fb88a33dff87dc652d833ab1e1f9ed28ab | refs/heads/master | 2020-07-31T09:20:01.714648 | 2019-09-24T05:45:09 | 2019-09-24T05:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | /home/sheetal/sid/projects/ananconda3/lib/python3.6/copyreg.py | [
"bv.sheetalkumar@gmail.com"
] | bv.sheetalkumar@gmail.com |
fb33dce1897d5dc122db0542d61b43b2317c257a | 015106a1a964305ef8ceb478cc56fd7d4fbd86d5 | /468.py | b55bc68b7bb8270e8e126714f8a586f504225d6b | [] | no_license | zenmeder/leetcode | 51a0fa4dc6a82aca4c67b5f4e0ee8916d26f976a | 0fddcc61923d760faa5fc60311861cbe89a54ba9 | refs/heads/master | 2020-12-02T18:16:10.825121 | 2018-10-30T11:47:53 | 2018-10-30T11:47:53 | 96,505,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | #!/usr/local/bin/ python3
# -*- coding:utf-8 -*-
# __author__ = "zenmeder"
class Solution(object):
def validIPAddress(self, IP):
"""
:type IP: str
:rtype: str
"""
if self.isIPV4(IP):
return "IPv4"
elif self.isIPV6(IP):
return "IPv6"
else:
return "Neither"
def isIPV4(self, IP):
ip = IP.split... | [
"zenmeder@gmail.com"
] | zenmeder@gmail.com |
987357f3daea5355b973c676404a76288914d82e | e9bf5fb440305c7b17935438fd515ca2541babc4 | /kinl.py | 7b30a2b77605cfb7bc749dfe93d4fb9c1031dc87 | [] | no_license | jyothiesai/guvij | 748518673509d4849803fc22b03cd6b2b0b3392f | fdcd29f5548c12095f259ff2f74024317787b110 | refs/heads/master | 2020-04-16T01:42:44.848569 | 2019-08-07T13:24:44 | 2019-08-07T13:24:44 | 165,183,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #jyothi
n,k=raw_input().split(' ')
n,k=int(n),int(k)
l=[int(x) for x in raw_input().split(' ')]
if k in l:
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | jyothiesai.noreply@github.com |
6801ecc4ad1ea58b5cafd1fd372f067ab59d8863 | 6712885a4c2a056eee3b4488382b9afc2149f799 | /New LeetCode Problems/remove_outermost_parens.py | 669927e0a71b7d1f372ff3cddc03ce00f0133f34 | [] | no_license | matthewharrilal/CS-Questions-GRIND | cac1cb562e5dad79ee4e224895d034f9c71d9ed3 | 7196c5e8df495d43ee91f218d6253c8a88a7d59d | refs/heads/master | 2020-04-16T01:30:53.289837 | 2019-07-24T04:34:21 | 2019-07-24T04:34:21 | 165,176,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # https://leetcode.com/problems/remove-outermost-parentheses/
# def removeOuterParentheses(self, S):
# """
# :type S: str
# :rtype: str
# """ | [
"matthewharrilal@gmail.com"
] | matthewharrilal@gmail.com |
d47fcca6b67ca58f9a12f1e5299051c3e3d948b8 | c39e466c2b6fdffbc410f24669f214e13fb87781 | /PYTHON/EJERCICIOS/TEMA 5/COMPIS/017_G8-Carla Guillén Pingarrón_638450_assignsubmission_file_/S5_G8.py | a05a77ba9258fb980599167fb5bccc7bb6b79d0f | [] | no_license | enanibus/biopython | 3a58efbcc92f1ce60285a115c620de9295b7d281 | 613d334a5c0502059930d9381a9464ef533cca1c | refs/heads/master | 2021-01-12T17:27:39.516793 | 2017-01-02T18:30:09 | 2017-01-02T18:30:09 | 71,573,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,820 | py | ##Group 8: Álvaro Alfayate, Andrea de la Fuente, Carla Guillén y Jorge Nuevo.
def ReadFasta(FileName): ##Definimos una función que lea el archivo FASTA elegidoy extraiga la información requerida
MyFile=open(FileName,'r')
ReadSeq='' #Una variable vacia que va a almacenar el Fasta leído
for Line in MyFile: #... | [
"juanenriqueztraba@gmail.com"
] | juanenriqueztraba@gmail.com |
3e3fb85fab836eb760653086cf3ecdb7a8ab1a66 | b75c3da63a9f6c6fbc37c6ccfa12578d93935624 | /leetcode/241. Different Ways to Add Parentheses/Python3/diff_ways.py | e3937693534511eb81a14b1075bdf327c461071e | [] | no_license | bryand1/solutions | ce5b09b14b73bd6da214eac159af7d4439cdd6dd | 319741d720e1f0bb1b94629df410de392cbc755c | refs/heads/master | 2021-07-09T08:39:45.301754 | 2019-03-01T16:31:36 | 2019-03-01T16:31:36 | 144,401,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from operator import add, sub, mul
op = {'+': add, '-': sub, '*': mul}
class Solution:
def diffWaysToCompute(self, expr):
"""
:type input: str
:rtype: List[int]
"""
arr = self.parse(expr)
return self.diffWaysToComputeRec(arr, 0, len(arr))
def diffWaysToComputeR... | [
"bryand1@gmail.com"
] | bryand1@gmail.com |
c52e35b3ac6d4beb8a90ab36aef6698e7deb2c12 | 4c3e992678341ccaa1d4d14e97dac2e0682026d1 | /addons/purchase/models/stock_config_settings.py | f07bb2fa1319b3603ec86c3a653f03c531b9923b | [] | no_license | gahan-corporation/wyatt | 3a6add8f8f815bd26643e1e7c81aea024945130d | 77e56da362bec56f13bf0abc9f8cf13e98461111 | refs/heads/master | 2021-09-03T18:56:15.726392 | 2018-01-08T02:54:47 | 2018-01-08T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from gerp import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
po_lead = fields.Float(related='company_id.po_lead')
use_po_lead = fields.Boolean(
... | [
"duchess@gahan-corporation.com"
] | duchess@gahan-corporation.com |
a710d37abf1d105c4e455d43f64b6efdd6cb4977 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_SNMP_V2_Continue_Walking.py | 566d4e7bb980151a16a79e016fed8da87f2030ed | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,449 | py | '''
Continue walking via SNMP V2
Continue walking nodes many times, can get information correctly.
1. Continue walking system objects 50 times via SNMP V2, compare the information from SNMP and CLI.
expect result: All steps should result properly.
How to:
1) Get system information ... | [
"tan@xx.com"
] | tan@xx.com |
f25a5e76793f59ea45d4b523e92b6a9ead54cdd7 | b424a13f032d5a607e6df4dd78bc47ad1d06a147 | /scipy/sparse/extract.py | 9cb83084601147f87f718d9cf00bf257abade13c | [] | no_license | EnjoyLifeFund/macSierra-py36-pkgs | 1e7eeb9b55415da6eb12465d67730d76e9cc619a | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | refs/heads/master | 2021-01-20T10:23:50.044019 | 2017-09-05T02:53:26 | 2017-09-05T02:53:26 | 90,333,987 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | ../../../../../Cellar/scipy/0.19.1_1/lib/python3.6/site-packages/scipy/sparse/extract.py | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
6d377d17ec1cfb614d0530853ef4216679d840c8 | c8781d3dc17202fcc1b5358475071c0a834c7f82 | /ShowAndSearch/__init__.py | 58b6fee75af3be485a88240f3e64ee1dfc0cc118 | [
"Apache-2.0"
] | permissive | guchengxi1994/show-and-search | 7b73d4a7a0250a0f70cf07b0de7695d6c8051545 | e955a6677f3cd23b1f7ed247e828a5852ec6ab20 | refs/heads/master | 2022-12-22T06:28:36.601500 | 2020-09-22T05:17:14 | 2020-09-22T05:17:14 | 295,630,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | '''
lanhuage: python
Descripttion:
version: beta
Author: xiaoshuyui
Date: 2020-09-15 13:53:11
LastEditors: xiaoshuyui
LastEditTime: 2020-09-22 11:20:14
'''
__version__ = '0.0.0'
__appname__ = 'show and search'
| [
"528490652@qq.com"
] | 528490652@qq.com |
a83539222531d53944838325e21dc6f020e934e1 | 4edc95b0e9f739c5faa29704d8d0fe31d6074114 | /0x0F-python-object_relational_mapping/7-model_state_fetch_all.py | 52c794399d96e997e84932ac6d2b888beb5f6f22 | [] | no_license | Caroll1889/holbertonschool-higher_level_programming | 47a78074af5ec93f2e4bcf0cfb0579fb0f12c441 | f3c222c101e05bf5876951fc7a2566f3ce0ff7e6 | refs/heads/master | 2020-07-22T22:51:35.948398 | 2020-02-14T16:35:29 | 2020-02-14T16:35:29 | 207,356,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/python3
""" """
from sys import argv
from model_state import Base, State
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import sqlalchemy
if __name__ == "__main__":
en = create_engine('mysql+mysqldb://{}:{}@localhost/{}'.format(argv[1],
... | [
"diahancaroll@hotmail.com"
] | diahancaroll@hotmail.com |
bbaaec7298b66a183a83e952cd94bf42b7c78062 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/jedi/api/project.py | eed8f3f9954ee61c107899d3452f6b026bed0a75 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 6,235 | py | import os
import json
from jedi._compatibility import FileNotFoundError, NotADirectoryError
from jedi.api.environment import SameEnvironment, \
get_cached_default_environment
from jedi.api.exceptions import WrongVersion
from jedi._compatibility import force_unicode
from jedi.evaluate.sys_path import discover_build... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
2f6935ac11ea708cd225be988e352fdc29e40119 | b5313b8442b26e4a54172e55eb84d501ee4cae12 | /run.py | 783d9038c8e358e77f451405fc4d41584bbd6c56 | [
"MIT"
] | permissive | summeraz/ljmc | bca23b37c29847ebb9a763146e9f67fb32843912 | 207326f61d6be4063d06dfc2df6fb1f61dd57e27 | refs/heads/master | 2020-03-20T06:10:31.396309 | 2018-06-13T22:49:39 | 2018-06-13T22:49:39 | 137,241,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | from __future__ import division
import pyximport; pyximport.install()
from forcefield import *
from mc import *
from system import *
from utils import *
### Define Lennard-Jones Parameters ###
sigma = 1.0
epsilon = 1.0
cutoff = 2.5
### Define System Parameters ###
n_particles = 125
number_density = 0.5
### Define... | [
"andrew.z.summers@gmail.com"
] | andrew.z.summers@gmail.com |
95e1a0cfc755b266419200defd030c1fe6f9f3bb | 0566cf76b456518875edecece15e763a36a4795f | /scrapers/megafilmeshd21_net.py | 79e1c527816b062bae23ffbd86c1a90255b460d7 | [] | no_license | theclonedude/Scraping_BeautifulSoup_phantomjs | 684b1f7a993e0d2555daa7a5455cf19bd29b0b1b | faf653feae46c21a72d13b2123cdebdb2f7c05d8 | refs/heads/master | 2023-03-16T19:36:14.867361 | 2018-06-14T14:21:02 | 2018-06-14T14:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | # coding=utf-8
from sandcrawler.scraper import ScraperBase, SimpleScraperBase
class Megafilmeshd21Net(SimpleScraperBase):
BASE_URL = 'http://megafilmeshd21.net'
OTHER_URLS = ['http://maxfilmesonline.net']
SCRAPER_TYPES = [ ScraperBase.SCRAPER_TYPE_OSP, ]
LANGUAGE = 'por'
MEDIA_TYPES = [ ScraperBas... | [
"stryokka@gmail.com"
] | stryokka@gmail.com |
c24872cd28d1af12915e4db50558f458d2ddbe15 | 9af204535dfc39d5c9a2dc4e2daf538cb2454caf | /src/tasks/shapes/parameters.py | e9f86a6d13a821edc1beebb17b97b1a42a49e26f | [] | no_license | kevinyu/reimagined-robot | c94f51e1b025dc3636a40b06cf8d914238596f9e | 970e451a70b43d1cd7ac7f8f3700ea8e9eb88aa3 | refs/heads/master | 2021-01-20T15:57:41.095221 | 2017-05-24T01:40:25 | 2017-05-24T01:40:51 | 90,803,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | import os
import numpy as np
import theano
import theano.tensor as T
import config
from utils import float_x
from utils.complex import ComplexTuple
from shapes.properties import properties
from shapes.objects import shapes
if os.path.exists(os.path.join(config.SAVE_DIR, "S0.npy")):
S0_array = np.load(os.path.j... | [
"thekevinyu@gmail.com"
] | thekevinyu@gmail.com |
ca1fc2d69082f42093ba01898f4e9cbfde8dba16 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/identity_constraint/id_l051_xsd/__init__.py | 5f14f91fccf3bc1c1eb8c2330c525ca13b8ee553 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 135 | py | from output.models.ms_data.identity_constraint.id_l051_xsd.id_l051 import (
Root,
Uid,
)
__all__ = [
"Root",
"Uid",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
3f96a324be5d36b890aa2e0eb8f0d22f9106d7b3 | 03195206540b44d74f86801c5e58b2b731c863bf | /pi/mission_control/debile/pousse_feu.py | 0c57edb5ec2e019d69a3560ce3287b3d729de533 | [] | no_license | clement91190/eurobot | 7f242f15b966216ef81d4851c338493ccf056c26 | e61c9b3a32c1ee1417d807be6c4f97032a7e55a6 | refs/heads/master | 2021-01-25T09:53:38.517607 | 2014-05-30T09:16:40 | 2014-05-30T09:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | from mission_control.mission import Mission, SuccessOut, FailOut
from utils.coord import Coord
from mae_generator.mae import MAE, InitState, debugger
def get_mission(com_state_factory):
#raise NotImplementedError(" mission non codee")
return Mission(" pousse_feu ", Coord(-800, 600, 180), MAEPousseFeu(com_stat... | [
"clem.jambou@gmail.com"
] | clem.jambou@gmail.com |
c08a65cd4eaa895be6579ac952edbbb1cfd00cc9 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/kindergarten-garden/d338583c2ba84654b20ddcf61ff29827.py | c739d565e7f3e97d21da436f3a80d769200473d7 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 961 | py | from collections import defaultdict, deque
from typing import Dict, Iterable, List
PLANTS = {
'R': 'Radishes',
'C': 'Clover',
'G': 'Grass',
'V': 'Violets',
}
STUDENTS = (
'Alice', 'Bob', 'Charlie', 'David',
'Eve', 'Fred', 'Ginny', 'Harriet',
'Ileana', 'Joseph', 'Kincaid', 'Larry'
)
class... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
c31badd4543416eb333ff1a8f62aac8c166188c5 | f94f9ddd8f7ec105161366461275f16b325d9c3e | /l2hmc-qcd/train.py | d9568bd70244bddda72a9c96ba1f88273e2b46d6 | [
"Apache-2.0"
] | permissive | FigTop/l2hmc-qcd | da086545b94f5ff2da835b0f2c440e077a28e15a | 0003da4f6c76172a27dbdec223393ce04cf73805 | refs/heads/master | 2023-04-21T21:20:43.724346 | 2021-05-22T19:28:21 | 2021-05-22T19:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,794 | py | """
train.py
Train 2D U(1) model using eager execution in tensorflow.
"""
# noqa: E402, F401
# pylint:disable=wrong-import-position,invalid-name, unused-import,
# pylint: disable=ungrouped-imports
from __future__ import absolute_import, division, print_function
import os
import json
import contextlib
import logging
i... | [
"saforem2@gmail.com"
] | saforem2@gmail.com |
9a8dd15216b814300933712ca28aed2bceba2f40 | 743d58c35caf21568feddc86946bbee340174721 | /app_spider/dongfangtoutiao_send_like.py | 88afa08afc11daba8347a0ec38d8c384283f4ee4 | [] | no_license | klgentle/lc_python | 38009ed82614c8f21ca9af6e3779a2e0898af09f | aabe56e690b40e4b93afef99bfe46d9a06e20cea | refs/heads/master | 2022-12-02T05:23:55.585659 | 2022-08-07T12:11:38 | 2022-08-07T12:11:38 | 176,750,473 | 2 | 0 | null | 2022-11-15T23:42:06 | 2019-03-20T14:21:51 | Python | UTF-8 | Python | false | false | 17,563 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: xag
@license: Apache Licence
@contact: xinganguo@gmail.com
@site: http://www.xingag.top
@software: PyCharm
@file: 东方头条.py
@time: 2/8/19 16:56
@description:东方头条新闻客户端
"""
__author__ = "xingag"
from airtest.core.api import *
from poco.exc... | [
"klgentle@sina.com"
] | klgentle@sina.com |
325cc25af1d6dc78baf0a0a9ddce7df6d98af533 | a2cf2e8e5bf2c5604071c22356fb94bb5e6bcc13 | /190820/working_order.py | 641f5dafc8ca37db1be143ba119f97f4bfa232db | [] | no_license | baambox5/algorithm | a9a3b05d1e87c6bf713aca1770ea1a2e0c728120 | ce28170db4277faaabbc4a06602aafab1a1129a3 | refs/heads/master | 2020-09-01T11:19:17.484337 | 2019-12-19T12:45:29 | 2019-12-19T12:45:29 | 218,948,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import sys
sys.stdin = open('working_order.txt', 'r')
# for test_case in range(1, 11):
# V, E = tuple(map(int, input().split()))
# G = [[] for _ in range(V + 1)]
# condition = [0] * (V + 1)
# visit = [0] * (V + 1)
# arr = list(map(int, input().split()))
# stack_list = []
# for i in range(le... | [
"baamboxo@gmail.com"
] | baamboxo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.