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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
535268bab86addff45ad4349f708df0310b4627d | d5c1f39f619e49be02238bbd9c327103ee0c6199 | /vai/plugins/commands/Time/Time.py | 4ed8dc22387aae6b3ff5563e24423513b64af622 | [] | no_license | CRY-D/vai | 520d35ef1b32de2e4058f64a73cd1b9da9b2e313 | 7e6981690209e8ccd9a6e6f64d2f2a6c7426ef3f | refs/heads/master | 2023-07-06T18:24:43.884669 | 2021-07-20T09:40:48 | 2021-07-20T09:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from vai import sdk
import time
class TimePlugin(sdk.CommandPlugin):
def name(self):
"""
To be reimplement in the plugin
"""
return "Time"
def keyword(self):
return "time"
def execute(self, command_line):
sdk.statusBar().setMessage(time.asctime(), 3000)
| [
"stefano.borini@gmail.com"
] | stefano.borini@gmail.com |
3933ec1fd97d722f5292bc31f1a94483cfcf3809 | 1fdc846f4e5b7bda56e8740b859c8340d9b5141a | /sfepy/fem/region.py | 4984860518fb2a1df5196debf2fd39474ed6f272 | [
"BSD-3-Clause"
] | permissive | olivierverdier/sfepy | b824fdab7d91e137a371c277901fbb807b316b02 | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | refs/heads/master | 2021-01-18T05:39:13.127137 | 2010-10-25T13:13:18 | 2010-10-25T17:31:37 | 1,022,869 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,130 | py | from sfepy.base.base import *
_depends = re.compile( 'r\.([a-zA-Z_0-9]+)' ).findall
def get_parents(selector):
"""Given a region selector, return names of regions it is based on."""
parents = _depends(selector)
return parents
def get_dependency_graph(region_defs):
"""Return a dependency graph and a ... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
11c869ecd5e826427cc7d523ecdbb29f056a4b97 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /tests/test_summary_ranges.py | c75bf5a290b7f94b3f204aa5c8f8d1d2a2f4a90a | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 329 | py | import pytest
from puzzles.summary_ranges import summary_ranges
@pytest.mark.parametrize(
"nums, expected",
[
([0, 1, 2, 4, 5, 7], ["0->2", "4->5", "7"]),
([0, 2, 3, 4, 6, 8, 9], ["0", "2->4", "6", "8->9"]),
],
)
def test_summary_ranges(nums, expected):
assert summary_ranges(nums) == ... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
a6ba03e0e4a8062c8b63455aa01e52a7f24e0db4 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/plotting/_core.py | 17f6b990ba84c33027e706bda6f9149466ab80d2 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,368 | py | import importlib
from pandas._config import get_option
from pandas.core.base import PandasObject
from pandas.core.dtypes.common import is_integer, is_list_like
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
from pandas.util._decorators import Appender, Substitution
def hist_series(
self,
... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
1252894bbc2a8443c571bc7d8c3dfc7f34290c28 | fafde4b09e56cadbe893c09ae1dfb52a745ae45a | /0x03-python-data_structures/0-print_list_integer.py | 72437fda223c519c834d47e5b084b819c6cca790 | [] | no_license | MCavigli/holbertonschool-higher_level_programming | 2120c6c3018c86215d221c6fffec1957ca1d0f48 | c3408521683f03214813839b7eed03fee083081e | refs/heads/master | 2022-07-12T20:59:12.732979 | 2022-06-17T05:21:01 | 2022-06-17T05:21:01 | 461,013,788 | 3 | 7 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | #!/usr/bin/python3
def print_list_integer(my_list=[]):
for i in my_list:
print('{:d}'.format(i))
| [
"mcavigli@gmail.com"
] | mcavigli@gmail.com |
accc82f441ea51a73813ec2cb7dbc086e252d603 | cf9494e7953c91d786e003bfbcd9f6ad93126c7f | /widgets_entry2.py | 4879d321a74e5d54581585dbc09c16bb798c330e | [] | no_license | utisz86/TkinterTutorial | 7fd318e631f6e1a858083c3c157fa68a60bcc85a | 32030494ac3035d442a432bf6b389b6ff7e1c537 | refs/heads/master | 2022-11-26T06:36:47.959218 | 2020-07-07T22:10:33 | 2020-07-07T22:10:33 | 277,841,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import tkinter as tk
window = tk.Tk()
# create a Label and an Entry widget
label = tk.Label(text="Name")
entry = tk.Entry()
# visible
label.pack()
entry.pack()
entry.insert(0,"mi?")
name = entry.get()
print(name)
window.mainloop() | [
"soma.kormanik@outlook.com"
] | soma.kormanik@outlook.com |
45aca59783a82f8aebeef1769d251a6c7c1aea2f | 1186e0f758d930960aeb5319200ca50e09ff1d35 | /build/lib/cplvm/lm.py | 5d6ea254cd9fc48a55c71f271f202ac3c7edc685 | [
"MIT"
] | permissive | ethanweinberger/cplvm | c182ee3a960f20ce2975cec5492ec5b1f434dd71 | f4bbcfc4b2e9a9cec7d01eb5f7ff3a169d6e3ff6 | refs/heads/main | 2023-06-17T15:23:15.604291 | 2021-07-07T12:04:57 | 2021-07-07T12:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,771 | py | import functools
import warnings
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import tensorflow.compat.v2 as tf
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
from tensorflow_probability import bijectors as tfb
from scipy.stats import multiv... | [
"ajones788@gmail.com"
] | ajones788@gmail.com |
53bbaf0c1927f1dd6a655edc347f5f068614c4fe | a4681043cb56a9ab45be32a62fa9700b391f087f | /14-Statistics_with_Python/Histograms/Finding_your_Best_Bin_Size.py | ee5208c7421bb08d3d728fd281c28ccc5c4509db | [] | no_license | MarceloDL-A/Python | b16b221ae4355b6323092d069bf83d1d142b9975 | c091446ae0089f03ffbdc47b3a6901f4fa2a25fb | refs/heads/main | 2023-01-01T02:29:31.591861 | 2020-10-27T19:04:11 | 2020-10-27T19:04:11 | 301,565,957 | 0 | 0 | null | 2020-10-27T19:04:12 | 2020-10-05T23:41:30 | Python | MacCentralEurope | Python | false | false | 1,976 | py | """
HISTOGRAMS
Finding your Best Bin Size
The figure below displays the graph that you created in the last exercise:
Histogram
This histogram is helpful for our store manager. The last six hours of the day are the busiest ó from 6 pm until midnight. Does this mean the manager should staff their grocery store with the ... | [
"marcelo.delmondes.lima@usp.br"
] | marcelo.delmondes.lima@usp.br |
0f0685f8137ae113e06f7428ee41f7d757b0a252 | 15bfc574ae99ea02f10c1f549136bd9951f399cd | /articles/views.py | f5c3eaddddb2e91b794b65638563c13318ad1b73 | [] | no_license | dimka1993kh/Dj_HW_5.3 | a2b9a197729eb26fd4e6d3b4872b754542bd8c07 | e891370b4cb740fd1bf44e19e27a17021a65f99c | refs/heads/master | 2023-04-15T01:54:24.943214 | 2021-05-03T18:44:02 | 2021-05-03T18:44:02 | 364,027,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.views.generic import ListView
from django.shortcuts import render
from .models import Article
def articles_list(request):
template_name = 'articles/news.html'
news = Article.objects.all().select_related('author', 'genre').defer('author__phone')
# news = Article.objects.all()
context = {... | [
"dimka1993kh@gmail.com"
] | dimka1993kh@gmail.com |
5f58ecef0b8e82fcead874e63f358470565ad618 | c5bfc4509bedafe822691bbb3eb927e1fdd6daef | /ProblemSet5/Coordinate.py | 0d75033313b8a1597c52bb185feea8efdae00559 | [] | no_license | BMariscal/MITx-6.00.1x | 046f9891dcdc9c5fabf0543a01434a1304a7db9d | 37951478f41f9f2e00bb2e1ec12ccbafb4ab8e78 | refs/heads/master | 2021-06-19T09:08:56.827010 | 2017-07-16T08:10:26 | 2017-07-16T08:10:26 | 82,771,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | """Your task is to define the following two methods for the Coordinate class:
1.Add an __eq__ method that returns True if coordinates refer to same point in
the plane (i.e., have the same x and y coordinate).
2.Define __repr__, a special method that returns a string that looks like a valid
Python ex... | [
"BriceidaMariscal@gmail.com"
] | BriceidaMariscal@gmail.com |
f6613b94c9e9d8ee741d57e5cd2f3e1165564490 | f4f181f2c970a163801b4202fc8d6c92a4e8113d | /google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/ssh_utils.py | f61e082ca4e2e06461cb227e69749734f27b9406 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Sorsly/subtle | 7732a6cb910f5e2f4eed1ac0d3b5979001582340 | 718e79a3e04f1f57f39b6ebe90dec9e028e88d40 | refs/heads/master | 2021-05-24T01:21:39.218495 | 2017-10-28T01:33:58 | 2017-10-28T01:33:58 | 83,103,372 | 0 | 1 | MIT | 2020-07-25T11:21:05 | 2017-02-25T03:33:07 | Python | UTF-8 | Python | false | false | 23,694 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"han300@purdue.edu"
] | han300@purdue.edu |
f047b7e7e7ffeddbf2f1357674c44aee7ab8d35a | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/datasetup_20210414102701.py | 67abb47540226e9e7256dd767a367bdddaf1b16d | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pandas as pd
import cv2
import os
import glob
from pathlib import Path
def cleanTestDirs():
emotions = ['angry', 'happy', 'disgust', 'sad', 'neutral', 'surprise', 'fear']
for e in emotions:
... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
be6f744ed74a9d985bf2d457c64dc8a20447b721 | 543e4a93fd94a1ebcadb7ba9bd8b1f3afd3a12b8 | /maza/modules/creds/cameras/sentry360/ftp_default_creds.py | 36767e634607918cc0d8f56a5cba7e413c92d652 | [
"MIT"
] | permissive | ArturSpirin/maza | e3127f07b90034f08ff294cc4afcad239bb6a6c3 | 56ae6325c08bcedd22c57b9fe11b58f1b38314ca | refs/heads/master | 2020-04-10T16:24:47.245172 | 2018-12-11T07:13:15 | 2018-12-11T07:13:15 | 161,144,181 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from maza.core.exploit import *
from maza.modules.creds.generic.ftp_default import Exploit as FTPDefault
class Exploit(FTPDefault):
__info__ = {
"name": "Sentry360 Camera Default FTP Creds",
"description": "Module performs dictionary attack against Sentry360 Camera FTP service. "
... | [
"a.spirin@hotmail.com"
] | a.spirin@hotmail.com |
2aa88315ba210081a02274e09c7e59726276c367 | e4bceb499098281253f01f93d5c4f11284febf2e | /wakeup.py | 71ff96919c980606a2c9ddd0ded586b253c131a3 | [] | no_license | Hemie143/gc_mysteries | d2a0a363767128bd599e079a1fab01822986d7e9 | d26cf036f20f13d9a6c314000b7531e2f21d4d5e | refs/heads/master | 2021-09-15T11:25:23.775079 | 2018-05-31T11:38:08 | 2018-05-31T11:38:08 | 125,210,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import requests
import filecmp
import os
import time
import datetime
'''
curl
-A "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
-e http://geocachewakeup.byethost7.com/?ckattempt=1
-b "__test=a7f64c693f5755629af2d2c71aa06d2a;referrer="
-o wakeup%TS%.png
-H "C... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
fb0ad1f1480d6d4839f0c76a440b978b0e071368 | 7c9f28e371e8dfa9290c05a48a9d924484b4b18c | /rgn.py | 3a668bd7122d3cbb93110cc8b215dd74a2e7f72c | [] | no_license | Pavithralakshmi/corekata | 1f9d963da44a6fdcdedaf2e39452545f6cc52e9b | 06d1c7bba25681ce12e2ab93ce461228afb6b984 | refs/heads/master | 2021-04-30T01:53:37.414318 | 2018-10-11T17:58:39 | 2018-10-11T17:58:39 | 121,491,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | def sum_digits(n):
ss = 0
while n:
ss += n % 10
n //= 10
return ss
| [
"noreply@github.com"
] | Pavithralakshmi.noreply@github.com |
8cdd706344dff0e13cfd77f5b6b4f98005a35c96 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /bBExn57vLEsXgHC5m_13.py | a75afd38204a17adcd9211e34c8b31be9e80d941 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
def same_line(lst):
try:
return (lst[1][1] - lst[0][1]) / (lst[1][0] - lst[0][0]) == (lst[2][1] - lst[1][1]) / (lst[2][0] - lst[1][0])
except:
return lst[0][0] == 0 and lst[1][0] == 0 and lst[2][0] == 0
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e2e902fe476469280d8f67738cf676ce097be6c5 | 48290f34b95013e1d25b98a73fdd8f879c4b5b7a | /login-register.py | 06cfab88082c20f8d6c6d00093327aba2e0b705b | [] | no_license | anmolrajaroraa/core-python-july | 584a3b055c39140b8c79c1158b366f8bdc4a015d | 0fada23d8d969e548dadb6b9935aff1429f13a64 | refs/heads/master | 2022-12-15T23:17:19.786059 | 2020-09-13T17:37:51 | 2020-09-13T17:37:51 | 278,815,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import csv
# comma separated values
print('''
1. Login
2. Register
''')
choice = int(input("Enter choice: "))
# if choice == 1:
# isLoginSuccessful = False
# usernameOrEmail = input("Enter username/email: ")
# password = input("Enter password: ")
# with open("users.csv") as fileStream:
# read... | [
"anmolarora1711@gmail.com"
] | anmolarora1711@gmail.com |
330a65e3a647bee90a48d3f323e928e718b549f5 | 1dc67a30f9af553243088668d51bc4e75e87d83d | /python/dazhewan/day19/打着玩/super_init.py | c76074a2ffcc59ce4d27de7f348f85e81ddb37c5 | [] | no_license | houyinhu/AID1812 | 00db45b3e8905bd069b31f2e7689f83bca3fa61f | 8eeb9f06ed9f4e742d480354ef0e336dfe8c2f17 | refs/heads/master | 2020-04-27T16:33:57.275890 | 2019-04-10T01:09:51 | 2019-04-10T01:09:51 | 174,486,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | #super_init.py
#此示例示意,用super函数显示调用基类__init__初始化方法
class Human:
def __init__(self,n,a):
self.name = n
self.age = a
print("Human的__init__方法被调用")
def infos(self):
print('姓名:',self.name)
print('年龄:',self.age)
class Student(Human):
def __init__(self,n,a,s=... | [
"ahu@163.com"
] | ahu@163.com |
a456e19cd9296ebd7f72cb740ff6165d5b72db52 | 1384435f0e0cf706db82d0672d5fe9e3bc0cf5a8 | /agilo/ticket/tests/workflow_test.py | 4fc84cd6f5053468c692e14cb4e4a51a6219361f | [] | no_license | djangsters/agilo | 1e85d776ab4ec2fa67a6366e72206bbad2930226 | 1059b76554363004887b2a60953957f413b80bb0 | refs/heads/master | 2016-09-05T12:16:51.476308 | 2013-12-18T21:19:09 | 2013-12-18T21:19:09 | 15,294,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,979 | py | # -*- encoding: utf-8 -*-
# Copyright 2009 Agile42 GmbH, Berlin (Germany)
# Copyright 2011 Agilo Software GmbH 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
#
... | [
"bastir@gmail.com"
] | bastir@gmail.com |
0a3a0097b6cf311e49d6da4a0de4b7ef22c3ab65 | dff749b6652cc6b5ba804d491b3c981f2a9599e1 | /pytests/cbas/cbas_dcp_state.py | 03a677fa6579ceeecb3c6325aff0a53bb9c2c7d1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pavithra-mahamani/TAF | 7c6f40beee7fb14f28f7016a246c49d3e728b938 | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | refs/heads/master | 2020-07-29T01:18:56.807783 | 2019-09-20T22:51:50 | 2019-09-20T22:51:50 | 209,612,844 | 0 | 0 | Apache-2.0 | 2019-09-19T17:35:20 | 2019-09-19T17:35:20 | null | UTF-8 | Python | false | false | 15,424 | py | import time
import json
from cbas.cbas_base import CBASBaseTest
from remote.remote_util import RemoteMachineShellConnection
from couchbase_helper.tuq_generators import JsonGenerator
class CBASDCPState(CBASBaseTest):
def setUp(self):
super(CBASDCPState, self).setUp()
self.log.info("Establish rem... | [
"ritesh.agarwal@couchbase.com"
] | ritesh.agarwal@couchbase.com |
f137634b0821b9597b08027552f1db74ad9bc5dc | 9508ccf2802becb4d19dd049b3496cf19d5f7b15 | /tensorflow_probability/python/mcmc/internal/leapfrog_integrator_test.py | 6ff15635b716756dbc78a4c7c242e3ac27e9390a | [
"Apache-2.0"
] | permissive | etarakci-hvl/probability | e89485968e4660050424944b0ffdbbf617533fe4 | 7a0ce5e5beff91051028258dfbc7bc6cf0c4998d | refs/heads/master | 2020-11-25T20:39:53.290761 | 2019-12-18T02:13:04 | 2019-12-18T02:14:04 | 228,835,497 | 1 | 0 | Apache-2.0 | 2019-12-18T12:27:56 | 2019-12-18T12:27:56 | null | UTF-8 | Python | false | false | 3,873 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
23df7434ab536aa03632fc11bee9095c7e4d847e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/64/usersdata/208/37039/submittedfiles/atm.py | fffc892d1e1eeab4114a3f231991c77f9faa11fd | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # -*- coding: utf-8 -*-
v=int(input('digite o valor que deseja sacar:'))
n1=v//20
n2=(v%20)//10
n3=((v%20)%10)//5
n4=(((v%20)%10)%5//2
n5=((((v%20)%10)%5)%2)//1
print('%d'%n1)
print('%d'%n2)
print('%d'%n3)
print('%d'%n4)
print('%d'%n5) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2f52aaac7e20119310401c3ba628d0ea489c2a5b | 0845b9e00b0046c409eff2b55c835c331190a2dc | /Example_code/bullets.py | 9f4598ab62b9538ba20843eecbbaf22de1f1f74d | [] | no_license | crazcalm/Learn_Pygame | edba44f4ff89add764ee3f6b2558172465f9cc26 | e93c482fb9eb392912627855b11ff2c36c22a191 | refs/heads/master | 2020-04-05T22:56:29.928626 | 2014-09-27T07:08:29 | 2014-09-27T07:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | """
Show how to fire bullets.
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
Explanation video: http://youtu.be/PpdJjaiLX6A
"""
import pygame
import random
# Define some colors
BLACK = ( 0, 0, 0)
WHITE = ( 255, 2... | [
"crazcalm@gmail.com"
] | crazcalm@gmail.com |
047b96b5f23a5f677481e75436be67e963f16f40 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /scripts/mastersort/scripts_dir/p7542_run2L4.py | d95b7a8dccc8565de88643a95318f55cc9b4a0c0 | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7542', 'run2L4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2727/E2727_e363504/s414724_1904_2L4_s23... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
d80cceffb15b6da1f32f7e511c4fb6433d8b362f | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003/W_w_M_to_C_pyr/pyr_6s/L3/step10_a.py | 33a90e07ba8ad4d1d18aa65e7efbaf7acd074ac4 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,406 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
259bd4310a5b596b737a9ccae5087953d99928ea | 74bc48ba64859a63855d204f1efd31eca47a223f | /Nature/9999.Reference_DataAugmentation.py | 6ab2dd8feba11d86b67d6f5132136efada9cf3c9 | [] | no_license | PraveenAdepu/kaggle_competitions | 4c53d71af12a615d5ee5f34e5857cbd0fac7bc3c | ed0111bcecbe5be4529a2a5be2ce4c6912729770 | refs/heads/master | 2020-09-02T15:29:51.885013 | 2020-04-09T01:50:55 | 2020-04-09T01:50:55 | 219,248,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,841 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 01 19:08:48 2017
@author: SriPrav
"""
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 09 20:02:03 2017
@author: SriPrav
"""
import numpy as np
np.random.seed(2016)
import os
import glob
import cv2
import datetime
import pandas as pd
import time
import warnings
warning... | [
"padepu@wesfarmers.com.au"
] | padepu@wesfarmers.com.au |
452bb4a716c3bd8adec7df2878cd13e873b5b57d | d75fbceb28ad14b07ae4057a8b23ec0bd3682628 | /code/chap08/ZombieMobGame.py | 1ca5ebc7b9173aa046b6f7eb320226cfc169fb42 | [] | no_license | wubinbai/pygame-book | 0707a0b36f41bc6f0b1282707e6c4f6cbed9c87a | 9de1f7516a2aec940ffa97f9686cc0520bad2deb | refs/heads/master | 2020-12-21T15:51:08.397619 | 2020-01-30T12:37:52 | 2020-01-30T12:37:52 | 236,478,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | # Zombie Mob Game
# Chapter 8
import itertools, sys, time, random, math, pygame
from pygame.locals import *
from MyLibrary import *
def calc_velocity(direction, vel=1.0):
velocity = Point(0,0)
if direction == 0: #north
velocity.y = -vel
elif direction == 2: #east
velocity.x = v... | [
"wubinbai@yahoo.com"
] | wubinbai@yahoo.com |
1d4abd406e5975787c37fe68fdc30ace92e9a531 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/pyexcel_20201111162515.py | eb28ae94c2e1ecfb48fe15a06c26ed612a6d0851 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from openpyxl import Workbook
from openpyxl.utils import get_column_letter
wb = Workbook()
dest_filename = 'empty_book.xlsx'
ws1 = wb.active
ws1.title = "range names"
for row in range(1, 40):
ws1.append(range(600))
ws2 = wb.create_sheet(title="Pi")
ws2['F5'] = 3.14
ws3 = wb.create_sheet(title="Data")
for row ... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
318b865387216d39ed0bd4472857241446accb5c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02390/s595695585.py | 37891011aec61d584d08c47440668ca2b1330dfd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | s = int(input())
min = int(s/60)
sec = s%60
hour = int(min/60)
min = min%60
print("{0}:{1}:{2}".format(hour, min, sec)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d14ec836cc015536b3f4fbbea3e42722d329fe10 | fc276597c51509a13bf2c622c91123eb4987d6b2 | /setup.py | d45a7fa220a59b4a2f456f2596709f0d4c052620 | [
"Apache-2.0"
] | permissive | zaquestion/requests-mv-integrations | df1150b0efb8bf4d97979e8ed3499737d98fa16d | b8f3332c1cd564ef106e725e0ee3436913fa8e19 | refs/heads/master | 2020-06-29T11:12:30.990262 | 2016-11-22T01:56:56 | 2016-11-22T01:56:56 | 74,429,832 | 0 | 0 | null | 2016-12-06T18:57:52 | 2016-11-22T03:21:53 | Python | UTF-8 | Python | false | false | 2,180 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @namespace pycountry-convert
from __future__ import with_statement
# To install the tune-mv-integration-python library, open a Terminal shell,
# then run this file by typing:
#
# python setup.py install
#
import sys
import re
from setuptools import setup
REQUIREMENT... | [
"jefft@tune.com"
] | jefft@tune.com |
81146b5b73fa9c515a476c8bf531f60c1e4b6b89 | a8289cb7273245e7ec1e6079c7f266db4d38c03f | /Anthony_Flask_Tutorials/Flask_GETAPI/run.py | 4b5fb6680b2b2838fcc12f2b4cce3d759ec957a0 | [] | no_license | palmarytech/Python_Snippet | 6acbd572d939bc9d5d765800f35a0204bc044708 | 41b4ebe15509d166c82edd23b713a1f3bf0458c5 | refs/heads/master | 2022-10-06T22:51:00.469383 | 2020-03-13T08:32:11 | 2020-03-13T08:32:11 | 272,350,189 | 1 | 0 | null | 2020-06-15T05:30:44 | 2020-06-15T05:30:44 | null | UTF-8 | Python | false | false | 617 | py | from flask import Flask, jsonify, request
app = Flask(__name__)
languages = [{"name": "Javascript"}, {"name": "Python"}, {"name": "Ruby"}]
@app.route("/", methods=["GET"])
def test():
return jsonify({"message": "API works"})
@app.route("/languages", methods=["GET"])
def returnAll():
return jsonify({"languag... | [
"leamon.lee13@gmail.com"
] | leamon.lee13@gmail.com |
74107df377adab78ed6ad99a7cdafb3fe88dfef6 | a5016c90fb13caaf8ce4e2c48dc842017f195822 | /src/0008_StringToInteger.py | c800458b3678b28a95706de4e3e5ff1d26c81c80 | [] | no_license | lixinchn/LeetCode | c21efc2d715da637374871d36d3d183ea08b9c31 | 4060d525f007c10a3a55d874f7953a0a1d98c8fd | refs/heads/master | 2020-04-03T10:27:16.068777 | 2017-01-05T02:31:28 | 2017-01-05T02:31:28 | 50,000,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
ret_int = 0
negative = False
MAX_INT = 2147483647
MIN_INT = 2147483648
i = 0
for i in range(len(str)):
if str[i] == ' ' or str[i] == '\t':
... | [
"lixinit@gmail.com"
] | lixinit@gmail.com |
787e223f49a9ab2eeab5f45a7afcebfb8907c122 | 26e468e4f99ffc0ccd6da43c1ae9f363ec3010e6 | /msr.py | 32c9ecdd0dc265971335ef45b9e1bfc43fb7fe41 | [] | no_license | mtoqeerpk/rshalib | d86d36216fe9a4008a710af6c0e118c34c73dab4 | 9ef631ca3690c158693445a52d59c2583f8bd67e | refs/heads/master | 2023-01-28T00:25:14.992405 | 2020-12-10T09:16:41 | 2020-12-10T09:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | """
Magnitude scaling relations
"""
from __future__ import absolute_import, division, print_function, unicode_literals
try:
## Python 2
basestring
except:
## Python 3
basestring = str
__all__ = ['get_oq_msr']
def get_oq_msr(msr_or_name):
"""
Get OpenQuake magnitude scaling relationship ... | [
"kris.vanneste@oma.be"
] | kris.vanneste@oma.be |
6ec27707f06f70599fd009e6b1515054ddf675be | 029948b3fd0e41d80d66c84d808abff4fcb24ac8 | /dnac_api_client/models/response.py | 21c419cccc99217f50f5b75be892b1baee6f818a | [] | no_license | yijxiang/dnac-api-client | 842d1da9e156820942656b8f34342d52c96d3c37 | 256d016e2df8fc1b3fdad6e28f441c6005b43b07 | refs/heads/master | 2021-09-25T21:10:09.502447 | 2018-10-25T14:39:57 | 2018-10-25T14:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | # coding: utf-8
"""
Cisco DNA Center Platform v. 1.2.x (EFT)
REST API (EFT) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Response(object):
"""NOTE: This class is auto generated by OpenAPI Gen... | [
"cunningr@cisco.com"
] | cunningr@cisco.com |
34e474332837d41d7be8e3b1b8180a049fb43e1b | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/comparison/test_chart_layout02.py | 22e9a8e8599e84e984544c6755d61220a43f21fa | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 1,659 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
58c3c301b8c5ffe6496f032137b6c97b8eabbefb | 19a32440205b2caeec67c73c10d917b5fb30a86a | /isi_sdk/models/settings_notification_create_params.py | 55f76156fd70615ae7d5ef6ff537e1aba68c0417 | [
"Apache-2.0",
"MIT"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 9,762 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"Alex.Pecoraro@isilon.com"
] | Alex.Pecoraro@isilon.com |
490e341e942d8a60011545ea7657bda519f70f4e | ac32bac45df77083f4ef3115e747038a6753936c | /methods/stack/custom/adapters/layer_custom.py | e3220b5ba16f66f4e881fd6331e8a0efa9f0f191 | [] | no_license | Yujin-Yujin/rexpert | 13e1d5c4ca55664dd9fbb9a765ea5157a2e0893f | ed8628dc053194fee40e593b1cc5ec45a26c8073 | refs/heads/main | 2023-06-22T05:58:42.269923 | 2021-07-23T06:35:43 | 2021-07-23T06:35:43 | 373,423,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,825 | py | from abc import ABC, abstractmethod
from typing import List, Mapping, Union
import torch
from torch import nn
from transformers.adapters.composition import AdapterCompositionBlock, Fuse, Parallel, Split, Stack, parse_composition
from custom.adapters.modeling_custom import Adapter, BertFusion
class AdapterLayerBaseM... | [
"yujin000731@yonsei.ac.kr"
] | yujin000731@yonsei.ac.kr |
afbde06d9758d8f6cb99f0c165487171b932e4a9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03399/s459988463.py | c485ed9fa7f3a1cbfbac8d9420a062d84304b2e3 | [] | 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 | 181 | py | # 数値の取得
A = int(input())
B = int(input())
C = int(input())
D = int(input())
# 料金の最安値を出力
train = min(A,B)
bus = min(C,D)
tbsum = train + bus
print(tbsum) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f19b8be273679764a4d21955b4e6283bcba5d52c | 41e3065d6f29449251f1cc79cb340fa273ac5c61 | /0x11-python-network_1/4-hbtn_status.py | 9760dd4785428c240c719c71c1c380eb25f80b8c | [] | no_license | BD20171998/holbertonschool-higher_level_programming | 856fa3a7fcfafd3e17ebd7dd4cf9d3e5a609fd1f | bfa78d25bd4527e06cf1bf54cbc00722449d9a30 | refs/heads/master | 2021-07-16T01:58:42.911959 | 2020-11-15T07:18:19 | 2020-11-15T07:18:19 | 226,976,859 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/python3
import requests
if __name__ == "__main__":
html = requests.get('https://intranet.hbtn.io/status')
print("Body response:")
print("{}{}".format("\t- type: ", type(html.text)))
print("{}{}".format("\t- content: ", html.text))
| [
"robert.deprizio@gmail.com"
] | robert.deprizio@gmail.com |
be67b3d78dfe581cfe41e8bf0ac8acd188a3da8e | 2ad7e88305a7d2215a816e1aa3a82ef50b685b23 | /dshop/main/utilities.py | eacf75e1b907eea2ad161776d182389a5405e407 | [] | no_license | KeksikProg/shop_chairs | 5c9fb01f47676bb118fcc8161be1854e23271550 | 4bb09c409450cf2bb024c69d51d9f046520e9349 | refs/heads/master | 2023-06-26T17:21:27.678778 | 2020-08-06T16:28:29 | 2020-08-06T16:28:29 | 281,150,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | from datetime import datetime
from os.path import splitext
from django.template.loader import render_to_string
from django.core.signing import Signer # Это для цифровой подписи
from dshop.settings import ALLOWED_HOSTS
from django.dispatch import Signal
from django.db.models.signals import post_save
def get_timestamp_p... | [
"fvvfvfvf.vfvfvfv@yandex.ru"
] | fvvfvfvf.vfvfvfv@yandex.ru |
d676188c2588e84de56202458db7503191525a1e | 715966248566909e4e8978230b37458d031418c5 | /01.jumptopython/chap03/책/126-02.py | 9e55500f0b6a62346082cb03961b4920774aabf8 | [] | no_license | itminha123/jumptopython | 1101f4e065ce2f8e0a1c68bb818b14b562fc43d1 | 8b25ae84f795eab5e7bcfa609646a2736ac2a98f | refs/heads/master | 2021-09-19T08:29:33.686384 | 2018-07-25T18:59:55 | 2018-07-25T18:59:55 | 112,169,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | coffee=10
while True:
money=int(input("돈을 넣어 주세요:"))
if money== 300:
print("커피를 줍니다.")
coffee=coffee-1
elif money>300:
print("거스름돈 %d를 주고 커피를 줍니다."%(money-300))
coffee=coffee-1
else:
print("돈을 다시 돌려주고 커피를 주지 않습니다.")
print("남은 커피의 양은 %d개 입니다."%coffee)
i... | [
"itminha123@naver.com"
] | itminha123@naver.com |
408491e006322a62395f8c6b6a009ef13abe8b3c | c566ceb33bfea62f4be98dd2f9536deaee46ac3e | /api/utils/custom_exception.py | 27388bf098fb1fd47d3af3feec46065ce054813d | [] | no_license | Saviodiow95/wallet_test | 1ad0e8f1699803ecca0ebf8c6a96b10efea980a3 | 4c2bf80332458b39197de134e914af669bbcc355 | refs/heads/main | 2023-07-04T02:25:11.321675 | 2021-08-02T12:28:40 | 2021-08-02T12:28:40 | 390,503,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from rest_framework.exceptions import APIException
class InsufficientFundsException(APIException):
"""
Exceção criada para retornar uma mensagem quando não houver saldo de um ativo para realizar o resgate
"""
status_code = 304
default_detail = 'Não é possível realizar o Resgate, Saldo Insuficiente... | [
"saviodiowflamengo@gmail.com"
] | saviodiowflamengo@gmail.com |
fd0c93ec47ca70c94d9bc8e470186eac42081257 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_counselled.py | 4ca2e9c494bd4785c5c7bc4a66f6f1113eba6619 | [
"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 | 230 | py |
#calss header
class _COUNSELLED():
def __init__(self,):
self.name = "COUNSELLED"
self.definitions = counsel
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['counsel']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
52bad13f94b0f90846709fba274572fa370e643a | c085578abc19db18ee0766e1f9598d79a3acdbe1 | /18-4Sum/solution.py | c5448eab17a5a88cac8e2880a4fc80d1a1c7a04b | [
"MIT"
] | permissive | Tanych/CodeTracking | efb6245edc036d7edf85e960972c34d03b8c707a | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | refs/heads/master | 2020-05-21T17:40:10.105759 | 2016-10-09T18:20:42 | 2016-10-09T18:20:42 | 60,616,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | class Solution(object):
def nsum(self,nums,start,n,target):
nlen=len(nums)
res=[]
if nums[start]*n>target or target>nums[nlen-1]*n:
return res
for i in xrange(start,nlen-n+1):
if i>start and nums[i-1]==nums[i]:
continue
if ... | [
"ychtan@email.gwu.edu"
] | ychtan@email.gwu.edu |
0e10bb119dad92159c84d65e61fbe16a80bca333 | 10f0193389a161c447061d06a87c4fae8fc31bb5 | /huobi/model/orderupdatenew.py | 51c567837fd5cfda68b30d5a52efdf3ac769b7be | [
"Apache-2.0"
] | permissive | neosun100/huobi_Python | 1d9fca2c24673076516d582c263445c17626bd8e | 70b280f751e6159b76f0cc43251896a754c1b559 | refs/heads/master | 2021-01-14T16:47:30.471992 | 2020-02-24T08:45:40 | 2020-02-24T08:45:40 | 242,685,209 | 0 | 0 | Apache-2.0 | 2020-02-24T08:38:33 | 2020-02-24T08:38:32 | null | UTF-8 | Python | false | false | 2,896 | py | from huobi.model.constant import *
class OrderUpdateNew:
"""
The detail order information.
:member
match_id: The Match id for make order.
order_id: The order id.
symbol: The symbol, like "btcusdt".
state: The order state: submitted, partial-filled, cancelling, filled, canc... | [
"devin0thinking@gmail.com"
] | devin0thinking@gmail.com |
1ad8e97dd542ba0a2310670381e40b114cef0bc8 | cd67fbaec6ba71fdd10ac8dd23e034d7df706aa3 | /bootstrap/urls.py | 1db8a20ee1f67439cdb7324c6c4e7e6e93525396 | [] | no_license | ssyctlm/feb27 | 009310d09bc866d7432576d4a867b63591009cbb | 8c666cf584e1589d06be16ba8b1266cb27646f39 | refs/heads/master | 2020-04-25T15:16:55.957159 | 2019-03-19T13:41:07 | 2019-03-19T13:41:07 | 172,873,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.urls import path
from .views import (
index_view,
about_view,
services_view,
contact_view
)
# app_name = 'articles'
urlpatterns = [
path('',index_view,name='home'),
path('about',about_view,name = 'about'),
path('services',services_view,name = 'services'),
path('contact',cont... | [
"none"
] | none |
720efd4d9680f6c52878542ad045aff577e5aa38 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoBTag/Configuration/test/test_cfg.py | 7fc7d9770ab2228f60b31accaf28c59b6b4e80a7 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 843 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("GeometryTest")
process.load("Configuration.StandardSequences.Reconstruction_cff")
process.load("Configuration.StandardSequences.FakeConditions_cff")
process.load("Configuration.EventContent.EventContent_cff")
process.load("Configuration.StandardSequenc... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
f9348d48ee596bc1cd89fca043043b4b52b931d2 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/impairment/profile/accumulateandburst/accumulateandburst.py | 091ec9d83b6e627d30bda819aaea8952ba46111d | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 7,559 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
2582be4a1861d40ece795a0beb0a30470be1b7b5 | 1d49c3b135c04a58ca25fd9d8e7e073daa26ff51 | /steam/pipelines.py | cefa2f6f0193df72b56a0b20af253b1ae532b675 | [] | no_license | clioo/steam-scraping | 08dabb1968080e1951cc9a1dac0279865fa24e8f | 9f401e331dcecc51238fa1c52e9c6ffb4c6a483b | refs/heads/master | 2022-10-05T23:33:16.544375 | 2020-06-05T17:42:56 | 2020-06-05T17:42:56 | 269,166,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # -*- coding: utf-8 -*-
class SteamPipeline(object):
def process_item(self, item, spider):
return item
| [
"jesus_acosta1996@hotmail.com"
] | jesus_acosta1996@hotmail.com |
531a249844fca891544a673ad19ecb26f8145614 | 9cb43a47faef0d3f5c7a6986cb2b21a0a89b6972 | /file-operations-02/clonefootage.py | 5e3b060fc83ff787e47778f2f1c91a95909bb04b | [] | no_license | fsiddi/generic-tools | 3e0f2c7ecaf469dcb8f173e191cd7d891fff8bc6 | 432463ec468a695551d7093c4851d5248f1d7764 | refs/heads/master | 2021-03-12T19:56:53.373367 | 2013-01-13T14:17:15 | 2013-01-13T14:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import subprocess
import os
import shutil
FOLDER_SRC = "/Users/fsiddi/Desktop/clonefootage/footage_src"
FOLDER_DST = "/Users/fsiddi/Desktop/clonefootage/footage_dst"
for dirname, dirnames, filenames in os.walk(FOLDER_SRC):
for filename in filenames:
if "linear_hd" in dirname:
filename_src = os.path.join(dirnam... | [
"francesco.siddi@gmail.com"
] | francesco.siddi@gmail.com |
a2ac5030018622f024f8ca2435442ccd4f597f21 | 8ffc07a5240be5e6bb3106b20e11aee38cb8808a | /syloga/utils/symbols.py | aaf3a96c6a1d1b704aa3654833e56b44a3d8a098 | [
"MIT"
] | permissive | xaedes/python-symbolic-logic-to-gate | 315a242d2000123bf09ea15a439dc6437ea457cb | a0dc9be9e04290008cf709fac789d224ab8c14b0 | refs/heads/main | 2023-09-02T15:37:53.750722 | 2021-11-08T12:51:51 | 2021-11-08T12:51:51 | 425,550,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py |
from syloga.ast.core import Symbol
from syloga.ast.containers import Tuple
def symbols(string):
return Tuple(*map(Symbol,string.split(" ")))
| [
"xaedes@gmail.com"
] | xaedes@gmail.com |
fc6b16aacd2c5eb9924c98c120e85092a8d4ec26 | 233b2958c853dc57dfa5d54caddbc1520dcc35c8 | /ava/cmds/pod.py | 51fe03691017ccf91af0b199173ecdc252918607 | [] | no_license | eavatar/ava.node | 6295ac6ed5059ebcb6ce58ef6e75adf1bfa24ed7 | 71e3304d038634ef13f44d245c3838d276a275e6 | refs/heads/master | 2021-01-19T06:13:01.127585 | 2015-06-03T03:10:59 | 2015-06-03T03:10:59 | 33,645,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # -*- coding: utf-8 -*-
"""
Command for managing local pod directory.
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import os
import shutil
import click
from ava.runtime import environ
from .cli import cli
@cli.group()
def pod():
""" Pod manage... | [
"sam@eavatar.com"
] | sam@eavatar.com |
64765314abb3f1daa11e18f0f3f06465242daf37 | ed0ead8389adb7cd81ade57f972afea7de896ffc | /haffa/Badge.py | 14d280ec8b20140e125365d399cdae00e046556e | [] | no_license | rblack42/haffa | 4e55664e1274b9ceec25fdfbc4603a03592229c0 | 526814e4024c1289cb2a79115d173772c82b5a88 | refs/heads/master | 2022-11-18T14:00:52.443335 | 2020-07-12T13:28:55 | 2020-07-12T13:28:55 | 273,238,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | from svgelements import *
from Shapes import paths, boxes
from svgelements import Path
SVGDIR = "svg"
class Badge(object):
def __init__(self, height):
""" load shape and position data"""
print("Generating SVG file for height %d" % height)
self.paths = paths
self.boxes = boxes
... | [
"roie.black@gmail.com"
] | roie.black@gmail.com |
acb8348fecf068802da63c27c4edb3dfd4a38d12 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /test/test_i_ospfv3_neighbor_configuration.py | 63449143673653979dfb3179399a45495a40dc62 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
f7e0ca4f8faa4f0f72846a1c2ba9af5e5b7bac40 | 2f36dc886195b67fd6fe0de48984e0268b3e0d71 | /invoke_retry/code/src/zato/invoke_retry/__init__.py | 762926718385ed9c1c066b15d87f47485bebbe93 | [] | no_license | aek/zato-labs | 84d52b3d1eea515c91fa6e7d4a439af3ee35ca05 | 302e40b8825f8fba5e3ea065280af742904fb25b | refs/heads/master | 2020-12-26T08:17:38.664195 | 2014-02-16T21:30:27 | 2014-02-16T21:30:27 | 16,894,545 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,393 | py | # -*- coding: utf-8 -*-
"""
Copyright (C) 2013 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
# stdlib
from traceback import format_exc
# anyjson
from anyjson import dumps, loads
# bunch
from bunch import Bunch
# gevent
from gevent import sleep, spawn, spa... | [
"dsuch-github@gefira.pl"
] | dsuch-github@gefira.pl |
0030fcf22dbc77c896437faa18ec33a89a2f6c56 | 29625c33dc9642d984d7cf68763d57a9de62743e | /Bot/cogs/snipe.py | cd84e9a5d14d06e388ec6620f7a1eaee678360d7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | DevRKJha/EpicBot | 7fe508d828ad6cde087213cdd1fbb3a480529905 | 33eb8b7d5ee1120865da91b9a31dc559657c318c | refs/heads/main | 2023-06-07T14:12:26.975039 | 2021-07-04T09:51:53 | 2021-07-04T09:51:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | import discord
from discord.ext import commands
class Snipe(commands.Cog):
def __init__(self, client):
self.client = client
self.client.sniped_messages = {}
self.client.edit_sniped_messages = {}
@commands.Cog.listener()
async def on_message_delete(self, message):
if messag... | [
"hellonirlep@gmail.com"
] | hellonirlep@gmail.com |
bdc0e3f4bf90ef80c3e1cbf6474771ad81912cc5 | be1762141886e27e2e542324ffb4650546aee58d | /setup.py | 24ce1ea64205555595d2b03b54e784c4b012fea5 | [] | no_license | rgleason/pypilot | 71c2aad9a9894c84a1a9819078887ea041ff0e7b | 66eabcc63a11c96b84f58588c87b6ef710ed5826 | refs/heads/master | 2023-06-12T09:26:42.846470 | 2021-06-29T06:38:37 | 2021-06-29T06:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | #!/usr/bin/env python
#
# Copyright (C) 2017 Sean D'Epagnier
#
# 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.
impo... | [
"seandepagnier@gmail.com"
] | seandepagnier@gmail.com |
73bc81c737025f384a2d55f27dbb83a3292b5dc9 | ba9387ad04a79e5e89204b2f292d01323c7198ad | /backend/chat_user_profile/migrations/0001_initial.py | 89ad1019538532877afb9c0211c55783492d29f1 | [] | no_license | crowdbotics-apps/message52-19836 | b9ec7d032a1548ba71153c443486a3b7c38da5f9 | fde8c1c0b0de9e939e156e29bb2cb4dce1607cad | refs/heads/master | 2022-12-04T23:48:19.002965 | 2020-08-28T02:37:50 | 2020-08-28T02:37:50 | 290,932,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | # Generated by Django 2.2.15 on 2020-08-28 02:37
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),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
016c75557647665c5a3773b8cf354ade5c11502f | 941c912f44beff33a072e086c1f561f6cdd64626 | /LeetCode/codes/22.py | 84f0db4955118accd480b9d684a7ae03a363e1dc | [] | no_license | adreena/MyStudyCorner | 3a13a743769ed144965b767f547c16df4d0fa0dd | 355c0dbd32ad201800901f1bcc110550696bc96d | refs/heads/master | 2023-02-20T07:39:32.391421 | 2021-01-25T01:46:21 | 2021-01-25T01:46:21 | 255,104,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # time catalan numbers (2n n)*1/n
# space: catalan numbers
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
self.outputs = []
def helper(n_left, n_right, output):
if n_left == 0 and n_right == 0:
self.outputs.append(output)
else:
... | [
"kim.hszd@gmail.com"
] | kim.hszd@gmail.com |
c114e9e4c5fbe43f5efbc36d8ddc04c35dd32490 | af82475dc7eb45c478414372c222e7b6016359d4 | /python书籍/Python For Finance Code/Code of Python For Finance/4375OS_08_Code/4375OS_08_12_Series.py | f279f6cc3587504d87af31fda1b21a119cea0200 | [] | no_license | enfangzhong/PythonBaseCode | 8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433 | 9ab4a578b2692fdbb6aeeacb310251d51f72e953 | refs/heads/master | 2020-05-17T16:26:02.598344 | 2019-04-27T20:49:40 | 2019-04-27T20:49:40 | 183,817,172 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | """
Name : 4375OS_08_12_Series.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/26/2013
email : yany@canisius.edu
paulyxy@hotmail.com
"""
import pandas as pd
x = pd.date_range('1/1/2013', periods=252)
data = pd.Series(randn(len(x)), ... | [
"944727327@qq.com"
] | 944727327@qq.com |
5f78d5f22130ef95b5451dbb67e83853d93a80b0 | a6566ebc69ed5e7a17e2091bdb10e7b6523eefc9 | /py/notifier/config.py | 49ae8e99337c9f08bbbe648c1ba901d19f2924d8 | [
"MIT"
] | permissive | mabotech/mabo.task | 916e71650b45a24bb3852206a3755a7fd0342e47 | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | refs/heads/master | 2020-06-05T13:05:02.768838 | 2015-11-29T08:18:10 | 2015-11-29T08:18:10 | 23,750,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py |
import toml
from singleton import Singleton
class Config(object):
__metacass__ = Singleton
def __init__(self):
conf_fn = "conf.toml"
with open(conf_fn) as conf_fh:
toml_str = conf_fh.read()
self.conf = toml.loads(toml_str)
def get_co... | [
"aidear@163.com"
] | aidear@163.com |
a08866fdeb02d1584aca3775017ebe2a118292d7 | 04252676935223f4d03eff0393ba921cb00be1e5 | /api/__init__.py | 59d9087892b08ac0854226a2346b05ea5f5dff99 | [] | no_license | kongp3/cross4u | 4083aec3e5fe9de1d351d25609cbdf996df6abe3 | 8bd4dcfe8ae8fee5a3f169428b138b1294633da0 | refs/heads/master | 2020-11-29T23:11:17.838675 | 2019-12-30T06:56:20 | 2019-12-30T06:56:20 | 230,235,707 | 0 | 0 | null | 2019-12-26T09:33:09 | 2019-12-26T09:31:52 | Python | UTF-8 | Python | false | false | 1,419 | py | # -*- coding: utf-8 -*-
import traceback
from flask import jsonify
from functools import wraps
class RestResponse(object):
""" 标准的接口Response类, 所有的api必须返回这个类的对象, 以便统一处理返回 """
def __init__(self,):
pass
def fail(self, code=500, message="Server Got A Exception"):
d = {'meta': {
'... | [
"kongp3@outlook"
] | kongp3@outlook |
f63660d7a58a51a6d96d21c74bf21e35e3469584 | 6bfda75657070e177fa620a43c917096cbd3c550 | /kubernetes/test/test_v1_job_status.py | f929582f971cf175bfa94a502d44fde0352fba4f | [
"Apache-2.0"
] | permissive | don41382/client-python | 8e7e747a62f9f4fc0402eea1a877eab1bb80ab36 | e69d4fe204b98f7d7ee3ada3996b4f5fbceae5fe | refs/heads/master | 2021-01-19T23:15:50.172933 | 2017-04-18T18:00:48 | 2017-04-18T18:00:48 | 88,943,866 | 0 | 0 | null | 2017-04-21T05:19:52 | 2017-04-21T05:19:52 | null | UTF-8 | Python | false | false | 827 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
4e2a5aac3f2d8596ac600f55307f6e113b1f375b | 71da259f71428648d4285b1b4863ec2b7641e58c | /ecom/website/filters.py | 561533e588086d70c2830bed74278b2c4dbe38da | [] | no_license | rafimuhammad01/e-com | 8a58d0ccff27516da260b41c180c703fa22e76b3 | 75d451bfc10075090d88d5a16dbd03f626ff72ef | refs/heads/master | 2023-02-18T08:48:26.144483 | 2021-01-15T08:56:54 | 2021-01-15T08:56:54 | 291,625,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import django_filters
from .models import Product
class ProductFilter(django_filters.FilterSet) :
class Meta:
model = Product
fields = {
'price' : ['lt', 'gt'],
'review__rate' : ['iexact']
}
class ProductSearch(django_filters.FilterSet) :
class Meta:
... | [
"rafi10muhammad@gmail.com"
] | rafi10muhammad@gmail.com |
6d5a2f9b2ddc3bfe891a3c7d27a364e5c4cb78eb | cdbb11473dc8d34767a5916f9f85cb68eb2ca3f2 | /sde/migrations/0036_auto_20180729_1518.py | a313a94deec723d4c8b6e96c080fc6923b8eec30 | [] | no_license | skyride/evestats | fb2a1a248952771731dcfecadab7d02b1f08cd4b | 4bd2153f65c084b478272513733dcc78f9a0ef98 | refs/heads/master | 2020-03-23T13:50:19.216870 | 2018-08-05T19:19:47 | 2018-08-05T19:19:47 | 141,640,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 2.0.7 on 2018-07-29 15:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sde', '0035_auto_20180729_1456'),
]
operations = [
migrations.RemoveField(
model_name='attribut... | [
"adam.findlay@mercurytide.co.uk"
] | adam.findlay@mercurytide.co.uk |
693b5d23fcf762329e9caaaf81cb5e80096e70d6 | f26d67e3e9f8b90e5d6243279a1c2ce87fa41d46 | /src/prodstats/cq/tasks.py | f48b077503fffa1d9e9d88a31617f973023e977b | [
"MIT"
] | permissive | OCB-DS/prodstats | cf554e3abee651463e9f81606d4b633f464658a7 | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | refs/heads/master | 2022-11-25T15:30:06.988683 | 2020-08-02T16:08:05 | 2020-08-02T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,803 | py | import asyncio
import itertools
from datetime import timedelta
from typing import Coroutine, Dict, List, Union
import pandas as pd
from celery.utils.log import get_task_logger
from celery.utils.time import humanize_seconds
import calc.prod # noqa
import config as conf
import cq.signals # noqa
import cq.util
import ... | [
"brocklfriedrich@gmail.com"
] | brocklfriedrich@gmail.com |
045c865fc678eba2750f62646d81f6c24d5e15cb | 7e93b1c33045b4c03054f42b6a2b800279b12a9b | /core/cache/backends/redis/compressors/base.py | 8d9e74deabf56d11d14abf6ab944ca71c3f9526c | [
"MIT"
] | permissive | anthill-arch/framework | 6f8036980667843f2be1414850255cf6a10e2dcd | a6c238a62ae9c3fb319d12e77f7e9047aab75e8d | refs/heads/master | 2020-05-09T06:01:31.186830 | 2019-08-23T13:52:43 | 2019-08-23T13:52:43 | 180,988,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | class BaseCompressor(object):
def __init__(self, options):
self._options = options
def compress(self, value):
raise NotImplementedError
def decompress(self, value):
raise NotImplementedError
| [
"x55aah@gmail.com"
] | x55aah@gmail.com |
f6c7e47f18fecf5204af653cae821b0dbc934729 | 3a60b8935f809e300405214a66d949f0042e7e46 | /src/map/tile.py | de575e0a0d16478ca90b3e9f8119073989688f77 | [] | no_license | stellarlib/centaurus | e71fe5c98b94e8e575d00e32f55ba39fe71799e6 | 896ae73165f3f44dfb87378ef2635d447ccbccae | refs/heads/master | 2020-08-29T00:02:47.294370 | 2020-07-06T20:06:02 | 2020-07-06T20:06:02 | 217,860,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from random import randint
from src.map.hex_map_properties import EdgeID
class Tile(object):
n = 15
GRASS, WOODS, WATER, ROCKS, SAND, CLAY, ROAD, WALL, EXIT,\
EXIT0, EXIT1, EXIT2, EXIT3, EXIT4, EXIT5 = range(n)
OPEN = {GRASS, ROAD}
IMPASSABLE = {WALL, ROCKS, WATER}
OBSTACLE = {WALL, ROC... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
be1a846751a9b1a0055e8a81bbfe3ca6df2c437e | 173f6c30ec4e5e3eb99ecf493e9019828270f5d3 | /main.py | ac93f58ecffa8176285a3e5857c06808694f3832 | [
"MIT"
] | permissive | DrLuke/FEMM-bode | 14d1468d7f623a0fa874b9bb7d25b0feb9eb79f3 | 851397f914fbb114707ffa1202f9c3ac3a37bc37 | refs/heads/master | 2021-01-19T16:48:37.216579 | 2017-07-05T13:27:22 | 2017-07-05T13:27:22 | 88,288,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,234 | py | import subprocess
import matplotlib as mpl
import matplotlib
matplotlib.use('Qt5Agg')
import matplotlib.pyplot as plt
import numpy as np
import re
import math, cmath
from scipy.interpolate import griddata
import os
from femm import FEMM, FEMMfem, FEMMans
from PyQt5.QtWidgets import QApplication, QMainWindow, QMenu, ... | [
"Lukas@Jackowski.de"
] | Lukas@Jackowski.de |
df6b3cdaa09073a8075e928c7ef9df25a4f7150f | 1f3a2cee3654c11586b30151fd9a3fc6fd705c0a | /deep_learning/pic.py | 5488840c452ac9667371b0542085d8a928c76634 | [] | no_license | 2020668/AI | 24ff42cefacac3f397e7a6f54dda7e9d741f2e03 | 3e1a78a6348e453b0f3e8862a784105620a22bc1 | refs/heads/master | 2020-12-09T02:03:55.311209 | 2020-02-10T15:36:26 | 2020-02-10T15:36:26 | 231,186,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import tensorflow as tf
print(tf.__version__)
# 输出'2.0.0-alpha0'
print(tf.test.is_gpu_available())
# 会输出True,则证明安装成功
| [
"keen2020@outlook.com"
] | keen2020@outlook.com |
b70b66f6096c21bc356db17ef7a9da3c02eaf719 | f8bb2d5287f73944d0ae4a8ddb85a18b420ce288 | /python/basic/for/format_obj.py | df47968c9dd34f209133f19983ab9c23ed9b0fe2 | [] | no_license | nishizumi-lab/sample | 1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2 | fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2 | refs/heads/master | 2023-08-22T15:52:04.998574 | 2023-08-20T04:09:08 | 2023-08-20T04:09:08 | 248,222,555 | 8 | 20 | null | 2023-02-02T09:03:50 | 2020-03-18T12:14:34 | C | UTF-8 | Python | false | false | 46 | py | for 変数 in オブジェクト:
処理
| [
"yusuke059@gmail.com"
] | yusuke059@gmail.com |
9ba384d7416217505108520e70e49bd802012c66 | 7b3009e019e081667df67c6b41328b5db632b898 | /instances/shadows_of_infinity.py | 34a98b9e889adc772c3ce344061ead7226547267 | [
"MIT"
] | permissive | frostburn/multibranch-mandelbrot | d1e2cc6bce6ab8f065b678fb2133bd3057b832d5 | 84e4887ffc90a5338ae448ced6f62fcf40bc11a1 | refs/heads/master | 2023-08-02T18:20:56.671175 | 2021-09-28T09:57:58 | 2021-09-28T09:57:58 | 287,219,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import os
import sys
sys.path.insert(0, os.path.abspath('.'))
from pylab import *
from mandelbrot import mandelbrot, mandelbrot_generic, buddhabrot
import nonescaping
import classic
from coloring import red_lavender, black_multi_edge, rainbow, gray, sepia, subharmonics, creature, white_multi_edge
import color_gradient... | [
"lumi.pakkanen@gmail.com"
] | lumi.pakkanen@gmail.com |
5dd88af5ae5e82c13194560776281ec8a542cab7 | 93ad65a519037b2a6c9363f356a00b3e51350537 | /djR/conf.py | c80052a26cce28b6dc8ddf5b5a232ed373f0e040 | [
"MIT"
] | permissive | JheanMarllos/django-R | 6ccc9b42dbca50c803c740315fbeda136be1ad9c | 3c1f8adfa2a16ad9cf9856e4dd7cd889e7a3c229 | refs/heads/master | 2020-05-30T12:42:49.200732 | 2019-06-02T11:37:49 | 2019-06-02T11:37:49 | 189,741,022 | 0 | 0 | MIT | 2019-06-01T14:16:22 | 2019-06-01T14:16:22 | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from django.conf import settings
RETHINKDB_HOST = getattr(settings, 'RETHINKDB_HOST', 'localhost')
RETHINKDB_PORT = getattr(settings, 'RETHINKDB_PORT', 28015)
RETHINKDB_USER = getattr(settings, 'RETHINKDB_USER', None)
RETHINKDB_PASSWORD = getattr(settings, 'RETHINKDB_PASSWORD', None)
DEFAULT... | [
"synwe@yahoo.fr"
] | synwe@yahoo.fr |
9782f416c9447c9bea34e745ec11be24c68003db | 8dbba1dc3b0a9cb3972e6fee6f41459d6fa56d78 | /ch09/ex9-10.py | b644f50c93a1b0bc17981d880b07bc7f5e71550d | [] | no_license | freebz/Foundations-for-Analytics-with-Python | 8da8308981538266e8e982ffcd080657058144ca | 736b2075e339a679905071b39201e6a575f59229 | refs/heads/master | 2020-03-15T21:53:43.100954 | 2018-05-06T18:07:59 | 2018-05-06T18:07:59 | 132,363,669 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import numpy as np
from numpy import concatenate, vstack, r_
array_concat = np.concatenate([array1, array2], axis=0)
array_concat = np.vstack((array1, array2))
array_concat = np.r_[arry1, array2]
| [
"freebz@hananet.net"
] | freebz@hananet.net |
f3409674f6082e19e2cdbb91ddc6cc1956ae779f | 9aea1b19a8681b4c6b15d628a080982fb2d98b39 | /mianJing111111/Google/Implement Queue using Stacks.py | 2e144185623f255bcbf62dc1b0ca3271002fcff4 | [] | no_license | yzl232/code_training | ee7612efc6f166742fcf48e1af715f57a624d3aa | fc165027c3d7b1fec58ebfad2f9ada275a6b8c03 | refs/heads/master | 2021-01-21T04:32:02.522931 | 2016-07-01T21:35:29 | 2016-07-01T21:35:29 | 26,989,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # encoding=utf-8
'''
In this method, in en-queue operation, the new element is entered at the top of stack1. In de-queue operation, if stack2 is empty then all the elements are moved to stack2 and finally top of stack2 is returned.
enQueue(q, x)
1) Push x to stack1 (assuming size of stacks is unlimited).
deQueue(... | [
"buptyuzhenglin@gmail.com"
] | buptyuzhenglin@gmail.com |
96697e0a1210d4821564472422964ebcc50a0e3b | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/zulip/2015/12/run-dev.py | 67b1614d07af8c64d03977bec514a539b207ca73 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 3,852 | py | #!/usr/bin/env python2.7
import optparse
import subprocess
import signal
import traceback
import sys
import os
from twisted.internet import reactor
from twisted.web import proxy, server, resource
# Monkey-patch twisted.web.http to avoid request.finish exceptions
# https://trac.zulip.net/ticket/1728
from twisted.... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
b4b48833b14eeae1819479c4994e066e45300d1c | d0dccd8b1c31c0256dca3472719acab561661aa9 | /events/views.py | 8f52985d56e7d9d48486c2516ac1ab2f8b850635 | [] | no_license | cjredmond/GrouperApp | 5fe97271bc275e570d2e3565c2bb5233ce34a79d | aba431c7def9173150e24686dbbb87685d25ed24 | refs/heads/master | 2020-03-19T21:43:12.609648 | 2018-06-29T16:17:10 | 2018-06-29T16:17:10 | 136,947,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.shortcuts import render
from django.views.generic import *
from django.views.generic.edit import *
from django.contrib.auth import get_user_model
from django.urls import reverse
from .models import Event
from .forms import EventCreateForm
from group.models import Entity
class EventCreateView(CreateView):... | [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
06072e8a7f63c5d0535c8e97d3d3590ec3ef64bc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_backup.py | 9eff4b2688d253805fa8fdb41115f611870c9543 | [
"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 | 588 | py |
#calss header
class _BACKUP():
def __init__(self,):
self.name = "BACKUP"
self.definitions = [u'(someone or something that provides) support or help, or something that you have arranged in case your main plans, equipment, etc. go wrong: ', u'a copy of information held on a computer that is stored separately from... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8fdf3accccfac6904b4799b77cccadf2bfc83862 | 42516b0348936e257d04113c2e632dc72ba58e91 | /test_env/test_suit_ui_file_explorer/test_suit_ui_file_explorer_case06.py | d446ea461909499285fd138a157ee129cd48ee84 | [] | no_license | wwlwwlqaz/Qualcomm | 2c3a225875fba955d771101f3c38ca0420d8f468 | a04b717ae437511abae1e7e9e399373c161a7b65 | refs/heads/master | 2021-01-11T19:01:06.123677 | 2017-04-05T07:57:21 | 2017-04-05T07:57:21 | 79,292,426 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,124 | py | #coding=utf-8
import settings.common as SC
from test_case_base import TestCaseBase
from logging_wrapper import log_test_case, take_screenshot
from test_case_base import TestCaseBase
from qrd_shared.case import *
import fs_wrapper
from case_utility import *
import settings.common as SC
from utility_wrapper import *
##... | [
"c_wwan@qti.qualcomm.com"
] | c_wwan@qti.qualcomm.com |
fc7d7b27a526a43db9c9b511ae29a4442acf81d4 | 0fb2e09c0629cf47045881d7eecc125f674230e5 | /pps_webapp/main/views.py | bf6d96c2869c358792ae6771da7c09201b547904 | [] | no_license | satwik77/phenopacket-scraper-webapp | ea24ad2cc2fbd988e12df1178be5ba940c8a9859 | 4382c2a4e501448e7bfd68c7826a3c4c5ab39a26 | refs/heads/master | 2021-01-17T09:33:07.188192 | 2016-08-23T17:24:20 | 2016-08-23T17:24:20 | 61,695,575 | 0 | 0 | null | 2016-06-22T06:45:50 | 2016-06-22T06:45:50 | null | UTF-8 | Python | false | false | 1,984 | py | from django.shortcuts import get_object_or_404, render_to_response, redirect
from django.shortcuts import render
from django.contrib import auth
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import requests
import pprint
api_url= 'http://localhost:8001/api/'
@csrf_exempt
de... | [
"satwik55@gmail.com"
] | satwik55@gmail.com |
31a0c3c321b124e25d22c7584aa8ccbc4ed0ae04 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/PyQt4/QtNetwork/__init__.py | 499f277c4fd5601ad24160f4fb960e5e5fc2f65f | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # encoding: utf-8
# module PyQt4.QtNetwork
# from /usr/lib64/python2.6/site-packages/PyQt4/QtNetwork.so
# by generator 1.136
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
# no functions
# classes
from QAbstractNetworkCache import QAbstractNetworkCache
from QAbstractSocket import QAbstractSocket
from QAut... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
4d4ecc1e1bddc6ac36317f8f1c3f8dc07d77ef43 | 8e79de4b73998dd0ee1dae4881784a2b12410615 | /Bite_83/test_timezone.py | 48b2574919d1328895aa94b5cdc1f6966ae66c3b | [
"MIT"
] | permissive | alehpineda/bitesofpy | e6eb7c9413cf407a12643efece01bef5457e5dcb | bfd319a606cd0b7b9bfb85a3e8942872a2d43c48 | refs/heads/master | 2021-07-15T19:59:35.061049 | 2020-09-25T17:49:32 | 2020-09-25T17:49:32 | 209,878,791 | 0 | 0 | MIT | 2020-09-06T00:11:45 | 2019-09-20T20:49:51 | Python | UTF-8 | Python | false | false | 1,060 | py | from datetime import datetime
from timezone import what_time_lives_pybites
def test_what_time_lives_pybites_spanish_summertime():
# AUS is 8 hours ahead of ES
naive_utc_dt = datetime(2018, 4, 27, 22, 55, 0)
aus_dt, es_dt = what_time_lives_pybites(naive_utc_dt)
assert aus_dt.year == 2018
assert a... | [
"ale.hpineda@gmail.com"
] | ale.hpineda@gmail.com |
acb8cafa74645f1560e286301b9c4b31274498d0 | b72e42f7f15ea8d359512cc0fe524f5407f358e5 | /CS50_web_dev/src/src8/airline1/airline/urls.py | f9e85ea4cf69f88b0dfd879f4bc3a158aa887856 | [
"MIT"
] | permissive | ChuaCheowHuan/web_app_DPTH | ec9f96d66c69ebd7e04df8d4b92578a3aaa7e392 | dd901e6359fe76f15b69701c53f76666c3219173 | refs/heads/master | 2021-06-18T11:31:10.959634 | 2020-07-23T04:04:52 | 2020-07-23T04:04:52 | 205,556,446 | 0 | 0 | MIT | 2021-06-10T21:55:14 | 2019-08-31T14:42:35 | HTML | UTF-8 | Python | false | false | 797 | py | """airline URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"17569306+ChuaCheowHuan@users.noreply.github.com"
] | 17569306+ChuaCheowHuan@users.noreply.github.com |
5d396f8a619172ddd3f61c1c285aedc696426ca7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03001/s613586641.py | 5dadc4795c529eb1e7ffe05c54da04dc2de9168e | [] | 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 | 162 | py | import sys
sys.setrecursionlimit(10**6)
w, h, x, y = map(int, input().split())
ans1 = w*h/2
ans2 = 0
if x == w/2 and y == h/2:
ans2 = 1
print(ans1, ans2)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2ca6dd6d9e283d56848cb08dedccbc18699489cf | f40c65a649206261d7255eb3132ea67963f13a17 | /src/wait.py | d830074cea069e62e268c87b9f7ee5afbff4750b | [
"MIT"
] | permissive | fcurella/gh-status-check | 2ec47ca212bfe471cda97d1ae0c1ee41f16420e3 | 1fdb5f7be1dcdb9f2338839ad55ad7c9188b159b | refs/heads/main | 2022-12-22T18:35:00.543508 | 2020-10-01T17:46:35 | 2020-10-01T17:46:35 | 297,731,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,852 | py | import asyncio
import logging
import os
import sys
import aiohttp
from asgiref.sync import sync_to_async
from github import Github
REPOSITORY = os.environ["GITHUB_REPOSITORY"]
SHA = os.environ["GITHUB_SHA"]
EVENT = os.environ["GITHUB_EVENT_NAME"]
EVENT_PATH = os.environ["GITHUB_EVENT_PATH"]
TOKEN = os.environ["INPUT... | [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
76dfebb655f45b53d778e40b6ae290fc76785090 | 09f0505f3ac1dccaf301c1e363423f38768cc3cc | /r_DailyProgrammer/Intermediate/C239/__init__.py | cf2036a70032f331ee1707580700ecc8e93ea54f | [] | no_license | Awesome-Austin/PythonPractice | 02212292b92814016d062f0fec1c990ebde21fe7 | 9a717f91d41122be6393f9fcd1a648c5e62314b3 | refs/heads/master | 2023-06-21T11:43:59.366064 | 2021-07-29T23:33:00 | 2021-07-29T23:33:00 | 270,854,302 | 0 | 0 | null | 2020-08-11T20:47:10 | 2020-06-08T23:24:09 | Python | UTF-8 | Python | false | false | 71 | py | #! python3
from r_DailyProgrammer.Intermediate.C239.main import main
| [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
d7804ea8b7f2ecc0bd38927b3992aa58daadc478 | af9b7a00b55aac5eaed58592cf8a9d69e659a076 | /learning_log/learning_logs/forms.py | da3fa007a63b1f3e2886d67e9cb7c2ee946bc820 | [] | no_license | dujiaojingyu/Django-Practice | bc246d2283a8f994567756b4e391ea167359620b | cab5db123eb97bd424a84fae24629cc0e1be4652 | refs/heads/master | 2020-03-25T17:33:25.597885 | 2018-08-08T08:38:09 | 2018-08-08T08:38:09 | 143,983,344 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | __author__ = "Narwhale"
from django import forms
from .models import Topic
class TopicForm(forms.ModelForm):
class Meta:
model = Topic
fields= ['text']
labels = {'text':''}
| [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
e277cd2671d5de63fd0453d59feb4fde97ffbdaf | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/s5_getparser_20210216045646.py | c901cc9e70acfeeb7542185d4f3f24d9c669f62e | [] | 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 | 14,991 | py | import shutil
from fonduer.parser.preprocessors import html_doc_preprocessor
from sqlalchemy import exc
import pdftotree
import re
from sen_parser_usable import *
from config import config
import json
import os
import posixpath
import http.server
import urllib.request, urllib.parse, urllib.error
import cgi
import sh... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
8af1f2b9b43cf26c7d092f16479f3b479eed5d23 | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/wxPython/samples/wxPIA_book/Chapter-10/popupmenu.py | 5226849ca7224afab2ef1c1e69a3aae5158a74d5 | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import wx
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1,
"Popup Menu Example")
self.panel = p = wx.Panel(self)
menu = wx.Menu()
exit = menu.Append(-1, "Exit")
self.Bind(wx.EVT_MENU, self.OnExit, exit)
... | [
"869999860@qq.com"
] | 869999860@qq.com |
41a58d08aeb1f5f3ee5fbd1e3067dbcc9eefbc43 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-3540.py | a875472b054493c30d3909c9a4a41429a81f0434 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,742 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
0709557c1f679fa1a41d7157bfe2c991f6adadfc | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/NTWS-AP-IF-MIB.py | d9da09616db8ef8ddc0d2db88e651ab9fd3c63d5 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 5,408 | py | #
# PySNMP MIB module NTWS-AP-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NTWS-AP-IF-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:16:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
fbe0979bb9bfd1111ac0cd12f14a2aecde30e551 | 892266713e500efa5ac04e1b8de812200410c956 | /devset.py | cd8b6e2d344c504aedbc001fde9be6ebc8fc85de | [
"BSD-2-Clause"
] | permissive | martinphellwig/django-g11n | 972eb95128637ec0b21efabad6b40ba02c30356c | 94eb9da7d7027061873cd44356fdf3378cdb3820 | refs/heads/master | 2020-08-29T12:24:04.687019 | 2016-10-10T15:54:32 | 2016-10-10T15:54:32 | 218,030,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | #! /usr/bin/env python
"""
Developer Reset.
"""
import os
APP = 'django_g11n'
DIR = os.path.dirname(os.path.abspath(__file__))
def get_last_migration_file():
"Fetch the latest migration file."
_ = os.path.join(DIR, APP, 'migrations')
_ = [os.path.join(_, item) for item in os.listdir(_) if not item.starts... | [
"martin@localhost"
] | martin@localhost |
e4cf4ab1bde5d12816c7568855788438a2c3bde5 | b7620d0f1a90390224c8ab71774b9c906ab3e8e9 | /aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/SetAutoScaleConfigRequest.py | 3e59df6b987590270e37c30aed6f6b4716a2eea1 | [
"Apache-2.0"
] | permissive | YaoYinYing/aliyun-openapi-python-sdk | e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f | e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627 | refs/heads/master | 2022-10-17T16:39:04.515562 | 2022-10-10T15:18:34 | 2022-10-10T15:18:34 | 117,057,304 | 0 | 0 | null | 2018-01-11T06:03:02 | 2018-01-11T06:03:01 | null | UTF-8 | Python | false | false | 10,448 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
7db90b76ad8b3755f314e61da0f7b4ddf29bd341 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /lambda单行表达式_0.py | dd751c9cc43d2361811c60ac8ee87e8da1b77fb7 | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | GB18030 | Python | false | false | 500 | py | #!/usr/bin/python
# -*- coding: cp936 -*-
b= [x for x in range(2,100) if not[y for y in range(2,int(x**0.5)) if not x%y]]
print("100以内的全部质数是:",b)
c= [y for y in range(2,36)]
print('2--35全部输出',c)
b= [x for x in range(2,24) if True]
print('2--23全部输出',b)
d= [x for x in range(2,24) if False]
print('无返回: ',... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
748b1a4c649433f18bc779c59fa3d4da540bf330 | bd185738ea6a74d1e76d9fc9d8cbc59f94990842 | /onadata/libs/pagination.py | f3aaf30a3bad15075443aa054f66f133a9d41638 | [
"BSD-2-Clause"
] | permissive | aondiaye/myhelpline | c4ad9e812b3a13c6c3c8bc65028a3d3567fd6a98 | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | refs/heads/master | 2020-12-22T05:32:59.576519 | 2019-10-29T08:52:55 | 2019-10-29T08:52:55 | 236,683,448 | 1 | 0 | NOASSERTION | 2020-01-28T07:50:18 | 2020-01-28T07:50:17 | null | UTF-8 | Python | false | false | 206 | py | from rest_framework.pagination import PageNumberPagination
class StandardPageNumberPagination(PageNumberPagination):
page_size = 1000
page_size_query_param = 'page_size'
max_page_size = 10000
| [
"patrickmithamo@gmail.com"
] | patrickmithamo@gmail.com |
42533e87831e34941babde24267e52e9219a54f1 | 6fa13067f1f5f50a48f7a535184c8abfb0334012 | /old/fall2019/lecture8/sqlite_example2.py | e6d430e24ea7aacf5ae9ecffb2af1c1309060823 | [] | no_license | mkzia/eas503 | 89193b889c39fc5dbc81217e1c6c3d2581b6929d | 4d7b548cc7fa8e938842d390f3df710c23d5f8fb | refs/heads/master | 2023-09-04T06:56:49.796298 | 2023-09-01T02:05:16 | 2023-09-01T02:05:16 | 205,002,120 | 70 | 123 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | import os
import sqlite3
from sqlite3 import Error
def create_connection(db_file):
conn = None
try:
conn = sqlite3.connect(db_file)
conn.execute("PRAGMA foreign_keys = 1")
except Error as e:
print(e)
return conn
def create_table(conn, create_table_sql):
try:
c = ... | [
"mkhawarzia@gmail.com"
] | mkhawarzia@gmail.com |
37c1c3091247a88ff307abacfcd63fbc7b304bb5 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/versioneer/test.py | 32fd79d45d8ce3d9b488d3feae6bca952e983ac1 | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | import versioneer
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
fbcc54fea5b182b3e2383026e517dcaa50974606 | f20516958c39123f204e2bc442c91df7df1cc34a | /amqpstorm/exchange.py | 865a03bd8e75475a400c5bdf1d4068945cb5fa0b | [
"BSD-3-Clause"
] | permissive | bradparks/ReadableWebProxy | 3c2732cff64007afa8318b5b159616a529068322 | 81fbce3083471126942d2e2a298dba9eaf1092b1 | refs/heads/master | 2020-05-29T11:48:40.189530 | 2016-08-25T15:17:14 | 2016-08-25T15:17:14 | 66,568,996 | 0 | 0 | null | 2016-08-25T15:13:39 | 2016-08-25T15:13:39 | null | UTF-8 | Python | false | false | 5,689 | py | """AMQP-Storm Channel.Exchange."""
import logging
from pamqp.specification import Exchange as pamqp_exchange
from amqpstorm import compatibility
from amqpstorm.base import Handler
from amqpstorm.exception import AMQPInvalidArgument
LOGGER = logging.getLogger(__name__)
class Exchange(Handler):
"""AMQP Channel.... | [
"something@fake-url.com"
] | something@fake-url.com |
9372d896b7050b2587a7d13762a113a2e9af5b33 | cfa2417f07259e512a1bbface4f1f4ccd66502c6 | /test/test_Likelihood/test_LensLikelihood/test_base_lens_likelihood.py | 6ecb7556a125e7d02dc4226cdb44037390dd4b9d | [
"BSD-3-Clause"
] | permissive | jiwoncpark/hierArc | 3779439533d3c9c5fe2e687f4bdf737dfc7673e8 | 3f31c0ae7540387fe98f778035d415c3cff38756 | refs/heads/master | 2021-05-18T21:32:45.590675 | 2020-12-23T00:01:01 | 2020-12-23T00:01:01 | 251,431,028 | 0 | 0 | NOASSERTION | 2020-03-30T21:20:08 | 2020-03-30T21:20:08 | null | UTF-8 | Python | false | false | 4,045 | py | import numpy as np
import pytest
import unittest
from hierarc.Likelihood.LensLikelihood.base_lens_likelihood import LensLikelihoodBase
class TestLensLikelihood(object):
def setup(self):
np.random.seed(seed=41)
self.z_lens = 0.8
self.z_source = 3.0
num_samples = 10000
ddt_s... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
f8aa9cc771efab36e523016cc18be7dd92b8bf88 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_study_group_values_controller_api.py | 671f7e874460bcd47617d26a420f26a608131ef4 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import rcc
from rcc.api.study_group_values_controller_api import StudyGroupVa... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.