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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14b8a10c008579e57d0d23870394bd2f9d00e499 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_1/Python/ahausch/D.py | 3cf95f2a6023418fdc16b784eff43f0a8a7afec1 | [] | 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 | 589 | py | import sys
import math
def solve(K, C, S):
if (S < math.ceil(K / C)):
return "IMPOSSIBLE"
S = math.ceil(K / C)
i = 0
r = []
for s in range(S):
pos = 0
for c in range(C):
if (i >= K):
break
pos = pos * K + i
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
19486d8466a1b265801548cad5027ad22bd07692 | 5a281cb78335e06c631181720546f6876005d4e5 | /solum-6.0.0/solum/tests/common/test_solum_swiftclient.py | fbfad4ade571d9e7a795a0f4fede2d2d18d3c5e8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 2,440 | py | # Copyright 2015 - Rackspace Hosting
#
# 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 ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
41773fcade2a6453ac51625cee00770ad3a02f78 | 34d6ec6c9a459ab592f82137927107f967831400 | /week08/lesson/743-network-delay-time-Bellman-ford.py | b82d47e05a1edcea8d4185b9da9eeceb76756564 | [
"MIT"
] | permissive | MiracleWong/algorithm-learning-camp | 228605311597dc3c29f73d4fb6b7abedc65d05a7 | aa5bee8f12dc25992aaebd46647537633bf1207f | refs/heads/master | 2023-07-15T21:34:11.229006 | 2021-09-05T09:06:16 | 2021-09-05T09:06:16 | 379,647,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | class Solution:
def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:
# dist 初始化,起点为0,其他为+oo
dist = [1e9] * (n + 1)
dist[k] = 0
# Bellman-ford 算法
for iteration in range(n - 1):
updated = False
for i in range(len(times)):
... | [
"cfwr1991@126.com"
] | cfwr1991@126.com |
98bd50f650bcf86b7bd116e3eb2d4bcff2cb37ed | 38ac429d63369922e12e19cdda042b08b8123027 | /test/test_assignments_api.py | f4088df3c26e3bc14fabe3d926d588d688266f87 | [] | no_license | aviv-julienjehannet/collibra_apiclient | 0dfebe5df2eb929645b87eba42fab4c06ff0a6be | 10a89e7acaf56ab8c7417698cd12616107706b6b | refs/heads/master | 2021-09-12T16:52:19.803624 | 2018-04-19T01:35:20 | 2018-04-19T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | # coding: utf-8
"""
\"Data Governance Center: REST API v2\"
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import ... | [
"busworld08@gmail.com"
] | busworld08@gmail.com |
a17d9a637230803a57cdecda3f01a54e3490fcaf | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/imt2020/imt2020/modelEvalDec.py | 9bae39e758014b78adccdc204a99f3aeeec9b16d | [] | no_license | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | #=======================================================================================================================
#=======================================================================================================================
import numpy as np
import tensorflow as tf
from modelDesign import *
import sc... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
05f85d5e2a79d9b905c1ab8b6068858b3b190797 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/1859.py | 097f8ab50567049219afad10b48e6fc6a3d52758 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | from sys import stdin
def get_judge_points(total):
if not isinstance(total, int):
total = int(total)
i = int(total/3)
remainder = total % 3
points = [i, i, i]
while remainder > 0:
points[remainder] += 1
remainder -= 1
return points
def do_surprise(points):
diff = max(points) - min(points)
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
88e99f9833bae6a2ea3a4a486f8efc6ea059088e | 9ca91c03b770e0bad09e6fbb2d7e8cbef8482263 | /articles/filmav/grabed_articles/60335.py | 39f213a6339559618ef5fa3fd0037b1b8cfde314 | [] | no_license | renever/wp_sys | 7408b5c7edb47cb376bb786d630481fd825815ed | 23469f2a03759293abf2ed38482c1f152f5798d4 | refs/heads/develop | 2020-05-20T06:00:44.550968 | 2015-02-10T16:04:30 | 2015-02-10T16:04:30 | 31,001,855 | 1 | 2 | null | 2015-02-19T04:55:43 | 2015-02-19T04:55:42 | Python | UTF-8 | Python | false | false | 1,463 | py | {"screenshosts": ["http://img58.imagetwist.com/i/07668/rohq8x0q8eap.jpeg"], "description": "p>Tokyo-hot n1014 <span class=\"wp_keywordlink_affiliate\"></span> (Miyu Nakayama\uff09<br />\n<br />\n\u51fa\u6f14\u8005\u540d <span class=\"wp_keywordlink_affiliate\"></span><br />\n\u30b7\u30ea\u30fc\u30ba \u64ae\u308a\u304a\... | [
"wodewangzuan@gmail.com"
] | wodewangzuan@gmail.com |
7b50ee40c5fbcab7fdd8bbdd1d6ec7d1d57bdaef | b82155d41bab1590a845549c3364e6c7d490a9b0 | /Chapter9/9_4.py | 48aa8a528c67bd19fe3c9f6960548c705814bfd6 | [] | no_license | Myfour/Fluent_Python_Study | d9cc82815caf5a0c04f1283a5699bc4be013d84c | 30a96ca2a8df54008f313e5b5bfb2d3dd97458dd | refs/heads/master | 2020-04-22T05:27:03.185038 | 2019-05-13T14:17:32 | 2019-05-13T14:17:32 | 170,159,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | '''
比较@classmethod和@staticmethod的行为
'''
class Demo:
@classmethod
def klassmeth(*args):
return args
@staticmethod
def statmeth(*args):
return args
print(Demo.klassmeth())
print(Demo.klassmeth('aaa'))
print(Demo.statmeth())
print(Demo.statmeth('bbb'))
print(Demo().statmeth()) | [
"oz_myx@126.com"
] | oz_myx@126.com |
6a337af69004a88b494f71d4040fad44ce697915 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day09/homework/FTP/core/log.py | 2c015fef5f86df75116b948c5e61cf9c479e6266 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 2,392 | py | # -*- coding: utf-8 -*-
__author__ = 'caiqinxiong_cai'
# 2019/8/26 15:37
import logging
import sys
import time
from logging import handlers
from conf import settings as ss
class Log(object):
'''
https://cloud.tencent.com/developer/article/1354396
'''
now_time = time.strftime('%Y-%m-%d %H:%M:%S', time.l... | [
"13269469526@163.com"
] | 13269469526@163.com |
b50799fe5511d496b4e68f1a8b58087176fddf2d | eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e | /atcoder/abc/abc301-400/abc301/b.py | b9d8a82685d6db658c6c82c4ecf0bc9b4ef847f1 | [] | no_license | reo11/AtCoder | 4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9 | 69c6d67f05cb9190d8fb07204488cd7ce4d0bed2 | refs/heads/master | 2023-08-28T10:54:50.859288 | 2023-08-22T18:52:47 | 2023-08-22T18:52:47 | 162,085,118 | 4 | 0 | null | 2023-07-01T14:17:28 | 2018-12-17T06:31:10 | Python | UTF-8 | Python | false | false | 295 | py | n = int(input())
a = list(map(int, input().split()))
ans = []
for i in range(n - 1):
if a[i] < a[i + 1]:
for j in range(a[i], a[i + 1]):
ans.append(j)
else:
for j in range(a[i], a[i + 1], -1):
ans.append(j)
ans.append(a[-1])
print(*ans, sep=" ")
| [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
5bc2856f4e1317762a13a48e6e2301eafd01e196 | 2354fbbc1b6497d3a5f78e12783fe760e43f99fb | /LeetCode Problems/Stack/Backspace String Compare.py | 6ae42752f72ced7da2ced2912c3d92e6daf78064 | [] | no_license | GZHOUW/Algorithm | 34ee3650a5fad1478fb3922ea69ccafc134520c9 | 7eddbc93a237d1d5cabcdc67806b01ff55ea8562 | refs/heads/master | 2021-03-27T07:57:31.247576 | 2021-01-06T19:53:38 | 2021-01-06T19:53:38 | 247,803,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | '''
Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.
Example 1:
Input: S = "ab#c", T = "ad#c"
Output: true
Explanation: Both S and T become "ac".
Example 2:
Input: S = "ab##", T = "c#d#"
Output: true
Explanation: Both S and T become "".
E... | [
"noreply@github.com"
] | GZHOUW.noreply@github.com |
d5a5d0b1b5096872ac136f497b911887858020e6 | 5479cdac56abc115d3b52fbd31814dfd27262da7 | /TaobaoSdk/Request/FenxiaoDiscountAddRequest.py | 041fa187596ee24e1160c69cbbe32e671cb0871b | [] | no_license | xuyaoqiang-maimiao/TaobaoOpenPythonSDK | d9d2be6a7aa27c02bea699ed5667a9a30bf483ab | c82cde732e443ecb03cfeac07843e884e5b2167c | refs/heads/master | 2021-01-18T07:49:57.984245 | 2012-08-21T07:31:10 | 2012-08-21T07:31:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,729 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 新增等级折扣
# @author wuliang@maimiaotech.com
# @date 2012-08-09 12:36:46
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path.pardi... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
497bd17a77f55e7e45a3b7cba1e1189baa20b7e5 | d8e52daee362d3d5219c5a22c63fc9c0d645971d | /django_app/temp_app/apps.py | 0d7d7273970c3b221c1096b83855e88f2fb2dd1a | [] | no_license | BethMwangi/temp_chart | 73f6b50ca7057b247e4a5d83f81977a650e97204 | 175a739d3f45bb4dcd30411ab1e22ab18b46d1f5 | refs/heads/master | 2021-01-13T13:31:38.795942 | 2016-11-17T20:01:45 | 2016-11-17T20:01:45 | 72,631,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class TempAppConfig(AppConfig):
name = 'temp_app'
| [
"wanjikumwangib@gmail.com"
] | wanjikumwangib@gmail.com |
722871561fe1940df48245ef168f877aa6fa7b7c | 6820e74ec72ed67f6b84a071cef9cfbc9830ad74 | /plans/migrations/0011_auto_20150421_0207.py | f85ce87d2de92f218fff2a5c5d124a86e90b7df7 | [
"MIT"
] | permissive | AppforallHQ/f5 | 96c15eaac3d7acc64e48d6741f26d78c9ef0d8cd | 0a85a5516e15d278ce30d1f7f339398831974154 | refs/heads/master | 2020-06-30T17:00:46.646867 | 2016-11-21T11:41:59 | 2016-11-21T11:41:59 | 74,357,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import plans.models
class Migration(migrations.Migration):
dependencies = [
('plans', '0010_auto_20150421_0159'),
]
operations = [
migrations.AlterField(
model_name='invo... | [
"hi@appforall.ir"
] | hi@appforall.ir |
c6ac53e11389ce6549e82a2b7f72c83546dba78e | e61e664d95af3b93150cda5b92695be6551d2a7c | /vega/datasets/conf/st.py | a72bc532372c895cf6a8852f78a66bf775dec00c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/vega | 44aaf8bb28b45f707ed6cd4e871ba70fc0c04846 | 12e37a1991eb6771a2999fe0a46ddda920c47948 | refs/heads/master | 2023-09-01T20:16:28.746745 | 2023-02-15T09:36:59 | 2023-02-15T09:36:59 | 273,667,533 | 850 | 184 | NOASSERTION | 2023-02-15T09:37:01 | 2020-06-20T08:20:06 | Python | UTF-8 | Python | false | false | 1,577 | py | # -*- coding=utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. 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... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
7207a8e8a959526f148b94f3db608f70c74163b9 | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/applications/plot_outlier_detection_housing.py | b807a33544c2640fe43c715f3a8a087e6f3beff8 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,672 | py | """
====================================
Outlier detection on a real data set
====================================
This example illustrates the need for robust covariance estimation
on a real data set. It is useful both for outlier detection and for
a better understanding of the data structure.
We selected two sets o... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
e8977ff40f1b9f54bb36eafb20e6bce44d475a84 | 8fe514d15c340acbd73da359e2db5ad84853d1a4 | /tests/pytests/test_pythia.py | a5fb87dba603dbedc9a78cf91b0d31d2f47f695c | [
"BSD-3-Clause"
] | permissive | geodynamics/pythia | 1e265f5b50263adf149d102c8c51b501f8ff6f3b | e914bc62ae974b999ce556cb6b34cdbcc17338fc | refs/heads/main | 2023-08-09T17:07:01.497081 | 2023-07-26T17:56:22 | 2023-07-26T17:56:22 | 12,655,880 | 1 | 14 | BSD-3-Clause | 2023-07-26T17:56:24 | 2013-09-06T22:23:49 | Python | UTF-8 | Python | false | false | 3,102 | py | #!/usr/bin/env python3
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geo... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
22903bc455a5026309f424f73b4f58ffb336e15c | dbcd5c2623f81ee9f5476e2bfd1643db848c43cf | /arelle/plugin/validate/EFM/__init__.py | c8b15b4cc8010c364801126b565ccb958a256378 | [
"Apache-2.0"
] | permissive | Jimmy99/Arelle | a1d887cd848c22b5368fa68afe71b7228fc3912f | 0a5280c9eb228e21338df4b58fdb07a1699667bf | refs/heads/master | 2020-03-27T14:25:28.326685 | 2018-08-23T04:51:57 | 2018-08-23T04:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,012 | py | '''
Created on Dec 12, 2013
@author: Mark V Systems Limited
(c) Copyright 2013 Mark V Systems Limited, All rights reserved.
Input file parameters may be in JSON (without newlines for pretty printing as below):
[ {"file": "file path to instance or html",
"cik": "1234567890",
"cikNameList": { "cik1": "name1", "... | [
"fischer@markv.com"
] | fischer@markv.com |
ba6e634f7f8c835e9c3a035ce1ce13c3e566488e | 2d45111cf6d895f5a197e5465f3dc3267931883f | /examples/model-correlations/src/pdf.py | 6b78afe36965dfbc2d2ba6dc5e09c64094df4011 | [
"MIT"
] | permissive | ahwolf/data-workflow | 01de0a7633225da3e40e7f47bd9c87d60afaa2f4 | ef071f67e1d6f48a533309eea10847e6378a32f2 | refs/heads/master | 2021-01-22T14:46:31.161904 | 2014-02-19T20:36:11 | 2014-02-19T20:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | """Visualize the distribution of values
"""
import sys
import csv
import matplotlib.pyplot as plot
import loaders
tsv_filename = sys.argv[1]
col = int(sys.argv[2])
data = loaders.data_from_tsv(tsv_filename, [col])[0]
scatter = plot.hist(data, 30, normed=1, facecolor='g', alpha=0.6)
plot.savefig(sys.argv[3])
| [
"dean.malmgren@datascopeanalytics.com"
] | dean.malmgren@datascopeanalytics.com |
e7990a5346d87a6f6a1ec12bd2d3f45889dea91d | d16446123405b7ebe3811f63a9d908f3390fd9d9 | /py2exe/build/bdist.win32/winexe/temp/mlpy.wavelet._uwt.py | d2debc4b055af12f9c84b4caedf744756369d59d | [] | no_license | minoTour/ampbalance | 998d690a1592c5b8e81f6822f659a7755f86cd44 | d318f060e2c06d10fd3987181e53c550321482f1 | refs/heads/master | 2016-09-10T18:22:16.941311 | 2015-07-24T12:52:03 | 2015-07-24T12:52:03 | 38,117,971 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 354 | py |
def __load():
import imp, os, sys
try:
dirname = os.path.dirname(__loader__.archive)
except NameError:
dirname = sys.prefix
path = os.path.join(dirname, 'mlpy.wavelet._uwt.pyd')
#print "py2exe extension module", __name__, "->", path
mod = imp.load_dynamic(__name__, path)
## m... | [
"matt.loose@nottingham.ac.uk"
] | matt.loose@nottingham.ac.uk |
ac122184616c16ed7758b86049ac5088f41ea720 | a1c8731a8527872042bd46340d8d3e6d47596732 | /programming-laboratory-I/8nvp/inteiros.py | e92e810ee018872c571149249f4d17f14de93801 | [
"MIT"
] | permissive | MisaelAugusto/computer-science | bbf98195b0ee954a7ffaf58e78f4a47b15069314 | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | refs/heads/master | 2022-12-04T08:21:16.052628 | 2020-08-31T13:00:04 | 2020-08-31T13:00:04 | 287,621,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Inteiros Positivos Divisíveis
A = int(raw_input())
B = int(raw_input())
K = int(raw_input())
for i in range(1, K + 1):
if i % A == 0 and i % B == 0:
print i
| [
"misael.costa@ccc.ufcg.edu.br"
] | misael.costa@ccc.ufcg.edu.br |
1563132ab1e27fa9a5cdfe81eed015ff23a5b1c3 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/lazyprogrammer_machine_learning_examples/machine_learning_examples-master/rnn_class/batch_wiki.py | c65bbf539a79ec9ad0b266adf4b900adb5868bb5 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 6,466 | py | # https://deeplearningcourses.com/c/deep-learning-recurrent-neural-networks-in-python
# https://udemy.com/deep-learning-recurrent-neural-networks-in-python
import sys
import theano
import theano.tensor as T
import numpy as np
import matplotlib.pyplot as plt
import json
from datetime import datetime
from sklearn.utils ... | [
"659338505@qq.com"
] | 659338505@qq.com |
125a3d43669995a8afa8484e131969badcf4fe7d | d194790838971c58046cc52d1de96ca207e78441 | /example/website/master.py | 8c80e078fe51caa087686b1f335f9aeed723f297 | [
"BSD-2-Clause"
] | permissive | CIRCL/bgpranking-redis-api | 460c259b51505b7b59d04f048892b69b79ffcc50 | 7b80c44e291169b8ce849cdb51beb618b96f2386 | refs/heads/master | 2021-01-18T22:36:49.576244 | 2016-05-02T13:21:02 | 2016-05-02T13:21:02 | 6,886,178 | 15 | 5 | BSD-2-Clause | 2017-12-11T14:31:54 | 2012-11-27T15:57:31 | Python | UTF-8 | Python | false | false | 8,797 | py | # -*- coding: utf-8 -*-
"""
View class of the website
~~~~~~~~~~~~~~~~~~~~~~~~~
The website respects the MVC design pattern and this class is the view.
"""
import os
import cherrypy
from Cheetah.Template import Template
import cgi
import csv
import StringIO
from csv import DictReader
import urllib2
impor... | [
"raphael@vinot.info"
] | raphael@vinot.info |
b16c771b71602489f1e72f2442c4043d433a7d0b | 215e3c24d9bf55c5951cdbab08d045663003331a | /Lib/Scripts/glyphs/components/decompose.py | d8e9069d97698e75433bd87bb99ab3e8759391b0 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | hipertipo/hTools2 | 8ac14ee37d6ed78a5ce906e65befa889798cc53d | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | refs/heads/master | 2022-07-10T20:37:13.869044 | 2018-11-21T10:42:44 | 2018-11-21T10:42:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # [h] remove components
'''Remove components in selected glyphs.'''
from mojo.roboFont import CurrentFont
from hTools2.modules.fontutils import get_glyphs
from hTools2.modules.messages import no_font_open, no_glyph_selected
foreground = True
layers = False
f = CurrentFont()
if f is not None:
glyph_names = get... | [
"gustavo@hipertipo.com"
] | gustavo@hipertipo.com |
304d71ef2e9f9e97d84b4043bccbde3c0fd3f073 | e2c120b55ab149557679e554c1b0c55126e70593 | /python/imagej/examples/imglib2_LazyCellImg_montage_simple.py | 24ea2087e32b9b6ef268abcf6c5344ac0f448bf6 | [] | no_license | acardona/scripts | 30e4ca2ac87b9463e594beaecd6da74a791f2c22 | 72a18b70f9a25619b2dbf33699a7dc1421ad22c6 | refs/heads/master | 2023-07-27T14:07:37.457914 | 2023-07-07T23:13:40 | 2023-07-07T23:14:00 | 120,363,431 | 4 | 5 | null | 2023-05-02T11:20:49 | 2018-02-05T21:21:13 | Python | UTF-8 | Python | false | false | 1,770 | py | from ij import IJ, ImagePlus
from net.imglib2.img.cell import LazyCellImg, CellGrid, Cell
from net.imglib2.img.basictypeaccess.array import ByteArray
from net.imglib2.img.basictypeaccess import ByteAccess
from net.imglib2.img.display.imagej import ImageJFunctions as IL
from java.lang import System
imp = IJ.getImage()
... | [
"sapristi@gmail.com"
] | sapristi@gmail.com |
505c81e6ddf46afeb9e18d61059d5878f501d5d8 | 8149d1030b5bc62cc82d5afedbe7486daedbf8c5 | /[230][Kth Smallest Element in a BST][Medium].py | 92f3716d322655b0a94ae74ca5c897739dcc78aa | [] | no_license | guofei9987/leetcode_python | faef17bb59808197e32ed97e92e2222862e2ba8c | 23703a6fb5028d982b3febc630e28f9bb65a82a6 | refs/heads/master | 2020-03-21T18:24:33.014579 | 2019-10-12T13:29:03 | 2019-10-12T13:29:03 | 138,889,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | # https://leetcode.com/problems/kth-smallest-element-in-a-bst | [
"guofei9987@foxmail.com"
] | guofei9987@foxmail.com |
1a6e43d4c51954316a7d506c7fb62a4b6aa0385a | 7266300d1fc7837f021f366333c6021695dc7d89 | /ex007.py | 826dc75ece9fd57d3b742ea949cbab5e546e4663 | [] | no_license | ritomar/python-guanabara | d2283cd411cb0af38a495979cdf5d22d2335cb4a | 3e732c0f464a2c8ba04d36a46415f238491338ab | refs/heads/master | 2020-04-24T20:14:03.769087 | 2019-02-24T22:41:23 | 2019-02-24T22:41:23 | 172,237,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
Exercício Python #007 - Média Aritmética
Desenvolva um programa que leia as duas notas de um aluno,
calcule e mostre a sua média.
"""
def media(a, b):
return (a + b) / 2
nota_1 = float(input("Primeira nota do aluno: "))
nota_2 = float(input("Segunda nota do aluno: "))
print(f'A média entre {not... | [
"ritomar@hotmail.com"
] | ritomar@hotmail.com |
c982192c49c4f7ea0d862f1d54fd36db9f8ddaa5 | d48a8ba5aed0e73e011ab4e1fcaab378760d1827 | /smallslive/events/migrations/0004_auto__add_field_event_set.py | 227643f6f970a0586a942f9eced2f22921ed56a6 | [] | no_license | waytai/smallslive | 7e15472e2bc197a32ea4058c0096df7ea5723afe | 106c35ce52f3c500432d00b7bd937a3d283aee4f | refs/heads/master | 2020-05-01T07:26:53.583006 | 2014-05-01T22:52:15 | 2014-05-01T22:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Event.set'
db.add_column(u'events_event', 'set',
... | [
"filip@jukic.me"
] | filip@jukic.me |
ab07f0f98350be43dafdc17542bd680df579a9a8 | ac44aa8fd5404b95e1d92f6268ae84d9f4e7319a | /spiderutil/connector/redis.py | e0061d6e10d8d117e0c99832f6a335c90fdd58ec | [
"MIT"
] | permissive | Thesharing/spider-utility | 140237db3fa4b20cc4caadbfdc22c67bd21022b9 | 1dcea98bf1740b1addfb3cdedea1ce92ed70a12c | refs/heads/master | 2020-07-26T17:38:51.694626 | 2020-01-07T18:00:05 | 2020-01-07T18:00:05 | 208,721,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | from abc import abstractmethod
import redis
from .base import Database
class Redis(Database):
def __init__(self, name: str,
host='localhost',
port=6379):
super(Redis, self).__init__(name, 'Redis')
self.host = host
self.port = port
self.conn = re... | [
"cyprestar@outlook.com"
] | cyprestar@outlook.com |
6b2d37b9bb8908aad59c1df2361d6a6fdbb066f1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02763/s621426373.py | 7750cf1024ddffc0ab4f803b496ccb47188b9281 | [] | 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 | 498 | py | n=int(input())
l=list(input())
q=int(input())
bit=[[0]*(n+1) for i in range(26)]
def bit_sum(o,i):
s=0
while i:
s+=bit[o][i]
i-=i&-i
return s
def bit_add(o,i,x):
while i<=n:
bit[o][i] += x
i+=i&-i
for i in range(n):
bit_add(ord(l[i])-97,i+1,1)
for i in range(q):
a,b,c=input().split()
b=int... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c57634c144704ce971b204af1b8d2cac44f8071c | fc314838b18c14a00310f0059d5358c7c4afabd6 | /social_auth/backends/contrib/readability.py | 523b72af00dadb415ab123cb0fea283636071724 | [
"MIT"
] | permissive | opendream/asip | 5cb4b997fab2438193ae7490c159efced6dc3d91 | 20583aca6393102d425401d55ea32ac6b78be048 | refs/heads/master | 2022-11-28T23:28:18.405604 | 2020-03-10T04:56:23 | 2020-03-10T04:56:23 | 190,504,979 | 1 | 1 | MIT | 2022-11-22T01:10:46 | 2019-06-06T03:06:03 | HTML | UTF-8 | Python | false | false | 3,847 | py | """
Readability OAuth support.
This contribution adds support for Readability OAuth service. The settings
READABILITY_CONSUMER_KEY and READABILITY_CONSUMER_SECRET must be defined with
the values given by Readability in the Connections page of your account
settings."""
try:
import json as simplejson
except ImportE... | [
"server@set.com"
] | server@set.com |
ad79d5a8f637b483bf00fffe02a7da7f9ca7320d | b59372692c912ba17ec2e6812983663a6deccdaf | /.history/bsServer/models_20200502170040.py | 07d1890682045d1abd590e7a1188498f9ddaf520 | [] | no_license | nanjigirl/bs-server-project | 2d7c240ddf21983ed0439829a7995bde94082467 | 7863aed279b233d359c540c71fdd08ce8633976b | refs/heads/master | 2022-08-02T17:33:48.201967 | 2020-05-25T15:18:34 | 2020-05-25T15:18:34 | 261,204,713 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from django.db import models
# Create your models here.
#创建 | [
"chenxueb@yonyou.com"
] | chenxueb@yonyou.com |
f867030fa583ee7514c9a37ddb4674b41cbfbdd5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_eliding.py | f677e02f7c87edb7af849d872c93967c71742b22 | [
"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 | 233 | py |
from xai.brain.wordbase.verbs._elide import _ELIDE
#calss header
class _ELIDING(_ELIDE, ):
def __init__(self,):
_ELIDE.__init__(self)
self.name = "ELIDING"
self.specie = 'verbs'
self.basic = "elide"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
610b849a4b31a941063ad9ba3e13828b8b594e22 | f7f58aa4ea9ec78b20532971ddebe1e3d985dc23 | /practica1/practica1/urls.py | 66ebebc339bdf88ba5711d6e0f5a396babb137cb | [] | no_license | guille1194/Django-Practices | 10b9ff4817d41cb086e198c07bb82aee201fb049 | 738cbfdd4a12089d93cd68a0cde8653c490e7fd9 | refs/heads/master | 2021-03-08T19:30:11.229921 | 2016-05-23T05:38:53 | 2016-05-23T05:38:53 | 59,388,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | """practica1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"guille1194@gmail.com"
] | guille1194@gmail.com |
f290584c3c4c816e376a560b93bb832d10eb65b4 | e3cb522fc2ce289c0604f6a6950838cde91ea07a | /config.py | 157bfbae4fa468ff111acbaf7d8e6e0436c25cdf | [
"MIT"
] | permissive | zwkj099/pythonApiTest | b6127847c78234c3bc9e77c5ab0e129de6efd11b | 3aeca12c4771885f1c4c52378131bf32295e9a8a | refs/heads/master | 2022-11-19T01:52:35.522016 | 2020-05-05T00:24:36 | 2020-05-05T00:24:36 | 279,872,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,169 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: leeyoshinari
import os
# 是否在Linux上使用,0为在Windows上使用,1为在Linux上使用
IS_LINUX = 1
# 日志级别
LOG_LEVEL = 'INFO'
# 接口响应超时时间
TIMEOUT = 0.5
# 检查端口是否存在间隔时间
SLEEP = 60
# ip地址和端口
IP = '127.0.0.1'
PORT = '8888'
# 请求头
HEADERS = {"Accept": "application/json, tex... | [
"lee_jc@outlook.com"
] | lee_jc@outlook.com |
531e05c9e284bdac8bcfc77fbbe12ea390bb3b49 | 4f1c6b2a953035e2be265c75d48fdcaa3e9983e1 | /scrape/migrations/0003_scrapelog_message.py | 25fb03a3423d181caedb044ab7b4058fd3315f53 | [
"MIT"
] | permissive | azul-cloud/tbscraper | 577dc783041a40b4fb6cc2b4c41c63ec95027cf2 | f6edabe5c2d9e9531097bdf9d0428d138717f64f | refs/heads/master | 2021-01-10T21:37:48.421837 | 2014-12-26T20:29:46 | 2014-12-26T20:29:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('scrape', '0002_auto_20141223_1711'),
]
operations = [
migrations.AddField(
model_name='scrapelog',
n... | [
"awwester@gmail.com"
] | awwester@gmail.com |
9a9b1c004f4479ff0dd5144a044820c794c51bb9 | bb0eeade4685dc89ff8a53beb813afdf7394989d | /gaosuan/第三次课后作业/006.py | e693ec464824c0bc07034e7dfe1242c2f51c770f | [] | no_license | zhaocheng1996/pyproject | 72929cd0ba2f0486d7dc87a7defa82656bf75a8e | 0a1973dda314f844f9898357bc4a5c8ee3f2246d | refs/heads/master | 2021-10-26T08:38:43.675739 | 2019-04-11T13:52:46 | 2019-04-11T13:52:46 | 176,939,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,286 | py | '''
分治法解最近对问题
Description
最近对问题:使用分治算法解决最近对问题。
Input
第一行为测试用例个数。后面每一行表示一个用例,一个用例为一些平面上点的集合,点与点之间用逗号隔开,一个点的两个坐标用空格隔开。坐标值都是正数。
Output
对每一个用例输出两个距离最近的点(坐标使用空格隔开),用逗号隔开,先按照第一个坐标大小排列,再按照第二个坐标大小排列。如果有多个解,则按照每个解的第一个点的坐标排序,连续输出多个解,用逗号隔开。
Sample Input 1
1
1 1,2 2,3 3,4 4,5 5,1.5 1.5
Sample Output 1
1 1,1.5 1.5,1.5 1.5,2 2
'... | [
"34829837+zhaocheng1996@users.noreply.github.com"
] | 34829837+zhaocheng1996@users.noreply.github.com |
85e8d525463c18ce01066ae724d8d7dcba3c0dfa | d26652c7774e1b5c0a7cb2f8d20d36c77b192bec | /env/bin/futurize | ed8d1440ca071c11e2a22808ea67626061406579 | [] | no_license | teknofage/blockchain_tutorial | 41c38f1d4610e885881d99f95023b3fb1bed3966 | dbb99e2c3ba3749d6d861199b016a6555456233f | refs/heads/master | 2022-12-08T05:57:38.172539 | 2020-09-03T23:44:35 | 2020-09-03T23:44:35 | 290,911,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | #!/Users/Funkhauser/dev/Courses/BEW-2.4/blockchain/blockchain_tutorial/env/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"teknofage@gmail.com"
] | teknofage@gmail.com | |
4c84e4fa25fbaecc72158befe736472736cf14a5 | d8e8e528b1942b3528c88b12729f0cbc7b7d606f | /pipenv/vendor/vistir/cursor.py | 22d643e13ae72bfa897e9c5c7933b93dbc2cb4e3 | [
"MIT",
"BSD-3-Clause",
"ISC"
] | permissive | frostming/pipenv | 997e5f71ac5a4bbac3aacd1fa000da6e0c8161eb | 661184e5ccf9bec3e3b4b03af778e54fe2fbc1a2 | refs/heads/master | 2021-04-15T03:33:03.817473 | 2019-03-18T03:14:33 | 2019-03-18T03:14:33 | 126,263,945 | 1 | 1 | MIT | 2019-03-19T09:44:03 | 2018-03-22T01:48:41 | Python | UTF-8 | Python | false | false | 2,099 | py | # -*- coding=utf-8 -*-
from __future__ import absolute_import, print_function
import ctypes
import os
import sys
__all__ = ["hide_cursor", "show_cursor"]
class CONSOLE_CURSOR_INFO(ctypes.Structure):
_fields_ = [("dwSize", ctypes.c_int), ("bVisible", ctypes.c_int)]
WIN_STDERR_HANDLE_ID = ctypes.c_ulong(-12)
WI... | [
"dan@danryan.co"
] | dan@danryan.co |
e74d44531671aadc3201722996969924f6623ae3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_grating.py | 799b17e241893c3b44ad883736c6a1fff89d0a00 | [
"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 | 403 | py |
#calss header
class _GRATING():
def __init__(self,):
self.name = "GRATING"
self.definitions = [u'A grating sound is unpleasant and annoying.']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
808454c879c3cf4cddf8607025629c89cfbd67e7 | 39ab815dfdbab9628ede8ec3b4aedb5da3fd456a | /aql/benchmark/lib_18/SConscript | 3f6a3ee8108f8af55b77427a21087d2b0d74442b | [
"MIT"
] | permissive | menify/sandbox | c03b1bf24c1527b47eb473f1acc433f17bfb1d4f | 32166c71044f0d5b414335b2b6559adc571f568c | refs/heads/master | 2016-09-05T21:46:53.369065 | 2015-04-20T06:35:27 | 2015-04-20T06:35:27 | 25,891,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | Import('env')
list = Split("""
class_0.cpp
class_1.cpp
class_2.cpp
class_3.cpp
class_4.cpp
class_5.cpp
class_6.cpp
class_7.cpp
class_8.cpp
class_9.cpp
""")
env.StaticLibrary("lib_18", list)
| [
"menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b"
] | menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b | |
10c5e92d9c8b905381d80777b881d54bf21ed936 | 803ff496aff9eef77f3186991878b6f16e54ba0a | /inital_setup.py | b42b48736c6f0b6eb008cde29203c230f49a41eb | [] | no_license | gopal1992/ssadmin | c54dae22dd69e48730affc1cdba0c0ee17b1e48c | 96370e8fc108843a70b326d5b136be94ae0b3084 | refs/heads/master | 2016-09-09T22:44:35.003945 | 2015-01-24T10:15:12 | 2015-01-24T10:15:12 | 29,772,729 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib.auth.models import Group
GROUP_NAMES = ["subscriber_admin",
"subscriber_user",
"shield_square_customer_support",
"shield_square_super_admin",
"demo_user"]
def create_groups():
for group... | [
"git@github.com"
] | git@github.com |
ca256811fee23d941f3d1b5ff262f9bbf44ab758 | a1c166a1ac4782f1f0792e0fd21741360373b376 | /backEnd/explorer/__init__.py | 2a36bacaa299ec747655ed024864550acf83062d | [] | no_license | xiaomapython/QlaskExplor | 3c7b75866b8276a5c2de3fbfddf779e1a66691d0 | c8b1757d08d06d350f7ca41897bbf4378fde3911 | refs/heads/master | 2020-06-23T08:08:45.169160 | 2019-05-15T02:05:17 | 2019-05-15T02:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | # _*_ coding:utf-8 _*_
# company: RuiDa Futures
# author: zizle
import redis
import logging
from concurrent_log_handler import ConcurrentRotatingFileHandler
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_session import Session
from config import config
from explorer.modules.users import user... | [
"zizle_lin@163.com"
] | zizle_lin@163.com |
503a626fb48d5dfd37006db6436d65939dd6e970 | 313bb88c43d74995e7426f9482c6c8e670fdb63c | /02-instructions/if_zadanie2.py | fefd981cfb8a89b55f6868644e4b98563a298b0f | [] | no_license | martakedzior/python-course | 8e93fcea3e9e1cb51920cb1fcf3ffbb310d1d654 | 3af2296c2092023d91ef5ff3b4ef9ea27ec2f227 | refs/heads/main | 2023-05-06T07:26:58.452520 | 2021-05-26T16:50:26 | 2021-05-26T16:50:26 | 339,822,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Pobierz dwie liczby całkowite od użytkownika i oblicz ich sumę.
# Jeśli suma jest większa niż 100, wyświetl wynik, w przeciwnym wypadku wyświetl “Koniec”.
print('Podaj proszę dwie liczby całkowite.')
user_input1 = int(input('Podaj proszę pierwszą liczbę całkowitą: '))
user_input2 = int(input('Podaj proszę drugą licz... | [
"marta.kedzior@wp.pl"
] | marta.kedzior@wp.pl |
5553da7294564691ff4a70f68d17f1e7aded2e74 | 930a868ae9bbf85df151b3f54d04df3a56bcb840 | /benchmark/union_find_decoder/XZZX_code/decoding_time_comparison_low_p/process_data_UF_multiple_p_max_half_weight_1.py | a95feb630ff0945ef8aa35c409f48053efbab981 | [
"MIT"
] | permissive | yuewuo/QEC-Playground | 1148f3c5f4035c069986d8b4103acf7f1e34f9d4 | 462208458cdf9dc8a33d4553a560f8a16c00e559 | refs/heads/main | 2023-08-10T13:05:36.617858 | 2023-07-22T23:48:49 | 2023-07-22T23:48:49 | 312,809,760 | 16 | 1 | MIT | 2023-07-22T23:48:51 | 2020-11-14T12:10:38 | Python | UTF-8 | Python | false | false | 3,135 | py | import sys, os, json, math
import scipy.stats
fixed_configuration = None
configurations = []
data_vec = []
with open("decoding_time_UF_multiple_p_max_half_weight_1.txt", "r", encoding="utf-8") as f:
lines = f.readlines()
for line in lines:
line = line.strip(" \r\n")
if line == "": # ignore em... | [
"yue.wu@yale.edu"
] | yue.wu@yale.edu |
1b27b010f72b216dfebe00127d885f4b9ae7397e | 8771c94dce3c7e30c9e5b5f45cf8683ba9cac6fd | /leetcode/algorithms/p0239_sliding_window_maximum_1.py | 54942cedb6ca1bf7d876b84fd48fc9d653af8800 | [] | no_license | J14032016/LeetCode-Python | f2a80ecb7822cf12a8ae1600e07e4e6667204230 | 9a8f5329d7c48dd34de3105c88afb5e03c2aace4 | refs/heads/master | 2023-03-12T02:55:45.094180 | 2021-03-07T07:55:03 | 2021-03-07T07:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from heapq import heapify, heappop, heappush
from typing import List
class Solution:
def maxSlidingWindow(self, nums: List[int], k: int) -> List[int]:
heap = [(-nums[i], i) for i in range(k)]
heapify(heap)
result = [-heap[0][0]] if heap else []
for i in range(1, len(nums) - k + 1)... | [
"mao_xiaodan@hotmail.com"
] | mao_xiaodan@hotmail.com |
d05b8cf82a83f9d930040cf3d63c6fa5c002635f | 438393f27396d80b9304d07c811ae6cc28978f54 | /g_intim/portation/__init__.py | ee2a4cfd9f227136e4878e89224d4a8b09f2cab4 | [] | no_license | vladimirmyshkovski/g_intim | be2b8106ddbe0bb9e91ed31ee91f386e2ad9437a | 5084dd7fef32179bd9a13b83221c8050b601949b | refs/heads/master | 2021-08-30T12:23:44.109163 | 2017-12-17T23:17:34 | 2017-12-17T23:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | default_app_config = (
'portation.config.PortationDashboardConfig')
| [
"narnikgamarnikus@gmail.com"
] | narnikgamarnikus@gmail.com |
bb134be3f5aee7803f010ae126fb295143bb8e11 | 76dab6591cb9c7ee566b76a0adc7b0b0c4086592 | /main/tests/test_forms.py | 043e0dfb18a0e9d453a719f41d6dc5b2f4f54591 | [] | no_license | gray-adeyi/booktime | 87962321e380cfa779b24f2bd6fa8c434687d084 | fb54bc35739b28b5a71a5cf0c1067f38140559ba | refs/heads/main | 2023-04-05T02:44:01.992984 | 2021-05-03T01:37:01 | 2021-05-03T01:37:25 | 363,434,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | from django.test import TestCase
from django.core import mail
from unittest.mock import patch
from django.urls import reverse
from django.contrib import auth
from main import forms
from main import models
class TestForm(TestCase):
def test_valid_contact_us_form_sends_email(self):
form = forms.ContactForm... | [
"adeyigbenga005@gmail.com"
] | adeyigbenga005@gmail.com |
b989b224d13ef5e656c848699d9ca920d77932bc | 5cc4c0048d5ef16b0dd14d903d99b399b02b99ed | /core_file/file-line-iterate.py | 6ce1a731fb8f438fb73e9b238fdfd8e28de21f82 | [
"MIT-0"
] | permissive | dmilos/python_tutorial | c09261c3a5a704030834d7814a6e47ddbfbe4402 | f2f901a68cbc696e19350455da9b7db312d1a9fa | refs/heads/master | 2021-01-10T13:02:36.763154 | 2018-02-22T20:14:20 | 2018-02-22T20:14:20 | 53,527,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #!/usr/bin/env python
myfile = open( "./test.txt", "r" )
# Line include new line at the end
for line in myfile :
print( "linija %s", line ) | [
"dmilos@gmail.com"
] | dmilos@gmail.com |
1e146d845d313b11524d950a0d28443076052f4a | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/javaclass/format/attributes/StackMapTableAttribute.pyi | f6201fa5b74458d446d4a3944b3ecdfa9b7c6897 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 880 | pyi | import ghidra.javaclass.format.attributes
import ghidra.program.model.data
import java.lang
class StackMapTableAttribute(ghidra.javaclass.format.attributes.AbstractAttributeInfo):
def __init__(self, __a0: ghidra.app.util.bin.BinaryReader): ...
def equals(self, __a0: object) -> bool: ...
def getAtt... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
00234a17532502f91ddf425841d5d93e5ac7f756 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/collateral_cashflow_upload.py | 34c9fb5c9ecfddfb13e5e677400582a6070bce6b | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,643 | py | ''' Cashflow upload file processing module.
This processor handles a file used for cashflow insertion on Call
Accounts in FA.
Date: 2014-02-24
Requester: Alex Boshoff
Developer: Jan Sinkora
'''
import os
import acm
import codecs
from at_feed_processing import SimpleCSVFeedProcessor, notify_log
import at_addInfo
c... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
b64644642055cc1cb33c6efcb1e586cbf510f178 | 46404c77e04907225475e9d8be6e0fd33227c0b1 | /recur val.py | b7b3e808a31c1be5b2231896db312a9a7beaae49 | [] | no_license | govardhananprabhu/DS-task- | 84b46e275406fde2d56c301fd1b425b256b29064 | bf54f3d527f52f61fefc241f955072f5ed9a6558 | refs/heads/master | 2023-01-16T07:41:27.064836 | 2020-11-27T11:52:50 | 2020-11-27T11:52:50 | 272,928,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | """
Given a fraction, find a recurring sequence of digits if exists, otherwise, print -1.
H 5 T 1500
Tag math
In des
First line contains 2 space separated integers N, D, denotes numerator and denominator.
Ot des
Print the sequence else -1.
8 3
6
50 22
27
11 2
-1
23 4
-1
12 5
-1
Exp
... | [
"noreply@github.com"
] | govardhananprabhu.noreply@github.com |
84e0d8697dea8055b305290bddb9cddcbace2a64 | e5bbdd55b78285c6d3348f0212654ab8cad65ad7 | /src/di_replication/repl_select/repl_select.py | 494f35cb4a7ea6ffca0dd80360416741a72168e9 | [
"Apache-2.0"
] | permissive | jeremyyma/data-intelligence-replication | 49892c99f2f528e565a0d6704304c294fa5dfb3c | 0d657b47a5a67fbaf2ae717a206db309ac49f592 | refs/heads/main | 2023-02-02T20:43:11.040492 | 2020-12-14T11:22:42 | 2020-12-14T11:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | import sdi_utils.gensolution as gs
import os
import subprocess
import logging
import io
try:
api
except NameError:
class api:
queue = list()
class Message:
def __init__(self, body=None, attributes=""):
self.body = body
self.attributes = attributes... | [
"53856509+thhapke@users.noreply.github.com"
] | 53856509+thhapke@users.noreply.github.com |
818923ccce4bf77935b2fddf1d893a41888b262d | d2845579ea6aa51a2e150f0ffe6ccfda85d035ce | /kernel/components/deeplearning/vertnn/strategy/comparision.py | 1d5e89515b51b6fc36998443c53c9efe2699fe86 | [
"Apache-2.0"
] | permissive | as23187/WeFe | d8de9ff626f9f3e5d98e0850b0b717a80fd73e72 | ba92871d4b1d2eef6c606c34795f4575e84703bd | refs/heads/main | 2023-08-22T12:01:06.718246 | 2021-10-28T01:54:05 | 2021-10-28T01:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2021 Tianmian Tech. 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/LI... | [
"winter.zou@welab-inc.com"
] | winter.zou@welab-inc.com |
edb564ba939ea966c5b45a3dd7d01f63a02ba3d4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/116/usersdata/246/26079/submittedfiles/al1.py | 935a3c4a0c1e0e425ef0a807d2b02ca8247cab6f | [] | 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 | 193 | py | from __future__ import division
#INICIE AQUI SEU CODIGO
r = float(input'Digite um valor para raio de uma lata: ')
a = float(input'Digite um valor para altura de uma lata: ')
v = (1314159*r*r*a) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4bb146066e78746ff4f0372de20a9f1c49acb2e5 | aee7a6cca6a2674f044d7a1cacf7c72d7438b8b1 | /cup_skills/stats/average_rewardpdg_all_5_1.py | 582c12cf4f3633ac20a9f379890193040cc2084b | [] | no_license | lagrassa/rl-erase | efd302526504c1157fa5810e886caccba8570f1b | 0df5c8ce4835c4641a2303d11095e9c27307f754 | refs/heads/master | 2021-05-13T13:36:12.901945 | 2019-08-01T02:13:15 | 2019-08-01T02:13:15 | 116,709,555 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | 14.4144144144,2.25225225225,21.6216216216,20.7207207207,19.3693693694,22.0720720721,19.8198198198,21.1711711712,19.8198198198,20.7207207207,19.8198198198,20.7207207207,22.0720720721,18.9189189189,20.2702702703,21.6216216216,18.9189189189,20.7207207207,18.4684684685,20.2702702703,22.972972973,18.4684684685,22.0720720721... | [
"lagrassa@mit.edu"
] | lagrassa@mit.edu |
055f804ec52dcf7c05f7497a79d0205ddbe13427 | da3df36ce182dcbe08c8addb1e979019b456be9f | /mysite/settings/local.py | 0a0733fe80e0a92a50795f6f9f373f2a14f9599e | [] | no_license | miyanda2/Soduku | 4cfc0a1913539a4828f85969d162368358909a5c | 6bf563f264a6585fb9382bebc3a706247eb703a2 | refs/heads/master | 2022-11-27T04:35:48.235690 | 2019-11-13T12:24:41 | 2019-11-13T12:24:41 | 221,199,889 | 0 | 2 | null | 2022-11-22T04:49:00 | 2019-11-12T11:17:38 | Python | UTF-8 | Python | false | false | 3,088 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"gootech442@yahoo.com"
] | gootech442@yahoo.com |
4276a7df350ae4e7a94297215ce00af87d663830 | 31e32761e3572f8adeb690053ebfcc26390a87b5 | /leetcode/wiggle_sort.py | 7c59f03736ff4408f768d39e0d8396028ae29ab6 | [] | no_license | sanshitsharma/pySamples | 738b95c758d65e3360f3ee7221591d7b78c7ba1d | ce06f1e38e0c7a142af26e8883c81b7a5dfc7edc | refs/heads/master | 2021-06-05T19:01:40.279148 | 2021-02-02T21:52:31 | 2021-02-02T21:52:31 | 110,218,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | #!/usr/bin/python
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
xL = True
for i in range(len(nums)-1):
if xL:
if nums[i] > nums[i+1]:
... | [
"sansshar@cisco.com"
] | sansshar@cisco.com |
122007de19f703c44d45c1a7664727c0419ff266 | eda134f2b06c3e1f7a2337971b61822469ba699b | /xos/synchronizers/onboarding/xosbuilder.py | e7a3e1c4015884b815ad8ae56fd8b62e1ce4a7c4 | [
"Apache-2.0"
] | permissive | arpiagariu/xos | cbf9049ce66bca36a0388d7d2328384823f383ba | 62b23d1bb40604b19d2e86a2aed1a8bc686723eb | refs/heads/master | 2021-01-09T05:48:13.290227 | 2016-06-15T20:35:08 | 2016-06-15T20:35:08 | 58,976,999 | 0 | 0 | null | 2016-05-20T18:40:16 | 2016-05-17T00:21:15 | Python | UTF-8 | Python | false | false | 14,585 | py | import os
import base64
import jinja2
import string
import sys
import urllib2
import urlparse
import xmlrpclib
from xos.config import Config
from core.models import Service, ServiceController, ServiceControllerResource, XOS
from xos.logger import Logger, logging
logger = Logger(level=logging.INFO)
class XOSBuilder(o... | [
"smbaker@gmail.com"
] | smbaker@gmail.com |
10515301924f9f176672d3cbe62d8bf843c421a8 | 212d39dd0e12d42ce9b830de7e8738504dda2428 | /concurrency/example2_server.py | 30adec7d39b47f771181c70d78f25b4bfc47d703 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | waveform80/presentations | a0c7869f5acd699922f84ed1b510519c00472887 | 9e8d9f63d4e841e573d5b9b01c234128d49c29c5 | refs/heads/master | 2023-05-12T21:29:29.083191 | 2023-05-04T07:29:59 | 2023-05-04T07:29:59 | 21,940,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import zmq
from random import random
from time import time, sleep
def get_random(lo=0, hi=1):
start = time()
sleep(lo + random() * (hi - lo))
return time() - start
ctx = zmq.Context.instance()
sock = ctx.socket(zmq.REP)
sock.bind('ipc:///tmp/random')
while True:
lo, hi = sock.recv_json()
sock.send... | [
"dave@waveform.org.uk"
] | dave@waveform.org.uk |
885d53423108c9a0f036b95a5545abcea83be000 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test_001.py/test_feature_story_20201125100407.py | d418b5c89b1e03e1134aa5f12ed28b99ae92cbcd | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | import pytest
import all | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
f8d62ee48c69b5de4b90aeafd2ff92dae774784e | fef66ed221eecdcb2e14a4b69c83a031ff4c7ef8 | /pydantic/generics.py | ab3ea52811062ebc1c559a039bd2185d007dd626 | [
"MIT"
] | permissive | haizaar/pydantic | 5d60de8573ad847b39cde1b2dfc691be0a243388 | a0c48d62ad0fc614bb5810191cddbdbe11f697af | refs/heads/master | 2020-07-13T10:42:56.016274 | 2019-09-30T11:45:06 | 2019-09-30T11:45:06 | 205,067,533 | 0 | 0 | null | 2019-08-29T02:53:29 | 2019-08-29T02:53:29 | null | UTF-8 | Python | false | false | 3,723 | py | from typing import Any, ClassVar, Dict, Generic, Tuple, Type, TypeVar, Union, get_type_hints
from pydantic.class_validators import gather_validators
from pydantic.main import BaseModel, create_model
_generic_types_cache: Dict[Tuple[Type[Any], Union[Any, Tuple[Any, ...]]], Type[BaseModel]] = {}
GenericModelT = TypeVar... | [
"s@muelcolvin.com"
] | s@muelcolvin.com |
d89386a8b3057ede1f292266eb6b418f4e670398 | 6323bd983f6304d95e62909bfc4883d2f9ef1a14 | /Random/Functions_class.py | dc04ad7ddbe0ea85a2697cee2d8df0d092d98f84 | [] | no_license | akshay-sahu-dev/PySolutions | 4c2d67d5f66fe83a6e302e1742a5bf17dafe2b99 | 83552962805768914034a284bf39197f52ca5017 | refs/heads/master | 2023-06-17T06:36:50.252943 | 2021-07-09T17:28:53 | 2021-07-09T17:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def count_digit(Num):
# Num = int(input("Enter a number: ")) # 1234
Q = Num//10 # 123
D = 1
while Q != 0:
Q = Q // 10
D += 1
print("Total digits in given number is: ", D)
count_digit(7645344) | [
"akki5233@gmail.com"
] | akki5233@gmail.com |
27e8262bff5c1d44e27db03475b3794d498a8fbe | beebc5ff44407f3f3a4c1463cd09f0917dbe5391 | /pytype/tools/merge_pyi/test_data/imports_alias.pep484.py | a2ccb207ed16c5bc74d13d337de115c132217ce0 | [
"Apache-2.0",
"MIT"
] | permissive | mraarif/pytype | 4f190cb2591896133761295f3d84d80602dffb58 | 546e8b8114c9af54a409985a036398c4f6955677 | refs/heads/master | 2023-01-23T09:48:06.239353 | 2020-12-02T06:08:27 | 2020-12-02T06:08:27 | 303,069,915 | 1 | 0 | NOASSERTION | 2020-12-02T06:08:28 | 2020-10-11T07:53:55 | null | UTF-8 | Python | false | false | 227 | py | """Test import-as."""
from m1 import A_old as A
from m2 import B_old as B
from m3 import C_old as C
import m4_old as m4
import m5.D_old as D
import m5.something.E_old as E
def f(a: A, b: B, c: C, d: D, e: E) -> m4.D:
pass
| [
"rechen@google.com"
] | rechen@google.com |
987aaf69923d261f667c20c540bde052a6714ff7 | d8dd4ce3e943ea23586bba9df9c7bf978efa8a8b | /get_data.py | 37ad3f72ee4fb2ee78728251fd50a8aa8978cd9f | [] | no_license | mdekauwe/world_clim | 2785ff77f0b503dfa2b7e8e93dec80cf13ccc723 | 410dbf6756ee1c638134ec30dab45056531f1a09 | refs/heads/master | 2021-01-07T22:41:28.981349 | 2020-02-20T09:14:58 | 2020-02-20T09:14:58 | 241,840,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/env python
"""
Get WorldClim version 2 climate data for various vars between 1970-2000.
"""
__author__ = "Martin De Kauwe"
__version__ = "1.0 (20.02.2020)"
__email__ = "mdekauwe@gmail.com"
from urllib.request import urlretrieve
from pathlib import Path
import os
res = "10m" #"5m" "2.5m", "30s"
#vars = [... | [
"mdekauwe@gmail.com"
] | mdekauwe@gmail.com |
901f8ba62645588778d2832e39b89af3a55ba4ed | 37f55335f6b078d5bf95db00c62efb7d78d2411a | /game/interactive_shocks/admin.py | 6efb5d638ceff94549cb89b877651f297202470e | [
"MIT"
] | permissive | adminq80/Interactive_estimation | 14df57e4ee9513528e7f49ae0239638c24d8e763 | d62de66189ee15c5c9f23938da148dfd5ed08573 | refs/heads/master | 2020-12-05T16:30:49.506392 | 2017-04-28T21:10:19 | 2017-04-28T21:10:19 | 67,538,528 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from django.contrib import admin
from .forms import SettingsForm
from .models import Settings, Survey, InteractiveShocks, InteractiveShocksRound
@admin.register(Settings)
class SettingsAdmin(admin.ModelAdmin):
form = SettingsForm
readonly_fields = ('id',)
search_fields = ['id', ]
list_display = ('max... | [
"adminq80@gmail.com"
] | adminq80@gmail.com |
f2c8f422eb2ce001ffa86826001f8fedd048f8b8 | f3997f566695a78d09fcab688db88499223dca17 | /nematic_polar_order_collective/plot_phase_corr_len_nematic.py | adbc83e544b0b487d8ea979701cd2f787b9d85e4 | [] | no_license | melampyge/CollectiveFilament | 600d7a426d88a7f8f31702edb2b1fea7691372d2 | 7d2659bee85c955c680eda019cbff6e2b93ecff2 | refs/heads/master | 2020-07-23T05:58:55.383746 | 2017-06-25T14:55:14 | 2017-06-25T14:55:14 | 94,351,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,447 | py | # Load needed libraries and necessary files
import argparse
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import os.path
import glob
import pandas as pd
from string import atof
from matplotlib.offsetbox import AnnotationBbox, OffsetImage
from matplotlib._png import read_png
... | [
"ozer.duman@gmail.com"
] | ozer.duman@gmail.com |
c5ce1b8002e32799a2450ab83bd3cecadf713ef1 | 46244bb6af145cb393846505f37bf576a8396aa0 | /leetcode/138.copy_list_with_random_pointer.py | 762548d65e258634741a2eb557eaef046abec80d | [] | no_license | aoeuidht/homework | c4fabfb5f45dbef0874e9732c7d026a7f00e13dc | 49fb2a2f8a78227589da3e5ec82ea7844b36e0e7 | refs/heads/master | 2022-10-28T06:42:04.343618 | 2022-10-15T15:52:06 | 2022-10-15T15:52:06 | 18,726,877 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # Definition for singly-linked list with a random pointer.
# class RandomListNode:
# def __init__(self, x):
# self.label = x
# self.next = None
# self.random = None
class Solution:
# @param head, a RandomListNode
# @return a RandomListNode
def copyRandomList(self, head):
... | [
"sockpuppet.lea@gmail.com"
] | sockpuppet.lea@gmail.com |
010098539d158776c87c6dbbf5537e153b379a41 | 4b7806dd0ea8f7eb54bec25eb5afcdfdc02d91cf | /NEURON/mosinit.py | a0a21cdf9fa5deba5f8fcf755eefaa0e347ce538 | [] | permissive | OpenSourceBrain/IzhikevichModel | ab6018e8392b073d17cb4e29c68108a4397f098a | 83fe93ea390bb240f31e7352f6a4ad744dec43ca | refs/heads/master | 2023-08-31T00:01:19.985460 | 2023-08-18T15:13:31 | 2023-08-18T15:13:31 | 4,956,319 | 23 | 10 | BSD-3-Clause | 2023-09-04T11:06:46 | 2012-07-09T10:41:31 | Jupyter Notebook | UTF-8 | Python | false | false | 23 | py | execfile('izhiGUI.py')
| [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
8b099f05a23b2d43867113efc23d597e34dbaf19 | bbf9d848948a446299d9e2aa016249ce327d22bc | /pymoo/factory.py | b673d0ff8de85970bfa3ec2e2bbfcf465d3dff07 | [
"Apache-2.0"
] | permissive | temaurer/pymoo | 07dfc84b390b014d00ec062a75f3aae3a86ae006 | 1a2f3e0944ef7094df7518623e3ce23f94a39a39 | refs/heads/master | 2020-06-12T06:15:49.823082 | 2019-07-18T07:16:24 | 2019-07-18T07:16:24 | 194,217,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,194 | py | """
This module is a factory method what allows to import various objects, such as algorithms, crossover, mutation.
The definitions for each object are purposely defined as a list and not as a dictionary to keep an order for the documentation.
"""
import re
import numpy as np
from pymoo.algorithms.moead import moe... | [
"jules89@arcor.de"
] | jules89@arcor.de |
1978f4dde31af4260b41b0c1313a8a07b4e808ec | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider2/parser/recruit/lagou/lagou_company_full_name_check.py | 27f5e56d02301c67526cc2ac7563834476c6b449 | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | # -*- coding: utf-8 -*-
import os, sys
import datetime
import json
from bson import json_util
from pyquery import PyQuery as pq
from bs4 import BeautifulSoup
import lxml.html
import time
import lagou_job_parser
reload(sys)
sys.setdefaultencoding("utf-8")
sys.path.append(os.path.join(os.path.split(os.path.realpath(__f... | [
"hush_guo@163.com"
] | hush_guo@163.com |
97022c7ccd61935cf15a4d7f498ef6eb96146876 | 6ec91b363b077bffd33f15300a0935124e9fb915 | /Cracking_the_Code_Interview/Leetcode/6.Binary_Tree/Recursive/236.Lowest_Common_Ancestor.py | 9ac1728927a25df30cb8e000485c15831b3d1727 | [] | no_license | lzxyzq/Cracking_the_Coding_Interview | 03232515ae8eb50394d46322d36b230d1a626fcf | 79dee7dab41830c4ff9e38858dad229815c719a0 | refs/heads/master | 2023-06-05T19:52:15.595289 | 2021-06-23T22:46:02 | 2021-06-23T22:46:02 | 238,068,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | '''
@Author: your name
@Date: 2020-05-23 17:38:48
@LastEditTime: 2020-05-23 18:39:01
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: /Cracking_the_Code_Interview/Leetcode/Binary_Tree/Recursive/236.Lowest_Common_Ancestor.py
'''
# Given a binary tree, find the lowest common ancestor (L... | [
"lzxyzq@gmail.com"
] | lzxyzq@gmail.com |
3f44a42e4f9ed4912c78cf3ede0b26b75c9c1ca8 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/577477_Select_some_nth_smallest_elements_quickselect/recipe-577477.py | 0f4ecc1b0f7ca5e97f9c49953f132ec863b022ab | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 1,358 | py | import random
def select(data, positions, start=0, end=None):
'''For every n in *positions* find nth rank ordered element in *data*
inplace select'''
if not end: end = len(data) - 1
if end < start:
return []
if end == start:
return [data[start]]
pivot_rand_i = random.randra... | [
"betty@qburst.com"
] | betty@qburst.com |
f446ee466529f2d2f57c1633179f7e771628ff47 | 7cf0a3b4429e01b46bb8b8f4a742046953c32dfa | /Scraping attempt/scripts/web_scraper/csv_summary.py | c1a7288c1fe4dbb4943457e01e0895372440e235 | [] | no_license | kafitz/assessment_scraper | 3969d9e48c0c48d436ccc164f584bec44f59a02b | 9eb5d2660774d8cdf58993ccbe84f6e131bf22dd | refs/heads/master | 2020-06-09T05:39:15.052316 | 2014-05-20T01:37:08 | 2014-05-20T01:37:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | #!/usr/bin/python
# coding=utf-8
# 2013 Kyle Fitzsimmons
import os
import csv
import xlwt
file_tuple = [x for x in os.walk('output/')][0]
files = [str(file_tuple[0] + filename) for filename in file_tuple[2]]
workbook = xlwt.Workbook(encoding='utf-8')
sheet = workbook.add_sheet('summary', cell_overwrite_ok=True)
mat... | [
"kafitz22@gmail.com"
] | kafitz22@gmail.com |
771eb99c5e6276951fa1be1be0bc7479d3f2cf98 | 2111dac9168ef9651296f859428a4d3461356107 | /tests/test_shellutils.py | 1ef5ea2eda2371fed2f83257d13ec9c12dc294cc | [] | no_license | BasementCat/gitastic | 366f3016ef1fab692b4401520b5a6013ebb2344f | 44f5e9e7d093c754797f934645b1b6f674393cb9 | refs/heads/master | 2020-12-24T13:44:06.372591 | 2014-05-14T03:33:42 | 2014-05-14T03:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,541 | py | import unittest
import sys
import os
import StringIO
# import subprocess
# import threading
# import socket
# import time
# import tempfile
# import shutil
# import copy
# import getpass
# import signal
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), "gitastic"))
from lib import shellutils
... | [
"alec.elton@gmail.com"
] | alec.elton@gmail.com |
b68ced78051a5675e37a4be4514db25f58d205d4 | 07c5656f004b6a444e22ff7b4c3b6802d027f759 | /week_9/class_0420/common/context.py | 1903c5527c8b1a20ab201514e9e0300f06dbf62c | [] | no_license | EuniceHu/python15_api_test | de2a0f0bec8057edb27c8d1f82a438da3e9c105c | 1313e56ddfa67a2490e703a1a5ef4a6967565849 | refs/heads/master | 2020-05-20T13:30:41.686327 | 2019-05-14T11:00:52 | 2019-05-14T11:00:52 | 185,599,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #-*- coding:utf-8 _*-
"""
@author:小胡
@file: context.py
@time: 2019/04/26
"""
import re
from week_9.class_0420.common.config import config
def replace(data):
p = "#(.*?)#"
while re.search(p, data): # 找到返回True
print('data是', data)
m = re.search(p, data)
# 从任意位置开始找,找第一个就放回Match ... | [
"hongdh1122@163.com"
] | hongdh1122@163.com |
1c5b1bb646d11c9145fc9dc37a2f71bbc43aa9d7 | bbc3ff5dc623774d8cd4e8d8154da353b7523552 | /While.py | 41afc9111d19cc3d8e50fce636b8a8618eb93f20 | [] | no_license | millanmilu/Learn-Python | e78b562e212fb1854322e726f5663c7f74d3b7f7 | ab5f55a86686d1c7bb5ccbe5201f4186ad8fdbc8 | refs/heads/master | 2020-04-13T20:01:01.892395 | 2019-01-05T14:18:34 | 2019-01-05T14:18:34 | 163,418,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | i = 1
while i < 60:
print(i)
i+=1 | [
"noreply@github.com"
] | millanmilu.noreply@github.com |
20d8efe21e7db069ec1875cf83867a99cdc802c1 | 565548ff49844ed69ae16d5104e500f01c973402 | /app/auth/decorators.py | e1fb953361c57a1bf98525d9bfc42b83f1712c06 | [] | no_license | jaisenbe58r/Pebrassos | 159ce5a8b372590fd9368d9b5b3c1b0513895bba | 7516a1f7bbba78547af86a9858ee381224964d28 | refs/heads/master | 2023-02-27T05:42:50.652697 | 2021-01-31T20:57:59 | 2021-01-31T20:57:59 | 299,698,630 | 3 | 1 | null | 2021-01-31T20:58:01 | 2020-09-29T18:04:36 | Jupyter Notebook | UTF-8 | Python | false | false | 608 | py | """Copyright (c) 2020 Jaime Sendra Berenguer & Carlos Mahiques Ballester
Pebrassos - Machine Learning Library Extensions
Author:Jaime Sendra Berenguer & Carlos Mahiques Ballester
<www.linkedin.com/in/jaisenbe>
License: MIT
FECHA DE CREACIÓN: 13/01/2020
"""
from functools import wraps
from flask import abort
... | [
"jsendra@autis.es"
] | jsendra@autis.es |
1d01f9ac3154b7eb00b084cdc5cdc48a7909e1c9 | 29442d22b0413f8a7e50a37654e89e429684e297 | /idaes/property_models/examples/saponification_thermo.py | 4d8c5a5742b6ecb63b63a85082424aa76d4db59c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | tony121psu/idaes-pse | 75f5056b9a96201a8499901ef8885bef32eef8e2 | bdfddf1d1761bdba408567a83e198d549e8c741d | refs/heads/master | 2020-05-27T06:04:41.551792 | 2019-05-14T00:14:05 | 2019-05-14T00:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,485 | py | ##############################################################################
# Institute for the Design of Advanced Energy Systems Process Systems
# Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the
# software owners: The Regents of the University of California, through
# Lawrence Berkeley N... | [
"KSBeattie@lbl.gov"
] | KSBeattie@lbl.gov |
61b9ba02c484f8ecfdc2518c853008b583932a77 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_0/Python/mtbrown/last_word.py | d49456d039c3911948a4ad406bd8bb587ab53f5e | [] | 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 | 433 | py | def main():
cases = int(input())
for case in range(1, cases + 1):
str = input()
print("Case #{0}: {1}".format(case, last_word(str)))
def last_word(str):
last = ""
for c in str:
if last == "":
last += c
else:
if c >= last[0]:
las... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
aae92cb8610f4c1884f46dbf03874c26b2016cf9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02709/s610629838.py | 27cbe84220422c9db5900aecef0078cf7d118da8 | [] | 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 | 455 | py | n = int(input())
a = [(int(j), i) for i, j in enumerate(input().split())]
a.sort(reverse=1)
dp = [[0] * (n+1) for _ in range(n + 1)]
for i in range(1, n + 1):
for j in range(i + 1):
k = i - j
if j != 0:
dp[i][j] = dp[i - 1][j - 1] + a[i-1][0] * (abs(j - 1 - a[i-1][1]))
if k != 0... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
99c55d6a4179e07399e896535602bb4422a8420e | 90f02d834e45b5087313cecb0c6e6e24b078e35c | /students/views.py | dd5197e486e15ffe6f84243cb6d1105e24231929 | [] | no_license | Horlawhumy-dev/studentprofileapp | 1526034901c8f728455ec8ca1087e142579a961f | f1280a859593ad1760d636d97f08fa04c00108bf | refs/heads/master | 2023-07-04T11:31:01.642497 | 2021-08-06T10:52:10 | 2021-08-06T10:52:10 | 393,213,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from django.shortcuts import render
from account.models import StudentAccount
# Create your views here.
def index(request):
students = StudentAccount.objects.all()
return render(request, 'students/index.html',{'students': students}) | [
"harof.dev@gmail.com"
] | harof.dev@gmail.com |
cdae01d444d0aa4322a2e8ba855b71ac3b53928c | 17079988dedef6f830633a7a54b181355231fe3e | /Practice/n.py | d3a11bc9c638ef479ab7af3d21409277b9fb51e3 | [] | no_license | sum008/python-backup | cdf6eaff60d882c36fe86b47ad311955d5869b02 | 729fbe2a5220941f9ba085c693c871592a529da8 | refs/heads/master | 2022-12-12T21:21:48.259680 | 2020-09-12T15:36:05 | 2020-09-12T15:36:05 | 285,461,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py |
t=int(input())
for i in range(0,t):
n=int(input())
a = [int(x) for x in input().split()]
x=1
pos=0
while True:
if (a[pos]+a[x])%2==0:
y=(a[pos]+a[x])
a.pop(x)
a.pop(pos)
a.insert(0, y)
x=1
pos=0
... | [
"noreply@github.com"
] | sum008.noreply@github.com |
83c102d66660805ff74eee707b21f72c8b8ad3ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03844/s783234735.py | b447472faf28d917b2adb4a6a5940481ba134550 | [] | 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 | 92 | py | a,op,b=input().split() #文字列
if op=='+':print(int(a)+int(b))
else:print(int(a)-int(b))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ff20a850d7480c3854dd5604b141283d9d59f699 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnwhue.py | 9716e8d0f9fb0ee21042753fa211539b5b231a7d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 65 | py | ii = [('FitzRNS3.py', 2), ('FerrSDO2.py', 2), ('FitzRNS4.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
7ebb0eb1be1374ea3347dcda29706127c9d8334f | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tests/samples_tests/smoke_tests/test_hello_reshape_ssd.py | 7e89c01846a488bf21b14cffc2fa12251e2516bf | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 2,287 | py | """
Copyright (C) 2018-2023 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
635d6550345ddc391ea4c0098466411edfe54b7a | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/OptimizeMEKD/Optimize_C.py | f8418aff17f796644d48eaf81cb933dde4ef8ed5 | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 1,617 | py | import ROOT
import math
if __name__ == '__main__':
#sig_MEKD_Bst_C_0.1_M1500;1
finput='RESULT_Boost/ele/ggf_signal_M1500/ROC_Obj_MEKD_Bst_C_0.1_M1500.root'
f=ROOT.TFile.Open(finput)
hsig=f.Get("sig_MEKD_Bst_C_0.1_M1500")
hbkg=f.Get("bkg_MEKD_Bst_C_0.1_M1500")
max_significance=-1
cut=-1
... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
158efd76795e83067ca205acbffff90a53599dc9 | 77428d258556f1cae13c7435bcb5ee387d2f7ed9 | /src/program/python/flask/flask-app/surveyapi/application.py | eef9066cd334c752437184573f602856da4efbed | [] | no_license | imxood/imxood.github.io | d598d3d991f7e7d39787ecb2415ffe48489d9fd6 | a6fe8fe069b8af9d65b6afaabecfcfe99ed1ed21 | refs/heads/main | 2022-10-23T12:52:11.966389 | 2022-10-04T06:04:59 | 2022-10-04T06:04:59 | 47,911,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from flask import Flask
from flask_cors import CORS
def create_app(app_name='SURVEY_API'):
app = Flask(app_name)
app.config.from_object('surveyapi.config.BaseConfig')
cors = CORS(app, resources={r"/api/*": {"origins": "*"}})
from surveyapi.api import api
app.register_blueprint(api, url_prefix='/a... | [
"imxood@gmail.com"
] | imxood@gmail.com |
241c62bc22d28a7f01b9079e2f3ba8b9d6beda4c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/172/38992/submittedfiles/triangulo.py | 7acdb5069d932d6ac512549186e254efc272e19a | [] | 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 | 418 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite um valor:'))
b=int(input('digite um valor:'))
c=int(input('digite um valor:'))
a2=(a**2)
b2=(b**2)
c2=(c**2)
if a<b+c:
print('S')
if a2==b2+c2:
print('Re')
elif a2>b2+c2:
print('Ob')
else:
print('Ac')
elif a>b+c:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
58a73aa4e11916f117d9e74c3cb04b066dfb7ec5 | 97ab50a083a5b183593f41e89853e429bc642190 | /hoover/csv.py | 504bac06572e4def4f65b674d589744de1e4f32d | [
"MIT"
] | permissive | cmb-css/twitter-hoover | 1fc708d3e6c413498e49d830c1a9143e84681213 | ed22439881a7b5a1bdf8fd276920b0fab38231c8 | refs/heads/master | 2021-11-08T05:39:37.785441 | 2021-09-30T10:06:40 | 2021-09-30T10:06:40 | 183,235,719 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,595 | py | import csv
from os import listdir
from os.path import isfile, join
from hoover.simple import read_simple
FIELDS_TWEET = ('created_at',
'timestamp',
'id',
'text',
'retweet_count',
'favorite_count',
'lang')
FIELDS_USER = (... | [
"telmo@telmomenezes.net"
] | telmo@telmomenezes.net |
68b2bc57d7156e26c1186631f1bca42f06f00ee0 | 592498a0e22897dcc460c165b4c330b94808b714 | /1000번/1978_소수 찾기.py | 7610212bd8ea4d8fe8dffaa19a1bc281c9a7c4d9 | [] | no_license | atom015/py_boj | abb3850469b39d0004f996e04aa7aa449b71b1d6 | 42b737c7c9d7ec59d8abedf2918e4ab4c86cb01d | refs/heads/master | 2022-12-18T08:14:51.277802 | 2020-09-24T15:44:52 | 2020-09-24T15:44:52 | 179,933,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | def prime_number(num):
if num != 1: # 만약에 입력이 1이아니면
for i in range(2,num): #2부터 num-1,ex)3까지 반복을 돈다
if num % i == 0: #만약에 입력을 i로 나눈 나머지가 0이면 False를 리턴한다.
return False
else: #만약에 입력이 1이면
return False #False를 리턴 한다.
return True #만약에 3개의 if문 하나라도 해당이안되면 True를 리턴한다.
... | [
"zeezlelove@gmail.com"
] | zeezlelove@gmail.com |
fe8bd58c3101253540c2c6332815c1187b7be4a3 | 35b2ad0c656ff08234eee4c3f62208fa2dc4b893 | /e.g._call_overrided_method_using_super/py2_old_style.py | 830b0042f681ecb55548994805486e91b18370e5 | [
"Unlicense"
] | permissive | thinkAmi-sandbox/python_misc_samples | 0d55b3d40c5983ca2870fdd34221264bf2f6822a | 7a33a803cd0bd13e68c87303ae3ebfbc5a573875 | refs/heads/master | 2021-01-18T16:02:19.890404 | 2018-05-30T23:22:17 | 2018-05-30T23:22:17 | 86,705,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | class Parent:
def reply(self):
print '[parent - reply]{}'.format(type(self))
self.say()
def say(self):
print '[parent - say ]{}'.format(type(self))
print 'parent!'
class Child1(Parent):
def reply(self):
print '[child - reply]{}'.format(type(self))
Parent.... | [
"dev.thinkami@gmail.com"
] | dev.thinkami@gmail.com |
0cc48f6a05685d468c82658acedeef5493f40c04 | 3176145632467710f2041f4f5dcfa66b4d874991 | /reinforcement-learning/approximation-methods/iterative_policy_evaluation.py | 6b787fc557c736183567b921d1a5f210af6afb3e | [] | no_license | WyckliffeAluga/potential-happiness | 804d3a83fc323ea306bdfeec2926031eb0686278 | 0737fb5ce64dd3683090aa70e7adf37769a54544 | refs/heads/master | 2022-11-20T11:53:03.879258 | 2020-07-29T02:03:48 | 2020-07-29T02:03:48 | 258,029,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 14 16:42:07 2020
@author: wyckliffe
"""
import numpy as np
from grid_world import standard_grid
import matplotlib.pyplot as plt
e = 10e-4 # threshold for convergence
def print_values(V, g):
for i in range(g.width):
print("---------------------------")
... | [
"51138208+WyckliffeAluga@users.noreply.github.com"
] | 51138208+WyckliffeAluga@users.noreply.github.com |
b37f56bd891cc9c216a019d7cc8cf4c89065115f | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py | b1e85c0e4ffff6429cf238d99e6d4e40127837b3 | [
"MIT",
"Apache-2.0"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 6,832 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V2beta1Hor... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
fbb5c5f76e930f5391b770c2043890ec54aeba71 | 6c57b1694817d1710335429c12c2d9774ff446e3 | /2017-08-07/AS-DA-DB_case10/generated_files/LEMS_c302_C2_AS_DA_DB_nrn.py | 690e7b1cb3085e5acff9404f23c5d8ddb12353ca | [] | no_license | lungd/openworm-experiments | cd3875e8071c35eacb919c318344bac56d0fe379 | 065f481fbb445ef12b8ab2110f501686d26c213c | refs/heads/master | 2021-01-01T04:41:38.397726 | 2017-09-12T13:55:40 | 2017-09-12T13:55:40 | 97,220,679 | 1 | 1 | null | 2017-09-01T17:10:28 | 2017-07-14T10:07:56 | Python | UTF-8 | Python | false | false | 782,591 | py | '''
Neuron simulator export for:
Components:
Leak (Type: ionChannelPassive: conductance=1.0E-11 (SI conductance))
k_fast (Type: ionChannelHH: conductance=1.0E-11 (SI conductance))
k_slow (Type: ionChannelHH: conductance=1.0E-11 (SI conductance))
ca_boyle (Type: ionChannelHH: conductance=1.0E-11 (SI... | [
"lungdm@gmail.com"
] | lungdm@gmail.com |
0c824d6473b9658dfa17bbd735171214cf1c1148 | 8bf1c3691f1b9202569f600ef7e22f270998683b | /runtest.py | 2b7d203e691f80185fd8202af3388df20663da6e | [
"MIT"
] | permissive | gonchik/grab | 35c3b1e0605cfa850f92b4b15a68944fb8c7fc40 | d007afb7aeab63036d494f3b2704be96ea570810 | refs/heads/master | 2021-01-18T12:15:43.105005 | 2016-01-31T12:38:07 | 2016-01-31T12:38:07 | 50,773,598 | 0 | 0 | MIT | 2019-09-19T20:38:34 | 2016-01-31T12:35:29 | Python | UTF-8 | Python | false | false | 5,402 | py | #!/usr/bin/env python
# coding: utf-8
import unittest
import sys
from optparse import OptionParser
import logging
from copy import copy
from test.util import GLOBAL, start_server, stop_server
from weblib.watch import watch
# **********
# Grab Tests
# * pycurl transport
# * extensions
# **********
# TODO:
# * test re... | [
"lorien@lorien.name"
] | lorien@lorien.name |
8294d076e880d517e835d02c3ff0c531a9974495 | f2ed1b993139c85767d2e6a1b1be74fdfad23822 | /jquery/insert_text1.py | 801f6404a588311a9a12d81bd92a18a83cc39609 | [] | no_license | bunkahle/Transcrypt-Examples | 5377674597eb4b6d6eb92d5ae71059b97f3e0d2e | 17d6460f3b532bb8258170a31875e4e26a977839 | refs/heads/master | 2022-06-22T17:40:33.195708 | 2022-05-31T15:36:37 | 2022-05-31T15:36:37 | 120,099,101 | 31 | 10 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__pragma__ ('alias', 'S', '$')
# instead of : document.getElementById('output').innerText = text
def action():
text = 'Hello, DOM!';
S("#output").text(text)
S(document).ready(action)
| [
"noreply@github.com"
] | bunkahle.noreply@github.com |
bfc654f03e4abb805c4eea1db3b5b3cdb780fb9b | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/test/test_v1_container_state_running.py | 2eb68d73308f529449f28a08d7f15a0f0e8c4179 | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
d341468a41a394a1836146fad9c9b7d85402a0ab | 5dd2dc445bc0c4af6d29bf1290969593689c6dfc | /actor critic/main.py | 3696a4c30cf275d400afaeeed63ad7d7ac493038 | [] | no_license | RobertSamoilescu/RL_bootcamp | 446ff988f0dd8cfdf1c91f7d14ea983092a08ce0 | d5f774bfebf5f6a5d7f0440a7c60f58d2706e7aa | refs/heads/master | 2022-01-09T07:13:25.862297 | 2019-06-20T22:49:03 | 2019-06-20T22:49:03 | 192,088,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,525 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim
import numpy as np
import gym
from itertools import count
from torch.distributions.categorical import Categorical
from tensorboardX import SummaryWriter
# define tensorboard summary
writer = SummaryWriter()
# create environment
en... | [
"robert.samoilescu@gmail.com"
] | robert.samoilescu@gmail.com |
10ba8748e14f3798670a8a137684dea34a321f07 | a36fb46fc6416aa9e1a874a8f61bfe10535f511b | /Day20/solution.py | e16b0986b1e6ac69d24610e5ccd82c17e52c90e7 | [] | no_license | RaspiKidd/AoC2018 | 846995bd292d0103da69855d2965efb19d958f2a | 76f5e42de98d26344d44f0ed389bc681137ea6ea | refs/heads/master | 2020-04-09T02:21:40.253987 | 2018-12-22T11:19:33 | 2018-12-22T11:19:33 | 159,937,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | import networkx
maze = networkx.Graph()
paths = open('input.txt').read()[1:-1]
pos = {0} # the current positions that we're building on
stack = [] # a stack keeping track of (starts, ends) for groups
starts, ends = {0}, set() # current possible starting and ending positions
for c in paths:
if c == '|':
... | [
"kerry@raspikidd.com"
] | kerry@raspikidd.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.