blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed515808184c081c4fe7c811731cae8cc21cb5fd | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/imantics/annotation.py | 5535c91b19b0b5a735786a01eb14c20edbc7670d | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4337ed1406db4375634044a08344b5e77cd0331e135f6356cd1b5ece79d71b35
size 27249
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
2c1962938cf8bb8b5efd4e2c67d5f4f15c221da2 | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/lib/surface/dataproc/jobs/update.py | 749d26147d72d4fcd856c79801bef8d5f2eb664d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 2,865 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"luizfper@gmail.com"
] | luizfper@gmail.com |
f4ea20b4c2b18eb379561c51c45e1ffce98af783 | 2a4432ce7d738b3670e07841d211689e3b4b19c0 | /code/01-basics/lists-03.py | 08a8627f70507e10491153f1609d272bc74a84cb | [] | no_license | avdata99/programacion-para-no-programadores | 3f9ebba212fb1401bf5bba3befc394f4017d1de6 | cb2405a6789535aa0c276b43116adb22b2c24a54 | refs/heads/master | 2022-12-14T10:18:23.523639 | 2022-11-29T00:55:14 | 2022-11-29T00:55:14 | 144,493,639 | 6 | 2 | null | 2022-11-17T23:53:47 | 2018-08-12T19:07:15 | Python | UTF-8 | Python | false | false | 1,156 | py | apellidos = ["gonzalez", "gomez", "rodriguez", "lopez", "garcia"]
total_apellidos = len(apellidos)
print(f'Total de apellidos: {total_apellidos}')
# Total de apellidos: 5
primer_apellido = apellidos[0]
print(f'El primer apellido es: {primer_apellido}')
# El primer apellido es: gonzalez
ultimo_apellido = apellidos[-1... | [
"andres@data99.com.ar"
] | andres@data99.com.ar |
7b3cdaf3ccf1f5c613858afc5c0fa5a59173d639 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/mehmet/trinity/base/kdenetwork/actions.py | 19635dd1b8448712d3dda9394fabfd51056431d3 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import kde
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
3e98aa2b893184dcc8212f0ed3f0280ba18d4a70 | 5f845ebbc2c9b40eea702833c91928ae90ae7ee5 | /algorithms/sansa-and-xor.py | c530755cda1afdf3da0b31b5a9bbdc62129a51ba | [
"MIT"
] | permissive | imgeekabhi/HackerRank | 7a1917fee5af01976aebb9c82aa1045a36487016 | 7fe4a308abad85ce446a28328324be480672e6fc | refs/heads/master | 2022-12-28T19:13:49.098090 | 2020-10-11T09:29:08 | 2020-10-11T09:29:08 | 300,023,395 | 1 | 0 | MIT | 2020-09-30T18:48:12 | 2020-09-30T18:48:11 | null | UTF-8 | Python | false | false | 443 | py | #!/bin/python3
import sys
def sansaXor(arr):
res = 0
arr_len = len(arr)
if arr_len % 2 == 0:
return 0
for ind in range(0, arr_len, 2):
res ^= arr[ind]
return res
if __name__ == "__main__":
t = int(input().strip())
for a0 in range(t):
n = int(inpu... | [
"sergey.n.nemov@gmail.com"
] | sergey.n.nemov@gmail.com |
53398a65baec73f067d92879974a00c707a3553c | e681066a46e0b6ee27b23c9ea8ff471225e053e7 | /email_auth/account/migrations/0002_auto_20200513_2234.py | 37c420d45b631497c8626f62bb7b871d8785660f | [] | no_license | arajo-hub/Test_Email-auth | b629108b99bcef69c072269c488cfe3217ff2c01 | 600a4923079ecff34d12c76a266ab0e21cb61cbf | refs/heads/master | 2022-06-29T10:41:27.451862 | 2020-05-14T12:58:07 | 2020-05-14T12:58:07 | 263,462,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | # Generated by Django 3.0.6 on 2020-05-13 13:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='date_joined',
)... | [
"joara9566@naver.com"
] | joara9566@naver.com |
f52e7164e94f5951904433989503d2f1555eb7e7 | 4393a24ad5fbf31a59c3521ce4c66ff7d9a378bc | /wework/test_wework.py | bd605fe86d74a79775c427c23c18c0b2c3ccc461 | [] | no_license | Frecy16/learning | deba0abe0c326c6624456d83d3b75f06065c3834 | a2b92f1c1dbd24bb5cc15ec9639c51aa8ca24902 | refs/heads/master | 2022-01-27T00:04:43.433775 | 2022-01-19T01:34:14 | 2022-01-19T01:34:14 | 210,374,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,809 | py | # import json
# import random
import re
import pytest
import requests
def test_create_data():
"""
1、列表生成器
2、生成器
3、迭代器
"""
data = [("weixiao" + str(x),
"魏潇" + str(x),
"152%08d" % x) for x in range(20)]
print(data)
return data
class Testwework:
@pytest.fi... | [
"1376210796@qq.com"
] | 1376210796@qq.com |
450c570d599fad38b19bafb4021da6c048f0d793 | 306d4c4ac51dbe13ae9fee8b3577ffc1ede53094 | /ocelot/transformations/consequential/technology_levels.py | 19451a83b04aea3c66e1fe1321f91acf228aa347 | [] | no_license | damanncarlos/Ocelot | 80563c4ab4508a945a4a29b53cc3d0ba9906897d | 20e9639570c43f84ae255750a6c402ebabe00981 | refs/heads/master | 2022-01-08T15:25:15.997661 | 2019-03-18T16:31:43 | 2019-03-18T16:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | # -*- coding: utf-8 -*-
from ... import toolz
from ...collection import Collection
import logging
def log_conflicting_technology_levels(data):
"""Log anytime that there are both ``undefined`` and ``current`` inputs to a market.
The behaviour when this condition occurs is undefined. We will later change all t... | [
"cmutel@gmail.com"
] | cmutel@gmail.com |
a82e1eb0f34a3bd2d043461fa04d85c621dd4cd5 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/core/framework/log_memory_pb2.py | 877be5882f2c766befdd8db5688b8069c4336556 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:855f12f0d0944d6b927291e87424c9455e25c435568ede0a38451bc1a808da1a
size 16503
| [
"github@cuba12345"
] | github@cuba12345 |
3a501e957c950c05c748d009493cf36c34f4b4c1 | 48e442524807b249ec001b712716c23094d8e2ed | /_side_projects/client-server-request_size_experiments/ServerBlobTest.py | 6ee7106de4955d09cc763d1125f7c5d990d410b4 | [] | no_license | BillMK/AttentionPipeline | a3ad4befe1b62e6d8b24b53c8db3123a8fd97bda | 70e37142e79996e62c51c85de996127e38606efa | refs/heads/master | 2022-02-26T12:13:42.754907 | 2019-10-23T22:21:26 | 2019-10-23T22:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | import evaluation_code.darkflow_handler as darkflow_handler
from keras.preprocessing.image import img_to_array
from evaluation_code.encoding import base64_decode_image
from threading import Thread
import time
from PIL import Image
import flask
import io
import os
from timeit import default_timer as timer
from multipr... | [
"previtus@gmail.com"
] | previtus@gmail.com |
49ecb24adbd6f2b9430e2a9828ec499e8267a836 | b627da650f75bdcf7e0dc0ef5c4419cf53a1d690 | /src/zqh_rocc/zqh_rocc_stub.py | b95f9096e435d5ea53232f3bfed6a993edd861ec | [] | no_license | Jusan-zyh/zqh_riscv | 4aa8a4c51e19fb786ba0c2a120722f1382994a52 | bccde2f81b42ac258b92c21bb450ec6ff848387a | refs/heads/main | 2023-08-06T12:56:52.420302 | 2021-09-21T01:25:41 | 2021-09-21T01:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | import sys
import os
from phgl_imp import *
from .zqh_rocc_main import zqh_rocc_base_module
class zqh_rocc_stub(zqh_rocc_base_module):
def main(self):
super(zqh_rocc_stub, self).main()
self.io.cmd.ready /= 0
self.io.resp.valid /= 0
self.io.resp.bits /= 0
self.io.mem.req.val... | [
"zhouqinghua888@163.com"
] | zhouqinghua888@163.com |
412d627460ca3bf78dd7d852aef36fe557ff61f5 | 1eb488aea8ca5c9dca18f110b63e4936f91f9bb6 | /detecting_double_compression_using_lame_and_mpg123/training_models.py | 18a19caedf3433f5feb0fb0f14df7ddf81831c91 | [] | no_license | brickgao/Audio_Detecting_Misc | fbd5f51a54311ceecbea8ec6069ffc6580d7830c | 65d93597d0565042653fbb8c5d5c485524717867 | refs/heads/master | 2021-01-23T06:44:52.706198 | 2014-04-15T15:23:23 | 2014-04-15T15:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | # -*- coding: utf-8 -*-
import os
from libsvm.svmutil import *
_bitrate_list = [u'8', u'16', u'24', u'32', u'40', u'48',
u'56', u'64', u'80', u'96', u'112', u'128',
u'160', u'192', u'224', u'256', u'320']
_bitrate_list = [u'32']
_y, _x = [], []
def analyse_process(_group):
os.re... | [
"brickgao@gmail.com"
] | brickgao@gmail.com |
9b5d20d47711ba7a83d06dde399a527b07dff842 | afa9fcd0f2443515ba89e96ed4eb9416e9d11847 | /python/GafferUITest/WidgetSignalTest.py | 16c810b148248bdab25d26e477a037f8edb2b1cb | [
"BSD-3-Clause"
] | permissive | dneg/gaffer | 6eb12b3ab3cde00afdf170c456969a38f5968237 | e87cb50f55a048cd7f6d5dcdfe6f95e38db2c5b6 | refs/heads/master | 2021-01-16T18:13:33.456876 | 2013-09-24T17:23:58 | 2013-09-24T17:23:58 | 13,094,917 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | ##########################################################################
#
# Copyright (c) 2011, John Haddon. All rights reserved.
# Copyright (c) 2012, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided t... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
29c05be213a365da1ca935d1295d2c2a2962abe5 | f6c0eb27a3a8e93e8d0f38d105e584af826753c4 | /00_3DVector_11.py | 8b2a49a21382a0a9b25c40d144b8e6d5a1d7e417 | [] | no_license | UW-ParksidePhysics/Nicolas.Alexis | 63e38096595a01780d1baf3b1c6ea94c70485c0f | 64b34f02a96a72925168cf9d682b4ebe220520ae | refs/heads/master | 2020-12-28T11:01:22.965307 | 2020-05-14T22:28:57 | 2020-05-14T22:28:57 | 238,303,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | from vpython import *
scene.background = color.white
scene.width = 600
scene.height = 600
scene.forward = vector(-.5, -.3, -1)
scene.caption = """To rotate "camera", drag with right button or Ctrl-drag.
To zoom, drag with middle button or Alt/Option depressed, or use scroll wheel.
On a two-button mouse, ... | [
"noreply@github.com"
] | UW-ParksidePhysics.noreply@github.com |
41b6c957f60424a66ad4720591bfc07fd731a89a | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbon/common/script/net/GPSExceptions.py | f6085187795282172e0abadcda9083aae107424c | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\script\net\GPSExceptions.py
import blue
import eve.common.script.net.eveMachoNetVersion as eveMachoVersion
import exceptions
class GPSException(StandardError):
__guid__ = 'exceptions.GPSException'
def __init__(se... | [
"le02005@163.com"
] | le02005@163.com |
c58d67fbc013e1dd1dc6694f56b280bb6ce809ec | 6713372c2c86e766a80f440b441673ba232bc649 | /jcsalesweb/jcsalesweb/spiders/built.py | 494ba102178465301903840a9977e75fb7212b39 | [] | no_license | rahul-keshav/zech-all-python-scrapers | 3e0c98d69a036468dd49e1763de0c2f54486cc83 | 1576738c4f34d08c29d97145f43c343da8400d70 | refs/heads/main | 2023-03-03T15:19:10.523293 | 2021-02-17T16:55:05 | 2021-02-17T16:55:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
class BuiltSpider(CrawlSpider):
name = 'built'
allowed_domains = ['www.jcsalesweb.com']
start_urls = ['https://www.jcsalesweb.com/']
rules = (
Rule(LinkExtractor(restrict_xpaths='//li[@c... | [
"rr916122@gmail.com"
] | rr916122@gmail.com |
26f64a83d5cd89221d7f1665dc549ffb54fdaa11 | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201124130253.py | b87b9dad2453eba605fff3c3a7ef82b879f9ac2b | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,691 | py | import json
import pymongo
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
app = Flask(__name__)
test_collec... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
1abec2b264b95150cd3bd58187b7e71b6269d40a | 8616892b6541602b53fdd94d1552d8e96b7ab722 | /dessn/investigations/zeropoints/__init__.py | 431f70a613cbef2e8ba27f431334a7a83058d136 | [
"MIT"
] | permissive | dessn/sn-bhm | 7c436877832ec10e4af318a6befff9fb8ffcbf3a | f320a41f9a4f2be49073437e98addca79e938160 | refs/heads/master | 2020-08-28T03:34:38.180148 | 2019-05-01T04:23:23 | 2019-05-01T04:23:23 | 45,723,864 | 1 | 0 | null | 2017-04-25T02:54:43 | 2015-11-07T05:27:44 | Python | UTF-8 | Python | false | false | 2,272 | py | r"""
A fully rigorous analysis would be expected to integrate zero point
uncertainty and covariance by having the conversion between counts
and flux. However, this is numerically infeasible, as there are so
many observational effects that must be included to get the actual
flux and flux error. Because of this, zero po... | [
"samuelreay@gmail.com"
] | samuelreay@gmail.com |
6e15047fc8b42f8993d0c2fa8ea6535776a3d0a1 | ded0c895f6e1f8853f2222ae498bdc7ae52ef0e4 | /week-03/week03/fit_es9_bodediag_g500.py | 52b0261c3feb10d4a04ae9a37b493ba89d270a4d | [] | no_license | LorenzoLMP/TD2015 | 6a8846b4592b32db81338b8522a10a2dc52531c1 | e39b51d48149d07c3cea682a02eeec4e69ffbabd | refs/heads/master | 2021-01-17T14:47:20.378339 | 2016-05-31T11:33:50 | 2016-05-31T11:33:50 | 43,302,288 | 0 | 0 | null | 2015-09-28T13:58:46 | 2015-09-28T13:23:45 | null | UTF-8 | Python | false | false | 2,208 | py | from pylab import *
from scipy import *
from scipy import optimize
from scipy import misc
data = genfromtxt('es9_500_buono')
f = data[:,0]
guad = data[:,1]
sfasa = data[:,2]
xdata = f
ydata = guad
zdata = sfasa
#sigmax = data [:,3]
#sigmay = data [:,4]
for k in range (len(zdata)):
zdata[k]=zdata[k] - 0.0006*... | [
"lorenzo.perrone.lmp@gmail.com"
] | lorenzo.perrone.lmp@gmail.com |
3e5cd7fd66923a6dfbc3094447a16059ab09184f | 0adf94fc39a02018165b62e93dd83edddd041230 | /.history/Jobs/models_20190223175917.py | 16e73071aaf08e851f1634fc3c30a492187135df | [] | no_license | SabitDeepto/BrJobs | 1e3baa143331cf46b9c70911c6644d1efd4fffd6 | 1a458c8c667f8093a2325d963e5542655467c7aa | refs/heads/master | 2020-04-24T08:02:26.350007 | 2019-03-17T05:53:30 | 2019-03-17T05:53:30 | 171,818,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | from django.db import models
from django.utils.text import slugify
# Create your models here.
class JobPost(models.Model):
title_1 = models.CharField(max_length=100, null=True, blank=True)
subtitle_1 = models.CharField(max_length=150, null=True, blank=True)
title_2 = models.CharField(max_length=100, null... | [
"deepto69@gmail.com"
] | deepto69@gmail.com |
8534ba19ac8b1dbb98e26204edaffc27a8b3f144 | ea008627679802814b0ff8bcd91449af63348337 | /lib/exabgp/bgp/message/open/routerid.py | f2db32231b684f6f493245fa86788d9d65c8ecd6 | [
"BSD-3-Clause"
] | permissive | vbancroft/exabgp | aaab88ce5f1d0be94caa9381100cfba9e48043c2 | 4e6b88248e536b83b88e1d5df395048adc292fc0 | refs/heads/master | 2021-01-16T00:10:26.083063 | 2014-01-22T15:18:16 | 2014-01-22T15:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # encoding: utf-8
"""
routerid.py
Created by Thomas Mangin on 2012-07-17.
Copyright (c) 2009-2013 Exa Networks. All rights reserved.
"""
from exabgp.protocol.ip.inet import Inet,inet
# =================================================================== RouterID
class RouterID (Inet):
def __init__ (self,ipv4):
In... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
39fc66bf10c68f9c87ae44bb546889ae81b955fc | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /learning_material/nonlocal_vs_global.py | e6d9bb0ab5431b381a63b5c864ee458c3e4b0629 | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | class NonLocalVsGlobal:
def testNonLocal(self):
# this works
res = []
var = 0
for i in range(5):
var+=1
res.append(var)
print(var,res)
def helper():
#nonlocal var, res # without nonlocal this code throws an error
if var... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
a5eea522f46af7faf91c63b7568dc49fe71b3aad | e2cc296dc3627242e56cd6f0a08f1e0dd8214eb2 | /src/app/routers/geo.py | e6289796b70b78b03c05ec6185238c703f8fbf6a | [
"MIT"
] | permissive | trivedisorabh/fastapi-tile38 | b7604d0f90261b30fa1559de50742d2ab0192dd0 | 878e74211cfa3fc0a0e55c68aeaae5b2822a9a4d | refs/heads/main | 2023-07-16T06:26:59.794998 | 2021-09-03T11:09:49 | 2021-09-05T13:30:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | from typing import Optional
from fastapi import APIRouter, status
from pyle38.responses import ObjectsResponse
from app.db.db import tile38
from app.models.vehicle import VehiclesResponse, Vehicle
router = APIRouter()
@router.get(
"/search/within",
response_model=VehiclesResponse,
response_model_exclude_... | [
"legionaerr@googlemail.com"
] | legionaerr@googlemail.com |
11e1f3fefec856c167d3df43e987a3f0636810ca | 7275f7454ce7c3ce519aba81b3c99994d81a56d3 | /sp1/python全栈/面向对象编程/面向对象进阶_用的较少/item_setitem_getitem_delitem.py | f0f215284ad925f208c9887c93688877a6c8cf0b | [] | no_license | chengqiangaoci/back | b4c964b17fb4b9e97ab7bf0e607bdc13e2724f06 | a26da4e4f088afb57c4122eedb0cd42bb3052b16 | refs/heads/master | 2020-03-22T08:36:48.360430 | 2018-08-10T03:53:55 | 2018-08-10T03:53:55 | 139,777,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | #.系列跟attr相关,字典的形式跟item相关
class Foo():
def __getitem__(self,item):
print("getitem",item)
return self.__dict__[item]
def __setitem__(self,key,value):
print("setitem")
self.__dict__[key] = value
def __delitem__(self,key):
print("delitem")
self.__dict__.pop(key)
f1 = Foo()
#item只适用于字典的复制方式,如下,但是f.name = xx... | [
"2395618655@qq.com"
] | 2395618655@qq.com |
34510fbd0abc39f92acaa541a2f90739c91ea04e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/8/usersdata/82/5616/submittedfiles/imc.py | e7a67c5946b587d937599ef4547dabde0603ba36 | [] | 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 | 128 | py | # -*- coding: utf-8 -*-
from __future__ import division
#ENTRADA
input ('Digite o peso em kg:')
input ('Digite a altura em m:') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
78f34811ef30c2bf8f1ea658d1940d31e99bfc2c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03409/s009547143.py | 278737b03d5d70ba2b2f2aa87be5f575a51bf731 | [] | 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 | 620 | py | from collections import defaultdict
n = int(input())
cnt = 0
dic = defaultdict(list)
ab = []
cd = []
for i in range(n):
a, b = map(int, input().split())
ab.append((a, b))
for i in range(n):
c, d = map(int, input().split())
cd.append((c, d))
for i in ab:
for j in cd:
a, b = i
c, d = j... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fed7951cee22cfc9c0882716080ae3b260d36460 | 3292017df3ff6c7190d5c5a60ecf5f8936cb7b90 | /checkio/Ice Base/Colder-Warmer/test_colder_warmer.py | 24974220ee88c2a77c726aa4a95705ec00bb272b | [
"MIT"
] | permissive | KenMercusLai/checkio | 1e9cdfe70ccaf5315db36391c4710533d99cf9aa | 5082ab0c6a7ae2d97963568a6f41589332e88029 | refs/heads/master | 2022-05-12T18:22:22.604531 | 2022-05-11T09:00:28 | 2022-05-11T09:00:28 | 22,260,056 | 39 | 22 | NOASSERTION | 2022-05-11T08:42:05 | 2014-07-25T14:40:06 | Python | UTF-8 | Python | false | false | 1,364 | py | import unittest
from math import hypot
from colder_warmer import checkio
MAX_STEP = 12
def check_solution(func, goal, start):
prev_steps = [start]
for step in range(MAX_STEP):
row, col = func([s[:] for s in prev_steps])
if [row, col] == goal:
return True
if 10 <= row or ... | [
"ken.mercus.lai@gmail.com"
] | ken.mercus.lai@gmail.com |
1568ef74cc5f8f1613a48d6d9899b608ab2d8575 | 499bc17d5cdfec023b9897fe8510c18c67432d70 | /ibms_project/sfm/migrations/0007_costcentre_region.py | 97b1bf8247f13b78917ecf76f0da243b0d895269 | [
"Apache-2.0"
] | permissive | ropable/ibms | 952348fb44b7be6d2ee5722b3f3dc40eb42f6e35 | fbfb4e85586bc7409d2abc3cfd51380b7f1f59d3 | refs/heads/master | 2023-08-31T22:21:19.050078 | 2023-08-24T04:48:36 | 2023-08-24T04:48:36 | 49,852,305 | 1 | 0 | Apache-2.0 | 2020-08-13T01:09:55 | 2016-01-18T04:36:48 | Python | UTF-8 | Python | false | false | 652 | py | # Generated by Django 3.2.4 on 2021-08-23 01:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sfm', '0006_sfmmetric_region'),
]
operations = [
migrations.AddField(
model_name='costcentre',
name='region',
... | [
"ashley@ropable.com"
] | ashley@ropable.com |
61c9b945b3814e8d0d8bae8207a4e3d8c13e36e3 | 152b74ed7d60d75a9d70f6637c107fff9b064ff9 | /Chapter08/Testing Adversarial-Robustness of Neural Networks/abs_models/visualization.py | a2fc2a5c3716b85c177c3f61dc7da465f8ff83a3 | [
"MIT"
] | permissive | PacktPublishing/Machine-Learning-for-Cybersecurity-Cookbook | 1d7a50fb79b5da8c411eda9dc9cface4d0f78125 | 19b9757020cbcb09d9bb4249605fbb9c7322d92b | refs/heads/master | 2023-05-12T08:29:13.569598 | 2023-01-18T10:19:07 | 2023-01-18T10:19:07 | 222,411,828 | 250 | 164 | MIT | 2023-05-01T20:11:44 | 2019-11-18T09:33:53 | Jupyter Notebook | UTF-8 | Python | false | false | 6,395 | py | import numpy as np
import torch
from matplotlib import pyplot as plt
from PIL import Image
from abs_models import utils as u
def visualize_image(ax, im, title=None, clear=False, **kwargs):
if clear:
ax.cla()
ax.imshow(im, **kwargs)
if title is not None:
ax.set_title(title)
ax.axis('of... | [
"dineshchaudhary@packtpub.com"
] | dineshchaudhary@packtpub.com |
bfb42af3796dc24682eb5e3c0ed9198db2b7b387 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /No_0222_Count Complete Tree Nodes/by_binary_search.py | 006a5cadc6ca612d6efcf92d477269380d8c036e | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | '''
Description:
Given a complete binary tree, count the number of nodes.
Note:
Definition of a complete binary tree from Wikipedia:
In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes ... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
d0e16e2419d18241a0865e98ba48b2a17e51f348 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/49/usersdata/87/17853/submittedfiles/pico.py | 79eb44db0e38ef045bf5cae68bc141b72a01085b | [] | 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 | 502 | py | # -*- coding: utf-8 -*-
from __future__ import division
def pico(lista):
cont=0
for i in range (0,len(lista),1):
if i==0:
if lista[i]>lista[i+1]:
cont=cont+1
if lista[i+1]<lista[i]:
cont=cont+1
return True
else:
ret... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1721ea9ddcd5726fab2dd4be394836b06cc14ae7 | ee5f91b0ae20ff1379da6dfa67eb27b402edcb1f | /user_app/urls.py | 3e1ad01d32211e4ea2d1a61e31f2a8fa5222ca77 | [] | no_license | cs-fullstack-master/django-ModelForm1-ic | bc4e936fc9f5f701dd493c38f197aa1c382b9c9e | 5654b26304da6a38b2807bf0cafc6bfe841f0a41 | refs/heads/master | 2020-04-25T14:09:00.682561 | 2019-10-03T19:36:50 | 2019-10-03T19:36:50 | 172,831,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.urls import path
from user_app import views
urlpatterns = [
path('', views.index, name = 'index'),
path('users/', views.users, name='users'),
] | [
"kevin@code-crew.org"
] | kevin@code-crew.org |
e68c1ecbbf40865932991688780f2519ddfe4a08 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/graph/checks_infra/attribute_solvers/not_contains_solver/test_solver.py | 3fa9383ab971c6b2dedc995c4e68a45f5018bb47 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,902 | py | import os
from parameterized import parameterized_class
from tests.terraform.graph.checks_infra.test_base import TestBaseSolver
TEST_DIRNAME = os.path.dirname(os.path.realpath(__file__))
@parameterized_class([
{"graph_framework": "NETWORKX"},
{"graph_framework": "IGRAPH"}
])
class TestNotContainsSolver(TestB... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
6e77e8a9684379dd99bad07ebcedd73de9c6a811 | 453e245dcb67a75f671d5e6067af13c21acd4f97 | /1.1 Data/7-make_regression.py | 2e01163f5ed0e87a56fe08c45d21b11ebcf5ca64 | [] | no_license | ahmedatef1610/scikit-learn-library-for-machine-learning | c828f7510cd9a7df41e7aece31c08ea00d69bb4f | f12be8c1702c413742328a75f60b9b1f78a3c2d3 | refs/heads/main | 2023-04-05T01:23:46.970931 | 2021-04-12T09:16:26 | 2021-04-12T09:16:26 | 356,732,567 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # Import Libraries
from sklearn.datasets import make_regression
# ----------------------------------------------------
# load regression data
'''
X ,y = make_regression(n_samples=100, n_features=100, n_informative=10,
n_targets=1, bias=0.0, effective_rank=None,
tail_stren... | [
"ahmedatef1610@gmail.com"
] | ahmedatef1610@gmail.com |
fcd432036bd5e790ae9758afc44a70e2fbbe4378 | df6d9d599568e7437f614c1404b26f74ebab47b0 | /Preprocessing/processingresources.py | d0c1c999456a19e54b8c9b11cdf69113d8e5fe7a | [
"Apache-2.0"
] | permissive | akshay-verma/semeval2019-hyperpartisan-bertha-von-suttner | cacd535d7234a175e4d05a0c0ccbc6bde70495d1 | 1de672f5c7a5be3f9fff89c091b6211a85b69a8b | refs/heads/master | 2020-05-17T16:56:35.563614 | 2019-04-29T20:09:08 | 2019-04-29T20:09:08 | 183,834,154 | 0 | 0 | Apache-2.0 | 2019-04-28T00:24:43 | 2019-04-28T00:24:43 | null | UTF-8 | Python | false | false | 7,058 | py | """
Classes representing "processing resources"
"""
import preprocessing
import xml.etree.ElementTree
import tldextract
from collections import Counter
import features
import json
from numbers import Number
import htmlparser
import sys
class PrArticle2Line:
def __init__(self, stream, featureslist, addtargets=Tr... | [
"johann.petrak@gmail.com"
] | johann.petrak@gmail.com |
85e5435fddc690666b601db7f53c32927be2aa4f | 4c9e3a963aef1d8f0cea9edc35e3c5ffc64a87d1 | /python-webpy/wiki/model.py | 15f7152764ee641c2d6b368787597759d85ce4d6 | [] | no_license | hackrole/daily-program | d6820d532a9ebb8132676e58da8e2382bd459b8f | cff87a09f03ce5bd9e186b0302bead6cd8484ab5 | refs/heads/master | 2021-01-21T13:11:55.287908 | 2015-04-21T14:34:36 | 2015-04-21T14:34:36 | 17,940,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import web
db = web.database(dbn='sqlite', db='sql/main.db')
def get_pages():
return db.select('pages', order='id DESC')
def get_page_by_url(url):
"""
Arguments:
- `url`:
"""
try:
return db.select('pages', where='url=$url', vars=locals())[0]
except IndexError:
return ... | [
"daipeng123456@gmail.com"
] | daipeng123456@gmail.com |
fbbb1076d82b8b95b154e02ca11dad432c9ea418 | 4f728a8177d041ca8cbd616ec58858eb3fc4c204 | /aleph/graph/queries.py | 2d88424dc2923d7a720bd74908da3e839dc9b6b2 | [
"MIT"
] | permissive | nivertech/aleph | 9bafa122a99be82ae09219a4abdf5ca3aa05bc55 | 20c773352e2c533867c75b0e658c6ff4a58c47a2 | refs/heads/master | 2020-12-11T08:14:43.634439 | 2016-08-08T10:47:44 | 2016-08-08T10:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,561 | py | import logging
from aleph import authz
from aleph.graph.schema import NodeType, EdgeType
log = logging.getLogger(__name__)
class GraphQuery(object):
def __init__(self, graph, data):
self.graph = graph
self.data = data
@property
def limit(self):
try:
return min(int(s... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
58acf6941d6f455e0defc79c0d205906fa6f200f | 847986bccb499dca707f7ad8ea3b7406e5178c7a | /testing_effectiveness/show_structure_metrics.py | ed1b836e811d70b25b693d7ead8010ea042c3f2d | [] | no_license | jianing-li/asynchronous-spatio-temporal-spike-metric | 08818c00510d00c593f081aed078e9047d8d8b97 | 71b31956ba47e83e43138498aceb441f184282cd | refs/heads/master | 2021-07-13T16:51:20.120434 | 2020-10-03T10:01:24 | 2020-10-03T10:43:57 | 203,725,140 | 16 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | """
Function: Show searching error curves for spike metrics.
Author: Jianing Li, lijianing@pku.edu.cn, Peking University, Apr. 1st, 2019.
"""
import numpy as np
import pickle
from matplotlib import pyplot as pl
# load noise ratio steps.
noise_ratio_steps = open('../datasets/search_moving_target/noise_rati... | [
"you@example.com"
] | you@example.com |
c2795bb8eb76134679bae4e2d4db6248d789a084 | 7ec38beb6f041319916390ee92876678412b30f7 | /src/hands_on_python/Ch11/test_survey.py | d791bfdea04977060bae33655c2b31987ac63c44 | [] | no_license | hopensic/LearnPython | 3570e212a1931d4dad65b64ecdd24414daf51c73 | f735b5d865789843f06a623a4006f8883d6d1ae0 | refs/heads/master | 2022-02-18T23:11:30.663902 | 2022-02-12T17:51:56 | 2022-02-12T17:51:56 | 218,924,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import unittest
from hands_on_python.Ch11.survey import AnonymousSurvey
class TestAnonymousSurvey(unittest.TestCase):
def test_store_single_response(self):
question = "What language did you first learn to speak?"
my_survey = AnonymousSurvey(question)
my_survey.store_response('English')
... | [
"hopensic@gmail.com"
] | hopensic@gmail.com |
7d0e800f405196bc4560f3977f641aaec29c8f6c | f038216be109882668ccd89b71efe0127d845bfb | /LeetCode/maximum_product_subarray.py | 549754da4a93cc85ee54958809337371159a4be4 | [] | no_license | kunalt4/ProblemSolvingDSandAlgo | 84b29a7eb2f73ea3b0450ed4b0707bc2d031c00d | 6a796dd1a778049418d47bc3b94b82c7a2680d26 | refs/heads/master | 2021-08-16T23:05:39.452968 | 2020-09-16T00:02:06 | 2020-09-16T00:02:06 | 221,677,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | class Solution:
def maxProduct(self, nums: List[int]) -> int:
max_prod = nums[0]
min_prod = nums[0]
ans = nums[0]
#Max product could be curr_max * curr_num or for negatives, curr_min * curr_num
for i in range(1,len(nums)):
x = m... | [
"noreply@github.com"
] | kunalt4.noreply@github.com |
1fee6a27ba3515c6d93b1874124ed5f7b7d389f4 | e8cb2241329e57c9a4a5a23f839a352c98c791bc | /brainstorm/structure/buffer_views.py | dfc17d220d5a800d618b558d39cf7a1e64c4e068 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | xiaoerlaigeid/brainstorm | cc21cd75a05891d5fd1cff50d5c0e55d31f64d5b | 8f1fc886faf268b25085fa5c95bf106b1805d766 | refs/heads/master | 2021-06-14T16:50:11.653075 | 2017-03-16T08:19:44 | 2017-03-16T08:19:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | #!/usr/bin/env python
# coding=utf-8
from __future__ import division, print_function, unicode_literals
from brainstorm.utils import get_by_path
class BufferView(list):
def __init__(self, buffer_names, buffers, full_buffer=None):
super(BufferView, self).__init__(buffers)
if not len(buffers) == len... | [
"qwlouse@gmail.com"
] | qwlouse@gmail.com |
97299d77812c63fa7f1e4f9466025b8724f95166 | 33b7a63d0866f9aabfdfdc342236191bebd1c1e6 | /django_learning/chapter09/xss/xss_demo/front/migrations/0001_initial.py | d390906c9e092b0c32fa2850951a7f2870b4ceff | [] | no_license | leolvcl/leo_python | 21f61bb898f8c755d1ff405f90864887e18a317e | 5be0d897eeee34d50d835707112fb610de69b4c8 | refs/heads/master | 2020-08-02T21:00:01.808704 | 2019-12-06T17:04:59 | 2019-12-06T17:04:59 | 211,505,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | # Generated by Django 2.0.2 on 2018-05-16 02:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
('id', m... | [
"lvclleo@gmail.com"
] | lvclleo@gmail.com |
6855119c71a47bc978c06db2bab99f04d55fa0bb | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /oLmAshdKHWLP3ck7e_24.py | bd6dca045b9dcd263e67ceb1e39236707e84e75a | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py |
def min_difference_pair(nums):
best = abs(nums[0])
r = []
for i in range(len(nums)):
for j in range(i + 1, len(nums)):
now = abs(nums[i] - nums[j])
if now < best:
best = now
r = sorted([nums[i], nums[j]])
elif now == best:
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ee749b64ebe34821da17751d091a13b06dbf8a81 | 27ad9461526e9a87b66a01306b48470d7dea9800 | /src/SpringLeaf_subset.py | 3d4f305d0d9c9c463cf36a0f575427baeadbb087 | [] | no_license | aocampor/SpringLeafKaggle | 100aeab631af76ed535dd700bfb1294c161e0880 | 02d89f31cbc6a615db9b035efe4a8083f7f9188c | refs/heads/master | 2016-08-04T10:17:56.011049 | 2015-09-22T16:34:19 | 2015-09-22T16:34:19 | 42,946,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | import os, sys
if __name__ == "__main__":
file1 = open("Data/train.csv", "r")
i = 0
for line in file1:
lintok = line.rsplit(',')
print line
i = i + 1
if( i == 10000):
break
| [
"alocampor@gmail.com"
] | alocampor@gmail.com |
c4795d1ec0e1b486ef8807813294a6243626829d | 0739ea9aef038d50d2d8adfae53938795f921417 | /examples/benchmarks/hiredis_test.py | cf16da355872a6011295538c60b14d8ab9aa3804 | [
"BSD-2-Clause-Views"
] | permissive | vtheno/asyncio-redis | b51bf2c5ba265c56134532797ed2d683ffaf1209 | a57a528d1bdf14be12953f8bf96df2f3ed24b840 | refs/heads/master | 2020-09-23T19:24:10.243603 | 2019-12-03T08:28:54 | 2019-12-03T08:28:54 | 225,567,864 | 0 | 0 | NOASSERTION | 2019-12-03T08:25:49 | 2019-12-03T08:25:48 | null | UTF-8 | Python | false | false | 3,185 | py | #!/usr/bin/env python
"""
Compare how fast HiRedisProtocol is compared to the pure Python implementation
for a few different benchmarks.
"""
import asyncio
import asyncio_redis
import time
try:
import hiredis
except ImportError:
hiredis = None
from asyncio_redis.protocol import HiRedisProtocol
@asyncio.coro... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
7b77ab771feda6d519910a539c1f19e5644f000a | b864b992187e2e1c5c8da6fdabeeab5040058fe9 | /Python Example/python-scraping-master/chapter9/3-cookies.py | 6e66f04ccd21321913b9a0e62aa1a20b8e046a88 | [] | no_license | Mr-Phoebe/ProgramLanguage | 5384afeef20c8a12cd89cf3720beb0337bd38fc9 | 1588aea62e15304339efb73d55653be1b4e57156 | refs/heads/master | 2023-02-06T11:59:06.272680 | 2023-02-06T04:00:14 | 2023-02-06T04:00:14 | 65,252,634 | 52 | 37 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import requests
params = {'username': 'Ryan', 'password': 'password'}
r = requests.post("http://pythonscraping.com/pages/cookies/welcome.php", params)
print("Cookie is set to:")
print(r.cookies.get_dict())
print("-----------")
print("Going to profile page...")
r = requests.get("http://pythonscraping.com/pages/cookies/... | [
"whn289467822@outlook.com"
] | whn289467822@outlook.com |
d2a3dc5f7164f1b606f5b0a11bad3d656716af12 | 425b5719ecf6b40bf3de94ddf6e0cc9cf72717b7 | /app/engine/skill_components/charge_components.py | e879b21be2baee20d970ef87e0c7dbc70eb2cfec | [
"MIT"
] | permissive | zerorock1312/lt-maker-master | 3b9b2e7245215936018601432a98915c40f3937d | 82f733683f9dba763a5de8567c41fd7cbcfb0173 | refs/heads/main | 2023-06-04T10:28:43.931841 | 2021-06-18T06:03:40 | 2021-06-18T06:03:40 | 378,050,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | from app.data.skill_components import SkillComponent
from app.data.components import Type
from app.engine import action
class BuildCharge(SkillComponent):
nid = 'build_charge'
desc = "Skill gains charges until full"
tag = "charge"
expose = Type.Int
value = 10
ignore_conditional = True
d... | [
"85828552+zerorock1312@users.noreply.github.com"
] | 85828552+zerorock1312@users.noreply.github.com |
6456530f6f5fe8c9d04436f610dd784a925f2956 | ab197194e6f4a7dae78b4cf72456aff78e71740f | /compareResolutionFuncP.py | f2da1495ae04835fded68c0180f4b7e631977539 | [] | no_license | JanFSchulte/MuonResolution | b75919e4dabb064476bc71c997a42b916dd039e0 | e39b4055b654f2b2e93b3b0fdac826fa630b042f | refs/heads/master | 2023-07-02T12:02:40.541267 | 2023-06-06T16:14:45 | 2023-06-06T16:14:45 | 164,695,533 | 0 | 2 | null | 2019-09-13T09:47:52 | 2019-01-08T17:01:51 | Python | UTF-8 | Python | false | false | 4,847 | py | from ROOT import *
import pickle
import math
from setTDRStyle import setTDRStyle
def efficiencyRatio(eff1,eff2):
newEff = TGraphAsymmErrors(eff1.GetN())
for i in range(0,eff1.GetN()):
pointX1 = Double(0.)
pointX2 = Double(0.)
pointY1 = Double(0.)
pointY2 = Double(0.)
isSuccesful1 = eff1.GetPoint(i,pointX... | [
"jschulte@cern.ch"
] | jschulte@cern.ch |
29793a85a88c5177d18332fa38bda80e0a5ece4c | e53cd62a6b0fa27f8f712b7df92897d61b532807 | /Lesson_1/1.8 If's.py | 7ef3dc5aa292ee0c6d1eccaeaa3385c9462d279c | [] | no_license | AdamSierzan/Python_basics_course_2 | dc465ed0223347d5f555b835ac89c456fab5699c | 216ccf66d8a1bccf376564297e60fcfb8cf0696b | refs/heads/master | 2021-05-18T19:51:35.721711 | 2020-04-03T19:58:23 | 2020-04-03T19:58:23 | 251,388,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | print("How old are you:")
age = int(input())
responsible = input("Are you responsible:? T/N")
if (age > 100):
print("You're definetly an adult")
elif (age > 18) and responsible == "T":
print("You're a responsible adult")
elif responsible != "T":
print("You're unresponsible adult")
else:
print("You're ... | [
"adagioo1993@gmail.com"
] | adagioo1993@gmail.com |
da5e1b27e409b9adf9e9630f26cb45c2013b63ba | 82b997b4e2f7986b3619f49c45410839955f699d | /invoke/monkey.py | 073762f60b33866b49d1073f41c50571aa26fd75 | [
"BSD-2-Clause"
] | permissive | markatto/invoke | a5c81f97fba810270b3a87aeafd1a6689544d340 | 3f2df01d989a325a70826226562ee19ce69e3ac1 | refs/heads/master | 2021-01-18T07:14:41.386860 | 2012-07-27T19:58:41 | 2012-07-27T19:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | # Fuckin' A.
import select, errno, os, sys
from subprocess import Popen as OriginalPopen, mswindows
class Popen(OriginalPopen):
#
# Custom code
#
def __init__(self, *args, **kwargs):
hide = kwargs.pop('hide', [])
super(Popen, self).__init__(*args, **kwargs)
self.hide = hide
... | [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
2c4fb23f9c4fdbb529dd4ae121804e83ea1b1c3f | 95673dabd649d4e358921182572e26c3ea21b53a | /PhysicsAnalysis/JetTagging/JetTagAlgs/BTagging/share/.svn/text-base/BTagging_LifetimeTag1D.py.svn-base | ae543dd574131fdbd0959767505ca75b6aa67f7b | [] | no_license | zqhsfz/DoubleBTaggingDF | 141deac5f2eca8763dd25c9d10e8458efcd6dd75 | 80c7c374ea8917c540b7fbfacb84e9e158787269 | refs/heads/master | 2020-05-31T07:47:47.525578 | 2015-09-15T20:25:31 | 2015-09-15T20:25:31 | 40,974,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | if BTaggingFlags.Runmodus == 'analysis':
lhVariablesForAnalysis = [ "significance1D" ]
# each tagger needs own instance, can't be shared!
from JetTagTools.JetTagToolsConf import Analysis__LikelihoodTool
myBTagLikelihoodTool1D = Analysis__LikelihoodTool(
name ... | [
"zqhsfz@gmail.com"
] | zqhsfz@gmail.com | |
7e94d265c08c9712028dcbc9b5fd76e240275ddf | ea3bf64156bbb79544bfd6b42bbcd3eda453ac31 | /content/Example Based Unit Testing/code-snippets-6/fake_logger.py | 362f21c1f7b3dad97bc0e4fff2985f291ce72004 | [
"CC-BY-4.0"
] | permissive | Jackiexiong/software-testing-course | 563ffc8543fdcff9500f64944fd76e7c0c8e1144 | 3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0 | refs/heads/master | 2021-07-08T02:10:25.915964 | 2017-10-04T20:50:51 | 2017-10-04T20:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from logger_interface import LoggerInterface
# A logger that prints the message to the console
class FakeLogger(LoggerInterface):
def log(self, msg):
print("Log: {0}".format(msg))
return True
| [
"rvprasad@ksu.edu"
] | rvprasad@ksu.edu |
55d76aefd85c06e28422f30adca73fdf7d8a4245 | bdc14c302b60114321466cf38f1bf03a75a01eb3 | /ImageCollection/overview.py | 8e70ddb38b66a61677a64f3e1860366c6f7b755b | [
"MIT"
] | permissive | nishadhka/earthengine-py-notebooks | a09392fc83202884c8b36c76263a9e16f7351d40 | fe3edf5189a424ffbedb42d1bc5ed95ff0af3bdb | refs/heads/master | 2020-12-21T12:38:54.756294 | 2020-01-27T01:48:55 | 2020-01-27T01:48:55 | 236,433,700 | 1 | 0 | MIT | 2020-01-27T06:42:20 | 2020-01-27T06:42:19 | null | UTF-8 | Python | false | false | 3,776 | py | '''
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/ImageCollection/overview.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" ... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
9913227f3817aedd27bdd11f4702d2fbab8d619d | 36f7e329efaf9f3b37003ef5c769628865f472ec | /Swasthya/accounts/views.py | ea76f5f4c924b52dfa9e2173a08fa78c0599be15 | [] | no_license | aolashram/kri-vibe | d40080679f7f37568a8b57c2f7009ce6f6bcbbbc | 6d77600c0c6953c3c78ec9a1fdf5a80c6611e162 | refs/heads/main | 2023-05-31T17:50:09.377629 | 2021-06-21T04:38:51 | 2021-06-21T04:38:51 | 378,806,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,540 | py | from django.shortcuts import render,redirect,get_object_or_404
from django.http import HttpResponse,HttpResponseRedirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth... | [
"amalrajrs@gmail.com"
] | amalrajrs@gmail.com |
d0be734cfa888c010914e448f0d2dd63394549a3 | 371f94ee0f44feeaf68d740f24bd9bb27f83c8aa | /app/models.py | 410942c28fac8f1f24b4850a6988948f8b172033 | [] | no_license | cjredmond/final_proto | f69d62da97428af3d52020054e9a327abbff8d15 | 28d73c7f25a7e8fae07d78b12964cdefeb3103de | refs/heads/master | 2020-09-12T04:57:59.279571 | 2016-11-11T22:44:47 | 2016-11-11T22:44:47 | 73,517,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py | from django.db import models
from django.dispatch import receiver
from django.db.models.signals import post_save
class League(models.Model):
name = models.CharField(max_length=40)
limit = models.IntegerField()
players = models.ManyToManyField('auth.User')
live = models.BooleanField(default=False)
... | [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
1e01c1ba08ee6205b00c1018a1d84b557ec98285 | 1975ecfc048594b1c05913a3c415bf2c233b37d2 | /playlist_explanation/src/features/common/month.py | 3b238d330ac9041a38d72abe7295ba15b4f2f136 | [] | no_license | GiovanniGabbolini/dave | 2ad35bbd0abf5aefd1c01436690d647f4b39d82c | e0ad90a5fd5691a8cd5e9b24261fb4d3d82ea91e | refs/heads/master | 2023-03-17T06:04:15.127171 | 2021-03-18T19:31:43 | 2021-03-18T19:31:43 | 349,158,307 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from src.utils.decorator_annotations import annotations
@annotations({'entailed': True})
def month(date) -> 'month':
return {'value': date['value'].month}
| [
"giovanni.gabbolini@gmail.com"
] | giovanni.gabbolini@gmail.com |
db154f56ea89f913c7ca67af270e96ea17cc6786 | 00e044ab93ae740e29c48a01db0f9671c740ae55 | /setup.py | 417b699ace6fb8a27c7d96a90eb5d1b0e378ef12 | [
"BSD-3-Clause"
] | permissive | kalessin/crawlera-sessions | 982f73d69bb7f8e6c0b98b39f08d165200d3eb27 | 52f6eeb28c776d013c4dc46559eb4cede57b893e | refs/heads/master | 2023-04-28T12:35:10.088112 | 2023-03-17T20:12:38 | 2023-03-17T20:12:38 | 157,715,690 | 0 | 0 | BSD-3-Clause | 2021-11-22T14:03:24 | 2018-11-15T13:26:12 | Python | UTF-8 | Python | false | false | 883 | py | # Automatically created by: shub deploy
from setuptools import setup, find_packages
setup(
name = 'crawlera-session',
version = '1.2.8',
description = 'Class that provides decorators and functions for easy handling of crawlera sessions in a scrapy spider.',
long_description = open('READM... | [
"molveyra@gmail.com"
] | molveyra@gmail.com |
5ac318576d07212bbea01d60ecc2ffa701080d72 | 870639af1487cf59b548f56c9cd1a45928c1e2c2 | /homeassistant/components/hue/v2/entity.py | 9bb81c16fa544659af4f2bbfefd017b9b381aa70 | [
"Apache-2.0"
] | permissive | atmurray/home-assistant | 9f050944d26c084f8f21e8612a7b90c0ae909763 | 133cb2c3b0e782f063c8a30de4ff55a5c14b9b03 | refs/heads/dev | 2023-03-19T04:26:40.743852 | 2021-11-27T05:58:25 | 2021-11-27T05:58:25 | 234,724,430 | 2 | 0 | Apache-2.0 | 2023-02-22T06:18:36 | 2020-01-18T11:27:02 | Python | UTF-8 | Python | false | false | 4,310 | py | """Generic Hue Entity Model."""
from __future__ import annotations
from aiohue.v2.controllers.base import BaseResourcesController
from aiohue.v2.controllers.events import EventType
from aiohue.v2.models.clip import CLIPResource
from aiohue.v2.models.connectivity import ConnectivityServiceStatus
from aiohue.v2.models.r... | [
"noreply@github.com"
] | atmurray.noreply@github.com |
f6103c08d17d281520b0332bf0896a292ba689b4 | 7a4649fa35a0306b120c76e448944ff48539c9cc | /rerun/11_r_downpayment.py | f6953ce828fb427a42f5c0e517e1e209a2ce9edd | [] | no_license | sphilmoon/Python3_tutorial_mosh | 58ec9a1abdf801ccb1d88f85de56baa5f6fb4a7f | bb70de5bff7b4d26f58fe1dcdfd4ec4957631bd5 | refs/heads/main | 2023-01-24T17:51:56.181367 | 2020-12-06T10:15:00 | 2020-12-06T10:15:00 | 294,370,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | house_price = 1E6
good_credit = False
if good_credit:
downpayment = 0.1 * house_price
else:
downpayment = 0.2 * house_price
message = f"My downpayment is: ${downpayment}."
print(message) | [
"sphilmoon@gmail.com"
] | sphilmoon@gmail.com |
ba471b38a7741ee3be4fb20ad9456b982c45fe2b | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /old_hand/little_way/say_case_in_way/eye/find_little_fact.py | 9c9ce14fb0ac99641f3675d853aa3df09b8532f5 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py |
#! /usr/bin/env python
def case(str_arg):
use_last_case(str_arg)
print('case')
def use_last_case(str_arg):
print(str_arg)
if __name__ == '__main__':
case('want_man')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
d96ba463d4ea4a6fbedb6545ef6a125cb4bb83c8 | 2ca50eb937c02a108bd80f7ed051065f26814921 | /fabapp/urls.py | 0096ccea0b61d94c6c8603bb5be829a41aa42907 | [] | no_license | pythexcel/fab | b868f6e597c61aeb1115e66234f1a2a320a9c3a0 | ce548c79e82eaacfd0c9d17d3e63cec64788e292 | refs/heads/master | 2022-12-15T00:24:10.388924 | 2021-07-26T07:58:10 | 2021-07-26T07:58:10 | 197,142,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | from rest_framework.urlpatterns import format_suffix_patterns
from django.urls import path as url
from fabapp import views
urlpatterns = [
url('test', views.Test.as_view()),
url('register', views.UserRegister.as_view()),
url('login', views.UserAuth.as_view()),
url('forget_password', views.UserPassword.... | [
"pythexcel@excellencetechnologies.in"
] | pythexcel@excellencetechnologies.in |
6e1074fc950074a4da2234e90afc154a5d59de9e | 2293c76c3d18e2fcd44ded90bd40113d26285663 | /pyeccodes/defs/grib2/tables/5/4_11_table.py | 6d45486fdbeaecd83c9e1e5025d319f1596e84f5 | [
"Apache-2.0"
] | permissive | ecmwf/pyeccodes | b1f121dbddf68d176a03805ed5144ba0b37ac211 | dce2c72d3adcc0cb801731366be53327ce13a00b | refs/heads/master | 2022-04-23T10:37:40.524078 | 2020-04-18T06:30:29 | 2020-04-18T06:30:29 | 255,554,540 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | def load(h):
return ({'abbr': 1,
'code': 1,
'title': 'Successive times processed have same forecast time, start time of '
'forecast is incremented'},
{'abbr': 2,
'code': 2,
'title': 'Successive times processed have same start time... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
3bad23447252471f37c8a506d6edc76be962f754 | 1bf2465e4e43d5b8bcdb8eed0c3fdcd999c34b3b | /telegrambot/views.py | 7a7e9c2013ddb5a3cf0e66eff3804fd45a471e1b | [] | no_license | suhailvs/telegram_bot | 075874c36fc03189680ad00b1580272efa47e5a1 | 3f44274a699521dc9b6b737051631932060a7357 | refs/heads/main | 2023-02-21T20:37:16.931097 | 2021-01-27T01:46:19 | 2021-01-27T02:00:46 | 332,320,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | import json
import requests
import random
from telegram import InlineKeyboardMarkup, InlineKeyboardButton
from django.http import HttpResponse
from django.views import generic
from django.conf import settings
from .models import TelegramUser, CallCount
# TELEGRAM_USERNAME = "impress_ai_bot"
class TelegramUserList(... | [
"suhailvs@gmail.com"
] | suhailvs@gmail.com |
77ca09b513ef3858857f350d2c125052e51fccc2 | d4abaedd47e5a3ce3e8aa7893cb63faaa4064551 | /codeforce/round/prob2.py | a7ec801c624ce85cb815427de85ab42d2a986f63 | [] | no_license | shiv125/Competetive_Programming | fc1a39be10c0588e0222efab8809b966430fe20f | 9c949c6d6b5f83a35d6f5f6a169c493f677f4003 | refs/heads/master | 2020-03-15T19:47:12.944241 | 2018-05-06T08:18:11 | 2018-05-06T08:18:11 | 132,317,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | n,m=map(int,raw_input().split())
poland=[]
eball=[]
for i in range(n):
poland.append(raw_input())
for i in range(m):
eball.append(raw_input())
count=0
for i in poland:
for j in eball:
if i==j:
count+=1
if (n==m):
if (count%2==0):
print "NO"
else:
print "YES"
if (n>m):
print "YES"
if (n<m):
print "NO"
| [
"shivdutt@shivdutt-Lenovo-G50-80"
] | shivdutt@shivdutt-Lenovo-G50-80 |
f29162293d3a13e04e0d593b2f83ffadeb585c75 | 3dcfa266c4b7321a4c3a224b98f9ca0dff891e47 | /archives/weather.py | 34f3228017b06836750a7051d94df776a005b29f | [] | no_license | CandyTt20/Notes | a2ef681d123c5219a29334e99aeb900b74bf1834 | ec092f881122ebdd91ef9764ec7ce4d9cc4723ae | refs/heads/master | 2022-08-21T18:08:33.204223 | 2020-05-19T23:55:49 | 2020-05-19T23:55:49 | 255,209,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | import matplotlib
from matplotlib import pyplot as plt
import random
import io
import sys
# 改变标准输出的默认编码
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
# 绘图中设置中文字体显示以及粗细MicroSoft YaHei
font = {'family': 'MicroSoft YaHei',
'weight': 'bold',
'size': '10'}
matplotlib.rc("font", **font)
... | [
"458566293@qq.com"
] | 458566293@qq.com |
3edf3d407e6ecd51e113a38e8f163fb129b401ad | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc059/B/4903797.py | b032dc42a02c10e399ae6919bab6161e7ebcff25 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | ab = [int(input()) for i in range(2)]
if (ab[0] > ab[1]):
print("GREATER")
elif (ab[0] < ab[1]):
print("LESS")
else:
print("EQUAL") | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
c343a8e6103ecb162f0314933cee28a37ae3e35c | 43102360e998f8972e06689f64f39c7cf22479d7 | /Decision Trees/Applying Decision Trees-92.py | 59662f44cd14ce508327652d24d4176d49e44b9b | [] | no_license | HarshCasper/Dataquest-Tracks | 8da914101c19442a63ab46732a1cc792c135c3c9 | 9fc87415377824cf2c82d9ed34178ee53509eb67 | refs/heads/master | 2020-12-21T21:04:19.015006 | 2020-01-27T18:28:55 | 2020-01-27T18:28:55 | 236,560,422 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | ## 2. Using Decision Trees With scikit-learn ##
from sklearn.tree import DecisionTreeClassifier
# A list of columns to train with
# We've already converted all columns to numeric
columns = ["age", "workclass", "education_num", "marital_status", "occupation", "relationship", "race", "sex", "hours_per_week", "native_co... | [
"noreply@github.com"
] | HarshCasper.noreply@github.com |
83b38141d2b2a9fe4ace95e23ea76ba72ddbf024 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02753/s018106418.py | 43f2350835f00370c906db3dceb850869d7371e6 | [] | 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 | 148 | py | # A - Station and Bus
# https://atcoder.jp/contests/abc158/tasks/abc158_a
s = input()
if len(set(s)) == 2:
print('Yes')
else:
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1bf2e6f3d5b517933c42a191a777276597e6abbb | 58509347cca790fce26884f027425170c5891a17 | /deep_image_converter/loss/base_loss.py | bc1534d557ddf20f3091662c29ed216000fbf416 | [] | no_license | Hiroshiba/signico_real_to_anime | e22d07ca6531b75b3987ecc309e02bcd405f6f61 | 0a68b132fc77e24539d7ddc65b3078fd0c7f3858 | refs/heads/master | 2021-01-19T23:25:37.149611 | 2018-03-21T17:24:32 | 2018-03-21T17:32:45 | 88,979,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | from abc import ABCMeta, abstractmethod
import chainer
from deep_image_converter.config import LossConfig
class BaseLoss(object, metaclass=ABCMeta):
def __init__(self, config: LossConfig, model):
self.config = config
self.model = model
@staticmethod
def blend_loss(loss, blend_config):
... | [
"kazuyuki_hiroshiba@dwango.co.jp"
] | kazuyuki_hiroshiba@dwango.co.jp |
bf77468ee650a613d6bf14b965954b3156f6dfcd | f70d11f54732808c4ed40886bdd57bbdca6542eb | /pyalgotrade/tools/resample.py | a8a8ae23b99fed15d20a792c88399406d61cf367 | [
"Apache-2.0"
] | permissive | stephenagyeman/pyalgotrade | 1aa4c22b20c707791c5e81ad1bdfb8fb55c8d542 | a783b8da8c63a1fc25a4bdee560d4c5a6e0c1a8c | refs/heads/master | 2021-01-15T12:03:16.370138 | 2014-01-14T02:15:41 | 2014-01-14T02:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | # PyAlgoTrade
#
# Copyright 2011-2013 Gabriel Martin Becedillas Ruiz
#
# 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... | [
"gabo@Gabriels-MacBook.local"
] | gabo@Gabriels-MacBook.local |
ac862313a9b98f5a1267b8153262f40789aaf7b9 | 5c900c1801e73aad21a90e97d73e8f10c9f31129 | /src/02_convert_xlsx_to_rdf.py | 631659e6768279523bbd07ac609632d3d0d969fd | [
"Apache-2.0"
] | permissive | utda/kunshujo | 024ea7bb1016ba28ae17632ad5e998203bab16fa | fbae79171dfd017a47a89bcb18d7862711f0689f | refs/heads/master | 2022-09-11T12:09:23.438408 | 2022-08-31T05:19:52 | 2022-08-31T05:19:52 | 156,177,231 | 0 | 1 | Apache-2.0 | 2022-08-31T05:20:36 | 2018-11-05T07:27:44 | Python | UTF-8 | Python | false | false | 1,685 | py | import pandas as pd
from rdflib import URIRef, BNode, Literal, Graph
from rdflib.namespace import RDF, RDFS, FOAF, XSD
from rdflib import Namespace
import numpy as np
import math
import sys
import argparse
import json
def parse_args(args=sys.argv[1:]):
""" Get the parsed arguments specified on this script.
"""... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
c346eb614b07d36c5320bc514531a1b812e3e811 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /v8/tools/testrunner/local/pool_unittest.py | 335d20a6bf9a71a8efd476cc4b67aa83e812b801 | [
"BSD-3-Clause",
"SunPro",
"bzip2-1.0.6"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,252 | py | #!/usr/bin/env python
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from pool import Pool
def Run(x):
if x == 10:
raise Exception("Expected exception triggered by test.")
retu... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
5a40aaec7aacb3d61f3c59a5a873c57e5c626c01 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02630/s691363854.py | db496ce9e82c844b6fd645661f57cc1b9cd4e228 | [] | 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 | 322 | py | from collections import defaultdict
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
d = defaultdict(int)
ans = 0
for a in A:
ans += a
d[a] += 1
for _ in range(Q):
b, c = map(int, input().split())
n = d[b]
ans -= n * b
ans += n * c
print(ans)
d[b] = 0
d[c] +=... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fb7272b01c3d2d1856ab5326a9e09a3f548ce4b6 | 757b100c2689f61dbd140672fc10059938bda603 | /SportsSimulation/sportsSchedule_algo.py | 9d1b323bee878638324f1f70b3030fefd4325dac | [] | no_license | tbkrft567/Portfolio | 089d8d94d735bbb757eb61688c515f9f25451595 | bbe514905a734e14c0bda5579928fdc9dad5a69e | refs/heads/master | 2023-03-15T23:02:01.640998 | 2021-02-21T21:32:44 | 2021-02-21T21:32:44 | 231,143,663 | 0 | 0 | null | 2023-03-08T20:27:46 | 2019-12-31T20:31:56 | HTML | UTF-8 | Python | false | false | 3,531 | py |
def generateSchedule(numOfTeams):
scheduleGrid = []
weeklyGrid = []
for x in range(numOfTeams): # Create a grid for all matches to be played
scheduleGrid.append([])
weeklyGrid.append([])
allMatches = []
for home in range(1, numOfTeams+1): # Insert all matches to be played
... | [
"tbkrft@gmail.com"
] | tbkrft@gmail.com |
4e4eae80ffa5c9109129d78b060c7b96e3479ca3 | 656c384011734403e60a205ffa44bd7a494ebaff | /migrations/versions/b509892e3432_.py | cb902f6cd5fb52b8c0f7e01248c8f702bfafe762 | [] | no_license | jreiher2003/Composite | cf721737917b3b50f83f7bc8790804f35de82797 | 3547b0ec8568d2212a530b14ccf358acf2e6bec3 | refs/heads/master | 2021-01-21T04:47:25.694869 | 2016-07-22T21:38:20 | 2016-07-22T21:38:20 | 53,373,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """empty message
Revision ID: b509892e3432
Revises: None
Create Date: 2016-07-21 17:53:01.499715
"""
# revision identifiers, used by Alembic.
revision = 'b509892e3432'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | [
"jreiher2003@yahoo.com"
] | jreiher2003@yahoo.com |
68f198e20b5cf9bd2d0f06bd412da9e1b1e528ef | 568da13e0f0bfc3276508d67b020adea04f3036a | /final/170401067/tcpI.py | ccf2b2f4734d1f601b25d25fb5169fdd6b13e16d | [
"Unlicense"
] | permissive | BaranAkcakaya/blm304 | 75a6be14afb0d9a012d17c56bd1e5ad5abe03630 | 3bca2b2520e673d15c0667418789903b119b9170 | refs/heads/master | 2022-10-15T21:04:49.367816 | 2020-06-08T12:34:02 | 2020-06-08T12:34:02 | 267,668,790 | 0 | 0 | Unlicense | 2020-06-07T13:36:48 | 2020-05-28T18:42:21 | Python | UTF-8 | Python | false | false | 889 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 3 22:26:03 2020
@author: EnesNK
"""
import socket
import os
# Socket oluşturulması
s = socket.socket()
# Bağlanılacak adres ve port
host = "192.168.1.32"
port = 142
try:
# Bağlantıyı yap
komut = '... | [
"noreply@github.com"
] | BaranAkcakaya.noreply@github.com |
c0e643ad4fa8ef59d8fc7c410dae20ba6ce83e43 | 6223dc2e5de7921696cb34fb62142fd4a4efe361 | /.metadata/.plugins/org.eclipse.core.resources/.history/73/60f8cf3a196b00141928c597445b4e35 | cc1d592056af8a6b636607c3a5fc66693511d529 | [] | no_license | Mushirahmed/python_workspace | 5ef477b2688e8c25b1372f546752501ee53d93e5 | 46e2ed783b17450aba29e4e2df7b656522b2b03b | refs/heads/master | 2021-03-12T19:24:50.598982 | 2015-05-25T10:23:54 | 2015-05-25T10:23:54 | 24,671,376 | 0 | 1 | null | 2015-02-06T09:27:40 | 2014-10-01T08:40:33 | Python | UTF-8 | Python | false | false | 5,406 | #!/usr/bin/env python
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This 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, or (at your option)
# any later version.
#
# This software is dis... | [
"imushir@gmail.com"
] | imushir@gmail.com | |
923a73b286091e48661d2498f48f73f6650f64ed | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/74.search-a-2d-matrix.py | 1569ac34b90c9406f662f03ef22de36da49b9a0d | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | #
# @lc app=leetcode id=74 lang=python3
#
# [74] Search a 2D Matrix
#
# https://leetcode.com/problems/search-a-2d-matrix/description/
#
# algorithms
# Medium (35.49%)
# Total Accepted: 262.2K
# Total Submissions: 738.7K
# Testcase Example: '[[1,3,5,7],[10,11,16,20],[23,30,34,50]]\n3'
#
# Write an efficient algorith... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
ca3cd643be45c6a9a5f944743ece02ac4fc85764 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_53/567.py | 05e6ad00cbf4b7bba63051f353ec913a4811d281 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!/usr/bin/python
import sys
def snapper(n,k):
return ( ( k & ( (1<<n) - 1) ) == ( (1<<n) - 1) )
num_entries = input()
entries = []
c = 0
while c < num_entries:
s = sys.stdin.readline()
entries.append(map(int, s.split(' ')))
c += 1
c = 0
while c < num_entries:
if snapper(entries[c][0], entries[c][1]):
print... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ddeea8ef6ffc46729b0a8139f950b546b159e1ae | 91fe4b06b331be287518731614067e5d65a85e82 | /GetNearestAgents/GetNearestAgents/urls.py | a01a6b849148b911ca3a3fc6124c09c422da1e18 | [] | no_license | Niharika3128/GetAgentsByNearestLocations | e8b1af4dc011efb4ff0e79383478333747ff2a22 | 9e954344e50a3f92d40fd3aa7810569c727f0c46 | refs/heads/master | 2022-12-16T04:57:45.667615 | 2020-09-11T18:32:59 | 2020-09-11T18:32:59 | 294,387,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | """GetNearestAgents URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
3edaba52aa526852e5576903a2ca6d968a293149 | 18305efd1edeb68db69880e03411df37fc83b58b | /pdb_files_1000rot/qp/1qpe/tractability_500/pymol_results_file.py | ba2530e6b7d97a0245b21db20af8a6d3f359eb47 | [] | no_license | Cradoux/hotspot_pipline | 22e604974c8e38c9ffa979092267a77c6e1dc458 | 88f7fab8611ebf67334474c6e9ea8fc5e52d27da | refs/heads/master | 2021-11-03T16:21:12.837229 | 2019-03-28T08:31:39 | 2019-03-28T08:31:39 | 170,106,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,204 | py |
from os.path import join
import tempfile
import zipfile
from pymol import cmd, finish_launching
from pymol.cgo import *
finish_launching()
dirpath = None
def cgo_arrow(atom1='pk1', atom2='pk2', radius=0.07, gap=0.0, hlength=-1, hradius=-1, color='blue red', name=''):
from chempy import cpv
radius, gap =... | [
"cradoux.cr@gmail.com"
] | cradoux.cr@gmail.com |
57563df581ac1c0a00ac5c91318c1352f0584a59 | 8336ea48994f9ecbddd9caf853d08f05b2e4c15c | /-二叉树-遍历.py | c2e78d315571c82f3bca1e8199f2110b88a3277b | [] | no_license | swain-s/lc | fb2058931853b83aeb0737447a67e2fee08fdacd | 9e793935b999540e20e6c7f025f3f765f43039af | refs/heads/master | 2021-01-09T00:33:23.943824 | 2020-04-06T11:50:38 | 2020-04-06T11:50:38 | 242,172,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | # 问题描述:二叉树的前序、中序、后续和层次遍历
# 模板: 7
# 3 10
# 1 5 9 12
# 4 14
#
from a_bin_tree import root, tin_travel
class TreeNode(object):
def __init__(self, val):
self.val = val
self.left = None
self.right = None
class BinTreeTrevera... | [
"shenkun@bupt.edu.cn"
] | shenkun@bupt.edu.cn |
6b986ebc0f99796b46a53f789dadc82ecf2fcd69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_forgivable.py | 17e88f7334c72b963bdb051e7591385f4638ce97 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py |
#calss header
class _FORGIVABLE():
def __init__(self,):
self.name = "FORGIVABLE"
self.definitions = [u'used to say that you can forgive something because you understand it: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b8709d1ed22fe57824a0b3ea1da243b08abaeccc | e281ce2330656a6a0a7f795f535f78881df8b5ba | /Python Study/Backup All the file/Common/ZipFile.py | c11a684f7044dbb2a6408fa18934115512d93791 | [] | no_license | sunruihua0522/SIG-PyCode | 70db0b57bbf9ce35dc42bd8de62c5bb56a2e888e | 483a67bf679f54ab7405c2362d9cfe47daa2bc0f | refs/heads/master | 2020-07-12T14:46:32.588227 | 2020-04-02T04:37:02 | 2020-04-02T04:37:02 | 204,842,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | import zipfile
import os
from tqdm import tqdm
class ZipFile:
@staticmethod
def zipDir(dirpath,outFullName):
"""
压缩指定文件夹
:param dirpath: 目标文件夹路径
:param outFullName: 压缩文件保存路径+xxxx.zip
:return: 无
"""
zip = zipfile.ZipFile(outFullName,"w",zipfile.ZIP_DEFLATED... | [
"--global"
] | --global |
b0122bfe88e38f332099985954a6a5d8bd7fda29 | 427ab1f7f7fe08f76fab6468f6ea24dc5bc2701d | /bugscan/exp-2424.py | c8dd3e9935415447b4bce32457f6ae74829b5ecb | [] | no_license | gayhub-blackerie/poc | b852b2bcdba78185efd68817c31579247c6e4b83 | 8b7c95d765deb450c029a921031eb1c90418f2a7 | refs/heads/master | 2021-07-24T03:05:52.697820 | 2017-11-04T10:33:51 | 2017-11-04T10:33:51 | 107,093,079 | 1 | 0 | null | 2017-10-16T07:31:31 | 2017-10-16T07:31:31 | null | UTF-8 | Python | false | false | 761 | py | #!/usr/bin/evn python
#--coding:utf-8--*--
#Name: shopnum1注入3
#Refer:http://www.wooyun.org/bugs/wooyun-2015-0118352
#Author:xq17
def assign(service,arg):
if service=="shopnum1":
return True,arg
def audit(arg):
payload = "ProductListCategory.html?BrandGuid=ac69ddd9-3900-43b0-939b-3b1d43... | [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
778ffa1ac232b1d139916fb722187dabf44fc75f | 5f0a72ccc780a9649c6adb15ccab6ddcb02a146b | /marshmallow/core/mechanics/music.py | 644a8e26dbbecfa004973ebc4fe8d6f3d4eccc2c | [] | no_license | bretzle/Marshmallow-Bot | 1eb020bdf910bd29b324a79a0ee1b094d13f72fc | 72175c0f58e36c7b6325a6cb2224731434781aca | refs/heads/master | 2021-09-01T16:56:23.727278 | 2017-12-28T01:11:15 | 2017-12-28T01:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | import asyncio
import functools
import hashlib
import os
from asyncio.queues import Queue
from concurrent.futures import ThreadPoolExecutor
import discord
import youtube_dl
ytdl_params = {
'format': 'bestaudio/best',
'extractaudio': True,
'audioformat': 'mp3',
'outtmpl': '%(extractor)s-%(id)s-%(title)... | [
"johnfish218@gmail.com"
] | johnfish218@gmail.com |
1f69cce9ab69c9327883e50c082b673410e47b63 | 57dfd89d63b3b52eed144653c8264d50fa9fba6e | /miembros/api.py | faf4e4a8eaed9ebaf9a89ff12fa7d84346885925 | [] | no_license | geovanniberdugo/siiom | c850620214a1a3b8b1fc83ab895c0601241da3b4 | 5e2b72aff7ac5e94a93b7575603114b4ea5f628a | refs/heads/main | 2023-02-16T15:02:30.539674 | 2021-01-15T22:29:36 | 2021-01-15T22:29:36 | 330,036,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | from django.contrib.auth.decorators import permission_required
from django.utils.translation import ugettext as _
from django.shortcuts import get_object_or_404
from django.urls import reverse
from django.http import JsonResponse
from .forms import DesvincularLiderGrupoForm, ResetearContrasenaAdminForm
from .models im... | [
"geovanni.berdugo@gmail.com"
] | geovanni.berdugo@gmail.com |
c14afc507b95a9c36595c24c46ae812c7fcc71c9 | 92993cff825da80a8ff601572a0c52b0b7d3cbde | /algorithms/Svm/APG/L1/APG_L1_m41.py | b1c19880dfe598d8378581b2300d5a68093c2d18 | [] | no_license | yingzhuoy/MRs-of-linear-models | 06e8b1f84b08c6aa77553813824cf35c1806c5a7 | c3df8299e039a12613f2022b370b8c3e9c2dd822 | refs/heads/master | 2023-04-07T23:09:37.736952 | 2021-04-04T05:33:37 | 2021-04-04T05:33:37 | 265,124,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | import numpy as np
from numpy import linalg
from algorithms.clf import Clf
# L1-svm
import cvxopt
from cvxopt import matrix,solvers
## accelerate proximal gradient method
def backtracking(l0, x0, p, q, low, up):
# update x
beta = 0.5
l = l0
L0 = 0.5*x0.T*(p*x0) + q.T*x0
g0 = p*x0 + q
for ... | [
"yingzhuoy@qq.com"
] | yingzhuoy@qq.com |
dd0fa4ba786eb9d8f8734622a18724a5acb42751 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_occasioned.py | f6245b1a5cf35679f3af0adee45fb97bbfcfd1d5 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from xai.brain.wordbase.verbs._occasion import _OCCASION
#calss header
class _OCCASIONED(_OCCASION, ):
def __init__(self,):
_OCCASION.__init__(self)
self.name = "OCCASIONED"
self.specie = 'verbs'
self.basic = "occasion"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f1e5a981d26f50623a516c785ceb31ecc02bb287 | 2ed82c46dc08930bcf1a42bae6b50d0efd6e8899 | /rho_T_plot/rhoTPlot_physical_EAGLE.py | 1cb7f4fbbecf9894e961a7fa20fcaa11d676d703 | [
"MIT"
] | permissive | SWIFTSIM/swiftsimio-examples | 3a96fb910c42fe90cd48a0974ea3b16678214204 | f038df3aa12a129185857b5cee2d4a7c2c6b4d03 | refs/heads/master | 2020-04-30T23:01:02.966239 | 2020-02-14T12:18:09 | 2020-02-14T12:18:09 | 177,133,622 | 0 | 1 | MIT | 2020-02-14T12:18:11 | 2019-03-22T12:10:18 | Python | UTF-8 | Python | false | false | 4,289 | py | """
Makes a rho-T plot. Uses the swiftsimio library.
"""
import matplotlib.pyplot as plt
import numpy as np
import h5py
from unyt import mh, cm, Gyr
from tqdm import tqdm
from matplotlib.colors import LogNorm
from matplotlib.animation import FuncAnimation
# Constants; these could be put in the parameter file but are... | [
"joshua.borrow@durham.ac.uk"
] | joshua.borrow@durham.ac.uk |
98c7fc6457ff198ee87f3568232bf6841406a99e | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccpnmr/format/converters/PalesFormat.py | cd5aa27d66e02596823c00d666e4173bae16967a | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 6,344 | py | #!/usr/bin/python
"""
======================COPYRIGHT/LICENSE START==========================
ModuleFormat.py: Contains functions specific to PALES program conversions.
Copyright (C) 2010 Wim Vranken (European Bioinformatics Institute)
Brian Smith (University of Glasgow)
=========================... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
982438385f1000e3976346a2dc1120aabdcb9938 | c66955c6fc178955c2024e0318ec7a91a8386c2d | /headfirst/example/example2.py | 6f06549a6c1978e95a4a31f7b5543a9d99fc5481 | [] | no_license | duheng18/python-study | a98642d6ee1b0043837c3e7c5b91bf1e28dfa588 | 13c0571ac5d1690bb9e615340482bdb2134ecf0e | refs/heads/master | 2022-11-30T17:36:57.060130 | 2019-11-18T07:31:40 | 2019-11-18T07:31:40 | 147,268,053 | 1 | 0 | null | 2022-11-22T03:36:51 | 2018-09-04T00:49:42 | Python | UTF-8 | Python | false | false | 751 | py | man=[]
other=[]
try:
data=open('/Users/duheng/Documents/HeadFirstPython/chapter3/sketch.txt','r',encoding='utf-8')
for each_line in data:
try:
(role,line_spoken)=each_line.split(':',1)
line_spoken=line_spoken.strip()
if role=='Man':
man.append(line_spo... | [
"emaildh@163.com"
] | emaildh@163.com |
0ec907252b0568f7621cb0e98415d6dc0de57206 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-channel/samples/generated_samples/cloudchannel_v1_generated_cloud_channel_service_provision_cloud_identity_async.py | 294b8255ef654e0f099f9422b69dfee53a729aba | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,026 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
64a7d6b3abb2ff86e6c68063872fb3310bc2f17e | 0265e740dbc38ab543236a12d98ee9e0b57cb927 | /crawler_world/proxy_pool/Util/utilFunction.py | 2d8f46d84651dfe2e5f6940874d6370dc351f9c4 | [
"MIT"
] | permissive | ForeverDreamer/scrapy_learning | c5e604c6a285fa6fef112bdc5617b2129288477a | 6d38c58af5b8ba87803ee77de61f2a54cc65a4db | refs/heads/master | 2023-05-13T18:46:43.715685 | 2022-09-22T10:26:11 | 2022-09-22T10:26:11 | 179,958,600 | 0 | 0 | null | 2023-05-01T19:51:39 | 2019-04-07T11:48:43 | Python | UTF-8 | Python | false | false | 4,154 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
"""
-------------------------------------------------
File Name: utilFunction.py
Description : tool function
Author : JHao
date: 2016/11/25
-------------------------------------------------
Change Activity:
2016/11/25: ... | [
"499361328@qq.com"
] | 499361328@qq.com |
69749573e1c7329b67e11083405f953765a7d54d | cd2ce8e913048a535d7680789d38a16f23ad04b3 | /server/settings/local.py | bdfb750ad6a8b98893ae27a61c1b35837399a5c8 | [] | no_license | wade333777/cocos-js-tips | 3758bbaccb168c1a7f4d17e243e8107cb9fbfb06 | 4f430d5631b1118ad251bdaf8384bc0dbdaf07b9 | refs/heads/master | 2021-01-20T20:35:48.273690 | 2016-06-22T10:02:15 | 2016-06-22T10:02:15 | 60,678,664 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from base import *
# 启用调试模式
DEBUG = True
# ============================================================================
CHANNEL = "android" # [只能小写]
WEB_KEY = 'spyykimech'
GAME_KEY = ')7yt4e!#)gcy&#0^hlme-+082=s!b!$8+h$+(j0bucx0+nu%pe'
ENCODE_DECODE_KEY = 'AAAAAAAA... | [
"1063776603@qq.com"
] | 1063776603@qq.com |
5c37a9079020b9f7860ca0f1c0674ef4efac94d4 | 3d05a382e418234558bed720ad5a56dbbf976a6a | /game.py | 3e0a01bab1c9d7a87849d46d9b85a0652467a729 | [] | no_license | richwandell/tank-tennis | 79354963197ea8469ecd90a682f1d522e5fd7c13 | 47e822d21b6ad3e0330f6f2427da56bf0043a668 | refs/heads/master | 2020-04-02T14:24:14.956038 | 2018-10-24T15:19:57 | 2018-10-24T15:19:57 | 154,523,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from modules.stage import Stage
from modules.main_menu import MainMenu
import json, pygame
pygame.init()
pygame.mixer.init()
screen, world = pygame.display.set_mode((0, 0),), {}
def showMenu():
global world, screen
world = MainMenu(screen)
def playLevel(level):
global world, screen
level1 = json.loa... | [
"richwandell@gmail.com"
] | richwandell@gmail.com |
69d4561868e7b4e9549331417be235f7bde6a826 | 45734abde30b437c2a1ba80653d7323e5c1d8c7f | /python/0735_asteroid_collision.py | c247bdeb01e2092efef3a66a280fd30416006c12 | [] | no_license | rdtr/leetcode_solutions | 6629e03dd5b5fee15aaabe7f53204778f237ed96 | 51800d33c57e36ef62b6067d6f91a82c0e55dc6d | refs/heads/main | 2022-05-21T12:17:23.201832 | 2022-03-12T09:20:46 | 2022-03-12T09:20:46 | 80,395,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | class Solution:
def asteroidCollision(self, asteroids: List[int]) -> List[int]:
stack = []
i = 0
while i < len(asteroids):
if not stack:
stack.append(asteroids[i])
elif (asteroids[i] > 0 and stack[-1] > 0) or (asteroids[i] < 0 and stack[-1] < 0) or (
... | [
"redtree.dev1112@gmail.com"
] | redtree.dev1112@gmail.com |
d6ffee8f77d0617d1af183ab560feda3653eec61 | dc77f52db640fca23aa66be30f15378b09b205c1 | /pitchblog/models.py | 45de23c490eadfdabcd69a5f5c5b4b14e71aed09 | [
"MIT"
] | permissive | marysinaida/PITCH_SITE | 233feb0401bc52c17d0f9e91a66c5f46829b1215 | 95d141baf92a24ce8273ca10b9ee64498d6f22dd | refs/heads/master | 2020-09-15T22:57:14.343802 | 2019-11-26T13:25:36 | 2019-11-26T13:25:36 | 223,576,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from datetime import datetime
from pitchblog import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(25), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)
image_file = db.Column(db.String(20), nullable=False,... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
d50b30de4699270bdccde2ab4e9bc05670de33f4 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/_codeforces/1324_f.py | 057771514859b798e0ba37f2a0eda18a50f48caf | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
n = int(input())
dat = list(map(int, input().split()))
v =[]
for i in range(n+1):
v.append([])
score = [0] * (n)
for i in range(n-1):
a, b = map(int, input()... | [
"glenda.kanai@gmail.com"
] | glenda.kanai@gmail.com |
a98077b547dbb92b9a08eedcba16e8d2d205d6c9 | 5312a19268af0f9ab2c319e46f8d460d64e6e898 | /arche_m2m/__init__.py | 55dbc9d8dab7729058fa4d83f25791c76e161c1c | [] | no_license | GlobalActionPlan/arche_m2m | 2b1bf57b89bb398d747966a5d094c40c6df66916 | 698381888ff55ec72f0027596c5afd9c9b6a3e78 | refs/heads/master | 2021-01-10T20:47:04.159490 | 2017-06-09T12:54:53 | 2017-06-09T12:54:53 | 23,307,596 | 1 | 0 | null | 2020-02-10T08:16:35 | 2014-08-25T08:49:12 | Python | UTF-8 | Python | false | false | 335 | py | from pyramid.i18n import TranslationStringFactory
_ = TranslationStringFactory('arche_m2m')
def includeme(config):
config.include('.ttw_translations')
config.include('.models')
config.include('.schemas')
config.include('.views')
config.include('.permissions')
config.add_translation_dirs('arch... | [
"robin@betahaus.net"
] | robin@betahaus.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.