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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4d76d12c7c683eeb8987fa016591c981bc9da2f8 | b58f43f49559265584d0bac330993d6e68729499 | /FixValueStopLoss.py | 64d14ba8fc41aaa9ab9a6d49faf392114dd0a4a6 | [] | no_license | xiehai1983/MyPyLib | c096c3c60837db4b34a26aed88794a10a0f6b1e8 | 9d8e18443dac42325bb11525112deb59eb49ab9b | refs/heads/master | 2021-09-21T22:23:38.478730 | 2018-09-01T16:29:21 | 2018-09-01T16:29:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,482 | py | # -*- coding: utf-8 -*-
"""
策略本身不带出场,全靠止盈止损出场,所以在止损取数时没有下限
从进场点开始,while True向下取数(还要判断是否达到原始数据下限),如果达到止损或者止盈点,就break出来
使用1min的high和low来模拟tick,1min数据不做阴阳线预处理,如果1min同时满足止盈和止损,则取止损作为结果
"""
import pandas as pd
import DATA_CONSTANTS as DC
import numpy as np
import os
import ResultStatistics as RS
import multiprocessing
def... | [
"smartgang@126.com"
] | smartgang@126.com |
1f974b0b8b3caa1deb01b81c53090810a9f1b06a | 33119d4e3ec1abd3b8a3934b90ede748669f87c9 | /armi/operators/settingsValidation.py | 52003d7dc9e91f8893cca94316b6d69ed5d1d42b | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | sammiller11235/armi | 723506a47f292f1a83e9d3c35812d080e9acbbdc | df9bdb4d8ef3131806190e0d18710c6a7df73961 | refs/heads/master | 2021-07-19T12:00:07.397525 | 2020-03-19T17:36:58 | 2020-03-19T17:36:58 | 219,067,927 | 0 | 0 | Apache-2.0 | 2020-03-19T17:37:00 | 2019-11-01T21:52:13 | null | UTF-8 | Python | false | false | 24,554 | py | # Copyright 2019 TerraPower, 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 writi... | [
"ntouran@terrapower.com"
] | ntouran@terrapower.com |
756dbc3df7bc68f0e80a6229fbfb208cda5d9bf9 | 874fc4e4eac88ccd037110ce5f48b930c83bb4b3 | /db/actions/add_field.py | bc0d3f11c3b84886a92cb5707566761baf40466e | [] | no_license | persontianshuang/mafter | d0231519d9e82bd0a6aa8e42aa11a5a8a37c407c | 64d9382917bffc16f0422e0fe6e300f48c95c79a | refs/heads/master | 2021-01-23T16:25:34.535702 | 2017-09-27T09:16:03 | 2017-09-27T09:16:03 | 102,740,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from db.config import _Db
from db.sentences.sentence import Sentences
from db.subFlow.flow import Flow
# for x in _Db['sentences'].find():
# print(x)
# for x in Sentences.objects.all():
# x.type = 'video'
# x.save()
# for x in Flow.objects.all():
# x.type = 'video'
# x.save()
new_flow = Flow()
... | [
"mengyouhan@gmail.com"
] | mengyouhan@gmail.com |
57f4ee94bd87e3f3ad1a8d105c30c3bc127bd6c7 | 1513d0d708b8789f8d85fbd2a8ff46e863d16cd6 | /day_two/Exercise1.py | 6fbb7e0133dd5189518d654e7df31d1a7676ca4c | [] | no_license | zingpython/february2018 | ff9d0f64d6f68d5b0f22b87eaab202d06a85f224 | 0edcdd85bfbec168c7daf5a88bb06ce1b58062f7 | refs/heads/master | 2021-05-04T05:34:58.032678 | 2018-02-22T18:40:05 | 2018-02-22T18:40:05 | 120,341,634 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
for number in range(1, 101):
if number % 3 == 0 and number % 5 == 0:
print("FizzBuzz")
elif number % 3 == 0:
print("Fizz")
elif number % 5 == 0:
print("Buzz")
else:
print(number) | [
"selpathor@verizon.net"
] | selpathor@verizon.net |
f6dd1ef36f6a06a7afb6323e9d3df94e4689cc62 | db053c220094368ecb784fbe62375378c97457c2 | /810.chalkboard-xor-game.py | 541ac93fa7085e6032b36a1b6febb1ee272fdd8d | [] | no_license | thegamingcoder/leetcode | 8c16e7ac9bda3e34ba15955671a91ad072e87d94 | 131facec0a0c70d319982e78e772ed1cb94bc461 | refs/heads/master | 2020-03-22T14:51:45.246495 | 2018-07-09T00:00:06 | 2018-07-09T00:00:06 | 140,211,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #
# [828] Chalkboard XOR Game
#
# https://leetcode.com/problems/chalkboard-xor-game/description/
#
# algorithms
# Hard (38.94%)
# Total Accepted: 1.4K
# Total Submissions: 3.5K
# Testcase Example: '[1,1,2]'
#
# We are given non-negative integers nums[i] which are written on a
# chalkboard. Alice and Bob take turns... | [
"sharanbale@yahoo-inc.com"
] | sharanbale@yahoo-inc.com |
fce3df2153532f4e0401e80f02abcd99ab77ed8f | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/matplotlib/tests/test_gridspec.py | 70d1ee132851d785ff973695a03dadb7b10f2947 | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 626 | py | import matplotlib.gridspec as gridspec
import pytest
def test_equal():
gs = gridspec.GridSpec(2, 1)
assert gs[0, 0] == gs[0, 0]
assert gs[:, 0] == gs[:, 0]
def test_width_ratios():
"""
Addresses issue #5835.
See at https://github.com/matplotlib/matplotlib/issues/5835.
"""
with pytest... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
6b87d5ce8490d1eb8056fb41b49cc0fa2608ceee | d1ef84d05beedc811161314800193ded398bff07 | /tests/test_database_crudmixin.py | 1767d5202f8df4c91803f6ee4b79e1def990b02d | [
"MIT"
] | permissive | spookey/observatory | 8f4a98aeb214182124bc6a4ab6d1ddac697cd0bc | be5cc92f53f12e6341e7e3040f26360e54cfdf7d | refs/heads/master | 2023-04-22T03:31:34.879735 | 2021-01-16T17:50:07 | 2021-01-16T17:50:07 | 224,500,136 | 0 | 0 | MIT | 2021-05-12T03:53:02 | 2019-11-27T19:11:24 | Python | UTF-8 | Python | false | false | 3,032 | py | from pytest import mark
from observatory.database import TXT_LEN_SHORT, CRUDMixin
from observatory.start.extensions import DB
# pylint: disable=no-member
PAYLOAD = 'omg wtf bbq'
LAYPOAD = 'napfkuchen!'
class CRUDMixinPhony(CRUDMixin, DB.Model):
prime = DB.Column(DB.Integer(), primary_key=True)
value = DB.C... | [
"frieder.griesshammer@der-beweis.de"
] | frieder.griesshammer@der-beweis.de |
c291d5f571a0f7d5576a959395261c1c80e20196 | 6879a8596df6f302c63966a2d27f6b4d11cc9b29 | /abc/problems110/108/c.py | 01a176ce06f31360c7967885d3140fefde3cf214 | [] | no_license | wkwkgg/atcoder | 41b1e02b88bf7a8291b709306e54cb56cb93e52a | 28a7d4084a4100236510c05a88e50aa0403ac7cd | refs/heads/master | 2020-07-26T03:47:19.460049 | 2020-03-01T18:29:57 | 2020-03-01T18:29:57 | 208,523,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | N, K = map(int, input().split())
nums = [0] * K
for i in range(1, N + 1):
nums[i % K] += 1
ans = 0
for i in range(K):
b = (K - i) % K
c = (K - i) % K
if (b + c) % K != 0: continue
ans += nums[i] * nums[b] * nums[c]
print(ans)
| [
"yujin@komachi.live"
] | yujin@komachi.live |
9b21a1d828f30ab5a1d04f765922419abe11a89c | a5408385bc6cc06cbc783652bd4d019af184ca7c | /examples/diffusion/sinbc.py | 5020f09b30d418719f4cbb6a07543487260f4fb9 | [
"BSD-3-Clause"
] | permissive | snilek/sfepy | 5a65d2e49c1d49d1a50f1d6d080f6e0f2f78e9f0 | 7f50684441cbbd3c7497cb32ba63ae4d1bf3ce28 | refs/heads/master | 2021-01-15T12:36:10.195016 | 2014-05-06T11:59:02 | 2014-05-06T11:59:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,826 | py | r"""
Laplace equation with Dirichlet boundary conditions given by a sine function
and constants.
Find :math:`t` such that:
.. math::
\int_{\Omega} c \nabla s \cdot \nabla t
= 0
\;, \quad \forall s \;.
This example demonstrates how to use a hierarchical basis approximation - it
uses the fifth order Lobatt... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
80949b51021d641887cbf7cfdd89a8444cd9394f | 664bb3b0d806b3d17b1f4c5b87e569dcafac9710 | /0x03-python-data_structures/8-multiple_returns.py | cb9621277c528249e82d3c718e5867e6060a5b74 | [] | no_license | emmanavarro/holbertonschool-higher_level_programming | 9f120234b0521ad8330307af303f5f587764f30a | 2cae27d29d11035f62742240e1d1a5e385be075c | refs/heads/master | 2022-12-25T22:24:36.183806 | 2020-09-24T23:35:59 | 2020-09-24T23:35:59 | 259,382,761 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | #!/usr/bin/python3
def multiple_returns(sentence):
if sentence is "":
tupl = (len(sentence), None)
return tupl
else:
tupl = (len(sentence), sentence[0])
return tupl
| [
"elnavarro55@gmail.com"
] | elnavarro55@gmail.com |
8a2bf3ac4361e3dcaa79a5a6ec7b73196c40724d | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2016_schizConnect/supervised_analysis/all_studies+VIP/all_subjects/Freesurfer/ROIs/learning_curve_ratios_centered_by_site_all/inter_site/svm_ratio_0_2.py | 6d995cf717bfe5921917fd5fa23e8ad5ee42ee14 | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,914 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 23 10:04:13 2017
@author: ad247405
"""
import os
import json
import numpy as np
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import precision_recall_fscore_support
from scipy.stats import binom_test
from collections im... | [
"ad247405@is222241.intra.cea.fr"
] | ad247405@is222241.intra.cea.fr |
681013f7bacd0db8a1b4d25d995954b7fe7df8ed | 43df78355915e3f41f432579c5840816f52a8ace | /Functions/Two/Calc_NDM.py | e484e15cd3977780679d69c0bc37613e93af8a36 | [
"Apache-2.0"
] | permissive | spareeth/wa | fd7617fafe065de83249cf817df25cf9ca164518 | 57bb0c93af1bab3b6f8bc30cbc941aa14ac2696b | refs/heads/master | 2020-03-06T15:33:26.208373 | 2018-03-22T08:04:06 | 2018-03-22T08:04:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,117 | py | # -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
UNESCO-IHE 2017
Contact: t.hessels@unesco-ihe.org
Repository: https://github.com/wateraccounting/wa
Module: Function/Two
"""
# import general python modules
import os
import gdal
import numpy as np
import pandas as pd
import glob
def NPP_GPP_Based(Dir_Basin, Da... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
73afcff6d269bc975c7d86680ee09916cd096372 | 36407bb880c5ca94331f1bc44b85be58bba6f352 | /apps/rating/migrations/0001_initial.py | 6e902a0de600f12a5514e21ac3aec25a4d1f5c37 | [] | no_license | raw-data-tech/home-garden | 28175f66d126fa57f652fce22cd89ab44c514bba | 8767815b010b3d7d83927e912b3e055374c06111 | refs/heads/master | 2020-12-24T17:17:05.629239 | 2015-07-11T09:05:52 | 2015-07-11T09:05:52 | 38,920,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('orders', '0001_initial'),
migrations.swappable_dependency(settings.AUTH... | [
"navajyothms1989@gmail.com"
] | navajyothms1989@gmail.com |
d29a74acd9b141fc75873408944238d813de7f96 | d2189145e7be2c836017bea0d09a473bf1bc5a63 | /Reposicion_cuarta clase/contar los numeros multiplos de 3 que hay entre 1-100.py | 45d3f1bff695c5720b917c501d80e6ad0046391f | [] | no_license | emilianoNM/Tecnicas3 | 12d10ce8d78803c8d2cd6a721786a68f7ee2809d | 6ad7f0427ab9e23643a28ac16889bca8791421d0 | refs/heads/master | 2020-03-25T18:06:34.126165 | 2018-11-24T04:42:14 | 2018-11-24T04:42:14 | 144,013,045 | 3 | 5 | null | 2018-09-14T10:47:26 | 2018-08-08T12:49:57 | Python | UTF-8 | Python | false | false | 226 | py | ### Imprimir y contar los numeros multiplos de 3 que hay entre 1 y 100.
n = 1
h = 0
while n < 100:
if n%3 == 0:
print n,
h += 1
n += 1
print '\nEntre 1 y 100 hay %i numeros multiplos de 3' % h
| [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
9cf18d8324650ac3c321885809cf31acd683c320 | f61cf1a24fa184dd552dd47dd8399b74c5816ee0 | /tasks/13/13-2.py | e4cf7fab84e1ca127f6ecbb21c47ecca597e0f05 | [] | no_license | desve/netology | ea585d9db8658eea5319b98f63259239fa538fcb | c6039cc831058b8ba650d417fae25f761520139b | refs/heads/master | 2020-01-23T21:11:31.291807 | 2017-04-06T05:19:08 | 2017-04-06T05:19:08 | 74,572,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | # Правильная скобочная последовательность
| [
"2901243@mail.ru"
] | 2901243@mail.ru |
ed33bc3916a5067ac5211b768fae4fa08ec4d051 | 900aaf3f7d0063ed3b4a90d7afc0e75bb847a1f2 | /hash_tables/group_shifted_strings.py | 33bd6b693a830615e45efabb37aabb75be2ebe35 | [] | no_license | rjcrter11/leetChallenges | 5797fbdd818525af1fec8d2907d03fe9e4c586fb | bfd0ee6221310c88a619ec3203e281f4b0cc8184 | refs/heads/master | 2023-04-21T06:53:02.887548 | 2021-05-24T12:24:13 | 2021-05-24T12:24:13 | 283,039,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | '''Given a string, we can "shift" each of its letter to its successive letter,
for example: "abc" -> "bcd". We can keep "shifting" which forms the sequence:
"abc" -> "bcd" -> ... -> "xyz"
Given a list of non-empty strings which contains only lowercase alphabets,
group all strings that belong to the same shifting seq... | [
"rjcrter11@gmail.com"
] | rjcrter11@gmail.com |
682ce86400bb9c2269a57401c0661a75d61c9b53 | 5174acc0ca3a8582711881dcf6a1a36663e964a9 | /servicios_aplicacion/selector_entrada.py | f35868471f873fe833cdcd7dece7f9bd1a598ca8 | [] | no_license | vvalotto/fiuner_termostato | b9ac7918458d06a479f516bd3f7a2550bb4d6b78 | a3e81040672a438ea512895016201cb93104469e | refs/heads/master | 2020-05-24T05:06:45.940613 | 2019-07-01T10:21:51 | 2019-07-01T10:21:51 | 187,106,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | """
Clase Responsable del establecimiento de la temperatura deseada
"""
from gestores_entidades.gestor_ambiente import *
class SelectorEntradaTemperatura:
def __init__(self, gestor_ambiente):
"""
Arma la clases con la que necesita colaborar
"""
self._seteo_temperatura = Configura... | [
"vvalotto@gmail.com"
] | vvalotto@gmail.com |
2828841fc71fbcf1498c40698d5aa047ae752abf | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/linkoam/link/eventnotificationlearnedinfo/eventnotificationlearnedinfo.py | 176e1cdb756989f951c1552cfebdfe9893f86680 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 9,566 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
38ee93212baba1254b19a1e1c076d397ed05f48f | 8d50cc4f37c153fcb51de4501f3fa50c00394d9b | /nets/L_Resnet_E_IR.py | 66cfaa519446d9c31ccdddb293dd2eba5835a997 | [
"MIT"
] | permissive | liujuanLT/InsightFace_TF | dbd239dfdda1866c348e82211932884f73cb3067 | 257b6e0dcf7e7c3523dc7e1c08ba529fab1bf75b | refs/heads/master | 2022-04-27T21:24:01.458277 | 2022-03-17T12:28:15 | 2022-03-17T12:28:15 | 463,040,192 | 0 | 0 | MIT | 2022-02-24T06:51:16 | 2022-02-24T06:51:15 | null | UTF-8 | Python | false | false | 20,455 | py | import tensorflow as tf
import tensorlayer as tl
from tensorflow.contrib.layers.python.layers import utils
import collections
from tensorlayer.layers import Layer, list_remove_repeat
class ElementwiseLayer(Layer):
"""
The :class:`ElementwiseLayer` class combines multiple :class:`Layer` which have the same out... | [
"auroua@yeah.net"
] | auroua@yeah.net |
5e4238daa2bff72c419c9897bd72a325b43e6d19 | 4315836a3a360c646839c88452dadbb3b3cbdf60 | /Level 5/learning_users/learning_users/urls.py | 7422d96d8b97f3184759cd958fd459cc80c1ddde | [] | no_license | hyungtaecf/Bootcamp-Django | 77449c3a6487030d0951aa58ec20c225427b3034 | 4fe0daaa385f9eca686ba7ea4631ae34b9ba1d8b | refs/heads/master | 2021-02-13T03:16:41.824959 | 2020-03-19T15:59:15 | 2020-03-19T15:59:15 | 244,656,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | """learning_users 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')
Clas... | [
"hyu_03@hotmail.com"
] | hyu_03@hotmail.com |
8b46d9b6b65b83f63d4903ea99257f96f206a664 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1484496_0/Python/Zunekid/Q3.py | af300c784a31e261db76d4435001ac53e1270e58 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | import string
fn = "C-small-attempt0.in"
f= open(fn,'r')
summap = {}
datas = []
def decode(b1, b2):
list1 = []
list2 = []
place = -1
for x in xrange( len(datas)):
place+=1
if b1 &1 == 1:
list1.append(datas[place])
b1 = b1>>1
if b2 &1 == 1:
list2.append(datas[place])
b2 = b2>>1
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
92942898af7680097c4452f2f8c748ea28e37f73 | 210b968876a8aea36eae94e4720e23f2daa8552b | /cover/cover.py | 3a74eb298af3aee1fe2a798f8583d1fc8cb90267 | [] | no_license | beefoo/coloring-book | 3ce5c0d5497b199cd470f640dd0b3778d545577f | cee77b7f863ddee4323c8c16111d353fe27e5b36 | refs/heads/master | 2021-01-12T09:37:36.490913 | 2017-06-26T19:07:43 | 2017-06-26T19:07:43 | 76,204,083 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,770 | py | # -*- coding: utf-8 -*-
import argparse
import calendar
import csv
import inspect
import math
import os
import svgwrite
from svgwrite import inch, px
import sys
# add parent directory to sys path to import relative modules
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdi... | [
"brian@youaremyjoy.org"
] | brian@youaremyjoy.org |
0a4d1b3f1b01e2f409075865c38cca9c2ae7dd2e | b21e073975c0f7a4f94c9f3523b8f5dcbf98a521 | /en/026/python/main.py | c390f31c0c0145c6631caaf75b09ad7f545675fe | [
"MIT"
] | permissive | franciscogomes2020/exercises | 3ed6877f945463ed01c7fcd55271689171b0ad9d | 8b33c4b9349a9331e4002a8225adc2a482c70024 | refs/heads/master | 2023-07-04T15:54:38.919185 | 2021-08-19T20:03:54 | 2021-08-19T20:03:54 | 396,992,428 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # Make a program that reads a sentence from the keyboard and shows how many times the letter "A" appears, in which position it appears the first time, and in which position it appears the last time.
| [
"71292537+franciscogomes2020@users.noreply.github.com"
] | 71292537+franciscogomes2020@users.noreply.github.com |
4266e21cf82dee5e759cb42893e68117f0efe071 | 135d2c02b3ad706573bdfafa75ebc14bd170ef97 | /plugins/networkx/networkx/algorithms/connectivity/connectivity.py | b10afd63ab1ddf583c8b7504b88e11a205077d6f | [
"BSD-3-Clause"
] | permissive | boulouk/firedex | 4afc6467bd83e096051d941699e59f1be806a46c | 187012986f4adf85d017e84a64db7c9bb1f447b0 | refs/heads/master | 2022-06-06T01:56:38.464322 | 2019-11-24T09:44:03 | 2019-11-24T09:44:03 | 138,659,150 | 2 | 1 | null | 2022-05-20T20:55:18 | 2018-06-25T23:09:54 | Python | UTF-8 | Python | false | false | 29,653 | py | # -*- coding: utf-8 -*-
"""
Flow based connectivity algorithms
"""
from __future__ import division
import itertools
from operator import itemgetter
import networkx as nx
# Define the default maximum flow function to use in all flow based
# connectivity algorithms.
from networkx.algorithms.flow import boykov_kolmogoro... | [
"lucascalz8@gmail.com"
] | lucascalz8@gmail.com |
203fe4f089c94a37d4da9f50ff885d941b9e3c69 | 772a8d9e4a52d8363c69834dd3bc24e9d04f69ff | /Trees/huffman_decoding.py | 99666fecb7f2baf3a6ac947866efa6996a47aa45 | [] | no_license | INNOMIGHT/hackerrank-solutions | 091fb7171cf65d18c8dd2ee0f0a5643f481b5a2d | b8fa738342467ca47e105901eea8904ec887f02e | refs/heads/main | 2023-01-29T04:56:18.028167 | 2020-12-09T12:16:35 | 2020-12-09T12:16:35 | 310,222,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | def decodeHuff(root, s):
temp = root
result = []
for char in s:
if char == '0':
temp = temp.left
elif char == '1':
temp = temp.right
if temp.left is None and temp.right is None:
result.append(temp.data)
temp = root
print("".join(r... | [
"iammagnificient@gmail.com"
] | iammagnificient@gmail.com |
65ed9251dc559ae4971433b043fbc03b86ed1de1 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-sas/aliyunsdksas/request/v20181203/OperateCommonOverallConfigRequest.py | 56518e2e2ca03ad3026256ac774d7e86abc10b89 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,789 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e79e00c1754eee79800a5c6b92b61619225a46b0 | 1e6b5ba15ea0a1db9574a1310d3f554098a41ac1 | /tests/optim_test.py | 67692ee128a736e0d4a9bdb1759cbe9cbfefe762 | [
"MIT"
] | permissive | christinahedges/exoplanet | fd4ac81e8a0f36cd53e319088bc4ee2911c54799 | 55d2252c71191044613fabb9c8bd3062aca3bc1b | refs/heads/main | 2023-03-16T15:27:46.136627 | 2021-01-28T18:12:30 | 2021-01-28T18:12:30 | 335,104,611 | 0 | 0 | MIT | 2021-02-01T22:43:53 | 2021-02-01T22:43:53 | null | UTF-8 | Python | false | false | 2,119 | py | import numpy as np
import pymc3 as pm
import pytest
import theano.tensor as tt
from exoplanet import optim as op
from exoplanet.optim import optimize
try:
import torch
except ImportError:
torch = None
def test_optimize(seed=1234):
np.random.seed(seed)
x_val = np.random.randn(5, 3)
with pm.Model(... | [
"foreman.mackey@gmail.com"
] | foreman.mackey@gmail.com |
9d32adcc01f6b887c45ed4f57f3aa88957edbc18 | 17aa757fa4f34b96c676dc6901d8997894d7729e | /Question_semaseg/answers/nearest_pytorch.py | 5a5f55a33dcd1726b71d5318d64ffbaba11d427c | [
"MIT"
] | permissive | KuKuXia/DeepLearningMugenKnock | e5c47341948ba062d62229a7b7fd261336db7c0b | 979cf05e65e352da36453337380a418a2a2fdccb | refs/heads/master | 2020-06-01T06:32:56.448012 | 2019-06-06T22:35:39 | 2019-06-06T22:35:39 | 190,679,574 | 1 | 0 | MIT | 2020-01-01T19:06:37 | 2019-06-07T02:47:02 | Python | UTF-8 | Python | false | false | 6,725 | py | import torch
import torch.nn.functional as F
import argparse
import cv2
import numpy as np
from glob import glob
import matplotlib.pyplot as plt
num_classes = 2
img_height, img_width = 64, 64#572, 572
out_height, out_width = 64, 64#388, 388
GPU = False
torch.manual_seed(0)
class Mynet(torch.nn.Module):
def __... | [
"naga.yoshi.yoshi@gmail.com"
] | naga.yoshi.yoshi@gmail.com |
6c3960f7b3692192dccfb49a827a171501c0f880 | d5125ccc1ef9915ffd72c575225a620aac5cb347 | /development/django_test_project/django_mysite/polls/admin.py | 98fe8d57cbc041e4e70cffcf5d0353d7fc52af69 | [] | no_license | yurui829/stefanbo | 2231074e0e4f04438aff647563299ad1947bd760 | 449f862c81a3b4ae3e079ecb4a15b3a5cbcca701 | refs/heads/master | 2021-01-24T23:42:52.064783 | 2014-07-02T03:05:04 | 2014-07-02T03:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from django.contrib import admin
from polls.models import Poll, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class PollAdmin(admin.ModelAdmin):
#fields = ['pub_date', 'question']
fieldsets = [
('Question', {'fields': ['question']}),
('Date informatio... | [
"stefan_bo@163.com"
] | stefan_bo@163.com |
a76f13bd53bc3ba0941328e279324fcd4bc0b0d2 | 5966449d2e29c9b64351895db2932f94f9de42da | /catkin_ws/build/behaviors/catkin_generated/pkg.installspace.context.pc.py | 3094a13408828e4a175f4a38420c9c98c8309433 | [] | no_license | godaeseong/GoHriProject | 8cbce6934485b8ba3253fc7b6c5b5b59397b4518 | 425e70b7c91b6215f5477fc2250d2b0ac96577be | refs/heads/master | 2021-05-11T22:11:56.099580 | 2018-01-15T02:20:43 | 2018-01-15T02:20:43 | 117,484,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "behaviors"
PROJECT_SPACE_DIR = "/home... | [
"bigdream0129@naver.com"
] | bigdream0129@naver.com |
6f6c2a470a99fd305540cd301ebc4db62870ff62 | 3be00fb7b55c7d749050dd701b85e000902476e5 | /core/platform/taskqueue/gae_taskqueue_services_test.py | 0c2d87555498a542600d1ded72fe141503d54e09 | [
"Apache-2.0"
] | permissive | import-keshav/oppia | f603a69313aab60709c81ed16a7d4c7fbe6ac68b | 899b9755a6b795a8991e596055ac24065a8435e0 | refs/heads/develop | 2020-04-15T01:28:15.913389 | 2019-08-20T01:05:51 | 2019-08-20T01:05:50 | 164,277,522 | 4 | 0 | Apache-2.0 | 2019-01-06T05:12:14 | 2019-01-06T05:12:13 | null | UTF-8 | Python | false | false | 1,744 | py | # coding: utf-8
#
# Copyright 2018 The Oppia 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 requi... | [
"sean@seanlip.org"
] | sean@seanlip.org |
cdf23743761697353f7b1d72f7d9f9f4fa42c046 | fbd4ecf7046171c4e96267c5982c964db54578f5 | /business/stepTwo/blocking/evaluation.py | 3e6018a3dc582d4ffa98850c5df3bc0993fcf892 | [] | no_license | Alvin2580du/alvin_py | 6dddcfbfae214694e9f3dafd976101e681f2a66d | 82d3e9808073f2145b039ccf464c526cb85274e3 | refs/heads/master | 2021-05-05T16:01:43.544783 | 2019-10-29T02:23:59 | 2019-10-29T02:23:59 | 117,328,713 | 12 | 2 | null | 2021-03-20T00:06:37 | 2018-01-13T08:51:49 | Python | UTF-8 | Python | false | false | 8,327 | py | """ Module with functionalities to evaluate the results of a record linkage
excercise, both with reagrd to linkage quality as well as complexity.
"""
# =============================================================================
def confusion_matrix(class_match_set, class_nonmatch_set, true_match_set,
... | [
"ypducdtu@163.com"
] | ypducdtu@163.com |
92b623551d48da8988c39ef89978122334324e48 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2788/60595/251740.py | defcf81cfaf4172d9299641347649e620c16e7c6 | [] | 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 | 1,303 | py | def Test():
n=int(input())
boys=eval("["+input().strip().replace(" ",",")+"]")
m=int(input())
girls=eval("["+input().strip().replace(" ",",")+"]")
a=save(boys)
b=save(girls)
z=min(m,n)
all=[]
j=0
if(z==n):
parts=[]
for i in range(0,z):
while(j<len(girl... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
88e062158fb701bc19ff80af9155635d79cbdd0b | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/tutorial/control/chains/context.py | 6861cd801f3b65af3ade717a37f50bc728196afd | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 771 | py | # 2015.11.10 21:30:59 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/tutorial/control/chains/context.py
from tutorial.control import context, game_vars
from tutorial.control.lobby.context import LobbyBonusesRequester
class ChainsStartReqs(context.StartReqs):
def isEnabled(self):
return Tr... | [
"info@webium.sk"
] | info@webium.sk |
f8ce7ee7cd1d999171dadd17fa390caff6bc68b8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_culverts.py | f772fa199abc66c109ff0e8d5b380883792cfa67 | [
"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.nouns._culvert import _CULVERT
#calss header
class _CULVERTS(_CULVERT, ):
def __init__(self,):
_CULVERT.__init__(self)
self.name = "CULVERTS"
self.specie = 'nouns'
self.basic = "culvert"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2fff5cf257704680277f40ea42126b20516f7c19 | e40f94cd0a5d64f33aff80f8b9ee4c9071469da8 | /test/dateparsing_test.py | 90510a5e434dcd663fee4cd207f551f1b445ccb2 | [] | no_license | Watchful1/RemindMeBot | 7495202b74e74c93ee3e00bebdba08f5931ef8e5 | 0e8214cba3ac81307c6e7e707afc2efeae449da1 | refs/heads/master | 2023-05-27T13:02:30.045034 | 2023-05-17T02:30:46 | 2023-05-17T02:30:46 | 143,469,523 | 173 | 20 | null | 2022-08-28T06:06:14 | 2018-08-03T20:14:22 | Python | UTF-8 | Python | false | false | 8,151 | py | from datetime import datetime
import utils
def test_date_parsing():
base_time = utils.datetime_force_utc(datetime.strptime("2019-01-01 01:23:45", "%Y-%m-%d %H:%M:%S"))
pairs = [
["1 day", "2019-01-02 01:23:45"],
["365 days", "2020-01-01 01:23:45"],
["2 weeks", "2019-01-15 01:23:45"],
["3 years", "2022-01-... | [
"watchful@watchful.gr"
] | watchful@watchful.gr |
eb579070aa3656dfdb04a18a2c691a0ae44148f2 | ce9964faef6ee75b71c417e34113578777cd86b2 | /content/test/gpu/gpu_tests/webgl2_conformance_expectations.py | 953092974e3541c0bce60b8d75d48392763e1c65 | [
"BSD-3-Clause"
] | permissive | alijuma/chromium | 4d8eed877b655d39388d5e5def1b7514f05170ea | db8f04787fe546230612bd32f499194d3219f15c | refs/heads/master | 2023-01-07T18:37:00.605447 | 2017-11-07T23:13:02 | 2017-11-07T23:13:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,026 | py | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from gpu_tests.webgl_conformance_expectations import WebGLConformanceExpectations
# See the GpuTestExpectations class for documentation.
class WebGL2Con... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
384f3ca83686eef79fb68f6e221c15a8ea737f27 | 378eea7cbb49d52c13c3bd0bb86bc93fc93d3d56 | /100Days/Day09/association.py | e4427897296525d11fbe292a810fcbc0d800bb87 | [] | no_license | Zpadger/Python | b9e54524841e14d05e8f52b829c8c99c91e308b8 | f13da6d074afac50396621c9df780bf5ca30ce6b | refs/heads/master | 2020-08-16T01:10:00.534615 | 2020-04-12T15:15:53 | 2020-04-12T15:15:53 | 172,426,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # 对象之间的关联关系
from math import sqrt
class Point(object):
def __init__(self,x=0,y=0):
self._x = x
self._y = y
def move_to(self,x,y):
self._x = x
self._y = y
def move_by(self,dx,dy):
self._x += dx
self._y += dy
def distance_to(self,other):
dx = s... | [
"noreply@github.com"
] | Zpadger.noreply@github.com |
150bd3e4db5e34c9c6a5a472b6d587f94ba3da8b | f4c36d1b5946ad0145d10164c40ee0635903accb | /tech/backends.py | 8dc3b9c98fd6278f45344b25513c7308e64331de | [] | no_license | Vivekdjango/techstop | 69c2edec92ef9b0e7318b908c8cf8044c5d7dfa2 | 1c0a0b992136a129a0d4226ee1ae691cd0a91ae4 | refs/heads/master | 2021-01-11T17:59:29.690837 | 2018-09-01T13:12:52 | 2018-09-01T13:12:52 | 79,893,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | from django.contrib.auth.models import User
class SSOLoginBackend(object):
"""
This is a transparent authentication backend for SSO login. Assumes that a user
was authenticated using SSO prior to this class getting invoked.
"""
def authenticate(self, username, password=None, email=None):
u... | [
"viveksinha@IC0532-L0.corp.inmobi.com"
] | viveksinha@IC0532-L0.corp.inmobi.com |
56634d05aee2bed2e41d18af1cf186dd65351abc | 495b0b8de3ecc341511cdb10f11368b35b585bea | /SoftLayer/tests/API/client_tests.py | 072167957ea42bfb0b22cb6bcf7d0b568893c2cd | [] | no_license | hugomatic/softlayer-api-python-client | cf6c1e6bfa32e559e72f8b0b069339ae8edd2ede | 9c115f0912ee62763b805941593f6dd50de37068 | refs/heads/master | 2021-01-18T11:09:19.122162 | 2013-04-09T01:44:51 | 2013-04-09T01:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,592 | py | """
SoftLayer.tests.API.client_tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2013, SoftLayer Technologies, Inc. All rights reserved.
:license: BSD, see LICENSE for more details.
"""
try:
import unittest2 as unittest
except ImportError:
import unittest # NOQA
from mock import patch, Ma... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
ad853f1c5462f8be2b4c54a9aaf79b67efdb2435 | ec546fe9c41a1bc4bc5bf39d939f1cbf0382a7ee | /dashboard/email_sender_smtp.py | e422c15eebcc1279bf7fd70488fa30c663a1f46e | [] | no_license | MaxOvcharov/Python_for_DevOps | 3910fd1cced9f07139f8709b453693f937d7216d | 03a5f737bb1c2f53713803a7794c04d134a596b0 | refs/heads/master | 2020-06-13T00:56:06.704476 | 2017-09-05T19:10:19 | 2017-09-05T19:10:19 | 75,471,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # -*- coding: utf-8 -*-
import smtplib
mail_server = "smtp.rambler.ru"
mail_server_port = 465
from_addr = 'EMAIL_FROM'
to_addr = 'EMAIL_TO'
from_header = 'From: %s\r\n' % from_addr
to_header = 'To: %s\r\n\r\n' % to_addr
subject_header = 'Subject: Testing SMTP Authentication'
body = 'This mail tests SMTP Authenticati... | [
"ovcharovmax@yandex.ru"
] | ovcharovmax@yandex.ru |
04df58a49a0cd3dee2830a34facd4a34f4e62358 | 7d6e641d53c6d063da09a632e960615d4ddf05ef | /flask_api/venv3/lib/python2.7/_abcoll.py | 494be0f1ed300d58c350692546af0c3cf8919e8c | [
"MIT"
] | permissive | tjuyanghw/ml-flask-api | 3af1a6103505962a624c78425b843d935277e1b9 | dc119856e75b0f86d21ccf79cd1418559d722ee4 | refs/heads/master | 2022-02-23T14:20:32.569192 | 2018-06-15T08:06:56 | 2018-06-15T08:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | /home/harrypotter0/anaconda2/lib/python2.7/_abcoll.py | [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
72f19dc284ac2bf624c43c39e5120e941676dad9 | c9288bd0496b92ff503a9df60f8210b08f54f3b5 | /label_studio/projects/migrations/0003_auto_20210305_1008.py | 15546212ecd08576a1f749015ef9abaed8abb3b2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mihirpurwar/label-studio | 11318bd352c9648a3c33d69f09b7f389f1b99512 | 7c9e5777b7c0fe510b8585ae4c42b74a46929f73 | refs/heads/master | 2023-05-19T18:47:52.351140 | 2021-06-13T13:46:38 | 2021-06-13T13:46:38 | 376,830,084 | 1 | 0 | Apache-2.0 | 2021-06-14T13:19:51 | 2021-06-14T13:19:50 | null | UTF-8 | Python | false | false | 2,400 | py | # Generated by Django 3.1.4 on 2021-03-05 10:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_auto_20210304_1457'),
]
operations = [
migrations.RenameField(
model_name='project',
old_name='enab... | [
"noreply@github.com"
] | mihirpurwar.noreply@github.com |
592bced0cbcf81fd35deea5cffaf73c10910136b | 23693ce4ad3eca0c208f01f5e872c6e99e1edb69 | /DarkSUSY_mH_125/mGammaD_0350/cT_5000/DarkSUSY_LHE_read.py | 764d8cf2519fd9b255536e71b898cafc1a2ed294 | [] | no_license | cms-tamu/MuJetAnalysis_DarkSusySamples_LHE_13TeV_02 | a6a1790ba62583e4693747e7162478f4688aa9a9 | ef31123e5b3f19e8a9621fa519f81105a500c3a9 | refs/heads/master | 2021-01-22T20:19:03.826804 | 2015-03-18T13:59:43 | 2015-03-18T13:59:43 | 30,620,024 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111,091 | py | import ROOT, array, os, re, math, random, string
from math import *
from operator import itemgetter
def getStringBetween(name, first, second):
begOf1 = name.find(first)
endOf1 = len(first) + begOf1
begOf2 = name.find(second)
desiredString = name[endOf1:begOf2]
return desiredString
muonID = 13
higgsID = 25
... | [
"bmichlin@rice.edu"
] | bmichlin@rice.edu |
d52ca250c5279313ecd41661ee12a5e93f3733d1 | 5905ed0409c332492409d7707528452b19692415 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/vmware/privateclouds.py | 8973c5410af453cbe0b9f0ff1d089e4085220403 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | millerthomasj/google-cloud-sdk | c37b7ddec08afadec6ee4c165153cd404f7dec5e | 3deda6696c3be6a679689b728da3a458c836a24e | refs/heads/master | 2023-08-10T16:03:41.819756 | 2021-09-08T00:00:00 | 2021-09-08T15:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,427 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"gcloud@google.com"
] | gcloud@google.com |
089d204a57ac58b1898d7497e8eaa2e12739dbfb | a91eb255bddc7d4fa12dae246e05f68f757148e4 | /dfc/document/urls.py | 3bee1653d16e26518e717117d7c6c59efb80a2aa | [] | no_license | zPatrickz/DFC-website | 7a54f3812ac0e8e5b54df3841ecbfb40da18ce64 | 6988d7ea0382ebc57540486a9621ead753cfbc37 | refs/heads/master | 2020-12-11T07:59:37.745729 | 2014-04-10T14:26:01 | 2014-04-10T14:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.conf.urls import patterns, url
from django.contrib.auth import views as auth_views
from document import views
urlpatterns = patterns('',
# url(r'^$', views.index, name = 'document_home'),
url(r'^new/', views.new, name = 'doc_new'),
url(r'^(?P<doc_id>\d+)/',views.detail, name = 'doc_detail'),
)
| [
"zeostudio@gmail.com"
] | zeostudio@gmail.com |
21183bcec283cef8fb369fe032118579540e2969 | 4724a3beaba91dd474382aaff05a900e13118071 | /09-case-study-word-play/ex_9_2_7.py | f8cc82867f782e07690f52946fceec9b89d39a1b | [] | no_license | akshirapov/think-python | 7090b11c6618b6dbc5ca5cde8ba2e1e26ca39e28 | 490333f19b463973c05abc734ac3e9dc4e6d019a | refs/heads/master | 2020-06-27T03:58:03.377943 | 2020-01-10T16:37:52 | 2020-01-10T16:40:38 | 199,838,313 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # -*- coding: utf-8 -*-
"""
This module contains a code for ex.7 related to ch.9.2 of
Think Python, 2nd Edition
by Allen Downey
http://thinkpython2.com
"""
def has_three_consecutive_double_letters(string: str):
"""Returns a word with three consecutive double letters."""
if len(string) < 6:
return Fa... | [
"cccp2006_06@mail.ru"
] | cccp2006_06@mail.ru |
e61e26e9d15b4ae40e7063119a966ff2722a352f | e5ebb73d5b94cba3e2d92fd27538fdf54c754bb7 | /spam/Obit/python/FArray.py | 86c00b59bd93c55a10a45b76a49a06f3ab808065 | [
"MIT"
] | permissive | astroblogweb/gmrt-spam | 80ab4a7f895c57856a9507a378db3897886dc84c | 5f74990805bac0ddd350e54129b0f467dbb266e1 | refs/heads/master | 2020-12-31T00:40:18.421197 | 2017-01-14T06:14:31 | 2017-01-14T06:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,872 | py | # Python interface to Obit float array class.
# $Id: FArray.py 352 2011-06-10 16:40:10Z bill.cotton $
"""
Python Obit multidimensional array of float class
This class is for creating and manipulating a Array as a memory resident
multidimensional rectangular array of floats.
Elements are stored in order of the increa... | [
"shubhankardeshpande@hotmail.com"
] | shubhankardeshpande@hotmail.com |
b522870250e1c07e8b88d02a1e893cf58ff4abdb | 6eb7dce0e5e44d3cb71748558015b91804f94d5d | /bloodhound_relations/bhrelations/tests/api.py | 8df83ea2acfb739d2560d4295e00a42618b1b067 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Python-2.0",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | thimalk/bloodhound | ba40ef5fad2a45e8b8cdd945bc72eafdaee1a5ca | f836d8314d7863563f6252d74f798694465f81ea | refs/heads/master | 2021-01-02T08:31:39.774465 | 2014-03-13T05:14:39 | 2014-03-13T05:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,967 | py | # -*- coding: UTF-8 -*-
# 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 ... | [
"tkempitiya@gmail.com"
] | tkempitiya@gmail.com |
6979f3f8d77744f8a56be1a9293b249bbeb34f0b | b95e49d381940c8e36ef638e954ca06e36c3be25 | /app.py | 15c5721608b81db64f886969f2e77e49ba55d3c4 | [] | no_license | bloogrox/dramatiq-starter | 4ca790db63b78b124d1b1000c82425355ccaa3d7 | 7190768634a56e52bc5443aa858fb9b63b5ecdc6 | refs/heads/master | 2020-06-17T07:08:04.669197 | 2019-07-08T15:31:34 | 2019-07-08T15:31:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import dramatiq
from dramatiq.brokers.redis import RedisBroker
import settings
broker = RedisBroker(url=settings.REDIS_URL)
dramatiq.set_broker(broker)
| [
"bloogrox@gmail.com"
] | bloogrox@gmail.com |
b38dad9bbbe53949d2bc4a67748445a1daa1bbd4 | 4a4717f88a0a5ea174098a342057759561f1688b | /scripts/util/diagnose_huc12.py | 7a6f1b21daa14ced31b9160195e2675f6817b81d | [
"MIT"
] | permissive | timsklenar/dep | 73ccf3ef18fe6a22f2cecba7878dcff709efea57 | 5bf9e0cd335825dcb50f22ee4c5c9c5ccc866114 | refs/heads/master | 2021-04-12T10:15:35.680758 | 2018-02-16T17:43:39 | 2018-02-16T17:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | """Do some diagnostics on what the raw DEP files are telling us"""
from __future__ import print_function
import sys
import glob
from pyiem import dep
import pandas as pd
def summarize_hillslopes(huc12, scenario):
"""Print out top hillslopes"""
envs = glob.glob("/i/%s/env/%s/%s/*.env" % (scenario,
... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
ba7462e3fe1257347ea3f0e2c36da7cd650c65ff | 855511810dd54fa2406442db034079f76a73f869 | /netbox_rest/models/tenant_group_serializer.py | 061de64d5963c72c8274440c79d1638b951e0d21 | [] | no_license | jlongever/netbox-serv | 2da55778ded70031bd7500b4bf7aebb9d814dbbc | b281c7b7ef1571ad71f46dc155c2e0e2dd19b217 | refs/heads/master | 2020-09-10T02:16:23.555873 | 2018-10-29T18:29:17 | 2018-10-29T18:29:17 | 66,660,836 | 2 | 0 | null | 2018-10-29T18:29:18 | 2016-08-26T15:59:25 | Python | UTF-8 | Python | false | false | 4,445 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not ... | [
"joseph.longever@emc.com"
] | joseph.longever@emc.com |
0bd2dc91e623ecbdacd96734ca3e54d446aee70d | 02f937609df114477f746342b37e690d24c181e8 | /src/venv/bin/easy_install-3.5 | 98872eb640733614f2356aad9294485234d277eb | [] | no_license | summukhe/SequenceStructureAnalysis | b419663e81541a028f062cbeaf2c8f81503e12da | 6e9e161a8ad89f627be9b5a2bf82d26f28b4b431 | refs/heads/master | 2021-05-05T23:34:05.824732 | 2018-01-16T17:43:06 | 2018-01-16T17:43:06 | 116,802,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | 5 | #!/home/sumanta/PycharmProjects/RLECode/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"sumant199@gmail.com"
] | sumant199@gmail.com |
1741d5b1a6df9deb02ed43335f02689dd7b7b402 | caf192dbc1ca90fee18bb4ce170d37eb14870ec5 | /Chapter-11/16. statSet class.py | 0491ce9ba16dcf1268379fbd7681333026d5dfdf | [] | no_license | Dfredude/PythonZelle | 858b00f5eacce841173c64b3cecd978dedbeb145 | 1923fe84df604968eebc5269f23b7c0f167d55f0 | refs/heads/main | 2023-08-30T21:45:57.070344 | 2021-10-17T01:32:57 | 2021-10-17T01:32:57 | 359,041,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | from math import sqrt
from random import randrange
class StatSet:
def __init__(self) -> None:
self.values = []
def addNumber(self, x): self.values.append(x)
def mean(self): return sum(self.values)/len(self.values)
def median(self):
self.n = len(self.values)
if self.n % 2 != ... | [
"dominguezlucio@outlook.com"
] | dominguezlucio@outlook.com |
1187e8c7ed00d2c08ff2a256d63db25edd0638f7 | 4c677ad71ee5b30e4957ae42fbd00ad7b90a4c2d | /backend/lively_union_27810/settings.py | 754d3bbe5e18416be076dfc95a76026589bd39c5 | [] | no_license | crowdbotics-apps/lively-union-27810 | 27ce491b2fd13c5f4413039567f96792abe71668 | 4c8b6e63a628a1ba9759b7e59fc0f2e578cae120 | refs/heads/master | 2023-05-27T06:10:19.350996 | 2021-06-07T18:51:47 | 2021-06-07T18:51:47 | 374,769,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,120 | py | """
Django settings for lively_union_27810 project.
Generated by 'django-admin startproject' using Django 2.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/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
408cbc35305ce711a6c9ec7410db919a0b7c642c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/8fb1675764894b0597301daa1e12a109.py | d160506f4701990580a9759cca9758df671ffba8 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 216 | py | def hey(prompt):
if prompt.strip() == "":
return "Fine. Be that way!"
if prompt.isupper():
return "Woah, chill out!"
if prompt.endswith("?"):
return "Sure."
return "Whatever."
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
b3017ebe21427087f950b2b556cbeecdfffff87b | 4377dddadb615c632ea49851c986cff096b79358 | /money/contrib/django/currencies/models.py | a5717692ecee69c2909275020fb9a66483ec3668 | [] | no_license | cuker/python-money | ff203d42fce5c7fcb365474688d3d53902ba512d | 4a7d97208f39568f8a1472f635264aedaa321edf | refs/heads/master | 2021-01-23T12:38:17.451084 | 2011-06-07T23:10:06 | 2011-06-07T23:10:06 | 472,834 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | from django.db import models
from django.conf import settings
import money
from decimal import Decimal
class CurrencyManager(models.Manager):
def active(self):
return self.all().filter(enabled=True)
def default(self):
return self.get(default=True)
get_default = default
de... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
c7434530e7790a420c197b0d3fc5f0f35b2948c1 | da5849cc6ab950a716131fb8c2bee2267e627463 | /python/datascience/numpy/recipe_1d.py | b1bdead51f7598c22da45a0bcf6d1f5d3f3c8964 | [] | no_license | leisheyoufu/study_exercise | 5e3beba7763f2dfafa426932e21f110df1fd150e | db58097f4b542aea894b11feae31fb26006d5ebc | refs/heads/master | 2023-08-16T21:29:26.967795 | 2023-08-11T03:09:31 | 2023-08-11T03:09:31 | 13,537,939 | 3 | 1 | null | 2023-09-05T21:59:21 | 2013-10-13T11:13:29 | Jupyter Notebook | UTF-8 | Python | false | false | 550 | py | import numpy as np
def display_shape(a):
print
print
print "Number of elements in a = %d" % (a.size)
print "Number of dimensions in a =%d" % (a.ndim)
print "Rows and Columns in a ", a.shape
print
# Create a matrix with all elements
ones_matrix = np.ones((3,3)) # 1
display_shape(ones_matrix)... | [
"chenglch@cn.ibm.com"
] | chenglch@cn.ibm.com |
279022106044acde6f309ffab694367745451504 | 6f121febfccf83eee48aa84d4b169903122af332 | /run.py | e181f717d419cdc6c9aca2753795321765d944aa | [
"MIT"
] | permissive | bipabo1l/DarkNet_ChineseTrading | b2e7edc8a7fa4e0a5cd5336a90b119bedadf30f8 | 601acd28f15a8f4298757dfe8243ebeacf17e687 | refs/heads/master | 2020-04-17T08:27:20.847210 | 2019-01-16T06:47:22 | 2019-01-16T06:47:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,353 | py |
import json
import logging
import math
import os
import random
import re
import string
import sys
import time
from base64 import b64encode
from urllib.parse import urljoin
# import pudb;pu.db
import moment
import progressbar
import pymysql
import requests
from peewee import fn
from pyquery import PyQuery as jq
from r... | [
"aoii103@126.com"
] | aoii103@126.com |
ef852b1ea95ab6b607b7111d6e352702e95e413f | 28def9c6ad5053dcd8d9ea81ef04c488bf413bb4 | /untwisted/exceptions.py | 8e555e4c948e52ef1c527a2d6cf9854042e31867 | [
"MIT"
] | permissive | kgisl/untwisted | 2b6ebd5a3a88880d785c34186444831248119935 | b1277d4d5ad0982d4bc307ed6cdbd7923b0a3305 | refs/heads/master | 2021-01-01T06:01:33.514588 | 2017-07-14T22:31:31 | 2017-07-14T22:31:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | class Stop(Exception):
"""
This exception is used to avoid remaining handles being
processed for a given event.
from untwisted.dispatcher import Dispatcher, Stop
def handle0(dispatcher):
raise Stop
def handle1(dispatcher):
print 'it will not be processed!'
dis... | [
"ioliveira.id.uff.br"
] | ioliveira.id.uff.br |
ca264bba01fbb8049800dd66a1b42075294bab3f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/PyQt_PySide_book/003_Placing several components in the box/003_Alignment of form components/074_WrapAllRows.py | a93093d67a978e4b8b6ed215b3a1f0ed61d86509 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 698 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtWidgets
import sys
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()
window.setWindowTitle("WrapAllRows")
window.resize(300, 150)
lineEdit = QtWidgets.QLineEdit()
textEdit = QtWidgets.QTextEdit()
button1 = QtWidgets.QPushButton("О&тправить")
button2 = QtWid... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
a9ae94d786b2e6b0efbde9f52d2277e59f1e209c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_143/ch58_2020_04_27_13_12_10_083214.py | 2b966cf1c6ee61808ba0af8eb5675ef066d87bbe | [] | 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 | 101 | py | def conta_a(p):
a=0
for i in p:
if i=='a':
a+=1
return a
| [
"you@example.com"
] | you@example.com |
39876d9191216f5d127a8b23705a2a7e08864d52 | a055bcba66f9ca8acd87042d3a594296f7ccb610 | /images/views.py | a9d154aa2c706fc83ee84bd990ef1c6696ebf6c9 | [] | no_license | shineforever/bookmarks | 7c3a841159435d85d72003b887759aa063c52253 | 100fceff7f5ff27eb048008dbff9ddbcd6364f97 | refs/heads/master | 2021-01-20T20:44:44.891324 | 2016-07-27T08:31:54 | 2016-07-27T08:31:54 | 62,046,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from .forms import ImageCreateForm
# Create your views here.
@login_required
def image_create(request):
if request.method == 'POST':
form = ImageCreateForm(data=reque... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
842ac23abab226df3247cd683085b0e3c9a8dcb4 | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network2859_1.py | 52605c7a53131593eb37a575d3ee5d83b2061bf0 | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,507 | py | species(
label = '[CH2][C]([CH2])OC([CH2])O(10182)',
structure = SMILES('[CH2][C]([CH2])OC([CH2])O'),
E0 = (305.378,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3000,3020,3040,3060,3080,3100,415,440,465,780,815,850,1435,1455,1475,900,1000,1100,360,370,350,3615,1277.5,1000,1380,1390,370,... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
7f91c02504e6d266ed0d2d3714c567ea0a2fd731 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/gensim/nosy.py | 3e6340e85f0878212b450c7936cc786ab7e9c1d3 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:67fa7e813100e4a41be9728ee8a521d4a488ec12655fc2e06e5c2a302445df3b
size 1407
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
72223f10d913723ce44e84a0057fb20a83494203 | a31e7a01b0a7879ddbda7ba3a606ff4df718f0ef | /app/ingredients/apis/__init__.py | f83d6db436bc44756bd94b14c67da226d9d63650 | [] | no_license | smallbee3/Subway_Server | 27a477c81b830d2f264afb09c646d53d8096e5f4 | c0bebf3715663c7d29ffdc9e9ff878d226dd3496 | refs/heads/master | 2021-02-17T00:58:29.371121 | 2018-12-27T10:43:51 | 2018-12-27T10:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from .sandwich import *
from .bread import *
from .cheese import *
from .toasting import *
from .toppings import *
from .vegetables import *
from .sauces import *
| [
"smallbee3@gmail.com"
] | smallbee3@gmail.com |
947f2354c12c0c6018cf8ef04366e36ba0a30a3a | 681be3b4cfa00433fe4a926446ea627d6d1becc0 | /worldcup/python启动服务.py | 84345aafa4e486acb49d4cdf6dfd4ad059fa687e | [] | no_license | snailuncle/helloNode | 2141336c7f0489eb49d36f7af2131c22e39ea5f6 | 906a90809a674ccac039963701ff27992df37cba | refs/heads/master | 2020-03-25T13:29:29.198464 | 2018-09-03T01:12:21 | 2018-09-03T01:12:21 | 143,828,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | python -m SimpleHTTPServer
python -m http.server 8000
| [
"1789500304@qq.com"
] | 1789500304@qq.com |
9d4b803130a5a9f854d3606a9baf73ec90a5b953 | 29c3595a4e1f8de9382650610aee5a13e2a135f6 | /venv/Lib/site-packages/autobahn/websocket/test/test_websocket_protocol.py | 9ce7ed7ac72bb166e8c7fa147c721468acb73115 | [
"MIT"
] | permissive | zoelesv/Smathchat | 1515fa56fbb0ad47e1859f6bf931b772446ea261 | 5cee0a8c4180a3108538b4e4ce945a18726595a6 | refs/heads/main | 2023-08-04T14:47:21.185149 | 2023-08-02T15:53:20 | 2023-08-02T15:53:20 | 364,627,392 | 9 | 1 | MIT | 2023-08-02T15:53:21 | 2021-05-05T15:42:47 | Python | UTF-8 | Python | false | false | 9,475 | py | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in ... | [
"ZoomLee@users.noreply.github.com"
] | ZoomLee@users.noreply.github.com |
e7a2127c826f94d3c911d95c8b6038cccefef18c | 78c4ccb183a99ebaabcdc3a3a69f029e4aee0f5c | /AlgorithmStudy/백준/5 DFS & BFS/11 토마토.py | 60372a187211792a6f091d124a6a3eac1a1504aa | [] | no_license | cladren123/study | ef2c45bc489fa658dbc9360fb0b0de53250500e5 | 241326e618f1f3bb1568d588bf6f53b78920587a | refs/heads/master | 2023-09-02T02:21:24.560967 | 2021-11-05T12:20:06 | 2021-11-05T12:20:06 | 368,753,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py |
"""
실버1
"""
# m:가로칸 n:세로칸
from collections import deque
m,n = map(int, input().split())
# 1:은 익은 토마토 0:익지 않은 토마토 -1:토마토가 들어있지 않은 칸
board = [list(map(int, input().split())) for _ in range(n)]
visited= [[-3] * m for _ in range(n)]
que = deque()
dx = [1,0,-1,0]
dy = [0,-1,0,1]
count = 0
for i in range(n) :
... | [
"48821942+cladren123@users.noreply.github.com"
] | 48821942+cladren123@users.noreply.github.com |
1732a222aa9a8307cf510c5897e748bd5b556e19 | fdb8d96d06cb7e74153a178fd17b449e89f44cd0 | /poo_vs_estructurado/poo.py | e24044e8067356ec354c939e87f577fa5eb7830e | [] | no_license | EmaSMach/info2020 | c84916521d2dd21040419cb469c76c589b98be89 | a184dc376cb5e0b894a32d01681b71c824d993d3 | refs/heads/master | 2022-12-06T08:52:34.994922 | 2020-08-24T02:57:40 | 2020-08-24T02:57:40 | 273,131,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | # Creo una estructura para los clientes
class Cliente:
def __init__(self, dni, nombre, apellidos):
self.dni = dni
self.nombre = nombre
self.apellidos = apellidos
def __str__(self):
return '{} {}'.format(self.nombre, self.apellidos)
def __repr__(self):
return str(se... | [
"davidemanuelsandoval@gmail.com"
] | davidemanuelsandoval@gmail.com |
a7fd6a5636da3ad3daab9964b5057344b43fbd77 | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/system_unit_tests/pytorch/test_optimizer_adadelta.py | 9f4ba4daa325105e45dc523eb6c714525e3b7b40 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 1,828 | py | import os
import sys
sys.path.append("../../../../monk_v1/");
sys.path.append("../../../monk/");
import psutil
from pytorch_prototype import prototype
from compare_prototype import compare
from common import print_start
from common import print_status
def test_optimizer_adadelta(system_dict):
forward = True;
... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
8c2cfcea57ba4e2829b34ac0622ff9d4903f0378 | f2201a77b8039215591aaa31dddae7ebb72301c2 | /backend/users/migrations/0002_auto_20201119_0018.py | e972e5c362cf7d7c108192355b442edcf2e62a64 | [] | no_license | crowdbotics-apps/start-up-22744 | 8726c58855ffee7ceb48100c9ebeb26a377a1051 | bbd9ce066d6636fe6866c7070a1a8370033ba91c | refs/heads/master | 2023-01-11T15:30:38.074614 | 2020-11-19T00:19:18 | 2020-11-19T00:19:18 | 314,091,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Generated by Django 2.2.17 on 2020-11-19 00:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='last_updated',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
08422f80718e6ddd8b5db6147f40775b09d9554f | d9f10273960c6956db55f694cdee5910554addd1 | /run.py | a815b8440b2399dddb1a48ace624494c331228bf | [] | no_license | manuelborowski/infoheliks | 09b7c6618922aa35ec2334b64cbf55d4bf0d4a80 | a543960a28d00d204a4a699d58964faec6326847 | refs/heads/main | 2023-04-18T11:28:03.115297 | 2021-05-04T08:46:25 | 2021-05-04T08:46:25 | 350,639,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from app import flask_app, socketio
if __name__ == '__main__':
socketio.run(flask_app, port=5026, host='127.0.0.1', debug=False) | [
"emmanuel.borowski@gmail.com"
] | emmanuel.borowski@gmail.com |
e0403b2849329c0dea1acd1f3349257cd8c11022 | 4111ca5a73a22174f189361bef654c3f91c3b7ed | /Lintcode/Ladder_37_BB/easy/646. First Position Unique Character.py | 1f8a68e990d0be27eacc8cb5a84adaeaa998a1ad | [
"MIT"
] | permissive | ctc316/algorithm-python | 58b541b654509ecf4e9eb8deebfcbdf785699cc4 | ac4580d55e05e93e407c6156c9bb801808027d60 | refs/heads/master | 2020-03-16T06:09:50.130146 | 2019-08-02T02:50:49 | 2019-08-02T02:50:49 | 132,548,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | class Solution:
"""
@param s: a string
@return: it's index
"""
def firstUniqChar(self, s):
counts = {}
for ch in s:
counts[ch] = counts.get(ch, 0) + 1
for i in range(len(s)):
if counts[s[i]] == 1:
return i
return -1 | [
"mike.tc.chen101@gmail.com"
] | mike.tc.chen101@gmail.com |
cce8c03c7514638d39b72b60615e7063c2e4a4ac | dae8e0070b093d662fdeea026e3eb48814af73c5 | /Autosampler/analysis/nonlinearRegression.py | f678adb1f0f4ed85179278d694bf32842efd643e | [] | no_license | clipo/RHX | 43d3dc8e0f2a4d90a8c83ec2a9e4fc0be30fddae | 93286e17df1ec05d98d791671d641d86b7f588b9 | refs/heads/master | 2021-01-02T23:06:23.023476 | 2013-04-27T21:42:01 | 2013-04-27T21:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | __author__ = 'carllipo'
import numpy as np
from scipy.optimize import leastsq
def function(a, time):
return a * np.power(time, 0.25)
def residuals(p, y, x):
err = y - function(x, p)
return err
def nlinRegression(timeArray, weightChangeArray, minval, maxval):
nlx = []
nly = []
count = 0
... | [
"clipo@csulb.edu"
] | clipo@csulb.edu |
e55f1275abce7b05777331f05a7db588bb10a82f | eb74806869a4340a6d8a2623bbe72bd4e64dcde8 | /apps/push/signals.py | 2f2aa7d3d0a552e734bfa3cc964dd3aa73a9278b | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | sictiru/NewsBlur | a0874a1044926d2268ba07a928e62fce5c9a8310 | 1ab88e4cc34775d00a1ac90ee08bc2498577e773 | refs/heads/sictiru | 2023-08-19T20:24:20.638019 | 2023-08-15T03:52:09 | 2023-08-15T03:52:09 | 250,445,213 | 1 | 0 | MIT | 2023-03-06T15:34:38 | 2020-03-27T05:05:44 | Objective-C | UTF-8 | Python | false | false | 260 | py | # Adapted from djpubsubhubbub. See License: http://git.participatoryculture.org/djpubsubhubbub/tree/LICENSE
from django.dispatch import Signal
pre_subscribe = Signal(providing_args=['created'])
verified = Signal()
updated = Signal(providing_args=['update'])
| [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
8c965bc5e529ecf239d5241c6d31618513eb5b69 | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/ibvpy/mesh/fe_domain.py | 77d1550ea5ee3bd2e315cafde023e53e6b2b7379 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 4,549 | py |
from enthought.traits.api import \
Array, Bool, Callable, Enum, Float, HasTraits, Interface, implements, \
Instance, Int, Trait, Str, Enum, Callable, List, TraitDict, Any, \
on_trait_change, Tuple, WeakRef, Delegate, Property, cached_property, \
This, self, TraitError, Button, Event
from enthought... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
588f61e7ddc589c30c4773fe81ada161b7fe2c69 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/ip/rtm_config/route/static_route_nh_vrf/__init__.py | 04130225b089110a163e1218603f501b62d660c8 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,541 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
fa8815618592d941b28acb1eff9ab0cc10c18098 | ee5040164beb866310c9cf23584002a342b451c0 | /infra/libs-400rc2-20190512/examples/bmp280_simpletest.py | a54217ef21ce3baff21f2e95ebb304d914368ca5 | [
"MIT"
] | permissive | jadudm/feather-isa | cf9a47c627408addbbc84581e5d6dff35a79773e | b7419e6698c3f64be4d8122656eb8124631ca859 | refs/heads/master | 2020-05-22T11:45:33.753573 | 2019-06-11T15:49:42 | 2019-06-11T15:49:42 | 186,329,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import time
import board
# import digitalio # For use with SPI
import busio
import adafruit_bmp280
# Create library object using our Bus I2C port
i2c = busio.I2C(board.SCL, board.SDA)
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c)
# OR create library object using our Bus SPI port
#spi = busio.SPI(bo... | [
"matt@jadud.com"
] | matt@jadud.com |
efcfc1b4ef74378b813bd4f0312e79c71328f77a | 3767e31f1c3a53d388cdc6fc1244bf980dfe039a | /pepysdiary/membership/forms.py | c846a8714a7a3e3ca2e7b01a686abf0ec14c79c8 | [] | no_license | philgyford/pepysdiary | 73749f389c226a35876e55e108a9f39e6afece5e | c6d99f39046eb5309f3292bfb4edb8b008f37aeb | refs/heads/main | 2023-09-01T21:27:41.762431 | 2023-08-30T08:49:44 | 2023-08-30T08:49:44 | 7,092,491 | 16 | 6 | null | 2023-09-11T15:06:09 | 2012-12-10T11:55:11 | Python | UTF-8 | Python | false | false | 7,794 | py | # coding: utf-8
from django import forms
from django.contrib.auth import password_validation
from django.contrib.auth.forms import (
AuthenticationForm,
PasswordResetForm,
SetPasswordForm,
)
from django.utils.translation import gettext_lazy as _
from hcaptcha.fields import hCaptchaField
from pepysdiary.com... | [
"phil@gyford.com"
] | phil@gyford.com |
b5688b3f5c68c69b9550b071e5b97a20ee96c780 | dac3a695b895c0170c350054fcc52d95f0daef5d | /data/level/level156.py | f86f3bcf8176051f74bd52d700e0355532dd646a | [
"Apache-2.0"
] | permissive | xingchen1106/match3-level-similarity | aad87de6e54c5bdc89cf4dac168559d11997d496 | cc9b28b8741b41bea1273c8bc9b4d265d79a1dca | refs/heads/master | 2021-05-22T02:48:09.444957 | 2019-07-19T09:19:09 | 2019-07-19T09:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,611 | py | data = {
'level_index': 156,
'move_count': 28,
'board_info': {
(0, 0): {
'prev': (0, -1),
'next': (0, 1),
'base': (50, 1),
'cover': (64, 1),
'fall_point': (0, -1)
},
(0, 1): {
'prev': (0, -1),
'next':... | [
"salild1011@gmail.com"
] | salild1011@gmail.com |
1f441384521bb711ae6fdce8fef88f9fae846dec | 891371ebcb696b91df1d00f98cb595608b580d34 | /documents/migrations/0015_requestarchive_approved_by.py | 80acd3afe27f687758cfbe9bb0993586f1b4c45a | [] | no_license | NiiColeman/law-firm | 867df413e9ca30c57afad9d2743fe19ab96ba586 | f41ee5ac88d3f640dce720c90cbfefb93a267400 | refs/heads/master | 2022-09-23T22:52:25.312903 | 2020-06-01T14:30:24 | 2020-06-01T14:30:24 | 241,650,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 2.2.6 on 2020-02-18 11:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documents', '0014_documentarchive_location'),
]
operations = [
migrations.AddField(
model_name='requestarchive',
nam... | [
"nii.cole@outlook.com"
] | nii.cole@outlook.com |
012a8170f648836e33bbe603989e95ffb9215a03 | 3f13885fdb0649374d866d24a43f86ccc6b4c782 | /apps/tools/views/qizhi.py | ca388f32f00be53c879448e92b8d76df70c1fcbd | [] | no_license | linkexf/oneops | 426b271c00c5b4b4c55d1d91bf42030dab29623a | 64a9c7fd949b6220234a276614ab6555dc8cc17c | refs/heads/master | 2020-12-10T04:45:55.681731 | 2019-11-28T09:02:30 | 2019-11-28T09:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py |
from django.views.generic import TemplateView
from django.contrib.auth.mixins import LoginRequiredMixin
class QiZhiCreateHostView(LoginRequiredMixin, TemplateView):
template_name = "tools/qizhi_create_host.html"
def get(self, request, **kwargs):
context = {
'path1': '小工具',
'p... | [
"andykaiyu@163.com"
] | andykaiyu@163.com |
f1e366f27ad1885260c92fa6e048d493ea794f29 | 597b82737635e845fd5360e191f323669af1b2ae | /08_full_django/products/products/urls.py | 6e148c5162f8e91d1ea8758a9a4ef402749fc16d | [] | no_license | twknab/learning-python | 1bd10497fbbe181a26f2070c147cb2fed6955178 | 75b76b2a607439aa2d8db675738adf8d3b8644df | refs/heads/master | 2021-08-08T08:50:04.337490 | 2017-11-10T00:28:45 | 2017-11-10T00:28:45 | 89,213,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | """products URL Configuration
Sets up URL configuration for each application in the `products` project.
Current Applications:
-`products`: a simple app to play with Django Models and creating and retrieving data.
"""
from django.conf.urls import url, include
urlpatterns = [
url(r'^', include("apps.products.urls"... | [
"natureminded@users.noreply.github.com"
] | natureminded@users.noreply.github.com |
a5d645e662c818a20711511e5c0bbe7dfcc7e768 | d93586a23b50027c766be448072e5c06ebd05ffc | /seq2seq/dependency/tf_models/models/official/r1/transformer/dataset.py | b5c607bf78f00095741c0bb5af23110c4bd7babe | [
"Apache-2.0"
] | permissive | peixiang6134/tf_bot_examples | 9bd3a63bf5e699e49455d3beb91c4995f47d781a | b4e8eb6a555b3eeeb423ad928a9009c41b4e5950 | refs/heads/master | 2021-07-09T02:29:26.303639 | 2020-02-22T08:58:33 | 2020-02-22T08:58:33 | 238,680,285 | 1 | 1 | null | 2021-03-31T21:54:12 | 2020-02-06T12:08:36 | Python | UTF-8 | Python | false | false | 11,409 | py | # Copyright 2018 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... | [
"1316802995@qq.com"
] | 1316802995@qq.com |
69db29490d01dc933aed028527cca2bbcb2a80a9 | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/seguranca/models/sale_defeito_os.py | 484544383c69811435d08f76d682a553b9c6d529 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # -*- coding: utf-8 -*-
#from __future__ import division, print_function, unicode_literals
from osv import osv, orm, fields
class sale_defeito_os(osv.Model):
_description = u'Defeito da OS'
_name = 'sale.defeito.os'
_rec_name = 'nome'
_order = 'id'
def _codigo(self, cr, uid, ids, nome_campo, ar... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
117788556929425f430585c961bb4ff7d6162fee | 8d753bb8f19b5b1f526b0688d3cb199b396ed843 | /osp_sai_2.1.8/system/apps/web/api/web_sessions.py | 146b4f0981fe26b5dc00f9568af90c121d95faf4 | [] | no_license | bonald/vim_cfg | f166e5ff650db9fa40b564d05dc5103552184db8 | 2fee6115caec25fd040188dda0cb922bfca1a55f | refs/heads/master | 2023-01-23T05:33:00.416311 | 2020-11-19T02:09:18 | 2020-11-19T02:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
from flask import url_for
import os
import base
from vcl import vcmd
import types
def get(file_type):
"""
API:
GET:
Retrun: {
sess: [
{id: string, user: string, expire: string, client: string,},
...
],
}
... | [
"zhwwan@gmail.com"
] | zhwwan@gmail.com |
3c2b44b45e010b4843d1e27a86696ab4d83f9802 | 13a13b4f93ef6664dcf610a556c53a1f6c3c8bc4 | /ques9.py | d41b7a7f7fccd0c92d0dca3ec26dbf55f564b6f0 | [] | no_license | BhagyashreeKarale/more-exercise | 54ea9f6fa2f4f007278631535362959446980ea9 | c0f34d345d2e5bef19f872861fafb3f8a0233e43 | refs/heads/main | 2023-08-02T14:49:44.403733 | 2021-09-11T19:07:51 | 2021-09-11T19:07:51 | 405,454,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | # Harshad numbers aise number hote hain jo apni digits ke sum se dhang se divide hote hain.
# Dhang se divide hone ka matlab ki remainder 0 aata hai.
# Jaise 42 ek Harshad number hai kyunki 4 + 2 = 6 aur 42 ko 6 se divide kar ke remainder aata hai
# Aise hi 18, 21 aur 24 bhi harshad number hai
# kyunki 1 + 8 = 9 au... | [
"noreply@github.com"
] | BhagyashreeKarale.noreply@github.com |
3b907f1a9e78e5f2499489ec4a96db16c6a67c09 | 45b8e141f762b95edec36ce40809ea4b89e3d287 | /mahkalastore/mahkalastore/settings.py | 5838b8a0373f9a932a716f814882743e16317924 | [] | no_license | nimanoori22/mys | 73d7a0ad141e1c6208e776a15d079a2599c46a7f | 0122586a4d69f80219ad25e42ef89f3052f5cb81 | refs/heads/master | 2022-11-28T22:24:44.947703 | 2020-08-13T14:52:19 | 2020-08-13T14:52:19 | 279,652,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | """
Django settings for mahkalastore project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"nimanoori000@gmail.com"
] | nimanoori000@gmail.com |
f3d59c59e7e9b0a08ba9fcd1d5b3cb89a0914baa | 39a1d46fdf2acb22759774a027a09aa9d10103ba | /tests/layer_tests/onnx_tests/test_cumsum.py | b49f00f887c3ffb66b20cf937597ece1c21884fa | [
"Apache-2.0"
] | permissive | mashoujiang/openvino | 32c9c325ffe44f93a15e87305affd6099d40f3bc | bc3642538190a622265560be6d88096a18d8a842 | refs/heads/master | 2023-07-28T19:39:36.803623 | 2021-07-16T15:55:05 | 2021-07-16T15:55:05 | 355,786,209 | 1 | 3 | Apache-2.0 | 2021-06-30T01:32:47 | 2021-04-08T06:22:16 | C++ | UTF-8 | Python | false | false | 9,264 | py | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import pytest
from common.layer_test_class import check_ir_version
from common.onnx_layer_test_class import OnnxRuntimeLayerTest
from unit_tests.utils.graph import build_graph
def cumsum(a, axis=None, exclusive=False... | [
"noreply@github.com"
] | mashoujiang.noreply@github.com |
5ef6346413ae628ba03088b2d210c9ae42298bd9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03352/s946533946.py | 12fad2670ffb01c55aa659302df6c57fe72d8080 | [] | 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 | 173 | py | X = int(input())
res = 1
for i in range(X):
for p in range(2, X):
if i ** p <= X:
res = max(res, i ** p)
else:
break
print(res)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5438414fe8e44e712ecbfe276212b0d08e32fd70 | e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488 | /samanage/komand_samanage/triggers/new_incidents/trigger.py | 470860710f58f767235a820a10dff1bf13aa4beb | [
"MIT"
] | permissive | OSSSP/insightconnect-plugins | ab7c77f91c46bd66b10db9da1cd7571dfc048ab7 | 846758dab745170cf1a8c146211a8bea9592e8ff | refs/heads/master | 2023-04-06T23:57:28.449617 | 2020-03-18T01:24:28 | 2020-03-18T01:24:28 | 248,185,529 | 1 | 0 | MIT | 2023-04-04T00:12:18 | 2020-03-18T09:14:53 | null | UTF-8 | Python | false | false | 2,192 | py | import komand
import time
from .schema import NewIncidentsInput, NewIncidentsOutput
# Custom imports below
class NewIncidents(komand.Trigger):
def __init__(self):
super(self.__class__, self).__init__(
name='new_incidents',
description='Check for new incidents',
... | [
"jonschipp@gmail.com"
] | jonschipp@gmail.com |
516fab03d860d4df846fb70176bd0d16d5007d2f | ddc6e402758c364d25ce9caeda7b3cd94dbcd546 | /Medium/535_EncodeandDecodeTinyURL.py | 2cda233163cdee5989cbaf60070c314a400fbc4d | [] | no_license | J-pcy/Jffery_Leetcode_Python | f01cdbb31a114bc6ed91139d0bd2cdddda35a503 | f34c370fbb9fb171d5ec33337116a764c25cd2dd | refs/heads/master | 2020-03-20T20:20:02.931776 | 2018-11-02T19:41:36 | 2018-11-02T19:41:36 | 137,682,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | """
TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http://tinyurl.com/4e9iAk.
Design the encode and decode methods for the TinyURL service. There is no restriction on how your encode/decode algorithm should work. You jus... | [
"chenyupe@usc.edu"
] | chenyupe@usc.edu |
d4aa33ef9af10d78de2c1ed7a52823bdcaaae7c9 | 31cf77b4c0342c6148b35ae2613d5e2501d5e755 | /src/encoded/tests/fixtures/schemas/organism_development_series.py | 1a85ac543daf46cc0080b5b5fe5361773c6e4447 | [
"MIT"
] | permissive | ENCODE-DCC/encoded | 096de8a6d60c959a783cc9517f1d60bd6c21b71f | 80e05610c79b46d0890228555bb03e436b2fef11 | refs/heads/dev | 2023-08-08T15:45:07.493187 | 2023-08-03T20:01:24 | 2023-08-03T20:01:24 | 7,045,549 | 110 | 69 | MIT | 2023-09-12T23:59:45 | 2012-12-07T00:52:21 | JavaScript | UTF-8 | Python | false | false | 405 | py | import pytest
@pytest.fixture
def organism_development_series_17(testapp, lab, base_experiment_submitted, award):
item = {
'award': award['uuid'],
'lab': lab['uuid'],
'related_datasets': [base_experiment_submitted['@id']],
'schema_version': '17',
'internal_tags': ['ENCYCLOP... | [
"noreply@github.com"
] | ENCODE-DCC.noreply@github.com |
c047613e9ed2f92e9bf284726158a743c18d970f | a5747577f1f4b38823f138ec0fbb34a0380cd673 | /17/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisnewnewST_s-channel_4f_leptonDecays.py | f1704df01dc11d1aad6690e6981b899f1585d06c | [] | no_license | xdlyu/fullRunII_ntuple | 346fc1da4cec9da4c404aa1ec0bfdaece6df1526 | aa00ca4ce15ae050c3096d7af779de44fc59141e | refs/heads/master | 2020-08-03T07:52:29.544528 | 2020-01-22T14:18:12 | 2020-01-22T14:18:12 | 211,673,739 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'newnewST_s-channel_4f_leptonDecays'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Fall17_17Nov2017_V8_... | [
"XXX@cern.ch"
] | XXX@cern.ch |
bcca40aea327335a5be27121afa6c83aad3e0049 | 3267fb38696d7b114a22f476f2c60425d6ee349a | /src/tests/test_api/test_auth_endpoint.py | b2aa2759373a6cb2b92f4a901b98debd44f51dfe | [] | no_license | marcinowski/github-adapter | c0092e3f817f9dc1d97691e81b1c247ae281b2c7 | 2d7c6b9601da082de246450cc840412f0c4331b5 | refs/heads/master | 2022-12-10T00:53:39.386198 | 2017-09-06T10:57:09 | 2017-09-06T10:57:09 | 100,716,960 | 0 | 0 | null | 2021-06-01T22:02:20 | 2017-08-18T13:55:02 | Python | UTF-8 | Python | false | false | 1,805 | py | """
:created on: 2017-08-22
:author: Marcin Muszynski
:contact: marcinowski007@gmail.com
"""
from flask import session
from unittest.mock import MagicMock
from api.auth import AuthLogin, AuthLogout
from ..generic import GenericTestCase
from ..github_responses import AUTH_RESPONSE, AUTH_STATUS, ERROR_RESPONSE_401
c... | [
"muszynskimarcin@wp.pl"
] | muszynskimarcin@wp.pl |
a2f91cc8c13f634a36add56d6baa39f288d1e554 | 8da90fe722d50c8f624a64c73e09c6795b2b1db5 | /tf_agents/bandits/policies/greedy_reward_prediction_policy_test.py | 90dc038c75e9ce9c3067af8021263874404847b5 | [
"Apache-2.0"
] | permissive | futurev/agents | d5e3ad62c469fc33cafe71566f0be18f01a37f3b | c721d09c8ce2e70e46a3a9d3c56483118575d3f4 | refs/heads/master | 2022-10-21T05:25:34.342989 | 2022-09-28T23:44:04 | 2022-09-28T23:44:04 | 257,982,748 | 0 | 0 | Apache-2.0 | 2020-04-22T18:12:43 | 2020-04-22T18:12:42 | null | UTF-8 | Python | false | false | 14,172 | py | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
af0406bc37dc6322179122bb2b34e46c5407bf26 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /BZ4mMcEz3aqosEtbC_7.py | e3f9da38350d7784a4a4a0d20383b509a28ee3da | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py |
def mean(num):
count = 0
str_num = str(num)
for i in range(len(str_num)):
count += int(str_num[i])
return int(count/len(str_num))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5e47baa390d8d2f117b9ae64bc39ef1cfc413d28 | 27acb207b21b4572561de4a5f7dfb9740318c0b8 | /Python-Programming-Essentials/Week3/Ex10_W3_smaller_root.py | be67b001047ad7f7053dfbcba4458612dc558b08 | [] | no_license | iamieht/intro-scripting-in-python-specialization | ee836ef05b62f6c74fe8da3ee137687b4d0035cf | 8ea4f85f0ed3dcd541f89521c013335e9eb32980 | refs/heads/master | 2021-01-16T05:35:51.616276 | 2020-06-08T18:39:45 | 2020-06-08T18:39:45 | 242,993,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | """
Compute the smaller root of a quadratic equation.
"""
###################################################
# Smaller quadratic root formula
# Student should enter function on the next lines.
def smaller_root(a, b, c):
'''
returns the smaller solution to the quadratic equation if one exists
'''
discr... | [
"iamieht@gmail.com"
] | iamieht@gmail.com |
6783bf9ea4a5df08ea547298358e38c0ad0d7867 | 2ac13c73340e5f4126e1dc394cdca45e3b2b223b | /utils/time_now.py | 76025e95be078f76beee9634e373b4a500d4b4d8 | [] | no_license | EgbieAndersonUku1/price_alerter_app | 36074fc32aedde1aee0524a271e98d3da18126d1 | 87e1d6ac05a19b0255c43003e957190f597d4655 | refs/heads/master | 2020-03-17T07:04:50.299396 | 2018-06-06T00:06:45 | 2018-06-06T00:06:45 | 133,375,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from datetime import datetime
from datetime import timedelta
def time_passed_since_current_time(minutes):
"""time_passed_since_current_time(int) -> returns time obj
Returns the number of minutes that has elapsed between
the current time and the passed in parameter minutes.
"""
return time_n... | [
"jayunderwood2011@hotmail.com"
] | jayunderwood2011@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.