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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52221f9170f19d340a0b2971cece605f17e08af8 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/3008.py | d8106026b54dd3c6b61154d666a8b007c8e8071e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | import sys
def get_dip_index(num_as_str):
old_ch = '-'
for index, ch in enumerate(num_as_str):
if old_ch != '-' and ch < old_ch:
return index
old_ch = ch
return -1
def largest_tidy(numstr):
dip_index = get_dip_index(numstr)
if dip_index == -1:
# This number is... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bf3e5bb85dbecf4943aea56f308b10a18ef9e324 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GLES2/NV/shading_rate_image.py | 812b333c0082128279fda4ae793f36715b457d10 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,818 | py | '''OpenGL extension NV.shading_rate_image
This module customises the behaviour of the
OpenGL.raw.GLES2.NV.shading_rate_image to provide a more
Python-friendly API
Overview (from the spec)
By default, OpenGL runs a fragment shader once for each pixel covered by a
primitive being rasterized. When using multisamp... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
c74e68def49a0597ef607982cbaffeebd2004f21 | 9f112cd0aeb1447dee06ded576d99b61701cbdc3 | /ec-backend/src/chat/migrations/0002_auto_20191220_1629.py | 1921b0c80e56f566bfafe6075de93c7db330210b | [] | no_license | ForeverDreamer/embarrassment-cyclopedia | 44e13fbd7210ebc634d0fbab321c0f4598072ff3 | f69bc88a6a8e734cbb3d37ab173f557708653789 | refs/heads/master | 2023-01-10T17:20:44.181077 | 2020-07-15T03:20:27 | 2020-07-15T03:20:27 | 206,903,622 | 0 | 0 | null | 2023-01-07T09:30:23 | 2019-09-07T02:22:09 | JavaScript | UTF-8 | Python | false | false | 947 | py | # Generated by Django 2.2.1 on 2019-12-20 08:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('chat', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"499361328@qq.com"
] | 499361328@qq.com |
fe54ab9b79061a86ee1f93b198bf2cb3177b52df | 18a62a42a4b0a3625b8dc6fe0a8665e3170b3a09 | /Solution04-09 돈 분류기 만들기.py | bd72bd3eeee3af7ea2d79ff86d233fe45d3792b1 | [] | no_license | jiwon010913/PythonPractice_1stGrade | 365940d71b729b64f255c7864165fe7f48e6d7d2 | f53ec231dc85515d4a9aef23db20a2e72ee8714b | refs/heads/master | 2023-04-14T23:17:24.874152 | 2021-04-29T05:23:14 | 2021-04-29T05:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | ## 변수 선언 부분
money, p50, p10, p5, p1, c500, c100, c50, c10 = 0,0,0,0,0,0,0,0,0
## 메인(main) 코드 부분
money = int(input("교환할 돈은 얼마?"))
p50 = money // 50000; money %= 50000
p10 = money // 10000; money %= 10000
p5 = money // 5000; money %= 5000
p1 = money // 1000; money %= 1000
c500 = money // 500; money %= 500
c100 = money ... | [
"you@example.com"
] | you@example.com |
e13571981362bd6656fc8d7b31ee0204371f0712 | e5a848b1efa615b1892194e999427ea5b7ac7b84 | /journal/forms.py | 25bdb55b5d30e66f32187b0be48600b7731d59fc | [] | no_license | oujri/newspaperShare | aeaa0696549c03af2afcef0029c8f26600d15395 | 2371a664c404a5f44cf181c5e9061f11e2014e43 | refs/heads/master | 2020-03-13T17:11:47.947593 | 2018-05-03T23:49:56 | 2018-05-03T23:49:56 | 131,212,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | from django import forms
from .models import Image
class ImageUploadForm(forms.ModelForm):
class Meta:
model = Image
fields = ('description', 'image', )
class NewslatterForm(forms.Form):
email = forms.EmailField(
max_length=40,
widget=forms.EmailInput(
attrs={
... | [
"anass.urh@outlook.fr"
] | anass.urh@outlook.fr |
7524c08c22e12a89cd9f3ce18878d0e82d4009d2 | 2c6a8eef4da4aa3ba38fb51580493c7d7ebd1e4f | /reset_database.py | 125982142636b26eb15b3502bd7476099ec4a3d4 | [] | no_license | yakky/3frameworks-flask | fae27ba14f55a2a51423ec144f5e322148ca60f3 | b4f1d9f9affb615ba534ea5c93bb4ae674d41e88 | refs/heads/master | 2023-05-26T07:06:43.486147 | 2019-09-28T13:48:18 | 2019-09-29T01:51:55 | 211,507,259 | 0 | 0 | null | 2023-05-02T00:40:31 | 2019-09-28T13:47:37 | Python | UTF-8 | Python | false | false | 197 | py | from flask_api.app import app, initialize_app
from flask_api.database import db
initialize_app(app)
with app.app_context():
def reset_database():
db.drop_all()
db.create_all()
| [
"i.spalletti@nephila.it"
] | i.spalletti@nephila.it |
188ad9774a36b4d94b81ef6aa34e808adabddd0e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02913/s710273596.py | 9552b5f12ee20b76c342d6e4984ac720ed069419 | [] | 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 | 490 | py | def z_algorithm(S):
l=len(S)
A=[0]*n
i=1;j=0
while i<l:
while(i+j<l and S[j]==S[i+j]):
j+=1
A[i]=j
if j==0:
i+=1
continue
k=1
while i+k<l and k+A[k]<j:
A[i+k]=A[k]
k+=1
i+=k
j-=k
retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9c83f4811c23868f60e9ee449f708fa39b5edde0 | 2b3ea7bb0df4be7f55d2ac188e23d801e497df8d | /test/test_subscr_workshift_schedule.py | 3f8a040c263df3430d544c944b41f1f7a7c2d264 | [] | no_license | mikespub/fcsm-eos-api-client | 12b663b4e79ac5d86c2162dec168bfa240a85f0c | 107a3a7733c55ae6a750e32497268300c6be590e | refs/heads/master | 2020-08-01T18:13:17.229375 | 2019-10-29T14:30:56 | 2019-10-29T14:30:56 | 211,071,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | # coding: utf-8
"""
Combined FCSM EOS API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.2.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
impo... | [
"github@mikespub.net"
] | github@mikespub.net |
f9f2395b413a8c03a7ce58c73f8d273c947bec59 | 0806560301abb237b1f931764f4322c23beee566 | /tests/stores/test_utils.py | 62069f735aebdd9a741524036e5238a86c1e033e | [
"BSD-3-Clause"
] | permissive | michaelXDzhang/pulsar | d2f3cf6a2f9c16e320dfbc76df3ac603dff70e37 | fee44e871954aa6ca36d00bb5a3739abfdb89b26 | refs/heads/master | 2020-07-27T23:09:09.801263 | 2018-01-11T23:14:27 | 2018-01-11T23:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | import re
import unittest
from pulsar.apps.ds import redis_to_py_pattern
class TestUtils(unittest.TestCase):
def match(self, c, text):
self.assertEqual(c.match(text).group(), text)
def not_match(self, c, text):
self.assertEqual(c.match(text), None)
def test_redis_to_py_pattern(self):
... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
8cd16cd258936e4139eb6a8d6a86138931fe3e0a | 1fa6c2650c791e35feaf57b87e832613e98797dd | /LintCode/DFS/Remove Invalid Parentheses.py | f3f27f473f962dd786c98386ed885b55e68a9410 | [] | no_license | hz336/Algorithm | 415a37313a068478225ca9dd1f6d85656630f09a | 0d2d956d498742820ab39e1afe965425bfc8188f | refs/heads/master | 2021-06-17T05:24:17.030402 | 2021-04-18T20:42:37 | 2021-04-18T20:42:37 | 194,006,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | """
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.
Notice
The input string may contain letters other than the parentheses ( and ).
Example
"()())()" -> ["()()()", "(())()"]
"(a)())()" -> ["(a)()()", "(a())()"]
")(" -> [""]
"""
cla... | [
"hz336@cornell.edu"
] | hz336@cornell.edu |
65a1049e4a4089e1c1d9d45ee50a3ed466799e81 | 44c372cd25a2496979fa29a1dc9131c54487d945 | /data/zh50w/transform_retrieval.py | 855776912da46b16227412eafbcd3e091e8023ce | [
"MIT"
] | permissive | zhongerqiandan/OpenDialog | 4ff4e65d0ade1efdd3029475634ae1cf38c7bdd3 | f478b2a912c8c742da5ced510ac40da59217ddb3 | refs/heads/master | 2023-01-22T09:07:54.385604 | 2020-12-04T02:00:17 | 2020-12-04T02:00:17 | 318,419,052 | 0 | 1 | MIT | 2020-12-04T05:58:37 | 2020-12-04T05:58:37 | null | UTF-8 | Python | false | false | 3,743 | py | from tqdm import tqdm
import json
import random
import ipdb
from itertools import chain
from elasticsearch import Elasticsearch
import argparse
'''
Transform this multi-turn dialog corpus into the same format of the douban300w and E-commerce dataset
'''
def parser_args():
parser = argparse.ArgumentParser(descript... | [
"18811371908@163.com"
] | 18811371908@163.com |
6951584037fe21976eeca59192b993fac6b4b2df | ea18faef9936158ed80b6bd3c3e4721523aad82e | /oo/newDemo01.py | b98a64fee852ff34eab9f249ac14c76e2be7af93 | [] | no_license | zidanewenqsh/my_api_02 | 537dbf63bcd698726bfbc996dae87cb16fa0a63f | 23054c852d5bb2b3e17c3a25eba42be9676ce57c | refs/heads/master | 2021-06-23T16:02:14.895543 | 2021-05-16T13:23:08 | 2021-05-16T13:23:08 | 224,233,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # class A:
# def __new__(cls):
# print("A new")
# return object.__new__(cls)
# def __init__(self):
# print("A init")
# def say(self):
# print("hello A")
class A:
def __new__(cls, obj=None):
print("A2 new")
if obj:
return object.__new__(obj)
... | [
"zidanewenqsh@163.com"
] | zidanewenqsh@163.com |
1f87bbe6204274d7500fb0f1f3afc43468a5e763 | 9f4b1884273f995806c1e755665a92b785cc52a8 | /onnx/reference/ops/op_det.py | 2019b84d9171a68227fc003366845ddae3eb40a3 | [
"Apache-2.0"
] | permissive | zhijl/onnx | 340f7c5794a9aca96d2a9e76c3336aeebe798776 | ac0afea916f989c714692dd8551eff762a639cd5 | refs/heads/main | 2023-03-31T02:30:50.151799 | 2023-03-20T23:09:55 | 2023-03-20T23:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # SPDX-License-Identifier: Apache-2.0
# pylint: disable=W0221
import numpy as np
from onnx.reference.op_run import OpRun
class Det(OpRun):
def _run(self, x): # type: ignore
return (np.linalg.det(x),)
| [
"noreply@github.com"
] | zhijl.noreply@github.com |
595838640287a424ceda770c4aea381499dea762 | 98429ef8ef7a5b5f027cce1f335f56cea7c60a7c | /scss/tests/test_expression.py | 713504232ca1b0074d2cda7a3bf5f0425c8291bd | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | sammyrulez/pyScss | b64201d6e4f97a03319d3592c5352f2196e93c63 | 2eb71a08fbea4143d3da1f00e911ac2ebfa0be4f | refs/heads/master | 2020-12-24T10:02:36.701252 | 2013-08-09T01:56:48 | 2013-08-09T01:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,824 | py | from scss.expression import Calculator
from scss.rule import Namespace
from scss.types import NumberValue
from scss.util import to_str
import pytest
def test_reference_operations():
"""Test the example expressions in the reference document:
http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#operation... | [
"eevee.git@veekun.com"
] | eevee.git@veekun.com |
fbcbca7dd1e04402963296ee3a00a39afe7de9a5 | efdd433fb2e358bb9ec4cb293db2211f5516a9e4 | /.local/share/virtualenvs/faceboop-uoI8J_Cw/bin/django-admin | 54393b6dad1c4d33dc16435949ee5a2ba7c2dd6d | [] | no_license | errinmarie/FeedBack | 3e5c2e581ee207f486567bd838ac864f2c959f18 | c7cf1aefea226b10b4387ded4a0693d786558d14 | refs/heads/master | 2021-10-01T20:08:53.846515 | 2018-11-28T02:49:41 | 2018-11-28T02:49:41 | 159,429,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | #!/home/errinmixon/.local/share/virtualenvs/faceboop-uoI8J_Cw/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line()... | [
"errinmixon@gmail.com"
] | errinmixon@gmail.com | |
5704a81f9edb153536d28cbf2afcf815638e2092 | 50a7c55e00b661746fc953ee4940a8f3bf976b18 | /uds/echo_client.py | 9c347771a0b27df2f7a751db45c1c525b3c13c59 | [] | no_license | cponeill/pymotw-practice-examples | a9e049a5aee671c8bfc958c6a5bfcfb764f12444 | 6e87ca8be925bc103afb7c0f80da8a69f1e80a4c | refs/heads/master | 2021-01-13T13:14:39.216035 | 2017-10-25T14:31:58 | 2017-10-25T14:31:58 | 72,708,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # echo_client.py
import socket
import sys
import os
# Creat a UDS socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect te socket to the port where the server is listening
server_addres = './uds_socket'
print('connection to {}'.format(server_address))
try:
sock.connect(server_address)
except ... | [
"caseyoneill78@hotmail.com"
] | caseyoneill78@hotmail.com |
a387be729ee535ddecb78c420710bcdaa3345480 | c3de772240edf279c4f28c21912784d66ef710e7 | /process_dump.py | ccd53b7a18674a0a2255fb2c054c37ef30d8c558 | [] | no_license | anandology/webpy.org-migration | f8d1bdae8d00359e7b73c0575516f959cee78933 | a5e0ef3c7b4ac5cc7f9e2d12a3df21e5ef3492d5 | refs/heads/master | 2016-09-06T05:18:25.791668 | 2011-01-05T07:52:53 | 2011-01-05T07:52:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | import os
import re
import string
import sys
import datetime
import simplejson
import web
def write(filename, title, body):
dirname = os.path.dirname(filename)
os.system("mkdir -p %s" % dirname)
title = title and title.encode('utf-8') or ""
body = body and body.encode('utf-8')
f = op... | [
"anandology@gmail.com"
] | anandology@gmail.com |
b5a2a4c5a65ca5f8879fdf6cbea0a72ba8292b30 | 3b8387d770b33850dca55a1f0657167906697b5b | /Unique_Binary_Search_Trees.py | c93994c4b38cdf30886a3723a022e0cf407779c1 | [] | no_license | BigZihao/Leetcode | fe2795d5485e4780c1ec79558eaf9017a830a516 | 95ec42c241a4815a8b35f7a71948f1bc4e58b5b3 | refs/heads/master | 2021-01-13T00:59:12.489768 | 2018-06-21T21:50:33 | 2018-06-21T21:50:33 | 48,407,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py |
## DP
## f(n) = f(0)*f(n) + f(1)*f(n-1) + .... + f(n-1)*f(1) + f(n)*f(0)
## O(1+2+...+n)=O(n^2)
def numTrees(self, n):
"""
:type n: int
:rtype: int
"""
count = [0] * (n + 1)
count[0] = 1
for i in range(1, n + 1):
for j in range(0, i): ## how many left node have
count[i]+=count[j]*count[(i-1)-j]
return ... | [
"zihao.zhang.ustb@gmail.com"
] | zihao.zhang.ustb@gmail.com |
a358213d11dcbd422914da565ab2f1cc46158b46 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1G81j68rvCSDpGXtrzdSn8ahMuoj2KyPrY.py | 34a08b67761423e3b3e69f9d397f0c9a57cc0578 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,134 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1G81j68rvCSDpGXtrzdSn8ahMuoj2KyPrY(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
87a23af6d29935a726a9f41a72f1544977d33ecc | 53a803d093b9cc2f978810d74d2ac9f597b279f4 | /ostap/trees/treereduce.py | f1c0685475e8fb8e92a19bf397bdda7a2411b808 | [
"BSD-3-Clause"
] | permissive | OstapHEP/ostap | 750b632ec8084673a269af48acd10f834fd7fac8 | 471784d07c7b794a24e45d794464aab63fc940db | refs/heads/master | 2023-09-01T08:51:40.684480 | 2023-09-01T06:41:19 | 2023-09-01T06:41:19 | 81,464,356 | 20 | 14 | BSD-3-Clause | 2022-12-26T11:45:27 | 2017-02-09T15:26:36 | C | UTF-8 | Python | false | false | 3,877 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file ostap/fitting/treereduce.py
# Reduction/serialization/deserialization for some Ostap/ROOT classes
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2011-06-07
# ==============... | [
"ivan.belyaev@cern.ch"
] | ivan.belyaev@cern.ch |
3b8a3fbca1ad503fa11e465689809b13d2404933 | 8e2e28a191fa5ec5a6c070ec7e9ccad98c8b4a0b | /spiderman/qiushibaike.py | a690e2989035113ab1b4a086f8aae133d37d5233 | [
"Apache-2.0"
] | permissive | kellanfan/python | 4cd61cbc062e2eee3a900fa7447ca5f0b8f1a999 | 912dc05a3bd0ded9544166a68da23ca0a97b84da | refs/heads/master | 2023-04-06T03:04:38.851928 | 2023-04-01T02:45:56 | 2023-04-01T02:45:56 | 65,542,280 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | # pylint: disable=no-member
# -*- encoding: utf-8 -*-
'''
@File : qiushibaike.py
@Time : 2020/02/05 15:58:41
@Author : Kellan Fan
@Version : 1.0
@Contact : kellanfan1989@gmail.com
@Desc : None
'''
# here put the import lib
import os
from lxml import etree
from misc import openurl
from misc impo... | [
"icyfk1989@163.com"
] | icyfk1989@163.com |
ea64546865f98a6b3855b07e0919a2950f99fdce | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/channel/channel_metadata/tests/test__put_default_thread_auto_archive_after_into.py | dd543bc67a08471e2485dc8c62e5afdbe5f60314 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 681 | py | import vampytest
from ..constants import AUTO_ARCHIVE_DEFAULT
from ..fields import put_default_thread_auto_archive_after_into
def test__put_default_auto_archive_after_into():
"""
Tests whether ``put_default_thread_auto_archive_after_into`` is working as intended.
"""
for input_value, defaults, expect... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
abfe1a8887a9143b044de6e7bd674d3e2a1c381e | 350cb6c7c7a7842e80aa06ee32bfffc5bc35ee03 | /desktop/gnome/base/gconf/actions.py | 202c24ee51a7e4de22bbd02b2ed34c7dfd1dce05 | [] | no_license | LimeLinux/Packages-2 | f41d11343e8b39274ccd85b9850d0f4e76830031 | 356975df129f2097f12dbed3bc2604cadb5a6c64 | refs/heads/master | 2021-04-30T23:25:31.121967 | 2017-01-21T21:46:54 | 2017-01-21T21:46:54 | 79,139,920 | 0 | 2 | null | 2017-01-21T21:46:55 | 2017-01-16T17:02:37 | Python | UTF-8 | Python | false | false | 1,322 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools
def setup():
... | [
"ergunsalman@hotmail.com"
] | ergunsalman@hotmail.com |
0890d78cf4895168ecabcd1cd4c585a0d9429f0d | b8bdf7087b3da05f617ce769cb015fd3ac5be8b6 | /backend_app/models.py | f2e8ccf3fe00213d8abc620e1d7a2b94e661863b | [] | no_license | nandini8/credible | 3b396263d9d17657f152a8cfe6cbdfd1e328e77f | 7e5790055b985ab046fec889c808d5743d619d85 | refs/heads/master | 2021-09-10T19:00:43.646170 | 2018-03-31T09:34:56 | 2018-03-31T09:34:56 | 126,043,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | from django.db import models
from django.conf import settings
from decimal import Decimal
# Create your models here.
#myFields = ['tweet_id','user_id', 'text', 'external_link', 'shares', 'likes', 'tweet_created_date', 'title', 'content', 'author', 'pub_date']
class InitialData(models.Model):
article_id = models.In... | [
"nandini.soni8@gmail.com"
] | nandini.soni8@gmail.com |
e93448954b63137dd0a8e7e70afbab900bc4d7aa | 35734053c269e11af90c7503ca3bae2d778ca88b | /Exercises/Food.py | 5fa9b3fc51daa3cf970de23aa410e0358e7060e9 | [] | no_license | powershellfish/python_programming_3e | 9159f4e89fb4edd762af001e31ad6d03a29d0952 | c8ef62770284f03497dafce844b10de809e94271 | refs/heads/master | 2022-06-14T23:05:31.262784 | 2022-05-15T23:55:06 | 2022-05-15T23:55:06 | 182,108,723 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | food1 = str(input("What is your favoritest food? "))
food2 = str(input("Ok, now what's your favorite food? "))
print("So you like", food1, "and", food2)
drink = str(input("What is your favorite drink? "))
print("Do you seriously like",drink,"?!?!")
| [
"47839113+powershellfish@users.noreply.github.com"
] | 47839113+powershellfish@users.noreply.github.com |
ffc7268fe802970803e566f9b4afa6da2ab5d104 | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/comparison/test_image30.py | a61895dd8704bac059516d292bbb0276fea37f37 | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
8a19b03a567374dab30fee0a702d05da7f00aa8b | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_008_20180622004513.py | 765ca1107d970d73b17beabea5e306535a796f78 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,980 | py | from random import randint
import copy
import solveSudoku
def giveHint(emptyS, solvedS):
for x in range(0, 9):
for y in range(0, 9):
if emptyS[x][y] == " ":
print("x,y =", x, y)
print("emptyS[x][y] = ", emptyS[x][y])
print("solvedS[x][y] = ", so... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
a6cfe342347cffdcc3a9767b7711a85c80d77637 | 7add1f8fc31b09bb79efd2b25cc15e23666c1d1d | /tfx/orchestration/kubeflow/v2/e2e_tests/base_test_case.py | 5faeb1e1dab92ba34328e7457c379705fcec88f5 | [
"Apache-2.0"
] | permissive | twitter-forks/tfx | b867e9fee9533029ca799c4a4c5d1c5430ba05fe | cb3561224c54a5dad4d5679165d5b3bafc8b451b | refs/heads/master | 2021-11-19T18:45:09.157744 | 2021-10-19T00:02:34 | 2021-10-19T00:02:34 | 205,426,993 | 2 | 1 | Apache-2.0 | 2021-10-18T21:03:50 | 2019-08-30T17:21:03 | Python | UTF-8 | Python | false | false | 5,608 | py | # Copyright 2020 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 required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
2723c7c567e3d5a6cf34963b653f195bf021791a | 89d5dbd7672d9e03e7ca5277a9fd942b2444db86 | /start python/04.py | 0071a2b0ad30a8d083e32be2ec3f2db44c4dbfd7 | [] | no_license | rameshparajuli-github/python-programming | 6ff218d4d1cdde73a578e4f2f3ba6241310d6408 | 5d2638a24e8b50614f2c15f04eb1f00dba0f6175 | refs/heads/master | 2023-06-17T18:40:47.797595 | 2021-07-16T14:02:52 | 2021-07-16T14:02:52 | 386,656,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py |
# convet the number
a=20
print(bin(a))
# import math
# #floor le chai eak step decrease garcha
# #ceil la chai eak step increase garcha
# print(math.ceil(20.2)) | [
"susmitscore619@gmail.com"
] | susmitscore619@gmail.com |
102658e3b2b40536812aed676016e37a13af51a8 | ba07b0cf220f9a6090abec4ce20cac675206e0f5 | /organizador/migrations/0004_auto_20181114_1925.py | ad61397a77cd153de34fd21bbed7fe7b90f90ba9 | [] | no_license | GustavoOliveira/TrabFinal | dbe1a75e08ce4752bca5c197d2f95bebb3ca66fb | 9f03b9052d400b70b5ba86e4784fc9089259a77e | refs/heads/master | 2020-04-07T10:02:20.766942 | 2018-11-23T16:02:25 | 2018-11-23T16:02:25 | 158,273,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.1.3 on 2018-11-14 19:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organizador', '0003_auto_20181114_1924'),
]
operations = [
migrations.AlterField(
model_name='o... | [
"root@debian"
] | root@debian |
d304f6ca214919e4af392f0b200bba0ce01666a8 | 7fd6a1d53687dc2c58a63d3b2dc6193dfdaa352e | /Two dimensional list/lectures/different printing methods for 2-D list.py | 498f39db677b64d454663c99dc59b8a0c79b5b69 | [] | no_license | renukamallade10/Python-problems | 244ee8f532699d36933464e6216932450bc94be3 | e6a46c3d3762d581a0e350663d1fc329b6b4b1d5 | refs/heads/master | 2023-03-15T12:41:18.990615 | 2020-03-15T06:26:16 | 2020-03-15T06:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 9 16:56:47 2020
@author: cheerag.verma
"""
# can used to print normal list as well as jagged list.
li = [[1,2,3],[4,4,],[8,65,5,43,3]]
n = 3
for i in li:
for j in i:
print(j,end=" ")
print()
# we can use this method we want to... | [
"chiragverma188@gmail.com"
] | chiragverma188@gmail.com |
d2c838a0ffe2de28e673099b4bbbc75bf7733850 | c1e488789b41a714cdd37525d7e71815753c21d9 | /verifyENV/202002/youtube2ios/verify/main.py | 5caad8c4cbc5845507774ec46dbfe9a9e9b8e355 | [] | no_license | happyhappyhappyhappy/pythoncode | 638a0cbeb94ec04829c1c4e216fb200863cd7a4e | 247b8346a503cab272043c20e6210ee03cfdd8c4 | refs/heads/master | 2023-08-31T20:54:06.144750 | 2023-08-30T08:33:15 | 2023-08-30T08:33:15 | 223,697,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | from pytube import YouTube
import my_module
import byte2si
import url_get
import os
import glob
import time
import sys
import youtube_dl
VIDEO_DIR = os.path.join(os.getcwd(), "DL_videos")
OPTS = {
"outtmpl": "{VIDEO_DIR}/%(title)s.mp4".format(VIDEO_DIR=VIDEO_DIR),
'ignoreerrors': True
}
def download(url):
... | [
"ymnkkj@gmail.com"
] | ymnkkj@gmail.com |
727a6f2bd4c218f2e671740deb8979ba4bdbdcfc | 0049832c5cbee4b96189b88b51653f48decde596 | /MODIS/ReprojectionCropping/ReprojectionCropping3.py | 6a72b9ddbda8a1b3f6436ca2a553afb00a722b9c | [] | no_license | henockmamo54/ImageFusion | 18cf27ec4a066456c0d575696fc986814d10a7e6 | 07e88b5cb1925f54b3b3659caa2abda2bf4f3a72 | refs/heads/master | 2023-06-16T12:38:07.352623 | 2021-07-19T00:52:02 | 2021-07-19T00:52:02 | 355,720,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 5 16:45:32 2021
@author: Henock
"""
import os
path ="D:/Workplace/githubProjects/ImageFusion/MODIS/ReprojectionCropping/TestData"
OBJECT_NAME = "mod07"#"MOD_Grid_BRDF"
FIELD_NAME = "Total_Ozone"
PIXELSIZE = 1000.0
pathoutput="D:/Workplace/githubProjects/ImageFusion/M... | [
"henockmamo54@gmail.com"
] | henockmamo54@gmail.com |
5392d5d5ff3972c12f7b407c813ad44d6b19305a | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/testbase/azure-mgmt-testbase/azure/mgmt/testbase/operations/_operations.py | 578a88cf24efbb3a45b3e45197dbbc804c63bd53 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,836 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
217d0969525afe33e7ad2789401813443421cba4 | 60d5b5b1f1c912d1655de3884efc09dfddd8d132 | /sites/hermanmiller/search/views.py | e21099e3c91f6a84f6effdd681f3718a12afbc0f | [] | no_license | alexgula/django_sites | 15033c739401f24603e957c5a034d63652f0d21f | 038834c0f544d6997613d61d593a7d5abf673c70 | refs/heads/master | 2016-09-05T11:02:43.838095 | 2014-07-07T11:36:07 | 2014-07-07T11:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # coding=utf-8
from django.utils.translation import ugettext_lazy as _
from navigation.views import NavigationTemplateView, HomeNavigationView
from navigation.models import StaticNode
from haystack.query import SearchQuerySet, EmptySearchQuerySet
class SearchView(NavigationTemplateView):
template_name = 'search/s... | [
"alexgula@gmail.com"
] | alexgula@gmail.com |
71d5d16e17fe3c2a3c01dc9e8b3f09f0c29d0626 | 158a327c3cbff52a607d4ec668c658f0d8d8eea8 | /Linked_list/92. Reverse Linked List II.py | 8568060ec7e6335bcce250a4eaa4b96403296b6f | [] | no_license | smartwell/leet_niuke | f11cbf826f9b2b358b614a63200e93aef47054a2 | eb84aaa1248074dceda831f9385d68a24941fa04 | refs/heads/master | 2020-06-24T16:37:33.073534 | 2019-07-25T13:19:49 | 2019-07-25T13:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | from Linked_list import linkedlist_operate #链表题规范化输入输出
class LNode:
def __init__(self, x=None):
self.val = x
self.next = None
def reverseBetween(head,m,n):
l1 = []
l2 = []
l3 = []
count = 0
while head:
count += 1
if m <= count <= n:
l2.append(he... | [
"w5802022@gmail.com"
] | w5802022@gmail.com |
bf16c86a7e7ea0432ebc3e8ac45cebc5fc612f21 | 7e39ca6104d055974719e15a076b6777c8c3f56a | /programs/write_wkZip3_ili-viz-pop.py | 527028e10a4435b39dd87b033f2255bf957d8e3f | [] | no_license | Qasim-1develop/flu-SDI-dzBurden-drivers | 00e61a992e75ea500b9d690ef6f25f77f9638def | c66a556c1d5012af3b69c16ba407b3d444ea23be | refs/heads/master | 2022-07-22T16:46:10.612961 | 2018-09-26T14:45:35 | 2018-09-26T14:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | #!/usr/bin/python
##############################################
###Python template
###Author: Elizabeth Lee
###Date: 5/21/15
###Function: Write ILI, visits, and population data for Aim 2.1 to file after manipulation with Pandas.
###Import data: dz_burden/SQL_export/ILIViz_allWeekly_totServ_totAge_allZip.csv; dz_burd... | [
"eclee25@gmail.com"
] | eclee25@gmail.com |
67b829b894d55da1a26d4bf405feb08ad160ed1e | bd7c0c23b3726aed0b96df8e45059e3b7950ed69 | /tests/test_multiline_feature.py | 68f0897ccf9add00ea5baa9c8f1ea97be5aef470 | [
"MIT",
"BSD-3-Clause"
] | permissive | niejn/pyexcel-odsr | 1b0ae43a4297feb9fe292fbc14b75a2f9bdc551f | bf8ce199c9b6b00d8555d181f523e93e75a41230 | refs/heads/master | 2021-05-10T12:05:25.883087 | 2017-10-23T18:48:05 | 2017-10-23T18:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | import os
import pyexcel
from nose.tools import eq_
def test_reading_multiline_ods():
testfile = os.path.join("tests", "fixtures", "multilineods.ods")
sheet = pyexcel.get_sheet(file_name=testfile,
library='pyexcel-odsr')
assert sheet[0, 0] == '1\n2\n3\n4'
eq_(sheet[1, 0],... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
3c87b53a7e5c8f6a0b8206482f756c520f8fd3c8 | 82e7b27cc4377def80c2b475645d502e40a0e498 | /photographer/migrations/0019_auto_20160213_2139.py | d7fce59da0701eb111f6f618708836b937eb2f9d | [] | no_license | craYBoi/bryte | 850698e735a08ea10a08a78dc9e23b7e760c682f | d2b5a74d200ccb06cc3ef4e3180b83cbc338ce3e | refs/heads/master | 2022-12-12T08:54:56.863372 | 2017-06-28T05:03:32 | 2017-06-28T05:03:32 | 63,019,677 | 0 | 0 | null | 2022-11-22T01:00:25 | 2016-07-10T21:44:41 | CSS | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-13 21:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photographer', '0018_auto_20160213_2137'),
]
operations = [
migrations.Alter... | [
"baoyuyang@Yuyangs-MacBook-Pro.local"
] | baoyuyang@Yuyangs-MacBook-Pro.local |
f00c03e062ab836f9eebca79b0201ca3a8e8c410 | c8c77f6cc6c032daf179ea2138e4dda5473b426b | /cloudwatch/list_metrics.py | b4e450e76c30027a871579203db421122bc8e825 | [] | no_license | arunmastermind/AWS-examples-using-BOTO3 | b411a6c96011ab58a66952a53fa2938cb58d5135 | e8390094374c10902bab016a21caba75ea179b5a | refs/heads/master | 2020-09-30T13:34:33.657621 | 2019-12-11T12:37:44 | 2019-12-11T12:37:44 | 227,297,211 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import boto3
# Create CloudWatch client
cloudwatch = boto3.client('cloudwatch')
# List metrics through the pagination interface
paginator = cloudwatch.get_paginator('list_metrics')
for response in paginator.paginate(Dimensions=[{'Name': 'LogGroupName'}],
MetricName='IncomingLogEven... | [
"arunmastermind.sci@gmail.com"
] | arunmastermind.sci@gmail.com |
641e81f5d624408211c3d4b4cb5a67e99a2660af | 5f327b9e3f5d5714a56ad1a0d46589e0292b2ef0 | /command.py | c2d7f4882b3144521fe86ed276d43c56c76d4252 | [] | no_license | zerc/YUA-SQL.sublime_plugin | 4024f48da8415827f0a8228a636640524a8e39e1 | 008026ef2d0a222a16636254af500c3dc446d015 | refs/heads/master | 2021-01-01T18:23:28.017052 | 2014-01-19T13:56:06 | 2014-01-19T13:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import sublime
import sublime_plugin
try:
# Sublime 2
from psql import PsqlCommander
from patterns import is_table_request, is_columns_request, get_table_name
st_version = 2
except (ImportError):
# Sublime 3
from .psql import PsqlCommander
from .patterns import is_table_request, is_columns_... | [
"zero13cool@yandex.ru"
] | zero13cool@yandex.ru |
c0a02f2ca3b1398dabc8424934f16f5c39763f09 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/catapult/third_party/gae_ts_mon/gae_ts_mon/protobuf-3.20.0/google/protobuf/any_pb2.py | 6f1adbc27b0b84e5eafbf44ee0a714ba82d3233b | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | true | 1,536 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/any.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _messa... | [
"jengelh@inai.de"
] | jengelh@inai.de |
05b467c8492617c20ad0c8c933f6019412a9f75c | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /cloudfront_read_1/cache-policy-config_get.py | c179dd175ae3eeca5b3789ba07fb21f932432573 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudfront/get-cache-policy-config.html
if __... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
1fedbf59727c6ecfbede763dc5dc8c0f44ef2158 | 7f8a64d57f65e0e281cd27c0678c5aee9ca41a08 | /models/zPrime.py | 140d06fdaaae86aca0dc191eb080c245f9eb31c0 | [] | no_license | roarem/fys4560_proj2 | 497a9cd8bb55e157d4e2db459ef7656bdf2f9821 | 6d41b0895876095107cb8550c03e45d47befe31d | refs/heads/master | 2021-01-10T05:17:03.694846 | 2016-03-10T22:42:30 | 2016-03-10T22:42:30 | 52,986,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | inFile = open("lgrng11.mdl",'r')
#inFile.readline()
#inFile.readline()
#inFile.readline()
ZpEntries = []
original = []
Z = 'Z'
Zp = 'Zp'
for i,line in enumerate(inFile):
original.append(line)
if i>2:
if Z in line:
Zline = line.split(Z)
nZ = len(Zline)
if nZ == ... | [
"you@example.com"
] | you@example.com |
7553dc7ab5ebf7d09df70810b54ade0973db0503 | f344f0ac68f5bc5e7b45f630e334a3bd72793492 | /Mouse_action/Send_keys_context_menu.py | bfcf3439cb6d8887ea0b639394c3bf187f71c498 | [] | no_license | Swethahiremath/seleniumpycham | dfa2138e7d951d28b128f2ca108f9d72c98e0a27 | 73402b0f273d6c9b2199aec084791e6adc9f2107 | refs/heads/master | 2020-09-28T12:48:39.501194 | 2019-12-09T04:05:51 | 2019-12-09T04:05:51 | 226,781,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
from selenium.webdriver.common.keys import Keys
driver=webdriver.Chrome()
driver.maximize_window()
driver.implicitly_wait(10)
driver.get("https://www.actimind.com")
sleep(3)
action=ActionChains(driver... | [
"swhirema@oradev.oraclecorp.com"
] | swhirema@oradev.oraclecorp.com |
e51aac66ca12fd6a1c35cffa8d33cbbcd90adf34 | 6edff4145de324006ea76484d1ddeb597e55dd8a | /manage.py | 7af17c2e952da4ce46412ec2d19b1a03888e1d61 | [] | no_license | htzs12/django_study | 0ae443bd5873169263db3b27c3f48dc475e4e20c | 4bb40c9345a9195d464d92e844dc08a963fecf61 | refs/heads/master | 2020-03-31T21:19:34.076507 | 2019-07-11T00:39:48 | 2019-07-11T00:39:48 | 152,576,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_study.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [
"www.htzs@qq.com"
] | www.htzs@qq.com |
79b6e917fafaa2972bbdeca0a10729152ec79400 | 3b194686d501a680936173df282536e4d9066812 | /balancedparenthes.py | d723f964838bea046edee180a1fb5b99f4da90f0 | [] | no_license | Ricky-Hu5918/Python-Lab | 1366c1c5d918c961687cf5c39abab686087c8d98 | 3dc6c743651d8c54ea472a322ad6751639467f6b | refs/heads/master | 2021-06-20T17:50:20.590246 | 2021-06-16T01:24:03 | 2021-06-16T01:24:03 | 225,547,782 | 1 | 0 | null | 2019-12-03T09:25:20 | 2019-12-03T06:30:58 | null | UTF-8 | Python | false | false | 1,530 | py | ''''''
'''
Given an expression string, write a python program to find whether a given string has balanced parentheses or not.
Examples:
Input : {[]{()}}
Output : Balanced
Input : [{}{}(]
Output : Unbalanced
[{]}-->Unbalanced
'''
'''
#使用stack方法:
遍历字符串,如果是左括弧,则append到stack;
如果是右括弧,则检查stack是否为空,若为空则为Unbalanced,或者检查po... | [
"31519963@qq.com"
] | 31519963@qq.com |
fcfe4a7178d04378dda0455e1b7b82a22aa557e2 | b5d0a6254b54c0a778181a67bcda14cc6663e871 | /2-resources/_External-learning-resources/02-pyth/PyPattyrn-master/pypattyrn/behavioral/observer.py | 1dbeed6dba6ff71299fa633d112303d605135b9c | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | Web-Dev-Collaborative/Lambda-Final-Backup | 113e719a76a144b86d06f3a412afe4b02689cad7 | e9ab84928faa8364bacd863009ae9aec01ff9d1e | refs/heads/master | 2023-06-07T15:34:00.682815 | 2021-04-17T01:53:14 | 2021-04-17T01:53:14 | 358,899,122 | 0 | 0 | MIT | 2023-05-30T04:03:16 | 2021-04-17T14:24:53 | JavaScript | UTF-8 | Python | false | false | 1,784 | py | from abc import ABCMeta, abstractmethod
class Observer(object, metaclass=ABCMeta):
"""
Abstract Observer class as part of the Observer design pattern.
- External Usage documentation: U{https://github.com/tylerlaberge/PyPattyrn#observer-pattern}
- External Observer Pattern documentation: U{https://en.... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
2c81adc1ae5e55c958977c95e7d0b0279c5646c5 | 1d6de6b0443521a6439b32c0458ee71d238aba6c | /utils/model_converter/study_deprecation_warning_vgg.py | a4b2b6d64c74dde4a9df08eba21d0f095fd77606 | [] | no_license | jamescfli/ReLoc_SRCB_Office | d0c865a54438cce12d1fd2d9f0b2f506e78ffa08 | 3e7b67dd8ece3fbf580afffd00bd1c9752aa4e1d | refs/heads/master | 2021-01-18T17:38:43.064727 | 2017-05-24T02:01:50 | 2017-05-24T02:01:50 | 71,970,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | __author__ = 'bsl'
from keras.applications import vgg16
from keras.layers import Input
from keras.models import model_from_json
img_width = 224
img_height = 224
img_size = (3, img_width, img_height)
input_tensor = Input(batch_shape=(None,) + img_size)
# model 1
print 'load vgg with imagenet parameters'
vgg_imagenet... | [
"jamescfli@yahoo.com"
] | jamescfli@yahoo.com |
a4cfa78ad30f3c7e0f431dfef6b484b973f2e740 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_counterclockwise.py | a5f196b28cc85c0389da49ba4d9a11aec186c619 | [
"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 | 445 | py |
#calss header
class _COUNTERCLOCKWISE():
def __init__(self,):
self.name = "COUNTERCLOCKWISE"
self.definitions = [u'in the opposite direction to the movement of the hands of a clock: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
18843c219b9ebac7874b41e7f6bc754a58c0d574 | f159aeec3408fe36a9376c50ebb42a9174d89959 | /617.Merge-Two-Binary-Trees.py | 4b8c8b9f184962e4033e121a171754a6a9ec4b48 | [
"MIT"
] | permissive | mickey0524/leetcode | 83b2d11ab226fad5da7198bb37eeedcd8d17635a | fc5b1744af7be93f4dd01d6ad58d2bd12f7ed33f | refs/heads/master | 2023-09-04T00:01:13.138858 | 2023-08-27T07:43:53 | 2023-08-27T07:43:53 | 140,945,128 | 27 | 9 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # https://leetcode.com/problems/merge-two-binary-trees/
#
# algorithms
# Easy (69.13%)
# Total Accepted: 153,841
# Total Submissions: 222,336
# beats 99.00% of python submissions
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = ... | [
"buptbh@163.com"
] | buptbh@163.com |
a6fff664f949abaa7fcf95c966cb822cecf1c850 | f541a9287ce89f3ea5158389fca8110277c60eed | /src/job/migrations/0007_auto_20200211_0043.py | d9be44db48aa205beef6c12c412029d6e1b0a977 | [] | no_license | coblan/easyjob | b17775c5c7e7850dc41bc0cba996929696bae0ac | 6d33b696f1c0a2d6dacaaaecd01921b766a83e29 | refs/heads/master | 2021-05-19T05:37:20.395502 | 2020-07-20T07:57:00 | 2020-07-20T07:57:00 | 251,550,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2020-02-11 00:43
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import helpers.director.model_func.cus_fields.cus_picture
class Migration(migrations.Migration):... | [
"he_yulin@163.com"
] | he_yulin@163.com |
6274cfba639da765961f5830429abb028baeded2 | 565ae8473c545c43341f5511b9633e97f0e4da8b | /course3_python_advanced/06_File_Handling/HW Files handling/02_line_numbers/line_numbers.py | 9db62ca6639501c9e67866a28fb0096d19846b1d | [] | no_license | andriiburka/Web-Development-with-Python | 3934c1a3945bd983ab39d38b97f1af16fe784207 | b6927653a2c6a9cc10a8768395233e347624c49a | refs/heads/master | 2022-11-21T21:42:04.898254 | 2020-07-29T22:59:56 | 2020-07-29T22:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | result_text = ""
with open("text.txt", "r") as file:
for idx, line in enumerate(file):
length = len([el for el in line if el.isalpha()])
counter = 0
for el in line:
if el in "`,.!?\";:-":
counter += 1
result_text += f"Line {idx + 1}: {line[:-2]} ({length}... | [
"andriiburka@gmail.com"
] | andriiburka@gmail.com |
814e6e9f996f4e28b275af355a4a853e08dd002b | 56bf1dbfa5d23257522fb03906e13c597a829ed3 | /plugins/SuperHexagonGameAgentPlugin/files/helpers/frame_processing.py | ca263f10e98374df622e9f9f77d0dde285ca7b9e | [
"MIT"
] | permissive | fendaq/SerpentAI | 0417777bbc0fccb50df456d0ced1bce839aa3211 | e9c147f33a790a9cd3e4ee631ddbf6bbf91c3921 | refs/heads/master | 2021-07-23T02:04:15.977726 | 2017-08-26T23:31:59 | 2017-08-26T23:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | import skimage.io
import skimage.transform
import skimage.exposure
import skimage.filters
import skimage.measure
import skimage.color
import skimage.segmentation
import numpy as np
def image_data_for_screen_region(frame, screen_region):
return frame[screen_region[0]:screen_region[2], screen_region[1]:screen_regi... | [
"info@nicholasbrochu.com"
] | info@nicholasbrochu.com |
1884883fdc85954c2c3e9132f1ca3adac80983e8 | 07c6d3055eda7b1ddb16ce9444166ed311ce3219 | /modules/data2xlsx.py | 20e4fde615b1eba2cf88c9aefafff4e57f49d552 | [] | no_license | IISH/dpe | 4df9b0576b5419e543c61ce9ef14380ddc4b5c03 | 6509b06aa03242f450766d4cb5d8984f14146b11 | refs/heads/master | 2021-01-10T17:52:54.775316 | 2016-05-04T09:50:46 | 2016-05-04T09:50:46 | 42,994,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | #!/usr/bin/python
import xlsxwriter
import xlwt
import sys
def panel2excel(datadir, filename, header, panelcells):
wb = xlwt.Workbook(encoding='utf')
f_short_name = "Data"
ws = wb.add_sheet(str(f_short_name))
style_string = "font: bold on; borders: bottom medium"
style = xlwt.easyxf(style_string)... | [
"4tikhonov@gmail.com"
] | 4tikhonov@gmail.com |
66685e7117258bcb277360ee6f431c1ac260e30c | cab87d3b32339291209008b204578091840dec44 | /scripts/swift_class_audit.py | c4b60aaba2d3bfc9e7a4aa7833c56b1e21ffbeb4 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/autorest.swift | 1ae31774e1724b597f486424d7b913c8993df10b | 0f7b42ae17d2ceaae65796130a43ee8eccc6d8af | refs/heads/main | 2023-08-03T04:39:25.760569 | 2023-08-01T20:36:11 | 2023-08-01T20:36:11 | 106,317,281 | 6 | 11 | MIT | 2023-08-01T20:36:13 | 2017-10-09T17:59:44 | Swift | UTF-8 | Python | false | false | 1,747 | py | import os
import json
class ItemResult:
def __init__(self, name, schema, done):
self.name = name
self.schema = schema
self.done = done
def dumper(obj):
return obj.__dict__
# find project root folder
repo_root = os.path.abspath(os.getcwd())
levels = []
found = False
while len(levels) <... | [
"noreply@github.com"
] | Azure.noreply@github.com |
fc22c7192ffc16532257c89bea2b165a111fff21 | f5e8a25d5585fc7a08a713760485627926a49dd7 | /gdplib/kaibel/main_gdp.py | 02221ceaf7c1d13179833ec9b139d18cbb9a100f | [
"BSD-3-Clause"
] | permissive | Yunshan-Liu/gdplib | a408921745c4f5797ab9ecfd5e371f6d4cdd3a95 | f453abcde1906018635c2245414b707b69fa110c | refs/heads/master | 2023-03-06T04:29:29.078550 | 2021-02-10T04:19:05 | 2021-02-10T04:19:05 | 298,096,123 | 0 | 0 | BSD-3-Clause | 2020-09-23T21:15:04 | 2020-09-23T21:15:03 | null | UTF-8 | Python | false | false | 8,155 | py | """
KAIBEL COLUMN: Modeling, Optimization, and
Conceptual Design of Multi-product Dividing Wall Columns
(written by E. Soraya Rawlings, esoraya@rwlngs.net,
in collaboration with Qi Chen)
Case study: separation of a mixture of a quaternary ... | [
"bernalde@cmu.edu"
] | bernalde@cmu.edu |
16a74abc7a26336340e820d4b168116d7e3650eb | 9269192570275f23871c38ffa80b3a8f5f11b04c | /ci_tests/test_data.py | 3c5cde94cd8bce4afc15f9b3fecc61099d67f1cd | [
"BSD-3-Clause",
"MIT"
] | permissive | nickmvincent/ugc-val-est | 03e2099e997ab2f23e1617402e52217db18a6de5 | b5cceda14ef5830f1befaddfccfd90a694c9677a | refs/heads/master | 2022-12-12T13:44:55.145757 | 2020-02-15T17:34:42 | 2020-02-15T17:34:42 | 97,265,409 | 2 | 0 | MIT | 2022-12-07T23:57:41 | 2017-07-14T19:12:53 | Python | UTF-8 | Python | false | false | 2,501 | py | from nose.tools import *
import numpy as np
#import causalinference.core.data as d
import sys
sys.path.append('..')
from causalinference.core import data as d
def test_preprocess():
Y1 = np.array([[1.2], [3.45], [-6], [78.90]])
D1 = np.array([[0], [1], [0.0], [1]])
X1 = np.array([-1, 3, -5.6, 8.9])
Y_out, D_out,... | [
"nickmvincent@gmail.com"
] | nickmvincent@gmail.com |
fc94f6e8ac7bd993cac0171e1c8f74e4d42bc05b | 3ad28351d2a072fc42a3d2a8e1c8a4c91750d1d7 | /hooks/update.py | 749434990c6fca67d72ce931eedf06b48b38ba1b | [] | no_license | jbzdak/git-hooks | 370ed0cc22ea6479b26a30a2589d4de37d1faee0 | b2773be45c74fa100440bc93ca58859681c67e3f | refs/heads/master | 2021-01-10T19:11:06.469209 | 2014-08-20T19:49:33 | 2014-08-20T19:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,430 | py | #!/usr/bin/env python3
"""
Description
-----------
Update hook that automatically merges changes inside the repository.
It's creation was sparked by
`my question on SO <http://stackoverflow.com/q/25207942/7918>`_.
Especially by `this answer <http://stackoverflow.com/a/25209198/7918>`_.
Logic is as follows:
---------... | [
"jbzdak@gmail.com"
] | jbzdak@gmail.com |
8517fbf24f62c684f2e5bcc7575d3c68e4b1b844 | ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0 | /04_django/02_django_crud/articles/models.py | c983621e1f13e36e3f441f25e387d1cb336b722f | [] | no_license | wally-wally/TIL | 93fc1d0e3bc7d030341ed54155294c68c48b4c7d | 936783bc86f563646c0398c24e2fcaa707f0ed23 | refs/heads/master | 2023-04-28T08:59:48.235747 | 2023-04-12T12:06:52 | 2023-04-12T12:06:52 | 195,918,111 | 40 | 7 | null | 2020-09-29T16:20:46 | 2019-07-09T02:31:02 | Python | UTF-8 | Python | false | false | 322 | py | from django.db import models
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=20)
content = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def __str__(self):
return self.tit... | [
"wallys0213@gmail.com"
] | wallys0213@gmail.com |
d41b17e99845a30f66edcbb2b28cb81ba320768b | 9cdbc9190def43f30b3357c7fccd92bcb0bef6a9 | /pysparkexamples/wordcount_sp_test1.py | 2eab64bd8a614114529f11dadf5d4749ac3e03d9 | [] | no_license | sidaker/dq | 2ff8fac0fc4a79d67909fb968f0a7ec8e976630a | fd41d60b6ca658d5f024701ce4a4729d41a24d30 | refs/heads/master | 2023-05-27T01:31:18.274913 | 2023-05-10T22:20:16 | 2023-05-10T22:20:16 | 225,405,776 | 0 | 0 | null | 2023-05-01T20:38:00 | 2019-12-02T15:19:30 | Jupyter Notebook | UTF-8 | Python | false | false | 836 | py | # This script uses Spark Context. but use spark Session as a best practice.
# This script uses RDD's to count number of poccurenaces of each word in a file.
# Alternatively you can use SparkSQL and Dataframes to achive same result.
from pyspark import SparkContext
if __name__ == '__main__':
sc = SparkContext("loc... | [
"siddartha.bommireddy@digital.homeoffice.gov.uk"
] | siddartha.bommireddy@digital.homeoffice.gov.uk |
55e30c8355947a4f5f2e294e605aa8e75023b75f | 18663ba826ca14f6f177928b065787b43cea6609 | /Tp4-03.py | 5f856ee090d449a01b21e21f0b5b03af29930abc | [] | no_license | cainellicamila/FRRo-Soporte-2018-Grupo4 | 3033f82246ed19c402dda9c53c51702effb44289 | dc73167af4a966608c83e0ecad64542f90163bb4 | refs/heads/master | 2021-04-12T08:34:55.089189 | 2018-08-08T12:43:58 | 2018-08-08T12:43:58 | 126,391,709 | 0 | 0 | null | 2018-08-08T12:43:59 | 2018-03-22T20:31:52 | Python | UTF-8 | Python | false | false | 1,059 | py | ''' Ejercicio Crear un Formulario que usando el control Treeview muestre la una lista con los
nombre de Ciudades Argentinas y su código postal (por lo menos 5 ciudades).'''
import tkinter as tk
from tkinter import *
from tkinter import ttk
c= tk.Tk()
c.treeview = ttk.Treeview()
c.treeview.columnconfigure(0... | [
"franmrivera@gmail.com"
] | franmrivera@gmail.com |
5c6f31376bf5d30da70d749ca641b5b3ac9f542b | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/recent/GetThisValue.spec | d003dea9d3296152449da4f895132c624e396b1d | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 162 | spec | 1. Assert: IsPropertyReference(_V_) is *true*.
1. If IsSuperReference(_V_) is *true*, return _V_.[[ThisValue]]; otherwise return _V_.[[Base]]. | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
ed79f62b360a2efd48f4fbf2df06fef99742ccf5 | d60cd7864f74695221d68a23cc230407a9e52c66 | /project/projects/views.py | 9a3a9870322df000db54c279faf93cfc4addfde8 | [] | no_license | joetechem/django_maps | 81fcc3f60eef2b02024d6b417ecda033a5c0514c | 87b98faf8a2bfe20ea02433c0018c221ded1b395 | refs/heads/master | 2021-09-15T23:16:59.714991 | 2018-06-12T17:13:07 | 2018-06-12T17:13:07 | 103,307,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,495 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.http import HttpResponseRedirect, Http404
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from .models import Topic, Entry
from .forms import TopicForm... | [
"joe@techemstudios.com"
] | joe@techemstudios.com |
7df773938604d29f7f235bd150fc4c20056e0e36 | e8803012da4ef4f3b99fb01f252ad704f3b24f9b | /OOP_and_Other/standard library2.py | ed310089666f7aac00aca485a4c30179c6f0b872 | [] | no_license | imamahasane/Object_Oriented_Programming | ec234e7d494c475ee0d836b3a64fa779d3c5488f | 8ee168350aa924d9b62d90c8ddcc3cfef28e2f18 | refs/heads/main | 2023-09-06T04:23:57.827634 | 2021-11-21T19:56:06 | 2021-11-21T19:56:06 | 409,710,295 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 2 02:32:32 2019
@author: Imam Ahasan
"""
import webbrowser
url = "https://www.google.com"
print(webbrowser.open(url)) | [
"noreply@github.com"
] | imamahasane.noreply@github.com |
0942fe40386661b6dc42a5b81450f6f17f1920b3 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/FrogRiver_20200723134727.py | b91b8bdcbf479978cb78b6f59148f3d9cd1e3395 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | def Frog(X,A):
# given x where the frog wants to go
# find earliest time
# once you get the second that has that position
# return the second
pos = set()
for i in range(len(A):
print(A[i])
print(Frog(5,[1,3,1,4,2,3,5,4]))
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
1f1a68bd24d0e45ff9d19302fee5ae6ee4ab89b3 | f1ff78b950f40023e82b0d877be49971a42f70c0 | /gx/imei_ip.py | e6fdd294c1f416599aa779d775ddb5d3808903c8 | [] | no_license | buddyli/python | 72e2c6788e4982a3fa188a757585c1c97a385eaa | f764b64ba9b7d723648d1d1a35af15aa0a6f3a6f | refs/heads/master | 2020-04-01T21:00:27.984460 | 2014-08-12T03:16:42 | 2014-08-12T03:16:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | #!/usr/bin/env python
#-*- encoding:utf-8 -*-
import re
class ImeiIP(object):
"""
将客户端的推荐记录组装成字典
key:推荐号码-被推荐号码
value:ip,串号
"""
imeiList = []
inviteDict = {}
def __init__(self):
super(ImeiIP, self).__init__()
self.loadImei()
def loadImei(self):
self.imeiList = open('invite_detail.txt','r').readlines(... | [
"="
] | = |
260c19a52c0cb93652808a18f4ac04a97ab4c9ea | 70915355612b72726c4b2e15f1d40f05c4749f48 | /bench/peewee_bench/bench.py | fe24d1cbd985464dde4bac5d1e28119e0955b63e | [
"MIT"
] | permissive | redapple/peewee | b343048f1795fd9ff0f1ad5871f40da6c2cfebe1 | 2ffdcafd2f6c170a3d02db0d1b81bead9eab9318 | refs/heads/master | 2021-01-17T22:41:53.770324 | 2013-06-28T02:16:11 | 2013-06-28T02:16:11 | 4,386,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | import datetime
from models import Blog
from models import Entry
from models import User
from models import create_tables
from models import drop_tables
def initialize():
try:
create_tables()
except:
pass
def teardown():
drop_tables()
def create_user(username, active=True):
return U... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
d69170c96f0b66475f40e5bb9be3bef2f50fd524 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/waf/models/ThreatIpBotRules.py | 7c1a967480c507698e86b299496ae4bd69c9c877 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,156 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
f64b02db036a124f7797e71c4437a033be575a19 | 40029281c27f748dfdb7e2b2b52186f239caeed8 | /test/test_knowledge_graph.py | f1c8a6f913e97e7bd97b662c721027bf21847143 | [] | no_license | daletcoreil/metadataanalysis-client-python-sdk | d30001c2f91c94f6aca3627735280e641839e4a1 | 9b4b495fe3f5f1d5c7d28e126def9c311c5518e5 | refs/heads/master | 2021-06-20T15:54:36.426663 | 2021-05-04T06:41:55 | 2021-05-04T06:41:55 | 207,790,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | # coding: utf-8
"""
Dalet Metadata Analysis API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 2.1.0
Contact: cortexsupport@dalet.com
Generated by: https://openapi-generator.tech
"""
f... | [
"daletcoreil@gmail.com"
] | daletcoreil@gmail.com |
f8caf7b288f8182a6023ff18136c9dfd26a08fcd | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /same_man_and_other_life/go_week_above_young_hand/woman/right_way/take_other_company.py | bf99c005bc25bb9e6f9fd8b122c4a7d9de3e0c36 | [] | 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 | 193 | py |
#! /usr/bin/env python
def week_and_man(str_arg):
old_thing(str_arg)
print('old_part')
def old_thing(str_arg):
print(str_arg)
if __name__ == '__main__':
week_and_man('man')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
072ca8931bfe6de8887178086d72f52bcb52f703 | b317f6d3ff86b49f49687cbec1a76b83caa5442a | /django-foaf/django_foaf/rdf_models.py | 96fde1736050d9ca82bd0bc694d7712de950fe7b | [
"BSD-3-Clause"
] | permissive | GrassfedSoftware/django-foaf | eedc6613cdd657c67d997a7b4de064d24d788b67 | 43f449e1abf59ff76e615d9a8e3d273d3d5a1397 | refs/heads/master | 2021-01-18T08:30:34.689422 | 2013-01-23T15:03:50 | 2013-01-23T15:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from rdfalchemy import rdfObject, rdflibSingle, rdflibMultiple
from rdflib import Namespace
FOAF=Namespace("http://xmlns.com/foaf/0.1/" )
RDFS=Namespace("http://www.w3.org/2000/01/rdf-schema#")
REL=Namespace("http://purl.org/vocab/relationship/")
class Agent(rdfObject):
rdf_type=FOAF.Agent
name=rdflibSingle(FOAF.... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
8984d05f469edc50ae1d9d63275fe4a051882f54 | 46447da173adb79cf5af95cd8c2219d3c06d829a | /tea_garden/config/docs.py | df1637843144b42540f37898c2aae23ae57482c9 | [
"MIT"
] | permissive | nivedita05/Tea-garden | a3f488828be107f5498f8fcb30a33f0dc0af1073 | ce000e074357c9995e5d37e050bbc84d61528c20 | refs/heads/master | 2020-09-14T05:30:16.152097 | 2017-01-06T06:56:58 | 2017-01-06T06:56:58 | 67,690,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/tea_garden"
# docs_base_url = "https://[org_name].github.io/tea_garden"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "Tea Garden... | [
"nivedita12011990@gmail.com"
] | nivedita12011990@gmail.com |
4d726cb1c088dc6f3611f7216a11f2a9bb0cb105 | f64e31cb76909a6f7fb592ad623e0a94deec25ae | /leetcode/p0091_decode_ways.py | 4a4b8ccba55aeb488345c9110f624d8db641abd8 | [] | no_license | weak-head/leetcode | 365d635cb985e1d154985188f6728c18cab1f877 | 9a20e1835652f5e6c33ef5c238f622e81f84ca26 | refs/heads/main | 2023-05-11T14:19:58.205709 | 2023-05-05T20:57:13 | 2023-05-05T20:57:13 | 172,853,059 | 0 | 1 | null | 2022-12-09T05:22:32 | 2019-02-27T05:58:54 | Python | UTF-8 | Python | false | false | 1,403 | py | from functools import lru_cache
def num_decoding_dp(s: str) -> int:
"""
Dynamic Programming, optimized for space
Time: O(n)
Space: O(1)
n - length of the string
"""
prev1 = prev2 = 1
for i in range(len(s) - 1, -1, -1):
this = 0
if s[i] != "0":
this = pr... | [
"zinchenko@live.com"
] | zinchenko@live.com |
01beab80c80a336ed0130674939ad1f736c390f6 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_85/run_cfg.py | 7c5b8692868a751d8669529547ce287fd71b8aa9 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
5eb2a75e8d9fe9eed0a076ae3577c230cd95e324 | 7423e5a7c9ba9f0193f9bae544e40b4ac8cc2057 | /source/experiment/k8.py | 822957b7f690f79f4ba1576746a527379423b6ce | [
"Apache-2.0"
] | permissive | stjordanis/genetic-curriculum | f2bcc847f1b478d35535b4cce8f0eb5b2c979263 | c409681be92880793c021586f35f0ac2af5e5003 | refs/heads/master | 2020-06-10T04:54:51.558790 | 2018-06-12T12:16:29 | 2018-06-12T12:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py |
import logging, coloredlogs
logger = logging.getLogger(__name__)
coloredlogs.install(level='DEBUG',logger=logger)
coloredlogs.install(level='DEBUG',logger=logging.getLogger('pbt'))
coloredlogs.install(level='DEBUG',logger=logging.getLogger('experiment'))
import requests
import json
import platform
import time
import... | [
"david@sketchdeck.com"
] | david@sketchdeck.com |
291d577ae758154b276369b61ed3795c80f01bae | 80e83dd69395312db092f7b0277310a29afb95b6 | /InsertAndCheckData - 1.8版本/Action/Task/20200316_155247.py | 468130d934f98cd03a8a80beedf14b597c9cddb4 | [] | no_license | yif-zhu/Python-Project | 3a102695a7eab2e149e260ccee955de84685b6cb | d55edb652d66e6694a120eb329cd04abba57ba1e | refs/heads/master | 2023-01-21T00:59:27.743845 | 2020-12-04T08:42:56 | 2020-12-04T08:42:56 | 299,492,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import FileTranslator.NonFileFormatCheck as PyPath
xml = r"Resource/xml/NonFileFormatCheck_TrusteeNew.xml"
dateId = r"20200316_155247"
PyPath.main(xml, dateId)
| [
"yif_zhu@163.com"
] | yif_zhu@163.com |
c898d8af3df2a1a9a7cf3c9f6ca28df923ded087 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/os_disk.py | e1c2cab2b1033fce71460c90f9e1f69a212f7359 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 5,156 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
4248634084c9f0a934095af9ebd46947b97cf8ee | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/cosmos/azure-mgmt-cosmosdb/generated_samples/cosmos_db_sql_container_create_update.py | 4dccde0df6e81d90f39aa43bdf476ac600928086 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 3,443 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
c8006f0e7a294173b56c6e00a04bcb26ec01b5a4 | 45aef2c13221ce4ec0fd4e982bbf71a4d7262c0f | /链表/160-相交链表.py | c8e71ce26d028f3d25dc088dc41866f1cac139d9 | [] | no_license | lidianxiang/leetcode_in_python | c421d3db511f74a6e26643875ed0cbe05c66c389 | 43ca92094e87f70065f8755d3909a9158e4b91e5 | refs/heads/master | 2021-11-27T15:11:10.162147 | 2021-11-23T02:45:48 | 2021-11-23T02:45:48 | 224,069,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | """
编写一个程序,找到两个单链表相交的起始节点。
如下面的两个链表:
在节点 c1 开始相交。
示例 1:
输入:intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3
输出:Reference of the node with value = 8
输入解释:相交节点的值为 8 (注意,如果两个列表相交则不能为 0)。从各自的表头开始算起,链表 A 为 [4,1,8,4,5],链表 B 为 [5,0,1,8,4,5]。在 A 中,相交节点前有 2 个节点;在 B 中,相交节点前有 3 个节点。
... | [
"ldx2703@gmail.com"
] | ldx2703@gmail.com |
c9cba549f1399c3004f5dfa85565dcb8378957e8 | 297497957c531d81ba286bc91253fbbb78b4d8be | /testing/web-platform/tests/tools/third_party/pytest-asyncio/tests/test_event_loop_scope.py | 91f840a24f19bbd2c2c234beb590ff46dad9bad7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 701 | py | """Test the event loop fixture provides a separate loop for each test.
These tests need to be run together.
"""
import asyncio
import pytest
loop: asyncio.AbstractEventLoop
def test_1():
global loop
loop = asyncio.get_event_loop_policy().get_event_loop()
@pytest.mark.asyncio
async def test_2():
... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
9de0861edd6a88a367481b827eb0b7c813625500 | c5fffc569ad0631217608be08ed4060f3e1e3e16 | /opensecsummit/apps/backend.py | 9f51d060f6952a46737f0193d0d1fe1a398b3e6f | [
"Apache-2.0"
] | permissive | chaosiq/demos | 7f1241c10f76f7dee637c869c884f2740d13ff47 | 2a92a9f3f7ef033111e8f5a6d3e3b4dcffb46355 | refs/heads/master | 2021-05-10T13:19:29.023380 | 2018-11-26T16:25:33 | 2018-11-26T16:25:33 | 118,467,279 | 13 | 2 | Apache-2.0 | 2018-10-31T10:03:35 | 2018-01-22T14:22:03 | Batchfile | UTF-8 | Python | false | false | 233 | py | import cherrypy
import requests
class Root:
@cherrypy.expose
def index(self):
return "Hello world"
if __name__ == '__main__':
cherrypy.config.update({'server.socket_port': 7091})
cherrypy.quickstart(Root()) | [
"sh@defuze.org"
] | sh@defuze.org |
23b887d316bb89857f24910e900b1a92e8372550 | 6724b9a88c9fde132b34f69195ccf5cbd128e284 | /biotech/swissprot.py | 18c0c131ed0f6d1ac7f9bcce7dea2f2128d5320d | [] | no_license | HussainAther/biology | ab510a6add8daeecd332a66e58b3c71469d24b11 | ff77118fe81d82c835f71a41e70e3f7f303028bf | refs/heads/master | 2023-05-29T17:03:24.654242 | 2023-05-18T00:47:44 | 2023-05-18T00:47:44 | 170,805,560 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | from Bio import SwissProt
from Bio.SwissProt import SProt
"""
SwissProt implementation to retrieve SwissProt information.
"""
fh = open("/home/sb/bioinfo/spfile.txt")
record = SwissProt.parse(fh).next()
for att in dir(record):
if not att.startswith(’__’):
print(att,getattr(record,att))
def get_prosite_refs(h... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
6c99d691ae744171200a623db49374c6164e04d5 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/SETR/tools/benchmark.py | 7acfa65d00cc6ca886af331b9f7ec881f2f5d98c | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,052 | py | # BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 th... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
dc4734d045aa61a845329d09a990798f461d120b | 4393a24ad5fbf31a59c3521ce4c66ff7d9a378bc | /py_study/pyset/3.集合的练习.py | 3ad9e6adc11e5d6c0632a04b4a33553b9f5dd1b5 | [] | 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 | 714 | py | import json
# nums = [5, 8, 7, 6, 4, 1, 3, 5, 1, 8, 4]
#
# # 去重排序:
# nums1 = list(set(nums))
# nums1.sort()
# print(nums1)
n = '{"name": "list", "age": 20, "gender": "male"}'
# n = '["hello", "good"]'
# p = eval(n)
# print(type(p))
# s = json.loads(n) # loads可以将json字符串转换成Python里的数据
# print(s)
# print(type(s))
# prin... | [
"1376210796@qq.com"
] | 1376210796@qq.com |
dd9a2abdbdbd7a1d9f4a574ec460fb6be6289622 | 603399a5ec5da4d57710d1b66585a9a5dbd4dc9e | /ENIAC-experiments/v-previous/brainstorm.py | b38707cfb42d4678d00720be05d409a2f213f294 | [
"MIT"
] | permissive | lucasosouza/oraclia-research | 278dea4ec495dc09a81a7efff1a61330040df543 | 4ce6a7d8925c51b57bfeb4de988c1516ac6ff165 | refs/heads/master | 2021-08-07T15:57:33.199443 | 2017-12-27T00:15:28 | 2017-12-27T00:15:28 | 115,464,117 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | class Operation():
def __init__(price, qty, start_date, end_date=None):
self.price = price
self.qty = qty
self.start_date = start_date
def close(self, end_date, sell_price):
self.end_date = end_date
self.gain_loss = self.price / sell_price
class Operator... | [
"lucasosouza@gmail.com"
] | lucasosouza@gmail.com |
10a8d9cdd05ba1369f449f84dee1f113b41cd4e6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /n2y4i74e9mFdwHNCi_8.py | c6c95b2f54aa43a20e43e25497f4c86b9a7b8c2d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | """
Write a **recursive** function that filters the items in a list (given as
parameter `arr`) by **positional parity** (odd or even), given as parameter
`par`, starting from the **opposite end**. Return a list of items on **odd
positions** (... 5, 3, 1) or on **even positions** (... 6, 4, 2) and counting
from the *... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
35b24e7b643e8ec571a9666fb4d5335e5b3e500a | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW3/hw3_179.py | 86a2353e82b6c9b0afe685ef3f8eed90a7cd8b37 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 719 | py |
def main():
temp = float(input("Please enter the temperature: "))
scale = input("Please enter 'C' for Celsius or 'K' for Kelvin: ")
if scale == "C":
if temp <= 0.0:
print("At this temperature, water is a solid.")
if 0 < temp < 100:
print("At this temperature, ... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
3ee4b2ff116f73423edb8641c7ef6702172432bc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_fixedly.py | 9c37bab441c866b17eb43aae0c0f5b0945e6eca1 | [
"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 | 392 | py |
#calss header
class _FIXEDLY():
def __init__(self,):
self.name = "FIXEDLY"
self.definitions = [u'to look continuously at one thing: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adverbs'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3cfca752b43382042d3e83038b130bd906e61412 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03785/s500012192.py | 3f7e1bd8e1fd19f666e864117a572f279f4e8b41 | [] | 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 | 366 | py | n, c, k = map(int, input().split())
T = sorted([int(input()) for _ in range(n)])
limit = T[0] + k
bus = [0]
ans = 0
for t in T:
if t <= limit:
if bus[-1] < c:
bus[-1] += 1
else:
bus.append(1)
limit = t + k
else:
limit = t + k
ans += len(bus)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa9bfc854cb354f8f0160f53b9e1a3b7b7044198 | a4d2da29f28ba79b5408e74f83b723c0dbcf1b0b | /home_work_1_7/client.py | 91f1287423d140fdc524a3d60f71af8397067f09 | [] | no_license | AndreySperansky/CryptoChat | 65e1dd36d58b1cb42535a51b1fa79c4203d1d795 | f91db445c817a8cec026d1bc90c84e4fa189910f | refs/heads/main | 2023-06-26T01:42:20.264184 | 2021-07-22T20:49:59 | 2021-07-22T20:49:59 | 388,574,272 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,266 | py | """Программа-клиент"""
import sys
import json
import time
from socket import *
import argparse
import logging
import logs.configs.config_client_log
from common.variables import DEFAULT_PORT, DEFAULT_IP_ADDRESS, STATUS, \
ACTION, TIME, USER, ACCOUNT_NAME, SENDER, PRESENCE, RESPONSE, ERROR, MESSAGE, MESSAGE_TEXT
fro... | [
"andrey.speransky@gmail.com"
] | andrey.speransky@gmail.com |
ac8153d0d52d9dc218589a1fdb94a03f88dc4acc | 7214f8182d4610686890fcf8834a72d8702c00ca | /djtinue/admissions/views.py | b05b7082487f1a6a912921c67d52dea65d369f20 | [
"Unlicense"
] | permissive | frederickney/django-djtinue | 3e60d9f4892f9480407989dc0f5fb5ef1d0a24f6 | b79ce210185348eb8483cd500f908961ef8e9cf8 | refs/heads/master | 2021-06-13T03:28:37.403783 | 2020-04-08T15:46:50 | 2020-04-08T15:46:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | from django.conf import settings
from django.utils.timezone import localtime
from django.utils.dateformat import DateFormat
from django.shortcuts import render
from django.core.urlresolvers import reverse_lazy
from django.http import HttpResponseRedirect, Http404
from djtinue.admissions.forms import InfoRequestForm, S... | [
"plungerman@gmail.com"
] | plungerman@gmail.com |
f75914430d9d3df7d2089c53ddfd782837a9f473 | e18174a56f801e4daaa1fe76685e9e119b6c7652 | /hamal/hamal/plugin/openstack.py | de08af657bd8b466d428ae7cfbf6e3fa47d4bd39 | [
"MIT"
] | permissive | JackDan9/hamal | 10ae45e14bfe6b27b31961e75ae0269c896089df | 965be9db066209300c52f0cf17d251290d8901b7 | refs/heads/master | 2021-03-28T14:16:49.156503 | 2020-09-23T01:00:38 | 2020-09-23T01:00:38 | 247,869,364 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,391 | py | # Copyright 2020 Hamal, Inc.
import time
import calendar
import urllib.parse
from datetime import datetime
from oslo_log import log as logging
from hamal.plugin import nova
from hamal.plugin import cinder
from hamal.plugin import neutron
from hamal.plugin import glance
from hamal.exception import HttpException, Hama... | [
"1835812864@qq.com"
] | 1835812864@qq.com |
9a8e5804fcaf629767f81f2c0df869ce76512014 | a6389f18e3c0dab96a31f324c548c471c20ea956 | /lib/compaire.py | 5f44eefef19c729f4c00898dbfcd8c2e181a471a | [] | no_license | vdsmirnov52/rnic_cgi | 1c25097a99af0f5391749750176d3f9f14455fbd | 1580eb642d4abcd568326074c77038364a0c9e52 | refs/heads/master | 2021-05-26T08:11:19.691676 | 2020-07-14T10:55:09 | 2020-07-14T10:55:09 | 128,034,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
def canonize(source):
stop_symbols = '.,!?:;-\n\r()"«»'
stop_words = ('это', 'как', 'так',
'и', 'в', 'над',
'к', 'до', 'не',
'на', 'но', 'за',
'то', 'с', 'ли',
'а', 'во', 'от',
'со', 'для', 'о',
'же', 'ну', 'вы',
'бы', 'что', 'кто',
'он', 'она')
return ( [x for x... | [
"vdsmitnov52@gmail.com"
] | vdsmitnov52@gmail.com |
be86446797eeb41b95deae80dea9ada6e10e7c40 | 048d970d83519074993dbc948b058cccda48a893 | /untitled6/testvideo/models.py | 11c7116f565fbaf30fcf222cb1ffee23ca8b056d | [] | no_license | alingb/PycharmProjects | 0669ec007779a3265a0026409a3b2aeb2dc5406f | 9592454f4847da1618136e756fa641013e573889 | refs/heads/master | 2020-03-25T20:02:21.840945 | 2018-11-07T09:52:40 | 2018-11-07T09:52:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,936 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Video(models.Model):
status_choice = (
(0, u'下线'),
(1, u'上线'),
)
level_choice = (
(1, u'初级'),
(2, u'中级'),
(3, u'高级'),
)
status = m... | [
"375272990@qq.com"
] | 375272990@qq.com |
f871aee7d0724656649a329ca197e5f27b685399 | b54426e98b723bcce4a87b7b4ddfe3af942be8e9 | /desktop/lib/TableMixin.py | 5accef7452973cf99b1d72beba1686d28b2437b1 | [] | no_license | TakashiSasaki/MyCrawler | f5f097a59f662066679d3d6be3bd8eb42f024bf1 | 364ba735a6f635a5d96ec7779e236c9ec613f587 | refs/heads/master | 2021-01-20T09:01:45.238254 | 2012-06-09T04:54:22 | 2012-06-09T04:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | from config import *
from sqlalchemy import Table
class TableMixin(object):
@classmethod
def getTable(cls):
assert isinstance(cls.__tablename__, str)
table = cls.getMetadata().tables[cls.__tablename__]
assert isinstance(table, Table)
return table
@classmethod
def e... | [
"takashi316@gmail.com"
] | takashi316@gmail.com |
6c0ba6e7b60348c4252ff573151bdd261920881a | 705c2cf0ae1f38efb2340a056b0e78f89f83ec5e | /astro/data/muse/flux_analysis/5_chemicalFitting.py | 000ff3f60f95220a4920b7684516c7c3cf3c9980 | [] | no_license | Vital-Fernandez/vital_tests | 42fad619841d4b57c5ab419e6f58eef523ff8566 | ee8dbc9c09e433f91e78f9ea16977a9e5a44be6c | refs/heads/master | 2023-09-01T21:27:32.160440 | 2023-08-21T20:51:59 | 2023-08-21T20:51:59 | 235,336,802 | 0 | 1 | null | 2022-10-19T08:52:42 | 2020-01-21T12:24:57 | Python | UTF-8 | Python | false | false | 7,928 | py | import numpy as np
import src.specsiser as sr
from pathlib import Path
from astro.data.muse.common_methods import voxel_security_check, fits_db
from timeit import default_timer as timer
from astropy.table import Table
from astropy.io import fits
from matplotlib import pyplot as plt, rcParams, cm, colors
from astropy.wc... | [
"vital.fernandez@gmail.com"
] | vital.fernandez@gmail.com |
0f469de7747564d0567b8e29c32bd2aac9761245 | 440b9bc8782313550413acf1c246008d4631e311 | /scripts/scepia | 43d7f3f09af1d5403d51b9890458319d1d91f48e | [
"MIT"
] | permissive | vanheeringen-lab/scepia | e9fba1a108c82394b722008588cc511e517d54bf | 546fa5e6e7585e867407b1108b8fcccdead6d1aa | refs/heads/master | 2023-08-16T21:34:39.973819 | 2021-06-02T12:02:38 | 2021-06-02T12:02:38 | 191,351,521 | 21 | 2 | MIT | 2023-08-24T07:54:46 | 2019-06-11T10:47:08 | Jupyter Notebook | UTF-8 | Python | false | false | 604 | #!/usr/bin/env python
from argparse import ArgumentParser
from area27 import generate_signal, link_it_up
p = ArgumentParser()
p.add_argument("bamfile",
metavar="BAMFILE",
help="BAM file")
p.add_argument("outfile",
metavar="OUTFILE",
help="Output file")
p.add_argument("... | [
"simon.vanheeringen@gmail.com"
] | simon.vanheeringen@gmail.com | |
701ed71c5f929333f62e83fbcf127f010044f721 | 30ef63a36694b0a313a66215226339bf99c5a9b9 | /google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_classification.py | ba7f2d5b217360b232be5b60c46d4857db85fcf2 | [
"Apache-2.0"
] | permissive | Tryweirder/python-aiplatform | 9b698a3acc8a6b0b512e2458d9fd64b3f2491a50 | 24d6920a530995a3a5c6ad6b25d0b867f7aebe27 | refs/heads/master | 2023-04-16T11:57:27.689008 | 2021-05-03T20:30:40 | 2021-05-03T20:30:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | Tryweirder.noreply@github.com |
538e7f6c73bcce849ed367acf8ddf8a2811d17dc | b705fdfac862646f91264a89f7378e100c48fc0e | /SERR_UNet_Retinal_Vessel_Segmentation/experiments/pre_process/standard_loader.py | 7afca9facd4a8a8f008f7bb5ca5719eb969e08d8 | [] | no_license | yiyg510/SERR-U-Net-Retinal-Vessel-Segmentation | de6710c753172d4d5c8f70c5f97b28604bb9deab | a6a09e101c0089b665a91e0066849d605a54dafb | refs/heads/main | 2023-04-13T02:08:00.475598 | 2021-04-28T08:11:39 | 2021-04-28T08:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | """
Copyright (c) 2020. All rights reserved.
Created by lixiang on 2020/5/10
"""
import glob,cv2,numpy as np
import matplotlib.pyplot as plt
from template.bases.data_loader_base import DataLoaderBase
from conf.utils.utils import write_hdf5,load_hdf5
class DataLoader(DataLoaderBase):
def __init__(self, config=None):
... | [
"54010254+lixiang007666@users.noreply.github.com"
] | 54010254+lixiang007666@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.