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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd362d139002a4217fdd1735daa4f34396aee423 | efceab61588936151e49bf9311fe6f949cdd81c8 | /context_utils/regression_analysis/contexts/feature_weights.py | 55efd2312a5d416e950262951e999744467a7568 | [] | no_license | GiovanniCassani/distributional_bootstrapping | c74b4dddcb91a083c8cc0c55263228bc1acff54c | 324176f659835a29cfd6859febb570e99c1bad31 | refs/heads/master | 2021-03-19T11:45:38.364181 | 2018-09-10T15:24:37 | 2018-09-10T15:24:37 | 113,855,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | __author__ = 'GCassani'
"""Compute feature weights for the relevant contexts given an input co-occurrence vector space"""
import os
from collections import defaultdict
def compute_feature_weights(training_space, output_file):
"""
:param training_space: the path to a file containing the co-occurrence coun... | [
"cassani.giovanni@gmail.com"
] | cassani.giovanni@gmail.com |
7ed3e17232f1e18ac0f0b32b4082aea884541ced | a1e6c25d701eacb0dd893802f7d3db316768dbc4 | /featureExtrator/feature_extractor.py | e461e884f6bcae25d455741367a851a7a26da379 | [] | no_license | zhengchengyy/BBDataProcessing | c04f5053266881116f1ab764041f7fd4901561ab | 5d4f98e4b4b7d7e98db2677d00b618d2bb6a74c8 | refs/heads/master | 2021-07-20T22:31:28.894304 | 2020-05-17T14:04:30 | 2020-05-17T14:04:30 | 165,455,028 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | '''
修改原有的feature_extractor文件,将按次数处理获得的数据改为按时间段处理
新增以及改变的代码均使用两行------标识
使用观察者模式实现特征提取,特征提取器(Subject)依赖于多个特征提取模块(Observer),特征提取器注册了多个特征提取模块,
当特征提取器状态改变(获取到新数据),通知所有特征模块更新状态(计算新的特征值)。
'''
from abc import ABC, abstractmethod
from queue import Queue
class ProcessModule(ABC):
"""Observer的抽象类,表示处理数据的模块。
每一个继承Proce... | [
"zhengchengyy@qq.com"
] | zhengchengyy@qq.com |
c6d92dc424e95b6378c43eb99d934375630c943d | e1fe66628d58e66b25d910c6d2f173a7dfa74301 | /1. Edge AI Fundamentals with OpenVINO/4. Inference Engine/Workspaces/3. Integrate into an Edge App/solution/app-custom.py | 48e61b9d9b66578fc97dd81f97cebbf7727c6f5e | [
"MIT"
] | permissive | mmphego/Udacity-EdgeAI | 7c5443c4f19eaaf4f6eb44739f7e6413ba26e106 | 25af22f85772adc25ff9d5a59ba8a33a1e5551cd | refs/heads/master | 2022-12-31T15:39:07.077926 | 2020-10-20T11:45:58 | 2020-10-20T11:45:58 | 258,950,438 | 8 | 1 | MIT | 2020-05-25T14:38:30 | 2020-04-26T05:48:07 | Jupyter Notebook | UTF-8 | Python | false | false | 4,277 | py | import argparse
import cv2
from inference import Network
INPUT_STREAM = "test_video.mp4"
CPU_EXTENSION = "/opt/intel/openvino/deployment_tools/inference_engine/lib/intel64/libcpu_extension_sse4.so"
def get_args():
"""
Gets the arguments from the command line.
"""
parser = argparse.ArgumentParser("Run... | [
"mpho112@gmail.com"
] | mpho112@gmail.com |
b62f7a5b91d0ff73e7acfc2c65e782f77896a901 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02989/s015774618.py | dc2669e094988c96002baa64ddc78876d7e41529 | [] | 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 | 125 | py | N = int(input())
d = list(map(int,input().split()))
d.sort()
dmed1 = N//2 - 1
dmed2 = N//2
ans = d[dmed2]-d[dmed1]
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6f195985f978c28718426a751fc71c876b85bbff | 5d38ca0abaa29063d1db7bf398760cf57536803f | /jobplus/handlers/__init__.py | e8e1b9235deb329442abc9f29722747c75902aa8 | [] | no_license | LouPlus/jobplus4-7 | a1fece372dcad7b4edd9ea56445f562134b01da3 | 3b1c9b1db76b77eb28aadd4d06b229a5215ef5f6 | refs/heads/master | 2021-05-03T16:40:17.334850 | 2018-02-27T14:04:13 | 2018-02-28T03:24:16 | 120,439,974 | 1 | 10 | null | 2018-02-28T03:24:17 | 2018-02-06T10:39:56 | HTML | UTF-8 | Python | false | false | 123 | py | from .front import front
from .company import company
from .user import user
from .admin import admin
from .job import job
| [
"34020606+LouPlus@users.noreply.github.com"
] | 34020606+LouPlus@users.noreply.github.com |
3cd47a7d7dd674e5aa584bc0ac1049be6c8bdf48 | b01646abacbef23719926477e9e1dfb42ac0f6a9 | /Rebrov/training/673K/673K_O088N12_Rebrov_lib_and_all_families/input.py | d9cd3c9eddcac08e009b6e6733f837aefa7982fc | [] | no_license | Tingchenlee/Test | 41b0fd782f4f611d2b93fda6b63e70956881db33 | 37313c3f594f94cdc64c35e17afed4ae32d3e4e6 | refs/heads/master | 2023-06-02T05:38:32.884356 | 2021-06-10T11:59:02 | 2021-06-10T11:59:02 | 349,764,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | # Microkinetic model for ammonia oxidation
# E.V. Rebrov, M.H.J.M. de Croon, J.C. Schouten
# Development of the kinetic model of platinum catalyzed ammonia oxidation in a microreactor
# Chemical Engineering Journal 90 (2002) 61–76
database(
thermoLibraries=['surfaceThermoPt111', 'primaryThermoLibrary', 'thermo_DFT... | [
"lee.ting@northeastern.edu"
] | lee.ting@northeastern.edu |
3071ce5a9c9fdebf28175ab07ecb3091a84ba165 | edfa045d12b8efb65de20261ff80a86160298e44 | /checkout/migrations/0003_orderitem_order.py | 97c09cc1a4f31557128d3510eed3d113a9d9b7d2 | [
"MIT"
] | permissive | yusif763/Unistore-pro | 1d559a89bb71f3db8b5d1e89df64ed7113f00f2a | 41ad0fa209c79a201d3f6a7aa68ec0ace707dcad | refs/heads/main | 2023-04-24T02:50:30.085011 | 2021-04-29T11:00:11 | 2021-04-29T11:00:11 | 362,782,688 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # Generated by Django 3.1.7 on 2021-04-13 09:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('checkout', '0002_auto_20210413_0746'),
]
operations = [
migrations.AddField(
model_name='orderi... | [
"you@example.com"
] | you@example.com |
631abf0d4fadcce442a27b89555a1f1cde35aa63 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/CBFETR_Category_Mapping.py | 28fa1fa72b9c7462a15142087f46f485831e5223 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,583 | py | '''----------------------------------------------------------------------------------------------------------
MODULE : CBFETR_Category_Mapping
PROJECT : Cross Border Foreign Exchange Transaction Reporting
PURPOSE : This module contains the detailed mone... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
4936d190287dd5249daf34313e71e03c891daab6 | fb5d9f9b4ae3d7059d582ebb390916c2f9528852 | /util/__init__.py | 231dd87f66aa7d5f32d08714cbb4ea33acfaa90f | [] | no_license | tianxiaguixin002/Code-Implementation-of-Super-Resolution-ZOO | 32d4168f4d8d031968b7a601cf68b50730b15b06 | f6ccf309c7653a27173de5184d17bb5933baab14 | refs/heads/master | 2022-11-13T17:09:11.484532 | 2020-07-06T01:51:25 | 2020-07-06T01:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | """This package includes a miscellaneous collection of useful helper functions."""
import os
def mkdirs(paths):
"""create empty directories if they don't exist
Parameters:
paths (str list) -- a list of directory paths
"""
if isinstance(paths, list) and not isinstance(paths, str):
for p... | [
"chenyx.cs@gmail.com"
] | chenyx.cs@gmail.com |
38e065c61bb431a8fc4dd5b8d0a8130d39cb9dfd | 4ddf4fa6a4a499d64b23fb99d70a7bb3802fd1b0 | /exercises/flask_regression.py | 4fd8a87deed5370e70ec83805bf14ac80fa11aac | [] | no_license | biterbilen/MVML | 2b318b3883c00ed1908ef75924077e3aab639094 | 76a79ded26d09452234b7ae2b4809e47aa93df70 | refs/heads/master | 2023-01-13T10:04:10.269589 | 2020-11-16T18:55:19 | 2020-11-16T18:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import pickle
from flask import Flask, request, render_template
import pandas as pd
app = Flask(__name__)
with open('exercises/model.pkl', 'rb') as f:
model = pickle.load(f)
@app.route("/")
def index():
pass
@app.route("/result", methods=["POST"])
def predict():
new = pd.DataFrame({'X': [20]})
y = f... | [
"max.humber@gmail.com"
] | max.humber@gmail.com |
686a68dd2426c857f28b7069b29021b4b28d8624 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_monsters.py | e7f2bb60af124f30bf240705f5e9a379d84687ad | [
"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 | 245 | py |
from xai.brain.wordbase.verbs._monster import _MONSTER
#calss header
class _MONSTERS(_MONSTER, ):
def __init__(self,):
_MONSTER.__init__(self)
self.name = "MONSTERS"
self.specie = 'verbs'
self.basic = "monster"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5cc5c7291b31f104c7c5edb376c186183d3c4f40 | efe8b839832350774ed563d3f18359d1df1b046a | /tests/test_documents.py | de20e541db7519fe2206b402d35d178eae7a8f7e | [] | no_license | torchbox/wagtailapi | ae3bd64beb4381e0a481e389962b7e2ca91bc269 | 0b8cf3e9beb1e66c26f4af1519a752b69f6b7471 | refs/heads/master | 2021-01-01T19:30:21.505800 | 2015-08-11T11:59:55 | 2015-08-11T11:59:55 | 29,594,101 | 8 | 6 | null | 2015-08-11T11:59:23 | 2015-01-21T14:45:16 | Python | UTF-8 | Python | false | false | 14,688 | py | import json
import unittest
import mock
from django.test import TestCase
from django.test.utils import override_settings
from django.core.urlresolvers import reverse
from django.conf import settings
from wagtail.wagtaildocs.models import Document
from wagtailapi import signal_handlers
from . import models
class T... | [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
90088be62e540370be33da0a6c2da6c4e57b429a | d3426a5d1bbecde0fe480e7af64a54bfdb8295eb | /students/migrations/0005_auto_20170802_1524.py | 24c508cf44b2fa93d7d609ad89d31875eb8a08a5 | [
"MIT"
] | permissive | pu6ki/elsyser | 5a3b83f25f236b4a4903180985f60ced98b3fb53 | 52261c93b58422b0e39cae656ae9409ea03a488d | refs/heads/master | 2021-01-12T18:06:18.375185 | 2017-12-10T18:18:34 | 2017-12-10T18:18:34 | 71,325,732 | 5 | 4 | MIT | 2017-12-10T18:18:35 | 2016-10-19T06:26:47 | Python | UTF-8 | Python | false | false | 739 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-08-02 12:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0004_auto_20170801_1243'),
]
operations = [
migrations.DeleteMo... | [
"wencakisa@gmail.com"
] | wencakisa@gmail.com |
0d243a771485ed631550fd265ff1c7dd644c4b81 | d8af7c6372aff57012c80d3b8a9dfaab81499f71 | /AIDStudy/01-PythonBase/day07/exercise05.py | ab36bcf266a5024e045bea117f549cbbf81366f4 | [] | no_license | fanxiao168/pythonStudy | 4843c56019b8f997fd7fc566904a9e0162e9a541 | f94e2238d40c41ee54ff4184c500d659c6820c03 | refs/heads/master | 2021-02-04T20:54:10.850770 | 2020-05-28T08:55:35 | 2020-05-28T08:55:35 | 243,708,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # 3行5列的二维列表
list01 = [
[0, 1, 2, 3, 4],
[1, 28, 45, 6, 7],
[20, 7, 3, 65, 2]
]
# 将第二行元素打印出来
for item in list01[1]:
print(item, end=' ')
# 将第一列打印出来
print(list01[0][0])
print(list01[1][0])
print(list01[2][0])
for i in range(len(list01)):
print(list01[i][0])
# 将全部元素打印出来
for i in range(len(list01)):
... | [
"fanxiao168@126.com"
] | fanxiao168@126.com |
ffaf6719d09a6304bc437aa6bcffe56cc27c6ecf | ed5629376d293b7dbda9f53ef1b57e38cd52d655 | /asciivalue.py | 82e9ca120867d894dfbe6162dab0195351cc8a12 | [] | no_license | sabariks/pythonpgm | eb46172b8ffd17b945f6ccd8241015c9874e37e7 | 1bb9264b6f219b69b9a782591d526fc7adb891cd | refs/heads/master | 2021-01-08T23:22:15.891688 | 2020-02-27T17:37:34 | 2020-02-27T17:37:34 | 242,174,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | s=input()
l=list(s)
sum=0
for i in range(0,len(s)):
val=ord(l[i])
sum+=val
print(sum)
| [
"noreply@github.com"
] | sabariks.noreply@github.com |
46077844615c08090f6de524a45ad3b9f9d1e776 | e415e4cdab3d1cd04a4aa587f7ddc59e71977972 | /datetime/datetime.timedelta.py | 77ed0bd2af1f40780439d18c8c5f04973b36cd10 | [] | no_license | nixawk/hello-python3 | 8c3ebba577b39f545d4a67f3da9b8bb6122d12ea | e0680eb49d260c5e3f06f9690c558f95a851f87c | refs/heads/master | 2022-03-31T23:02:30.225702 | 2019-12-02T10:15:55 | 2019-12-02T10:15:55 | 84,066,942 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
class datetime.timedelta
A duration expressing the difference between two date, time,
or datetime instances to microsecond resolution.
"""
import datetime
def datetime_timedelta():
# def __new__(cls, days=0, seconds=0, microseconds=0, milliseconds=0, mi... | [
"hap.ddup@gmail.com"
] | hap.ddup@gmail.com |
b7020ef6386d6ad70f6a34fd08ff52d6e5aac54a | bf4f5e90fff95800f3ab944efcdb9aace29be71d | /banshee-master/api/mms/balance/mall_balance.py | 2f573caaf12c82cd5229034b31716e1636ce01a9 | [] | no_license | tanlu01/testfan | c77c833d4e164a4786f20d7f28ffbb99cd6dcb2e | de8cf936dc7e80a9e2847fa47ae5c909729675b1 | refs/heads/master | 2023-04-20T17:12:57.515484 | 2021-05-10T15:53:15 | 2021-05-10T15:53:15 | 365,418,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | from api.mms.mms_ import Mms
class MallBalance(Mms):
method = 'post'
api = '/api/mall/Balance'
data = {}
error_resp = {
'code': 400000,
'message': '没有可以购买的商品'
}
expected_schema = {
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "expected_data",... | [
"tanlu01@100.me"
] | tanlu01@100.me |
eb7268205ffc0e037565f404d2dc6e35a518804e | 5cfc22491d6c83e807b21883ce71fdb958a2c53f | /identify/trend.py | 826bf058e30afc7807df0bd377da5c8348ad60e1 | [] | no_license | Jeffin-Studios/stocktool | ce29824bfa663927eac1b17dad3ed7830dbedf1f | 96f4e96feb4de9a54028e4b5ef56bd8554f122eb | refs/heads/master | 2020-03-28T03:27:27.271479 | 2018-10-18T08:03:08 | 2018-10-18T08:03:08 | 147,646,775 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py |
#rolling average for both stock and market
from pandas_datareader import data
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
class stocktrend():
# Initialization requires a ticker symbol
def __init__(self, stock_name, start_date = None, end_date = None, draw_graph = False):
self.name ... | [
"richardbao419@gmail.com"
] | richardbao419@gmail.com |
0e361c2d25f1dc4f3d81ae0f99eff2116e37073d | eec0d71067c95a772e3fdeeadab242230cd2b31f | /mysite/settings.py | e3abb79a4fe1388ad0999909201edfd4ccbc3f9b | [] | no_license | amcmy/my-first-blog | d543ef051ab9decca1a5ff073c3bb40ef552f74a | 5bb9d7284633f31797e5cc83fcd3d14b9eed8960 | refs/heads/master | 2020-05-17T15:21:36.295933 | 2019-04-27T15:14:09 | 2019-04-27T15:14:09 | 183,788,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"you@example.com"
] | you@example.com |
8214a4f2f5d28141284cdcea9a1c77e386cbbf48 | cb4736c3db7288ca3868e319ace6c19364302d2f | /module_template/repeater.py | e453e33ab9530bcdf5872230c59496fffeb4f50f | [
"MIT"
] | permissive | rstms/repeat | 0928d9833463e5048071a2564916b1a2eb233fb6 | af9f1aa01cc0d5d5fd8e6ff688e7c84267b8600f | refs/heads/master | 2023-07-27T16:40:04.187344 | 2021-09-11T03:43:31 | 2021-09-11T03:43:31 | 399,602,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | # -*- coding: utf-8 -*-
"""repeater object for repeat command line tool
This simple module contains a Repeater() class with a run() method that
does the work of the program.
Example:
To use the function open an input stream and an output stream in text
mode, then cal the run method specifying the number of t... | [
"mkrueger@rstms.net"
] | mkrueger@rstms.net |
b2740e61d2cce9cc90e86aa07c9fe0c08ffeec19 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /evaluation/evaluator/got10k/experiments/otb.py | 5b7df3f72c4a16a1caf4f72adc7cc90aefd73e4b | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,526 | py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import json
from PIL import Image
from ..datasets import OTB
from ..utils.metrics import rect_iou, center_error
from ..utils.viz import show_frame
class ExperimentOTB(objec... | [
"linliting06@live.com"
] | linliting06@live.com |
4f57c4e198a2dc78dc00b90d05162dd65d57d004 | ebd1d1bbaa0fe30590e2c8c0d19a9d7eff180320 | /arp/scripts/xtalk_preview.py | 7110e508cd826977ff0fc86692a60f78449baab7 | [] | no_license | HERA-Team/hera_sandbox | 3093009c21e13a79bf3914d64b521b8fbc4bc733 | f9d292f4a91c0599947e3c013b48114b2097d76d | refs/heads/master | 2021-11-26T16:54:38.665721 | 2021-10-05T19:41:40 | 2021-10-05T19:41:40 | 95,712,482 | 2 | 6 | null | 2017-07-10T19:46:22 | 2017-06-28T21:17:39 | Python | UTF-8 | Python | false | false | 1,100 | py | #! /usr/bin/env python
import aipy as a, capo as C, pylab as p, numpy as n
import sys
CH0,CH1 = 16,182
fqs = n.linspace(.1,.2,203)
jy2T = C.pspec.jy2T(fqs)
fqs = fqs[CH0:CH1]
aa = a.cal.get_aa('psa6240_v003', n.array([.15]))
t,dat,flg = C.arp.get_dict_of_uv_data(sys.argv[1:], 'cross', 'I')
window = a.dsp.gen_window(fq... | [
"aparsons@berkeley.edu"
] | aparsons@berkeley.edu |
b3bb756dcc5fa36b2ee79947713b1d3b50e1fdda | 03dddfda1c488f08ae4b7914e83dd96c24f1e3d7 | /meadow_mall/meadow_mall/apps/oauth/utils.py | 25c69391d72c9ec60ab021d7c100769fbc532cd7 | [] | no_license | zizle/MeadowMall | 0223ed134baf164eb71358e0c0d3c7a0fbf58782 | d5cc05e71a666724726bc324c1eb4841b828b284 | refs/heads/master | 2020-03-21T00:14:47.853180 | 2018-07-11T00:38:55 | 2018-07-11T00:38:55 | 137,884,601 | 0 | 0 | null | 2018-07-11T00:38:56 | 2018-06-19T11:50:28 | HTML | UTF-8 | Python | false | false | 3,856 | py | # _*_ coding:utf-8 _*_
# QQ登录辅助
from django.conf import settings
from urllib.parse import urlencode, parse_qs
from urllib.request import urlopen
from itsdangerous import TimedJSONWebSignatureSerializer as TJWSSerializer, BadData
import logging
import json
from .exceptions import OAuthQQAPIError
from . import constants... | [
"zizle_lin@163.com"
] | zizle_lin@163.com |
df21b265a6cacdff01901795d819235d4a0eb590 | f7e0780b4d73ebf6e50fe4053c01fd3cc4d6b227 | /auctioning_platform/shipping_infrastructure/shipping_infrastructure/repositories/address.py | 8ec2f8f1ec18b584e7ea6e8fffc9eacf0ddcf650 | [
"MIT"
] | permissive | Enforcer/clean-architecture | 78d663585f913c51a0460bcafa4af35515cdf549 | f0c1c0a8364996d309e7381b44933807529200b1 | refs/heads/master | 2023-02-20T01:40:24.653512 | 2022-08-02T20:59:03 | 2022-08-02T20:59:03 | 208,138,785 | 454 | 51 | MIT | 2023-02-16T01:31:26 | 2019-09-12T20:16:08 | Python | UTF-8 | Python | false | false | 589 | py | import uuid
import faker
from shipping import AddressRepository
from shipping.domain.entities import Address
from shipping.domain.value_objects import ConsigneeId
class FakeAddressRepository(AddressRepository):
def get(self, consignee_id: ConsigneeId) -> Address:
fake = faker.Faker()
return Addr... | [
"nnplaya@gmail.com"
] | nnplaya@gmail.com |
eb9f0a5bbe7e49980ce27a7e5656855d9bfe7f04 | 14427b4c73fef188791affb42c9fffe8e25b7dc1 | /tests/solr_tests/tests/admin.py | 082e19f81b3cb37860f748e658e952a736a542f1 | [
"BSD-3-Clause",
"MIT"
] | permissive | markng/django-haystack | 697ea05dd49980be43002e0fb6bf5c2b6357a015 | 78160bb2f530f7fadc0caf22f2f8babbac89ef32 | refs/heads/master | 2021-01-17T23:13:00.755184 | 2010-10-21T01:02:38 | 2010-10-21T01:02:38 | 1,010,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | from django.conf import settings
from django.contrib.auth.models import User
from django.test import TestCase
from haystack import backends
from core.models import MockModel
from solr_tests.tests.solr_backend import SolrMockModelSearchIndex, clear_solr_index
class SearchModelAdminTestCase(TestCase):
fixtures = ['... | [
"daniel@toastdriven.com"
] | daniel@toastdriven.com |
d6d19a882acc2888a4c56b24b29d7ea83b450ec4 | b2cfcacbd898f758a56d095f2140681934205d89 | /GeekShop_mentor/src_lesson_8/step_6(CBV_DetailView)/geekshop/geekshop/urls.py | f61dfb9bfdf3de46c576ad4a7bb2d44badcae26a | [] | no_license | AndreySperansky/Django_1 | 7d3be3ea2ede8e46d932fdae146ce4a7c4e300b4 | 0fec0a9a02b887fd8b45a5b763b7da5dc6377208 | refs/heads/master | 2022-12-15T19:56:23.611288 | 2020-09-21T17:40:40 | 2020-09-21T17:40:40 | 284,131,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from django.conf.urls import url, include
from django.contrib import admin
import mainapp.views as mainapp
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^$', mainapp.main, name='main'),
url(r'^products/', include('mainapp.urls', namespace='products')),
u... | [
"andrey.speransky@gmail.com"
] | andrey.speransky@gmail.com |
60f8ee32eec66d5a1aceb50eae7ede2d9486b5ac | 12068d6ebe90fcbd13c635f35c23ce7c73884b12 | /Lecture/Lecture_basic/TSP.py | bdc30261cdae927d3d5f5be96d23f11de1767206 | [] | no_license | jngcii/python-algorithm | 6ffb7a90eb0288cadc64bc3b2bf2d103455d2337 | e976b0033beeeb14217e7acc8d67f201a79184f2 | refs/heads/master | 2020-04-21T09:09:13.353113 | 2020-01-23T17:36:02 | 2020-01-23T17:36:02 | 169,439,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | def next_permutation(a): # 다음 순열 찾는 함수
# 맨 뒤부터 자기보다 자기 바로앞이 작은 놈을 찾는다.
i = len(a) - 1
if i > 0 and a[i] <= a[i-1]: i -= 1
# 끝까지 갔는데도 자기보다 작은놈을 못찾았다. ======> e.g) 987654321
if i <= 0: False
# 이제 i-1은 무조건 i 보다 크다.
# i부터 마지막중에 i-1보단 큰것중에 제일 작은거 찾기
# i-1 이후로는 내림차순(87654)으로 정렬되어있어서 맨뒤부... | [
"concotree@gmail.com"
] | concotree@gmail.com |
f04ac3ed7b2bb5e3752f0ef2d96c1cb9e22b29a2 | 1670af31dd78a82915b8cda16c181c0aa31a1c3a | /favs/urls.py | 4e213700c57ab1fa1133e8a7999e64f4f4711de4 | [
"CC-BY-3.0",
"MIT"
] | permissive | chyuting/dj4e-samples | ecd2eca6edc50402a55dee487c11f74ec873cb2d | bbe3dcd214789e4be96dd2460018524f8078b4e3 | refs/heads/master | 2020-09-15T18:12:47.472948 | 2019-11-22T20:28:57 | 2019-11-22T20:28:57 | 223,524,434 | 1 | 0 | MIT | 2019-11-23T03:24:03 | 2019-11-23T03:24:02 | null | UTF-8 | Python | false | false | 1,083 | py | from django.urls import path, reverse_lazy
from . import views
from django.views.generic import TemplateView
# In urls.py reverse_lazy('favs:all')
# In views.py class initialization reverse_lazy('favs:all')
# In views.py methods reverse('favs:all')
# In templates {% url 'favs:thing_update' thing.id %}
app_name='favs'... | [
"csev@umich.edu"
] | csev@umich.edu |
dbc327a8c84469e18f9c25854df9fec96a476708 | 0fb505765604b586c3a46e608fc23930f8501db5 | /venv/lib/python2.7/site-packages/django/contrib/staticfiles/apps.py | ae69667b7b99c779598188e2cff803417bb26aa0 | [
"MIT"
] | permissive | domenicosolazzo/practice-django | b05edecc302d97c97b7ce1de809ea46d59e2f0e6 | 44e74c973384c38bd71e7c8a1aacd1e10d6a6893 | refs/heads/master | 2021-08-19T15:36:22.732954 | 2015-01-22T18:42:14 | 2015-01-22T18:42:14 | 25,118,384 | 0 | 0 | MIT | 2021-06-10T19:50:51 | 2014-10-12T12:08:47 | Python | UTF-8 | Python | false | false | 206 | py | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class StaticFilesConfig(AppConfig):
name = 'django.contrib.staticfiles'
verbose_name = _("Static Files")
| [
"solazzo.domenico@gmail.com"
] | solazzo.domenico@gmail.com |
7601589c18fcecc2f0a8da320cabeceadd1e1dbe | 9ef6d625945ecdebb476614a96a83a2139a92e9b | /nlstruct/datasets/quaero.py | 8d1aedb5e67c9965c45a5d4f2bc23add2d4fe78c | [
"MIT"
] | permissive | percevalw/nlstruct | f0cdf8ed86a32a5a96204b1c787eb35b1a4a804a | 7b5fa2230a555331e2e68b25fbb2b25e4c9404a0 | refs/heads/master | 2023-08-09T00:07:13.782518 | 2023-07-03T14:37:43 | 2023-07-03T14:37:43 | 229,176,303 | 13 | 7 | MIT | 2023-07-23T00:52:19 | 2019-12-20T02:38:34 | Python | UTF-8 | Python | false | false | 6,137 | py | import os
import random
import zipfile
from sklearn.datasets._base import RemoteFileMetadata
from nlstruct.datasets.brat import load_from_brat
from nlstruct.datasets.base import NetworkLoadMode, ensure_files, NormalizationDataset
class QUAERO(NormalizationDataset):
REMOTE_FILES = [
RemoteFileMetadata(
... | [
"perceval.wajsburt@gmail.com"
] | perceval.wajsburt@gmail.com |
1ecc6c19485b08f78b1da7819afdbb6fb6669109 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/bin3/jupyter-kernelspec | e82d73045ac485f46b7e7879db1c57e894321d7b | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 344 | #!/var/mobile/Containers/Data/Application/966C455F-0658-40E2-B076-EC684AFD0415/Library/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.kernelspecapp import KernelSpecApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(KernelSpe... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr | |
e49d78dfbaf2eab206ce9b59421933eb775a7f3e | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /424.py | 25219c47f183e713f54738fc014afb70c66da0ff | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | class Solution(object):
def characterReplacement(self, s, k):
"""
:type s: str
:type k: int
:rtype: int
"""
dict=[0]*26
tail=0
res=0
for i in range(len(s)):
# print(i,tail,dict)
dict[ord(s[i])-ord('A')]+=1
ma... | [
"1533441387@qq.com"
] | 1533441387@qq.com |
170f17debf8e0aa5216ed9e03bf1456f06c0cc04 | a7205bcd48196c1391d8c56414a1e20c39b52aa7 | /train_online.py | 2f18b62b4240057a1e6866d5f6aabb0846fd5164 | [] | no_license | CS-433/cs-433-project-2-fesenjoon | f9f58ef0caa54b08c6d59ffca0cbf2a08642ecb5 | cb0f7519901f16ae0cb1bb9b1ae8b89761a0b519 | refs/heads/master | 2021-04-18T19:56:06.737876 | 2020-12-17T13:42:15 | 2020-12-17T13:42:15 | 314,034,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,511 | py | import argparse
import json
from datetime import datetime
import os
import numpy as np
import torch
import models
import datasets
from utils import train_one_epoch, eval_on_dataloader
try:
from tensorboardX import SummaryWriter
except:
from torch.utils.tensorboard import SummaryWriter
def build_parser():
... | [
"akmohtashami97@gmail.com"
] | akmohtashami97@gmail.com |
0b01562f680ea36d596485130d22202338aa0262 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /9b4h6mK9CBMLwyGiY_6.py | 1abf1ae0a48f31137fb13996b1512d64f8d6b0d6 | [] | 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 | 1,117 | py | """
In this challenge, you have to find the distance between two points placed on
a Cartesian plane. Knowing the coordinates of both the points, you have to
apply the **Pythagorean theorem** to find the distance between them.
:
if 'MS_TRANSLATOR_KEY' not in current_app.config or not current_app.config['MS_TRANSLATOR_KEY']:
return _('Error: the translation service is not configured.')
auth = ... | [
"kehanghan@gmail.com"
] | kehanghan@gmail.com |
3130f019200ef90cb43098229e4eae8adf5a1006 | d08e6e7a2abcc7568fd3b9a6022c79091ebd0efa | /Logic/verify_no_duplicate_seqs_test.py | 7924d76700dab6cb85ace88791fd019b1f32ef3e | [] | no_license | hz-xmz/Kaggle-LANL | dd20b6951743fc068a866c799de93d9a89a2429d | 0236d3bcaeb2f3f4c960902d6c31ef0c49e749c4 | refs/heads/master | 2020-09-11T01:25:06.633524 | 2019-06-07T16:50:41 | 2019-06-07T16:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | import numpy as np
import pandas as pd
data_folder = '/media/tom/cbd_drive/Kaggle/LANL/Data/'
if not 'test_combined' in locals():
test_combined = pd.read_csv(
data_folder + 'test_combined.csv').values.reshape(-1, 150000)
extreme_length = 10000
first_id = 0
def get_max_shared_seq_len(first_id, sec_id):
val... | [
"tvdwiele@gmail.com"
] | tvdwiele@gmail.com |
3a5d3b8bcd880c5bb11c80e625c2118f69744913 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShObligationCall/YW_GGQQ_YWFSJHA_GOU_084.py | e0ca6b636bc265d2295b0d6957247055bbcce54d | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/option/service")
from OptMainService import *
from OptQueryStkPriceQty import *
sys.path.append("/home/yhl2/workspace/xt... | [
"418033945@qq.com"
] | 418033945@qq.com |
96cfc8f20622043eeff69349f2ee5eda49f0f6a3 | 7769cb512623c8d3ba96c68556b2cea5547df5fd | /mmdet/ops/carafe/grad_check.py | 06820be2459c9766113796cbe34e76db7ae9c108 | [
"MIT"
] | permissive | JialeCao001/D2Det | 0e49f4c76e539d574e46b02f278242ca912c31ea | a76781ab624a1304f9c15679852a73b4b6770950 | refs/heads/master | 2022-12-05T01:00:08.498629 | 2020-09-04T11:33:26 | 2020-09-04T11:33:26 | 270,723,372 | 312 | 88 | MIT | 2020-07-08T23:53:23 | 2020-06-08T15:37:35 | Python | UTF-8 | Python | false | false | 2,118 | py | import os.path as osp
import sys
import mmcv
import torch
from torch.autograd import gradcheck
sys.path.append(osp.abspath(osp.join(__file__, '../../')))
from mmdet.ops.carafe import CARAFENAIVE # noqa: E402, isort:skip
from mmdet.ops.carafe import carafe_naive # noqa: E402, isort:skip
from mmdet.ops.carafe import ... | [
"connor@tju.edu.cn"
] | connor@tju.edu.cn |
6f925f97b7f04bf835e0d8185ead4532b0c99e7b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_orbs.py | 66df141052b56b070130b15e4bf528655d9c8b3a | [
"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 | 217 | py |
from xai.brain.wordbase.nouns._orb import _ORB
#calss header
class _ORBS(_ORB, ):
def __init__(self,):
_ORB.__init__(self)
self.name = "ORBS"
self.specie = 'nouns'
self.basic = "orb"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
61886c57f514349c383865d61b354268510431e7 | 350db570521d3fc43f07df645addb9d6e648c17e | /1367_Linked_List_in_Binary_Tree/solution_test.py | 3b9df505ae99770b2edb20625a60761479c57dfc | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py |
'''
1367. Linked List in Binary Tree
Level: Medium
https://leetcode.com/problems/linked-list-in-binary-tree
'''
import unittest
class TestSum(unittest.TestCase):
def test_sum(self):
self.assertEqual(sum([1, 2, 3]), 6, "Should be 6")
def test_sum_tuple(self):
self.assertEqual(sum((1, 2, 2))... | [
"benjaminhuanghuang@gmail.com"
] | benjaminhuanghuang@gmail.com |
29789f0b401ecebc3aa6c2b52e67296ed970cdb5 | d785e993ed65049c82607a1482b45bddb2a03dda | /nano2017/cfg2018/GluGluToWWToMNEN_cfg.py | 8ec3225a1e614e4a444d24817082712992c4f196 | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'GluGluToWWToMNEN_2018'
config.General.transferLogs= False
config.section_("JobType")
config.JobType.pluginName = 'Analysis... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
d8ffdcf84d2027052d36f9dd6c7668b3dec09237 | 17fb5e4cdcf8e557bd0ab8606dfd88074dc4d525 | /ticket_26758/tests.py | 0c5f0bcdd0c36962169c74cd5c324dbae1b70edd | [] | no_license | charettes/django-ticketing | 0b17c85afa049d1b73db244e1199798feb9a4b73 | 78ed6a345e760ea46434690e9385ae4d26fc2810 | refs/heads/master | 2021-01-17T06:38:35.337305 | 2016-06-15T02:33:38 | 2016-06-15T02:33:38 | 45,122,368 | 0 | 1 | null | 2016-02-09T20:21:48 | 2015-10-28T15:30:59 | Python | UTF-8 | Python | false | false | 291 | py | from django.test import TestCase
from django.db.models import Count
from .models import Company
class FooTests(TestCase):
def test_foo(self):
qs = Company.objects.annotate(ticketcount=Count('srservice')).exclude(ticketcount=0).order_by('-ticketcount')
print(list(qs))
| [
"charette.s@gmail.com"
] | charette.s@gmail.com |
768bbacc62ddda437780f7a4469c365ecc15cccc | a31c21bcc4486fd44dd2c5b7f364e8f0320f7dd3 | /mlsh/lab/lab/envs/mujoco/ant_obstaclesgen.py | 9d1881775735ec9b7f26b3bb7e0f778226fe12c2 | [
"MIT"
] | permissive | SynthAI/SynthAI | 0cb409a4f5eb309dfc6a22d21ac78447af075a33 | 4e28fdf2ffd0eaefc0d23049106609421c9290b0 | refs/heads/master | 2020-03-19T12:49:07.246339 | 2018-06-07T23:27:51 | 2018-06-07T23:27:51 | 136,542,297 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | import numpy as np
from lab import utils
from lab.envs.mujoco import mujoco_env
class AntObstaclesGenEnv(mujoco_env.MujocoEnv, utils.EzPickle):
def __init__(self):
self.count = 0
self.realgoal = 0
mujoco_env.MujocoEnv.__init__(self, 'ant_obstacles_gen.xml', 5)
utils.EzPickle.__init_... | [
"foxxymoxxy@secmail.pro"
] | foxxymoxxy@secmail.pro |
97b5d2a5a50dabf5fe78820858521fad8fd97b92 | 09f0505f3ac1dccaf301c1e363423f38768cc3cc | /r_DailyProgrammer/Intermediate/C206/__init__.py | 962d83bb28a1ec6a068d32fc41ec4bee75110cbb | [] | no_license | Awesome-Austin/PythonPractice | 02212292b92814016d062f0fec1c990ebde21fe7 | 9a717f91d41122be6393f9fcd1a648c5e62314b3 | refs/heads/master | 2023-06-21T11:43:59.366064 | 2021-07-29T23:33:00 | 2021-07-29T23:33:00 | 270,854,302 | 0 | 0 | null | 2020-08-11T20:47:10 | 2020-06-08T23:24:09 | Python | UTF-8 | Python | false | false | 71 | py | #! python3
from r_DailyProgrammer.Intermediate.C206.main import main
| [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
fa896bba72962dd3bdd298ba034e34b8bfd8937f | 7822e658e88f3f948732e6e3e588ca4b2eb5662a | /diapos/programas/saltos-de-linea.py | 5d9a5581bc6352fd09c497dfa19303a498591b69 | [] | no_license | carlos2020Lp/progra-utfsm | 632b910e96c17b9f9bb3d28329e70de8aff64570 | a0231d62837c54d4eb8bbf00bb1b84484efc1af2 | refs/heads/master | 2021-05-28T06:00:35.711630 | 2015-02-05T02:19:18 | 2015-02-05T02:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | >>> a = 'casa\narbol\npatio'
>>> a
'casa\narbol\npatio'
>>> print a
casa
arbol
patio
>>> len('a\nb\nc')
5
| [
"rbonvall@gmail.com"
] | rbonvall@gmail.com |
55a0831d34cbfef8d1eeff1fafad9e2e71e5f77b | ea378480ba678eb123ef826e3ca0c3eb8f4e538f | /paused/02.DXF write/dxfwrite-1.1.0/tests/test_abstract_entity.py | d9db54a5c2ba688be3762d19b23babb1cd18b1fc | [] | no_license | msarch/py | 67235643666b1ed762d418263f7eed3966d3f522 | dcd25e633a87cdb3710e90224e5387d3516c1cd3 | refs/heads/master | 2021-01-01T05:21:58.175043 | 2017-05-25T08:15:26 | 2017-05-25T08:15:26 | 87,453,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | #!/usr/bin/env python
#coding:utf-8
# Created: 15.11.2010
# Copyright (C) 2010, Manfred Moitzi
# License: GPLv3
__author__ = "mozman <mozman@gmx.at>"
try:
# Python 2.6 and earlier need the unittest2 package
# try: pip install unittest2
# or download source from: http://pypi.python.org/pypi/unit... | [
"msarch@free.fr"
] | msarch@free.fr |
238d011d53f467d54bd37298772793a292644147 | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/buy_top_fc_20210203213703.py | da47d36dfa2e2de55eb512db4b137d0e379b7d01 | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | # Buy top tickers from Financhill
import requests
from tda import auth, client
from tda.orders.equities import equity_buy_market, equity_buy_limit
from tda.orders.common import Duration, Session
import tda
import os, sys
import time
currentdir = os.path.dirname(os.path.realpath(__file__))
parentdir = os.path.dirname(c... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
c315767ae48f4b9f82aeda1f355e3cd3dc81471b | 7ddded3d38469cd3238a702d7d62cf816cb0d5d5 | /cmsplugin_cascade/segmentation/mixins.py | 92dd20dd334d71023b13787c88506ee2f5282004 | [
"MIT"
] | permissive | sayonetech/djangocms-cascade | 8e249ab83bba97dad27aee468a2a6fce0eb58f3b | 699d645cefae926d32879fbc6837693082f84c78 | refs/heads/master | 2022-05-25T02:31:58.059789 | 2020-04-25T07:33:29 | 2020-04-25T07:33:29 | 259,930,919 | 0 | 0 | MIT | 2020-04-29T13:20:54 | 2020-04-29T13:20:53 | null | UTF-8 | Python | false | false | 7,488 | py | from django import VERSION as DJANGO_VERSION
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.http import HttpResponse, HttpResponseBadRequest
from django.template.response import TemplateResponse
from django.urls import reverse
from django.uti... | [
"jacob.rief@gmail.com"
] | jacob.rief@gmail.com |
b86fb3e8323c7fac53da50672674d2d083ec8e83 | c137d7fb6eaa1c1900a63b8dae6b027176a98b6f | /MxShop/apps/user_operation/migrations/0002_auto_20191215_1324.py | 67ebf35770168b3b304df8aed21406cfe8fb758c | [] | no_license | LasterSmithKim/vuedjango | 22220414ad2f928f0a0df1a0e68c9083e90c1cc7 | 4a5b7fee4dd3f2d31255d7dc9188ea977a75db29 | refs/heads/master | 2022-12-10T19:52:25.014956 | 2019-12-23T16:23:01 | 2019-12-23T16:23:01 | 225,315,491 | 0 | 0 | null | 2022-11-22T04:52:05 | 2019-12-02T07:47:12 | JavaScript | UTF-8 | Python | false | false | 495 | py | # Generated by Django 2.2.7 on 2019-12-15 13:24
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('goods', '0003_auto_20191201_0823'),
('user_operation', '0... | [
"kingone@yeah.net"
] | kingone@yeah.net |
dac682aff595a8ac60201e3480935c04e5b62c3b | 83cf642504313b6ef6527dda52158a6698c24efe | /scripts/addons/fd_scripting_tools/autocompletion/suggestions/dynamic/_bpy_fake/__private__/obstacle.py | 7598560cf2b91178e54ad5d8d3e0f5402501e10f | [] | no_license | PyrokinesisStudio/Fluid-Designer-Scripts | a4c40b871e8d27b0d76a8025c804d5a41d09128f | 23f6fca7123df545f0c91bf4617f4de7d9c12e6b | refs/heads/master | 2021-06-07T15:11:27.144473 | 2016-11-08T03:02:37 | 2016-11-08T03:02:37 | 113,630,627 | 1 | 0 | null | 2017-12-09T00:55:58 | 2017-12-09T00:55:58 | null | UTF-8 | Python | false | false | 500 | py | from . struct import Struct
from . bpy_struct import bpy_struct
import mathutils
class Obstacle(bpy_struct):
@property
def rna_type(self):
'''(Struct) RNA type definition'''
return Struct()
@property
def name(self):
'''(String) Unique name used in the code and scripting'''
... | [
"dev.andrewpeel@gmail.com"
] | dev.andrewpeel@gmail.com |
358c3dc0cf6ca85640bf9dce63f0bc8db277b92d | c5291e50a3c72c885922378573a0ad423fcedf05 | /EasyPay/billpay/controllers/transaction.py | 5d51ce3230840967ef71d5b124a63aff15748a5b | [] | no_license | raghurammanyam/django-projects | bcc3ed6285882af437a2995514cef33760fb063e | dd20ae354f7f111a0176a1cc047c099bd23e9f05 | refs/heads/master | 2022-12-12T19:22:31.698114 | 2018-12-09T09:41:45 | 2018-12-09T09:41:45 | 137,443,359 | 0 | 0 | null | 2022-11-22T03:01:07 | 2018-06-15T05:08:15 | Python | UTF-8 | Python | false | false | 1,353 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from django.core import serializers
from django.http import JsonResponse
from billpay.models import transactions
from billpay.serializers.transactionserializer import transactionSerializer,gettransactionSerializer
from django.http imp... | [
"manyamraghuram@gmail.com"
] | manyamraghuram@gmail.com |
3e2c4eec3c3fd761e5f94ad65d35d6609cc1d30a | c41edf53089b1ee466ea578aa74f0c1e9b95a8b3 | /aqi_v3.0.py | 04b339479b8e885f186fe65eb4e7373bb5804cc2 | [] | no_license | gjw199513/aqidemo | fb4e81e6d1f6b40c14bbcc5401ce57eac11beb2b | 64dc64def274916aa513890cb24e18777518c375 | refs/heads/master | 2021-05-11T12:33:20.256133 | 2018-01-16T09:17:49 | 2018-01-16T09:17:49 | 117,661,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | # -*- coding:utf-8 -*-
__author__ = 'gjw'
__time__ = '2018/1/16 0016 上午 9:33'
# AQI计算
# 读取json文件
import json
import csv
def process_json_file(filepath):
"""
解码json文件
:param filepath:
:return:
"""
f = open(filepath, mode='r', encoding='utf-8')
city_list = json.load(f)
return city_list... | [
"gjw199513@163.com"
] | gjw199513@163.com |
55bd0b4a233bda1faa5458145b221dc1f947400a | e7c3d2b1fd7702b950e31beed752dd5db2d127bd | /code/pythagorean_tree/sol_395.py | a058d0ed47da7c5635ddf92ee8c14e841b46c257 | [
"Apache-2.0"
] | permissive | Ved005/project-euler-solutions | bbadfc681f5ba4b5de7809c60eb313897d27acfd | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | refs/heads/master | 2021-09-25T08:58:32.797677 | 2018-10-20T05:40:58 | 2018-10-20T05:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py |
# -*- coding: utf-8 -*-
'''
File name: code\pythagorean_tree\sol_395.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #395 :: Pythagorean tree
#
# For more information see:
# https://projecteuler.net/problem=395
# Problem Statement
'''
T... | [
"vaidic@vaidicjoshi.in"
] | vaidic@vaidicjoshi.in |
d1655810249067814fa279b9d239f50bee8f2737 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /r8lib/r8_besj0.py | fe91ea0ac6c7d9fc8c82a57a9db0e31023d84ff0 | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,405 | py | #! /usr/bin/env python
#
def r8_b0mp ( x ):
#*****************************************************************************80
#
## R8_B0MP evaluates the modulus and phase for the Bessel J0 and Y0 functions.
#
# Licensing:
#
# This code is distributed under the GNU LGPL license.
#
# Modified:
#
# 26 April 2016
#... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
4921921057dceaa1a35447e580f62d0b41e5898e | e6590826c10648c472743c20b898655ec0ef3ce5 | /7.14.py | 1417073e3f79cdfa391f4ccd257ba21c5e5cc211 | [] | no_license | suddencode/pythontutor_2018 | a770fbf476af049dc8f04c8b0f81cce7922a63c4 | 767cdd0d980be290a613ebda455a49daad1a7902 | refs/heads/master | 2020-03-24T00:15:07.744889 | 2019-02-11T20:17:42 | 2019-02-11T20:17:42 | 142,281,968 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | a = [int(s) for s in input().split()]
c = ''
for f in range(len(a)):
if a.count(a[f]) == 1:
c += str(a[f]) + ' '
print(c)
| [
"noreply@github.com"
] | suddencode.noreply@github.com |
5c740df3c278cbd5a651616a8c6362d2a129e5df | 0a46b027e8e610b8784cb35dbad8dd07914573a8 | /scripts/venv/lib/python2.7/site-packages/cogent/struct/selection.py | 03f31e74ff518727fac35b01df2868657cf41af5 | [
"MIT"
] | permissive | sauloal/cnidaria | bb492fb90a0948751789938d9ec64677052073c3 | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | refs/heads/master | 2021-01-17T13:43:17.307182 | 2016-10-05T14:14:46 | 2016-10-05T14:14:46 | 33,726,643 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | """Contains functions to select and group structural entities."""
from cogent.core.entity import StructureHolder, ModelHolder, ChainHolder, \
ResidueHolder, AtomHolder, HIERARCHY
__author__ = "Marcin Cieslik"
__copyright__ = "Copyright 2007-2012, The Cogent Project"
__credits__ = ["Mar... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
653912fc3bb836925fa3ad1cc2c80b096d3ce413 | c36d9d70cbb257b2ce9a214bcf38f8091e8fe9b7 | /1480_running_sum_of_1d_array.py | 2963386c35e2ba41f6b22c1535d379e20a42c43a | [] | no_license | zdadadaz/coding_practice | 3452e4fc8f4a79cb98d0d4ea06ce0bcae85f96a0 | 5ed070f22f4bc29777ee5cbb01bb9583726d8799 | refs/heads/master | 2021-06-23T17:52:40.149982 | 2021-05-03T22:31:23 | 2021-05-03T22:31:23 | 226,006,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | class Solution:
def runningSum(self, nums: List[int]) -> List[int]:
n = len(nums)
if n == 1:
return nums
for i in range(1,n):
nums[i] += nums[i-1]
return nums | [
"zdadadaz5566@gmail.com"
] | zdadadaz5566@gmail.com |
1cbbbcd8c445f2dc867f77a6fe853653e4a2819d | 0b69a011c9ffee099841c140be95ed93c704fb07 | /problemsets/Codeforces/Python/A586.py | d7228d5b1012ec2539b03decd80c92a6c9012979 | [
"Apache-2.0"
] | permissive | juarezpaulino/coderemite | 4bd03f4f2780eb6013f07c396ba16aa7dbbceea8 | a4649d3f3a89d234457032d14a6646b3af339ac1 | refs/heads/main | 2023-01-31T11:35:19.779668 | 2020-12-18T01:33:46 | 2020-12-18T01:33:46 | 320,931,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | """
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
import re
input()
print(len(''.join(re.split('00+',input().replace(' ','').strip('0'))))) | [
"juarez.paulino@gmail.com"
] | juarez.paulino@gmail.com |
91cfed98353755db93342aea8a5adbe298724ef7 | 602ad0ee13e66f8d6de9a5a30cba599e7f98eb9b | /examples/text-classification/jcx/run_glue.py | 782b8f481a3be7a72e7832e8a8e2c6fb22b18f3b | [
"Apache-2.0"
] | permissive | pohanchi/MixtureOfExpert | 0df35d23f4e8329a32390765f52841b92f5db5d8 | b6c0663fdedea717c7956c43a0ace6d78a085542 | refs/heads/master | 2023-08-18T10:03:15.695659 | 2020-05-29T14:35:13 | 2020-05-29T14:35:13 | 266,769,844 | 0 | 1 | Apache-2.0 | 2023-09-06T17:33:07 | 2020-05-25T12:10:52 | Python | UTF-8 | Python | false | false | 8,637 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"aapp1420@gmail.com"
] | aapp1420@gmail.com |
9bf48177a873f6126e4cfa4661fed22742055db9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/795.py | 219e317d76df5272a163058483e9e3d06bc08a8e | [] | 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,355 | py | #!/usr/bin/python2
def won(player):
return rows(player) or cols(player) or diag1(player) or diag2(player)
def rows(player):
for i in range(0,4):
if row(i,player):
return True
return False
def cols(player):
for j in range(0,4):
if col(j,player):
return True
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
85f5a86b401a45080844f34bc6d9b786c830a113 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/BsJPsiKst/python/BsJPsiKst/syst.py | 64b1b8e87dad10cd219df5f4cd53e134b168dbff | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from math import *
eps = 1.011
f = 0.951
k = 1.063
def err(s1,s2,v):
a1 = abs(s1-v)
a2 = abs(s2-v)
return max(a1,a2)
| [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
bb64dbc2667d5b007272f60222fdce55f6a7ba45 | 21f98d8bb31264c94e7a98fb8eb806d7f5bd396e | /Binary Search/081. Search in Rotated Sorted Array II.py | 996738cbc12be3cb5963f0b2d735bfec29253141 | [] | no_license | mcfair/Algo | e1500d862a685e598ab85e8ed5b68170632fdfd0 | 051e2a9f6c918907cc8b665353c46042e7674e66 | refs/heads/master | 2021-10-31T01:25:46.917428 | 2021-10-08T04:52:44 | 2021-10-08T04:52:44 | 141,460,584 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | """
When pivot has duplicates, nums[0]==nums[-1], the solution for LC33 doesn't apply here anymore
"""
class Solution(object):
def search(self, nums, target):
if not nums: return False
if target == nums[0]: return True
pivot = nums[0]
l, r = 0, len(nums)
#this while ... | [
"noreply@github.com"
] | mcfair.noreply@github.com |
c381edbdc210fa7e13c9646b2572c064b2fb4914 | 9b68d23d4409af5921a51e2d91344090996787e5 | /main_backup20190512.py | ce5655b0b8aebe49a859eeb899f1dea4d9abaf20 | [] | no_license | sasakishun/segm | 48381b77b9a876c44edfbcdbb4a2ef19096b48f4 | d48158243853d737b7056815108aef4e0ac5b6ca | refs/heads/master | 2020-05-05T10:23:12.673182 | 2019-05-14T07:46:07 | 2019-05-14T07:46:07 | 179,943,924 | 0 | 0 | null | 2019-04-07T09:31:08 | 2019-04-07T09:31:08 | null | UTF-8 | Python | false | false | 7,122 | py | from model import Model
from load_data import Datagen, plot_data
import tensorflow as tf
from util import plot_segm_map, calc_iou
import numpy as np
import networkx as nx
import adjacency
import matplotlib.pyplot as plt
import scipy
import math
np.set_printoptions(threshold=np.inf)
G = nx.Graph()
nodes = np.array(lis... | [
"Pakka-xeno@keio.jp"
] | Pakka-xeno@keio.jp |
7ef60b70a910574209907c3a9e4d6c0dc73d5b45 | 67b0d2d2e1e3b2b9fba4cfc14adc31f503bb0b91 | /AirConditioningV2/filters.py | 54b56a16c2e40a45057929cf6936b15a8652dbdb | [] | no_license | Hk4Fun/qtstudy | 02a5059555462f5e7fe626632e351f4af69206f6 | 7b38853e29c8e055f9db2828c34815000158bf28 | refs/heads/master | 2020-03-14T11:29:32.501540 | 2018-06-16T07:48:35 | 2018-06-16T07:48:35 | 131,591,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | __author__ = 'Hk4Fun'
__date__ = '2018/5/15 17:24'
import time
import datetime
from PyQt5.QtCore import QDate
from AirConditioningV2.settings import *
def mapWindSpeed_c2w(wind_speed):
return {LOW_WIND: '低风', MID_WIND: '中风', HIGH_WIND: '高风'}[wind_speed]
def mapWindSpeed_w2c(wind_speed):
return {'低风': LOW... | [
"941222165chenhongwen@gmail.com"
] | 941222165chenhongwen@gmail.com |
029838e1292b4def0204d31ffebfc8890bbee7bc | 8906e04870524f190a11f3eb3caf8fe377ab3a24 | /Chapter14/Chapter_14/multiprocessing_env.py | 9c110a17857d5a7f8028ddace2f37a2e3e7c1954 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Reinforcement-Learning-for-Games | 8719c086c8410a2da2b4fb9852b029a4c8f67f60 | 609d63ee5389b80b760a17f7f43abe632d99a9bb | refs/heads/master | 2023-02-08T19:35:30.005167 | 2023-01-30T09:09:07 | 2023-01-30T09:09:07 | 231,567,217 | 54 | 32 | MIT | 2022-04-21T06:47:24 | 2020-01-03T10:43:21 | Python | UTF-8 | Python | false | false | 4,886 | py | #This code is from openai baseline
#https://github.com/openai/baselines/tree/master/baselines/common/vec_env
import numpy as np
from multiprocessing import Process, Pipe
def worker(remote, parent_remote, env_fn_wrapper):
parent_remote.close()
env = env_fn_wrapper.x()
while True:
cmd, data = remote... | [
"josephs@packt.com"
] | josephs@packt.com |
ab4b676c0492c9481f64943f47707bf9d6e58515 | 7453911cee47edd9414ecfc66d189dc578f7e421 | /src/greentest/3.10/test_socket.py | 211fd8c02da0a4141e85fa1d26444939d2e52c1e | [
"Python-2.0",
"MIT"
] | permissive | gevent/gevent | f20eca1852098e47f32eb062db646acfead36e71 | 6b22af0fa8eb2efa89fce36c35808948c67352b0 | refs/heads/master | 2023-08-31T19:27:29.410236 | 2023-08-31T10:26:35 | 2023-08-31T10:26:35 | 5,801,666 | 4,981 | 866 | NOASSERTION | 2023-09-13T14:16:59 | 2012-09-13T22:03:03 | Python | UTF-8 | Python | false | false | 252,000 | py | import unittest
from test import support
from test.support import os_helper
from test.support import socket_helper
from test.support import threading_helper
import errno
import io
import itertools
import socket
import select
import tempfile
import time
import traceback
import queue
import sys
import os
import platform... | [
"jamadden@gmail.com"
] | jamadden@gmail.com |
74b490218935aa0cdad3e8d7ddf4d99da22c41ec | 2542edca28a456aa5c217be10419e56fc581fa4e | /dataread.py | ad68b69900a80d898c714dc5dd7e53ff56578f0a | [] | no_license | neeshuagr/profile_match_score | 16bfef57c38e6993148175bf40c29acae6e7e9a1 | 77f4f8035746f075b8232e466907f18aa3eef641 | refs/heads/master | 2020-04-29T08:22:35.568600 | 2019-03-16T15:28:11 | 2019-03-16T15:28:11 | 175,984,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | #!/usr/bin/python3.4
import datareadfiletypes
import config
import filemanager
import utility
import dcrnlp
import custom
import datetime
import dictionaries
import pyodbc
import dbmanager
def route_dataread(filepaths):
data_read_count = int(utility.read_from_file(
config.ConfigManager().ExecutioncountFi... | [
"noreply@github.com"
] | neeshuagr.noreply@github.com |
24f8c5f6b848ba541a0f03a6241859851b481ca3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_386/ch92_2019_10_02_18_01_55_591754.py | c842af9ea317fe2aab5bd222878e1be5c6911078 | [] | 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 | 276 | py | dict = {}
dict['felipe']="lacombe"
dict['ohara']="shiba"
def simplifica_dict(dict):
dictLista = []
for key, value in dict.items():
dictLista = [key,value]
dictLista.append(dictLista)
print (dictLista)
for i in dictLista:
print (i) | [
"you@example.com"
] | you@example.com |
f1c03590686e9456fadcef9380c4e2b0a2217a08 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03555/s893735211.py | 5ea9b484f2e65e0cb9fc168972602094b06ef1ed | [] | 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 | 125 | py | c1 = input()
c2 = input()
rc1 = c1[::-1]
rc2 = c2[::-1]
if c2 == rc1 and c1 == rc2:
print('YES')
else:
print('NO') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f408e84b593fd962f105e3137ee4041a8f4baee6 | ea4e262f3dc18a089895fef08bedefc60b66e373 | /supervised_learning/0x01-classification/4-neuron.py | 5ceefc3c0dea7f50a83093a29231b625e4e999eb | [] | no_license | d1sd41n/holbertonschool-machine_learning | 777899d4914e315883ba0c887d891c0c8ab01c8a | 5f86dee95f4d1c32014d0d74a368f342ff3ce6f7 | refs/heads/main | 2023-07-17T09:22:36.257702 | 2021-08-27T03:44:24 | 2021-08-27T03:44:24 | 317,399,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | #!/usr/bin/env python3
"""[summary]
Raises:
TypeError: [description]
ValueError: [description]
"""
import numpy as np
class Neuron:
"""[summary]
"""
def __init__(self, nx):
"""[summary]
Args:
nx ([type]): [description]
Raises:
TypeErr... | [
"1498@holbertonschool.com"
] | 1498@holbertonschool.com |
11afe53b2ef3fabde5fbadc485b0b55c8afb203a | b5ad428abd2dd1f541a2d442e2246e98653ecfd4 | /tensorflow/examples/speech_commands/freeze.py | c61e564463dfbbf113d2ca0ad4501a46b4b4664f | [
"Apache-2.0"
] | permissive | Yasserrahim/tensorflow | 3e6ff4e59b4312c6fbb14d39f887a828dd3be0a0 | 6f2672744a91d78a5a4a289b65805ffd0c14ffe8 | refs/heads/master | 2020-06-27T19:52:53.555660 | 2019-08-01T09:58:01 | 2019-08-01T10:04:13 | 200,027,678 | 1 | 0 | Apache-2.0 | 2019-08-01T10:12:46 | 2019-08-01T10:12:45 | null | UTF-8 | Python | false | false | 9,273 | py | # Copyright 2017 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
cb884614e8d42df912c3aefa67005b33d068d5f6 | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2003/py01/day02/login2.py | 4eefdabd2111bbcb78f2b762df349d7530f21edb | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import getpass
username = input('username: ')
password = getpass.getpass('password: ')
if username == 'bob' and password == '123456':
print('\033[32;1m登陆成功\033[0m')
else:
print('\033[31;1m登陆失败\033[0m')
| [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
11852eaac17d838c7e11ed135d73821c3fb707bd | 8985adb377e92b4764d1b138b5c23c92fab44244 | /tests/test_open_file.py | 380fbd698fba2697e062433f5e6d758c6238ff2a | [
"MIT"
] | permissive | vuillaut/pyeventio | b8f2b4ecabb9b2c94d1e3f7d651b8c5ef83e4a5f | f7fd0f3546099e34fdab1ccb3f43f5bc515f2143 | refs/heads/master | 2020-04-11T04:44:59.932722 | 2019-01-18T07:51:59 | 2019-01-18T07:51:59 | 161,524,392 | 0 | 0 | null | 2018-12-12T17:45:57 | 2018-12-12T17:45:56 | null | UTF-8 | Python | false | false | 885 | py | import eventio
from os import path
import pkg_resources
def test_is_install_folder_a_directory():
dir_ = path.dirname(eventio.__file__)
assert path.isdir(dir_)
def test_can_open_file():
testfile = 'tests/resources/one_shower.dat'
eventio.EventIOFile(testfile)
def test_file_is_iterable():
testf... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
05329d547998d9406a4a55e93a03a512da6d1f66 | 494e3fbbdff5cf6edb087f3103ad5f15acbc174f | /company/migrations/0005_employee_checkedin.py | 6dd66f7f62dbe154d700daa4addec76dd04d087a | [] | no_license | TalentoUnicamp/my | 1209048acdedbb916b8ae8ec80761d09f6ad7754 | 3d87a33cd282d97dbbbd5f62658f231456f12765 | refs/heads/master | 2020-03-23T21:12:58.316033 | 2018-08-14T06:11:36 | 2018-08-14T06:11:36 | 142,090,262 | 11 | 0 | null | 2018-08-17T05:13:26 | 2018-07-24T01:53:23 | JavaScript | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.0.3 on 2018-08-12 02:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('company', '0004_company_access_level'),
]
operations = [
migrations.AddField(
model_name='employee',
name='checkedin... | [
"gustavomaronato@gmail.com"
] | gustavomaronato@gmail.com |
3fbbfde9112c75c2fabddbc9853ce5a774fe49d7 | c89768bbaa7849e03bc19454c84a63b12e4a97eb | /tools/upgrade/commands/targets_to_configuration.py | cf51670c642a7bf7fcb1d60da45769cd77571942 | [
"MIT"
] | permissive | shannonzhu/pyre-check | c86be8c272a78d637bbcf86cc9fb505c443d1691 | bd49c24cacb36797aed6f0d9e27742a12ff7e0a3 | refs/heads/master | 2022-11-06T06:54:57.418180 | 2020-06-15T23:14:21 | 2020-06-15T23:16:20 | 272,584,459 | 0 | 0 | null | 2020-06-16T01:49:08 | 2020-06-16T01:49:07 | null | UTF-8 | Python | false | false | 12,970 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import json
import logging
import subprocess
from pathlib import Path
from typing import List, Optional
import libcst
from typing_e... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a03f8b20320b2b0cd2a0c8a40c42c197b83f1048 | 18ad97292b34a679b8dea8a85090541c5bbf6174 | /chess.py | 0fa35ed4de237177a9e5fefa36517a277692e1e0 | [] | no_license | Jyotirm0y/kattis | b941044e39dc36d169450480fc33fd33bd2e0f8e | 2b9c1819ba29419bbea3db2e8ad7851155abbb3a | refs/heads/master | 2023-05-31T21:11:38.350044 | 2021-06-12T08:21:47 | 2021-06-12T08:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | n = int(input())
r = 'ABCDEFGH'
for _ in range(n):
s = input().split()
a = r.index(s[0])
b = int(s[1])-1
x = r.index(s[2])
y = int(s[3])-1
m = abs(x-a)
n = abs(y-b)
if a == x and b == y:
print(0,s[0],s[1])
elif m == n:
print(1, s[0],s[1], s[2],s[3])
elif (m+n)%2 !... | [
"ainunnajib@gmail.com"
] | ainunnajib@gmail.com |
2d0753b8960fa3c7bb7014d2317bc0555cd17999 | fcbe21026e7ae483c535f6eb38ffbfaaa2aa06c2 | /.history/main_20210412094009.py | 7efdf4db3a5b77a3a63e5eb7f311427f5aca19c3 | [] | no_license | robertstrauss/discordAIchatbot | 8e4c85920f73d49daeb1394afbd1ce8baffbb97b | 8347e6a591d352ace1b8fe4c4629e831763eb0ba | refs/heads/master | 2023-04-03T12:55:07.641825 | 2021-04-13T17:54:57 | 2021-04-13T17:54:57 | 357,641,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | import discord
import re
import requests
import random
import time
import asyncio
import pytorch as torch
import pandas as pd
client = discord.Client()
guildID = 755473404643115170
guild = None
channelID = 831188849946394654
talkchannel = None
# async def pingean():
# while True:
# await asyncio.slee... | [
"robert.strauss@protonmail.com"
] | robert.strauss@protonmail.com |
7199acf0e62fd850cfe1c8e99807a92710e8e2f2 | 854d0673d18cf1db557d2b9b27c248dd879ba28a | /test/test1.py | 3c51d8306463a0078a64f3dbd5b8dc13fba22485 | [] | no_license | Miao1127/code-charpter3 | 51e141c0e463f1ea63f371a498d967b520f59853 | 313dae0b53f1f68fb7ce713ac3eab7e1a2d1b001 | refs/heads/master | 2023-07-15T21:27:22.688910 | 2021-08-23T01:13:59 | 2021-08-23T01:13:59 | 398,937,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # _*_ coding:utf-8 _*_
# 开发人员:103中山分队-苗润龙
# 开发时间:2019/12/1620:50
# 文件名:test1.py
# 开发工具:PyCharm
# 功能:测试全局变量
import time
import sys
def show():
global a
print(a)
a = 3
def s():
global a
print(a)
a = 5
if __name__ == '__main__':
a = 1
show()
print(a)
s()
print(a)
| [
"Miao@DESKTOP-AJA95IE"
] | Miao@DESKTOP-AJA95IE |
f3112fea3c598842c6ede97199b3d47c04c3e63e | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /tests/unit/cfngin/hooks/docker/image/test_build.py | e62a412af66a44ed3b39391f56e1849bf7f3de60 | [
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 8,506 | py | """Test runway.cfngin.hooks.docker.image._build."""
# pylint: disable=no-self-use,protected-access
import sys
from copy import deepcopy
from typing import TYPE_CHECKING
import pytest
from docker.models.images import Image
from mock import MagicMock
from runway.cfngin.hooks.docker.data_models import (
DockerImage,... | [
"noreply@github.com"
] | troyready.noreply@github.com |
df98aec7cbcf6664ef07942ff574d25f1dc989c7 | 599913671c29ca3c427514fa6cb22260d1420d35 | /st2actions/st2actions/runners/remote_script_runner.py | d0fc84e70bce2ff066dd85ba069a41d4e6435b31 | [
"Apache-2.0"
] | permissive | grengojbo/st2 | 2c9642c157f95b57a95175b04d17de7a312164cf | 24956136df165a8b8ac629ba6be1f6de0d77385a | refs/heads/master | 2020-12-30T21:42:57.664608 | 2015-08-20T14:23:56 | 2015-08-20T14:23:56 | 39,152,248 | 0 | 0 | null | 2015-07-15T17:58:43 | 2015-07-15T17:58:42 | null | UTF-8 | Python | false | false | 3,618 | py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | [
"tomaz@tomaz.me"
] | tomaz@tomaz.me |
b2ea215b35210f9d73283dae43957dc12d943e32 | 29345337bf86edc938f3b5652702d551bfc3f11a | /python/src/main/python/pyalink/alink/tests/examples/from_docs/test_softmaxpredictstreamop.py | ed44324ed0eac0718b830e65b094dc71dad0a64e | [
"Apache-2.0"
] | permissive | vacaly/Alink | 32b71ac4572ae3509d343e3d1ff31a4da2321b6d | edb543ee05260a1dd314b11384d918fa1622d9c1 | refs/heads/master | 2023-07-21T03:29:07.612507 | 2023-07-12T12:41:31 | 2023-07-12T12:41:31 | 283,079,072 | 0 | 0 | Apache-2.0 | 2020-07-28T02:46:14 | 2020-07-28T02:46:13 | null | UTF-8 | Python | false | false | 953 | py | import unittest
from pyalink.alink import *
import numpy as np
import pandas as pd
class TestSoftmaxPredictStreamOp(unittest.TestCase):
def test_softmaxpredictstreamop(self):
df_data = pd.DataFrame([
[2, 1, 1],
[3, 2, 1],
[4, 3, 2],
[2, 4, 1],
... | [
"shaomeng.wang.w@gmail.com"
] | shaomeng.wang.w@gmail.com |
6b9f62e6d1a35e9191701aaa09cff2627943e80f | 618c43d7bbed328f3a33320b3d50ad0f5817a08f | /tutorgame/tutorgame/wsgi.py | f21e83699306093d510f1520a515e3b3caf91f31 | [] | no_license | tomaccosheep/capstone-draft-8 | fc2546d7d8de272f9dc1bf84bedad88ec5d9c615 | 8bc08bade514a612b3911f487aba519ec9f07975 | refs/heads/master | 2021-05-13T11:46:29.497414 | 2018-02-06T00:17:08 | 2018-02-06T00:17:08 | 117,140,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for tutorgame project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
20d782976fa64be463fcafcdcad085eb498f3c78 | 3034e86347c71bf7e7af9e5f7aa44ab5ad61e14b | /pweb/day06/queue2.py | 1e303bf16b69ae88861efeb393b81111e60f2ba4 | [] | no_license | jason12360/AID1803 | bda039b82f43d6609aa8028b0d9598f2037c23d5 | f0c54a3a2f06881b3523fba7501ab085cceae75d | refs/heads/master | 2020-03-17T00:43:42.541761 | 2018-06-29T10:07:44 | 2018-06-29T10:07:44 | 133,127,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from multiprocessing import Process,Queue
import time
#创建消息队列
q = Queue()
def fun1():
time.sleep(1)
q.put('我是进程1')
def fun2():
time.sleep(2)
print('取消息',q.get())
p1 = Process(target = fun1)
p2 = Process(target = fun2)
p1.start()
p2.start()
p1.join()
p2.join() | [
"370828117@qq.com"
] | 370828117@qq.com |
3f84cd518baad07c427aacb915704490f4665028 | 452e376385cf9294c7f416748e353ddbfeb8460c | /migrations/versions/d2d0eb2fe55a_create_info_type_table.py | 41952b64c1710a34e5225043c0bb4c6c68964741 | [] | no_license | huozhihui/atuiguang | e7576de0acc53998a67669f577cb371f386a001d | 7e6db16746e6124cd95a2cf71d063db67a9b0d1f | refs/heads/master | 2021-01-20T08:37:50.479023 | 2017-09-05T14:28:46 | 2017-09-05T14:28:46 | 101,567,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | """create info_type table
Revision ID: d2d0eb2fe55a
Revises: 818a0a098c23
Create Date: 2017-09-02 18:54:31.644588
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd2d0eb2fe55a'
down_revision = '818a0a098c23'
branch_labels = None
depends_on = None
def upgrade(... | [
"240516816@qq.com"
] | 240516816@qq.com |
ac4dd52f471a4c7c45164cef50da92fa29647ebb | abc422f58ad053bcbb6653ba15b66e46d220a199 | /serial_scripts/floatingip/__init__.py | a8287683071acc598f539ff0ee825069cba920a6 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | tungstenfabric/tf-test | d3efff59bca931b614d0008260b2c0881d1fc009 | 4b9eca7eb182e5530223131ecab09d3bdf366407 | refs/heads/master | 2023-02-26T19:14:34.345423 | 2023-01-11T08:45:18 | 2023-01-11T10:37:25 | 265,231,958 | 8 | 22 | null | 2023-02-08T00:53:29 | 2020-05-19T11:46:12 | Python | UTF-8 | Python | false | false | 10 | py | """FIP"""
| [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
0eee740e8053dfaa728e96765f202ca5904ce08d | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /Baekjoon/boj_2628.py | 3860cbf720e66de2d4735521eb108e758f043ee3 | [] | no_license | potomatoo/TIL | 5d85b69fdaed68966db7cfe2a565b7c64ed3e816 | 395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c | refs/heads/master | 2021-07-08T16:19:40.410097 | 2021-04-19T02:33:40 | 2021-04-19T02:33:40 | 238,872,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | w, h = map(int,input().split())
n = int(input())
garo = []
sero = []
for i in range(n):
where, idx = map(int,input().split())
if where == 0:
garo.append(idx)
else:
sero.append(idx)
garo.append(0)
sero.append(0)
garo.append(h)
sero.append(w)
garo.sort()
sero.sort()
ls1 = []
ls2 = []
for i i... | [
"duseh73@gmail.com"
] | duseh73@gmail.com |
c76607201a54c4b15b585cebd9ac427bc7e11dd0 | af32cdbbf31d52d01753ddfa5e813e851411403b | /tests/job/test_databaseproperties.py | 5b4cbb469a7497b64814c7ed06d2148275bafbf3 | [
"BSD-3-Clause"
] | permissive | pmrv/pyiron_base | 3e72298df7790f4c3b84d78c990b5d7e12e9016b | af1729708a8226575ca2c84f574e7cb046b7f7cd | refs/heads/master | 2022-12-25T03:15:09.270651 | 2020-09-13T13:56:40 | 2020-09-13T13:56:40 | 294,116,811 | 0 | 0 | BSD-3-Clause | 2020-09-09T13:10:31 | 2020-09-09T13:10:31 | null | UTF-8 | Python | false | false | 5,610 | py | # coding: utf-8
# Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
# Distributed under the terms of "New BSD License", see the LICENSE file.
import unittest
import datetime
import os
from pyiron_base.project.generic import Project
from pyiron_base.job.core impo... | [
"janssen@mpie.de"
] | janssen@mpie.de |
40607e61fa5779815495a4023b1f384053fd8c9b | 5e1edfaad0b6857393b7a54505a6340f8205772a | /H2TauTau/cfgPython/et/subs2018/et_2018_data.py | 22fcfb3afb39c2ee35851500a2453d9f34b75e65 | [] | no_license | lucastorterotot/cmgtools-lite | ae3b042c008316c7a6253c81fac0ca472adb973d | 849832f279316a6c965b91ffa910f953bde33dc2 | refs/heads/htt_10_4_0_v1 | 2021-06-03T07:31:26.460244 | 2020-02-28T13:11:50 | 2020-03-19T16:03:10 | 128,908,833 | 0 | 2 | null | 2020-04-21T11:21:39 | 2018-04-10T09:35:11 | Python | UTF-8 | Python | false | false | 17,572 | py | import os
import re
import ROOT
import PhysicsTools.HeppyCore.framework.config as cfg
from PhysicsTools.HeppyCore.framework.config import printComps
from PhysicsTools.HeppyCore.framework.heppy_loop import getHeppyOption
import logging
logging.shutdown()
# reload(logging)
logging.basicConfig(level=logging.WARNING)
... | [
"lucas.torterotot@gmail.com"
] | lucas.torterotot@gmail.com |
3fb2cae71bf50676b6228b742a5f2bc1b3d9856b | 3012e5a0f34dd54fbac568c70506826973192ce1 | /pylib/lines.py | 0568e2c4370b658c9fb453b1094d7360c2fd0918 | [] | no_license | metatab-packages/civicknowledge.com-osm-demosearch | 89999227bda7bae91259c10bd651f220ae35c52f | d4ecb7775662a50413c848c3ae5a901b147ef532 | refs/heads/master | 2023-05-14T12:39:25.328559 | 2021-06-08T13:52:39 | 2021-06-08T13:52:39 | 334,572,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,999 | py | """
"""
from itertools import chain
from pathlib import Path
import fiona # Import first to work around an import bug
import geopandas as gpd
import numpy as np
import pandas as pd
import shapely
from demosearch import FileCache
from demosearch.util import run_mp
from shapely.wkt import loads as loads_wkt
from tqdm.... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
1049de780f9f5d1abb00009e1767374fd69fa854 | 1b5404b8099de74d4e39e0a41b1d04c61defa8d4 | /fractals/pythagoras_tree.py | 9aaeb7710c9cda5161272fbed91510d7491c7690 | [] | no_license | ipeterov/random-stuff | 5d07bdcfdcb145d06ed89095f2ad34b70ff0f0bd | dbb38d42331f636919fd149b23783e02ee2c9afb | refs/heads/master | 2023-05-14T00:41:51.122251 | 2023-05-04T12:10:26 | 2023-05-04T12:10:26 | 206,028,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | import math
from types import SimpleNamespace
import pygame
from abstract_drawer import AbstractDrawer
SIZE = WIDTH, HEIGHT = 500, 500
class PythagorasTreeDrawer(AbstractDrawer):
DEFAULT_PARAMS = {
'angle': 45,
'starting_size': 100,
'max_depth': 2,
}
PARAMS_SCHEMA = {
... | [
"ipeterov1@gmail.com"
] | ipeterov1@gmail.com |
09e4f881f8f065510e9a5f1375a9ab2d0bc39cd9 | 1aa99ce0775508c3f2bbe321874c24957da5e880 | /python/pyspark/sql/tests/test_group.py | 6de1b8ea0b3cea5cfba394a2910164a781d09d46 | [
"CDDL-1.1",
"CC0-1.0",
"Apache-2.0",
"BSD-3-Clause",
"MPL-1.1",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Python-2.0",
"CDDL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-other-copyleft",
"CPL-1.0",
"LGPL-2.1-only",
"LicenseRef-scancode-ot... | permissive | zzvara/spark-dynamic | c06a8b885646d9e611cdca3591824fcf0fa0ccc2 | 00b4a8644ca89789af1fa47fa6ed871ad902154e | refs/heads/master | 2022-12-14T12:57:53.236482 | 2019-05-24T13:40:12 | 2019-05-27T15:31:03 | 96,672,852 | 3 | 0 | Apache-2.0 | 2022-11-16T11:37:30 | 2017-07-09T09:03:45 | Scala | UTF-8 | Python | false | false | 1,818 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"gurwls223@apache.org"
] | gurwls223@apache.org |
86a788c889be2a5e5552a4c61cb4670d20fc02dd | 07c1d8eb58b34a8c17c6a9deef73094b6e077b4d | /action/action_buddy_contact_progress.py | 5720d3f3b06bc1d21dbf391caf352666d52bc449 | [] | no_license | robot-nan/GameLogParse | 061f8d0448c5945bec61b55380d9f2cd883defcf | 151f5dd167b106640cd178373a59b2458e43d80e | refs/heads/master | 2021-11-07T21:27:22.354060 | 2015-09-23T15:32:32 | 2015-09-23T15:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | # -*- coding:utf-8 -*-
"""
好友 与好友通讯进度奖励
"""
from action import action_base
from util import game_define
def log(user, add_free_draw, item_str):
"""
输出日志
"""
action = game_define.EVENT_ACTION_REWARD_BUDDY_CONTACT
cur_free_draw = user.player.get_free_draw_material()
log_lst = action_ba... | [
"a.robot.n@gmail.com"
] | a.robot.n@gmail.com |
033abe55ea3aeb335fead36f85e46744aa5f66d3 | 87119ec9cea61be175f2a1f16f0e37d060cde9af | /django/django_celery/myproject/celery_config/apps.py | d21110a7e22dfd38681d3edc22dc2af5737e15e9 | [] | no_license | atkins126/sample_nullpobug | bce9c1bf2a31921ac665a18dc2a62be3bdef493e | b2ba65f42f717f0ceb2cf14fe28e90c460bfde87 | refs/heads/master | 2023-02-16T11:37:05.290069 | 2021-01-18T14:43:40 | 2021-01-18T14:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | from django.apps import AppConfig
class CeleryConfig(AppConfig):
name = 'celery_config'
def ready(self):
from myproject.celery_app import get_celery_app
get_celery_app()
| [
"tokibito@gmail.com"
] | tokibito@gmail.com |
a7b7f440ee7dbc2c11a1270096228f3417cc1960 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry/services/hybrid_cloud/lost_password_hash/impl.py | e4a57fc261e32c357c600b8110580aea07c1721a | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 1,070 | py | import datetime
from sentry.models import LostPasswordHash
from sentry.services.hybrid_cloud.lost_password_hash import (
APILostPasswordHash,
LostPasswordHashService,
)
class DatabaseLostPasswordHashService(LostPasswordHashService):
def get_or_create(
self,
user_id: int,
) -> APILostP... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
1d300458ff0cf33fd7c879e31a0162efaa72ae1c | e1efc8e0b0e4629dea61504fbc816c0527691bd9 | /6.redis/redis7-数据类型内部编码规则.py | d206eee2aea9fb4c23d71e8adf6c329ce0a4e930 | [] | 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 | 2,377 | 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("hash内部编码规则... | [
"xiongmengmeng@qipeipu.com"
] | xiongmengmeng@qipeipu.com |
e3dcddf28d9cfb6ce8a4fe41d148715f88134be0 | ffc3cf8a1ed64a86a8e92f738a2bf4b10afc63ac | /chainercv/transforms/image/random_rotate.py | 64977ab8c4718cf763aefa775923ffee291960c9 | [
"MIT"
] | permissive | lichnak/chainercv | 04be206b5bda2e601a86b6e7a8684ba1b03698ee | 845a600dd8722788233f2b8e5085a44790bb2be4 | refs/heads/master | 2020-05-23T04:47:12.531295 | 2017-03-12T11:36:58 | 2017-03-12T11:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import numpy as np
def random_rotate(img, return_rotation=False):
"""Randomly rotate images by 90, 180, 270 or 360 degrees.
Args:
img (numpy.ndarray): Arrays that
are flipped.
return_rotation (bool): returns information of rotation.
Returns:
If :obj:`return_rotation =... | [
"yuyuniitani@gmail.com"
] | yuyuniitani@gmail.com |
e8eba9bfb063ea480def35a81277112987b8a7f4 | 364c65b9c3848d91b8dc15c9ec6f4bd596dae20b | /notifico/views/projects/__init__.py | 54eede340020679d5d96129578b9bca8d9257fdf | [
"MIT"
] | permissive | lhunath/notifico | e5eb90f2d2314cd5c176418c63165a33e5080245 | 59f72c46fa5af94e27c2f512b56fd45e6c432acc | refs/heads/master | 2021-01-16T23:11:26.883271 | 2014-10-02T15:30:29 | 2014-10-02T15:30:29 | 26,810,184 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,194 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""__init__.py
Project related views, such as project creation and details.
"""
from functools import wraps
from flask import (
Blueprint,
render_template,
g,
redirect,
url_for,
abort,
request
)
from flask.ext import wtf
from notifico import d... | [
"tk@tkte.ch"
] | tk@tkte.ch |
8409d6a53f38fc061c1540e3850f503ef0e11bcf | f2befaae3840bafd181cc712108e3b64caf2696f | /app/portal/horizon/openstack_dashboard/dashboards/f5services/f5ltm/urls.py | 9b38daded614453d6d6e7ac86e6e03ce719522b2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-adcaas-openstack | 17d5c408d421dcfe542002e1f850b2d9f29f1663 | 02bd8a606215c0fa08b926bac1b092b5e8b278df | refs/heads/master | 2023-08-28T12:09:54.972191 | 2022-08-12T02:03:43 | 2022-08-12T02:03:43 | 164,592,273 | 4 | 23 | Apache-2.0 | 2022-08-12T02:03:44 | 2019-01-08T07:40:35 | Python | UTF-8 | Python | false | false | 723 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"a.zong@f5.com"
] | a.zong@f5.com |
c932bfbb92d2084d65f33c7bad9db63a939d9d64 | 81db4221ab007659d4f117c9320c28c00b0902a7 | /python_repos.py | 02755831cd6da4502e4b411b6b87f57e56f6fc1d | [] | no_license | thewchan/python_data_viz | 69f8c0a502a9ec5ee44b78e1d2db19c8f4fdf9ba | 3226bd133a72fc11e8ee09775665a509b6a5efba | refs/heads/master | 2022-04-16T13:48:55.610209 | 2020-04-14T16:15:13 | 2020-04-14T16:15:13 | 255,659,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import requests
# Make an API call and store the response.
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
headers = {'Accept': 'application/vnd.github.v3+json'}
r = requests.get(url, headers=headers)
print(f"Status code: {r.status_code}")
# Store API response in a variable.
response_... | [
"thewchan@gmail.com"
] | thewchan@gmail.com |
86053fa3163ebbc4322bb8e014523f01fd9291b8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_266/ch59_2019_03_29_21_49_10_038358.py | 8cb109d5a7ec70aed36067d83e642eb2d9a75f9e | [] | 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 | 159 | py | def conta_a(palavra):
i=0
contador = 0
while i<len(palavra):
if palavra[i] == 'a':
contador+=1
i+=1
return contador | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.