blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ace434a1e20460c96cb647c5143a80fd23e4444e | 52ecc81aba92258924ff6bbe62e536e1ad85ff03 | /javasoftwarerenderer/venv/bin/easy_install | 3025e64e4a274d81402e88d2bf219f4c0487d26d | [] | no_license | mdurrer/cgd | df02709a9b5db7d3696f82c521405f1ada67febf | bbbb2960e2c47531b464f888146d758ca96c5b64 | refs/heads/master | 2020-05-21T12:28:54.901920 | 2018-07-25T20:06:48 | 2018-07-25T20:06:48 | 52,598,365 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | #!/home/michael/PycharmProjects/javasoftwarerenderer/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__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... | [
"michael.durrer@gmail.com"
] | michael.durrer@gmail.com | |
d0daf7126ac49ceaf9fe4fba467bdcc38254018b | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddPlaylistItemsRequest.py | 6eb4fbed96c893b1ed0d077e712f2afb6901d726 | [
"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 | 2,222 | 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 |
03e0f763ea8626de2f91db511bc5d2aed0f01138 | 59c1bcde044969a9c6b0b6407aa0f92346752676 | /notebook/mayavi/3D.py | 4345e999a60a79abe5ff0453276fdcf505ac71de | [] | no_license | Raghava29/ddp | 2c5d8b0d139daa418ee57b4dae7294e14f77dff7 | 32cc77fc2b43731a90078b32b17806d14fe93bba | refs/heads/master | 2021-05-26T14:32:09.039213 | 2013-05-18T19:02:42 | 2013-05-18T19:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | import numpy
from mayavi.mlab import *
import pickle
import prettytable
global redBasis
def plane_z( x, y ):
plane_normal = numpy.cross( redBasis[ :, 0 ] , redBasis[ : , 1 ] )
return (- plane_normal[ 0 ] * x - plane_normal[ 1 ] * y )/( plane_normal[ 2 ])
def split_cords( given ):
x = [ given[ i ][ 0 ] for i i... | [
"cvbrgava@gmail.com"
] | cvbrgava@gmail.com |
dfd382e0fb1a553c4abf58f7e1e1a178f287c706 | 21e5c6bceee6e65bdf2caca053b75af3f24a84d0 | /2020-2/5th/test5.py | eb2e806375d85031c292d26ba967d1e443e2a109 | [] | no_license | lordjuacs/ICC-Mentoring | d69973390e6a7c3e367850fb6387f568583e86e4 | 5aae9e6926820532fd2d530cab21622f9826d578 | refs/heads/master | 2023-03-31T19:59:43.729415 | 2021-03-29T15:26:00 | 2021-03-29T15:26:00 | 295,594,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | """
def invertir(lista):
out = []
for i in range(len(lista) - 1, -1, -1):
out.append(lista[i])
return out
lista = [0, 1, 2, 3, 4]
#lista2 = [4, 3, 2, 1]
lista2 = invertir(lista)
print(lista2)
"""
def fibonacci(index):
if index == 0 or index == 1:
return 1
return fibonac... | [
"juacsr@gmail.com"
] | juacsr@gmail.com |
4bdf46c980fbe95ff2c41dc1e70b72dd2db41bae | 082610de8399f93f6fd8ff62ae4f4da499d42679 | /conftest.py | 50d37e30f82276163f0fc498a69a71e90e3eb911 | [] | no_license | LIFA-0808/Test-PyTest | bfa95af23dfebe994359941175126fb63d86f7a6 | 826a153b72c7cf17265812a0dd424dabe4101b10 | refs/heads/master | 2022-09-28T02:08:08.811603 | 2020-05-31T11:04:35 | 2020-05-31T11:04:35 | 267,585,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def pytest_addoption(parser):
parser.addoption('--browser_name', action='store', default="chrome",
help="Choose browser: chrome or firefox")
parser.addoption('--language', action='store', de... | [
"iramilka123@gmail.com"
] | iramilka123@gmail.com |
ac9a65cd7e2cb959082eca67c058131c7054f267 | 601f9954cab6814130bbb9509b6168cff2b6f263 | /string_operator02.py | 967c586b3cdbea1498e0a059d0642fbd27643771 | [] | no_license | Hara-Lee/hongong_python | 4d26a7c3e362783e6dd80162e377074c072b9710 | 7241bcd7a97ed13c8b16b93161e8dda758d1d44d | refs/heads/master | 2020-12-10T14:35:56.840697 | 2020-01-27T07:44:41 | 2020-01-27T07:44:41 | 233,620,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | """문자 선택 연산자(indexing) : []
파이썬은 제로인덱스"""
print("문자를 뒤에서부터 선택해볼까요?")
print("안녕하세요[-1]")
print("안녕하세요[-2]")
print("안녕하세요[-3]")
print("안녕하세요[-4]")
print("안녕하세요[-5]") | [
"altair0329@gmail.com"
] | altair0329@gmail.com |
850abcd24fff64af7d6051b944820f5ad1239db0 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DGS-3120-24TC-L3MGMT-MIB.py | 84a5c9f901272856a6dd84805ff24aa82447b20b | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 27,904 | py | #
# PySNMP MIB module DGS-3120-24TC-L3MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS-3120-24TC-L3MGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:43:42 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
2de5dd69d801120764e6e605e0cf8998621e6788 | 9a4e19711d72c66eba92d2ce8b9d7a062e748071 | /pykit/strutil/strutil.py | 09232997a86ac11648beabd1b0b55f090dd048bb | [
"MIT"
] | permissive | wenbobuaa/mysql-devops | dc567e252d2f46bf18c07813daf419f733cb2ded | cc60d1d2e0477702c4c78d87edbc8589ed54ea76 | refs/heads/master | 2020-03-09T05:19:57.715968 | 2018-01-21T05:05:42 | 2018-01-21T05:05:42 | 128,610,649 | 0 | 0 | null | 2018-04-08T07:11:19 | 2018-04-08T07:11:19 | null | UTF-8 | Python | false | false | 17,169 | py | #!/usr/bin/env python2
# coding: utf-8
import re
import string
import sys
import types
listtype = (types.TupleType, types.ListType)
def _findquote(line, quote):
if len(quote) == 0:
return -1, -1, []
i = 0
n = len(line)
escape = []
while i < n:
if line[i] == '\\':
e... | [
"drdr.xp@gmail.com"
] | drdr.xp@gmail.com |
9902fd3e436580a5eb9b00e9927250d707b767f0 | ffae452a114d892e40ecba0302f82745492342c3 | /blog/migrations/0016_auto_20180723_1200.py | 29b55c340b9d7ce778a1c34397d4400490902e4d | [] | no_license | Shoyee/blogproject | 6f26066fe75628c30620c3111687c9fbcdbac2af | 5e2787123d3362a497b811ad930fc018ee6e9514 | refs/heads/master | 2020-03-23T14:41:06.886517 | 2018-08-03T12:23:13 | 2018-08-03T12:23:13 | 141,690,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-07-23 04:00
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0015_auto_20180723_1143'),
]... | [
"shuoyu_2008@163.com"
] | shuoyu_2008@163.com |
dc0c1b0ce534a488b710a4410ff6e026c60bd662 | a5da64252cc9c8a2b77a48541b84746c24170bf2 | /ex2/code/propositions/syntax.py | 0732d9c8979797cb66b041a05764b05471da0d81 | [] | no_license | yonilip/cs_logic | ee86cdcc842204dffd3ae30a233c44aab7a50fbb | f4b61a0d2b360f64290e335386f50b7e52ef36e6 | refs/heads/master | 2021-09-05T10:06:01.695686 | 2018-01-26T08:41:51 | 2018-01-26T08:41:51 | 110,412,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,039 | py | """ (c) This file is part of the course
Mathematical Logic through Programming
by Gonczarowski and Nisan.
File name: code/propositions/syntax.py """
NOT = '~'
AND = '&'
OR = '|'
T_str = 'T'
F_str = 'F'
def is_variable(s):
""" Is s an atomic proposition? """
return 'p' <= s[0] <= 'z' and (len(s) ... | [
"johnnyhalen@gmail.com"
] | johnnyhalen@gmail.com |
87488c4ea8334b6ea4d84c600627fff28dde6fa6 | 85e5ce035fa06f2e95924f0fc81cd0640ae236ac | /gbmodel/model_datastore.py | 9da227480f151974ab7db154d0604ec25ac2bd51 | [
"MIT"
] | permissive | ronniesong0809/my-recipe | 87e35fd2416a0d76430d26c39116ccc4ca0b64d2 | c80d1c6efcdee2d62835f105c081a08c28ae7cd3 | refs/heads/master | 2021-06-24T20:39:42.615496 | 2020-10-29T01:58:40 | 2020-10-29T02:05:44 | 170,380,987 | 0 | 0 | null | 2020-10-25T08:50:49 | 2019-02-12T19:50:05 | Python | UTF-8 | Python | false | false | 1,215 | py | """
Google Cloud Datastore model
"""
from .Model import Model
from google.cloud import datastore
def from_datastore(entity):
"""
Datastore typically returns:
[Entity{key: (kind, id), prop: val, ...}]
This returns:
[ title, author, ingredient, time, skill, description ]
"""
if not e... | [
"ronniesong0809@gmail.com"
] | ronniesong0809@gmail.com |
89aa9e1612eed3d6d31f549bbee33b18d54bdb6f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/c18d50d76b304b2ba3289047cce00533.py | f94f1b404b123b82294be4a70207d24c3db05ca6 | [] | 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 | 1,199 | py | import re
import nltk
import string
try:
SENT_DETECTOR = nltk.data.load("tokenizers/punkt/english.pickle")
## nltk data must be installed for nltk.data.load to work
except LookupError:
if nltk.download():
SENT_DETECTOR = nltk.data.load("tokenizers/punkt/english.pickle")
else:
sys.exit("nltk... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
02c0b4c3e9d953fadff52448618d194cffd8ee59 | 727ecfee764a7e362b8957cd26a3ba18516ad283 | /final/test_product_page.py | 4d9a0576a5147092b60a448b6136041a36db77e9 | [] | no_license | mosigo/stepik_lessons | e0028c449ec461d7a0d9d3973390851752d14925 | 907594c93ba9e56d8f259e234afd3a697194f238 | refs/heads/master | 2023-06-06T05:02:16.213905 | 2021-07-01T17:45:04 | 2021-07-01T17:45:04 | 367,449,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,082 | py | import time
import allure
import pytest
from .conftest import Page
from .pages.login_page import LoginPage
from .pages.product_page import ProductPage
@allure.feature('Добавление товаров в корзину')
@allure.story('Гость добавляет товары в корзину со страницы товара')
@allure.suite('Страница продукта')
@allure.sub_s... | [
"bolshakova.oa@talantiuspeh.ru"
] | bolshakova.oa@talantiuspeh.ru |
6181093e583182929a51f0a81d4c3763695c0c08 | df0c94cddf7722956075b2e909c2f08044c02a79 | /misc/spiral_matrix.py | bfd3809bdcdbcd541663e1114d7e0d173ffec1f6 | [] | no_license | karthikrk1/leetcode-solutions | 94664e49bfe67928e8fb9d763be1b50e1ad51f5a | 1c762140cbba77d360f9e9b7d635dd8b4634c38b | refs/heads/master | 2021-05-22T20:11:24.782695 | 2020-04-05T03:54:40 | 2020-04-05T03:54:40 | 253,075,040 | 1 | 0 | null | 2020-04-05T04:12:03 | 2020-04-04T18:49:10 | Python | UTF-8 | Python | false | false | 1,194 | py | """
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
"""
class Solution:
def spiral(self, m):
if not m:
return []
row = len(m)
col = len(m[0])
seen = [[False] * col for _ in m]
row_dir = [0, 1, 0, -1]
... | [
"karthik.ramakrishnan20@gmail.com"
] | karthik.ramakrishnan20@gmail.com |
85e0799cfd0a0a2ba64c741642992de3025dc5b3 | dbc250556aeeaa4f5c4f1d1a0408555b0e5e15d9 | /Web/apps/shop/migrations/0014_auto_20190110_2000.py | 59e4ab25ef1103d05c8e830e3df009c6213e4420 | [] | no_license | OrchidHu/vue-django-iview | fc5a811ea1b9cac71197842b5e1eccec067fff77 | 9c3a4778b7fea83939a5a8cdf7e48ffabea8b484 | refs/heads/master | 2020-04-02T10:15:15.204747 | 2019-04-23T08:08:22 | 2019-04-23T08:08:22 | 154,331,068 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 2.1.2 on 2019-01-10 12:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0013_auto_20181224_2029'),
]
operations = [
migrations.RenameField(
model_name='goodpackage',
old_name='number',
... | [
"826446178@qq.com"
] | 826446178@qq.com |
61d271823d4b0b8ee20b64c4cb5a348cc3523f0f | 749d78bfd5333ac80364d595bc64a0ee17257fdb | /test/functional/test_framework/coverage.py | 8fb2bcc748b58a7fea00fb833cf7085407bd49c0 | [
"MIT"
] | permissive | bitcoinhedge/bitcoinhedge | 22b70fa2c76f6ca54b0c3b6885ad4e852afa3e31 | d627c6fb5e174feb8ce378e29af11846edd2a000 | refs/heads/master | 2023-07-14T14:59:39.741065 | 2021-08-15T06:49:15 | 2021-08-15T06:49:15 | 396,245,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Utilities for doing coverage analysis on the RPC interface.
Provides a way to track which RPC commands... | [
"bitcoinhedge.io@gmail.com"
] | bitcoinhedge.io@gmail.com |
809bd66422b788fa373e4bfb0dacd1accf62b08c | 084cff129332f399882cea8d8a7f81b537e29f95 | /Day 9/day9.py | b7c22a73182f84fd8bf00db3d2a62bc8837ad073 | [] | no_license | NickG123/AdventOfCode2020 | ce5822309ebbcc8966d3814a8e036f244bfb315c | a09897af95eb6f205f412babdf49bd688250427c | refs/heads/master | 2023-02-07T00:44:15.235623 | 2020-12-25T17:49:06 | 2020-12-25T17:49:06 | 319,134,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | import itertools
from collections import deque
from typing import Collection, Iterator, OrderedDict
INPUT = "input"
WINDOW_SIZE = 25
ELASTIC_SUM_MIN_SIZE = 2
class SlidingWindowHashSet:
def __init__(self, items: Iterator[int], window_size: int) -> None:
self.items = items
self.windo... | [
"nick.gerow@enlightedinc.com"
] | nick.gerow@enlightedinc.com |
f4d503d4e5a7cf464329a5ff75a6f9aae9f0736c | 264177f490189085508e258adf10d4f9d0f7edaa | /28_find_factors/find_factors.py | 8cbde8f6f7416ad835e2474d9d9bcc4e0df63618 | [] | no_license | RMCanete/python_data_structures | a316c9364a80ad31b9fbdd813aa3af81cf62f076 | 2a518234778b084f0933fec787e3d03885edf4e0 | refs/heads/main | 2023-05-30T22:30:10.556174 | 2021-06-06T21:10:15 | 2021-06-06T21:10:15 | 374,464,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | def find_factors(num):
"""Find factors of num, in increasing order.
>>> find_factors(10)
[1, 2, 5, 10]
>>> find_factors(11)
[1, 11]
>>> find_factors(111)
[1, 3, 37, 111]
>>> find_factors(321421)
[1, 293, 1097, 321421]
"""
num_list = []
n = 1
while (n <= num):
... | [
"MattieCanete@gmail.com"
] | MattieCanete@gmail.com |
a35539e60d21ee5e4cff7b291d6e310a1f7c4738 | d6952f048727add5b54a521d04f6c9b5889bcd35 | /test/test_plugin_package.py | d5c894862466254490283a1ebf7fe54be81aa9cf | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
7633cb39851ec9e42780c0e15e5ff67ea2ea840d | d54db5259aeff1fbd24328b57b6b2173655ee2c8 | /PCA.py | c0605fa788bc823966842e4c1698cc28f9ec2162 | [] | no_license | Adamdad/EE5907 | de31796ad601dcdc382b66362fca019516a41c8e | e47e602038af8f067bd5866c200b4b23d3903813 | refs/heads/main | 2023-08-27T01:01:37.712405 | 2021-11-07T14:01:47 | 2021-11-07T14:01:47 | 425,507,807 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | from __future__ import division
from cv2 import DECOMP_SVD, imread
import numpy as np
from numpy.lib import real
from scipy import linalg
from data import PIEDataSet
import matplotlib.pylab as plt
import sklearn
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import accuracy_score
# im... | [
"noreply@github.com"
] | noreply@github.com |
4d8c07a70b0749f8547c953b05392c9470433b4b | f53ceb369fe3ed0e57004510d5836abbac7ce2e1 | /src/embeddingdb/web/wsgi.py | 23375a9b9580bc64f7264ca7c79562d6fd97ef3b | [
"MIT"
] | permissive | aarek-eng/embeddingdb | e3b21a1b8c3ed54a10fdce647e51c1bd560d117c | e6c67e92e540c4315045a0b4de5b31490331c177 | refs/heads/master | 2022-01-10T17:38:38.526503 | 2019-06-26T21:37:52 | 2019-06-26T21:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # -*- coding: utf-8 -*-
"""A WSGI formulation of the web application.
Also allows the web application to be run with ``python -m embeddingdb.web.wsgi``.
"""
from embeddingdb.web.app import get_app
app = get_app()
if __name__ == '__main__':
app.run()
| [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
11079af39ae8401cc6cb57ff6a60c1cd95ca09e1 | 807c5babc96bf23782ce18d4e4f98a737ca04096 | /timeSpent.py | efccf0ecd1e6773c28387b4ea876c08e52e2215d | [] | no_license | jgschmitz/Python-Snips | 0826d1d105b082ed37511a37980d9845ca8f6368 | 94acf37ca4836b121cd255a50cfc1648ff39f902 | refs/heads/master | 2023-01-06T02:15:01.245811 | 2022-12-29T16:36:20 | 2022-12-29T16:36:20 | 211,715,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | python3
import time
start_time = time.time()
a = 1
b = 2
c = a + b
print(c) #3
end_time = time.time()
total_time = end_time - start_time
print("Time: ", total_time)
# ('Time: ', 1.1205673217773438e-05)
| [
"noreply@github.com"
] | noreply@github.com |
f8ce4049fa17b2f77c746a564018e80505b3ad57 | 44a6e88da453a2e368b014e403843b0c955f21f4 | /utils/test/test_cmpdirs.py | a6803725d5400b4ac3619b4f18d0768c8355442c | [
"Artistic-2.0"
] | permissive | golharam/genomics | a26b1f9366203ec059cc2e49281909bfc16e6ab4 | ca0c7c239b0f04353e2f2fa897db9c24a1211596 | refs/heads/master | 2020-08-06T10:28:21.604129 | 2019-09-27T07:51:41 | 2019-09-27T07:51:41 | 212,943,378 | 0 | 0 | Artistic-2.0 | 2019-10-05T04:25:24 | 2019-10-05T04:25:23 | null | UTF-8 | Python | false | false | 6,468 | py | #######################################################################
# Tests for cmpdirs.py
#######################################################################
import unittest
import os
import tempfile
import shutil
from bcftbx.Md5sum import Md5Checker
from bcftbx.test.mock_data import TestUtils,ExampleDirLangu... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
3c35034ec71261225f4fd704dc05117036d47e8a | 5f93ba98130ae38c08bbcac78cd96067ed820ebd | /Text-based programs/Comoara.py | 54fb7b7bac6922f441120d0d646948a7080381df | [] | no_license | albert55albert/Text-based-apps-python | 60cc74dc7b193d603a8bf14fefc0ee05d07d914d | 9f97d12dd5d050ef8a82cc9e63224b65ebf3b50a | refs/heads/master | 2020-08-27T12:22:32.661043 | 2019-10-24T18:25:25 | 2019-10-24T18:25:25 | 217,366,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | from random import randint
print('Bine ai venit la jocul comoara.')
print('Acest joc se joaca in 2 jucatori.')
print('Aceasta este harta jocului.')
print('''
5 6
4 @----@----@----@ 7
| |
| 15 |
3 @ 14 @----@ @ 8
| | | |
| | *|* |
2 @ 13 @ *$* @ 9
... | [
"noreply@github.com"
] | noreply@github.com |
91a5bf62069c397047d8a89a2985365a11723d7a | 7820db0b78a634206fa299e28a4cf8966da488d3 | /geoiojpg/__init__.py | a29a13f6168d405fcbbd2e471960887ddc835746 | [
"MIT"
] | permissive | ArnholdInstitute/geoiojpg | 4efd5b45b372855e50719a58a15c550b02aac3bf | eebaf33592677248c1c4d13449dff37acf88f59f | refs/heads/master | 2021-04-29T22:42:20.810691 | 2018-04-19T15:26:19 | 2018-04-19T15:26:19 | 121,642,826 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | from .base import GeoImage | [
"ml9951@rit.edu"
] | ml9951@rit.edu |
b40854be1905496ff46e9268ef94286bd5e70ea0 | 65d1dd426cd7d06833128771d3b274ab9895ccd9 | /after_midterm/data_testing_fly.py | 952162a3f0070ae25e1217fb1b5f9f6486204d68 | [] | no_license | alicechen1998/Smart-UAVs | 9bf706b2c81b30ee872bdb271b89336dd5ec01f2 | 02612195cf28dc5d0539021bcb12ba095e04106a | refs/heads/main | 2023-06-15T10:35:20.572151 | 2021-07-07T16:20:49 | 2021-07-07T16:20:49 | 375,763,591 | 0 | 0 | null | 2021-07-07T15:46:51 | 2021-06-10T16:31:19 | Python | UTF-8 | Python | false | false | 3,598 | py | import os
import serial #import serial pacakge
from time import sleep
import webbrowser #import package for opening link in browser
import sys
import time #import system package
import signal
import math
import time
import board
import busio
import adafruit_lsm303_accel
import adafruit_lsm303dlh... | [
"zachietaylor@msn.com"
] | zachietaylor@msn.com |
fe0176822963934d8988cc2ffd44b7787abf28e5 | 38066012e1c795831988bf8823ab87868f9ce10a | /src/GUIs/frame_demo.py | 5b31b7fe336bb5d8b7776603dd5e016f6275d733 | [] | no_license | hurjmc/HursleyPython | 8482c89b5ac077572b1b8bb0cde050bd7916815e | fd60a584d9aa2702d8d651545b8bcb53e6b08977 | refs/heads/master | 2021-01-18T14:49:28.873229 | 2014-07-15T19:38:39 | 2014-07-15T19:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #========================================================#
# (C) COPYRIGHT IBM CORP. 2014 ALL RIGHTS RESERVED #
# #
# Provided for use as educational material. #
# #
# Redistributi... | [
"squanto@hotmail.co.uk"
] | squanto@hotmail.co.uk |
a480c8d0858da6d291d74a986e88a207282c2b12 | 1edb87bcc062224603f173d950f10a4d47e7f99e | /DjangoBlog2/migrations/0002_auto_20150607_1613.py | 8d703969b09cbb4f4a323c56f90f06e2513cb361 | [] | no_license | geekua/DjangoBlog | a21be5a21631c6be5473567956e08468986f79f1 | 2efb0f9f544f9ec768feeab1bd5b06f80a4462af | refs/heads/master | 2021-01-16T18:59:40.570950 | 2015-06-07T15:24:44 | 2015-06-07T15:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('DjangoBlog2', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='article',
old_na... | [
"andrey.cplusplus@gmail.com"
] | andrey.cplusplus@gmail.com |
31d7d84820dfe2a2b0d0ce8cdad8e9e3128c5644 | f75cbf86adacd24367f0e6c04694fc78af279838 | /RuctfOlymp2019/rev300/solver.py | 3e6f6b36066968e40850647d024b5c29b8768ec1 | [] | no_license | mostobriv/writeups | 1c632aaf5aca658d3dede4b3dec99aefea06a901 | 2e11cd1bd62c9b0399ebcff9327882295552ae9e | refs/heads/master | 2020-03-26T23:27:18.037057 | 2019-05-06T07:18:06 | 2019-05-06T07:18:06 | 145,543,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | from z3 import *
status_vals = [14073L, 15455L, 16345L, 17467L, 16123L, 15388L, 16235L, 14596L, 16142L, 17348L, 14593L, 14120L, 15400L, 14711L, 15540L, 16455L, 16206L, 17503L, 16771L, 17479L, 15636L, 19401L, 15085L, 14655L, 17215L, 15874L, 16301L, 16270L, 15976L, 17403L, 14774L, 16145L, 14349L, 16797L, 16696L, 16163L... | [
"mostobriv@gmail.com"
] | mostobriv@gmail.com |
c7dacce48c84f688b9eff51726569b87b8cae02d | 7329b3fbba9203c3d6e74a700e49e926123ee372 | /python_things/lists/number_lists.py | edaab817f98dcc49cd26390a5cb0d03fcf059be6 | [] | no_license | mikez321/practice_projects | c64cdd9181e854ade2da34e797cf7ee6acd7841a | 397c6ac624144e5386e20b2289c1c3dd1ad162e6 | refs/heads/main | 2023-02-27T13:54:34.305700 | 2021-02-09T05:40:53 | 2021-02-09T05:40:53 | 288,793,969 | 0 | 0 | null | 2020-09-02T02:18:54 | 2020-08-19T17:24:11 | Ruby | UTF-8 | Python | false | false | 826 | py | """Intro to some basic sequence methods."""
even = [2, 4, 6, 8]
odd = [1, 3, 5, 7, 9]
empty_list = []
numbers = even + odd
print(numbers)
sorted_numbers = sorted(numbers)
print(sorted_numbers)
print(numbers)
print(list('2198462'))
more_numbers = list(numbers)
print(more_numbers)
print(id(numbers))
print(id(more_numbe... | [
"hernandezmichael321@gmail.com"
] | hernandezmichael321@gmail.com |
fc3cc6f392fa40bbeca0d055bfc0cecb2479f451 | e8d559bd8834947b8d1ad938998738d608b5d3bb | /example_with_manual_params_logging.py | a217e7fd09d26c97d9af17240fd9db820aa7b591 | [] | no_license | We-Sci/public_wesci_python_logger | b6f6764d3a486f600f8262b0aca17e09f9bd64cf | b9e315403fb985590bdeabe49e7d9e3bff946621 | refs/heads/master | 2021-01-01T20:37:48.319968 | 2017-11-20T11:18:41 | 2017-11-20T11:18:41 | 98,902,779 | 2 | 0 | null | 2017-09-25T07:10:49 | 2017-07-31T15:17:51 | Jupyter Notebook | UTF-8 | Python | false | false | 698 | py | from matplotlib import pyplot as plt
import pandas
import wesci
logger = wesci.Logger(
script_file=__file__,
log_file_prefix="./script"
)
# inputs
a = 3
logger.add_input_params({'a': a})
logger.add_input_files({'input_csv': 'input.csv'})
logger.add_input_files({'input_txt': 'input.txt'})
logger.add_input_fil... | [
"yaron@we-sci.com"
] | yaron@we-sci.com |
4a6a1e67d3c8dd382b1ce75802b52f916a877a28 | 5e62681243f89b45138e212bfdde55dea560e9b8 | /name_recognition.py | fcf338723905bc174260773f7c90c444745e1d4b | [] | no_license | shainaraza/Detecting-Gender-Bias-in-News-Articles | 637e2f896b972234ef41ca8653123c4d9a7b25fb | b3d7eec5c3903f75f73b296610a379365b05074f | refs/heads/master | 2021-12-09T01:42:50.042430 | 2016-04-25T16:31:30 | 2016-04-25T16:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import ner
def get_entities(snippet):
tagger = ner.SocketNER(host='localhost', port=8080)
return tagger.get_entities(snippet)
# ents = get_entities('Total Truth, the North American Cup winner, drew the No. 5 post position and was made the 3-1 morning line favorite yesterday for the $300,000 Cane Pace on Labor Day... | [
"cambadipudi@tamu.edu"
] | cambadipudi@tamu.edu |
1a4e69d4203e03c715bffe7e94c9bb927a9ea357 | db87cf6d57fb8f067f603276d265949da89c6197 | /plot/chainperf.py | b1b384c87a7d920b71e41a127ae60968381ae5ad | [
"LicenseRef-scancode-public-domain",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | davidboxboro/groth | f3ff28639d272565e59f0281012b56cec6a04894 | af5def3701b831af628a2b327a600d22e4e1a1b2 | refs/heads/master | 2021-08-16T02:11:03.237551 | 2018-11-29T22:42:36 | 2018-11-29T22:42:36 | 147,301,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,009 | py | import json
import os
import sqlite3
import sys
from matplotlib import rcParams
rcParams.update({'figure.autolayout': True})
# rcParams['pdf.fonttype'] = 42
# rcParams['ps.fonttype'] = 42
rcParams['ps.useafm'] = True
rcParams['pdf.use14corefonts'] = True
rcParams['text.usetex'] = True
assert len(sys.argv) == 2, ... | [
"dtl@mit.edu"
] | dtl@mit.edu |
888dd884c76f0212c68ee87a5a937ac2a9862977 | 82913837f280eb89658fab60065e60f4f902f357 | /students.py | ba34dd09f44b105b982d75d9bf82b64cebc4a8cf | [] | no_license | cbolk/CS2020-21 | d0b46ffc6a18d5f4ddb6ea33c19360562f81cb48 | 79e43f346d582362eac52a36155c4c67ba8db14d | refs/heads/main | 2023-01-29T04:24:48.625604 | 2020-12-10T16:22:59 | 2020-12-10T16:22:59 | 303,151,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | import pandas as pd
df = pd.read_csv("./students.csv")
df.sort_values('mathematics')
df['rankM'] = df['mathematics'].rank()
meanrankm = df['rankM'].mean()
df['rankM-m'] = df['rankM'] - meanrankm
df['rankM-m-sq'] = (df['rankM'] - meanrankm)*(df['rankM'] - meanrankm)
df['rankS'] = df['science'].rank()
meanranks = df[... | [
"cristiana.bolchini@polimi.it"
] | cristiana.bolchini@polimi.it |
d8ab0ab292a3a15a8a20c372c55b6f1fec681cb1 | 7dd2a0105fade5cfddc94c2a04172286a699b3b0 | /faststwr/sel_bw.py | 301ac62c65c4f94e128dbef2cf878fe88e0e07f5 | [
"BSD-3-Clause"
] | permissive | wtwong316/Fast-STWR | 695640df0cbdb6ba994a484c12857f145d928ebf | 919a6eb954dddfa5b965e923aa688c0af6b3d08e | refs/heads/master | 2023-03-20T07:26:29.021196 | 2020-09-26T09:26:33 | 2020-09-26T09:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,361 | py | # STWR and GWR Bandwidth selection class
__author__ = "STWR,F-STWR is XiangQue xiangq@uidaho.edu and GWR,MGWR is Taylor Oshan Tayoshan@gmail.com"
"""
You can use less than 6 processors to run our FastSTWR,if you need more processors please contact us: xiangq@uidaho.edu or quexiang@fafu.edu.cn
---------------------... | [
"37957804+quexiang@users.noreply.github.com"
] | 37957804+quexiang@users.noreply.github.com |
fee271e6a59d8788ba7f3c871dc5e1cf7cdfb288 | 9b0e4a5351e84b171db953c43d9ec73a917e8981 | /Day 02 - 25.07.2018/programs/13_function_keyword.py | 37829b2283bda78c8f1ff2249c1afc323bf29feb | [] | no_license | dvorachetrit/Python_7424596_21-1 | 5a5bbc88a98ed4661eb65916f4a6335d4ddea1de | 0e4cbda2efecb5445a94d200d2d1c28acc773dec | refs/heads/master | 2020-03-24T01:12:08.661852 | 2018-07-25T16:00:57 | 2018-07-25T16:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def func(a, b=5, c=10):
print('a is', a, 'and b is', b, 'and c is', c)
func(3, 7)
func(25, c=24)
func(c=50, a=100)
"""
$ python function_keyword.py
a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50
""" | [
"noreply@github.com"
] | noreply@github.com |
6925c6c9f8018c4e1daf2d782c45463816400745 | 1327b1d4a2c1337c888244393a360f13e12ef990 | /21.4.py | 3d2b90a6ccd7d3e7e2be9b3ef7d173ebdf029012 | [] | no_license | vlad0-0/lab21 | 9995bc2b4c09b4de4015979bf053dad5fc5e2676 | 9673c9b4af0061664dd0738545be00de4df92c84 | refs/heads/master | 2020-09-18T18:40:39.568690 | 2019-12-15T14:26:29 | 2019-12-15T14:26:29 | 224,167,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | s = input()
c = 0
a = ["а", "е", "ё", "и", "о", "у", "ы", "э", "ю", "я"]
for i in range(len(s)):
for j in a:
if s[i] == j:
c += 1
break
print(c)
| [
"noreply@github.com"
] | noreply@github.com |
c2c69123fcd93207c1a041eb958dba4d4598f937 | 152fdea7a72b37d7b964c832823bb1e98166eb03 | /newday2/newday2/settings.py | 903d75ced93ae2d50d912bf781b04ccc2eac2964 | [
"Apache-2.0"
] | permissive | greatfirsty/hellopython | 12f61afc5e95e8fc2e392bc2981e48890bd7503c | f12aacf36b8f208d6c5622ffd6b4c1927f37b45a | refs/heads/master | 2021-06-17T03:31:37.498657 | 2019-08-09T09:39:43 | 2019-08-09T09:39:43 | 132,227,596 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | """
Django settings for newday2 project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"1640191389@qq.com"
] | 1640191389@qq.com |
d12197990176412d337cda7a59ab6da6e4998a33 | 3abe5fa7bb3b01214b400a76437bcfc89a88d45a | /courses/migrations/0032_realdiscount.py | 5f4f80b95efad7fb2f86be0e0d4f2f367d534c5b | [] | no_license | prasant-paudel/CouponsTown | 5bb73539d33ba37f30a32b42368d088a47a3bea6 | 02b3b96366dc27770b23caef348320bdbb4e7ed6 | refs/heads/master | 2023-04-16T22:01:31.464366 | 2021-04-28T02:30:42 | 2021-04-28T02:30:42 | 270,887,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Generated by Django 3.0.7 on 2020-06-21 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0031_auto_20200621_0955'),
]
operations = [
migrations.CreateModel(
name='RealDiscount',
fields=[
... | [
"50891775+Prasant7878@users.noreply.github.com"
] | 50891775+Prasant7878@users.noreply.github.com |
086e6b7617bfe6dff5cd9ce5ac34aa37a996a781 | 13a9c08efa735f30f9d340453d1683e68006155f | /Sequences, Time Series and Prediction/Week 2/Week 2 Lesson 1.py | a90a62d0dd15c652af13a3d5bb3bd34f19f6c76a | [] | no_license | SiHaoShen/DeepLearning-with-TensorFlow | 73f3e9efdf2ce698899bbb37a6a6029e2aec3502 | 39ecec71fba11c01a692d370d4c5d8c6abee3fb5 | refs/heads/master | 2022-12-14T04:43:14.359938 | 2020-09-06T19:41:40 | 2020-09-06T19:41:40 | 293,348,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
#print out 0, 1, 2...9
dataset = tf.data.Dataset.range(10)
for val in dataset:
print(val.numpy())
#Print out [0 1 2 3 4], [1 2 3 4 5]... [8 9] [9]
dataset = tf.data.Dataset.range(10)
dataset = dataset.window(5, shift=1)
for window_dataset ... | [
"IsaacTitan26@users.noreply.github.com"
] | IsaacTitan26@users.noreply.github.com |
b87550bfd0f03a7059f92fcc41a2d2146199003b | ecdf9256853e11d6105e2b9ad92ba912602d97d7 | /hackerrank/contest/project_euler/prime_pair_connection.py | 1c15c254a9bb9448f4002f98039f487eeddce0eb | [] | no_license | rgsriram/Algorithms | 364fda568356834e32ec247438d21202bebc838d | d4f9acb1a60bd098a601d8173dfdad447a02fd74 | refs/heads/master | 2021-01-10T05:11:05.688731 | 2019-03-20T04:59:10 | 2019-03-20T04:59:10 | 49,176,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | __author__ = 'sriram'
def get_prime_numbers(p1, p2):
primes = []
for num in range(p1, p2):
if num > 1:
for i in range(2, num):
if (num % i) == 0:
break
else:
primes.append(num)
return primes
def find_next_prime(a, b):
... | [
"srignsh22@gmail.com"
] | srignsh22@gmail.com |
eecacb5d8e8eca0109b6d65ddd7b8e54a3d4d9c5 | ea459bc6571b254f04fedb9262e297038773afe2 | /70_712A.py | e5e1ad11940e899dbf0adc2cfd0cced787fc77d2 | [] | no_license | ywtail/codeforces | 47da2564858e0c906aa715b3b8b76e6d41b76dd8 | 5c000124ff5ef1172494bc5c5dc252bcf8515ce1 | refs/heads/master | 2020-12-24T08:00:47.738455 | 2018-04-21T15:27:48 | 2018-04-21T15:27:48 | 59,407,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | #coding=utf-8
n=int(raw_input())
ai=map(int,raw_input().split())
for i in range(n-1):
print ai[i]+ai[i+1],
print ai[n-1] | [
"ywtail@gmail.com"
] | ywtail@gmail.com |
b0c4412b89a2539c8dbd8859bd81a94448288edd | 0669d94428c972da19346e356861bf11bd668bc9 | /test/test_subaccount_response_etat_etat.py | 91fdf4f9bc18db35924042db2eafccbbc67173c0 | [] | no_license | mlemee/iSendProPython | e9a0f8351e33ae7598bd1380a26c2fe0a1dacd22 | 3add878dbcd682aa41f2bd07f98d8b56c8e5f9f3 | refs/heads/master | 2022-06-10T02:27:12.368498 | 2020-05-04T15:48:13 | 2020-05-04T15:48:13 | 261,206,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | # coding: utf-8
"""
API iSendPro
[1] Liste des fonctionnalités : - envoi de SMS à un ou plusieurs destinataires, - lookup HLR, - récupération des récapitulatifs de campagne, - gestion des répertoires, - ajout en liste noire. - comptage du nombre de caractères des SMS [2] Pour utiliser cette API vous devez: -... | [
"maxime.le.mee.checkandbang@gmail.com"
] | maxime.le.mee.checkandbang@gmail.com |
0e942ea860ba6f547b090dd3e9d362fd8a956a09 | fb124e51024917d6479fa626d9607ff10f7a3aba | /storm-control/storm_control/sc_hardware/none/noneZStageModule.py | 0367129a52211e72f02bf6d98b88d170fab8f5e2 | [
"MIT"
] | permissive | BehnamAbaie/storm-control | 054bd7bbd903ed9635e4d1121c30544f58473c4f | 0c686321142eccad62ce3365eae22c3b69229b0d | refs/heads/main | 2023-06-18T08:04:01.108874 | 2021-07-14T00:51:15 | 2021-07-14T00:51:15 | 342,049,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | #!/usr/bin/env python
"""
Emulated Z stage functionality
Hazen 04/17
"""
from PyQt5 import QtCore
import storm_control.hal4000.halLib.halMessage as halMessage
import storm_control.sc_hardware.baseClasses.hardwareModule as hardwareModule
import storm_control.sc_hardware.baseClasses.lockModule as lockModu... | [
"noreply@github.com"
] | noreply@github.com |
720518e688fcc728b9d81c5f3cabd929b4d68a13 | d77b731bb785135d78685703795e680e5f15cbda | /monstre.py | 0c6b9a91c4b0e77231d940aa121bb4b943d0886d | [] | no_license | Jounaedi/RPG | d308567e88e34e4559caa4bbff875c6f4f3ca3bd | fbf976371988ad939375fe7067665737a592dc25 | refs/heads/main | 2023-04-18T12:21:56.808452 | 2021-04-20T08:46:47 | 2021-04-20T08:46:47 | 359,745,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,314 | py | ###########################################################
#Monstre
NOM = "NOM"
DESCRIPTIF = "DESCRIPTIF"
HP = "HP"
ATT = "ATT"
DEF = "DEF"
RECOMPENSE = "RECOMPENSE"
#MONSTRES JAPONAIS
monstre = {
"Les Plaines d'Izuhara": { #A2
NOM : "Ronin",
DESCRIPTIF : ... | [
"noreply@github.com"
] | noreply@github.com |
9bd05785e015991afd33124377bb512fc14e9e8b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s191736717.py | 3fcc479cdce9831954afefa641e5c33340ad8eee | [] | 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 | 944 | py | n, m, L = map(int, input().split())
abc = [list(map(int, input().split())) for _ in range(m)]
q = int(input())
st = [list(map(int, input().split())) for _ in range(q)]
d = [[float('inf') for _ in range(n)] for _ in range(n)]
for a, b, c in abc:
if c > L:
continue
d[a-1][b-1] = c
d[b-1][a-1] = c
de... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
262d6784c7c3001c77f7458a5f847b50d3ddb464 | feba76342161fd0e53be9c16e8463da3d2d25193 | /scriptie_0b_adding_unlabelled copy.py | 48e53313ce1d6a6b98cfc734de5c7b7f842c4062 | [] | no_license | Linkerbrain/TextGNNs | dc8fb11c439bcaa7a4225335fc02f738c0be3d69 | 3de11fdd3e2782c829e54b64112597992f0aead0 | refs/heads/main | 2023-06-11T12:46:15.643059 | 2021-07-08T12:20:28 | 2021-07-08T12:20:28 | 367,672,827 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,132 | py | """
Experiment #1: The value of classifying transductively
"""
from pipeline.load_data import load_data
from pipeline.vocab import make_vocab
from graph_methods.create_graph import create_graphs
from pipeline.dataset import DocumentGraphDataset
from models.create_model import create_model
from pipeline.trainer import... | [
"lloerakker@gmail.com"
] | lloerakker@gmail.com |
b0f78eed188b98ba5588f40ed6768304581909c4 | 7ce834e466f6f178b0c2136a75c9772aa3843fd9 | /scripts/mapping.py | ff29daa603ea7ae02518d12488f03741b680ca8d | [] | no_license | jxWho/AC | 884e4581c59eb4bd00ec6493773d63bccca0ccd0 | 16145b0b68c0a2decc30fd0db688cc9459c9d93c | refs/heads/master | 2021-01-10T09:30:52.510769 | 2015-12-16T16:52:04 | 2015-12-16T16:52:04 | 47,897,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | import os
def mapData(dataFolderPath, storagePlace, dialect):
dataFolderPath = os.path.abspath(dataFolderPath)
folder_queue = []
folder_queue.append(dataFolderPath)
fileList = []
speakerCnt = 0
languages = {}
dialects = dialect.split('|')
dialectsMapping = {}
dialectFile = open(os.p... | [
"hjxwho@gmail.com"
] | hjxwho@gmail.com |
ac210e5586dd597ee5f5886275ca4c7441c33f2f | ec4816fbcebd6e025cb9a0051b8bae4371417cf9 | /venv/bin/undill | 6a29910b1d176ed4d9e3b32726c46bbfca592ae1 | [] | no_license | min0418/spacy-training | 69ab02e42a13e78a4404a1fd68770b06e546eca6 | 80ac3f5686581a925e54a26d4123219a93bcc75f | refs/heads/master | 2020-03-27T15:04:24.252123 | 2018-08-30T04:50:19 | 2018-08-30T04:50:19 | 146,696,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | #!/Users/actmember/PycharmProjects/trainNer/venv/bin/python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2008-2016 California Institute of Technology.
# Copyright (c) 2016-2018 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
#... | [
"min0418@gmail.com"
] | min0418@gmail.com | |
5d96c44fe7a17221c142d1aa6e44852295d6e431 | 133b9c9e03d1779bcacae18e19a5c48491862a0b | /pole-bal.py | b0ded936f62cfb18df78437bbec3e9ccfddc6539 | [] | no_license | Ashwins9001/rl-playground | f97fc17aef02ea54c3946fbdf927047ff1191014 | 77df2885db97584025de93f2c993aee799d63fcd | refs/heads/master | 2022-11-24T07:34:16.986527 | 2020-07-31T02:30:42 | 2020-07-31T02:30:42 | 273,554,910 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | import gym
import numpy as np
#Select env for agent to play in; cart-pole goal is to self-balance cart
#Action space: '0' for pushing left, '1' for pushing right
#State space: '0' for cart pos, '1' for cart vel, '2' for pole angle, '3' for pole vel
#Reward given for time-step pole balanced
env = gym.make('CartPole-v0... | [
"nitromekid@hotmail.com"
] | nitromekid@hotmail.com |
76625436f278839556a6c449a439a3dc983c6efd | cb624878a7f9a58c48ec97c476c67b893299cea2 | /Algoritmos Principais/utils.py | 375456249060b1eb7b41ece34fa604cfde0b2156 | [] | no_license | HenriqueCaetano1/LPS | bb7ea3a88af6d507c2ee56946ba83200748ee3d9 | ab8b80767754d7f73a0b79417e60f1a3a513c890 | refs/heads/master | 2021-08-08T01:17:23.128860 | 2021-07-20T15:30:23 | 2021-07-20T15:30:23 | 181,040,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import collections
import networkx as nx
def teste():
print("banana")
def unpack_list(list):
unpacked_list = []
for i in list:
unpacked_list.append(i)
return unpacked_list
def find_key_by_value(dictionary,va... | [
"noreply@github.com"
] | noreply@github.com |
146c6b10074b8aed8a07e6610b9e29739000c651 | 26774b0a8133955c05fe9b8973e011f0730241c6 | /manim_sandbox/videos/manimTutorial/part4_SVGImageText.py | cf0672893f5656798ae45eb2773517175dfe9e03 | [] | no_license | codecxx/manim_sandbox | 056d7b1654738b5c0f7104dd73a157ff4f7d6d1c | 2d546b99403018bd1362bbe58b45683762e32716 | refs/heads/master | 2022-11-24T03:29:04.077646 | 2020-07-25T13:43:04 | 2020-07-25T13:43:04 | 282,556,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,384 | py | # from @鹤翔万里
# manim教程第四期 - SVG、图片与文字
from manimlib.imports import *
from manim_sandbox.utils.imports import *
from manim_projects.tony_useful.imports import *
class CodeLine(Text):
CONFIG = {
't2c': {
'RIGHT': ORANGE,
'LEFT': ORANGE,
'DOWN': ORANGE,
'UP': O... | [
"919791421@qq.com"
] | 919791421@qq.com |
329a99329570b2450b29c2d91ff395d27b83825c | 38bb94dc21912c101182dd7752bcadc1dc766618 | /napari/components/experimental/chunk/_cache.py | bfb40945b41e7c8eff260c29e572013f55127c6e | [
"BSD-3-Clause"
] | permissive | NHPatterson/napari | 5f0543cc1e230794d06a21e6f711821cb1ef0eef | d8d2d301b71af79a6a7f8f4bafa1f55a18317dd8 | refs/heads/master | 2021-07-09T17:26:48.793408 | 2020-12-17T19:09:00 | 2020-12-17T19:09:00 | 221,556,549 | 0 | 0 | BSD-3-Clause | 2020-12-17T21:33:10 | 2019-11-13T21:39:12 | null | UTF-8 | Python | false | false | 3,921 | py | """ChunkCache stores loaded chunks.
"""
import logging
from typing import Dict, Optional
from ...._vendor.experimental.cachetools import LRUCache
from ....types import ArrayLike
from ._request import ChunkRequest
LOGGER = logging.getLogger("napari.loader.cache")
# ChunkCache size as a fraction of total RAM. Keep it ... | [
"noreply@github.com"
] | noreply@github.com |
2e07f293c9aa277b6c820a67730f26ad9e45ff68 | 19f6780d58e3273d284e8ed51009138ff3012f71 | /ImagesRename/ImagesRename/middlewares.py | 712e6f8da4b4924adb03c56f1174dadbc17734c0 | [] | no_license | jjli1/python-training-home | b7f50d5ff20644c5802a1ed964fef417879baa93 | 81ec7d441a7e27ed3a573a91ec6dc52adc73a0f4 | refs/heads/master | 2023-03-07T06:41:35.600446 | 2021-02-24T13:10:36 | 2021-02-24T13:10:36 | 340,313,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,050 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
import random
class ImagesrenameS... | [
"jjli1.tw@gmail.com"
] | jjli1.tw@gmail.com |
b8a736a22cb410537485ef80ae260fcc2f764f8c | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/python/profiler/tfprof_logger.py | 2c7113ed5af0951210c044217a30d85aaf6955aa | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a6c4e234622b91b3aca7f80f19569dcc2f356d4cce446bc9c17942a4daa80264
size 6919
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
23f21380d593441dfcefe1013a4961f0824d75fc | 2f6b32ee3c9715ed6023db1334d4aeb469648f46 | /validation.py | d9fedcf9b117b63e187c82ecad155502e3d7cd0d | [] | no_license | zhuang-hao-ming/gee-city-extraction | 7e442ca95e06b05d8a66f15b6e9456491a56d029 | 415a11084e686903cbc6929b2e1adad0b1a2dba6 | refs/heads/master | 2021-01-20T17:07:08.613631 | 2017-09-03T08:14:14 | 2017-09-03T08:14:14 | 95,734,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | # -*- encoding: utf-8 -*-
#
# 功能:验证get_urban.py输出的结果在给定的城市上的正确性
# 规定,如果get_urban结果在给定的城市上城市像元数量比欧空局的数据少50%这认为是异常
# 输出两个文件,area_file:所有城市记录, outliar_file: 异常城市记录
#
import arcpy
import arcpy.sa
arcpy.CheckOutExtension("Spatial")
arcpy.env.extent = 'Default'
def validate(buffer_file, data_dir, data_file_base, area_fi... | [
"csuhaoming@163.com"
] | csuhaoming@163.com |
35b15ab9bd1d359723840ece845816fca72000c5 | 4c79d9df9d90580baa298d1c13bf3c1ec8f8ea88 | /jira-metrics-extract/cli.py | f35b03808c302e0521507fd4b63c728f51889a01 | [] | no_license | vsadanala/jira-extract | 9e893ff530547b792851bf2eab1a25a034f492e0 | 22c2894c11f0a1e0a96432c5f241b937ad6019eb | refs/heads/master | 2023-03-19T02:20:50.946694 | 2021-03-02T08:12:26 | 2021-03-02T08:12:26 | 344,384,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,542 | py | from __future__ import print_function
import argparse
import getpass
import json
import datetime
import base64
import sys
import csv
import os
from future.utils import iteritems
import dateutil.parser
from dateparser import parse as relative_parser
import numpy as np
import pandas as pd
from jira import JIRA, JIRAEr... | [
"vamsi.sadanala-wipro.com@bastion.9a2f.internal"
] | vamsi.sadanala-wipro.com@bastion.9a2f.internal |
ce083fb407eb1c66a1d44ec3d15a89eca4837133 | 17e758a4c0648671300d86f38c426c042e725270 | /Oquantour_web/target/Oquantour_web/WEB-INF/classes/cache/StockInfoNone.py | 0cdecd132730bfc403e6281e1a606de112f66218 | [] | no_license | Island0214/Oquantour | 5fc38bab0f8e2639a68ddfe5e76b0ccfb04acd06 | 12db684bdb92c0a261081ae2ed2f80eba45e13f7 | refs/heads/master | 2021-01-23T09:47:20.436151 | 2017-09-11T10:50:03 | 2017-09-11T10:53:01 | 102,599,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import tushare as ts
import sys
df = ts.get_h_data(sys.argv[2], start='2005-01-01', end='2018-01-01', autype=None)
path=sys.argv[1]
df.to_csv(path,encoding="utf8") | [
"549378813@qq.com"
] | 549378813@qq.com |
7498349978a4793519a4f8f94c4580e91dbabaf8 | 6b6124bfc69fd621e9d2d8e1b786abe9899e53f1 | /CV_Problem/openCv.py | 2079cd55fa330c36b52d70dfd4996dc25a2abb13 | [] | no_license | arushagarwal/MIDAS_PROJECT | c8087791d04a0d01584be46dad9828ad308957a9 | dac4a39bb77ae0f1fc192defeab30a0302a075d4 | refs/heads/master | 2020-05-07T14:59:15.255933 | 2019-04-10T16:15:57 | 2019-04-10T16:15:57 | 180,617,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,318 | py | import pickle #To open .pkl file for unpickling
import numpy as np #To work around arrays
from keras.models import Sequential #Keras is dl api and sequential is used to create mode layer by layer
import tensorflow as tf #base for all processing machine learning
import csv #To export result as CSV
from keras.... | [
"noreply@github.com"
] | noreply@github.com |
5f2592c9076e6555e32ed9558c6b602aa7dfde6f | dca0bd2e04dda3801d395c2a6ab2f9d95be79551 | /Python/SmallProject/Strings.py | 2cdec5809358ac5554ee50b3888cf51d6a055909 | [] | no_license | A-khateeb/Full-Stack-Development-Path | ab8c86abea2f983fb8e0046a65b99772416c754c | 5a5eaa198367cc95a6b5638e9740f4ad564dec23 | refs/heads/master | 2021-06-01T23:52:04.965494 | 2020-05-01T22:59:20 | 2020-05-01T22:59:20 | 89,286,943 | 2 | 0 | null | 2017-12-22T22:21:52 | 2017-04-24T21:04:07 | Shell | UTF-8 | Python | false | false | 854 | py | p="hello\n world"
print(p)
c = '20\u20AC'
print(c)
t = """f
Hello World of Champion!!!!
Are you ready???
Yes Perfect!
"""
print(t)
print("""
Welcome to the GPA calculator
Please enter all your letter graders, one per line.
Enter Blank line to designate the end.
""")
points = {'A+': 4.0 ,'A': 4.0 ,'A-': 3.67,
... | [
"khateebafeef@gmail.com"
] | khateebafeef@gmail.com |
2b1c0a0a03778baa3a28ac7f53fc64f04548c78f | 68222d1750eb36bc719c58dabca3c80ab2af74a1 | /talos/scripts/report.py | 935cb0ca268ae2a9a219b591bbf73b8bb1a2ce23 | [] | no_license | heisenberg--/build-talos | 5ce1d38f8ae19a33ce10a4f91875eb9f26375470 | e9424a1af63dfc2e4189e4aa12a3edce95eb116a | refs/heads/master | 2021-01-21T01:35:08.645461 | 2015-02-10T18:37:53 | 2015-02-10T18:37:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | from datetime import datetime
import sys, os
import csv
import numpy
import collections
import argparse
from calendar import day_name
sys.path.insert(1, os.path.join(sys.path[0], '..'))
import compare
def get_branch(platform):
if platform == 'Android' or platform.startswith('OSX'):
return compare.branch_m... | [
"alicescarpa@gmail.com"
] | alicescarpa@gmail.com |
23b7f19913ce589b3b6e20ae319795c9db4d23c4 | d3b7a7a922eb9999f22c99c0cc3908d7289ca27e | /tests/analyzers/test_lib.py | 1b5a1a01358a49b03514fccd74a7ae62b18eb4ce | [
"Apache-2.0"
] | permissive | g3l0o/plaso | b668203c2c7cf8799a1c12824ee1bdc8befd3980 | ae29d853a6bcdd1530ce9320a3af7b3f122941ac | refs/heads/master | 2020-12-25T20:31:08.928709 | 2016-07-22T20:00:33 | 2016-07-22T20:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | # -*- coding: utf-8 -*-
"""Analyzer related functions and classes for testing."""
from dfvfs.lib import definitions
from dfvfs.path import factory as path_spec_factory
from dfvfs.resolver import resolver as path_spec_resolver
from plaso.containers import sessions
from plaso.engine import knowledge_base
from plaso.par... | [
"dmwhite@google.com"
] | dmwhite@google.com |
0062cfaf5a99601b7a18ef2b9039eb3c22379436 | ed36064525bad62959d9ab739edeea477bf29c1c | /2016-03-06-bkpctf/crypto_2_des_ofb/decrypt.py | b11a3a40b17336d9e76d0d4d2ed036d7c3bde934 | [] | no_license | p4-team/ctf | 2dae496622c8403d7539b21f0e9a286e9889195a | 8280caff137e42b26cb55f2c62411c7c512088de | refs/heads/master | 2023-08-12T03:21:31.021612 | 2023-04-26T23:57:29 | 2023-04-26T23:57:29 | 42,933,477 | 1,899 | 366 | null | 2022-06-07T21:51:40 | 2015-09-22T12:53:15 | Python | UTF-8 | Python | false | false | 660 | py | from Crypto.Cipher import DES
ct=open("ciphertext","rb").read()
pt=[]
for i in range(16):
counts=[0]*256
for c in ct[i::16]:
counts[ord(c)]+=1
mx=0
best=0
for k, val in enumerate(counts):
if val>mx:
mx=val
best=k
if i==6:
best=0x53
if i==13:
... | [
"akrasuski1@wp.pl"
] | akrasuski1@wp.pl |
5f9d814e165bbff7341f8adaed112bfee113391c | de4da7c45581f72adaf8e328a89cb3d57fe3613f | /fundamentos/iteraveis/mediana.py | b2b5ee777270724f4ba0c08725826002c1e9e3b3 | [] | no_license | ramalho/propython | 2469be7492554762d05f9b0ce5c0dc3a51bd3a18 | 76c2b52755e08d49929cdc2a523db72735240e72 | refs/heads/master | 2022-06-01T22:51:07.659074 | 2022-05-22T18:22:21 | 2022-05-22T18:22:21 | 140,458 | 39 | 13 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
# coding: utf-8
def mediana(lista):
'''
mediana: valor do item central da lista ordenada, ou
média dos dois itens centrais
>>> mediana([1,2,3,4,5])
3
>>> mediana([1,2,3,4])
2.5
>>> mediana([3,2,1,4])
2.5
'''
centro... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
b69617242432947ad6c22d33267cf33e6ed5ad0f | 674a48ab817fb841417d72de7197a84b2d2b71b7 | /CLOVER/nature2017/tm_blob_chris.py | b2b7862be222928b21cf0ef4c42bf48dfcc00071 | [] | no_license | cornkle/proj_CEH | 0d1556bbb5992e663257841ada333f32e6da3e22 | 790ad1aa7e7a8c6593a21ee53b2c946b2f7a356b | refs/heads/master | 2023-09-01T01:26:58.669089 | 2023-08-23T14:22:47 | 2023-08-23T14:22:47 | 55,054,763 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,514 | py | import numpy as np
import pickle as pkl
import datetime as dt
from eod import trmm, msg, tm_utils
import ipdb
from collections import defaultdict
import matplotlib.pyplot as plt
from utils import u_arrays as ua
import cartopy.crs as ccrs
YRANGE=range(2004,2014)
#AREA=[-16,4,16,20]
AREA=None
def tm_overlap_blobs()... | [
"cornelia.klein@gmx.de"
] | cornelia.klein@gmx.de |
421da4356fe1c641216ff34810950572251f4ada | bf279c2ec0d6e7f326c860c618f3a379da391eb0 | /Python/HomeWork/04.04.2017.py | 7f93199941886d812be784c8fdd405703a3a78f8 | [] | no_license | alisatsar/itstep | 356b38598c8adddb2b93777d197511cbc4b8ed2a | acb2761e167c2ec84338a0429749bb8e33d301cf | refs/heads/master | 2021-01-25T05:56:17.222305 | 2018-07-25T18:04:30 | 2018-07-25T18:04:30 | 80,703,725 | 2 | 2 | null | 2017-04-06T08:47:39 | 2017-02-02T07:42:42 | Python | UTF-8 | Python | false | false | 1,723 | py | """Напишите программу, запрашивающую у пользователя ввод числа. Если число принадлежит диапазону от -100 до 100,
то создается объект одного класса, во всех остальных случаях создается объект другого класса.
В обоих классах должен быть метод-конструктор __init__, который в первом классе возводит число в квадрат,
а во-вт... | [
"noreply@github.com"
] | noreply@github.com |
257c8f617fe749b91c4bce3c654b14f626baf3e6 | 77785fe7abd2d716736a42dcb8e977d5bd0f6c56 | /py/command-line.py | 2c0ec6209aa66ce650550cc9a8804531238a377f | [
"MIT"
] | permissive | jzhou/ai | cf6440a6277845e930e5d678130eda2526c2b609 | a5efbfb5e93e404129c974491705c24e9bc49c9d | refs/heads/master | 2020-03-29T15:28:39.597538 | 2018-10-30T07:23:45 | 2018-10-30T07:23:45 | 150,065,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | import argparse
##ref: https://stackoverflow.com/questions/7427101/simple-argparse-example-wanted-1-argument-3-results
# NOTE: Pycharm spaces in arg: use "double quotes"
# for a in sys.argv:
# print(a)
# First attempt that doesn't work. Probably python 2.
# def main1(args):
# usage = 'command-line.py -r <req... | [
"jpzhou05@yahoo.com"
] | jpzhou05@yahoo.com |
c7c18675c8935b2c9cbec7afe69143aeab010c44 | bc464d2f33ee41e4b2595b01dd3f29e5347edaaf | /VLBGold/01development/fehlendeVLBSchlagworte.py | e943e13e465dbb2844d14c0551e794c8184c5b6a | [] | no_license | peterhsprenger/VuRProjects | b6256260ea36193bbb631398fbbae3572e1a822d | b082b1592b2bc1094a53086a1698a630f23e5e39 | refs/heads/master | 2021-01-10T05:31:52.989976 | 2015-11-05T01:58:04 | 2015-11-05T01:58:04 | 44,212,869 | 0 | 0 | null | null | null | null | IBM852 | Python | false | false | 2,227 | py | # -*- coding: iso-8859-1, utf-8 -*-
# Created on 14.10.2015 by @author: PeterH
isbn_kw_dict = {}
inputfile = "C://Users//PeterH//eclipsemars//VLBGold//documents//X01inputdocs//VLBReport_VuR_ohneSchlagworte_LIST.txt"
sourcefile = "C://Users//PeterH//eclipsemars//VLBGold//documents//X01inputdocs//DNBComplete_DIC... | [
"peter.h.sprenger@gmail.com"
] | peter.h.sprenger@gmail.com |
7fc4ba920a5745dd12c78d172be1368a17c2bc22 | f777d6cc5c713cb983119687fd6a6403355adfb4 | /YouPBX/xadmin/plugins/topnav.py | cca473bdd92c92dbaa2d63947faaf15d6b36f361 | [] | no_license | maozhiqiang/callcenter | 71304bb451482ec61ceafbcfc017472ac2de4dac | 65678718b9beadf61aa6786b43d7192f63b2cfee | refs/heads/master | 2021-09-05T15:14:05.250642 | 2018-01-12T07:33:37 | 2018-01-12T07:33:37 | 119,644,546 | 1 | 1 | null | 2018-01-31T06:24:55 | 2018-01-31T06:24:55 | null | UTF-8 | Python | false | false | 2,574 | py |
from django.template import loader
from django.utils.text import capfirst
from django.core.urlresolvers import reverse, NoReverseMatch
from django.utils.translation import ugettext as _
from xadmin.sites import site
from xadmin.defs import SEARCH_VAR
from xadmin.views import BasePlugin, SiteView
class TopNavPlugin(... | [
"wuhaichao@aicyber.com"
] | wuhaichao@aicyber.com |
b76ace0fdb73f5dd8108600d29b2065e9b696af4 | 7b76dfd66ee462b3edae4d9485e2d50585e8a8ac | /bin/conda/clang/link_flags.py | fc8b9b9ada03f537a3495a301fb691f0cadc684d | [
"Apache-2.0"
] | permissive | asmeurer/ClangLite | 5f4ce8855efb3dd8da42adc0bacba2695fe44cb2 | b6220069f4c73645197a2042555b20097842babd | refs/heads/master | 2021-01-24T03:13:02.544366 | 2018-01-30T14:10:30 | 2018-01-30T14:10:30 | 122,881,656 | 0 | 0 | null | 2018-02-25T22:02:28 | 2018-02-25T22:02:28 | null | UTF-8 | Python | false | false | 526 | py | import os
with open('config.txt', 'r') as filehandler:
output = filehandler.readlines()
LIBRARY_PATH = list()
read = False
for line in output:
if line.startswith('LIBRARY_PATH='):
line = line.lstrip('LIBRARY_PATH=').strip()
LIBRARY_PATH.extend(line.split(':'))
LIBRARY_PATH = {os.path.realpath(l... | [
"pfernique@gmail.com"
] | pfernique@gmail.com |
ce16630bdb0039480227268a6aa0c47a324b42c7 | 09a5fe5d6b3e7f95e9ce4a3d6e0b2adf3713ee52 | /cdn/cdn_stopCdn.py | 1aa82678197c1fa28e101335fe7e6617e0e806eb | [] | no_license | fromcloud/python_api_sample | 80b6a203e3bf3270dddd28061e866ffd2244ea9f | 4023ad5bdc2d25005214d5452b8d687b5bee3b93 | refs/heads/master | 2021-01-17T14:43:15.765868 | 2016-10-19T05:31:47 | 2016-10-19T05:31:47 | 47,964,904 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #!/usr/bin/python
import sys
sys.path.insert(0, "../config/")
sys.path.insert(0, "../ucloudbiz/")
import ucloudbiz
import urllib2
import urllib
import hashlib
import hmac
import base64
#import os
import urlparse
import linecache
import url_config
import user_config
baseurl = url_config.cdn_url
apikey = user_config.ap... | [
"root@hsw-linux001.cs32f7cloud.internal"
] | root@hsw-linux001.cs32f7cloud.internal |
d2d4f62d1e13aa437271eec2842b7f1a8e2461e3 | 1afe49189095202be1f93dcbc0d4e70a9c963477 | /ex024.py | 2a797eec8a1554754d3c9b31a167458e06888e6e | [] | no_license | fabiana-pires-fernandez/python_exercicios | b1b359dcd9b9604fe85f96bbe6705dea68f6634b | 0f5f43eea5c736dd04360f66589f2bda8dd5b2b8 | refs/heads/main | 2023-03-28T14:41:54.425364 | 2021-03-31T21:27:46 | 2021-03-31T21:27:46 | 340,441,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | city = str(input('Digite a cidade que nasceu: ')).strip()
print(city[:5].upper() == 'SANTO') | [
"fabi.nandez@hotmail.com"
] | fabi.nandez@hotmail.com |
3cb68dbc0dc8754fe27c55885268ec80df03456a | ba2a99140a63c317183a7830e2de27afa176deb8 | /blog/migrations/0001_initial.py | b91c5e3bb031b32ea1b71d1de6d02fd81924a17b | [] | no_license | bwieczorek86/my-first-blog | 8f6b61fa169678235b4e0e7ef28214d71c9072b9 | ab8c8ef7d041910178b6798616db86828b34fc82 | refs/heads/master | 2020-04-14T22:12:39.773406 | 2019-02-21T20:21:03 | 2019-02-21T20:21:03 | 164,154,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.0.10 on 2019-01-04 20:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"bwieczorek86@gmail.com"
] | bwieczorek86@gmail.com |
b3215ee1f2ce82df254ea7f29be62181624a3b00 | 1bca4fc0734aa41bb1c6da461ec3b84ff3dd99bc | /test/functional/feature_logging.py | 2b2166ba56ba7a058700cb28020188083005abdf | [
"MIT"
] | permissive | wolfoxonly/qqc | 12f892c9030c5232d403b609decf5b297cd8ceaf | 807e67ba65b555ab38a655ae4823fa9af2ae3bc4 | refs/heads/master | 2020-03-10T20:46:31.603204 | 2018-04-15T14:33:17 | 2018-04-15T14:33:17 | 129,576,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The QQcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test debug logging."""
import os
from test_framework.test_framework import QQcoinTestFramework
class Loggi... | [
"OFIChain@163.com"
] | OFIChain@163.com |
b5288b3d7ae6d135746fcdc7073b43f639a2df12 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2799/60632/282233.py | eeb1cc91f7d91a25920924cfabbd0123c28bc4dc | [] | 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,171 | py | # def is_pow_2(x) -> bool:
# if x % 1 != 0:
# return False
# for i in range(10):
# if x == int(pow(2, i)):
# return True
# return False
#
#
# def is_pow_3(x) -> bool:
# if x % 1 != 0:
# return False
# for i in range(10):
# if x == int(pow(3, i)):
# ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
24c9df48750de6f324a6f91370ada1b6bfff3d39 | 20a4d29aa6d23828afbf4442fc10446376049f3d | /galleryapp/settings.py | c1d5956a621e7078114f7869e2f04a99f7755813 | [
"MIT"
] | permissive | davidngatia/Gallario | 209af39a72d0e6a25f3f3b0989bde8ef3a3c8030 | 583628f17a208d31c1347ede7ff53b06403bc86b | refs/heads/master | 2020-04-10T16:36:42.077687 | 2018-12-17T07:15:59 | 2018-12-17T07:15:59 | 161,150,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,115 | py | """
Django settings for gallery project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
i... | [
"machngatia@gmail.com"
] | machngatia@gmail.com |
580f120f560e338851e5ccbadf1b65088f2e61a2 | d3c3927fa7a94278b000de67f8bfc6966d9ace3f | /그리디/잃어버린 괄호/1541.py | 7e6f42794b99bff7f171b8eb5a2fa7242723e540 | [] | no_license | Likelion-Algorithm/AlgoStudy | b7bc34ecbdf36da4a79019fe782510bc6449f701 | db8ec6331436e829b4c4938f1deaa16fa25b3f57 | refs/heads/master | 2023-03-04T14:05:28.821233 | 2021-02-17T08:47:48 | 2021-02-17T08:47:48 | 258,661,691 | 0 | 0 | null | 2020-05-21T11:51:01 | 2020-04-25T01:27:17 | Python | UTF-8 | Python | false | false | 304 | py | minus = input().split('-')
result = []
for i in range(len(minus)):
if i == 0:
result.append(sum(map(int, (minus[i]).split('+'))))
else:
plus = map(int, (minus[i]).split('+'))
plus_with_minus = -(sum(plus))
result.append(plus_with_minus)
print(sum(result))
| [
"17273@naver.com"
] | 17273@naver.com |
a3d930e181089a7ce604c57a4add1ee944fc13bd | dd6694e0671962d7ea97efb81fd6597b0b4497e0 | /django_app/member/tests/view/tests.py | 93e08da616ad25e3c8c9da0e87309049b335f904 | [] | no_license | yoonkh/instagram | 981134c8219232f979e1113b0b1195407722bf1c | 57c38ad5c41fa622af88e122d742a0f19c090d10 | refs/heads/master | 2022-12-10T04:57:56.477201 | 2017-07-14T08:27:56 | 2017-07-14T08:27:56 | 93,720,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from django.test import TestCase
from django.urls import reverse, resolve
from ... import views
class LoginViewTest(TestCase):
VIEW_URL = '/member/login'
VIEW_URL_NAME = 'member:login'
def test_url_equal_reverse_url_name(self):
self.assertEqual(self.VIEW_URL, reverse(self.VIEW_URL_NAME))
def... | [
"zizou0812@gmail.com"
] | zizou0812@gmail.com |
c97ddbf638fac311747d7c8c8b47a18159922391 | 47bb350f8392daff52ca8fbd3921b15fe627debd | /compile_tractmeasures.py | 02ea30a7231d06f174862a8955dc9565b39b2d67 | [] | no_license | benedetta-mariani/BrainHack-Padova-2020 | 157f875b99a949ba13cfdfd05389816b328a6cde | 6eead166dff70f3fa6ddb9d8b0a2bf40c117996a | refs/heads/main | 2023-02-06T13:08:56.760043 | 2020-12-29T18:17:28 | 2020-12-29T18:17:28 | 321,049,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | #!/usr/bin/env python3
import json
import subprocess
import pandas as pd
import numpy as np
import os, sys, argparse
"""
This python script is designed to open tsv files downloaded from the platform Brainlife and to aggregate them in a unique tsv file.
It is specifically designed to aggregate files relative to just... | [
"benedetta.mariani@edu.unito.it"
] | benedetta.mariani@edu.unito.it |
de23afb24ca253f8d28cb75f21bfd441877cb203 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-oroas/huaweicloudsdkoroas/v1/model/list_task_response.py | 65795932472c67e2bcd889f5964105f0d963fbd1 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,944 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListTaskResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
554d40d90484290f36d0abf7985bdc61cfba1da1 | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /Python OOP 2020/Excersises/excersise3/document_management/project/storage.py | 65a61d8b7ca5ec69ca44292ec291178ae92af399 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | class Storage:
def __init__(self):
self.categories = []
self.topics = []
self.documents = []
def add_category(self, category):
if category not in self.categories:
self.categories.append(category)
def add_topic(self, topic):
if topic not in self.topics:
... | [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
4e6c7d3a310d48576360e93c173ead0429fd8f1c | ac6d151f6ed036fb66089996edfcd2f56629d3f4 | /config.py | d1954abf73086b6b427b6b42f0e28517439e82f8 | [] | no_license | EatPotTeam/AppServer | 3b83421ed36d0d3c6c1fbf2a22bcf661f3cafbf2 | 82bc29897096173afa244f5015f81dcc089d614e | refs/heads/master | 2021-01-21T17:22:23.975417 | 2017-06-09T04:17:47 | 2017-06-09T04:17:47 | 91,946,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_SERVER = os.environ.get('MAIL_SERVER') or 'smtp.qq.com'
MAIL_PORT = 587
... | [
"leo.lizijie@gmail.com"
] | leo.lizijie@gmail.com |
14fa01dd22f525650e1279c4539a843ee5c945bb | bcbd2e178b7a21895681b6d659dbe2a9235a6be4 | /app/responders/regex_text_analyser/regex_text_analyser.py | 041abfb9cfb617f76427120e38840b038a8ac674 | [] | no_license | zhongxinbank/Demo | a12907ef25a5464154660818291e6e4c996db520 | 497331b30fbc39763f37d161d265d6c35aa60634 | refs/heads/master | 2020-03-25T01:56:19.938821 | 2018-08-02T08:32:48 | 2018-08-02T08:32:48 | 143,265,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,888 | py | # Created by Helic on 2018/7/31
import uuid
from .utils import *
class RegexTextAnalyser:
def __init__(self, analyser_id, keywords, target, logic, analyser_type):
""""""
self.analyser_id = analyser_id
self.keywords = keywords # list
self.target = target
self.logic = logic
... | [
"helicbupt@gmail.com"
] | helicbupt@gmail.com |
c6607418b9b812f98bc50f2daa64484f88cb91b8 | bb9b3e23cdebdcd1416d636a153babf7b8ad4c75 | /Dictionaries.py | 411aa2a618cb431feecece480e267ad8aa995ec5 | [] | no_license | raselmeya94/Intermediate_Python | a32c778598bb19a9d2176c5e0812578b15538775 | 620dba4e133501e78aa5cb4ac2eca76531046c0e | refs/heads/main | 2023-04-28T04:38:37.953816 | 2021-04-29T14:19:34 | 2021-04-29T14:19:34 | 357,134,434 | 0 | 1 | null | 2023-08-18T19:13:56 | 2021-04-12T09:30:44 | Jupyter Notebook | UTF-8 | Python | false | false | 963 | py | '''Dictionaries: kye-value pairs, unordered '''
my_Dic = {"kye": "val", "age": 20, "name": "cod_error"}
# another define method
My_dic = dict(kye="val", age=20, name="coed_error")
# print my_Dic
print(my_Dic)
# print individual kyes value
print(my_Dic["name"])
print(my_Dic["age"])
# insert another new item;
my_Dic["cou... | [
""
] | |
20debfb8243d1ff9f9ff504f149d58a55e116432 | e5aae0d2ee410e3d5fd17dcb45b8512bd922ef8c | /AI projects and Algorithms/Small AI Projects/8-queen-problem.py | 675fbafaf51b1e488fc9cead03604c3777dffe75 | [] | no_license | Abdullah12has/projects | ef353ce2c087c800b9ae124478650d25af5f5e90 | 5a71cb40a030e2bd03ebe094ac70bafbf447bcb8 | refs/heads/main | 2023-03-30T04:12:36.332617 | 2020-12-15T22:00:35 | 2020-12-15T22:00:35 | 321,737,191 | 0 | 0 | null | 2021-03-25T20:13:58 | 2020-12-15T17:16:07 | Java | UTF-8 | Python | false | false | 3,997 | py | import queue as queue
import random as random
import copy
N = 8
queen_positions = '31046715'
board = [[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
... | [
"abdullah.hassan@ug.bilkent.edu.tr"
] | abdullah.hassan@ug.bilkent.edu.tr |
1c4d230d660cce5424727b109df3798e87ca1614 | 6a78933bab79ddb45092010246c34810c2c9acfc | /trunk/modules/python/dataset/debugger.py | 105923e63e5f12b2944bee21d394e25c8972b9de | [
"MIT"
] | permissive | yamadaNano/playbox | 5ac98ca90c0beb35e9845ba323c97fe7a734d858 | 31ba5a11301e2dd345fd3b64e559ca9901890b3a | refs/heads/master | 2020-12-24T10:55:16.504019 | 2016-11-04T18:14:51 | 2016-11-04T18:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,407 | py | import numpy as np
import PIL.Image as Image
from dataset.reader import normalize as norm
def saveNormalizedImage(image, path) :
'''Save the image to a file. This performs a naive normalization of the
array and outputs a grey scale image. The input is assumed to be float
data.
image: 2D tens... | [
"micah.bojrab@mdaus.com"
] | micah.bojrab@mdaus.com |
d922c519e875ec8191bf4ccabdd3c013be820295 | 260f42c63d8cce748e7751f2942ae3a537561e5b | /Day 07 - Arrays/Day-7.py | afbe7d84ac8b123a3e9cb4e49025d1b9b28f2846 | [] | no_license | Irfan-Chowdhury/HackerRank-30-Days-of-Code-by-Python | 1c3b2e68f90eb1d6babe1ee548b06c7637188395 | b43ee2b06709c5e02b19b2517f650df7ccdd2efd | refs/heads/master | 2022-06-19T19:44:52.942482 | 2020-05-04T04:41:55 | 2020-05-04T04:41:55 | 258,628,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | n = int(input())
arr = list(map(int, input().rstrip().split()))
arr.reverse()
reverse_arr = ' '.join([str(v) for v in arr])
print(reverse_arr)
| [
"irfanchowdhury80@gmail.com"
] | irfanchowdhury80@gmail.com |
1328757e47cec1d3a1cc8015acc66db02357ac5a | 71716a88a772d66dbc052c1d6046a5d6a6cb3fa4 | /python/problem104.py | 140df8f1c0670d4c6172dfd4975a4dc9d491b138 | [] | no_license | sanyassh/project_euler | 12d76349663cdd8224450d6799e55120e68efbd0 | 60868f7c21d9a42c702afe251a93892bde3ee6cf | refs/heads/master | 2022-08-24T06:33:49.925773 | 2022-07-31T18:05:03 | 2022-07-31T18:05:03 | 211,150,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | ANSWER = 329468
DIGITS = {str(n) for n in range(1, 10)}
Q5 = 5 ** 0.5
A5 = (1 + Q5) / 2
B5 = (1 - Q5) / 2
TEN = 10 ** 14
TAB = [0, 1, 1]
def fib(n): # первые 15 цифр
a = TAB[1]
b = TAB[2]
for _ in range(n - TAB[0]):
a *= A5
b *= B5
if a > TEN:
a /= 10
if b > ... | [
"sanyassh@yandex.ru"
] | sanyassh@yandex.ru |
2da81dd3ef6eb482d842fdd5062bc7e078edd6a6 | 74472df1c262b7933b0d740df7565950acb16a06 | /renjian_neighbour/manage.py | e8352e5ddcb2f2ee62a383bd5b0ccd7af2e1f440 | [] | no_license | Arthraim/renjian-neighbour | 895e4ead1565fc75ec4840d050433f6009832cba | f63bef063fe70e68375c7871ca6a069ca4e82e96 | refs/heads/master | 2016-09-10T18:42:55.309933 | 2010-02-03T08:48:21 | 2010-02-03T08:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | #!/usr/bin/python
# coding=UTF8
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'l... | [
"arthraim@gmail.com"
] | arthraim@gmail.com |
01126cedb026a5884412b02d62b108c94bdae6f1 | 525fe8d3869ae9a34c294286120d098be6655253 | /timetable/migrations/0004_auto_20150410_1941.py | 2d5086aef916924977bb3fa603467293349b99b1 | [] | no_license | AlexGnatuyk/Datium | ce7aa8e9e5ef5b159f6fd42c1fb7cb1567339aa9 | 3ecced6d8d7fc8c2a08a9c6ee1ebc45f13214bbe | refs/heads/master | 2020-07-15T10:33:35.232663 | 2016-03-25T09:39:55 | 2016-03-25T09:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('timetable', '0003_auto_20150409_2105'),
]
operations = [
migrations.AlterField(
model_name='lesson',
... | [
"kirov.verst@gmail.com"
] | kirov.verst@gmail.com |
49e1af1b05b53db53a3db3d9db8e5646ec7493d4 | 6fdddf7ba514cb3191786a61a06c9f12d6182890 | /spyder.py | 6310df5561aa21229735e54be0e4efa029dfe339 | [] | no_license | ash018/Scrap | 64615c9127fa6ecc2e633e6e276e34badf8725ab | 6f45ca9fdc1700686d88cf2aa1403fb9c0b6b05a | refs/heads/master | 2020-03-31T06:28:56.519456 | 2020-01-23T11:07:24 | 2020-01-23T11:07:24 | 151,984,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 8 12:49:01 2018
@author: smakash
"""
import json
import scrapy
import urllib.request
class SpidyQuotesSpider(scrapy.Spider):
name = 'spidyquotes'
quotes_base_url = 'http://spidyquotes.herokuapp.com/api/quotes?page=%s'
start_urls = [quotes_base_url % 1]
... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
414e4df615dbeaa0b434f5bdc18f28ae61d65ded | 9e655800f6109781819fe3796dd9790577f9f4fc | /tensorflow_serving/example/flask_client.py | 01364ea53956433451fc817c08c33005c84c4ce1 | [
"Apache-2.0"
] | permissive | BinRoot/serving | 3ac8534693cffe9abda00fca14700836fdbb2f15 | 6062afbd683adaca2954e9b654ecea72c5708801 | refs/heads/master | 2021-01-25T09:09:35.437120 | 2017-03-10T22:00:43 | 2017-03-10T22:00:43 | 93,789,483 | 1 | 1 | null | 2017-06-08T20:33:24 | 2017-06-08T20:33:24 | null | UTF-8 | Python | false | false | 1,250 | py | import cPickle as pickle
import urllib
import flask
import numpy as np
from waitress import serve
from grpc.beta import implementations
import tensorflow as tf
from tensorflow_serving.apis import predict_pb2
from tensorflow_serving.apis import prediction_service_pb2
from google.protobuf.json_format import MessageT... | [
"optimbid@gmail.com"
] | optimbid@gmail.com |
77862f56126d76e246326ad2e13e430ac13a5ffd | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /B/BinaryTreeUpsideDown.py | 976eedb46eff7b64ab2c65157421fa85a8a5fe7b | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | '''
-Medium-
Given a binary tree where all the right nodes are either leaf nodes with a
sibling (a left node that shares the same parent node) or empty, flip it
upside down and turn it into a tree where the original right nodes turned
into left leaf nodes. Return the new root.
样例
Example1
Input: {1,2,3,4,5}
Output... | [
"bssrdf@gmail.com"
] | bssrdf@gmail.com |
5b8d11872cba3b48854ff7d2dad55a4510560ccf | 03156ae7f2cb893b06ebc05e63b7e9d667d2c2a4 | /project1/api/models.py | 84ac06af8bff9c7a4cc8aca041679662e9b01b76 | [] | no_license | rayanserrao/Django-Rest-Framework | 25912c5d63b8815b8514488e9fb61aaa3e7f8293 | dccac31ab9a9a61aea9166895df83639beef22b4 | refs/heads/master | 2023-03-21T14:27:56.302002 | 2021-03-12T19:50:24 | 2021-03-12T19:50:24 | 339,848,369 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.db import models
# Create your models here.
class Student(models.Model):
name = models.CharField(max_length=40)
roll = models.IntegerField()
city = models.CharField(max_length=40) | [
"rayanserrao25@gmail.com"
] | rayanserrao25@gmail.com |
7db0b83ed4eb2602a443cd04d19e9d21d51ba780 | a73af4fea99e55ee949719211a061d76dc7da21f | /pi0/utils/pi0_pi_selection.py | 17499071c16e6d400e2c77a0aad0ebfbbdd58aaa | [] | no_license | quantummind/pi0_reco | 8c2ad8f1777ac713bcd1bb734ad725cb552d745b | 2bf96d4f2b56fc433e3bcae0d944f11966eb51d6 | refs/heads/master | 2020-06-08T01:17:07.312383 | 2019-08-23T17:48:46 | 2019-08-23T17:48:46 | 193,132,128 | 0 | 0 | null | 2019-06-21T16:49:09 | 2019-06-21T16:49:08 | null | UTF-8 | Python | false | false | 2,086 | py | '''
This module contains methods for making a pi+ track selection and (pi0 production vertex)
'''
import numpy as np
from pi0.utils import gamma2_selection
from pi0.utils import gamma_direction
def calculate_vertex_loc(gamma0_vec, gamma1_vec):
'''
Use the backwards point of closest approach to determine a po... | [
"pmadigan@hep-gpu01.slac.stanford.edu"
] | pmadigan@hep-gpu01.slac.stanford.edu |
569aaf1f0a99cd584db1738d7f14476aebea544b | 73b6b1776eb5d6e4bbf9e5fd5cd9bdc3cb294bcb | /src/fft_from_image/ChainGeneration.py | dd4e5efc87efc3339114182d2a6ce19221086afd | [
"MIT"
] | permissive | szymag/ZFN | b09b8d9f5505049cc38285ee34d67fad7cc1a5bb | d617057ee202e5ac026eb31b8a9598c95b385ba0 | refs/heads/master | 2021-05-16T18:16:04.141758 | 2019-10-27T15:48:09 | 2019-10-27T15:48:09 | 30,870,043 | 2 | 2 | MIT | 2019-10-27T15:48:43 | 2015-02-16T13:46:16 | Scilab | UTF-8 | Python | false | false | 124 | py |
class ChainGeneration:
def __init__(self, repeat):
self.repeat = repeat
def sequence(self):
pass
| [
"szymon.miszczak@gmail.com"
] | szymon.miszczak@gmail.com |
dda7a2bb7a4d82a9a4a3e43b0fb372299a0e5e34 | 4f2fc277ed912f26623c0c2f8c68b3b472199e90 | /f1_2020_db/types.py | e87e321fc9b4d5fd245b56eb72e0fac8a392a0a4 | [
"MIT"
] | permissive | alastairgarner/f1-2020-db | 4b560c71dda18062ffa79432e394724840cb96c5 | dd8d33622fc5dd7d38d51544b2e06823d7317080 | refs/heads/main | 2023-01-30T15:12:13.325070 | 2020-12-15T19:08:51 | 2020-12-15T19:08:51 | 302,452,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | #! /usr/bin/env python3
from enum import IntEnum, auto, unique
@unique
class TableID(IntEnum):
"""Lookup table for database table IDs """
PACKETS = 00
SESSION = 10
WEATHER = 11
MARSHALS = 12
LAPDATA = 20
LAPTIMES = 21
PARTICIPANTS = 40
TELEMETRY = 60
SessionType = {
0: 'u... | [
"alastairgarner@outlook.com"
] | alastairgarner@outlook.com |
0a6837af0ce94b4d91671277eb5e6000afbf1baf | df31df42db0dee4f41052a88f513cfe4b3715cf9 | /groundtruth_NewT_forIP.py | 2e29cebe2d20a1b3f6b770b6870320abe6aa95ea | [] | no_license | lvj5077/compare_code | b55e11eec1f3ffb09525fdd4d215d52cc84be934 | dd4ff005deb3c2097d4bea7a5242e2b97491b65e | refs/heads/master | 2023-03-22T06:11:24.593671 | 2020-12-17T00:39:34 | 2020-12-17T00:39:34 | 322,138,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,378 | py | import csv
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from scipy.spatial.transform import Rotation as R
import math
import sys
import argparse
import time
def d2r(d):
return d*math.pi/180.
def r2d(r):
return r*180./math.pi
def rotationMatri... | [
"jin@Lingqius-MacBook-Air.local"
] | jin@Lingqius-MacBook-Air.local |
d24731c2803103104615bb4f46fb974775a2d7ba | d2cdc0f63a20efa4463840a6ef65df0863777667 | /test_loadpoi.py | 1ad942269e81ab5eb120170f5fb832e480d0854a | [
"MIT"
] | permissive | gaoyaocheng/proj5-LeafletJS- | 980e39c064189793aea7efc3679f58beeb0c2cd5 | 26a6da966ff9133c5ef727e7684fd7c6f65b8db1 | refs/heads/master | 2021-01-13T08:46:45.923938 | 2016-10-27T04:53:43 | 2016-10-27T04:53:43 | 71,964,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from load_poi import Poi
def test_load():
file = 'data/poi.txt'
assert Poi(file)
assert isinstance(Poi(file).as_list(), list)
| [
"309559851@qq.com"
] | 309559851@qq.com |
5b3caafcc9c1351e9b98f454767c5a65c3531167 | 3be42b83a15d022f5863c96ec26e21bac0f7c27e | /tensorflow_probability/python/stats/moving_stats.py | 5c4e9da9174eb6bd64c78376c1c2fdf995e7ed54 | [
"Apache-2.0"
] | permissive | ogrisel/probability | 846f5c13cddee5cf167b215e651b7479003f15d2 | 8f67456798615f9bf60ced2ce6db5d3dba3515fe | refs/heads/master | 2022-11-09T10:53:23.000918 | 2020-07-01T23:16:03 | 2020-07-01T23:17:25 | 276,580,359 | 2 | 1 | Apache-2.0 | 2020-07-02T07:37:58 | 2020-07-02T07:37:57 | null | UTF-8 | Python | false | false | 17,525 | py | # Copyright 2018 The TensorFlow Probability 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.