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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9471cea9b5d59083fe068b87504590f4027f45eb | ad8b30544480ba1e5f5b1cb2dec2aa77a644e8d2 | /BOJ/1238_파티.py | 47e4a42bd4b524d433bb52d123cba305548dc8c0 | [] | no_license | hyunwoojeong123/Algorithm | 79abc82d944ca60342a7f8b6fc44fac20ac55123 | 0baaf3222fbbec699ffbec5d4cc680067cf293fb | refs/heads/master | 2023-07-10T18:28:51.934005 | 2021-08-18T01:51:23 | 2021-08-18T01:51:23 | 284,403,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import sys,heapq
INF = sys.maxsize
input = sys.stdin.readline
def dij(x):
# d 배열을 INF 로 전부 준다
d = [INF]*n
# heap에다가 [0, 출발점] 을 넣는다.
heapq.heappush(heap, [0,x])
# d[출발점] = 0
d[x] = 0
# heap 다 빌 때까지 반복
while heap:
# w,x 는 현 위치까지의 거리와 현 위치
w,x = heapq.heappop(heap)
... | [
"hw2621@daum.net"
] | hw2621@daum.net |
461aefbbf762874b01a14c2240b32b4c3530d3e3 | 2dad8b725583afd64e2f381acb6a299350a069c4 | /daftar/migrations/0012_auto_20200204_1527.py | 939f809acd5ce9faedf92e3b7bb279d387c8aa89 | [] | no_license | s4-hub/winback | 39b0b354690201a7906ce77f46c1172ddcb21110 | abfb22b6ed5d523b93ea5cdb982ac3066a63ab7c | refs/heads/master | 2020-12-22T12:27:54.416189 | 2020-02-11T10:50:30 | 2020-02-11T10:50:30 | 233,515,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,233 | py | # Generated by Django 2.2.7 on 2020-02-04 08:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('daftar', '0011_auto_20200204_1445'),
]
operations = [
migrations.DeleteModel(
name='Pekerjaan',
),
migrations.Ad... | [
"syafii.newbie@gmail.com"
] | syafii.newbie@gmail.com |
1edc3c43ccedae5b0f41c6a0f086d3ab554dd904 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch016/wiColorJ/Add2Loss/Sob_k09_s001_Mae_s001_good/pyr_Tcrop255_p20_j15/pyr_1s/L7/step09_1side_L7.py | c64e2e1afb0db5021bb85517a443b2008fa6e4b9 | [] | 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 | 7,124 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ecb797705d4380b014ac224de86a2b3ca7fbe0de | 029b18378b54856f6982cf3a73982b5285c2ff57 | /assignment1/cs231n/classifiers/linear_classifier.py | 22b624caa7e1dbd171409817f28da4d614335f49 | [] | no_license | Allensmile/cs231n_Convolutional-Neural-Networks-for-Visual-Recognition | 15f07693757a439776e7da22f2ac4e2cf6f78611 | bbae799b71c533ffb52ff9248ce9c92cfa76be6e | refs/heads/cs231n-0821 | 2021-01-01T19:05:11.608175 | 2016-08-22T04:39:20 | 2016-08-22T04:39:20 | 98,504,340 | 1 | 0 | null | 2017-07-27T07:01:01 | 2017-07-27T07:01:01 | null | UTF-8 | Python | false | false | 6,325 | py | import numpy as np
from cs231n.classifiers.linear_svm import *
from cs231n.classifiers.softmax import *
class LinearClassifier(object):
def __init__(self):
self.W = None
def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100,batch_size=200, verbose=False):
"""
Train this linear classifier ... | [
"brightmart@hotmail.com"
] | brightmart@hotmail.com |
50587e5954677e11ceae53851f78af9e5bcfa727 | 458ff3c3611bb969f96ff3d3e15108fa9ec88316 | /quiz/migrations/0004_auto_20201209_2057.py | 9ddaf47129300087df96cc291ab7fda68b428ff2 | [] | no_license | mayank5044/Navigus | 8164809d87c5f3112565549229327ea20d090898 | aa03a99583efe4b7e9e7d1cb4a450e559f36d475 | refs/heads/master | 2023-08-11T01:30:21.115338 | 2021-10-09T06:47:24 | 2021-10-09T06:47:24 | 414,919,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py |
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0002_remove_student_status'),
('quiz', '0003_result'),
]
operations = [
migrations.AlterField(
model_name='result',
... | [
"iutkarshyadav192000@gmail.com"
] | iutkarshyadav192000@gmail.com |
baed34dff5b6291a245a5b0525a858aeba9dc2b8 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/FwupdPlugin/FirmwareClass.py | 41cfcb07d1b2a17378eab46a1dbbc60611507f68 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,303 | py | # encoding: utf-8
# module gi.repository.FwupdPlugin
# from /usr/lib64/girepository-1.0/FwupdPlugin-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attrib... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
944140c7bba8ea526c0edc0595e380ce65ebcc98 | 690e8f0a853c1f27bae688f021e8c27e62ca9613 | /auth/auth/settings.py | 9d8a145494269d4ab9cebf00c17bb3722ad9be69 | [] | no_license | MaksimLion/django-rest-authentication | d77c8b59e89c80a9f8c98fb7b038bebb431ffc0e | 8445354f761d0624a97faa490d8872be5994da5e | refs/heads/master | 2020-05-04T15:16:51.320819 | 2019-04-03T08:22:16 | 2019-04-03T08:22:16 | 179,233,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | """
Django settings for auth project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"maxim226356@mail.ru"
] | maxim226356@mail.ru |
d1bdc816ef14dbb9698a37af082dbc2f665ef045 | 434b6556038ad326ffaa8584a8a91edf8ad5c037 | /BST-1/CheckBST-1.py | 6677cdfe3c533653ccfc336a478ee2090bd1405b | [] | no_license | Pranav016/DS-Algo-in-Python | 60702460ad6639dd3e8a1fdc3caf0821b8e0b4c2 | 5557e371ccdf801d78ba123ca83c0dd47b3bdb3b | refs/heads/master | 2023-01-23T08:29:32.186861 | 2020-11-01T17:14:12 | 2020-11-01T17:14:12 | 284,651,382 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | import queue
class BinaryTreeNode:
def __init__(self,data):
self.data=data
self.left=None
self.right=None
def minimumNode(root):
if root is None:
return 1000000
leftMin=minimumNode(root.left)
rightMin=minimumNode(root.right)
return min(root.data,leftMin, rightMin... | [
"pranavmendi@gmail.com"
] | pranavmendi@gmail.com |
7b52bfbc8d308b9c74054bab3dae598640de80b8 | cd486d096d2c92751557f4a97a4ba81a9e6efebd | /16/addons/plugin.video.moviedb/resources/modules/sgate.py | 005822886551a515de00ccbea6b9c9440d95515e | [] | no_license | bopopescu/firestick-loader-kodi-data | 2f8cb72b9da67854b64aa76f720bdad6d4112926 | e4d7931d8f62c94f586786cd8580108b68d3aa40 | refs/heads/master | 2022-04-28T11:14:10.452251 | 2020-05-01T03:12:13 | 2020-05-01T03:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,146 | py | # -*- coding: utf-8 -*-
# moviedb Series Gate TV SHOW Module by: Blazetamer
import urllib,urllib2,re,xbmcplugin,xbmcgui,sys,urlresolver,xbmc,os,xbmcaddon,main
from metahandler import metahandlers
try:
from addon.common.addon import Addon
except:
from t0mm0.common.addon import Addon
addon_id = 'plu... | [
"esc0rtd3w@gmail.com"
] | esc0rtd3w@gmail.com |
76f5af84fbd35b8169fa79d19c04247b0d84fd00 | 504c9c2b0d29d946079e11644761ad354fc79715 | /_build/jupyter_execute/B_資訊設會必修的12堂Python通識課_何敏煌_博碩_2019/ch08.py | f2a128622353e50d7e7e751299228a9b37946c13 | [] | no_license | AaronCHH/jb_pysqlite | 2b5b79327778705f8a941b0c5628e9eba0f5be2a | 832a70b936800a380c1da0884eed9f7fa0dc2aee | refs/heads/main | 2023-03-12T23:17:22.534445 | 2021-03-06T15:51:10 | 2021-03-06T15:51:10 | 340,876,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | # Ch08 操作資料庫
#顯示學生成績表
import sqlite3
dbfile = "school.db"
conn = sqlite3.connect(dbfile)
rows = conn.execute("select * from score;")
for row in rows:
for field in row:
print("{}\t".format(field), end="")
print()
conn.close()
#輸入學生成績
import sqlite3
dbfile = "school.db"
conn = sqlite3.co... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
c63a4270aaeefd93934953d35eb9f8f3316bf194 | 8e52c27f1b2823db67db4438b2b7e22c18254eca | /gluon/gluoncv2/models/alexnet.py | 626397e4fda1fb1630db7caf578a3149a8c93c39 | [
"MIT"
] | permissive | earhian/imgclsmob | 5582f5f2d4062b620eecc28d5c4c9245fea47291 | c87c0942420876941868c016211073dec4392e4d | refs/heads/master | 2020-04-12T02:13:55.258601 | 2018-12-17T20:38:19 | 2018-12-17T20:38:19 | 162,242,486 | 1 | 0 | MIT | 2018-12-18T06:40:42 | 2018-12-18T06:40:41 | null | UTF-8 | Python | false | false | 8,438 | py | """
AlexNet, implemented in Gluon.
Original paper: 'One weird trick for parallelizing convolutional neural networks,'
https://arxiv.org/abs/1404.5997.
"""
__all__ = ['AlexNet', 'alexnet']
import os
from mxnet import cpu
from mxnet.gluon import nn, HybridBlock
class AlexConv(HybridBlock):
"""
Ale... | [
"osemery@gmail.com"
] | osemery@gmail.com |
b81f41162f15e29f8b808b8521fb7a1cf808a28c | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /sale_crm/__manifest__.py | 2ee01b74f3caf0f9facf83b0f88b9115a413b705 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
{
'name': 'Opportunity to Quotation',
'version': '1.0',
'category': 'Hidden',
'description': """
This module adds a shortcut on one or several opportunity cases in the CRM.
=============================... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
484644bbb880fdcf085f5e5d6641f10a5231a625 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/swig/Examples/python/varargs/runme.py | fe1e28e881e6fbf9f29462308bf61efca2de0209 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f2ae65c42f8358298afb53751299f1957fed0218e6a36f16022a63aa74858f95
size 705
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
734748a7d00403f32a4378d028e322462aeeabe3 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200421_python2/day14_py200606/tuple_1.py | c02f948ae526bf8546174abec4408a4458357833 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """
tuple
read-only list
"""
# create a tuple
my_tuple1 = (1, 2, 3, 4, 5, 6, 7, 8)
print(my_tuple1)
my_tuple2 = ()
print(my_tuple2)
# create a tuple with only one element
my_tuple3 = (1)
print(my_tuple3)
my_tuple3 = ('abc')
print(my_tuple3)
my_tuple3 = 1
my_tuple3 = (1,)
print(my_tuple3)
# create nested tuple
my_tu... | [
"lada314@gmail.com"
] | lada314@gmail.com |
1d74ef8462950a6d0001f53e3884fb6d831e1a36 | e7729e83f4caa78586a57de7c651b8e705e73305 | /app/flags/agents/flag_6.py | 45cf12711db4e7a9ee386fa13e8ae664ea83a475 | [] | no_license | dekoder/training | 873674b985a0f2f8d0e3740f3b2004da2e0af02d | c7509ae9d13ba1ebbd127aeb4dadcaf88ffd9749 | refs/heads/master | 2023-01-01T01:00:56.709768 | 2020-10-29T19:51:19 | 2020-10-29T19:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | name = 'Contact points'
challenge = 'Deploy a new agent, using a different contact point then your first agent'
extra_info = """If an adversary deploys all of their agents on a host using the same protocol, say HTTP, then when their agent is
detected and shut down, the defenders will likely close access to the C2 over ... | [
"davidhunt@mitre.org"
] | davidhunt@mitre.org |
13eafdf4cca9a65dfa2e6bccb504ab6397013fb7 | d5292505eb7b8b93eca743eb187a04ea58d6b6a3 | /venv/Lib/site-packages/networkx/algorithms/operators/unary.py | 71a6303f16c9db7a764e15fa906e9421b5937b55 | [
"Unlicense"
] | permissive | waleko/facerecognition | 9b017b14e0a943cd09844247d67e92f7b6d658fa | ea13b121d0b86646571f3a875c614d6bb4038f6a | refs/heads/exp | 2021-06-03T10:57:55.577962 | 2018-09-04T19:45:18 | 2018-09-04T19:45:18 | 131,740,335 | 5 | 1 | Unlicense | 2020-01-19T10:45:25 | 2018-05-01T17:10:42 | Python | UTF-8 | Python | false | false | 1,646 | py | """Unary operations on graphs"""
# Copyright (C) 2004-2018 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import networkx as nx
from networkx.utils import not_implemented_for
__author__ = """\n""".join(['Ari... | [
"a.kovrigin0@gmail.com"
] | a.kovrigin0@gmail.com |
3e53ef1658987ecc2bc55594ea180866af5b582c | 7c8f6edd87cbee33cf998e9d2cc673fdcd39dd5a | /bots/Voodtwo/python/voodoo.py | 149d114051c2baf9989c6c3621aadc1cea98e223 | [] | no_license | tarehart/RLBotSpikeLeague | 89ce96417d8e201dcfc2f67ed5c1c81c7941131b | 311b3753e770cc642fdde87b6d4083db4072af88 | refs/heads/master | 2020-07-04T11:45:30.564487 | 2019-08-24T05:31:55 | 2019-08-24T05:31:55 | 202,278,639 | 0 | 3 | null | 2019-08-23T14:31:27 | 2019-08-14T05:09:20 | Python | UTF-8 | Python | false | false | 823 | py | from rlbot.agents.base_agent import BOT_CONFIG_AGENT_HEADER
from rlbot.agents.executable_with_socket_agent import ExecutableWithSocketAgent
from rlbot.parsing.custom_config import ConfigHeader, ConfigObject
class Voodoo(ExecutableWithSocketAgent):
def get_port(self) -> int:
return 19231
def load_conf... | [
"tarehart@gmail.com"
] | tarehart@gmail.com |
60a604d51abe28c15f4cbe9b135d530edf6eb603 | f87d1ce970ed414f62b90d79d8cf5a38556da592 | /repetory_api/migrations/0011_auto_20170609_1056.py | 670d2d9ff2b9b11106c16fd09dc242ea35f2ab32 | [] | no_license | zhangxu0307/repertory-rest | 331d58009c15e014d1a5e39447219817d77b08d9 | dc48a8e1e484254e1daa0712ffe66a52ec896ea7 | refs/heads/master | 2021-07-13T22:30:00.246833 | 2017-10-19T11:27:30 | 2017-10-19T11:27:30 | 107,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-09 02:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('repetory_api', '0010_auto_20170609_1044'),
]
operations = [
migrations.Remo... | [
"zhangxu0307@163.com"
] | zhangxu0307@163.com |
c1a278d0c191ec9f7a09ffb015bef1cb08eebb82 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil3029.py | 4d24e8f4ba438bbba1f8ddf9e36daac828244176 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | # qubit number=4
# total number=41
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(3) # number=19
prog... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0a5a10fc5960abab4709c50c8d9d9a98632a00ae | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /alembic/versions/00036_11dbcd6e5ee3_.py | 23c7b78690e2f34d72284e8b9134eea9c3b21604 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 1,392 | py | """empty message
Revision ID: 11dbcd6e5ee3
Revises: 5aa994117f07
Create Date: 2017-09-28 04:06:18.968893
"""
# revision identifiers, used by Alembic.
revision = '11dbcd6e5ee3'
down_revision = '5aa994117f07'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy_utils.... | [
"something@fake-url.com"
] | something@fake-url.com |
fc0fecc42711bdc8005c76234c04e40af133500a | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_CLI_Application_Visibility_Standard_OPEN.py | 4c9c5d9a1708723af600c8124e9f074a6b2e5ab3 | [] | 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 | 19,649 | py | """
Created on 2014-06
@author: chen.tao@odc-ruckuswireless.com
"""
import sys
import random
import libZD_TestSuite as testsuite
from RuckusAutoTest.common import lib_KwList as kwlist
from RuckusAutoTest.common import Ratutils as utils
def define_wlan_cfg():
key_string_wpa2 = utils.make_random_string(random.ra... | [
"tan@xx.com"
] | tan@xx.com |
5d00ab45b31431b87c4bc649952d35c2f2a94f9a | 2b249f2be3a06b647c58ed09f14d1c0cc77b0309 | /cluster/pkg/swarmer.py | 059f3d7ad0f2e3b332823c5df2ff5527b94be16d | [] | permissive | Hrishi5/ACI-EnhancedEndpointTracker | 7dad677146ae4a26e1e2f212ad6e6eead92e3513 | a4de84c5fc00549e6539dbc1d8d927c74a704dcc | refs/heads/2.0 | 2020-04-01T18:18:24.119980 | 2018-12-14T06:17:15 | 2018-12-14T06:17:15 | 148,533,258 | 0 | 0 | MIT | 2018-09-12T19:46:19 | 2018-09-12T19:46:19 | null | UTF-8 | Python | false | false | 22,407 | py |
from .connection import Connection
from .lib import run_command
from .lib import pretty_print
import getpass
import json
import logging
import re
import time
# module level logging
logger = logging.getLogger(__name__)
class Swarmer(object):
def __init__(self, config, username=None, password=None):
# rec... | [
"agossett@cisco.com"
] | agossett@cisco.com |
c5d385b41cade2187400881bf390d7ffe5eb5c55 | bd867af5245366ee0abfd0f659fcb42170fff8ca | /hackerRank/algorithms/DiagonalDifference/diagonal_difference.py | 954cf6bd5cfc0ee3735dcd2733472402344f7d21 | [] | no_license | kruart/coding_challenges | 04736a6b66da813fd973e7a57aa084bbdab31183 | 395ae60ab392e49bb5bc2f0a4eef1dfd232899bb | refs/heads/master | 2021-06-16T08:51:21.815334 | 2019-11-07T08:39:13 | 2019-11-07T08:39:13 | 153,890,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # https://www.hackerrank.com/challenges/diagonal-difference/problem
def diagonal_difference(arr):
return abs(sum([arr[i][i] - arr[i][len(arr)-i-1] for i in range(len(arr))]))
def main():
matrix1 = [
[1, 2, 3],
[4, 5, 6],
[9, 8, 9]
]
matrix2 = [
[11, 2, 4],
[4, 5... | [
"weoz@ukr.net"
] | weoz@ukr.net |
a82c76f942927a67392aa0710e1f1969930ee6cf | bbf025a5f8596e5513bd723dc78aa36c46e2c51b | /dfs + tree/graph.py | 66496a7005f463b2e1716261d4179eac0bb238f2 | [] | no_license | AlanFermat/leetcode | 6209bb5cf2d1b19e3fe7b619e1230f75bb0152ab | cacba4abaca9c4bad8e8d12526336115067dc6a0 | refs/heads/master | 2021-07-11T04:00:00.594820 | 2020-06-22T21:31:02 | 2020-06-22T21:31:02 | 142,341,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | class Graph:
def __init__(self,mapping={}):
'''
Constructs a new empty graph.
'''
self.graph = mapping
def nodes(self):
'''
Returns a list of all nodes in the graph.
'''
return self.graph.keys()
def get_neighbors(self, node):
... | [
"zy19@rice.edu"
] | zy19@rice.edu |
f2bfc11338590eec04ff10e1911a56f28c3461f0 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day06/re_module.py | edd0ec1139439c775c119d49c71c7b07ae65d1f5 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 612 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
# __author__ = "willian"
import re
# 从头匹配,很少使用
re.match("\d+", "341221")
# 匹配一次
re.search("\d+", "341221")
# 匹配多次
re.findall("\d+", "341221")
# 以逗号分割
re.split(",", "341,221")
# 匹配到进行替换,默认是替代所有,count指定次数.
re.sub("\d{4}", "1995", "1399,2017", count=1)
# re.I (忽略大小写)
# print(... | [
"284607860@qq.com"
] | 284607860@qq.com |
276f494e824843392c3efb25c438e23b280c6dbd | 0754e2e7aa1ffb90b54d563ce5a9317e41cfebf9 | /ml/m03_xor.py | 2f5fac7cee0e1b1116a7a60ebc02f9efee5e76ae | [] | no_license | ChaeMyungSeock/Study | 62dcf4b13696b1f483c816af576ea8883c57e531 | 6f726a6ecb43387e4a3b9d068a9c491b115c74c0 | refs/heads/master | 2023-01-24T20:59:52.053394 | 2020-12-07T14:54:34 | 2020-12-07T14:54:34 | 263,255,793 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from sklearn.svm import LinearSVC
from sklearn.metrics import accuracy_score
from sklearn import svm
# 1. 데이터
x_data = [[0, 0], [1,0], [0,1], [1,1]]
y_data = [0, 1, 1, 0]
# 2. 모델
# 모델은 한줄.. 파라미터값으로 늘어남
model = LinearSVC()
# 3. 훈련
model.fit(x_data, y_data)
# 4. 평가 예측
x_test = [[0,0], [1,0], [0,1], [1,1... | [
"noreply@github.com"
] | ChaeMyungSeock.noreply@github.com |
353fbe7250bf1beac4646624a021763b5c94b92a | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/Learn/PyCharm/Algorithmic Toolbox/Algorithmic Warm Up/Last Digit of the Sum of Fibonacci Numbers/last_digit_of_the_sum_of_fibonacci_numbers_unit_tests.py | bb3384e3158b2445f6adca669ed4c4fac09f64be | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a6a99b9bfea384a8802695a7f6eafeab6ae6e1cd091ebf62c01e6e6c0ecac93e
size 662
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
6c46999ddcfe4f6028d29dcdd2d2bb61c6a59501 | 650461f8804d7bd3c3f76d53a4f0b203b6f2788e | /PPool/__init__.py | 4e1a8022187ec02b92b5b21a70840fca3ef4427d | [
"Apache-2.0"
] | permissive | oeg-upm/PPool | 839953798f27249d3c9b492adc313afd9f2160c4 | 1c5557c37d86b5c22179b2204d68e7256d2a5c08 | refs/heads/master | 2020-03-25T02:56:28.305760 | 2018-09-26T07:04:28 | 2018-09-26T07:04:28 | 143,314,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | name = "PPool"
| [
"ahmad88me@gmail.com"
] | ahmad88me@gmail.com |
7c393120ee51e757a0b0c2bc246dc2a4c934dc23 | 08706df7e3712ebec7afd2d2f8f964ae9d485386 | /server/patients/migrations/0016_attribute_resource.py | 3c95316f5e9d660ee4b386204d0e49c148dcc89e | [] | no_license | nickdotreid/take-on-transplant | 9129c9ab7c1206291fc1ca616c18c44cd7519587 | bf901b987121093787383f3d3726f87dddf4d5fd | refs/heads/master | 2023-08-27T06:14:54.521168 | 2021-11-02T21:41:04 | 2021-11-02T21:41:04 | 298,403,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 3.1.1 on 2020-11-24 02:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('resources', '0006_auto_20201120_1722'),
('patients', '0015_issue_posttransplantissue_pretransplantissue'),
]
... | [
"nickreid@nickreid.com"
] | nickreid@nickreid.com |
0598cc55bb3cc9cd48235f6dee023526aede8599 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /airflow/migrations/versions/0075_2_0_0_add_description_field_to_connection.py | 4c3f5835dcbfdf9b443396cbcceb764f421fbf89 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 2,008 | 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... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
c997ae3f2e974662ca89bdc82bccbd2658d4404b | 73f7cc0e71bfd38d3bfe97367324f1e7a5d8b451 | /engine_code/gapi/modules/proxy/cloud/parse.py | 0e1d8a64f87ac9893d254692c67c63c5b528386c | [] | no_license | cash2one/my-test | ccc0ae860f936262a601c1b579d3c85196b562f9 | 8bd23f5963f4dc7398b7670e28768a3533bd5d14 | refs/heads/master | 2021-01-18T03:20:30.889045 | 2017-01-19T02:52:02 | 2017-01-19T02:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,357 | py | #!/usr/bin/python
# -*- coding=utf-8 -*-
from xml.etree.ElementTree import ElementTree,Element
def read_xml(in_path):
'''读取并解析xml文件
in_path: xml路径
return: ElementTree'''
tree = ElementTree()
tree.parse(in_path)
print tree.parse(in_path)
return tree
def write_xml(tree, out_path):
... | [
"zhizhi1908@yeahh.net"
] | zhizhi1908@yeahh.net |
bfcfe9c39e88787a47af7b24c492c7cb2ba75116 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03150/s056018673.py | ba3699fc1ecf9d7f7a828e88f30db87b5e18b4da | [] | 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 | 159 | py | S = input()
ans = "NO"
for i in range(len(S)):
for j in range(len(S)):
if S[0:i] + S[i+j:len(S)] == "keyence":
print("YES")
exit()
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3e90c7f5b279e7d86b365e1a1faeb32f2420825d | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/02965/2965.py2.py | fead6e9c86c1bc1e100db0a5a2029668e08104b8 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
1edcceffcfbf8947bb55c85896d44b45eddc8739 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.HNS/Serif_16/pdf_to_json_test_Latn.HNS_Serif_16.py | 14b2d82b21a61c2d50f3845e482493f91f58415d | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.HNS/Serif_16/udhr_Latn.HNS_Serif_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
98649096ac72586c4cc39e7e4b5b32871381a937 | ffbad21b9e8a92f9669ebaa1e0542d9bf114f414 | /akshare/bank/bank_banker.py | e14042b63153052d133088af489debe4c662e335 | [
"MIT"
] | permissive | cqzhao/akshare | 6bccdb4eceae633609bb6a797760a5d05ed0165a | cd740d050015edd26590cc0f3d493d7dc57ea79b | refs/heads/master | 2023-03-02T01:24:19.238315 | 2021-01-25T04:06:27 | 2021-01-25T04:06:27 | 311,243,910 | 0 | 0 | MIT | 2021-01-25T04:06:28 | 2020-11-09T06:26:44 | null | UTF-8 | Python | false | false | 9,970 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2021/1/14 15:56
Desc: thebankerdatabase
https://www.thebankerdatabase.com/index.cfm/search/ranking
"""
import pandas as pd
import requests
from bs4 import BeautifulSoup
from tqdm import tqdm
def bank_rank_banker() -> pd.DataFrame:
"""
全球银行排名前 25 家
htt... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
ae5f27b58b42509c2fb6f82e2e426f521420b5dd | d87f6d9e769709def3efcf30230cd8bf6ac2cef7 | /WWTest/autotest/config/xkz/youyanyace/globalconfig/globalConfig.py | e6cc20a18999b112dc5f12dade19633d8c3165fc | [] | no_license | wawj901124/centos8xitong | 876dcc45b895871119404ad1899ca59ab5dd90b6 | 81fc0d1151e3172ceec2093b035d2cd921e1a433 | refs/heads/master | 2023-02-23T22:33:22.314433 | 2021-01-31T01:54:35 | 2021-01-31T01:54:35 | 290,476,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | class GlobalConfig(object):
ISONLINE = False
ONLINE_WEB_YUMING= ""
ONLINE_LOGIN_ACCOUNT = ""
ONLINE_LOGIN_PASSWORD = ""
TEST_WEB_YUMING = "http://111.207.18.22:22044/"
TEST_LOGIN_ACCOUNT = "admin"
TEST_LOGIN_PASSWORD = "admin123A"
COOKIE_FILE_NAME = "youyanyacelogincookie.json"
gc = G... | [
"wawj900805"
] | wawj900805 |
8fad67f8ce8ce001bfb436e710258ff19d7ff81a | 6849f09504c1b9e7e6b4bdc2a924f84ec98ec432 | /webapp/manage.py | 62c14e20c068799663d30d3c0e974d9a606680f0 | [
"Apache-2.0"
] | permissive | likit/lab-instrument-booking-app | a1c9d16635b8cff3511901d5510560349e8e5911 | c21b42342376dc54fdd11a7f87bc7609e6204020 | refs/heads/master | 2021-01-02T09:14:33.291562 | 2015-06-28T14:57:39 | 2015-06-28T14:57:39 | 37,254,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | #!/usr/bin/env python
import os
from app import create_app, mongo
from flask.ext.script import Manager, Shell
# from flask.ext.migrate import Migrate, MigrateCommand
from werkzeug.security import generate_password_hash
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
# migrate = Migrate(... | [
"preeyano@msu.edu"
] | preeyano@msu.edu |
3f3eebddf1980d557d39e2eef82f0f178cb64734 | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/code/sicp_code_python/2.2/exer2_36.py | 45876f0bdd6ff5e412e92460f44c40c00c5394aa | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """
exer2.36 accumulate_n
((1 2 3) (4 5 6) (7 8 9) (10 11 12))-->(22 26 30)
"""
import exer2_33 as funcs
import accumulate as accu
import operator as oper
def accumulate_n(op, init, seqs):
# 每个序列等长度,所以如果第一个处理完了,意味着都处理完了
if len(seqs[0])==0: return []
return funcs._append([accu.accumulate(op,
... | [
"643472092@qq.com"
] | 643472092@qq.com |
2f2897da3ab199c97a2904a7bc4488f42042c775 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/bwobsolete_helpers/PyGUI/FocusManager.py | d63a96b2d06f8769fe8fa7654f13ed3704920427 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,004 | py | # 2017.05.04 15:20:45 Střední Evropa (letní čas)
# Embedded file name: scripts/client/bwobsolete_helpers/PyGUI/FocusManager.py
_focusedComponent = None
def getFocusedComponent():
global _focusedComponent
return _focusedComponent
def setFocusedComponent(newFocus):
global _focusedComponent
if newFocus ... | [
"info@webium.sk"
] | info@webium.sk |
77cc7c9dea37d25900a3ef81b6fe8e5c4ac325d8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02259/s333912873.py | 70af1be9d0001017dd4c907d0d466616f478bb16 | [] | 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 | 439 | py | def bubbles(N):
count = 0
for i in range(len(N)):
for j in range(len(N)-1, i, -1):
if N[j] < N[j-1]:
N[j], N[j-1] = N[j-1], N[j]
count += 1
c = 1
for i in N:
print(i, end='')
if c < len(N):
print(' ', end='')
c +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5dfd1f2fa0a20f7374881feaa573ca57dd325796 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_040/ch152_2020_04_13_20_50_06_154418.py | 4e37d65e1c26223db4521858483a177d0b8585da | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | def verifica_preco(x,y,z):
dic1 = {}
dic2 = {}
for x, cor in y.items():
dic1[x] = cor
for cor2, valor in z.items():
dic2[cor2] = valor
if cor == cor2:
return valor
| [
"you@example.com"
] | you@example.com |
b9169e937fabc228e29384360ef65944f5973688 | 1d87b6e7cd7879fefeaa8f475045de1cc1bc2bf5 | /podder_task_foundation/logging/log_setting.py | db6d2ddd99e112b75acd67189097e92a65cda131 | [] | no_license | nagisa-sakamoto/podder-task-foundation | 2ecb24e07bbfcc1121661fb7d9e7005faf9093e0 | 8de453bf8f89d5ddcb8e82d394f73f3a8f715329 | refs/heads/main | 2022-12-30T01:10:23.051183 | 2020-10-20T08:13:55 | 2020-10-20T08:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | import logging
import os
from typing import Any, Dict
from podder_task_foundation.config import Config
class LogSetting:
TASK_NAME_PATH = 'task_name.ini'
DEFAULT_FORMAT = '[%(asctime)s.%(msecs)03d] %(levelname)s - %(message)s'
DATE_FORMAT = '%Y-%m-%d %H:%M:%S'
_log_setting = None
def __init__(se... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
d4bbd03fe42ba9327eb0c52142ba5c84766cd36c | ec153cf6c65b02d8d714e042bbdcf476001c6332 | /keystone/common/fernet_utils.py | cb7a69863bc71fd65b38a3e1a3ff689a24470723 | [] | no_license | bopopescu/dashboard | c4322f7602a9ba589400212aaef865ed4ffa8bdb | a74b4a549cd7d516dd9a0f5f2e17d06679c13bf6 | refs/heads/master | 2022-11-21T15:56:42.755310 | 2017-07-05T12:04:14 | 2017-07-05T12:04:17 | 281,596,428 | 0 | 0 | null | 2020-07-22T06:38:37 | 2020-07-22T06:38:36 | null | UTF-8 | Python | false | false | 11,370 | py | # 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 in writing, software
# distributed under t... | [
"laurencechan@qq.com"
] | laurencechan@qq.com |
dd29ba0161560b2e89b22a3616b0cd936035b9cb | 2589e080a2cc76bae58963576ebd76fc024bb64e | /Snakefile | 39024ec9c31e8fa55fdce4689f6a3f81b6f6f5fc | [
"Apache-2.0"
] | permissive | inambioinfo/2020plus | eb0d8932d3d0748d9676430c9d22af5c50727b60 | 5c1bda3cfe59719509408f96c473d6d9d582442f | refs/heads/master | 2020-03-28T05:18:48.417528 | 2018-08-02T15:04:32 | 2018-08-02T15:04:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,862 | from os.path import join
# configuration file
if 'config' not in vars() or not config or 'ntrees' not in config:
configfile: "config.yaml"
# output directory
output_dir=config["output_dir"]
# MAF file containing mutations
mutations=config["mutations"]
# pre-trained classifier
trained_classifier=config["trained_cl... | [
"collintokheim@gmail.com"
] | collintokheim@gmail.com | |
a500d0d54970ec25831ee58b453f03daf5f02059 | 306baa2ad596e3962e427d587e7b0d4175a1e48e | /configs/ttfnetv3/ttfv3net_r34_0114_3l_128_48_s16twice_basicup_aug_10x.py | 847551575ebcdb8c878b17ac7b992f8214941afd | [
"Apache-2.0"
] | permissive | mrsempress/mmdetection | 9c7ed7ed0c9f1d6200f79a2ab14fc0c8fe32c18a | cb650560c97a2fe56a9b369a1abc8ec17e06583a | refs/heads/master | 2022-04-24T04:34:30.959082 | 2020-04-26T07:52:23 | 2020-04-26T07:52:23 | 258,957,856 | 0 | 0 | Apache-2.0 | 2020-04-26T06:33:32 | 2020-04-26T06:33:32 | null | UTF-8 | Python | false | false | 4,154 | py | # model settings
model = dict(
type='TTFNet',
pretrained='modelzoo://resnet34',
backbone=dict(
type='ResNet',
depth=34,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_eval=False,
style='pytorch'),
neck=None,
bbox_head=dict(
... | [
"mrsempress98@gmail.com"
] | mrsempress98@gmail.com |
424604fc081fe31949ac6a2ea5e3618af401701a | b6e34dec0831f43d442e89c64f521f77bb2438b2 | /fbta/fbta_sequence.py | e2b01b7dfc4e19723ab1165e36d73b524e70cf67 | [] | no_license | kandation/FBTAFast | a1a38e09d5964915d46492f84f8fa0fead43185c | 505a2f232ef7ef9b6fc153357fb4eec5480cd92a | refs/heads/master | 2022-12-31T02:43:09.339384 | 2020-04-22T19:13:54 | 2020-04-22T19:13:54 | 212,693,322 | 0 | 0 | null | 2020-04-22T19:13:56 | 2019-10-03T22:34:15 | HTML | UTF-8 | Python | false | false | 4,209 | py | import time
from pprint import pprint
from fbta_04_activity_to_card import FBTAActivityToCardsNew
from fbta_05_cards_download_manager import FBTACardsDownloadManager
from fbta_02_clusters import FBTAClusterInfo
from fbta_06_photos_download_manager import FBTAPhotosDownloadManager
from fbta_07_dataft import FBTADataft
... | [
"akkhaporn@gmail.com"
] | akkhaporn@gmail.com |
c6b360f08562aaddf5900e08cd01d476537105f1 | 0edb94d9de7222d31ac8350a8cc330179f69ef60 | /urls.py | 5b7e936fb82222a7f0a25bc6333ac4cee7b25143 | [] | no_license | ondrejsika/django-1.6-blank-project | 0f503fd661ec38fd3a9977d2e8fb4772d1c6da80 | 51b59c0a3102d8601c0490d2ee0e3b65afee0b33 | refs/heads/master | 2016-09-11T00:06:38.522221 | 2015-04-12T18:54:28 | 2015-04-12T18:54:28 | 26,711,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'twistedexample.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| [
"ondrej@ondrejsika.com"
] | ondrej@ondrejsika.com |
d259ae82743f9dd80d1891b6d940a00ed317e4c1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03815/s988732380.py | cb8e305d533c05ff2909fab480bd1c9ceab07cc4 | [] | 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 | 102 | py | x = int(input())
a = x//11
b = x%11
if b == 0: print(2*a)
elif b > 6: print(2*a+2)
else: print(2*a+1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
94b4e8d8f567da5caa24b59eddc1e618e7006a22 | 12c41119156dd3783c3801e07f5f973289f26bb0 | /aliyun-python-sdk-dbs/aliyunsdkdbs/request/v20190306/ModifyBackupPlanNameRequest.py | ba55c010034c829610d62b54c02abad12cceb8cd | [
"Apache-2.0"
] | permissive | toywei/aliyun-openapi-python-sdk | bfe0893da38af9b222ce072fd7587d5b6cdce204 | ce8f683e3201fca8c473512267f50a34f71e31d3 | refs/heads/master | 2020-08-07T23:42:00.053692 | 2019-10-08T08:50:21 | 2019-10-08T08:50:21 | 213,626,962 | 1 | 0 | NOASSERTION | 2019-10-08T11:43:15 | 2019-10-08T11:43:15 | null | UTF-8 | Python | false | false | 1,697 | 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 |
1db358528dfe7eb150bfcf52b137cce3df1bb254 | 027dd49b92ee92c8faa5ea05bce95d28efd2268d | /Documents/django/crudView/crudapp/migrations/0001_initial.py | 03b4d87a72cb9fdab2c706d0b7c2ab583aa93a89 | [] | no_license | arunkumar27-ank-tech/RestAPIcrud | 0ac06a4f0b6cf3373eb76b815e3cd6c5748610d5 | 387c5fad78f4b72cfbbe47d06e79c1a15038ad69 | refs/heads/master | 2023-06-13T21:44:08.157685 | 2021-07-06T14:11:12 | 2021-07-06T14:11:12 | 383,477,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 3.1.5 on 2021-07-06 06:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"arunkumar834428@gmail.com"
] | arunkumar834428@gmail.com |
0527bee5e87be348d59d9a2dceebb0b42f5a6ea2 | c2be395eac600d0d853de03cd67070bd8391038f | /ofm_request_reverse_rd/__manifest__.py | 39a1213f2bec2e986a4933fa317933ec0a2efee5 | [] | no_license | amendoncabh/salary_emp | 960cfdb4df48df70ab361886039c790840a5e8d2 | 2ac2dd9461271153cb2ee406bf70a29f614c25f1 | refs/heads/master | 2022-03-30T22:35:10.704092 | 2020-01-05T16:23:20 | 2020-01-05T16:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # -*- coding: utf-8 -*-
# © <YEAR(S)> <AUTHOR(S)>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Trinity Roots :: OFM Request Approve Reverse RD",
"summary": "For updating related project modules",
"version": "8.0.1.0.0",
"category": "Uncategorized",
"description": "... | [
"loveprakon@gmail.com"
] | loveprakon@gmail.com |
2aa8324aee23f64603e3406c3de9441e9cb98c51 | 4b4544e5860bf2776ef578ba8e91dd34a9cf2b80 | /nodejs/patches/pkgsrc/lang/nodejs/patches/patch-deps_cares_cares.gyp | ba1548a9de0c9d65a856346f95ff4d5904181d81 | [
"CC0-1.0"
] | permissive | nabla-containers/rumprun-packages | 1e00e5cf0b6995f1772e8dff6b20d7d064ac71cf | 687c6dab278ff3dba68b914e1ed0511eb5525551 | refs/heads/solo5 | 2021-07-08T10:42:24.436007 | 2019-02-21T22:39:36 | 2019-02-21T22:43:57 | 137,268,640 | 1 | 4 | NOASSERTION | 2019-02-20T02:29:18 | 2018-06-13T20:44:12 | Makefile | UTF-8 | Python | false | false | 647 | gyp | $NetBSD: patch-deps_cares_cares.gyp,v 1.1 2013/05/22 15:17:07 mspo Exp $
Add support for NetBSD.
--- deps/cares/cares.gyp.orig 2013-03-14 10:55:24.000000000 +0900
+++ deps/cares/cares.gyp 2013-03-14 10:55:47.000000000 +0900
@@ -140,6 +140,10 @@
'include_dirs': [ 'config/freebsd' ],
'sources': [ '... | [
"dahalls@gmail.com"
] | dahalls@gmail.com |
ed240b64758a709dbdc34b22204a6fef55cf355e | b51ac97fc0dcb19c401f92a48e8657de9a2b86db | /tccli/services/tke/tke_client.py | a2c1e960dff0206080bec664527d89c408e09bbe | [
"Apache-2.0"
] | permissive | tarnover/tencentcloud-cli | 657b97d7b07997cff98456c111847d97324d9372 | 5b0537913a33884a20d7663405a8aa1c2276b41a | refs/heads/master | 2020-05-03T12:54:37.091798 | 2019-04-05T16:23:21 | 2019-04-05T16:23:21 | 178,639,639 | 0 | 0 | Apache-2.0 | 2019-04-05T05:36:09 | 2019-03-31T03:49:37 | Python | UTF-8 | Python | false | false | 12,592 | py | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from ... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
def2133f683035964fdbf030fa9a9bec0085cb22 | f1fcaf58e53792db786bf6ffb87f67b815ed600e | /Chapter8.py | 4e1e60f78cbb1e010b37949f78d483331693bc96 | [] | no_license | stephenosullivan/effective-python3 | 8e414d0aa64eb2a599ba661056809830b6e4a39f | c933b3f80021f9ba3d1f0ad608f563a106d89bd8 | refs/heads/master | 2021-01-13T07:39:56.418989 | 2015-10-04T01:27:26 | 2015-10-04T01:27:26 | 39,714,317 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | __author__ = 'stephenosullivan'
class Item55:
"""
Use repr Strings for debugging output
"""
def __init__(self):
a = "string"
print(a)
print(repr(a))
print(eval(repr(a)))
print('%r' % a)
a = Opaque(5,4)
print(a)
b = BetterClass(6,7)
... | [
"osullisg@gmail.com"
] | osullisg@gmail.com |
4344b251328ece82d57f22c21563a169e723a2c2 | f94e54d3085cd07a6f4972f2111574ad95fe4d89 | /utils/iotools.py | 406433fab0cdf5f54f662d8821bdadfae2017c15 | [] | no_license | banskt/statsfpl | b4e67ca4ed09a8cdc927ec4cb4ad570d891ad395 | b442208fa4d07e3a097445c75a4fd2f8098440ff | refs/heads/master | 2021-06-30T01:54:05.461439 | 2020-09-07T09:41:04 | 2020-09-07T09:41:04 | 143,441,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | import numpy as np
import collections
import csv
from utils.containers import FixtureInfo
def get_fixtures(filename, scores):
fixtures = [{} for x in range(38)]
with open(filename) as csvfile:
instream = csv.reader(csvfile, delimiter = ',')
for row in instream:
team = row[0].strip(... | [
"bnrj.saikat@gmail.com"
] | bnrj.saikat@gmail.com |
decc14ec6c9e00b0fbed6e000b45d1b1efb74fa2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2335/60705/241811.py | ab11ecca95033a28315b69c996ee7f5b73163e7e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | x = int(input())
y = int(input())
count = 0
s = {x}
while not s.__contains__(y):
s2 = set()
for i in s:
s2.add(2*i)
s2.add(i - 1)
for j in s2:
s.add(j)
count += 1
print(count) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d6e6e537527df94454a1ffa739957e917b26d616 | 8ce656578e04369cea75c81b529b977fb1d58d94 | /bank_guarantee/helpers/copy_request.py | 6d2267189010e53aa1b00484d02d30b070321647 | [] | no_license | JJvzd/django_exp | f9a08c40a6a7535777a8b5005daafe581d8fe1dc | b1df4681e67aad49a1ce6426682df66b81465cb6 | refs/heads/master | 2023-05-31T13:21:24.178394 | 2021-06-22T10:19:43 | 2021-06-22T10:19:43 | 379,227,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,328 | py | import os
import requests
from django.db import models
from django.db.models import Q
from django.utils import timezone
from django.utils.functional import cached_property
from sentry_sdk import capture_exception
from accounting_report.fields import QuarterData
from accounting_report.models import Quarter
from bank_g... | [
"javad@MacBook-Pro-Namig.local"
] | javad@MacBook-Pro-Namig.local |
788ef0052aafc50928a425010a71836954b38794 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/ChainedComparison9.py | b9dfa664cb719771acc687073432f02f50687c0f | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 24 | py | 0 < x and True and x < 2 | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
a30badd10e968213b68d1cab709d7f6258ff4478 | 921c29354a9065a4f76f816c2b2ec68457f66aef | /todo/tests/test_task.py | e4752471e00904681378c98b7d75e47dcc6c54c8 | [] | no_license | AmrAnwar/ToDoList | 520fa0529090183832dfd8c274fb3e7dad4d7a3b | de5e9e9887dee857e6169184aa9c7b74f31d32c4 | refs/heads/master | 2020-04-11T15:51:39.869491 | 2018-12-15T17:20:11 | 2018-12-15T17:20:11 | 161,905,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | from .test_init import InitTest
class TestList(InitTest):
def setUp(self):
super(TestList, self).setUp()
def test_get_task(self):
res = self.client.get(self.task.get_absolute_url())
self.assertEqual(res.status_code, 404)
self.client.login(username="anwar", password="password")... | [
"amranwar945@gmail.com"
] | amranwar945@gmail.com |
8de9d49675be983416774ae4bf4609d2d1d95145 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/142/usersdata/227/62295/submittedfiles/av2_p3_civil.py | 280c0440154f4d960bd1fc3ba353a60f8deb5e93 | [] | 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 | 633 | py | # -*- coding: utf-8 -*-
def media(a):
soma = 0
for i in range(0,len(a),1):
soma = soma + a[i]
media = soma/len(a)
return (media)
#ESCREVA AS DEMAIS FUNÇÕES
def somaA(x,y):
mx=media(x)
my=media(y)
soma=0
for i in range(0,len(x),1):
soma=soma+((x[i]-mx)*(y[i])-my)
ret... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a9e2684649859d6b87e451d62c77a2a7bc594f57 | 5b4b1866571453f78db5b06a08ff0eda17b91b04 | /test/vanilla/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py | 8514033f930cc55c1503dfc44161367f746472ce | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | koek67/autorest.azure-functions-python | ba345f1d194ca7431daab1210a0cd801d4946991 | b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783 | refs/heads/main | 2022-12-20T13:27:56.405901 | 2020-09-30T08:23:11 | 2020-09-30T08:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,257 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"varad.meru@gmail.com"
] | varad.meru@gmail.com |
e7f4f24803a27a38a46f361243a674a5236a571a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03274/s010264861.py | c2235d0bdb18733aa448f6ca2a63b3cad841e71a | [] | 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 | 463 | py | import collections
n,k = map(int, raw_input().split(' '))
xis = map(int, raw_input().split(' '))
ais = [xi for xi in xis if xi >= 0]
bis = [-xi for xi in xis if xi < 0][::-1]
m = ais[k -1] if k-1 < len(ais) else +float('inf')
m = min(m, bis[k -1] if k-1 < len(bis) else +float('inf'))
for i in range(len(ais)):
if i +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
75687bab192a3f68f275a053b3ee4aa69bc1955b | 523fb785bda41e33546c929a5c2de6c93f98b434 | /专题学习/树/BinaryTreePathDivideConquer.py | 63bc4f925a2a8db053b249b643773310f578e34c | [] | no_license | lizhe960118/TowardOffer | afd2029f8f9a1e782fe56ca0ff1fa8fb37892d0e | a0608d34c6ed96c9071cc3b9bdf70c95cef8fcbd | refs/heads/master | 2020-04-27T10:33:21.452707 | 2019-05-02T10:47:01 | 2019-05-02T10:47:01 | 174,259,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | """
Definition of TreeNode:
"""
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
class Solution:
"""
@param root: the root of the binary tree
@return: all root-to-leaf paths
"""
def binaryTreePaths(self, root):
paths = [] ... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
4eccb52479c5050a8cb64f03d50f62ec22ebf031 | 083d93a621f0fd411aabd9b1607e83aedd588d2c | /etg/propgridiface.py | 847a0e054be21e3f253b5d29483057e83d7d49fc | [] | no_license | jns4u/Phoenix | 0a8e5b50326d37048aa58d11023308517ace525b | 478e192ccf0d75a04b78c6600963614d1039dd53 | refs/heads/master | 2021-01-09T06:20:02.546100 | 2017-02-05T03:33:00 | 2017-02-05T03:33:00 | 80,965,252 | 1 | 0 | null | 2017-02-05T03:10:08 | 2017-02-05T03:10:08 | null | UTF-8 | Python | false | false | 2,648 | py | #---------------------------------------------------------------------------
# Name: etg/propgridiface.py
# Author: Robin Dunn
#
# Created: 23-Feb-2015
# Copyright: (c) 2015 by Total Control Software
# License: wxWindows License
#--------------------------------------------------------------------... | [
"robin@alldunn.com"
] | robin@alldunn.com |
f613d66153900cdfab69753db317f2b3e2792278 | 64c8d431c751b1b7a7cb7224107ee40f67fbc982 | /code/python/external/pi3d/constants/__init__.py | a0dfd912eed894eb189c79ca89c51473d892341d | [
"MIT"
] | permissive | silky/echomesh | 6ac4755e4ff5ea3aa2b2b671c0979068c7605116 | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | refs/heads/master | 2021-01-12T20:26:59.294649 | 2013-11-16T23:29:05 | 2013-11-16T23:29:05 | 14,458,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | from __future__ import absolute_import, division, print_function, unicode_literals
"""
pi3d.constants contains constant values, mainly integers, from OpenGL ES 2.0.
"""
VERSION = '0.06'
STARTUP_MESSAGE = """
Pi3D module - version %(version)s
Copyright (c) Tim Skillman, 2012-2013
Copyright (c) Patrick Gaunt, ... | [
"tom@swirly.com"
] | tom@swirly.com |
49acb7c799821f6f485dc8243c3203145bd9385f | c6db8eccba0f863e464fa23e7c8c5f27d6da277b | /CS/Programming_Languages/Python/Modules/exterior/topics/gui/dearPyGUI/tutorials/_3_item_usage/_3_3_configuration_state_info/configure_items.py | ea4e913f1183433230106f6806d466fcd30d277d | [] | no_license | corridda/Studies | ceabb94f48bd03a31e4414e9af841d6a9b007cf9 | 1aacf52f2762e05a416c9e73ebe20794cb5d21cf | refs/heads/master | 2023-02-05T18:51:04.217528 | 2023-01-28T09:21:03 | 2023-01-28T09:21:03 | 216,492,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import dearpygui.dearpygui as dpg
dpg.create_context()
with dpg.window(label="Tutorial"):
# configuration set when button is created
dpg.add_button(label="Apply", width=300)
# user data and callback set any time after button has been created
btn = dpg.add_button(label="Apply 2")
dpg.set_item_labe... | [
"corridda@yandex.ru"
] | corridda@yandex.ru |
2d2a0919eaf9d4900549e260e76a29a86aff5212 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab9/set 2/VICTORIA ALEXANDRA ALERS_19376_assignsubmission_file_Lab9/VICTORIA ALEXANDRA ALERS_19376_assignsubmission_file_Lab9.py | 23b6a370b40815a0efeb963db12ada5ea16a12bf | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #1________________________________
from math import sin, exp
class F:
def __init__(self, a, w):
self.a = a
self.w = w
def value(self, x):
a = self.a
w = self.w
return exp(-a * w) * sin(w * x)
from math import pi
f = F(a=1.0, w=0.1)
print (f.value(x=pi))
f.a = 2
print... | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
0844bbe4a8d7dc1254333da5414f1afff5a87ca7 | f4b694982027ac362de1e9d6755f2943d0355a06 | /DECSKS-24_--_Boundary_conditions_revisited_on_a_cell_centered_perspective/DECSKS/main.py | 64e3792512a19fa7015a7435945c2d43bd03da74 | [] | no_license | dsirajud/IPython-notebooks | 55275e44191c16f5393571522787993f931cfd98 | 6ad9d978c611558525fc9d716af101dc841a393b | refs/heads/master | 2021-01-15T15:33:57.119172 | 2016-07-13T20:08:29 | 2016-07-13T20:08:29 | 35,054,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,042 | py | #!/usr/bin/env python
#============================================================================##
#DECSKS - DEterministic Convected Scheme Kinetic Solver for Boltzmann systems #
#-----------------------------------------------------------------------------#
# 1D1V Vlasov-Poisson system, two species ... | [
"sirajuddin@wisc.edu"
] | sirajuddin@wisc.edu |
db65f69a9e0e554a65106f54ff445628c3458f7c | 839d8d7ccfa54d046e22e31a2c6e86a520ee0fb5 | /icore/high/thread/thread_queue.py | 7e1d562ecf087f475cb24370b431819ad85ae3b5 | [] | no_license | Erich6917/python_corepython | 7b584dda737ef914780decca5dd401aa33328af5 | 0176c9be2684b838cf9613db40a45af213fa20d1 | refs/heads/master | 2023-02-11T12:46:31.789212 | 2021-01-05T06:21:24 | 2021-01-05T06:21:24 | 102,881,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | # -*- coding: utf-8 -*-
# @Time : 2017/12/29
# @Author : LIYUAN134
# @File : thread_queue.py
# @Commment:
#
# -*- coding: UTF-8 -*-
import Queue
import threading
import time
exitFlag = 0
class myThread(threading.Thread):
def __init__(self, threadID, name, q):
threading.Thread.__init... | [
"1065120559@qq.com"
] | 1065120559@qq.com |
d5cd69bc39db446dab3c1bfa0714fd10795d9b13 | 107941a50c3adc621563fe0254fd407ea38d752e | /spider_03.py | ff843e21ab654378dec18c1fae8d152647acbf11 | [] | no_license | zhangliang852469/spider_ | 758a4820f8bd25ef6ad0edbd5a4efbaaa410ae08 | 718208c4d8e6752bbe8d66a209e6d7446c81d139 | refs/heads/master | 2020-04-05T07:12:03.790358 | 2018-11-08T07:17:22 | 2018-11-08T07:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""节点交互 """
from selenium import webdriver
import time
# browser = webdriver.Chrome()
# browser.get('https://www.taobao.com')
# input = browser.find_element_by_id('q')
# input.send_keys('iPhone')
# time.sleep(1)
# input.clear()
# input.send_keys('iPad')
# button = browser... | [
"710567585@qq.com"
] | 710567585@qq.com |
f46477242fa911d6e3c8332e24eb1cc7e38b0750 | 99d436394e47571160340c95d527ecadaae83541 | /algorithms_questions/ch14_sorting/q26_2.py | 1d3dbab643ddebf9f47062db3e7538e2d0eb1102 | [] | no_license | LeeSeok-Jun/Algorithms | b47ba4de5580302e9e2399bcf85d245ebeb1b93d | 0e8573bd03c50df3f89dd0ee9eed9cf8716ef8d8 | refs/heads/main | 2023-03-02T06:47:20.939235 | 2021-02-08T05:18:24 | 2021-02-08T05:18:24 | 299,840,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | """
카드 정렬하기 - 3회차
"""
# 풀이 제한 시간 : 30분
# 2021/01/21 14:57 ~ 15:15
# 실패 - 틀린 부분 주석 처리
import heapq
n = int(input())
data = []
for _ in range(n):
heapq.heappush(data, int(input()))
"""
sum_value = heapq.heappop(data)
while data:
now = heapq.heappop(data)
sum_value += now
heapq.heappush(data, sum_va... | [
"seok9376@gmail.com"
] | seok9376@gmail.com |
84a44293453107c4c6dd00597d3f3f1c970b6484 | de4e8e0f33dbd8bb39784907b420f05b2d62f65a | /test/test_sub_step_type.py | e57e83c7a9007b51213a5ff59a81bf9107ecdcc5 | [
"BSD-3-Clause"
] | permissive | hpcc-systems/uptrends-python | 489d7b513d1eeaf57569081363861010492a85e6 | 2e05ba851a4e65bde3c40514f499c475465bef90 | refs/heads/master | 2022-11-15T05:32:38.638456 | 2020-07-10T18:48:45 | 2020-07-10T18:48:45 | 256,216,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | # coding: utf-8
"""
Uptrends API v4
This document describes Uptrends API version 4. This Swagger environment also lets you execute API methods directly. Please note that this is not a sandbox environment: these API methods operate directly on your actual Uptrends account. For more information, please visit ... | [
"SandCr01@risk.regn.net"
] | SandCr01@risk.regn.net |
808df8fd000d1100b98a1532e9de2156af996c80 | 8ee9a85496208ed5f4331d437ec44cc17f7bce08 | /FinalPractice/SemanticSegmentation/U_net/model.py | 76320a94bd7d5507c70b0f20bc245ce78291b4fc | [] | no_license | Ollitros/ComputerVision | aa93527ef0172874a0034b61d1cae6c31f514734 | b0ec5d9f94406b4f8164d0ef7180226156ea1194 | refs/heads/master | 2020-04-03T19:23:06.898807 | 2019-06-13T04:56:29 | 2019-06-13T04:56:29 | 155,521,472 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | from tensorflow.keras.layers import Conv2D, MaxPool2D, UpSampling2D, \
Input, BatchNormalization, concatenate, Activation
from tensorflow.keras.models import Model
def model():
inputs = Input(shape=(128, 128, 3))
# 128
down1 = Conv2D(64, (3, 3), padding='same')(inputs)
down1 = BatchNormalization... | [
"Ollitros@gmail.com"
] | Ollitros@gmail.com |
24a1f766afd91bb14af906157c92b21157847e12 | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/Gather-Deployment-master/tensorflow/24.pyflink/notebooks/udf.py | c5bd455da383c118815ae7e7411968c2b4808d33 | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,501 | 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... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
6c137c6126c25690c337197affaf147d9e37e27b | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/processing/fits/interpolation_fit_selector.py | d87ba575e0cfa7ff8c9751b69ae6c15e42f3c200 | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | #===============================================================================
# Copyright 2013 Jake Ross
#
# 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
cdba6787cb45d6b039a3639d858ae0c457771963 | 9773059260c1f9395d182f7a65760b0917794a7f | /venv/bin/easy_install | 7b6db3a0dec0c3e534d13076015638fb1340631b | [] | no_license | Ruldane/DjangoCountWords | 05a452db5640b0efbff8f8e75061ed8dc2a40f6e | e54efb72caf678b7682642ce29b54b7d68170fa2 | refs/heads/master | 2020-06-10T19:50:41.289276 | 2019-06-25T14:54:39 | 2019-06-25T14:54:39 | 193,728,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | #!/home/ruldane/PycharmProjects/countword/venv/bin/python
# 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?|\.exe)?$'... | [
"l.nizzoli@gmail.com"
] | l.nizzoli@gmail.com | |
46780ffe28ee6581b83e37f84a8955507f9583fc | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/HackerRank-Mathematics/Constructing a Number.py | c87d42e4fdaa23fd44e0b8922ae34ab56bbcd61e | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!/bin/python3
import math
import os
import random
import re
import sys
def canConstruct(a):
return "Yes" if sum(a) % 3 == 0 else "No"
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
t = int(input())
for t_itr in range(t):
n = int(input())
a = list(map(int,... | [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
4abb7fabbd57ff0a857464e0b5557d97d45f5452 | 7a9034fa0698e9b6481c5de35ffd91c96d7552e9 | /personal_site/settings.py | 744f94f86bf4b5ecbb9947fff3a52102ef65e017 | [] | no_license | k4u5h4L/personal_site | 0e3144b62d9be0e08cf803cc5378c75f40425735 | 807867332e9bca759e2de8a28eb1840d2dd6a451 | refs/heads/main | 2023-02-07T07:52:11.031056 | 2020-12-19T16:36:38 | 2020-12-19T16:36:38 | 322,577,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,785 | py | """
Django settings for personal_site project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"kaushal.v.bhat@gmail.com"
] | kaushal.v.bhat@gmail.com |
16f2f9490ec4a93471d45983ce6e3dc1fb71d1e2 | 2a03132e5742ea5d4012327194bc7ec4e7096194 | /tools/actions_local_runner.py | 4082abda527b90fe1b0a7da2a316ef5323d1dabd | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | jmnarloch/pytorch | 11f7be7b6d47b11868ede673879f651084f4e976 | 74c12da4517c789bea737dc947d6adc755f63176 | refs/heads/master | 2023-05-05T07:40:18.135517 | 2021-05-24T04:34:55 | 2021-05-24T04:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,495 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import subprocess
import sys
import os
import argparse
import yaml
import asyncio
import shutil
import re
import fnmatch
import shlex
import configparser
from typing import List, Dict, Any, Optional, Tuple, Union
REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
5c03b63199ce12903d3e2e9941d7d45034431151 | de95e9ace929f6279f5364260630e4bf7a658c1c | /recursion.py | bb3d67bb866d8fbe991317696a4fae7cd83a89fe | [] | no_license | ludwigwittgenstein2/Algorithms-Python | ceaf0739b8582f7bd749a9b3f52f283765044744 | c5bed8b2e398c218d1f36e72b05a3f5545cf783a | refs/heads/master | 2021-06-19T11:40:31.012268 | 2017-07-02T04:59:20 | 2017-07-02T04:59:20 | 75,953,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | def factorial(n):
if n == 0:
return 1
else:
recurse = factorial(n - 1)
result = n*recurse
return result
| [
"penpals.oranges14@gmail.com"
] | penpals.oranges14@gmail.com |
706e98389051b53c21fed428b65f6748aea8884a | 18f8a1c7122c0b320f17ea31192439779a8c63e8 | /zoom/component.py | 4c33c561fec51ddfa4e1a08ca62ab77817d6130e | [
"MIT"
] | permissive | RyanLainchbury/zoom | d49afa8d3506fca2c6e426707bd60ba640420a45 | 684a16f4fe3cea3d26f2d520c743a871ca84ecc5 | refs/heads/master | 2020-12-25T19:03:12.881247 | 2017-06-09T07:29:27 | 2017-06-09T07:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,879 | py | """
zoom.component
Components encapsulate all of the parts that are required to make a
component appear on a page. This can include HTML, CSS and Javascript
parts and associated libraries.
Components parts are assembled in the way that kind of part
needs to be treated. For example HTML parts... | [
"herb@dynamic-solutions.com"
] | herb@dynamic-solutions.com |
267bb492f6f1d1c52316995189ee560e6d5fac8b | cbbd5ae034bfc4a81a49af0fb7712516136afa6a | /PycharmProjects/Sensel/MISC/plot_contact_point_dynamic.py | c9c6a4d57c05bf7f73c33ae49037fdcb550ba242 | [] | no_license | pratikaher88/SenselWork | fafe12037ae8349510f29b3dc60130d26992ea77 | d6f17bca7d2ac6ec6621f9b1b1540ca9e80eb2f7 | refs/heads/master | 2020-03-22T09:12:19.559029 | 2019-09-08T19:25:15 | 2019-09-08T19:25:15 | 139,822,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,496 | py | #!/usr/bin/env python
##########################################################################
# MIT License
#
# Copyright (c) 2013-2017 Sensel, Inc.
#
# 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... | [
"pratikaher88@gmail.com"
] | pratikaher88@gmail.com |
4c533330fc30bad9170734f0a1c30bbcfc8d9a59 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190117213541.py | 1cc9c0f906fa3ff3efcc249cec01387c59eb07fa | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,830 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
cf24680305aff81ff86ab5ebb28a06a585343af1 | cbfddfdf5c7fa8354162efe50b41f84e55aff118 | /venv/lib/python3.7/site-packages/apscheduler/executors/debug.py | ac739aebcef52bb0b824e66c1fcfc7693b4fab6a | [
"MIT",
"Apache-2.0"
] | permissive | tclerico/SAAC | 8d2245221dd135aea67c5e079ac7eaf542b25e2f | 2f52007ae8043096662e76da828a84e87f71091e | refs/heads/master | 2022-12-09T21:56:33.430404 | 2019-02-20T14:23:51 | 2019-02-20T14:23:51 | 153,152,229 | 3 | 0 | MIT | 2022-09-16T17:52:47 | 2018-10-15T17:13:29 | Python | UTF-8 | Python | false | false | 573 | py | import sys
from apscheduler.executors.base import BaseExecutor, run_job
class DebugExecutor(BaseExecutor):
"""
A special executor that executes the target callable directly instead of deferring it to a
thread or process.
Plugin alias: ``debug``
"""
def _do_submit_job(self, job, run_times):
... | [
"timclerico@gmail.com"
] | timclerico@gmail.com |
fda997527f91121c4f1bffd1b3f2b0ddcc3dc4fa | 1d7eec692553afc411ec1e7325634f71a2aed291 | /backend/curriculum_tracking/migrations/0007_auto_20200710_1319.py | 9c49a0b43cc247004d1e90d0e0992ef9482c6d27 | [] | no_license | Andy-Nkumane/Tilde | a41a2a65b3901b92263ae94d527de403f59a5caf | 80de97edaf99f4831ca8cb989b93e3be5e09fdd6 | refs/heads/develop | 2023-05-09T10:02:41.240517 | 2021-05-28T09:20:51 | 2021-05-28T09:20:51 | 299,501,586 | 0 | 0 | null | 2020-10-25T22:37:30 | 2020-09-29T04:10:48 | Python | UTF-8 | Python | false | false | 1,043 | py | # Generated by Django 2.1.5 on 2020-07-10 13:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('curriculum_tracking', '0006_auto_20200701_0539'),
]
operations = [
migrations.AddField(
model_name='recruitproject',
... | [
"sheena.oconnell@gmail.com"
] | sheena.oconnell@gmail.com |
966665af55225f40fdd4da19c28dd883a43f62ff | 3c8bc614c9f09db5efce54af3cbcaf78e0f48b54 | /0x0B-python-input_output/4-append_write.py | e5256329fd3346953966d0bb9bdd0fec8b45629c | [] | no_license | davidknoppers/holbertonschool-higher_level_programming | 7848d301c4bf5c1fa285314392adfb577d6d082f | beaf6e5ece426c2086f34763e50c3ce0f56923ac | refs/heads/master | 2021-04-29T10:10:27.071278 | 2017-05-03T02:46:44 | 2017-05-03T02:46:44 | 77,847,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/python3
"""
One function in this module
append_write opens a file and appends some text to it
"""
def append_write(filename="", text=""):
"""
open file
put some text at the end of it
close that file
"""
with open(filename, mode='a', encoding="utf-8") as myFile:
chars_written... | [
"david.knoppers@holbertonschool.com"
] | david.knoppers@holbertonschool.com |
51e143411179c72bfa7bbfbd9bd7d7bd04103a16 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/model_test.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/quantize/python/common.py | 78f1c2bb4f48920369f7dab6876ead2faead3890 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 185 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/quantize/python/common.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
e1164b25df69866a6cb1d50cfb9672d8d6217e7a | a9e81c87022fdde86d47a4ec1e74791da8aa0e30 | /python-learning/libraries/pyqt5/base/layouts/complex-layout.py | b774d4700b1104671fb8542f99d2d70b4238e84f | [
"Apache-2.0"
] | permissive | ymli1997/deeplearning-notes | c5c6926431b7efc1c6823d85e3eb470f3c986494 | f2317d80cd998305814f988e5000241797205b63 | refs/heads/master | 2020-07-29T11:15:43.689307 | 2018-05-05T10:58:18 | 2018-05-05T10:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # -*- coding: utf-8 -*-
'''
复杂布局
'''
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import sys
class Form(QMainWindow):
def __init__(self,parent=None):
super().__init__(parent)
centerWidget = QWidget()
defalutLayout = QVBoxLayout()
vboxla... | [
"kkoolerter@gmail.com"
] | kkoolerter@gmail.com |
1b9da0c86e0e095737f906fdf95ded574b5a0f3c | 7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1 | /src/301.py | 55d8e16e1a35748acecac34a5c82e9d8d714e5c4 | [] | no_license | ecurtin2/Project-Euler | 71f79ee90a9abd0943421677d78a6c087419e500 | 79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3 | refs/heads/master | 2021-03-19T14:52:57.045443 | 2018-04-12T22:05:37 | 2018-04-12T22:05:37 | 100,059,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | """
Nim is a game played with heaps of stones, where two players take it in turn to remove any number of stones from any heap until no stones remain.
We'll consider the three-heap normal-play version of Nim, which works as follows:
- At the start of the game there are three heaps of stones.
- On his turn the player re... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
a24baa4d6bc822d4b1281390833220aec3d84176 | 2aa47f47fb81798afdf41437844cbbea8e9de66c | /02pythonBase/day10/res/exercise/mysum.py | f01610139cf297dab58d87dd27cd73d8d71c2bb2 | [] | no_license | nykh2010/python_note | 83f2eb8979f2fb25b4845faa313dbd6b90b36f40 | 5e7877c9f7bf29969072f05b98277ef3ba090969 | refs/heads/master | 2020-04-27T23:10:16.578094 | 2019-03-23T02:43:14 | 2019-03-23T02:43:14 | 174,765,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # 练习:
# 写一个函数 mysum, 可以传入任意个实参的数字,
# 此函数返回所有实参的和:
# def mysum(*args):
# ... # <<<--- 此处需要自己实现
# print(mysum(1, 2, 3, 4)) # 10
# print(mysum(1, 2, 3, 4, 5)) # 15
def mysum(*args):
print("第11行的mysum被调用!")
s = 0 # 用于累加和
for x in args:
s += x
return s
def mysum(*args):
pri... | [
"xulingfeng@boe.com.cn"
] | xulingfeng@boe.com.cn |
40dfe239746f14da2cd97adf27df4e81ed29da65 | 4f7140c62cc649373379941224072c9e6b707ef7 | /examples/prompts/clock-input.py | fd1f8760ed2e77af6f65fbae97fa63ce949125fe | [
"BSD-3-Clause"
] | permissive | qianhaohu/python-prompt-toolkit | 03d282a0a6a258a08ef822bc342a6b7fb65667f7 | 237cf46ff50c8a689a72e3dfe664dfe69bffd245 | refs/heads/master | 2020-05-16T05:19:38.934218 | 2019-04-16T19:10:07 | 2019-04-16T19:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | #!/usr/bin/env python
"""
Example of a 'dynamic' prompt. On that shows the current time in the prompt.
"""
from __future__ import unicode_literals
import datetime
from prompt_toolkit.shortcuts import prompt
def get_prompt():
" Tokens to be shown before the prompt. "
now = datetime.datetime.now()
return ... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
5d9c0e1d64a54205baad6cd4387d049d7075add4 | 96622790b66e45926b79bc524ec75a0f4d53a7eb | /src/misc-preprocessing-scripts/maeToPdb.py | 607322e4c183184fce0eb9365a2c80401d9cb81f | [] | no_license | akma327/GPCR-WaterDynamics | a8c2e13e18f953b6af66a3e669052cb3eacd346b | 685f4dea0605d65c003bf952afd964df6e605b06 | refs/heads/master | 2021-01-22T07:42:42.539496 | 2017-05-27T07:23:44 | 2017-05-27T07:23:44 | 92,574,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | # Author: Anthony Kai Kwang Ma
# Email: akma327@stanford.edu
# maeToPdb.py
# MAE To PDB File Converter
# Usage:
# python maeToPdb.py <input path to mae> <output path for pdb> <optional pdb file name>
# <input path to mae> Provide the absolute path to the mae file name
# <output path for pdb> Provide the directory pat... | [
"akma327@stanford.edu"
] | akma327@stanford.edu |
d6d93cb282a9b64ae57a7522d83152c22b1aae24 | 6814b9b28204fa58f77598d01c760ddeb4b66353 | /baselines/jft/experiments/jft300m_vit_base16_heteroscedastic_finetune_cifar.py | 8384bfa093ad4ce0435cbcdfa7302096e6fa5720 | [
"Apache-2.0"
] | permissive | qiao-maoying/uncertainty-baselines | a499951ea1450323e00fe03891ba8f781fe1cdc7 | 54dce3711b559ae3955a8a7d05c88eb982dea470 | refs/heads/main | 2023-07-17T23:17:10.867509 | 2021-08-18T20:32:11 | 2021-08-18T20:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py | # coding=utf-8
# Copyright 2021 The Uncertainty Baselines 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 ap... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5cffb5a2fb9d408a8f4fe88b0e46d790428e9c92 | 1bde114a847c629701e3acd004be5788594e0ef1 | /Examples/Decorator/alldecorators/CoffeeShop.py | 9e4861b473c3803d1d2a0b2ad0b382e4cce35f7a | [] | no_license | BruceEckel/ThinkingInPython | 0b234cad088ee144bb8511e1e7db9fd5bba78877 | 76a1310deaa51e02e9f83ab74520b8269aac6fff | refs/heads/master | 2022-02-21T23:01:40.544505 | 2022-02-08T22:26:52 | 2022-02-08T22:26:52 | 97,673,620 | 106 | 33 | null | 2022-02-08T22:26:53 | 2017-07-19T04:43:50 | Python | UTF-8 | Python | false | false | 1,722 | py | # Decorator/alldecorators/CoffeeShop.py
# Coffee example using decorators
class DrinkComponent:
def getDescription(self):
return self.__class__.__name__
def getTotalCost(self):
return self.__class__.cost
class Mug(DrinkComponent):
cost = 0.0
class Decorator(DrinkComponent):
def __init... | [
"mindviewinc@gmail.com"
] | mindviewinc@gmail.com |
a7c8fa0bda79edadd701b585eff8e09a773467c6 | e7c3d2b1fd7702b950e31beed752dd5db2d127bd | /code/super_pandigital_numbers/sol_571.py | 50c76cee64069e830d981145a37c35c2cc3edff5 | [
"Apache-2.0"
] | permissive | Ved005/project-euler-solutions | bbadfc681f5ba4b5de7809c60eb313897d27acfd | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | refs/heads/master | 2021-09-25T08:58:32.797677 | 2018-10-20T05:40:58 | 2018-10-20T05:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py |
# -*- coding: utf-8 -*-
'''
File name: code\super_pandigital_numbers\sol_571.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #571 :: Super Pandigital Numbers
#
# For more information see:
# https://projecteuler.net/problem=571
# Problem ... | [
"vaidic@vaidicjoshi.in"
] | vaidic@vaidicjoshi.in |
086f15693af91521b68d827e7613c2ac26e02baf | 7f57c12349eb4046c40c48acb35b0f0a51a344f6 | /2015/PopulatingNextRightPointersInEachNode_v1.py | 3577626399488b0ca50d165ddf85bbb001892a21 | [] | no_license | everbird/leetcode-py | 0a1135952a93b93c02dcb9766a45e481337f1131 | b093920748012cddb77258b1900c6c177579bff8 | refs/heads/master | 2022-12-13T07:53:31.895212 | 2022-12-10T00:48:39 | 2022-12-10T00:48:39 | 11,116,752 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | #!/usr/bin/env python
# encoding: utf-8
# Definition for binary tree with next pointer.
class TreeLinkNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
self.next = None
def __repr__(self):
return '<{}>'.format(self.val)
class Solution:
... | [
"stephen.zhuang@gmail.com"
] | stephen.zhuang@gmail.com |
37a55e826ebb167071a7c6afe9b42c8b3264506b | b24e45267a8d01b7d3584d062ac9441b01fd7b35 | /Usuario/.history/views_20191023114840.py | 870eeb90df98b7537147ae14418728dfb2b3fb07 | [] | no_license | slalbertojesus/merixo-rest | 1707b198f31293ced38930a31ab524c0f9a6696c | 5c12790fd5bc7ec457baad07260ca26a8641785d | refs/heads/master | 2022-12-10T18:56:36.346159 | 2020-05-02T00:42:39 | 2020-05-02T00:42:39 | 212,175,889 | 0 | 0 | null | 2022-12-08T07:00:07 | 2019-10-01T18:56:45 | Python | UTF-8 | Python | false | false | 2,211 | py | from django.shortcuts import render
from rest_framework import status
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework.permissions import AllowAny
from .models import Usuario
from .serializers import UsuarioSerializer
SUCCESS = 'exito'
ERROR =... | [
"slalbertojesus@gmail.com"
] | slalbertojesus@gmail.com |
d2333889ef1fc70d5e7c0a79e6f3112aa752306a | 6fc84acaaf012f6cbbcb918390a4ed5508f84414 | /opalWebsrv/test.py | 5f5f02fee393637efbf17662b5ee5d476b2f476d | [] | no_license | missinglpf/MAS_finite_consenus | 43f03bdb2417c6da98cb5ff5a6b8b888ec1944b3 | a83e8709dd12e5965ef4a5b413d056a434dd1245 | refs/heads/master | 2020-08-01T03:42:44.747402 | 2018-06-25T06:01:10 | 2018-06-25T06:01:10 | 210,850,495 | 3 | 0 | null | 2019-09-25T13:20:32 | 2019-09-25T13:20:32 | null | UTF-8 | Python | false | false | 2,298 | py | #! /usr/bin/python
import struct
import socket
import urllib
import subprocess
import sys
import time
import os
import traceback
def portIsOpened(hostip, port):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex((hostip,port))
if result == 0:
return True
else:
return False
def fa... | [
"tunglam87@gmail.com"
] | tunglam87@gmail.com |
43dcac20edd103067c8fa3fce010b8162d077b2a | 552ba370742e346dbb1cf7c7bf4b99648a17979b | /tbx/services/blocks.py | cbd8282834c2d89bfbac3f75334fcd64d1e9a9a5 | [
"MIT"
] | permissive | arush15june/wagtail-torchbox | 73e5cdae81b524bd1ee9c563cdc8a7b5315a809e | c4d06e096c72bd8007975dc016133024f9d27fab | refs/heads/master | 2022-12-25T05:39:32.309635 | 2020-08-13T14:50:42 | 2020-08-13T14:50:42 | 299,591,277 | 0 | 0 | MIT | 2020-09-29T11:08:49 | 2020-09-29T11:08:48 | null | UTF-8 | Python | false | false | 3,242 | py | from wagtail.core.blocks import (CharBlock, ListBlock, PageChooserBlock,
RichTextBlock, StreamBlock, StructBlock,
TextBlock, URLBlock)
from wagtail.images.blocks import ImageChooserBlock
from tbx.core.blocks import PullQuoteBlock
class CaseStudyBlock(... | [
"karl@torchbox.com"
] | karl@torchbox.com |
d5e6beb44c4d3eabfbc1f90c7e6154546b5390be | 3a85089c2498ff04d1b9bce17a4b8bf6cf2380c9 | /RecoMuon/TrackingTools/python/__init__.py | 46c2d8c095c7740e0d099c19bde145fc026b6c15 | [] | no_license | sextonkennedy/cmssw-ib | c2e85b5ffa1269505597025e55db4ffee896a6c3 | e04f4c26752e0775bd3cffd3a936b288ee7b0268 | HEAD | 2016-09-01T20:09:33.163593 | 2013-04-26T12:05:17 | 2013-04-29T16:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/RecoMuon/TrackingTools/',1)[0])+'/cfipython/slc6_amd64_gcc480/RecoMuon/TrackingTools')
| [
"giulio.eulisse@cern.ch"
] | giulio.eulisse@cern.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.