blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
356a7afcbdd74b21e95482574d7ad71e4fd6c7d2
3a8c2bd3b8df9054ed0c26f48616209859faa719
/Challenges/Hackerrank-EqualStack.py
a3468ffad8894c66e2472a1e1e40b7dd0e049f10
[]
no_license
AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges
684f1ca2f9ee3c49d0b17ecb1e80707efe305c82
98fb752c574a6ec5961a274e41a44275b56da194
refs/heads/master
2023-09-01T23:58:15.514231
2021-09-10T12:42:03
2021-09-10T12:42:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
import sys from itertools import accumulate from collections import Counter n1,n2,n3 = input().strip().split(' ') n1,n2,n3 = [int(n1),int(n2),int(n3)] h1 = [int(h1_temp) for h1_temp in input().strip().split(' ')] h2 = [int(h2_temp) for h2_temp in input().strip().split(' ')] h3 = [int(h3_temp) for h3_temp in input().st...
[ "bennyhwangg@gmail.com" ]
bennyhwangg@gmail.com
bbc6db02f24264edec759b61a04389bb3c0d4d05
af773c5e16d7d3eb97d15664b0aabf9eafcffdf1
/setup.py
44f68531fbad585bdd6dd865312c4bf8b6feade2
[ "MIT" ]
permissive
c6401/xontrib-ipython-shell-magic
32607fac4a327c8b07a5864f9e400e5e9342a166
933545e7d5f7091ce61d9b115c5386b10450312a
refs/heads/master
2023-07-08T10:16:14.294733
2021-08-15T22:02:09
2021-08-15T22:02:09
365,316,218
0
0
null
null
null
null
UTF-8
Python
false
false
1,556
py
#!/usr/bin/env python import setuptools try: with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() except (IOError, OSError): long_description = '' setuptools.setup( name='xontrib-ipython-shell-magic', version='0.1.0', license='MIT', author='Xonsh IPython sh...
[ "nc6401+gthb@gmail.com" ]
nc6401+gthb@gmail.com
a2f1c800db3887e4e4d4108699923d9cc16ae5ea
0beb59ccd42d8add548ddbe5ca75cac44ea8c3bb
/tastypy/_deep_proxy.py
3ead9f5179020f2eac9402184a5b778a39ba6a47
[]
no_license
enewe101/tastypy
a7cab3b0bf7ead4ebde68daa50ddf588a9177bd9
f4e03569b5b8b884db645c102713c37665679340
refs/heads/master
2020-12-30T23:59:38.728650
2017-09-16T17:37:46
2017-09-16T17:37:46
80,559,399
5
0
null
null
null
null
UTF-8
Python
false
false
1,839
py
import operator class DeepProxyMeta(type): def __new__(meta_class, class_name, class_parents, class_attrs): skip = { '__class__', '__getattribute__', '__getitem__', '__subclasshook__'} # Builds the function to be used as a method, and binds it's name # to the method's scope. def arm_call_callback(method...
[ "edward.newell@gmail.com" ]
edward.newell@gmail.com
39c36e4a0a66fa242a270eae729b976a0a5d58ce
6413fe58b04ac2a7efe1e56050ad42d0e688adc6
/tempenv/lib/python3.7/site-packages/plotly/validators/parcats/line/_cauto.py
2e4ea4a4007336f15f32531d58dcbad8628f0b2c
[ "MIT" ]
permissive
tytechortz/Denver_temperature
7f91e0ac649f9584147d59193568f6ec7efe3a77
9d9ea31cd7ec003e8431dcbb10a3320be272996d
refs/heads/master
2022-12-09T06:22:14.963463
2019-10-09T16:30:52
2019-10-09T16:30:52
170,581,559
1
0
MIT
2022-06-21T23:04:21
2019-02-13T21:22:53
Python
UTF-8
Python
false
false
515
py
import _plotly_utils.basevalidators class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name='cauto', parent_name='parcats.line', **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_n...
[ "jmswank7@gmail.com" ]
jmswank7@gmail.com
420c5a9eaf898fc1de27113bb3cc543f4343bf3e
61eaaf6cac449ed482ff68af515d3245b16c93b2
/python/data_structures/divide_by_2.py
0a7aa7d2d381ef7bcd9b330d6861643c96481787
[]
no_license
alagram/Algorithms
c2cc7f9d9a71c0ffa0c05ff0efdcd6bbf59a6d56
f1d7740ca4c69f810ee6f0b5afb097b5bb0aa30e
refs/heads/master
2021-01-22T13:12:32.940579
2017-03-11T07:01:31
2017-03-11T07:01:31
31,675,694
1
0
null
null
null
null
UTF-8
Python
false
false
280
py
from stack import * def divide_by_2(num): stack = Stack() while num > 0: rem = num % 2 stack.push(rem) num = num // 2 cov_num = "" while not stack.isEmpty(): cov_num += str(stack.pop()) return cov_num print(divide_by_2(12))
[ "albert.agram@gmail.com" ]
albert.agram@gmail.com
4f4afa238df5f8179967db559b614ae1c2ccf74f
08de348b667e45225a09c76e32fc61581a657ee1
/prescriptions/backend/serializer.py
e8896e1ae9555735129ef6d361011042f32ab35c
[]
no_license
JoeTanto2/SimpleOrder1
d676d34028642ccd38036d01194095029e19ff53
9a813c11292af755b560235cda0779d385a2c768
refs/heads/main
2023-07-24T02:24:38.309233
2021-09-04T16:51:50
2021-09-04T16:51:50
403,098,899
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
from rest_framework import serializers from django.contrib.auth.models import User from .models import Patient, Medicine class Registration (serializers.ModelSerializer): email = serializers.CharField(required=True) class Meta: model = User fields = ['username', 'email', 'password'] class Pati...
[ "77851879+JoeTanto2@users.noreply.github.com" ]
77851879+JoeTanto2@users.noreply.github.com
fa4fd871e54fe3a629b7ce6eb1ccd38906235867
b53711d989bc8c2c6bbeb98ff451c89b995d7650
/codementor/migrations/0012_auto_20220301_2302.py
7f7d6ae111a20537f797aafca52814894d969db2
[]
no_license
jessamynsmith/codementor-integrator
b1cadc79176c081968c28b90cdab172585393bc3
4ec1c0c8af5bb57f7500654a2a698665d603697c
refs/heads/master
2023-02-22T19:09:27.850754
2022-05-12T16:13:22
2022-05-12T16:13:22
203,635,390
0
0
null
2023-02-15T17:56:28
2019-08-21T17:44:43
Python
UTF-8
Python
false
false
889
py
# Generated by Django 4.0.2 on 2022-03-01 23:02 from django.db import migrations def populate_webhook_session(apps, schema_editor): CodementorWebhook = apps.get_model('codementor', 'CodementorWebhook') Session = apps.get_model('codementor', 'Session') for record in CodementorWebhook.objects.all(): ...
[ "geekchick77@gmail.com" ]
geekchick77@gmail.com
22b597840e8a9644cf768852fb33adce01903abb
27e307e40712b0665b0f5f2daa5294a85f6bac11
/config/settings.py
f0aaf2b1dddbdd35c19485f71afe2a685d49ff41
[]
no_license
JesusAnaya/pushci
48899f80b71fc5c1976c22e775dd954d4fc5d097
ab657c11c158224c7089b9a09bf0620fdb00b5d9
refs/heads/master
2020-05-20T13:02:09.084357
2015-03-13T03:48:19
2015-03-13T03:48:19
32,070,681
0
0
null
null
null
null
UTF-8
Python
false
false
2,180
py
""" Django settings for project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os ...
[ "jesus.anaya.dev@gmail.com" ]
jesus.anaya.dev@gmail.com
4fc36b708c47e5faed48b6c8ec0e9beedf128653
0769b76c719c476ead47493475b24bf012322ab6
/controller/controller.py
b352ff99184fac1ec71c51f8422218ea343f465e
[]
no_license
chouer19/PyCalarTrack
e2299e1ffe91e9a890261cdd7734d77a33c5d8bc
21e2624406ebde48ecdbd6cb9bd7fe75641ae342
refs/heads/master
2020-03-20T10:06:21.793598
2018-06-15T10:32:34
2018-06-15T10:32:34
137,359,395
1
0
null
null
null
null
UTF-8
Python
false
false
4,628
py
import sys sys.path.append("../libs/CubicSpline/") import numpy as np import cvxpy import matplotlib.pyplot as plt import cubic_spline_planner sys.path.append("../libs") from vehicle import * from road import * import time import pygame from pygame.locals import * #dependent function def get_nparray_from_matrix(x):...
[ "xuec16@mails.tsinghua.edu.cn" ]
xuec16@mails.tsinghua.edu.cn
a858eebb1cec04601e9da2f6770b003548faa68d
8fd2e5d53d7a91d35288ccefdb0c7ef00d927a0a
/book_06_Python黑帽子/Chapter08_/my_sandbox_detect.py
7949469806ddae2bfeedc5da62d231021a6fe18d
[]
no_license
atlasmao/Python-book-code
03501f9ca2e81bc1f47464b3227c7f9cda0d387c
03b6848a15a7e4c2ffebdc3528c24a8b101d9f41
refs/heads/master
2022-01-06T23:45:21.951307
2019-07-11T10:32:22
2019-07-11T10:32:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,903
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import ctypes import random import time import sys user32 = ctypes.windll.user32 kernel32 = ctypes.windll.kernel32 keystrokes = 0 mouse_clicks = 0 double_clicks = 0 class LASTINPUTINFO(ctypes.Structure): _fields_ = [ ("cbSize", ctypes.c_uint), ("dwT...
[ "justsweetpotato@gmail.com" ]
justsweetpotato@gmail.com
d7d2dae2788562d26a2a08853b9655794e1d28d7
5930f323d96e7ed45c01fef63b100e1ad220f764
/tests/_tests_scripts/dl_z_distributed_03.py
c8782b145b04c3cd80ac01f116c1656573aea749
[ "Apache-2.0" ]
permissive
saswat0/catalyst
8cb91c2392bccdbdd318544e6861e6fe6ac39b33
a35297ecab8d1a6c2f00b6435ea1d6d37ec9f441
refs/heads/master
2023-04-05T00:43:29.124864
2020-06-18T05:41:33
2020-06-18T05:41:33
272,268,902
2
0
Apache-2.0
2020-06-18T05:41:34
2020-06-14T19:24:04
null
UTF-8
Python
false
false
1,346
py
# flake8: noqa import os import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader, TensorDataset from catalyst import dl class Projector(nn.Module): def __init__(self, input_size: int): super().__init__() self.linear = nn.Linear(input_size, 1) d...
[ "noreply@github.com" ]
saswat0.noreply@github.com
337ef01a2a3a029f0a3be7d124f12336d8fdfcd4
b2e2332dcc998e33ac02c9c2fef1cea05a56457e
/lm/loss.py
14b6ef94dfa1dcaa949bfd50a450fdf0f353f900
[ "Apache-2.0" ]
permissive
thu-spmi/semi-EBM
db43a7ce2b9b8dcbc56ffbc7aa21102cb8160cf4
393e3ea3566dd60c48872a5c573a335e8e802707
refs/heads/main
2023-08-31T03:20:19.830127
2021-09-12T07:04:17
2021-09-12T07:04:17
405,569,165
3
1
Apache-2.0
2021-09-12T07:04:17
2021-09-12T06:51:30
null
UTF-8
Python
false
false
3,691
py
import tensorflow as tf import numpy as np from base import * class BNCELoss(object): def __init__(self, inputs, labels, vocab_size, noise_probs, logZ, name='B-NCE-loss'): self.vocab_size = vocab_size input_shape = tf.shape(inputs)[0:-1] input_dim = inputs.shape[-1].value ...
[ "maxwellzh@outlook.com" ]
maxwellzh@outlook.com
be9d65a106be99aa6a5e9d401fe206ef80cc0b9b
27f339c5f600a1b7a30b85e354f6c53e03ed5a59
/Utils4R/_utils_abc/spider.py
b84ece5bb3e304ee73840f1e7010428df3029821
[ "Apache-2.0" ]
permissive
ChangxingJiang/Utils4R
2fbade8e268975f4b50199cf6473869d00287c31
e8ef687107f5d444604fb5750c4de99b0faeb722
refs/heads/main
2023-01-08T20:35:32.602649
2020-11-10T09:13:38
2020-11-10T09:13:38
304,232,181
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
from abc import ABCMeta from abc import abstractmethod class SingleSpider(metaclass=ABCMeta): """简单单线程爬虫的抽象基类""" @abstractmethod def run(self, **params): """执行爬虫""" def console(self, content: str): print(self.__class__.__name__, ":", content) def log(self, content: str): ...
[ "1278729001@qq.com" ]
1278729001@qq.com
8a114dfd0605a0c20237609a903cbb1023bdb132
c4a57dced2f1ed5fd5bac6de620e993a6250ca97
/huaxin/huaxin_ui/ui_ios_xjb_3_0/xjb_product_detail_page.py
0876bdfc50c5b291eb4754d5bd76de16ad342979
[]
no_license
wanglili1703/firewill
f1b287b90afddfe4f31ec063ff0bd5802068be4f
1996f4c01b22b9aec3ae1e243d683af626eb76b8
refs/heads/master
2020-05-24T07:51:12.612678
2019-05-17T07:38:08
2019-05-17T07:38:08
187,169,391
0
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
# coding: utf-8 from _common.page_object import PageObject from _common.xjb_decorator import robot_log PERFORMANCE = "accId_UIAButton_(UIButton_业绩)" PERFORMANCE = "accId_UIAButton_(UIButton_业绩)" class XjbProductDetailPage(PageObject): def __init__(self, web_driver): super(XjbProductDetailPage, self).__ini...
[ "wanglili@shhxzq.com" ]
wanglili@shhxzq.com
6e52083ca7c35aa202d1a542a5bde2e1bdc51450
27b10d6204ea00718d88922f2f0e14c8c2ca0ce1
/crypten/mpc/primitives/beaver.py
bd69f72d4c125f5fc74d64161313c57da13c411c
[ "MIT" ]
permissive
lemonviv/CrypTen
3cf1dbb90a9a720f1bd60f711a06ba7300ff2c58
7f432b2a259f0c8b26086272140bb0a5dcb56a51
refs/heads/master
2023-07-10T07:23:53.532857
2021-08-12T16:51:30
2021-08-12T16:52:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,566
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import crypten import crypten.communicator as comm import torch from crypten.common.util import count_wraps from crypt...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
df44d844cd0074221429ad937172948383a512a6
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc005/C/911816.py
210c9806f6f75836664edf8dc62910020f01bce2
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
747
py
input() a = list(map(int, input().split())) def resolve(a): if a == [1, 1]: return True if a.count(1) >= 2: return False max_num = max(a) min_num = min(a) if a.count(max_num) < 2: return False if max_num / 2 > min_num: return False if ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
8bb8227ce16c6d2ac49521b951a8cf0027db3cbb
898e87398d1e4810e0327716f841cfe7f6939e78
/maxwell/deploy-backend
1e7006be9144ba9cb074123549fa91cb7efe4ec8
[]
no_license
junix/docker-im
f22f633305e539ab6c31c10183e063098f6b5070
1334a49e78aa75b47bb7d418f425c22b806e820c
refs/heads/master
2020-06-11T08:47:29.973984
2017-01-25T07:17:56
2017-01-25T07:17:56
75,707,142
0
0
null
null
null
null
UTF-8
Python
false
false
1,391
#!/usr/bin/env python import sys import os import getopt from docker_cmd import DockerCmd import utils class BackendCmd(DockerCmd): def __init__(self, node_id): DockerCmd.__init__(self) name = 'bg{gid}p{pid}'.format(gid=os.getenv("GROUP_ID"), pid=node_id) self.use_image('yunxuetang/maxwel...
[ "juns1984@qq.com" ]
juns1984@qq.com
ee978971371285d1c3e6bbf7c990ebf76a615d9c
55eab2df3ac1b6293371ee9e3687eae64219f715
/awacs/waf.py
077dc09f7d6c20f27d8d00e05bf050d79ff0cfc2
[ "BSD-2-Clause" ]
permissive
jarosser06/awacs
a5031414f084858c876335015b97962278a5fb9a
7ffa5ab0ecf55b7d22536ad0a10fafb396c90d37
refs/heads/master
2021-01-11T18:36:46.130672
2016-12-30T18:55:43
2016-12-30T18:55:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from aws import Action as BaseAction from aws import BaseARN service_name = 'AWS WAF' prefix = 'waf' class Action(BaseAction): def __init__(self, action=None): sup = super(Action, self) ...
[ "mark@peek.org" ]
mark@peek.org
6318bd3fbfaeaf0f4cbd522d15e86aadaa95a837
b0ada0f13d32347c785f69fb67c9e4d7a8a5bb33
/accounts/migrations/0016_user_get_full_name.py
c3048952af03dd294c05300d49d98745b60f2ec2
[]
no_license
Shayan-9248/social_web
215473a0090da44d499b3e70098aa8002e1d66ae
7f896136d77feda73ad801e15bbb8563af45f5b1
refs/heads/master
2023-07-15T15:14:13.705188
2021-07-18T22:02:44
2021-07-18T22:02:44
354,788,478
1
1
null
null
null
null
UTF-8
Python
false
false
402
py
# Generated by Django 3.1.7 on 2021-04-12 21:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0015_auto_20210412_1004'), ] operations = [ migrations.AddField( model_name='user', name='get_full_name'...
[ "shayan.aimoradii@gmail.com" ]
shayan.aimoradii@gmail.com
968b039c97ac821a5157d14f8577fd1512cc4e4a
feccf7588777becba68921c0bfade3e21f5210ce
/airflow/providers/google/ads/_vendor/googleads/v12/services/types/account_link_service.py
df45c9c0b0b9daaff7277df9f829467cb1a1c9d7
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
francescomucio/airflow
f17ed9abd8b41d8a2227deca052508edf12f1cbf
c199b1a10563a11cf24436e38cb167ae82c01601
refs/heads/master
2023-04-14T17:44:53.438246
2023-04-06T06:44:23
2023-04-06T06:44:23
217,327,641
0
0
Apache-2.0
2020-09-09T13:26:47
2019-10-24T15:06:52
Python
UTF-8
Python
false
false
6,023
py
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
francescomucio.noreply@github.com
008d023cdcc9362303d02093e034d11cf9eeeb81
706e6f401bba456f738475cad9412e460cdc62d6
/app.py
e45882b5098866b16cc8ed1cea0fc849316dc100
[]
no_license
candyer/audioCast
edb6c2aae2c530ba21657f4bb98e8523fea947d8
e17969799d591c992c33b89143334cd96b80c6ac
refs/heads/master
2022-12-13T18:26:53.375427
2020-04-27T12:32:03
2020-04-27T12:32:03
220,484,499
0
0
null
2022-12-08T06:50:51
2019-11-08T14:34:18
Python
UTF-8
Python
false
false
5,761
py
import os import base64 from flask import Flask, Response, flash, render_template, request, url_for, redirect, session from functools import wraps import requests import json from podgen import Podcast, Episode, Media from sql import create_table, insert_user, insert_token, get_the_userID, check_password, get_the_late...
[ "candyer@users.noreply.github.com" ]
candyer@users.noreply.github.com
cbe5340ddb167d9d33240e2762f9b76dde84403c
7e4879c760a4d4edd973fbed2b25fea8af8fc161
/shortly/asgi.py
34e6e17bad185ec319a1dab7dc29453a88d82329
[]
no_license
Serdiuk-Roman/drf_shortly
e78bacbb4cf847f7fccea49ec621bd538a836e86
cee97cf2d82e6fb0d23c01445e6279b86d8a451c
refs/heads/master
2023-08-27T11:48:28.827437
2021-09-12T20:21:22
2021-09-12T20:21:22
404,621,089
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" ASGI config for shortly project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
[ "serdiuk.r@gmail.com" ]
serdiuk.r@gmail.com
2450147d2f2e553b1187ee29f2aeb38e4d04dc16
cedc66fcd0c8e347a2e363a832819cfee3598c8a
/iprPy/calculation/dislocation_periodic_array/DislocationPeriodicArray.py
3537c8c4e43147a67fb55399cc593e90f8d35668
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
Aditya-912/iprPy
1b201c3a62b691249a76dd07d507b2d94813b6b8
260bf203baf43a33a1bb3a079d7d5343c131dcd5
refs/heads/master
2023-03-11T21:35:17.963425
2021-03-05T16:31:27
2021-03-05T16:31:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,524
py
# coding: utf-8 # iprPy imports from .. import Calculation from ...input import subset class DislocationPeriodicArray(Calculation): """ Class for handling different calculation styles in the same fashion. The class defines the common methods and attributes, which are then uniquely implemented for eac...
[ "lucas.hale@nist.gov" ]
lucas.hale@nist.gov
8416c515445777ded42fd2b7dba922b8ae15cc2f
d80fee223a376ecc5c9824541759e2661d10036a
/tests/tsutils.py
b7c5e4b995982fcccf733e734ef959df3025097e
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
tkf/railgun
1c3729b9af288427079c9f55f1cad4d1a6d83b99
97ef1590981d303690b0bc1b3cb257aeb67123d4
refs/heads/master
2021-06-27T12:24:39.944071
2017-03-23T05:34:38
2017-03-23T05:34:38
6,032,889
2
1
null
null
null
null
UTF-8
Python
false
false
273
py
from pprint import pformat import nose.tools nose_eq = nose.tools.eq_ def eq_(actual, desired, msg=''): compare = 'actual:\n%s\n\n' 'desired:\n%s' % ( pformat(actual), pformat(desired)) mymsg = '%s\n%s' % (msg, compare) nose_eq(actual, desired, mymsg)
[ "aka.tkf@gmail.com" ]
aka.tkf@gmail.com
03dec6be6b5c89c2ecd2534f77c5a6342798d202
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/95/usersdata/233/55311/submittedfiles/desvpad.py
0b0420e0e977c0a4a882e73540c1179a708de295
[]
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
563
py
# -*- coding: utf-8 -*- import math #comece abaixo def desvio(lista): soma=0 for i in range(0,len(lista,1): soma=soma+lista[i] media=soma/len(lista) soma2=0 for i in range(0,len(lista),1): a=(lista[i]-media)**2 soma2=soma2+a variancia n=int(input('n: ')) lista=[] for i i...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
b558f932ffc8293f89e3485c19f5a3bea72aad38
adbd5d0ea2989623cc930d648e511de2f3a5bf23
/domainmanager/migrations/0033_remove_clan_bloodline.py
8dca42e79e397aeadd8149112ba55286c301a112
[]
no_license
Yshekinah/bpbn
2f7acf32675ec9343c90c36a344d1f047440ba9b
173f39270a1607033eb6b8bfd83d98f39337f7d4
refs/heads/master
2021-01-16T23:58:21.169023
2018-06-28T16:23:43
2018-06-28T16:23:43
58,466,586
1
1
null
2020-07-22T19:53:50
2016-05-10T14:06:50
JavaScript
UTF-8
Python
false
false
399
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-07-20 17:12 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('domainmanager', '0032_auto_20160720_1906'), ] operations = [ migrations.RemoveField(...
[ "david.hampel@gmail.com" ]
david.hampel@gmail.com
4f3e2bf2d6b301546e89bcd9d53256df1e9d7cf5
b9d1008019f9ca5389faa84ed29e6fbc5c0b99d8
/pulllog/fff/pull_the_log.py
7c3f0708026f19586bf28f123d51dff77dc5c135
[]
no_license
trychiOO/python_all
7e2d886f0b442c388b867a2c1d4e8c55951783ab
703fe3ac64c47c2c2d8dda3e832dc0862281dae3
refs/heads/master
2021-03-06T12:41:16.585957
2020-03-10T07:14:18
2020-03-10T07:14:18
246,200,733
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
#_*_ coding:utf-8 _*_ #author:yr import os import time import shutil seconds1 = int(input("请输入pull文件的时间:")) # 根据文件的大小和网速来确定时间 建议60s seconds2 = int(input("请输入下次循环的间隔时间")) #建议3000s number = int(input("请输入循环次数")) path = str(input("请输入pull文件路径")) len1 = int(...
[ "1162551619@qq.com" ]
1162551619@qq.com
3183d49ce854dbf445c6e5657989f93f65c5dc67
bb7d79d220f51016523fe04dcf83486fba874c4f
/Production_12X/nanoML_cfg.py
185ab7d35535532cb75c78c08298beb0366043a9
[]
no_license
Saptaparna/FastTiming
019f77abe1ff8b2f0aaa533ac97640e48970ce93
bafa435469ae2eb8a77f461f7a04547101d6fce0
refs/heads/master
2021-12-23T09:50:25.382581
2021-12-03T19:44:05
2021-12-03T19:44:05
53,109,671
0
1
null
null
null
null
UTF-8
Python
false
false
5,118
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: step1 --filein file:test.root --fileout testNanoML.root --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --conditions auto:mc --step NA...
[ "saptaparna@gmail.com" ]
saptaparna@gmail.com
9e55ba794a98e6964c24ad602ff67401bfe74022
f79402983074f9b3031ac84377924fdcfc69a1a3
/中等146. LRU 缓存机制.py
88cdaea58f5364ba2a724730d11e4cf28ff751e9
[]
no_license
ganhan99/leetcode
bd328b5a58c87c7cc1e8fcf4d721a8d29deb3f23
173754f20605ddf4d010938c8bbe85beac04da53
refs/heads/master
2023-03-18T13:28:01.412612
2021-03-03T03:52:59
2021-03-03T03:52:59
308,853,281
0
0
null
null
null
null
UTF-8
Python
false
false
4,528
py
""" 运用你所掌握的数据结构,设计和实现一个  LRU (最近最少使用) 缓存机制 。 实现 LRUCache 类: LRUCache(int capacity) 以正整数作为容量 capacity 初始化 LRU 缓存 int get(int key) 如果关键字 key 存在于缓存中,则返回关键字的值,否则返回 -1 。 void put(int key, int value) 如果关键字已经存在,则变更其数据值;如果关键字不存在, 则插入该组「关键字-值」。当缓存容量达到上限时,它应该在写入新数据之前删除最久未使用的数据值,从而为新的数据值留出空间。   进阶:你是否可以在 O(1) 时间复杂度内完成这两种操作?   示...
[ "940320304@qq.com" ]
940320304@qq.com
672ed67de4f9cbf376012a43ff4dfb91808a160f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02683/s360051627.py
ef7781f32aec6549169398aa5023e64b3c4d0d67
[]
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
539
py
import sys input = sys.stdin.readline def main(): N, M, X = map(int, input().split()) ca = [list(map(int, input().split())) for _ in range(N)] ans = sys.maxsize for mask in range(2 ** N): C = 0 A = [0] * N for i in range(N): if ((mask >> i) & 1): C +...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e06333bb7a23d9826d58d4b54a40777e9be29553
6238dc5b5818f54295547cf4cb1afa5553ddfb94
/taobao/top/api/rest/WlbOrderConsignRequest.py
7ef5fa59244e1fccc6ec8bc73183548ce1bc9ce0
[]
no_license
liaosiwei/guagua
8208bb82b1df5506dcb86c1a7094c849ea5576a6
ee6025813e83568dc25beb52279c86f8bd33f1a4
refs/heads/master
2016-09-06T16:45:00.798633
2013-05-03T04:02:35
2013-05-03T04:02:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
''' Created by auto_sdk on 2013-04-14 16:35:32 ''' from top.api.base import RestApi class WlbOrderConsignRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.wlb_order_code = None def getapiname(self): return 'taobao.wlb.order.consign'
[ "liaosiweiorxiaowei@gmail.com" ]
liaosiweiorxiaowei@gmail.com
18044a0e30cce9a47d72ebd4809bc3217f8b1375
e175b9eee49c380791120c60b941579f2e5515dd
/drc/sources.py
ba84b3bf160af02ed884941dc0aeabf8172db2e7
[]
no_license
breckprog/drc
d22aca3ef704a84f50c1a3ff7c88337693e14978
dd2480832d01cdf04ca9bd86bfafc2972a3872ea
refs/heads/master
2021-01-15T23:40:14.461480
2012-08-15T19:35:17
2012-08-15T19:35:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,446
py
import pyaudio import wave from drc.interfaces import AudioFormat from drc.interfaces import AudioSource class WaveFileSource(AudioSource): def __init__(self, path, block_size=4096): self.source = source = wave.open(path) self.format = AudioFormat( source.getnchannels(), ...
[ "chris@archimedeanco.com" ]
chris@archimedeanco.com
a4c94f3f3a6279657df8f45bdb0c5d9e2ae8a7cd
a81d71d1531f7d9239c8f17f5e02a8c3f3896195
/exercises/migrations/0005_remove_exercise_description.py
a69acaf2c24e80c31c2abb6e3c2cb4b081482e38
[ "MIT" ]
permissive
cclauss/Workout-progress-tracker
d93736516fc6687d31aa3691943ec40191a3e558
d9613fb9333496455107bb066395066bd9f2018c
refs/heads/main
2023-03-18T12:57:51.401250
2021-03-09T13:47:31
2021-03-09T13:47:31
345,224,536
0
0
MIT
2021-03-07T00:24:56
2021-03-07T00:24:56
null
UTF-8
Python
false
false
337
py
# Generated by Django 3.1.6 on 2021-02-27 18:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('exercises', '0004_auto_20210226_1933'), ] operations = [ migrations.RemoveField( model_name='exercise', name='description', ...
[ "muhamzyali@gmail.com" ]
muhamzyali@gmail.com
81320af2874150869b4fbff0408572c3596f64c2
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/H3t4MkT9wGdL9P6Y3_23.py
596c054152d3c9d756301ad8c31e157dbf6e5f39
[]
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
846
py
""" Create a function that determines whether a number is **Oddish** or **Evenish**. A number is **Oddish** if the sum of all of its digits is odd, and a number is **Evenish** if the sum of all of its digits is even. If a number is **Oddish** , return `"Oddish"`. Otherwise, return `"Evenish"`. For example, `oddish_...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2bb45359dd7f8b3ac8d9d6b9e29e9c646f3ed3c4
468b36b3e69018ef2870ef9957a540e86dfa1e6b
/tunnistamo/wsgi.py
83d94e9a6c46eccc41f44d435a2bf9b7997fb2c9
[ "MIT" ]
permissive
City-of-Helsinki/tunnistamo
34688fdc05c5adf4205a4911caf91a3b97dc7612
508116944aa8583d374763ad1e35e1c845010c8b
refs/heads/develop
2023-09-04T06:26:22.129510
2023-08-16T10:06:49
2023-08-17T05:54:46
33,492,562
9
19
MIT
2023-08-30T05:34:09
2015-04-06T16:37:40
Python
UTF-8
Python
false
false
395
py
""" WSGI config for samltest 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.7/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
[ "juha.yrjola@iki.fi" ]
juha.yrjola@iki.fi
ad25dd5144cbf3666c81f32bc8f8dea3d6b2549c
f090c3e0faa70cf0ef7c4be99cb894630bce2842
/clients/qtui/QCustomFreqPower.py
e0bbe5f620aa62342fb27e2420a21c687859746e
[]
no_license
HaeffnerLab/resonator
157d1dc455209da9b7de077157bda53b4883c8b7
7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71
refs/heads/master
2021-01-09T20:48:03.587634
2016-09-22T18:40:17
2016-09-22T18:40:17
6,715,345
2
1
null
null
null
null
UTF-8
Python
false
false
1,699
py
import sys from PyQt4 import QtGui from PyQt4 import QtCore,uic import os class QCustomFreqPower(QtGui.QWidget): def __init__(self, title, parent=None): QtGui.QWidget.__init__(self, parent) basepath = os.environ.get('LABRADPATH',None) if not basepath: raise Exception(...
[ "soenkeamoeller@gmail.com" ]
soenkeamoeller@gmail.com
3aa418829f94f792b229948b7a0c1d37dab82d3d
8e8acc57b63a66cb1450fa4d015d4ddcd74cce85
/Python0-100/Day01-15/pyD5.py
87d68c9080f99cc727641df60a497d1b0199b0ee
[]
no_license
indeyo/PythonStudy
fc2241db7cec8075a59a307ff47c9de83494844b
099feb4e4c8dec9e68887cedd95705d831e51b0f
refs/heads/master
2021-03-29T19:04:24.553848
2020-06-05T15:07:33
2020-06-05T15:07:33
247,978,205
0
1
null
null
null
null
UTF-8
Python
false
false
7,147
py
# -*- coding: utf-8 -*- """ @Project : StudyPython0-100 @File : pyD5.py @Time : 2019-05-20 12:23:28 @Author : indeyo_lin @Version : @Remark : """ """ 练习题1:寻找水仙花数 概念: 水仙花数(Narcissistic number)也被称为超完全数字不变数(pluperfect digital invariant, PPDI)、 自恋数、自幂数、阿姆斯壮数或阿姆斯特朗数(Armstrong number),水仙花数是指一个 3 位数,它的每个位上的数字的 3次...
[ "indeyo@git.com" ]
indeyo@git.com
887a06c11bba42c6065bf4ba97a99bbdeca70087
275e770eaf9708e31d50dd62857fc52716e985af
/python/python/BASICS/diamond.py
4f67b8084714c3ac7b6149af30218a53a04c9d08
[ "MIT" ]
permissive
priyamshah112/Basic_Python
75127744a6a25c72d2eba8e399e920509bd17ee2
11447cf062209de750fbe938402d738b1a5ff76c
refs/heads/master
2021-10-10T15:43:50.151891
2019-01-13T13:46:40
2019-01-13T13:46:40
106,164,530
0
0
null
2018-10-10T19:07:16
2017-10-08T09:31:29
Python
UTF-8
Python
false
false
585
py
def pattern4(): userInput=int(input(" ")) if userInput > 0: # Prevents the computation of negative numbers for i in range(userInput): for s in range (userInput - i) : # s is equivalent to to spaces print(" ", end="") for j in range((i * 2) - 1): pr...
[ "priyamshah112@gmail.com" ]
priyamshah112@gmail.com
be43bcf5880b9f59cbddfa6052de53120aaef7cc
0a037e4ee03c5afbf6f58b7293fefab1cc6998cf
/week1/ChangingGuestList.py
9cac4e55150657570ec4c973315fa4606ffdff11
[]
no_license
mingyyy/crash_course
6ac2a41b14c821e96e3938047cb056ad2ce99280
dad9f9b37ef3093dad25a0cb7fddf0e65fed3571
refs/heads/master
2020-04-24T14:24:43.283617
2019-12-25T07:43:05
2019-12-25T07:43:05
172,019,856
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
''' 3-5. Changing Guest List: You just heard that one of your guests can’t make the dinner, so you need to send out a new set of invitations . You’ll have to think of someone else to invite . • Start with your program from Exercise 3-4 . Add a print statement at the end of your program stating the name of the guest w...
[ "j.yanming@gmail.com" ]
j.yanming@gmail.com
1cf34e720959629c3aa957efe9ea28ecb6916394
be616a70db476e3fca8d04b3ca0e425fcc02e4c3
/custom-outset/pkgroot/usr/local/outset/boot-every/boot-every_example.py
0df173b8dc736e7a4c18aeed67f805a090fbc4a5
[ "Apache-2.0" ]
permissive
ScarabMonkey/outset
40cf550e0d85bae3d3ec32f9dbdd83c2ee4bfe04
b142c0a3611eb706c1552ce2c4e56286a278cb76
refs/heads/master
2021-01-16T21:51:16.417841
2016-05-18T01:18:56
2016-05-18T01:18:56
25,203,112
1
0
null
null
null
null
UTF-8
Python
false
false
171
py
#!/usr/bin/python # Replace this script with your scripts, profiles, and/or packages # which you want to run at every boot. print 'These scripts will run at every boot.'
[ "chilcote+github@gmail.com" ]
chilcote+github@gmail.com
c3e08fe28c1c7aff9f88ed7121058fd89cc65d49
66358f0897dd92882344a9ec87adff2003c9bc76
/leetcode/1601~1700/1688. Count of Matches in Tournament.py
3b3532a815f3e0e419fed58ee788343210a64783
[]
no_license
Parkyes90/algo
973c5f84ed1cae41bb963a5838b835473c8dc984
86490aad1774631ad947bdf12818e9ddba8a8ed0
refs/heads/master
2023-04-06T23:17:08.372040
2023-03-30T10:18:11
2023-03-30T10:18:11
244,273,220
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
class Solution: def numberOfMatches(self, n: int) -> int: return n - 1 if __name__ == "__main__": s = Solution() for i in range(1, 200): answer = s.numberOfMatches(i) print(answer, i)
[ "parkyes90@gmail.com" ]
parkyes90@gmail.com
ea411cb36065f3269880f790f5707c513466fb6d
fa60618b9f68aee452b278c6efb6300e50d90dbc
/py_demo/序列之元组.py
f32ae0f8fa6629267a09c57352e5021da3d060f7
[]
no_license
ALICE5/Python
668feaaf87e88df0d14252c0fcbc8c5b479cb7c8
6b2037bd3e6fa5689f355a128739343779d28fe5
refs/heads/master
2021-01-01T16:26:57.170646
2017-09-18T09:31:30
2017-09-18T09:31:30
97,832,226
0
0
null
null
null
null
UTF-8
Python
false
false
1,014
py
# 元组 bTuple = (['Monday',1],2,3) print(bTuple) print(bTuple[0][0]) print(len(bTuple)) print(bTuple[1:]) cTuple = (24) print(cTuple) cTuple= (24,) # 创建一个元素的Tuple print(cTuple) # 列表的元素可变 元组的元素不可变 aList = ['AXP','BA','CAT'] aTuple = ('AXP','BA','CAT') aList[1] = 'Alibaba' print(aList) # aTuple[1] = 'Alibaba' 报错 # print(a...
[ "alice4u@bjtu.edu.cn" ]
alice4u@bjtu.edu.cn
0002d3163f51a591e082bea0f4df9e81611e7206
34f365117eb1d846fa922c24f3fc650188ce9746
/bin/utils/sequence.py
183102167a5709120afbc0bc54feafb86ea332c7
[ "MIT" ]
permissive
PinarSiyah/NGStoolkit
53ac6d87a572c498414a246ae051785b40fbc80d
b360da965c763de88c9453c4fd3d3eb7a61c935d
refs/heads/master
2021-10-22T04:49:51.153970
2019-03-08T08:03:28
2019-03-08T08:03:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,180
py
import os import re import itertools kDNAcomplementaryDictionary = { 'A':'T', 'T':'A', 'G':'C', 'C':'G', 'a':'t', 't':'a', 'g':'c', 'c':'g', 'n':'n', 'N':'N', 'x':'x', 'X':'X', 'B':'V', 'V':'B', 'D':'H', 'H':'D', 'b':'v', 'v':'b', 'd':'h', 'h':'d' } kDNAmotifDictionary = { 'A': '(A)', 'C': '(C)', 'G': '(G)', ...
[ "adebali@users.noreply.github.com" ]
adebali@users.noreply.github.com
686ed98c0c83aab69d32751a7e1ee432f24cb9c5
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-3-3.py
515d542aab62b7726e3fe393ce2aa53cc310e278
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
590
py
from output.models.nist_data.list_pkg.unsigned_byte.schema_instance.nistschema_sv_iv_list_unsigned_byte_enumeration_3_xsd.nistschema_sv_iv_list_unsigned_byte_enumeration_3 import NistschemaSvIvListUnsignedByteEnumeration3 from output.models.nist_data.list_pkg.unsigned_byte.schema_instance.nistschema_sv_iv_list_unsigned...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
a2a1b25a406be4c32f700974bc2e77e29b000f5e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03263/s638044898.py
aca586ad7e995599f181cdca99a5678b4193e6cb
[]
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
662
py
#!/usr/bin/env python3 def main(): h, w = map(int, input().split()) a = [] for i in range(h): l = list(map(int, input().split())) a.append(l) hold = False opers = [] for i in range(h): jlist = range(w) if i % 2 == 0 else reversed(range(w)) for j in jlist: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4dd2c8c46704238c877738443ca12e3a552f4e01
19a32440205b2caeec67c73c10d917b5fb30a86a
/isi_sdk/models/node_status_node_powersupplies.py
20b82a1b07043cdccaa31552f8993086664d7cdd
[ "MIT", "Apache-2.0" ]
permissive
marrotte/isilon_sdk_python
480e84312f5924a506aeb09c9c7cae79a2b9b7f4
91039da803ae37ed4abf8d2a3f59c333f3ef1866
refs/heads/master
2020-03-23T07:31:40.376316
2016-06-07T23:44:31
2016-06-07T23:44:31
141,277,076
1
0
MIT
2018-07-17T11:02:08
2018-07-17T11:02:08
null
UTF-8
Python
false
false
7,209
py
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
[ "Alex.Pecoraro@isilon.com" ]
Alex.Pecoraro@isilon.com
c9a6279abc5bbbe47bfd78e2aaa4472320ded720
cb836bde47c790c7ad990d44d86d60c13f43a2a0
/tests/test_front_matter/test_fixtures.py
753ab84b13543b423619d17cdd0a5044e91f398d
[ "MIT" ]
permissive
iooxa/markdown-it-py
133028a981af715ce244554e26b92b16fc4443ac
21837dfa0ce9be249de372bb10733a534f8e0a50
refs/heads/master
2022-11-19T14:23:23.618106
2020-07-20T15:57:16
2020-07-20T15:57:16
281,160,226
0
0
MIT
2020-07-20T15:57:17
2020-07-20T15:50:02
null
UTF-8
Python
false
false
1,121
py
from pathlib import Path import pytest from markdown_it import MarkdownIt from markdown_it.token import Token from markdown_it.utils import read_fixture_file from markdown_it.extensions.front_matter import front_matter_plugin FIXTURE_PATH = Path(__file__).parent.joinpath("fixtures.md") @pytest.mark.parametrize("li...
[ "chrisj_sewell@hotmail.com" ]
chrisj_sewell@hotmail.com
de9d5765233a4292c17484d27337ef030fa50a51
cd486d096d2c92751557f4a97a4ba81a9e6efebd
/16/addons/plugin.video.moviedb/resources/modules/streamlic.py
e44ebd89b27d940d7d634baf9d47613a053953e5
[]
no_license
bopopescu/firestick-loader-kodi-data
2f8cb72b9da67854b64aa76f720bdad6d4112926
e4d7931d8f62c94f586786cd8580108b68d3aa40
refs/heads/master
2022-04-28T11:14:10.452251
2020-05-01T03:12:13
2020-05-01T03:12:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,846
py
import urllib,urllib2,re,cookielib,string,sys,main import xbmc, xbmcgui, xbmcaddon, xbmcplugin from addon.common.addon import Addon import datetime import time import os from resources.modules import live from addon.common.net import Net net = Net() addon_id = 'plugin.video.moviedb' ADDON=xbmcaddon.Addon(id='plugin.vid...
[ "esc0rtd3w@gmail.com" ]
esc0rtd3w@gmail.com
83fb2472aaf42e8255c4187696d8e3b37424f71f
e40e940d7115319dec45778f36abd96628e178c0
/main.py
ab16a3bdc46e575c46f8559a163129d1c4de8fd6
[]
no_license
mcnigno/CRM5
a270348c978c306ecf5373c322102d2186943d98
3bf3367dd1a21e7765491fedb235dc0b46b492e0
refs/heads/master
2023-03-20T09:07:00.082906
2021-02-18T00:45:06
2021-02-18T00:45:06
339,892,754
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
#from openpyxl import load_workbook import pymysql.cursors import pymysql.connections ''' 'db_user_name' => 'suite_user', 'db_password' => 'lollipop300777', 'db_name' => 'suitecrm', ''' # Open database connection db = pymysql.connect("localhost","suite_user","lollipop300777","suitecrm" ) # prepare a cursor object usin...
[ "mcnigno@gmail.com" ]
mcnigno@gmail.com
b4f531825f905551f9fcf336c67d0c8dcff83f96
7be8ca6c69a6cdb058622b873a3041c1c3da933d
/tests/testlibraries/process_pool_executor_simulator.py
f5ed1d4d36a4c6ef04dee6e52e46b5a6cad4f131
[ "MIT" ]
permissive
UiSkngs/asyncffmpeg
32eb1bf4ae1bc10545710513e5acc06479bc9531
1980aec3065b19cd9d0fffacf1953327062818b8
refs/heads/main
2023-07-25T06:47:26.769867
2021-08-16T07:59:39
2021-08-16T07:59:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
""" To collect coverage in except KeyboardInterrupt block. Since coverage.py can't trace asyncio.ProcessPoolExecutor. see: https://github.com/nedbat/coveragepy/issues/481 """ from __future__ import annotations import multiprocessing import os import signal from contextlib import AbstractContextManager from queue impor...
[ "yuk.hik.future@gmail.com" ]
yuk.hik.future@gmail.com
c96fb11bb7390e2178a31eeb5b1f5135bf8a1ced
d076c40c36685a985958c5ba7e14761a966cf333
/2019/binary_tree/all_elements_in_two_binary_search_tree_1305.py
8d4fdf6f7c83f5319dce62f61f0321b6616105ee
[]
no_license
yehongyu/acode
e65eb230210c657b8c5e4d5928cbe9437f77d717
176cc1db3291843fb068f06d0180766dd8c3122c
refs/heads/master
2023-04-20T14:27:45.123969
2021-05-08T04:36:39
2021-05-08T04:36:39
365,412,513
0
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def convert(self, root, arr): if root == None: return if root.left: self.convert(root.left, arr) ...
[ "aodandan@bytedance.com" ]
aodandan@bytedance.com
f20f5f23850b1d93f637e277a17a321aea5d1627
fc04e5a30e765ceba3c804750fd5bf5090727ae4
/tds/base.py
b02b291a88ff62c83cf26a967891c5588ae633c5
[ "MIT" ]
permissive
by46/geek
7514b6b55ae9040553e1f52078dbcd1c7ed29250
04b08d0dff80c524bd471ead3fe524423eebf123
refs/heads/master
2020-04-12T08:01:59.273455
2018-01-26T06:43:54
2018-01-26T06:43:54
32,636,257
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
import struct from io import BytesIO class StreamSerializer(object): TOKEN_TYPE = 0x00 def __init__(self): self.buf = BytesIO() def marshal(self): """ serialize into tds stream bytes stream :return: """ message = self.buf.getvalue() ...
[ "ycs_ctbu_2010@126.com" ]
ycs_ctbu_2010@126.com
1f4eed678bd70a60641130a74b0b24fbcd2ff619
49a167d942f19fc084da2da68fc3881d44cacdd7
/kubernetes_asyncio/test/test_policy_v1beta1_allowed_host_path.py
bcaf7acc3c77dbec2b40785121dddf4f9e3a40c6
[ "Apache-2.0" ]
permissive
olitheolix/kubernetes_asyncio
fdb61323dc7fc1bade5e26e907de0fe6e0e42396
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
refs/heads/master
2020-03-19T12:52:27.025399
2018-06-24T23:34:03
2018-06-24T23:34:03
136,546,270
1
0
Apache-2.0
2018-06-24T23:52:47
2018-06-08T00:39:52
Python
UTF-8
Python
false
false
1,096
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
[ "tomasz.prus@gmail.com" ]
tomasz.prus@gmail.com
1b6d8c9f6f90221f92ee1ea783c4a5f853f20ffa
be55991401aef504c42625c5201c8a9f14ca7c3b
/python全栈3期/线程/生产者消费者模型--通知模式.py
d31d5c8e3edb34c576b559376b743f8c09647b48
[ "Apache-2.0" ]
permissive
BillionsRichard/pycharmWorkspace
adc1f8bb15b58ded489fc8dec0df397601823d2c
709e2681fc6d85ff52fb25717215a365f51073aa
refs/heads/master
2021-09-14T21:12:59.839963
2021-08-08T09:05:37
2021-08-08T09:05:37
143,610,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
# encoding: utf-8 """ @version: v1.0 @author: Richard @license: Apache Licence @contact: billions.richard@qq.com @site: @software: PyCharm @file: 生产者消费者模型.py @time: 2018/5/27 17:05 """ from pprint import pprint as P import time,threading,queue,random q = queue.Queue() def producer(name): count = 0 ...
[ "295292802@qq.com" ]
295292802@qq.com
aa3a80d6e3956e20fb433b2065c5517375a5a2c5
30898d9eae9eb20c418209df29d5b06cedf7430f
/AnswerIt/Accounts/urls.py
9e0f81523f13c505e3226b4c1dc5526f6107607d
[]
no_license
Siddhant552/answerit
e097ab4f254d66d1f133f07788a4aed894e2298c
388c162b31ea14337c56518368b51f1b0b949c96
refs/heads/master
2023-07-03T20:30:51.234966
2021-08-03T09:16:36
2021-08-03T09:16:36
392,255,836
0
0
null
null
null
null
UTF-8
Python
false
false
1,764
py
from django.urls import path from Accounts import views app_name = 'Accounts' urlpatterns = [path('register/', views.register, name = "register"), path('user_login/', views.user_login, name = "user_login"), path('user_logout/', views.user_logout, name = "user_logout"), pat...
[ "abc@gmail.com" ]
abc@gmail.com
74393e47f4c70270604d0b2804fd8c64d1c7cbe1
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2373/60870/289838.py
cc6cbb6f281332204eb9b7b11a6527cac3d13385
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
682
py
def maxMoney(array, res1, res2): res1_list = [] res1 = res1 + array[0] res1_list.append(res1) for i in range(2, len(array)): res1_res = res1 + maxMoney(array[i:], 0, 0) res1_list.append(res1_res) for i in range(1, len(array)): res2_res = res2 + maxMoney(array[i:], 0, 0) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
908ded34b70a62801246fa0ff3f74993dd2164e5
b39d9ef9175077ac6f03b66d97b073d85b6bc4d0
/Gonal-f_WC500023748.1.py
5f763ab3e2c228113155b165b896e0341738a7b5
[]
no_license
urudaro/data-ue
2d840fdce8ba7e759b5551cb3ee277d046464fe0
176c57533b66754ee05a96a7429c3e610188e4aa
refs/heads/master
2021-01-22T12:02:16.931087
2013-07-16T14:05:41
2013-07-16T14:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
{'_data': [['Very common', [['Nervous system', u'Huvudv\xe4rk'], ['Reproductive system', u'Ovariella cystor'], ['General', u'Reaktioner p\xe5 injektionsst\xe4llet (t.ex. sm\xe4rta, rodnad, bl\xe5m\xe4rke, svullnad och/eller irritation p\xe5 injektionsst\xe4llet) Behan...
[ "daro@daro-ThinkPad-X220.(none)" ]
daro@daro-ThinkPad-X220.(none)
0044fb956edf0cf947f049534a15ad4a1c323b81
20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7
/dbm/inpaint/learn_norb_prepro_global.py
e4824e74cfd183fe21e1a3c06f1123854bf1087b
[]
no_license
sarahboufelja54/galatea
f5664f0b3117629b2c5bbe078a1bd52bb5e359e6
002a9f2905868be25b71770190fb2d5eda11c861
refs/heads/master
2020-12-04T13:45:07.697189
2018-12-12T16:27:09
2018-12-12T16:27:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
from pylearn2.datasets.norb_small import FoveatedNORB dataset = FoveatedNORB(which_set='train') from pylearn2.datasets.preprocessing import Standardize standardize = Standardize(global_mean=True, global_std=True) standardize.apply(dataset, can_fit=True) from pylearn2.utils import serial serial.save("norb_prepro_gl...
[ "goodfellow.ian@gmail.com" ]
goodfellow.ian@gmail.com
0fb4532f039ae00664eb4f94bd3b49dbccc27ebb
a97db7d2f2e6de010db9bb70e4f85b76637ccfe6
/leetcode/1026-Maximum-Difference-Between-Node-and-Ancestor.py
1f17f991cd8183b4cf271da43f2a57b44d621330
[]
no_license
dongxiaohe/Algorithm-DataStructure
34547ea0d474464676ffffadda26a92c50bff29f
a9881ac5b35642760ae78233973b1608686730d0
refs/heads/master
2020-05-24T20:53:45.689748
2019-07-19T03:46:35
2019-07-19T03:46:35
187,463,938
0
1
null
null
null
null
UTF-8
Python
false
false
382
py
class Solution(object): def maxAncestorDiff(self, root): def dfs(node, low, high): if not node: return high - low else: high = max(high, node.val) low = min(low, node.val) return max(dfs(node.left, low, high), dfs(node.right, low, high)...
[ "ddong@zendesk.com" ]
ddong@zendesk.com
796f4fcf8af8983edc54026cfabf15df0349b79f
7fdb54681f4d83bd1135f0da20d6f858f755b971
/Tutorial/p0_Shapes_parametric.py
b7c9e1b4374ee61ab4d30c00a1beb491eb60c0f6
[ "MIT" ]
permissive
miriamhille/manim
385da4ef0fdf828690ae8c54c4c59f873cedaf42
af3a8d5809b0f8ac579dbfa02b223efd16987e06
refs/heads/master
2020-04-30T23:56:43.328357
2019-03-22T14:26:33
2019-03-22T14:26:33
177,155,840
0
0
null
2019-03-22T14:33:25
2019-03-22T14:33:25
null
UTF-8
Python
false
false
856
py
from big_ol_pile_of_manim_imports import * class Shapes(Scene): CONFIG ={ "color": BLUE, "run_time" :6 } def construct(self): print("Start") dot = Dot() moving_dot= Dot(color=RED) self.add(dot) for order in range(3,4): self.para_func= lamb...
[ "jan-hendrik.mueller@gmx.net" ]
jan-hendrik.mueller@gmx.net
ba0106c4f5d8de2966869cba9e9164485c7a3bfb
4f83471a669772731a7b1781d46be6c4eba7ef33
/脚本化爬虫/SSM/SSM/settings.py
e8c805254727298bb7bfd0922b454870b5e57570
[]
no_license
odtu945/LiuFan_Spider
19a5eb08ebafc5865931bdf96aea2b9dd436a614
848b3aff4754c102491b201684858c3f116ff90b
refs/heads/master
2022-01-05T10:12:32.085245
2019-03-24T02:30:38
2019-03-24T02:30:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,894
py
""" Django settings for SSM project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import...
[ "liufan.dery@gmail.com" ]
liufan.dery@gmail.com
6d62966fb34a57dd2d6b89f52e77706e8254e9bd
450c27ee64ab60f9cf842eaddda52279012d7885
/0x06-python-classes/6-square.py
3333aa937135b961d4bb60c373ccd0acdd223ffa
[]
no_license
dacorredor11/holbertonschool-higher_level_programming
5a2805d62736021d26c0731085ad251bf58d45f6
85e54b116fbf359909cad39698ca09945cb639e1
refs/heads/master
2022-12-16T19:43:21.508586
2020-09-25T03:48:23
2020-09-25T03:48:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,997
py
#!/usr/bin/python3 """This module creates a Class Square""" class Square: """Class Square with a constuctor method""" def __init__(self, size=0, position=(0, 0)): """ Initializes square Args: size: size for __size attribute position: position for __position at...
[ "vidmore8@gmail.com" ]
vidmore8@gmail.com
4320547ece30478b8861f38aa571eaec9a5eaa1b
7e90a1f8280618b97729d0b49b80c6814d0466e2
/workspace_pc/catkin_ws/cartographer_ws/build_isolated/jackal_msgs/catkin_generated/pkg.installspace.context.pc.py
818d3ef4f214a704a113568191b05977ee87fca1
[]
no_license
IreneYIN7/Map-Tracer
91909f4649a8b65afed56ae3803f0c0602dd89ff
cbbe9acf067757116ec74c3aebdd672fd3df62ed
refs/heads/master
2022-04-02T09:53:15.650365
2019-12-19T07:31:31
2019-12-19T07:31:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/gse5/catkin_ws/cartographer_ws/install_isolated/include".split(';') if "/home/gse5/catkin_ws/cartographer_ws/install_isolated/include" != "" else [] PROJECT_CATKIN_DEPENDS = "std_msgs;message_run...
[ "sh9339@outlook.com" ]
sh9339@outlook.com
20b6a1ba5c9b6d74622a4b343a91d701d1e8c288
2fed297f777ac6a01f21870d74e4259ed0c17dfd
/examples/models/decision_tree/decision_tree__fixed.py
c272831b7795969ce8cc1ac0e6ea77eff8cdf5e0
[ "MIT" ]
permissive
vahndi/probability
1bf4e5e7835d5dc57b5a5a43d76ded2b23975ec5
ff3f5434d3da0d46b127b02cf733699e5a43c904
refs/heads/master
2023-05-24T17:04:00.430326
2023-05-22T13:53:41
2023-05-22T13:53:41
231,456,036
3
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
from mpl_format.axes import AxesFormatter from probability.models.decision_tree import DecisionTree dt = DecisionTree() # level 1 dt.add_decision(name='D1') dt.add_option(name='D1.a', p_success=0.7, amount=50, parent_name='D1') dt.add_option(name='D1.b', p_success=0.5, amount=20, parent_name='D1') # level 2 dt.add_de...
[ "vahndi.minah@frogdesign.com" ]
vahndi.minah@frogdesign.com
90baaf2cc57c6b0daec5b2efb9690bce19160a03
913e24ea110f839c73363bc1aac9673e561fa5f8
/rlkit/examples/skewfit/sawyer_pickup.py
4ae1736af2ba60f6c6a37607a14b72103975494f
[ "MIT" ]
permissive
PierreExeter/WidowX-reacher
24e2b3f72e9aec24a9a61e6a8958c200e0dbe893
560c6779dc91a887191f344c43de24926ba75b4d
refs/heads/master
2023-03-06T13:48:12.810858
2021-02-22T15:36:52
2021-02-22T15:36:52
264,480,232
4
0
MIT
2021-02-22T15:27:44
2020-05-16T16:36:53
Python
UTF-8
Python
false
false
5,778
py
import rlkit.util.hyperparameter as hyp from rlkit.envs.goal_generation.pickup_goal_dataset import ( generate_vae_dataset, get_image_presampled_goals_from_vae_env, ) import rlkit.torch.vae.vae_schedules as vae_schedules from multiworld.envs.mujoco.cameras import ( sawyer_pick_and_place_camera, ) from rlkit...
[ "pierre.aumjaud@gmail.com" ]
pierre.aumjaud@gmail.com
5a807fba56695bf981a1599c6fd490682fe43d9d
cbf654fe5ed16eaa87db572d2dc3773c68308df8
/downloader/utils.py
fe69ce20d656227e4be71b6237e5fc64a151f72f
[ "MIT" ]
permissive
zhongxinghong/LeetCode
75740a91852d9e0c12100af2763734772e90099a
dfb2c9ced49f40937002bd09918057becf02901d
refs/heads/master
2022-11-30T10:25:47.044267
2020-08-08T02:47:33
2020-08-08T02:47:33
285,960,213
5
0
null
null
null
null
UTF-8
Python
false
false
1,136
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File: utils.py # Created Date: 2020-08-07 # Author: Rabbit # -------------------------------- # Copyright (c) 2020 Rabbit import pickle import gzip def b(s, encoding="utf-8"): """ str/int/float to bytes """ if isinstance(s, bytes): return s if isins...
[ "zxh2017@pku.edu.cn" ]
zxh2017@pku.edu.cn
cc221b5f2ff36927075f1fe5783edbb98ed98c65
366a2e9adaac0466a12b63ff32857c13b311a42f
/05/5.19/method_01.py
77c9e39078f4e2a6a7f6776e6d6375d81ea23d39
[]
no_license
techsharif/python_bangla_tutorial
17f776054354f59a3456edf9169518aef3e150c6
ed421ed87c81a6309292089c30c150ec404de4c2
refs/heads/master
2021-01-22T02:52:58.316564
2020-07-03T11:05:37
2020-07-03T11:05:37
102,254,840
0
2
null
null
null
null
UTF-8
Python
false
false
221
py
str1 = "hEllo WoRLd" str1 = str1.lower() print(str1) str1 = "this is a line. \nthis is another line" str1 = str1.upper() print(str1) str1 = "this is a line. \nthis is another line" str1 = str1.capitalize() print(str1)
[ "sharif.cse.hstu@gmail.com" ]
sharif.cse.hstu@gmail.com
9427bbfa0b0a0e3d58c3eeca21cf05921c41859e
f0c07e4a42aba9b30309f810fb3bc0d8c761b168
/src/elasticsearch_dsl-stubs/__init__.pyi
1e7bab9da461767b9227025ae5203836f707488e
[ "Apache-2.0" ]
permissive
lschmelzeisen/nasty-typeshed
0d498b3c8f2cc6ad2d973c667b2f82dfc54eab18
1f37fa48e9f941ddbf35e4e6c904f7fc91078d90
refs/heads/master
2023-03-22T06:28:41.889328
2021-03-15T18:46:01
2021-03-15T18:46:15
264,028,905
1
0
null
null
null
null
UTF-8
Python
false
false
7,322
pyi
# # Copyright 2019-2021 Lukas Schmelzeisen # # 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 t...
[ "l.schmelzeisen@gmx.de" ]
l.schmelzeisen@gmx.de
70db713d41623b2b5723b550561231097bc936c7
adaf5d5cd4c46db0387f6dfd7de34d38cf3b06d0
/Commands/Uptime.py
090b7da468d1539dd06607326d5e1c83b32dba8f
[ "MIT" ]
permissive
CrushAndRun/PyMoronBot-LugNut
b0f23437a18fb27ee22313469ad2a396ddaa8f13
d695d8f36b23fc584b3c7d795c12a9e4577c806b
refs/heads/master
2020-02-26T13:42:41.197328
2017-12-07T15:36:58
2017-12-07T15:36:58
67,321,948
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
# -*- coding: utf-8 -*- """ Created on Dec 18, 2011 @author: Tyranic-Moron """ from IRCMessage import IRCMessage from IRCResponse import IRCResponse, ResponseType from CommandInterface import CommandInterface import datetime import psutil class Uptime(CommandInterface): triggers = ['uptime'] help = "uptim...
[ "matthewcpcox@gmail.com" ]
matthewcpcox@gmail.com
b095f8e301ef908ba2fc0664edbdc9e0661320fd
264f392530710b287ac54f40ea805638c6348cc3
/tests/run_neural_bayes_dice_test.py
842ab0f847e726dd5b7890e32a760e634479bbdc
[ "Apache-2.0" ]
permissive
google-research/dice_rl
b26dd2231b0a664f11e0ede08d8209a4ace1cd2f
6551950608ad0472ddf6e8f4075f51793c9d2763
refs/heads/master
2023-08-06T21:35:15.690175
2023-01-30T19:26:12
2023-01-30T19:27:38
285,369,787
106
14
Apache-2.0
2023-01-30T19:27:44
2020-08-05T18:15:53
Python
UTF-8
Python
false
false
1,323
py
# 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 agreed to in writing, ...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
e06ccc4a9e3286de0d963732848ed78debd8253e
d680560fbb3cc7c31bdac538e43c0d2874974bce
/flask-backend/app.py
253e910e1364731ed2b0781b3a563d942ed2724f
[]
no_license
LukaszMalucha/Js-React
b3cf29deb4d0333e77a0f20b61b80ecc69a3bb3e
887dd3c4d6b82255d706f2b12cddac65c85567d6
refs/heads/master
2020-04-30T07:27:15.132022
2019-03-30T17:33:55
2019-03-30T17:33:55
176,684,458
1
0
null
null
null
null
UTF-8
Python
false
false
166
py
import flask app = flask.Flask("__main__") @app.route("/") def my_index(): return flask.render_template("index.html", token="Hello World") app.run(debug=True)
[ "lucasmalucha@gmail.com" ]
lucasmalucha@gmail.com
7767079ea7bb3d3c332aea460ba08aa6e521d628
7ec04a925d5180e677dd8b4306ccd4a1ea0d96a5
/leetcode/107_Binary_Tree_Level_Order_Traversal_II.py
a0bb7f62eb4944bf6f4b56e2e8e216466f9984bb
[]
no_license
JianxiangWang/python-journey
883e6a9f0b03ce2bd6fd71f272728dfc65c363b0
f2c4f727689567e00ee06560132fca55a6fd9286
refs/heads/master
2020-03-25T22:54:23.462961
2019-02-06T07:55:03
2019-02-06T07:55:03
144,249,290
1
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
# coding=utf-8 # # Copyright (c) 2018 Baidu.com, Inc. All Rights Reserved # """ The 107_Binary_Tree_Level_Order_Traversal_II file. Authors: Wang Jianxiang (wangjianxiang01@baidu.com) """ """ Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level f...
[ "w51141201062@163.com" ]
w51141201062@163.com
9466bee4ea009b28a0a275034e466c7c8cd6c1d4
af93b3909f86ab2d310a8fa81c9357d87fdd8a64
/advanced/cas5/zadatak2.py
73ee62bd5d6a891a995eb2a99344677d288b75d0
[]
no_license
BiljanaPavlovic/pajton-kurs
8cf15d443c9cca38f627e44d764106ef0cc5cd98
93092e6e945b33116ca65796570462edccfcbcb0
refs/heads/master
2021-05-24T14:09:57.536994
2020-08-02T15:00:12
2020-08-02T15:00:12
253,597,402
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
print("Otvaranje datoteke...") datoteka = open(".\\test.txt","w", encoding="utf-8") print("Upisivanje podataka u datoteku") datoteka.write("Biljana Pavlovic\nPajton - napredni nivo") print("Zatvaranje datoteke") datoteka.close() print("Otvaranje datoteke za citanje") fajl = open("test.txt","r",encoding="utf-8") pr...
[ "zabiljanupavlovic@gmail.com" ]
zabiljanupavlovic@gmail.com
26faec4a3f393ca576a9d14e8229e0eb413c36f7
72c7e87d242cf5cb1bf338d22d4f821cc7d4e916
/basics/for_demo.py
125a6509441bea04dc2a0504fc4719c26cf42a67
[]
no_license
srikanthpragada/DEMO_PYTHON_02_DEC_2019
5f7332e1ad2b231769e3dff94c79e79c9df9a58f
5d67c2194bf1905fd8636fdcbb169c9e94b5ad49
refs/heads/master
2020-09-24T14:44:05.048189
2019-12-23T01:34:13
2019-12-23T01:34:13
225,783,571
1
0
null
null
null
null
UTF-8
Python
false
false
145
py
for n in range(1, 11): print(n) for n in range(5): print(n) for n in range(1,11,2): print(n) for n in range(10,0,-1): print(n)
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
9d0ddfc45f2cc9e15aedfa9079d5ef7183313b77
eea8de43f0f97643ed52e7a90ccfa7d5573be2f8
/zooniverse/settings/base.py
b890ea1317fc353d5dda9f24aa957b5a569e0648
[ "MIT" ]
permissive
ADACS-Australia/SS18A-JBanfield
9b2c72a84fdf76c8a5974c4e47dac41aa01cda75
26196091cc83f88f28abdf979276ee439349efa8
refs/heads/master
2021-07-12T11:01:52.250808
2018-11-26T02:31:43
2018-11-26T02:31:43
136,153,818
0
0
null
null
null
null
UTF-8
Python
false
false
4,448
py
""" Distributed under the MIT License. See LICENSE.txt for more info. """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangop...
[ "ssaleheen@swin.edu.au" ]
ssaleheen@swin.edu.au
1680cce5a89556f0dadb7ac5e3b0338e096e062b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2857/60623/258155.py
8c3a8aa0edc8a5113d62a6b2f47b283e46e5b5e0
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
674
py
# 给你一个由 n 个整数组成的数组 a。 你的任务是找到数组中所有元素的公约数的数量。 # 例如,如果数组 a 为 [2,4,6,2,10],则 1 和 2 为这个数组的公约数(因此答案为2)。 size=int(input()) tempList=input().split() intList=[] for var in tempList: intList.append(int(var)) intList.sort() cri=intList[0] resultList=[] sign=False for var in intList: if var%2!=0: sign=True break for i in r...
[ "1069583789@qq.com" ]
1069583789@qq.com
25336b9c21bb1ac2d7b3e77c0ba3dfadcdfd468e
7caa438706a423dd9779a81f8345fcf1ec11e921
/terminal_animation/matrix.py
59606f2b0d02a7a27ed9635bc61c17b707449f51
[]
no_license
tamarinvs19/python-learning
5dd2582f5dc504e19a53e9176677adc5170778b0
1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9
refs/heads/master
2021-07-15T13:23:24.238594
2021-07-08T07:07:21
2021-07-08T07:07:21
120,604,826
3
0
null
null
null
null
UTF-8
Python
false
false
730
py
from random import randint from time import sleep y = 1 def g(x): global y y = (y + 10) % 239 return (y%139)**2 + 2*(x%120)**2 +5 t = 1 def h(x): global y, t y = (y + 10) % t t = (t + 10) % 101+1 return (y%139)**3 + 2*(x%120)**2 +5 def i(x): global y, t y = (y + 10) % t t = (...
[ "slavabarsuk@ya.ru" ]
slavabarsuk@ya.ru
afc8f03b344c5f8e65e92896cbc6e3e047340722
2d27c9b9d8cb7ff621f5db9f15afe6667a361fb8
/Уроки/1/код/без функций/sepia.py
dc4c6c93fa885a6324871a74d7113defab8527ab
[]
no_license
arskhal/AC2016
b736b6dab4653bdc6ed0a3a0fd67c0a0193b031d
789b3af56ba7f7933337064598ee52c288a04640
refs/heads/master
2021-01-21T18:58:22.800348
2016-09-07T20:14:23
2016-09-07T20:14:23
67,506,615
0
0
null
2016-09-06T12:35:05
2016-09-06T12:35:04
null
UTF-8
Python
false
false
540
py
from PIL import Image im = Image.open("../cat.jpg") pixels = im.load() x, y = im.size k = 200 # коэффицент влияющий на глубину сепии for i in range(x): for j in range(y): r, g, b = pixels[i, j] # находим среднее значени нужное для сепии middle_value = (r + g + b) // 3 # формир...
[ "assigdev@gmail.com" ]
assigdev@gmail.com
4c03fac99240422e46aef9b01ff3f39569320944
8ce656578e04369cea75c81b529b977fb1d58d94
/cabinet/signal_handlers.py
e5cb65516b7626b0425f15fb421a007e45373463
[]
no_license
JJvzd/django_exp
f9a08c40a6a7535777a8b5005daafe581d8fe1dc
b1df4681e67aad49a1ce6426682df66b81465cb6
refs/heads/master
2023-05-31T13:21:24.178394
2021-06-22T10:19:43
2021-06-22T10:19:43
379,227,324
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
from django.db.models.expressions import F from django.db.models.signals import post_save from django.dispatch.dispatcher import receiver from cabinet.models import WorkRule @receiver(post_save, sender=WorkRule) def add_work_rule(sender, instance, **kwargs): from clients.models import Agent Agent.objects.all...
[ "javad@MacBook-Pro-Namig.local" ]
javad@MacBook-Pro-Namig.local
cf23276b685cc6df670245ffeb100310529a796a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_recaptures.py
54924b99a81b1d7f3f1b569edda8a473f161286c
[ "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
259
py
from xai.brain.wordbase.verbs._recapture import _RECAPTURE #calss header class _RECAPTURES(_RECAPTURE, ): def __init__(self,): _RECAPTURE.__init__(self) self.name = "RECAPTURES" self.specie = 'verbs' self.basic = "recapture" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
267537bc767f26ec1d4f08929f9ccd2730431a12
75fcc941edf40bb337f7aa56fde720ad905083e7
/pyeee/utils/__init__.py
fa2283b91f19505948e06eaacf2d2500bfa10f7c
[ "MIT" ]
permissive
Mazzol/pyeee
133ee0276db6a747220fa83e5af2ade686718abc
d351de2ccc94b309139b54620dcc97bda63f9d13
refs/heads/master
2021-02-26T14:40:23.329131
2020-02-17T22:05:44
2020-02-17T22:05:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
#!/usr/bin/env python from __future__ import division, absolute_import, print_function """ Purpose ======= Utilities used with and within pyeee. :copyright: Copyright 2019-2020 Matthias Cuntz, see AUTHORS.md for details. :license: MIT License, see LICENSE for details. Subpackages =========== .. autosummary:: fun...
[ "mc@macu.de" ]
mc@macu.de
c8cbd15304463ef274ed0f9ce0fa5258e7057ef9
2885f6041427be22918e7a39378b4b5270c3fa5d
/Python/sudoku/sudokuALG3.py
4b9a113230fadf88719221f42034df5fde423e30
[ "MIT" ]
permissive
lucasosouza/apps
cb6ad89f85c75f637d8db4c23fc557fa4715e9e8
f71146e8cddf78194b4c3313401c03cb5f842323
refs/heads/master
2021-09-01T14:09:13.510885
2017-12-27T11:03:23
2017-12-27T11:03:23
115,465,349
0
0
null
null
null
null
UTF-8
Python
false
false
4,023
py
#arc consistency implementation with backtracking from sys import stdout from util import Queue as queue import copy def solve(string): variables = stringToVariables(string) assignment = {k:v[0] for k,v in variables.items() if len(v)==1 } prettyPrint(backtrackingSearch(variables, assignment)) def initializeArcQueu...
[ "lucasosouza@gmail.com" ]
lucasosouza@gmail.com
2ff9d4171a0d4341d5e48c18c4b84917586c324e
8fdab174252614c3d0eea09a4bd7aa262c087fd1
/python/Python27/config/ConfigParser_populate.py
6639e22d157fd5df6556e3b9576ef3978857a43b
[]
no_license
idreesdb/Tutorials
a5190c72ad9ad25d9e8302c01357939bd62b75d8
754cd20250b7f826caf76a1d3c188826a4babbd3
refs/heads/master
2021-01-17T07:37:01.623156
2016-05-27T14:03:28
2016-05-27T14:03:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
#!/bin/python from ConfigParser import SafeConfigParser parser = SafeConfigParser() parser.add_section('bug_tracker') parser.set('bug_tracker', 'url', 'http://localhost:8800/bugs') parser.set('bug_tracker', 'username', 'dhellman') parser.set('bug_tracker', 'password', 'secret') for section in parser.sections(): pri...
[ "slxecas@gmail.com" ]
slxecas@gmail.com
bb56da2f37d8d2609527c8bf90b1d16809bab9ef
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/46Raiu9C7caNsgjqH_6.py
97916a1032ac00036ce518a026f77cb46e33c0e2
[]
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
615
py
""" Create a function that checks if the given arguments are of the same type. Return `True` if they are and `False` if they're not. ### Examples compare_data(1, 6, 5, 3, 7, 9) ➞ True compare_data(1, 6, 5, 3, "7", 9) ➞ False compare_data([]) ➞ True compare_data([1], (1)) ➞ False ###...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2e810e15a22ddf39f725d8fbaa9cb36f13dac046
a66fb57c94d0831d94fef067f4dcdee8885d0c33
/desktop/mate/base/mate-settings-daemon/actions.py
fc654bb177800a299f22f0db1a26f461e44428fa
[]
no_license
mathias-freire/PisiLinux
926001be5764580fa91c43dec1fcc16f29d94a8d
73d06b73c6238945b39077d91cca69df42f2c4a0
refs/heads/master
2020-04-06T06:26:20.379745
2014-02-21T19:51:39
2014-02-21T19:51:39
17,067,805
1
0
null
null
null
null
UTF-8
Python
false
false
1,025
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get def setup(): autotools.configure("--disable-pulse ...
[ "namso-01@hotmail.it" ]
namso-01@hotmail.it
61e5c50ba8cdb2b067b6f3bef2c26ebf14a45ca9
a5698f82064aade6af0f1da21f504a9ef8c9ac6e
/huaweicloud-sdk-eps/huaweicloudsdkeps/v1/model/ep_detail.py
c4128bbffb92affb3eb96178c6dd47453c909ed4
[ "Apache-2.0" ]
permissive
qizhidong/huaweicloud-sdk-python-v3
82a2046fbb7d62810984399abb2ca72b3b47fac6
6cdcf1da8b098427e58fc3335a387c14df7776d0
refs/heads/master
2023-04-06T02:58:15.175373
2021-03-30T10:47:29
2021-03-30T10:47:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,501
py
# coding: utf-8 import pprint import re import six class EpDetail: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json k...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
6718f520c880546b32d0c7eb3dc12e20fee64416
4dad1495df2f760a145d3de0a5ff5956e66ff4bd
/schoolmanagement/urls.py
2fba88b9ad161a21f1863ac78f2fb4db5856cb30
[]
no_license
MdReyajuddin/school-management
a98bf558e7879cc2c86a5ad6f1087447e939a047
f3aaae466aaaf69f32816ffacd8578353afcff66
refs/heads/master
2021-01-01T12:00:53.685191
2020-02-09T08:24:25
2020-02-09T08:24:25
239,269,397
0
0
null
null
null
null
UTF-8
Python
false
false
2,394
py
"""schoolmanagement URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "md.reyajuddin45@gmail.com" ]
md.reyajuddin45@gmail.com
d52167d7cfda9a462c5f24c02145fc43e91e21c3
7639b91f8f1319a32e57916745b8fd31d00df682
/warehouseProblem.py
fa1421f8aab5359c29d52107c25bff784caceb70
[]
no_license
kartsridhar/Problem-Solving
4a391a6ffe3d672d223949491e3cda20f776ef16
09f4018dc47e5175b03718942a41553527a0463a
refs/heads/master
2021-07-08T11:09:55.694614
2020-10-15T16:15:13
2020-10-15T16:15:13
200,101,607
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
from collections import defaultdict ids = list(map(int, input().split())) vals = list(map(int, input().split())) def solve(ids, vals): info = defaultdict(int) for i in range(len(ids)): if vals[i] > info[ids[i]]: info[ids[i]] = vals[i] return sum(info.values()) print(solve(ids,va...
[ "contactkarthik34@gmail.com" ]
contactkarthik34@gmail.com
e46b22a0c1586f835ed641d5b6f4b410a769314c
a404f504febdc835b69b72c4ac28b153885fc119
/Mountain/ToilAndTrouble.py
837cbfe0e8ae0ec08a3468fa5ec3420d011ba207
[]
no_license
Chaboi45/CodeCombat
6093a2eae29ef00c0c277653c4ffd075c9e2ac4c
6e008a94e65bb72ca9292e303d391a4142de16f5
refs/heads/master
2021-07-02T23:24:52.050154
2017-09-21T07:42:21
2017-09-21T07:42:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,556
py
def moveTo(position, fast=True): if (hero.isReady("jump") and hero.distanceTo > 10 and fast): hero.jumpTo(position) else: hero.move(position) def attack(target): if target: if (hero.distanceTo(target) > 10): moveTo(target.pos) elif (hero.isReady("bash")): ...
[ "vadim-job-hg@yandex.ru" ]
vadim-job-hg@yandex.ru
528a0e50e88f445ecc0b0ac6b181a7546b5c2d6b
71118a61f29eabb21ea96805c99d3de9b9da137b
/ensamble/Adaboost/Adaboost_my.py
918dd23b28d15edc376b21d034382956ff76dc61
[]
no_license
KentTJ/ML
ff13e7dfee29fd3df06a5e3166d466470d39e51d
8d4443cc1d369d49b9b81d4b00dbf8900bd9a413
refs/heads/master
2020-03-19T01:46:07.029512
2018-06-03T08:24:53
2018-06-03T08:24:53
134,884,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
"""Adaboost adaptive boosting (AdaBoost-SAMME) for classification problems. """ # Authors: Gang Chen from numpy import* '''简单数据集构造''' # def loadSimpleData(): # datMat = matrix([[1.,2.1], # [2.,1.1,], # [1.3,1.], # [1.,1.], # [2.,1....
[ "you@example.com" ]
you@example.com
835c8cf99e54621ff8040bb3afe4d28fd201e12e
40522461dfb966e579c9b08d5432d1eb14e61e75
/struture/bracket_produce.py
d370ddb908900625456aa8283f83ba6fdd329444
[]
no_license
NuclearAck/pythonLearning
f979b7007b036f5beef7bef1276bc3cc45c6c7c4
0043d233956bb02db81f1f889ddec785b0a3a735
refs/heads/master
2022-03-24T20:23:45.592029
2019-12-21T06:05:25
2019-12-21T06:05:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,426
py
def generateParenthesis(N): ans = [] def backtrack(S='', left=0, right=0): if len(S) == 2 * N: ans.append(S) return if left < N: backtrack(S + '(', left + 1, right) if right < left: backtrack(S + ')', left, right + 1) backtrack() ...
[ "825644691@qq.com" ]
825644691@qq.com
3155b8e1edcc16a75f32c81ba398a3a024a57ac1
3b69c33297ed578b2edf83e230c74b58585b63bd
/tests/integration/__init__.py
5183c194da3d059c2225112ede33d34ed210a28e
[ "Apache-2.0", "MIT" ]
permissive
Python3pkg/CryptoIM
0f42fcf88385245b9b38f31a812c06402f29c1bc
3dde94225302625600961e0594b807a5d5420d00
refs/heads/master
2021-01-21T17:22:22.964808
2017-05-21T09:15:29
2017-05-21T09:15:29
91,945,455
0
0
null
2017-05-21T09:15:26
2017-05-21T09:15:26
null
UTF-8
Python
false
false
690
py
""" Copyright 2014 CryptoIM Development Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
[ "skopekondrej@gmail.com" ]
skopekondrej@gmail.com
0126c59a617707ea27a8e25a90484dca46ecf609
8739db99c7481620790e3bc2269fa72da3daa305
/gameinfo/admin.py
4730ed821c908d78c687200779b7bae78191891d
[]
no_license
kamiwana/redbutton_server
ca57a6fa60187ec3a4ce68331c70c88de402e97f
33135f0173a83cc7f41fa566c7cb9b91c2cf49b6
refs/heads/master
2022-12-16T06:01:50.417307
2020-09-14T16:52:26
2020-09-14T16:52:26
181,593,030
0
0
null
2022-12-07T23:53:33
2019-04-16T01:40:03
Python
UTF-8
Python
false
false
1,840
py
from django.contrib import admin from .models import * from django import forms from game_icon.models import * from django.utils.safestring import mark_safe class Movies_Admin(admin.ModelAdmin): # Post 객체를 보여줄 때 출력할 필드 설정 list_display = ('game_id', 'game_name', 'file_link', ) #search_fields = ('gameinfo.g...
[ "kamiwanan@gmail.com" ]
kamiwanan@gmail.com
a21ddc982c72c8dc93c38f0cb8eaa02bafd4b82a
d2df2313410c73456f5ba5e27b3b38dd161b4708
/preprocessing/video_preprocessing/generate_descriptions_lists.py
cfacd227e1e9c7d90e5ad805f9ecdf4911637ed1
[ "MIT" ]
permissive
DeepaliVerma/interactive-keras-captioning
d3d26b14efae9ee807b95c5b4943ec7f10a2ae61
9791f0e96aeb89c9b4d97f2f3352b50f18f14df9
refs/heads/master
2021-04-18T09:27:57.679293
2019-08-02T10:39:14
2019-08-02T10:39:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,687
py
# -*- coding: utf-8 -*- from __future__ import print_function import numpy as np def main(): base_path = '/media/HDD_2TB/DATASETS/MSVD/' path_files = 'Annotations' # Inputs text = 'captions.id.en' separator = '----' train = 'train_list.txt' val = 'val_list.txt' test = 'test_list.txt...
[ "lvapeab@gmail.com" ]
lvapeab@gmail.com
6f0fc753a5298f4891d7214332a78773dac09b51
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2873/60648/238079.py
cf6f5a4b8985335cacd0e616e69e772281d08b05
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
348
py
n,m=map(int,input().split()) print(n,m) ls=input().split(" ") ls=[int(ls[i]) for i in range(n)] ls1=input().split(" ") ls1=[int(ls1[k]) for k in range(m)] #s="" lsr=[] for i in ls: for j in ls1: if i==j: #s=s+str(i)+" " lsr.append(str(i)) break #s.rstrip() #print(s,end=''...
[ "1069583789@qq.com" ]
1069583789@qq.com
357224d7d8eacfd778e0c98eb462b9d0d451173c
95d0806ce766805beffba8144e4b83076b5f8b91
/thermocouple/caculate/caculate-thermo-10min-singleday.py
c2b383342dca06f666c5ec9c00542f59e0ac459d
[]
no_license
chengw99/dell
1f4d5a2f20f3e61208266dc4a0adc4e18cd44ff8
4f932c3f0d3deb545700a9616456fb0beeb733d0
refs/heads/master
2021-04-15T08:53:49.011550
2019-03-23T14:56:41
2019-03-23T14:56:41
104,961,142
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
# -*- coding: utf-8 -*- """ Created on Sat Mar 17 21:51:56 2018 @author: DELL """ #对热电偶取10分钟平均 import pandas as pd import numpy as np data = pd.read_csv(r'e:\py_data\thermo\A-20170511.csv') a = data.ix[:,32] tem = [] for i in range(144): data_mean = sum(a[10*i:10*i+10])/10. tem.append(data_mean) t...
[ "951849311@qq.com" ]
951849311@qq.com
e1031d5b7da4c56a23be22a11ffcf1ee8a3a6c2b
df7b40e95718ac0f6071a0ba571b42efc81cf6de
/configs/gcnet/gcnet_r101-d8_512x512_40k_voc12aug.py
b17c7a12b547ee4e1cd60d667c575eab06eb071c
[ "Apache-2.0" ]
permissive
shinianzhihou/ChangeDetection
87fa2c498248e6124aeefb8f0ee8154bda36deee
354e71234bef38b6e142b6ba02f23db958582844
refs/heads/master
2023-01-23T20:42:31.017006
2023-01-09T11:37:24
2023-01-09T11:37:24
218,001,748
162
29
Apache-2.0
2022-11-03T04:11:00
2019-10-28T08:41:54
Python
UTF-8
Python
false
false
130
py
_base_ = './gcnet_r50-d8_512x512_40k_voc12aug.py' model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
[ "1178396201@qq.com" ]
1178396201@qq.com
2a400b191ba674c73f6466d15edd77c67643e658
79661312d54643ce9dcfe3474058f514b01bfbe6
/ds1/run.py
b6ae249dbb93e335a9c0752cc52e8196f168220f
[]
no_license
davis-9fv/Project
5c4c8ac03f5bf9db28704e63de9b004f56a52f10
f2bd22b3ac440b91d1d1defc8da9e2ba2e67265e
refs/heads/master
2020-03-20T22:24:07.244521
2019-02-28T16:58:04
2019-02-28T16:58:04
137,796,517
0
0
null
null
null
null
UTF-8
Python
false
false
7,314
py
import ds1.data_creation as dc import config as conf import datetime import ds1.knn as knn import ds1.lasso as lasso import ds1.dummy as dummy import ds1.elasticnet as elasticnet import ds1.sgd as sgd import ds1.mlpregressor as mlpregressor import ds1.results as results import numpy as np def print_results(window_siz...
[ "francisco.vinueza@alterbios.com" ]
francisco.vinueza@alterbios.com
d3cb6d74702554421b5f50f99629fbe01d838e0e
9d734ff697cadaf79ec645a1440a8d690977a97e
/code/py/robbie/fix/seqnum.py
3743ecb521c593b27f49e3a123029713fd6238ff
[]
no_license
karapuz/quad
85ed26f6479e58c3d88b50ac98c51007fcefaf83
e2e436eedfb01212a112e787b483db925b063f96
refs/heads/master
2021-06-05T12:19:35.298605
2016-10-26T12:07:55
2016-10-26T12:07:55
58,860,382
0
0
null
null
null
null
UTF-8
Python
false
false
2,894
py
''' TYPE : lib OWNER : ilya DESCRIPTION : various routines related to sequence number generation ''' import os import quickfix as fix import robbie.fix.config as fixccfg from robbie.util.logging import logger seqNum = None def setSeqNums( client, gateNum ): global seqNum seqNum = ( client, ...
[ "ilya.presman@gmail.com" ]
ilya.presman@gmail.com
5df34f12d45a848d892ed59ae1e8dbef15da4e13
ed865aed525556fd7aa5ac5a024af720de8438e3
/api/client/src/test/test_log_event.py
851ed7901ced60bdefcac7ad0e61db56344e25e2
[ "Python-2.0", "GPL-1.0-or-later", "MPL-2.0", "MIT", "LicenseRef-scancode-python-cwi", "BSD-3-Clause", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT-0", "BSD-2-Clause" ]
permissive
aws/aws-parallelcluster
7bb33a6e175168f63a1e0acb1a9a7e9cbc405eff
a213978a09ea7fc80855bf55c539861ea95259f9
refs/heads/develop
2023-09-05T15:12:18.533270
2023-09-05T14:38:59
2023-09-05T14:38:59
19,718,034
520
226
Apache-2.0
2023-09-14T15:56:30
2014-05-12T22:42:19
Python
UTF-8
Python
false
false
661
py
""" ParallelCluster ParallelCluster API # noqa: E501 The version of the OpenAPI document: 3.0.0 Generated by: https://openapi-generator.tech """ import sys import unittest import pcluster_client from pcluster_client.model.log_event import LogEvent class TestLogEvent(unittest.TestCase): """Lo...
[ "noreply@github.com" ]
aws.noreply@github.com