blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1386f9f07d356dd3aa5604b39f780c4f5fd5eb2 | d1b9c5bb6992e1eabe2b5e4eea01f99384d901bb | /aiida_tbextraction/fp_run/wannier_input/_vasp.py | 94e746cd2789d976497857667c684a4aa521e5a4 | [
"Apache-2.0"
] | permissive | zx-sdu/aiida-tbextraction | c01148541aded7324fe8cf8ad01f1a54d9e1bf43 | 0bf6d19cbc643e0bdbbe30fe1dd0c6179eb6a647 | refs/heads/master | 2020-09-27T19:53:05.896439 | 2019-01-24T11:40:40 | 2019-01-24T11:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,882 | py | # -*- coding: utf-8 -*-
# © 2017-2019, ETH Zurich, Institut für Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""
Defines a workflow that calculates the Wannier90 input files using VASP.
"""
from fsc.export import export
import numpy as np
from aiida.orm import Code, DataFactory, CalculationFactory
f... | [
"greschd@gmx.ch"
] | greschd@gmx.ch |
f0821f868eb86caed7a71549fa9b479021aa452e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03563/s841164729.py | 7bbf69bc6f80a866d0951cf151ac7ae99dd8cfb0 | [] | 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 | 261 | py | import sys
IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS())
MII = lambda: list(map(int, IS().split()))
MIIZ = lambda: list(map(lambda x: x-1, MII()))
def main():
r = II()
g = II()
print(2*g-r)
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2c8c63a288fef75b15685e4240da5659502119b6 | 81faab414dcb989904959180bb9233661e884d06 | /qPython/qpython/qcollection.py | 9132742be20e70419c0a847e2d6ee2f075141300 | [
"Apache-2.0"
] | permissive | xxtEchjovs44/kdbfiles | c781bee7969c6143fc4e947b3960aea79e03e195 | 16baaf5da56ed232e3405c84e526ee7f93422f66 | refs/heads/master | 2020-12-23T20:35:00.446238 | 2019-12-09T06:58:16 | 2019-12-09T06:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,493 | py | #
# Copyright (c) 2011-2014 Exxeleron GmbH
#
# 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 agre... | [
"foorenxiang@gmail.com"
] | foorenxiang@gmail.com |
a5cbb7d24f452dbe657a97d15550742eaef4cf13 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03409/s468789013.py | b57e5c6785ee11c84c33be14a422e38f546a4aa9 | [] | 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 | 419 | py | N = int(input())
R = [tuple(map(int, input().split())) for _ in range(N)]
B = [tuple(map(int, input().split())) for _ in range(N)]
R = sorted(R)
B = sorted(B)
res = 0
for bx, by in B:
idx = -1
tmp = -1
for i, (rx, ry) in enumerate(R):
if rx < bx and ry < by:
if ry >= tmp:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d41e112d9da13c81b9d2b69b9e6a2da687d3b496 | 53db924607abc85139dafc8c490218721c7cf9c3 | /redturtle/smartlink/config.py | e9813a95e40c4e35ca7ecf6dbf28d38387c4216c | [] | no_license | RedTurtle/redturtle.smartlink | 4f6fbf45551b91d9725efd42758a310bd3508fa6 | f06b6dd45361af170127fade78fe5c936426b0cf | refs/heads/master | 2021-01-17T14:00:39.273854 | 2017-04-24T07:50:29 | 2017-04-24T07:50:29 | 4,359,396 | 1 | 1 | null | 2021-07-26T14:56:03 | 2012-05-17T14:38:30 | Python | UTF-8 | Python | false | false | 156 | py | from Products.ATContentTypes.permission import permissions
PROJECTNAME = 'redturtle.smartlink'
ADD_PERMISSIONS = {
'SmartLink': permissions['Link']
}
| [
"luca@keul.it"
] | luca@keul.it |
66542ffb5ad08a5084f91e3a68b4479c2696fe83 | a2098c9c8d39cc9e392f21de64c7ced0549d6f1f | /custom/signup/backends.py | a7f6895e690b4c25fe22dab4e2fadd9368bc9ae8 | [] | no_license | dmitryro/divorcesus | 23fe394b0d065f635ecb11eed945cc4fcb9bb829 | 8ecedb2b8a019e63f37702888dd12e994a75105e | refs/heads/master | 2022-12-11T17:20:13.348413 | 2020-10-01T17:27:57 | 2020-10-01T17:27:57 | 56,432,086 | 0 | 1 | null | 2022-12-08T02:22:29 | 2016-04-17T11:05:27 | JavaScript | UTF-8 | Python | false | false | 128 | py | from social_core.backends.facebook import FacebookOAuth2
class CustomFacebookOauth(FacebookOAuth2):
REDIRECT_STATE = False
| [
"dmitryro@gmail.com"
] | dmitryro@gmail.com |
36a512ba1550fa45e98d9afb5b913aa7b5c5b0b3 | f8ffac4fa0dbe27316fa443a16df8a3f1f5cff05 | /Python/Merge_the_Tools.py | 1b827ae71a08079bff6e8e27327e91e02862fc3c | [] | no_license | ankitniranjan/HackerrankSolutions | e27073f9837787a8af7a0157d95612028c07c974 | e110c72d3b137cf4c5cef6e91f58a17452c54c08 | refs/heads/master | 2023-03-16T19:06:17.805307 | 2021-03-09T16:28:39 | 2021-03-09T16:28:39 | 292,994,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | def merge_the_tools(string, k):
# your code goes here
for i in range(0, len(string), k):
str = string[i:i+k]
sub = ''
for s in str:
if s not in sub: #filtering data
sub += s #merging characters
print(sub)
if __name__ == '__main__':
... | [
"noreply@github.com"
] | ankitniranjan.noreply@github.com |
afbf98877c1eb4bfdf843e70f406f5061bfa7b3d | 3293dc42e15e956be202e39db196eed9912dcc01 | /estimation/prediction/machine learning/regression/lightgbm_example.py | 1b35f40b8f5ecf19138ca2343133d7ea57f275fc | [] | no_license | bthowe/data_science | c372e5364f24dc29e3de1fca3504211cb93b62fb | 63291df8084e5f62f9ba226e87db2242bb31ac94 | refs/heads/master | 2021-11-24T10:49:00.800890 | 2021-11-02T16:10:16 | 2021-11-02T16:10:16 | 106,839,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | import sys
import joblib
import numpy as np
import pandas as pd
import lightgbm as lgb
from scipy.stats import uniform
from sklearn.model_selection import GridSearchCV, RandomizedSearchCV
def model_train_random():
X = joblib.load('../data_files/X_train.pkl')
y = joblib.load('../data_files/y_train_reg.pkl')
... | [
"b.travis.howe@gmail.com"
] | b.travis.howe@gmail.com |
ac2168c980477f2df2b02e347d61bec3f35f7e39 | fe035be449d42bf5d56a67c21eeb13e25db0aea6 | /backend/location/migrations/0001_initial.py | a71f5e5f305cd2b3b28fa5007d0eeaa36e1a325f | [] | no_license | crowdbotics-apps/koxlab2-23672 | 0e5fd0406bb83d449f46cd69bd4d9daf0fda763b | 889c6731266e56624ae84ac33507b01f1f0f5fc0 | refs/heads/master | 2023-02-08T20:18:56.880235 | 2021-01-04T23:16:49 | 2021-01-04T23:16:49 | 326,830,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | # Generated by Django 2.2.17 on 2021-01-04 23:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('task_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
069dd8870f64ecd21c2129646c19c7a8c80a8090 | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/cura/CrashHandler.py | 1d85a1da54250a586aa5a5bdecf70590d13e5bbb | [
"GPL-3.0-only",
"LGPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 16,157 | py | # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import platform
import traceback
import faulthandler
import tempfile
import os
import os.path
import time
import json
import ssl
import urllib.request
import urllib.error
import certifi
from PyQt5.QtCore import QT_VERSION... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
5d1ad3f78ce3801ebda2fa11170ef8e2a873fa60 | be9a1995c4a3a5eefcfe665801705e5eefa4f4d6 | /backlog.py | f41edd25708886a8185e80b2f8388e3e9cd07bbe | [] | no_license | intelliflovrk/SpareTime | c377bc867fe45a7fd4150095506d3af5e532960f | 975d2150e09e13ec5f3b5bec0016555f5f6ba0b0 | refs/heads/master | 2022-07-28T01:01:12.472879 | 2020-05-24T18:23:51 | 2020-05-24T18:23:51 | 260,218,638 | 0 | 2 | null | 2020-05-24T18:23:53 | 2020-04-30T13:26:55 | Python | UTF-8 | Python | false | false | 1,047 | py | fruit = ["apple", "banana", "mango"]
veg = ['carrot', 'beans', 'potato']
drink = ['milk', 'water', 'juice']
#T1
""" Create a function here that print what kind of item is given from the above lists.
Example: if 'apple' given then it should print 'apple is a fruit.' """
#T2
"""Create a function that accepts unlimited... | [
"raj.veeramani@intelliflo.com"
] | raj.veeramani@intelliflo.com |
1f3d959606679dc7ba5947b12daca67bc6146d51 | 13b558c3541ff00402f206c8c82a8ced18f3a76c | /test/kernel/test_kernel_relu.py | 2cb10b308b11f1588ed60af35c03ceb345034eda | [
"MIT"
] | permissive | lvdongxu/UnarySim | aeafa4fff35319a1ccdaca6bd4f227d5f16ccf57 | e32531e452e7831d5e03f9f84b5f35d7e9bceaa9 | refs/heads/master | 2023-06-18T19:56:50.434117 | 2021-07-19T20:27:21 | 2021-07-19T20:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | py | # %%
import torch
from UnarySim.kernel.relu import FSUReLU
from UnarySim.stream.gen import RNG, SourceGen, BSGen
from UnarySim.metric.metric import ProgError
import matplotlib.pyplot as plt
import time
import math
import numpy as np
# %%
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
# %%
def... | [
"diwu0111@hotmail.com"
] | diwu0111@hotmail.com |
a8575196a736a5712f565182b319b6ac80fd0bda | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_REPO/PLURALSIGHT/ps-python-library-public/psdata_googlecloud.py | e91f889eb210d2c07286cb2d6c55f4d4b9109111 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 22,332 | py | #!/usr/bin/env python
import httplib2
import pprint
import sys
import time
from apiclient.discovery import build
from apiclient.errors import HttpError
#from oauth2client.client import SignedJwtAssertionCredentials
from oauth2client.service_account import ServiceAccountCredentials
from oauth2client.client import Acces... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
d79fda38aff980036caca4a217945a5d4e535590 | 6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff | /sagemaker-inference-recommender/tensorflow-cloudwatch/code/inference.py | 6c01046988f46bc972a2ad0fae4f1977a5ae7f98 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aws/amazon-sagemaker-examples | 8359afe544e873662bda5b8d2b07399c437213c9 | 43dae4b28531cde167598f104f582168b0a4141f | refs/heads/main | 2023-08-26T04:42:52.342776 | 2023-08-25T14:37:19 | 2023-08-25T14:37:19 | 107,937,815 | 4,797 | 3,519 | Apache-2.0 | 2023-09-14T19:47:03 | 2017-10-23T05:55:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,746 | py | import io
import json
import numpy as np
from PIL import Image
def input_handler(data, context):
""" Pre-process request input before it is sent to TensorFlow Serving REST API
https://github.com/aws/amazon-sagemaker-examples/blob/0e57a288f54910a50dcbe3dfe2acb8d62e3b3409/sagemaker-python-sdk/tensorflow_serving... | [
"noreply@github.com"
] | aws.noreply@github.com |
b4842432df98cdecfd9ed798a4883fad4fd5ec9b | 6bce144a2dc9293f290207d1c6c2d08a63763cd2 | /napari/_vispy/_tests/test_vispy_vectors_layer.py | cee34be9af2a9da5fa15e8c2b4f47f1a69d8ab2a | [
"BSD-3-Clause"
] | permissive | tlambert03/napari | 0f7b90de5333b520567a7eb9f00dea5c15fa448c | 19867df427b1eb1e503618a1ab109e7210ae8a83 | refs/heads/main | 2023-08-30T21:32:29.433620 | 2023-05-08T13:58:18 | 2023-05-08T13:58:18 | 216,388,440 | 5 | 0 | BSD-3-Clause | 2023-05-01T07:58:42 | 2019-10-20T16:02:35 | Python | UTF-8 | Python | false | false | 1,382 | py | import numpy as np
import pytest
from napari._vispy.layers.vectors import (
generate_vector_meshes,
generate_vector_meshes_2D,
)
@pytest.mark.parametrize(
"edge_width, length, dims", [[0, 0, 2], [0.3, 0.3, 2], [1, 1, 3]]
)
def test_generate_vector_meshes(edge_width, length, dims):
n = 10
data = ... | [
"noreply@github.com"
] | tlambert03.noreply@github.com |
1e5273c1dacc874b90160d3690e51cca256c9cef | 3b7ea74de26931e95eb76d1d27621e5d744f81f4 | /hashtat/hashing/migrations/0001_initial.py | 3e4bbb2dc78a2ba9357a4a0f5dad48615c707d00 | [] | no_license | RoodrigoRoot/TDD-django | abf7c70bde2c6095a27ad6415330476449f71f4a | 6ad752cb75dbef3c6f720b071f3db61c2409bd23 | refs/heads/main | 2023-03-24T11:47:43.683202 | 2021-03-23T17:02:34 | 2021-03-23T17:02:34 | 350,515,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # Generated by Django 3.1.7 on 2021-03-22 18:31
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hash',
fields=[
('id', models.AutoField(aut... | [
"roodrigoroot@gmail.com"
] | roodrigoroot@gmail.com |
7b897209074e91145f84ce321c1f8c1d4c601389 | 63ec00220da0cbaf125bf2e879ff63ce432f7227 | /tests/multiloop/test_alternative_loops.py | 000aed652ca7d15d93e11eaa8c07acccd54c801e | [
"Apache-2.0"
] | permissive | munderseth/pytest-asyncio | 3cbfc49a82f5f8d503f5429d43bc3720993ecee4 | 2f37e873e0977861d24a018e06fa9f469470eaf0 | refs/heads/master | 2021-07-24T22:10:19.852111 | 2017-11-03T22:41:09 | 2017-11-03T22:41:09 | 109,448,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | """Unit tests for overriding the event loop."""
import asyncio
import pytest
@pytest.mark.asyncio
def test_for_custom_loop():
"""This test should be executed using the custom loop."""
yield from asyncio.sleep(0.01)
assert type(asyncio.get_event_loop()).__name__ == "CustomSelectorLoop"
@pytest.mark.asyn... | [
"tinchester@gmail.com"
] | tinchester@gmail.com |
792a9513fc4cc2b3ecbcf30866ddd9d8a3289cac | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/前端/juejin_1897.py | 5d026126c1aded18cc586d2c21f786748269ce84 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,742 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "7002236490654859278", "article_info": {"article_id": "7002236490654859278", "user_id": "3677241439685368", "category_id": "6809637767543259144", "tag_ids": [6809640407484334093, 6809640394175971342], "visible_level": 0, "link_url": "", "cover_image": "https:/... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
cf34dafd04f5380b38b80c00bd543830273f58c1 | 96f79e659344edb2c6e50d1dd9660b6858054fdc | /lesson_04/server.py | cae3d711a46d4efab2511d01722bf145f97c0015 | [] | no_license | mr-Robot-777/client-server_python | af5b2d7b0bdbec9666e1771afd260b0afd39372a | 977c5cb8bfc57d6dc477eaf9083f154f848d637f | refs/heads/master | 2023-03-20T21:57:44.605765 | 2021-03-19T09:27:30 | 2021-03-19T09:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py |
"""Программа-сервер"""
import json
from socket import AF_INET, SOCK_STREAM, socket
from utils import create_parser
from variables import ENCODING, MAX_CONNECTIONS, MAX_PACKAGE_LENGTH
RESPONSE_ERROR = 400
RESPONSE_OK = 200
class Server:
def __init__(self):
self.transport = socket(AF_INET, SOCK_STREAM)
... | [
"ershgun@mail.ru"
] | ershgun@mail.ru |
514cdf3548a97713adfb8111d14217eea97c17cf | 19ed724002351006b25175ad584c89f774bd9527 | /cvmodels/models/layers/se_module.py | 7283ff8a838fbc5a58077543bf837198de517ec7 | [
"MIT"
] | permissive | welkin-feng/ComputerVision | 60df6aa36c26c630bcb3676c4ef0df6762d5329f | 667488e41878d7f0376142a7ae9e1b43c0edd68a | refs/heads/master | 2021-06-25T07:56:07.238130 | 2021-02-02T05:37:23 | 2021-02-02T05:37:23 | 193,149,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from torch import nn
__all__ = ['SEModule']
class SEModule(nn.Module):
def __init__(self, channels, reduction=16, act_layer=nn.ReLU):
super(SEModule, self).__init__()
self.avg_pool = nn.AdaptiveAvgPool2d(1)
reduction_channels = max(channels // reduction, 8)
self.fc1 = nn.Conv2d(
... | [
"382523558@qq.com"
] | 382523558@qq.com |
08b693a29c92e026ff58954982400db441b2cfbc | 010215c1421f5275a846e7154189b22cdd3c89bc | /Data Structures/Tree/identical_trees.py | dc9daa8e21e85efd3307005747d65175e3db3330 | [] | no_license | bsextion/CodingPractice_Py | ab54d5715298645a8fd7ab6945bf3b22d4e6a874 | da2847a04705394c32a6fe1b5f6c6b64c24647a3 | refs/heads/master | 2023-08-16T17:14:47.643989 | 2021-09-28T19:23:40 | 2021-09-28T19:23:40 | 383,658,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | class BinaryTreeNode:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
# below data members used only for some of the problems
self.next = None
self.parent = None
self.count = None
def are_identical(root1:BinaryTreeNode, root2:B... | [
"bsextion@gmail.com"
] | bsextion@gmail.com |
3c07919c47445d995fbca14d989d44437fbce99f | e1efc8e0b0e4629dea61504fbc816c0527691bd9 | /6.redis/redis11_持久化.py | 419d53bb9708d30f4e0f3001c584df957d59fc05 | [] | no_license | xiongmengmeng/xmind-technology | 2bb67a0bf92cfd660cac01f8ab3a2454423ccba5 | e2fdb6987ef805a65f0a4feb52d84383853f4b77 | refs/heads/main | 2023-07-31T07:10:29.868120 | 2021-09-11T08:18:17 | 2021-09-11T08:18:17 | 307,636,242 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,779 | py | import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
import xmind
from xmind.core.markerref import MarkerId
xmind_name="redis"
w = xmind.load(os.path.dirname(os.path.abspath(__file__))+"\\"+xmind_name+".xmind")
s2=w.createSheet()
s2.setTitle("持久化")
r2=s... | [
"xiongmengmeng@qipeipu.com"
] | xiongmengmeng@qipeipu.com |
af8b8ae708671da42ab4c86b784d196be55e8ce3 | 4b55e257e0af5181c75a3b840a2c206cc6caec92 | /lightreid/optim/__init__.py | 05dac52793b24aa106f2ff3dcec83b52c1b6d1b8 | [] | no_license | Leopold0801/light-reid | 1799374b6e6552edeade737b137364de34d5b810 | aeb9fb8494611512dc9e3f3e3e7c9f7513c27a99 | refs/heads/master | 2022-11-26T21:19:39.005565 | 2020-08-10T16:56:05 | 2020-08-10T16:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """
@author: Guan'an Wang
@contact: guan.wang0706@gmail.com
"""
from .lr_scheduler import WarmupMultiStepLR, DelayedCosineAnnealingLR
class Optimizer(object):
KWARGS = ['fix_cnn_epochs']
def __init__(self, optimizer, lr_scheduler, max_epochs, **kwargs):
self.optimizer = optimizer
self.l... | [
"guan.wang0706@gmail.com"
] | guan.wang0706@gmail.com |
43714fe8477ba7894bde249b6e9a5d3cb9754e61 | c887e00981e6368e94916ca9b93c4de79a5c1a22 | /lawncare/blog/views.py | e3b3935c8c13e11b84ee6b90db6746f75b732bc7 | [] | no_license | devArist/school_project | 18dc0427e2d6a45abfff8a72dbe2c52a7afd8778 | 4d1c1ba5e2a9b4253e950e2c95e0ce6ef22efe3f | refs/heads/main | 2023-05-07T09:51:50.664546 | 2021-05-28T12:44:11 | 2021-05-28T12:44:11 | 368,508,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from django.shortcuts import render
from . import models
# Create your views here.
def blog(request):
blogs = models.Blog.objects.filter(status=True).order_by('-date_update')
return render(request, 'blog/blog.html', locals())
def detail(request, pk):
blog = models.Blog.objects.get(pk=pk)
return render... | [
"aridev97@gmail.com"
] | aridev97@gmail.com |
6deeb692d77cfa26855fc96a02dc63807adf18bd | 338ad096a3d0311ccf994f38848646b4828b704b | /St102.py | d0dae54925ecf45a6b03322b580efe91d984e6ac | [] | no_license | thasleem-banu/beginnar | ed8a9ff7da23b194d5ce25ab0bb5fc0c4ac0a273 | b55f681f62e2b9e25c0fc5d8bf48f3e08321fbd2 | refs/heads/master | 2020-06-25T12:17:01.937351 | 2019-07-28T16:53:05 | 2019-07-28T16:53:05 | 199,305,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | ch=int(input())
cho=list(map(int,input().split()))
sha=0
for p in cho:
sha+=p
print(sha)
| [
"noreply@github.com"
] | thasleem-banu.noreply@github.com |
6af0eef7eaecf4e08598669f69be9120a2059704 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03722/s165384014.py | 281a6c4886b4c12376aea57bca9bad100458536f | [] | 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 | 461 | py | N, M = map(int, input().split())
road = []
for i in range(M):
a, b, c = map(int, input().split())
road.append((a-1, b-1, -c))
INF = 10**15
d = [INF] * N
d[0] = 0
def bellman_ford():
global d
for i in range(N):
for a, b, c in road:
d[b] = min(d[b], d[a] + c)
bellman_ford()
for a, b, c in road:
new_... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9ca967cb2d1a93ca45878ccdbaa7a626b963fab4 | ef1d38cfef63f22e149d6c9dd14e98955693c50d | /webhook/protos/pogoprotos/data/ditto/rpc_response_event_params_pb2.py | e4f473d06c0e00583908cdcab8447be689edd11e | [] | no_license | Kneckter/WebhookListener | 4c186d9012fd6af69453d9d51ae33a38aa19b5fd | ea4ff29b66d6abf21cc1424ed976af76c3da5511 | refs/heads/master | 2022-10-09T04:26:33.466789 | 2019-11-24T17:30:59 | 2019-11-24T17:30:59 | 193,372,117 | 2 | 0 | null | 2022-09-23T22:26:10 | 2019-06-23T16:39:34 | Python | UTF-8 | Python | false | true | 3,011 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/data/ditto/rpc_response_event_params.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | [
"kasmar@gitlab.com"
] | kasmar@gitlab.com |
f9ce9ebbf41ca7bdf7c0ae9d1b3acfbe30350953 | 525c6a69bcf924f0309b69f1d3aff341b06feb8e | /sunyata/layer/recurrent/lstm.py | ab6c9420189140a770d997facf97b92ca2501266 | [] | no_license | knighton/sunyata_2017 | ba3af4f17184d92f6277d428a81802ac12ef50a4 | 4e9d8e7d5666d02f9bb0aa9dfbd16b7a8e97c1c8 | refs/heads/master | 2021-09-06T13:19:06.341771 | 2018-02-07T00:28:07 | 2018-02-07T00:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | from ... import backend as Z
from ... import init
from ..base import LinkBuilder
from .base import RecurrentLayer, RecurrentSpec
class LSTMLayer(RecurrentLayer):
def __init__(self, forward, last, input_kernel, recurrent_kernel, bias):
dim = input_kernel.shape[1] // 4
dtype = input_kernel.dtype.nam... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
2bc6ce1e38b0ff11a43a0471d5895cf0445c4e75 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/admob/v1/ads-admob-v1-py/google/ads/admob/__init__.py | 99b0f676816b735ae222673d657ca23ba987d36e | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
c978e42a536117b3d4985389f63d8c254d9dd9e9 | 129e65b23a172ea686f220868c923eb4b08493c7 | /game/PyGame/Others/inkspill_buggy4.py | 2c65fd70d21bcd90e985ce83654362ddd56169bd | [] | no_license | urstkj/Python | 8dcf434858f9eb171204e064237bb10d76fe7f16 | 5a41df7c57c1975e0d335f59b528e28ba63cab85 | refs/heads/master | 2023-01-01T14:15:42.833144 | 2020-10-12T15:00:55 | 2020-10-12T15:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,580 | py | #!/usr/local/bin/python
#-*- coding: utf-8 -*-
# This version of the game has a bug in it. See if you can figure out how to fix it.
# http://inventwithpython.com/pygame/buggy
# Bug Description: Game doesn't run - "IndexError: list index out of range"
# Ink Spill (a Flood It clone)
# http://inventwithpython.com/pygame... | [
"ricol@opensimsim.com"
] | ricol@opensimsim.com |
774941c1e4550ae6504fd4d14f90db5cb0b4ea86 | a71fbf421c43fcb34fe7c8000eb807677821683c | /python_import/p42_from_module.py | 6adea0acaab4069110e5384b1022f70212ec8b84 | [] | no_license | leekyunghun/bit_seoul | ccd96dca3774f259e04b8388e134d6183b974268 | b76a3d5f83b77f5345d61cf3baa68aaefc25cd2a | refs/heads/master | 2023-02-06T08:12:17.768076 | 2020-12-22T13:35:19 | 2020-12-22T13:35:19 | 311,286,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from machine.car import drive
from machine.tv import watch
drive()
watch()
from machine import car
from machine import tv
car.drive()
tv.watch()
| [
"oh_pizza@naver.com"
] | oh_pizza@naver.com |
c98dfb752acee87d50afcc78ce6a2ff51cfc674f | 89f3169a2393bff8880f657d9bb4c12b40729e9a | /2020-06/abc051_b.py | dbd393e5b7ceda1a54913e15b23019463161141a | [] | no_license | YutaGoto/daily_atcoder | c087adbb7fa03f0cdc4291c806f21b1b93130d86 | 113d4e25f1d3bb0e665f9154bc0afaecae5ea7bf | refs/heads/main | 2023-06-19T00:56:12.359473 | 2021-07-16T12:33:06 | 2021-07-16T12:33:06 | 273,282,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | k, s = map(int, input().split())
a = 0
for x in range(0, k+1):
for y in range(0, k+1):
z = s - x - y
if z >= 0 and z <= k:
a += 1
print(a)
| [
"you.goto.510@gmail.com"
] | you.goto.510@gmail.com |
90168e13f27d0f16c51ca125a2be4b1e7e075cfc | 4fc21c3f8dca563ce8fe0975b5d60f68d882768d | /Darlington/phase1/python Basic 1/day 13 solution/qtn2.py | d0cbe7f2d2874086c5319bbe0c7055094a0354db | [
"MIT"
] | permissive | Uche-Clare/python-challenge-solutions | 17e53dbedbff2f33e242cf8011696b3059cd96e9 | 49ede6204ee0a82d5507a19fbc7590a1ae10f058 | refs/heads/master | 2022-11-13T15:06:52.846937 | 2020-07-10T20:59:37 | 2020-07-10T20:59:37 | 266,404,840 | 1 | 0 | MIT | 2020-05-23T19:24:56 | 2020-05-23T19:24:55 | null | UTF-8 | Python | false | false | 208 | py | #program to remove the first item from a specified list.
names = ["peter", "winner", "Austin", "ND", "Darlington"]
print("\nFirst Name: ",names)
del names[0]
print("After removing the first : ",names)
print() | [
"darlingtonchibuzor64@gmail.com"
] | darlingtonchibuzor64@gmail.com |
ed12611516370eb81804ac8f6bdfcdcbd60a9752 | 4c984a318ccf26e765f902669399da66497e194d | /pollexe/settings/summernote/conf.py | 392425c7e9f0d2983aec17391359a06fce26c55d | [] | no_license | sajalmia381/pollexe | 914af663bad6becb4308c738a16240028f37f99b | 3ead47fee43855aba1ee0f4c2b3f222cac6a9a68 | refs/heads/master | 2020-04-21T12:42:49.283843 | 2019-02-07T13:43:40 | 2019-02-07T13:43:40 | 169,572,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | # SUMMERNOTE_THEME = 'bs4'
SUMMERNOTE_CONFIG = {
# Using SummernoteWidget - iframe mode, default
'iframe': True,
# Or, you can set it as False to use SummernoteInplaceWidget by default - no iframe mode
# In this case, you have to load Bootstrap/jQuery stuff by manually.
# Use this when you're alrea... | [
"sajal_mia@ymail.com"
] | sajal_mia@ymail.com |
bb6034702ab10541abffa775201702a7d77dc308 | 41249d7d4ca9950b9c6fee89bf7e2c1929629767 | /results/rabi_and_lmg_optimizations_different_constraints_20190228/script_rabi_bangramp_neldermead_bounds12.py | a389f358b918172fdab3458cc34595ac1a335274 | [
"MIT"
] | permissive | lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381 | f739b3baad1d2aadda576303bb0bbe9d48ec204a | 29f80dcf914096555cee9bc2e18249a2c95d6a50 | refs/heads/master | 2022-11-22T00:44:09.998199 | 2020-07-21T08:35:28 | 2020-07-21T08:35:28 | 281,237,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | import os
import sys
import numpy as np
import pandas as pd
import logging
if '../../' not in sys.path:
sys.path.append('../../')
import src.optimization as optimization
model = 'rabi'
model_parameters = dict(N=100, Omega=100, omega_0=1.)
protocol = 'bangramp'
optimization_method = 'Nelder-Mead'
parameters_cons... | [
"lukeinnocenti@gmail.com"
] | lukeinnocenti@gmail.com |
941761be2cc2b83e4fb14b8e9bd41be81dd7e935 | 3330090c2b3608eedbce99e55a2a8a5d87cc163f | /lib/actions/drivers_test.py | f78eb2b1553a49633af7f65761e717c7c87f933c | [
"Apache-2.0"
] | permissive | Venseer/glazier | ea935af0afff001a26538972d24622c69598628f | db24121e5b79bd377c721ca8d9c391db56841a4f | refs/heads/master | 2021-01-11T05:22:52.400113 | 2018-06-25T10:52:19 | 2018-06-25T10:52:19 | 79,860,410 | 0 | 0 | Apache-2.0 | 2018-06-25T10:52:20 | 2017-01-23T23:42:37 | Python | UTF-8 | Python | false | false | 3,986 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"mattl@google.com"
] | mattl@google.com |
b4d48deeab90710e4f81fb5ff97b545bb3a77179 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/incremental-memory-leak.py | 1705ea35d0108812a35a7859a8fdf28edbb2a50f | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 1,064 | py | # Time: O(1)
# Space: O(1)
# Same problem from https://codingcompetitions.withgoogle.com/codejam/round/000000000019ffb9/00000000003384ea
class Solution(object):
def memLeak(self, memory1, memory2):
"""
:type memory1: int
:type memory2: int
:rtype: List[int]
"""
def ... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
1204ca4653c8968bf60985caa1ab1428e568e339 | d9cb81209d452b7c3180cd2e2b3e1b00279b469c | /proc_TED_2_NOV20161_adjusted.py | 623ca2a355b2c5efeb7490545a9385aca30410f3 | [
"CC0-1.0"
] | permissive | riceissa/total-economy-database | 3857a0b9bc1de393fc681b43914b26c0adf2c8bc | 0052bb2202458a7e908203b222d404b266ee1c0d | refs/heads/master | 2022-08-12T16:10:30.891745 | 2022-07-23T05:48:34 | 2022-07-23T05:48:34 | 107,448,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | #!/usr/bin/env python3
import csv
import sys
import re
from devec_sql_common import *
insert_line = "insert into data(region, odate, database_url, data_retrieval_method, metric, units, value, notes) values"
count = 0
first = True
with open("../total-economy-database-data/TED_2_NOV20161_adjusted.csv", newline='') a... | [
"riceissa@gmail.com"
] | riceissa@gmail.com |
17a0ccae6225c5831dfd34cfb3a9e83af48d05fc | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /tests/st/networks/models/bert/src/__init__.py | 4f4584a4b483b32d6ddacc12923d127d5a549061 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | Python | false | false | 1,653 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"leon.wanghui@huawei.com"
] | leon.wanghui@huawei.com |
3dfe5bdfaef0f2bb0484a3cedcb49aace1286dab | 496a63f41fa32e2bb3ecce0d35ff4374f1c02ad5 | /src/data/handlers/options.py | 1e2f69ca64a2a2b696cedf6bff9de1e3eb46b311 | [
"BSD-3-Clause"
] | permissive | vincent-lg/avenew.one | bbfa8d44e68db943b8825e9d4a32a43e985778fe | fb7f98d331e47e2032ee1e51bf3e4b2592807fdf | refs/heads/main | 2023-02-14T00:28:53.511552 | 2021-01-13T11:13:07 | 2021-01-13T11:13:07 | 330,207,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | # Copyright (c) 2020-20201, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions... | [
"vincent.legoff.srs@gmail.com"
] | vincent.legoff.srs@gmail.com |
7fb0fcce7a07d40707030a7b6d5b1f5de8882482 | 1a1c372244ef0e64da4629496bb3eb1b00cb47fc | /configs/guided_anchoring/ga_faster_x101_32x4d_fpn_1x.py | dabdf6c9864e1a9dad1e759165d76472618e78b0 | [
"Apache-2.0"
] | permissive | speedinghzl/mmdetection | 2ab7926251ed3ee8f86dcba6f0b85081eac0ef53 | 339f37a21b6e4001e90734f6fce1559843e83487 | refs/heads/master | 2020-05-30T09:54:02.302563 | 2019-06-02T03:41:45 | 2019-06-02T03:41:45 | 189,658,179 | 4 | 0 | Apache-2.0 | 2019-05-31T21:03:41 | 2019-05-31T21:03:40 | null | UTF-8 | Python | false | false | 5,721 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck... | [
"chenkaidev@gmail.com"
] | chenkaidev@gmail.com |
4b2110ebacae297132391eab34bb7b1f2d33b59d | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/plotly/py2/plotly/graph_objs/layout/template/__init__.py | d79d09c5515911865948b620ebebfb9ac2777926 | [
"MIT",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 56,166 | py | from plotly.graph_objs import Layout
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Data(_BaseLayoutHierarchyType):
# area
# ----
@property
def area(self):
"""
The 'area' property is a tuple of instances of
Area... | [
"robot-piglet@yandex-team.com"
] | robot-piglet@yandex-team.com |
c018206b30963896b42d4d8f91602b19fbb8578c | 36afa271f080459adf1014cd23f4be9f954dfee6 | /Crawler/Requests/douban.py | 5160d23321fc240a3aeba30552e69eecea7db83c | [] | no_license | King-Of-Game/Python | b69186a7574ce1c0b7097207cfe9a2eb38a90bc0 | 643b9fd22efd78f6679735f23432943a57b5f5bb | refs/heads/master | 2023-05-25T05:35:14.473114 | 2021-10-24T12:52:21 | 2021-10-24T12:52:21 | 151,251,434 | 3 | 0 | null | 2023-05-01T20:51:50 | 2018-10-02T12:34:04 | HTML | UTF-8 | Python | false | false | 2,155 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib.request
import lxml.html
import csv
url = 'https://movie.douban.com/top250?start={}&filter='
# 得到当前Url的数据,返回类型为string
def getSource(url):
header = {
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0"
}
re... | [
"871437338@qq.com"
] | 871437338@qq.com |
6314341c47af973fbafa71b98b6a1e0add874c4e | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon9996.py | b916bd74061aa9b0b4371a44afce755157f406d1 | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | n=int(input())
pattern=input().strip().split("*")
for _ in range(n):
text=input().strip()
print("DA" if text.index(pattern[0])<text.index(pattern[1]) else "NE") | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
662b4cbedb8253d593dc611960818f152b7a1d55 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.icechannel.extn.common/plugins/liveresolvers/kingofplayerscom_lrv.py | 4de6efd8dce31783d522389a9397402c3a1d5726 | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 1,760 | py | '''
Ice Channel
'''
from entertainment.plugnplay.interfaces import LiveResolver
from entertainment.plugnplay import Plugin
from entertainment import common
class kingofplayercom(LiveResolver):
implements = [LiveResolver]
name = 'kingofplayer.com'
def ResolveLive(self, content, url):
... | [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
c0b6072667963c1a241351c1acac80180630ba7e | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba2855.pngMap.py | ef2996c17bc7de399c2d09bc36844fa2d997de60 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba2855.pngMap = [
'11111111111111111111111111111111111111111111111111110000000000000000000000101111111111111111111111111111111111111111111111111111',
'11111111111111111111111111111111111111111111111111110000000000000000000000011111111111111111111111111111111111111111111111111111',
'1111111111111111111111111111111111111... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
9e68fb8d64881f8571975e3a2f5f99c37158d357 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_53/247.py | 266388f5f966aaf62ae3d3e229214be70a147baa | [] | 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 | 353 | py | def snapper(n, k):
return (k+1) & ((1<<n) - 1) == 0
def main():
labels = ["OFF", "ON"]
try:
cases = xrange(1, int(raw_input())+1)
for case in cases:
n, k = map(int, raw_input().split())
print "Case #%d: %s" % (case, labels[snapper(n, k)])
except ValueError:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9218a02e256da0f5f46dbfa773a0d6eccd56e154 | 0521afa39b2c9b64977da622779c906970af865b | /script/latent_factor_model.py | 7c5b4ec47ab25332ccedb53548d30c37e12042cc | [] | no_license | DamonHao/rec_sys | f48234f1689fb8f353a80a301647fa40bda9086d | e9272676d3794136f908eb9521a2944eefd9b38c | refs/heads/master | 2021-01-13T10:56:38.309864 | 2016-10-30T03:16:56 | 2016-10-30T03:16:56 | 72,264,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,438 | py | # -*- coding: utf-8 -*-
import random
import heapq
import math
class LatentFactorModel(object):
def __init__(self, filePath):
self._filePath = filePath
self._splitData(5, 1, 0)
def precisionAndRecall(self, N):
hit = 0
precision_all = 0
recall_all = 0
train = self._train
test = self._test
for us... | [
"haolinknight@gmail.com"
] | haolinknight@gmail.com |
bc3576ab54c7b1695d2d8d1f184e0c0fde88cb45 | 90047daeb462598a924d76ddf4288e832e86417c | /ios/web/payments/DEPS | 657dd83cf44bf5d166730b417f9e65e9d8f84f50 | [
"BSD-3-Clause"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | Python | false | false | 51 | include_rules = [
"+components/payments/core",
]
| [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com | |
faa20f2c671bf2819106d451219245da38e4ce8b | fe33bdb20436a379a17d56b83816d7064cb75d90 | /src/rocon_concert/concert_conductor/src/concert_conductor/transitions.py | f32eb0dbebdae0d4994c354a4df9ab4426789719 | [] | no_license | uml-robotics/catkin_tester | 764744614782acaff46f66f25dbd1650d0fcd5e8 | dfc8bb2026c06d0f97696a726a6773ff8b99496e | refs/heads/master | 2022-10-31T11:48:27.207535 | 2017-11-27T18:09:38 | 2017-11-27T18:09:38 | 111,495,779 | 0 | 1 | null | 2022-10-19T14:49:44 | 2017-11-21T03:45:59 | C | UTF-8 | Python | false | false | 4,511 | py | #!/usr/bin/env python
#
# License: BSD
# https://raw.github.com/robotics-in-concert/rocon_concert/license/LICENSE
#
"""
.. module:: transitions
This module does transition handling for the concert client state machine.
"""
##############################################################################
# Imports
####... | [
"james.perl12@gmail.com"
] | james.perl12@gmail.com |
90a4237ca61b7f9c9261dcd9d368c2d88f4d51a1 | 2ab1aea0a5c9556b3ebc4aab3d436779e153ec03 | /repro_lap_reg/covar_results.py | a7653e5b937e9839d43d12252725bbcad6c52f82 | [
"MIT"
] | permissive | idc9/repro_lap_reg | 8454b85df5d931dd3654dc4bdf50b3aacdaa185c | 1d3e846f8f2c3d04b4153d9ac56e0e9bd37198ca | refs/heads/main | 2023-05-31T21:57:35.379643 | 2021-07-06T19:14:46 | 2021-07-06T19:14:46 | 383,571,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from fclsp.reshaping_utils import vec_hollow_sym
from repro_lap_reg.utils import merge_dicts
from repro_lap_reg.results_utils import compare_vecs, compare_adj_mats
def get_covar_results(est, true, zero_tol=0):
"""
Parameters
----------
est: an Estimator
A covariance estimator.
true: arr... | [
"idc9@cornell.edu"
] | idc9@cornell.edu |
eb7d4abc7fd412fb1fe580ea71764e891c5d8a3e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/R2/benchmark/startQiskit81.py | f56bf0234644cb7f5c31a5b7d04b23a9581890e7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # qubit number=2
# total number=9
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
29bbb97b476679fe6e940996af412393027ec248 | 36bdbbf1be53ba5f09b9a2b1dd15e91f8f6b0da1 | /restaurants/migrations/0026_auto_20181123_2205.py | 9c1f8e9c7b83d80b4adf2a46dac2d6330574bfcf | [] | no_license | phufoxy/fotourNew | 801ab2518424118020dc6e5f31a7ba90a654e56a | 6048c24f5256c8c5a0d18dc7b38c106a7c92a29c | refs/heads/master | 2023-04-13T01:34:22.510717 | 2018-12-26T03:46:09 | 2018-12-26T03:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # Generated by Django 2.1 on 2018-11-23 15:05
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0025_auto_20181123_2155'),
]
operations = [
migrations.AlterField(
model_name='comment_restaurant',... | [
"vanphudhsp2015@gmail.com"
] | vanphudhsp2015@gmail.com |
6efa9c6232634b06fe3bf53c306b0b495efe8926 | 93c30152f4afa5c8feefa401e796529545e52ed2 | /Device/urls.py | c4af24562b1f856fcd9a76d87dfe4cc60ee38eac | [] | no_license | FellowCode/SmartHome | a32fa813a14b5b88d3f100736d062f0424208e1a | 58055d23c566f4f0030189c8157a7de1660cd991 | refs/heads/master | 2020-05-04T07:12:35.831914 | 2019-06-12T15:53:29 | 2019-06-12T15:53:29 | 179,022,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.contrib import admin
from django.urls import path, include
from .views import *
urlpatterns = [
path('change/', change_termo),
path('settings/<id>/', settings),
path('stat/<id>/', statistic),
] | [
"31797522+FellowCode@users.noreply.github.com"
] | 31797522+FellowCode@users.noreply.github.com |
99590d3668e5e1ee3725df50ac329f078e2b39ca | c851ab2120617c7145280f691d877d4f763bc2a4 | /wwlib/rarc.py | 51c021fea0e7acee28037445ab15078a4fe88bbe | [
"MIT"
] | permissive | W3st3rnSky/wwrando | 17787706580b1b297731c19d4926d07d0415f0e2 | 9973046e856709458a69f9bebd6ea8c9092f593d | refs/heads/master | 2020-07-30T12:12:07.838722 | 2019-09-23T00:23:12 | 2019-09-23T00:23:12 | 210,229,357 | 0 | 0 | MIT | 2019-09-22T23:47:34 | 2019-09-22T23:47:34 | null | UTF-8 | Python | false | false | 8,803 | py |
import os
from io import BytesIO
from fs_helpers import *
from wwlib.yaz0 import Yaz0
from wwlib.dzx import DZx
from wwlib.events import EventList
from wwlib.bmg import BMG
from wwlib.charts import ChartList
from wwlib.bdl import BDL
from wwlib.bti import BTIFile
class RARC:
def __init__(self, data):
self.dat... | [
"LagoLunatic@users.noreply.github.com"
] | LagoLunatic@users.noreply.github.com |
bd7736ed9e1654b7791ad680e574daee736bddc6 | 7c63130ae44e773a51fcd38c5dc3116f46daecd7 | /error/Predicted_Results/test_sample7_7recom_model1.py | 8a8c36851f91301d7ddcb8594c7239eacbeb0a5d | [] | no_license | GitHubdeWill/code_recom | a4e8e393592d210b0481f61a3cc89ea475c95153 | 954c334e4abb25aa96786c9efa8f8ca22bc286aa | refs/heads/master | 2020-04-12T15:14:02.395548 | 2018-12-20T12:07:31 | 2018-12-20T12:07:31 | 162,574,531 | 0 | 1 | null | 2019-12-02T14:28:38 | 2018-12-20T12:07:00 | Python | UTF-8 | Python | false | false | 1,179 | py | class Canvas:
def __init__(self, width, height):
self.width = width
self.height = height
self.data = [[' '] * width for i in range(height)]
def setpixel(self, row, col):
self.data[row][col] = '*'
def getpixel(self, row, col):
return self.data[row][col]
def disp... | [
"wtemp@cs.umass.edu"
] | wtemp@cs.umass.edu |
74ee475e802a1523ea256fe0e91b157437daa072 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /pruning_identified_exemplars/save_checkpoint/imagenet_train_eval.py | 6e55cfcb1026e17d743d3876706537783e2cf68a | [
"LicenseRef-scancode-proprietary-license",
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 7,235 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9d191ebc88daf5624bd0ef8db05ca5582c623a17 | 3cdd7019f3acbf7b7a7e879444454703fcc73d62 | /solutions/57.insert-interval.py | 5d2417be706aee6d99ed4e78e3e33eba5144c8ed | [] | no_license | quixoteji/Leetcode | 1dc2e52e53a7b58d9bae15ce2d5c4142cbd365af | 00bf9a8164008aa17507b1c87ce72a3374bcb7b9 | refs/heads/master | 2021-07-15T07:59:21.294297 | 2020-05-13T03:08:47 | 2020-05-13T03:08:47 | 138,812,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | #
# @lc app=leetcode id=57 lang=python3
#
# [57] Insert Interval
#
# @lc code=start
class Solution:
def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]:
return self.sol1(intervals, newInterval)
# Solution 1
def sol1(self, intervals, newInterval) :
ans = ... | [
"jxj405@case.edu"
] | jxj405@case.edu |
638c780ac1d2224bab250dbad8d30263e3c8425f | 159c3669bfe0525b0608bb658971cf4a7d82c7c5 | /query_learn/models.py | ab0f74ef981aa922e6f460db759d0b96ddd4ec01 | [] | no_license | jatinkatyal13/Django_Boiler_Plate | eb163486dc0307c8c0a5e4cbcdfee53826a3640c | 550f50f33be396e3c82082cc722ec897dadf04a8 | refs/heads/master | 2020-03-11T03:49:39.089700 | 2018-04-28T10:50:31 | 2018-04-28T10:50:31 | 129,759,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from django.db import models
# Create your models here.
class Blog(models.Model):
name = models.CharField(max_length = 100)
website = models.URLField()
def __str__ (self):
return self.name
class Author(models.Model):
name = models.CharField(max_length = 200)
score = models.IntegerField(d... | [
"jatin.katyal13@gmail.com"
] | jatin.katyal13@gmail.com |
f566ce02ce3a9f62a9487b3ae38419afe38437c6 | 40699a136c4f4500833e21e0d7863a1ba624a5cd | /pde/tools/tests/test_parameters.py | 761a0ce0f072ff26b20329f71a0ec5e47ec257c4 | [
"MIT"
] | permissive | binder-oilgains/py-pde | 0e0226678b2598b50aa72762d9a70bb8e9536e43 | d76977095f1e915c63230e6895391f063d0778d8 | refs/heads/main | 2023-02-23T09:09:05.543386 | 2021-02-02T00:55:40 | 2021-02-02T00:55:40 | 334,454,351 | 0 | 0 | MIT | 2021-01-30T16:09:14 | 2021-01-30T16:09:13 | null | UTF-8 | Python | false | false | 5,307 | py | """
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
import itertools
import logging
import pickle
import numpy as np
import pytest
from pde.tools.parameters import (
DeprecatedParameter,
HideParameter,
Parameter,
Parameterized,
get_all_parameters,
sphinx_display_parameters,
)
def... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
4f0e1f57ce50c3a051c432c5570ea57775a38300 | 4589a9ea76e458793ad78059839b81d365f433de | /athena_automation/athenataf/tests/group_management/group_management/non_default_value_check/NonDefaultValueCheck.py | b7af3ed0749dbbab1b9fdca59e171016b0940a66 | [] | no_license | cash2one/reautomation_handoff | 5e2c4c432d8f658d1b57211782744bd0b56c52f6 | 7ef83572d659db35036189eb394f99de1369db5a | refs/heads/master | 2020-05-22T17:56:33.214080 | 2015-07-13T07:51:18 | 2015-07-13T07:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,970 | py | import logging
logger = logging.getLogger('athenataf')
import time
from athenataf.lib.functionality.test.AthenaGUITestCase import AthenaGUITestCase
class NonDefaultValueCheck(AthenaGUITestCase):
'''
Test class for NonDefaultValueCheck.
'''
def _create_network(self , network_page):
time.sleep(10)
network_page.d... | [
"raju_set@testmile.com"
] | raju_set@testmile.com |
c05a4d2c8f71e43c742416226d3a37a8bec52e4e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HvkPdhijquecKASdF_4.py | 28fe72dc5e2ebc80b433f466d3102b76d2b8443e | [] | 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 | 589 | py | """
Create a function that takes a dictionary of student names and returns a list
of student names in **alphabetical order**.
### Examples
get_student_names({
"Student 1" : "Steve",
"Student 2" : "Becky",
"Student 3" : "John"
}) ➞ ["Becky", "John", "Steve"]
### Notes
* Don't forget to... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d11536917ccd84af47b21f2d5b765a44747909d1 | abf6e809ed4d07a4fb144ed6ab467dc1f17769ae | /mjlib/BUILD | 9c0fb0521ce80c390339147535f3d6457ac3d06f | [
"Apache-2.0"
] | permissive | mjy2002/moteus | fdf55d88779be2b79316c11c50d40772bcf525bb | a30cd636d061b3b19c36468f79b174f70a6e9376 | refs/heads/master | 2020-08-06T09:33:35.519239 | 2019-10-03T20:21:43 | 2019-10-03T20:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | # -*- python -*-
# Copyright 2018 Josh Pieper, jjp@pobox.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 applic... | [
"jjp@pobox.com"
] | jjp@pobox.com | |
698c729f923f3786348bd575ba07df82bc2097ed | cd57ad36685cc188ea42219bd220905e23e61f4c | /tests/logic/test_time.py | b2789a57f2b7b17fc9152dbc40382c556402ac8a | [
"BSD-3-Clause"
] | permissive | gitCommitWiL/ChatterBot | fa404848c7eb8f8ffb07c80c7d3ec47aeb2fe177 | 4f2275ec8a6e3546c4251db9e9938f7b3fd29e68 | refs/heads/master | 2021-04-22T14:52:18.175648 | 2020-03-26T11:22:16 | 2020-03-26T11:22:16 | 249,854,439 | 2 | 0 | BSD-3-Clause | 2020-03-25T01:02:46 | 2020-03-25T01:02:46 | null | UTF-8 | Python | false | false | 815 | py | from tests.base_case import ChatBotTestCase
from chatterbot.logic import TimeLogicAdapter
from chatterbot.conversation import Statement
class TimeAdapterTests(ChatBotTestCase):
def setUp(self):
super().setUp()
self.adapter = TimeLogicAdapter(self.chatbot)
def test_positive_input(self):
... | [
"gunthercx@gmail.com"
] | gunthercx@gmail.com |
20ef6a2b50cafbfbe8d5fc7d867265690b62d4c0 | 535503dc18c38b92f8520289da5b4fa42b0a722a | /code/exp_control/sequencer/sequences/Ramsey2_D52_D32.py | f1fc50821392952cb3b5aa8a7897c1b7850731bf | [] | no_license | jamesbate/phd_code | fbbbf7657c428a0a1f18768edca1dfce56801cc1 | 7e71d7f041835497fb421dd741c644ab5c8e3805 | refs/heads/master | 2023-05-07T10:31:22.168217 | 2021-05-26T15:00:40 | 2021-05-26T15:00:40 | 371,073,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,555 | py | # General S/D experiment
<VARIABLES>
# initializing the ion to the s state with 854 laser
MeasPoints=self.set_variable("float","MeasPoints",50,1,2e5)
n_loops=self.set_variable("float","n_loops",1,1,500000)
p729_pulse=self.set_variable("bool","p729_pulse",0)
pulse729_length=self.set_variable("float","pulse729_length",... | [
"james.bate@oriel.ox.ac.uk"
] | james.bate@oriel.ox.ac.uk |
e37e107190dff0ae34e8723deb1d746d87aba1fb | 2181795d5c380fef6d929f28fb4c90c0b1ffdc50 | /PythonScript/twitter_streaming.py | c6658c25cdde056fd59a770e2c3519d64af1bda2 | [] | no_license | pvhuu/Social-Network-Analysis | fa2c69460b7f811b16d4edfcdd99359825ca046e | c54d25eaa5838ea1e118cf8000a3a0bedf3b1ccd | refs/heads/master | 2020-04-24T04:55:24.381193 | 2019-02-25T12:31:57 | 2019-02-25T12:31:57 | 171,719,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | import sys
import string
import time
from tweepy import Stream
from tweepy.streaming import StreamListener
from twitter_client import get_twitter_auth
class CustomListener(StreamListener):
""" Custom StreamListener from streaming Twitter data """
def __init__(self,fname):
safe_fname = format_filename(... | [
"="
] | = |
e6ea1c5b7867d5bcc40adbeab05230c3eb764d24 | b9963ffb80aad7e057bc375edb85ac7ed5a837d0 | /knowit2016/knowit19.py | 24d450541ccf6ab2c23a57b0b5a410272753a1e4 | [
"MIT"
] | permissive | matslindh/codingchallenges | a2db9f4579e9f35189f5cdf74590863cf84bdf95 | a846e522f7a31e988c470cda87955ee3ef20a274 | refs/heads/main | 2022-12-23T15:56:19.776354 | 2022-12-15T21:03:37 | 2022-12-15T21:03:37 | 76,491,177 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import string
out = open("input/knowit19_output.pgm", "w")
#out_bin = open("input/knowit19_output.bin", "wb")
s = ''.join(open("input/knowit19").readlines()).replace("\n", '')
for i in range(0, len(s), 2):
pass
#out_bin.write(chr(int(s[i:i + 2])).encode("ascii"))
height = 21
width = int(len(s) / (height * 2)... | [
"mats@lindh.no"
] | mats@lindh.no |
51d60aa46fddbf0f3fe82bc84c9e6e73eba242fd | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_1/_pkg0_0_0_1_1/_mod0_0_0_1_1_4.py | 837b2352d702ad8b1907a0715fb60cbf0eaa700d | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 128 | py | name0_0_0_1_1_4_0 = None
name0_0_0_1_1_4_1 = None
name0_0_0_1_1_4_2 = None
name0_0_0_1_1_4_3 = None
name0_0_0_1_1_4_4 = None | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
4bffa371b0f85e0309c820ac059e41d57de17199 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/celery/tests/backends/test_couchbase.py | 3dc6aadd0b7a2f0ce6914768e70f511615cc8346 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 4,782 | py | from __future__ import absolute_import
from celery.backends import couchbase as module
from celery.backends.couchbase import CouchBaseBackend
from celery.exceptions import ImproperlyConfigured
from celery import backends
from celery.tests.case import (
AppCase, MagicMock, Mock, SkipTest, patch, sentinel,
)
try:
... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
3264b1c0d30de6484403a37d07b39896f9a20180 | ee4768fe781f5099e4fee5a5d6d1b53146d21f80 | /src/pyutil/zeroconf.py | 8cd6428b09322cc329a3a760cb0492c81d261946 | [
"LicenseRef-scancode-public-domain",
"Unlicense",
"CC0-1.0",
"BSD-3-Clause"
] | permissive | nuin/ampify | e55eff2953ae25907df52a909ecb7be7e468c9ae | dd3ed2eece37652e604f223658c028e01e6bdfa3 | refs/heads/master | 2021-01-15T23:50:50.748938 | 2011-01-29T04:36:41 | 2011-01-29T04:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,373 | py | # Public Domain (-) 2010-2011 The Ampify Authors.
# See the Ampify UNLICENSE file for details.
"""
================
ZeroConf Support
================
This module provides support functions to register and query ZeroConf records.
The ``register`` function returns either a ``1`` or a ``0`` to indicate a
successful or ... | [
"tav@espians.com"
] | tav@espians.com |
4e3bed99e1ea699ca9f133ea0ba788cc2e25882b | 2451ca9bc9ae43bd3b070fa362aa13646ff06f13 | /03_Standard_Library/unittest[Unit_testing_framework]/_note_unittest.py | 6c98c6865211e88f416708deb5099c1269bdaaf9 | [] | no_license | MacHu-GWU/six-demon-bag | 5cd1cf5d56d4c42cff013ab80dd4fc838add7195 | 10d772d6b876086f64db39f6ddbc07e08e35a122 | refs/heads/master | 2020-05-17T17:26:15.961833 | 2015-09-15T21:50:20 | 2015-09-15T21:50:20 | 26,669,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | ##################################
#encoding=utf8 #
#version =py27, py33 #
#author =sanhe #
#date =2014-11-15 #
# #
# (\ (\ #
# ( -.-)o I am a Rabbit! #
# o_(")(") #
# ... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
5d72e5ef4d774b54baceacc28da305d03a59b235 | c499492bec3337319e9b186645d19edd019ca221 | /raSAT-0.2/starexec_run_default_0.2.py | b0f9baa22c4b3e4c3d145af736cd0a106ef30f92 | [] | no_license | tungvx/smt_test_tools | 6f60e186f86120d35c9d1479333de179a9296d96 | f466b0faa4a90363c905f9acba3f7f5fbf11427e | refs/heads/master | 2020-12-06T13:12:29.198696 | 2017-12-25T06:03:57 | 2017-12-25T06:03:57 | 67,702,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | #!/usr/bin/env python
# Run: python smt.py filename.smt2 timeout
# timeout is in seconds
import os
import subprocess
import sys
import stat
import time
current_path = os.path.dirname(os.path.realpath(__file__))
def remove_tmp (filename, version):
try:
os.remove(filename + '.' + version + '.tmp')
except OSEr... | [
"toilatung90@gmail.com"
] | toilatung90@gmail.com |
69be6a4feb0fe66a029a87ff314c6f77dd9fb8ff | 39de3097fb024c67a00c8d0e57c937d91f8b2cc9 | /Graphs/Good_graphs.py | b9f3b6c78d943e723f30cb7b4fcce9287c4d89f0 | [] | no_license | srajsonu/InterviewBit-Solution-Python | 4f41da54c18b47db19c3c0ad0e5efa165bfd0cd0 | 6099a7b02ad0d71e08f936b7ac35fe035738c26f | refs/heads/master | 2023-03-07T05:49:15.597928 | 2021-02-24T18:20:07 | 2021-02-24T18:20:07 | 249,359,666 | 0 | 2 | null | 2020-10-06T10:54:07 | 2020-03-23T07:09:53 | Python | UTF-8 | Python | false | false | 849 | py | class DSU:
def __init__(self,m):
self.parent=[i for i in range(m+1)]
self.height=[0 for _ in range(m+1)]
self.ans=m
def find_root(self,A):
if self.parent[A]==A:
return A
return self.find_root(self.parent[A])
def Union(self,A,B):
C=self.find_root(... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
8befe5a68bd5acbf2c15b8f57452161d188e1aa6 | b8bd4fa3b9d7a39c13f4d897e71f933ceb542cbd | /examples/beta_bernoulli_tf.py | ddf9eaef35b18932c469810138e071ac69c30a41 | [
"Apache-2.0"
] | permissive | chagge/edward | 0b481b8de08ddc1e4be6ea1d868e5c8c0da0bb06 | 1e5563eba7bad5d6338615dff9dfcceef2cd436f | refs/heads/master | 2021-01-17T02:15:00.119122 | 2016-05-12T01:27:47 | 2016-05-12T07:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/env python
"""
A simple example from Stan. The model is written in TensorFlow.
Probability model
Prior: Beta
Likelihood: Bernoulli
Variational model
Likelihood: Mean-field Beta
"""
import edward as ed
import tensorflow as tf
from edward.stats import bernoulli, beta
from edward.variationals impo... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
ca2d3bcceb6ab5411980dd400babb51d77d2eb51 | 6249a81e81c3b3b37e6d03cd7112e9a981cec8e2 | /python/jobovy/apogee/setup.py | ee1fa5ae558eecf49e17c2bed29820ca33297774 | [
"BSD-3-Clause"
] | permissive | dnidever/apogee | e883c7d352abb1b99c938f7de38313b5cd4d2164 | 83ad7496a0b4193df9e2c01b06dc36cb879ea6c1 | refs/heads/master | 2021-07-06T22:23:13.839478 | 2020-08-08T22:42:42 | 2020-08-08T22:42:42 | 149,676,202 | 0 | 0 | BSD-3-Clause | 2018-09-20T22:07:43 | 2018-09-20T22:07:43 | null | UTF-8 | Python | false | false | 5,445 | py | import os
from setuptools import setup #, Extension
import sys
import shutil
import subprocess
import tempfile
long_description = "Tools for APOGEE data analysis; see `here <https://github.com/jobovy/apogee>`__ for further documentation"
# Install FERRE when specifying --install-ferre; needs a FORTRAN compiler, e.g.,... | [
"holtz@nmsu.edu"
] | holtz@nmsu.edu |
6af1cb0e42170d903f01a9c7990a8f4ff4dc38c0 | 4e503761d091f3f284763d63c89861f6c26c1015 | /语法基础/jinzhi_base.py | ec273df6619f3f2be6874ed53805093eb88e0fd0 | [] | no_license | L-ingqin12/Algorithm_LanQiaobei | b2e08d755cacaaa0ff96108ca3f13d648b3b6fd7 | 9dd7b05eaf1cfc02eca52ee4f97466de961e592c | refs/heads/main | 2023-04-03T14:08:04.389344 | 2021-04-19T03:14:29 | 2021-04-19T03:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import math
import cmath
import sys
import string
import heapq
import bisect
from queue import Queue,PriorityQueue,LifoQueue
from collections import Counter,deque
from itertools import permutations,combinations
from functools import cmp_to_key
# str=input()
# print(int(str,16))
# a=int(str,16)
# print("{:0b}-666".form... | [
"54010254+lixiang007666@users.noreply.github.com"
] | 54010254+lixiang007666@users.noreply.github.com |
d6b75617ce95f97c556264d12c12a0ba8750dda0 | 63b4a698bc22fd54857c8fa097b1331f79c39e5a | /src/gdb/gdb-7.11/gdb/python/lib/gdb/printing.py | 63c3aeb23d8116dc0c49f1dc7acb7106131d869a | [
"Apache-2.0",
"LGPL-3.0-only",
"GPL-3.0-only",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-copyleft",
"GPL-2.0-only",
"LGPL-2.0-only",
"LicenseRef-scancode-other-permissive",
"GPL-2.0-or-later",
"GPL-3.0-or-later",
"LicenseRe... | permissive | MinimSecure/unum-sdk | 67e04e2b230f9afb3ae328501a16afa4b94cdac6 | 30c63f0eccddba39a760671a831be3602842f3f4 | refs/heads/master | 2023-07-13T07:33:43.078672 | 2023-07-07T13:52:05 | 2023-07-07T13:52:05 | 143,209,329 | 33 | 22 | Apache-2.0 | 2021-03-05T22:56:59 | 2018-08-01T21:13:43 | C | UTF-8 | Python | false | false | 10,913 | py | # Pretty-printer utilities.
# Copyright (C) 2010-2016 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any l... | [
"denis.bakin@minim.co"
] | denis.bakin@minim.co |
c1b1dc0c1b17afb0bda43f4b02f94622623041a8 | 9398d8433fdb29ee630a6ee43a07bc36a2adbd88 | /ryu/__init__.py | e7cc55df725de6f5401b96f6663236b53a10e5d9 | [] | no_license | bopopescu/OpenStack_Liberty_Control | ca5a21d0c32c55dc8c517f5c7c9938ce575a4888 | 0f6ec1b4d38c47776fdf8935266bcaef2464af4c | refs/heads/master | 2022-12-03T10:41:53.210667 | 2016-03-29T06:25:58 | 2016-03-29T06:25:58 | 282,089,815 | 0 | 0 | null | 2020-07-24T01:04:15 | 2020-07-24T01:04:14 | null | UTF-8 | Python | false | false | 683 | py | # Copyright (C) 2012 Nippon Telegraph and Telephone Corporation.
#
# 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 appli... | [
"tony.pig@gmail.com"
] | tony.pig@gmail.com |
dad949a14e690002447d02f8e29d60c18500099b | 508321d683975b2339e5292202f3b7a51bfbe22d | /Userset.vim/ftplugin/python/CompletePack/PySide2/QtGui/QVector3D.py | b8973e32292f5f6d1dd2b4cfec809fcb2ed4014c | [] | no_license | cundesi/vimSetSa | 4947d97bcfe89e27fd2727423112bb37aac402e2 | 0d3f9e5724b471ab21aa1199cc3b4676e30f8aab | refs/heads/master | 2020-03-28T05:54:44.721896 | 2018-08-31T07:23:41 | 2018-08-31T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,335 | py | # encoding: utf-8
# module PySide2.QtGui
# from C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtGui.pyd
# by generator 1.145
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import Shiboken as __Shiboken
class QVector3D(__Shiboken.Object):
# no doc
def crossProd... | [
"noreply@github.com"
] | cundesi.noreply@github.com |
05959d27e7eaf9d04223342a556392e1d4a9b7ab | 3a476e0de377d1580facbfd78efdfbca009ed7a3 | /algo/zhang_ppo.py | b1600f08306144938cc2461e79e881d490bfa200 | [
"MIT"
] | permissive | liuruoze/Thought-SC2 | b7366186dbb4494fabdb3e0104354665e21ff707 | b3cfbeffbfa09b952c596805d2006af24613db2d | refs/heads/master | 2023-04-28T11:47:56.771797 | 2021-01-15T00:25:26 | 2021-01-15T00:25:26 | 296,185,180 | 4 | 2 | MIT | 2023-04-24T09:06:48 | 2020-09-17T01:17:04 | Python | UTF-8 | Python | false | false | 13,421 | py | """
Implementation of PPO
ref: Schulman, John, et al. "Proximal policy optimization algorithms." arXiv preprint arXiv:1707.06347 (2017).
ref: https://github.com/Jiankai-Sun/Proximal-Policy-Optimization-in-Pytorch/blob/master/ppo.py
ref: https://github.com/openai/baselines/tree/master/baselines/ppo2
NOTICE:
... | [
"liuruoze@163.com"
] | liuruoze@163.com |
d06c3fe68020ef60919224da60cbd77b2a0d58c0 | 12b401d5be9f5a1e1f60eb607f1796771deae085 | /application_play_game.py | 78325623113f39f07959a06d1fdcf3e6d58bfc12 | [] | no_license | chandraprakashh/machine_learning_code | 805355125f66cd03005fbc6bb134aeebf8a46c6a | 64679785d0ac8e231fd0a2d5386519f7e93eea82 | refs/heads/master | 2020-07-20T23:21:00.157810 | 2020-01-13T10:28:36 | 2020-01-13T10:28:36 | 206,724,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 26 11:35:02 2019
@author: Administrator
"""
import tkinter
window = tkinter.Tk()
window.title("GUI")
def PrintOnClick():
tkinter.Label(window, text = "welcome").pack()
tkinter.Button(window, text = "click me", command = PrintOnClick).pac... | [
"noreply@github.com"
] | chandraprakashh.noreply@github.com |
2111ba7c1c2e5eef8696d286f56b85cb87a8ffd3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_fencers.py | 458ff6e91aa5b2b77af88010dcaf87cfc6f9bd2a | [
"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 | 222 | py |
#calss header
class _FENCERS():
def __init__(self,):
self.name = "FENCERS"
self.definitions = fencer
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['fencer']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
920229c2be6c0e09a63d32d83e5be8973bb20dc8 | de4d88db6ea32d20020c169f734edd4b95c3092d | /aiotdlib/api/functions/process_push_notification.py | 339796d01d5927139d4d1b705af21fd64f6ce1e8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | thiagosm/aiotdlib | 5cc790a5645f7e4cc61bbd0791433ed182d69062 | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | refs/heads/main | 2023-08-15T05:16:28.436803 | 2021-10-18T20:41:27 | 2021-10-18T20:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | [
"pylakey@protonmail.com"
] | pylakey@protonmail.com |
1f361b50f9c5c862d5ed7da0bf89240bf1400f42 | 3d6b4aca5ef90dd65a2b40cf11fd8f84088777ab | /zounds/datasets/phatdrumloops.py | 55d1cfcad1b68dd4f92b6a20d307d0f4bb7c855e | [
"MIT"
] | permissive | maozhiqiang/zounds | c3015f1bb58b835b5f8e9106518348442f86b0fc | df633399e7acbcbfbf5576f2692ab20d0501642e | refs/heads/master | 2020-04-19T22:41:42.540537 | 2019-01-31T01:13:45 | 2019-01-31T01:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from zounds.soundfile import AudioMetaData
import requests
import re
import urlparse
class PhatDrumLoops(object):
"""
Produces an iterable of :class:`zounds.soundfile.AudioMetaData` instances
for every drum break from http://phatdrumloops.com/beats.php
Args:
attrs (dict): Extra properties to ... | [
"john.vinyard@gmail.com"
] | john.vinyard@gmail.com |
cbb8321e0fef6844c689fe05fcee4eaf4d7988e9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_051/ch120_2020_09_27_20_54_37_267942.py | 265ee47db4543afc45e1caee2a01fdff39a7ce64 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | import random as rd
dinheiro=100
while dinheiro >0:
numero=rd.randint(1, 36)
if dinheiro == 0:
break
print ('voce tem', dinheiro, 'dinheiro')
valor=int(input('qunato quer apostar? '))
if valor == 0:
break
aposta=input('quer apostar em um numero ou em uma paridade? ')
if apost... | [
"you@example.com"
] | you@example.com |
e4dd4ae92970dcf7438e5e3e8e1d87c2c669e718 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02267/s160876142.py | cc65b83611da412d51a5be85eff336a19d9f1eec | [] | 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 | 244 | py | N = int(input())
L = input().split()
n = int(input())
l = input().split()
dup = []
count = 0
for i in range(N):
for j in range(n):
if L[i] == l[j]:
dup.append(L[i])
break
dup = list(set(dup))
print(len(dup))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ebf8ee08be5d85beef798cd93010cce8cdfcb4f7 | 2dc50ddfb0a431a34867c8955a972e67870a2755 | /migrations/versions/4445080944ee_hidden_hosts_management.py | d853ad3d00f27794e4a672e9281631081a45b99b | [
"BSD-3-Clause"
] | permissive | ziirish/burp-ui | d5aec06adb516eb26f7180f8e9305e12de89156c | 2b8c6e09a4174f2ae3545fa048f59c55c4ae7dba | refs/heads/master | 2023-07-19T23:05:57.646158 | 2023-07-07T18:21:34 | 2023-07-07T18:21:34 | 20,400,152 | 98 | 18 | BSD-3-Clause | 2023-05-02T00:31:27 | 2014-06-02T10:23:40 | Python | UTF-8 | Python | false | false | 875 | py | """hidden hosts management
Revision ID: 4445080944ee
Revises: 695dcbd29d4f
Create Date: 2018-10-03 11:47:20.028686
"""
# revision identifiers, used by Alembic.
revision = "4445080944ee"
down_revision = "695dcbd29d4f"
import sqlalchemy as sa
from alembic import op
def upgrade():
# ### commands auto generated b... | [
"ziirish@ziirish.info"
] | ziirish@ziirish.info |
74ca2b4a8a82aad877acfaf39298809830bd83a9 | d3e31f6b8da5c1a7310b543bbf2adc76091b5571 | /Day29/upload_file/upload_file/settings.py | dc5d94a6a1bf90cd9d6113c34d79017577181cc2 | [] | no_license | pytutorial/py2103 | 224a5a7133dbe03fc4f798408694bf664be10613 | adbd9eb5a32eb1d28b747dcfbe90ab8a3470e5de | refs/heads/main | 2023-07-14T06:31:18.918778 | 2021-08-12T14:29:16 | 2021-08-12T14:29:16 | 355,163,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | """
Django settings for upload_file project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"duongthanhtungvn01@gmail.com"
] | duongthanhtungvn01@gmail.com |
506ad115684ba8ed96c7300b40bb7467ba9114d6 | 2198abd6e37195dbb64b46effa11c6fad1de3b4e | /PyQuantum/Tools/CSV.py | 218dbc3802b453fa193aca8202b04c513040678a | [
"MIT"
] | permissive | deyh2020/PyQuantum | 179b501bea74be54ccce547e77212c7e1f3cd206 | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | refs/heads/master | 2022-03-24T08:11:50.950566 | 2020-01-05T02:07:59 | 2020-01-05T02:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import pandas as pd
import csv
def list_to_csv(lst, filename):
df = pd.DataFrame(lst, columns=None)
df.to_csv(filename, index=None, header=False)
# def list_to_csv(lst, filename):
# df = pd.DataFrame(lst)
# df.to_csv(filename)
# def list_from_csv(filename):
# df = pd.read_csv(filename)
# l... | [
"alexfmsu@mail.ru"
] | alexfmsu@mail.ru |
98ba07395607b0818853a04048c8dc3186048939 | 4e2117a4381f65e7f2bb2b06da800f40dc98fa12 | /165_RealtimeStereo/test_tflite.py | c9d58604e945ac4c6775f9f5e1b7419b476080c3 | [
"GPL-3.0-only",
"AGPL-3.0-only",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | PINTO0309/PINTO_model_zoo | 84f995247afbeda2543b5424d5e0a14a70b8d1f1 | ff08e6e8ab095d98e96fc4a136ad5cbccc75fcf9 | refs/heads/main | 2023-09-04T05:27:31.040946 | 2023-08-31T23:24:30 | 2023-08-31T23:24:30 | 227,367,327 | 2,849 | 520 | MIT | 2023-08-31T23:24:31 | 2019-12-11T13:02:40 | Python | UTF-8 | Python | false | false | 2,792 | py | from tensorflow.lite.python.interpreter import Interpreter
import cv2
import numpy as np
import time
class RealtimeStereo():
def __init__(self, model_path):
self.model = self.load_model(model_path)
def load_model(self, model_path):
self.interpreter = Interpreter(model_path, num_threads=4)
... | [
"rmsdh122@yahoo.co.jp"
] | rmsdh122@yahoo.co.jp |
24e1af6e4014ee573951e1bbb70250d99347fcd8 | e89f44632effe9ba82b940c7721cad19a32b8a94 | /text2shorthand/shorthand/svsd/a.py | bf377f0363fe3f97c48628ff5aeb67c2e7de1eef | [] | no_license | Wyess/text2shorthand | 3bcdb708f1d7eeb17f9ae3181c4dd70c65c8986e | 5ba361c716178fc3b7e68ab1ae724a57cf3a5d0b | refs/heads/master | 2020-05-17T14:52:11.369058 | 2019-08-20T12:50:00 | 2019-08-20T12:50:00 | 183,776,467 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | from ..svsd.char import SvsdChar
from text2shorthand.common.point import Point as P, PPoint as PP
import pyx
from pyx.metapost.path import (
beginknot,
knot,
endknot,
smoothknot,
tensioncurve,
controlcurve,
curve)
class CharA(SvsdChar):
def __init__(self, name='a', kana='あ',
... | [
"diyhacker@mail.goo.ne.jp"
] | diyhacker@mail.goo.ne.jp |
8f6f69ccfeabf24952fcc568aea0bf80511103fe | b24ede8d5a45c2b22c7182bdb310f7617a29a365 | /driver/arguments.py | 32dd9655ffd0396436a3c70ebd69b9b10ee218bb | [] | no_license | marc-hanheide/blackboard_tools | e2ea46f3b8be862e377aa6b371266c11a8b1e7e6 | 309de57daff1fcce12c271d800b3eff4d72c557d | refs/heads/master | 2022-12-25T11:41:33.903686 | 2022-12-09T12:03:40 | 2022-12-09T12:03:40 | 34,859,021 | 3 | 0 | null | 2022-12-09T12:03:41 | 2015-04-30T14:32:05 | Python | UTF-8 | Python | false | false | 11,615 | py | # -*- coding: utf-8 -*-
import argparse
DESCRIPTION = """Fast Downward driver script.
Input files can be either a PDDL problem file (with an optional PDDL domain
file), in which case the driver runs all three planner components, or a SAS+
preprocessor output file, in which case the driver runs just the search
com... | [
"marc@hanheide.net"
] | marc@hanheide.net |
c162fe99b26ec56068d61a2d04055ad5804cbeaf | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /vYYfFAAfjoc8crCqu_5.py | c815b8937d476932feaa5ae13066bc8fc49dac5e | [] | 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 | 169 | py |
def tree(h):
ans = []
row_len = 2*h-1
for i in range(1, row_len+1, 2):
n = (row_len - i)//2
row = ' '*n + '#'*i + ' '*n
ans.append(row)
return ans
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a4a300afe9003b66876d7c1ee2857fec4542e32e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/4/usersdata/145/3314/submittedfiles/swamee.py | 9de554dec9e9faab31dbced293cb3abc50b8bb40 | [] | 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 | 468 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#entrada
f=input('digite um valor de f:')
L=input('digite um valor de L:')
Q=input('digite um valor de Q:')
deltaH=input('digite um valor de deltaH:')
V=input('digite um valor de v:')
#processamento
g=9,81
e=0,000002
D=(8*f*L*(Q**2)/((math.pi**2)*g*del... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1ee2b14448aace3b16487246053c468adc039ba6 | 78f1cc341cd6313d02b34d910eec4e9b2745506a | /p02_personal_summary/p13_lee_yung_seong/p03_week/p02_thursday/C5.11.py | 6bb587db4fe5e5cc69b337b6bfe6754cab7e0d67 | [] | no_license | python-cookbook/PythonStudy | a4855621d52eae77537bffb01aae7834a0656392 | cdca17e9734479c760bef188dcb0e183edf8564a | refs/heads/master | 2021-01-20T17:23:35.823875 | 2017-07-30T10:56:13 | 2017-07-30T10:56:13 | 90,873,920 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | #경로 다루기
#문제
#기본 파일 이름, 디렉터리 이름, 절대 경로 등을 찾기 위해 경로를 다루어야 한다.
##해결
#경로를 다루기 위해서 os.path 모듈의 함수를 사용한다. 몇몇 기능을 예제를 통해 살펴보자.
import os
path = '/users/beazley/Data/data.csv'
os.path.basename(path)#경로의 마지막 부분
#디렉터리 이름
os.path.dirname(path)
#합치기
os.path.join('tmp','data',os.path.basename(path))
#사용자의 홈 디렉토리 펼치기
path = '~/Data/... | [
"acegauss@naver.com"
] | acegauss@naver.com |
aea80bf4ca2d9742e5bb0dc0e1f750e6e39a75b0 | 78da694dc955639c5a9f64e2d83acee4d13fd931 | /socialadmin/admin.py | bda4a33cb121ea5517b5a0e1bdd106a82d435037 | [] | no_license | toluwanicareer/kemibox | f255e73f71c824e780d528e47f37ec7ebca35f60 | 641808e70545826c536ed4062276b129414c2c04 | refs/heads/master | 2020-03-12T17:04:55.299158 | 2018-04-24T16:12:52 | 2018-04-24T16:12:52 | 130,729,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import KemiBox, Post
# Register your models here.
admin.site.register(KemiBox )
admin.site.register(Post) | [
"abiodun.toluwanii@gmail.com"
] | abiodun.toluwanii@gmail.com |
52acd72b04938eb85d82c661482aa54387aac381 | d65128e38be0243f279e0d72ef85e7d3c5e116ca | /base/site-packages/django/bin/daily_cleanup.py | 5a2ce210f403ce4de577568cf3de95ebcfb94d42 | [
"Apache-2.0"
] | permissive | ZxwZero/fastor | 19bfc568f9a68f1447c2e049428330ade02d451d | dd9e299e250362802032d1984801bed249e36d8d | refs/heads/master | 2021-06-26T06:40:38.555211 | 2021-06-09T02:05:38 | 2021-06-09T02:05:38 | 229,753,500 | 1 | 1 | Apache-2.0 | 2019-12-23T12:59:25 | 2019-12-23T12:59:24 | null | UTF-8 | Python | false | false | 441 | py | #!/usr/bin/env python
"""
Daily cleanup job.
Can be run as a cronjob to clean out old data from the database (only expired
sessions at the moment).
"""
import warnings
from django.core import management
if __name__ == "__main__":
warnings.warn(
"The `daily_cleanup` script has been deprecated "
... | [
"edisonlz@163.com"
] | edisonlz@163.com |
ad9951dd21e5e5802f28c37bba8d655b7c3d1314 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/nallo/problemB.py | c7cee17f3977f567c41df66e67f27d3beef12abb | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,447 | py | """
se inizio con -
cerca il primo +
se trovo il +
cambia tutti i - in + fino al + trovato compreso
mosse++
se non trovo il +
sol = mosse + 1
se inizio con +
cerca il primo -
se trovo il -
cambia tutti i + in - fino al - trovato compreso
mosse++
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
0eb8edd55910aa04bea4ace48cfb3159cb268fc7 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/SequentialDigits.py | 426eff307728f7e423f3c99f70c5007a2d736e4c | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """
An integer has sequential digits if and only if each digit in the number is one more than the previous digit.
Return a sorted list of all the integers in the range [low, high] inclusive that have sequential digits.
Example 1:
Input: low = 100, high = 300
Output: [123,234]
Example 2:
Input: low = 1000, high =... | [
"here0009@163.com"
] | here0009@163.com |
51262aa9b2128373dcc9dbe5997da0e04eaeca86 | 881ca022fb16096610b4c7cec84910fbd304f52b | /libs/scapy/contrib/automotive/someip.py | 8c0e8d54125e818b9e0beb7bc914fcc54de11632 | [] | no_license | mdsakibur192/esp32_bluetooth_classic_sniffer | df54a898c9b4b3e2b5d85b1c00dd597d52844d9f | 7e8be27455f1d271fb92c074cb5118cc43854561 | refs/heads/master | 2023-07-31T14:29:22.989311 | 2021-09-08T11:18:21 | 2021-09-08T11:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,154 | py | # MIT License
# Copyright (c) 2018 Jose Amores
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, me... | [
"mgarbelix@gmail.com"
] | mgarbelix@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.