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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
561c07f563101185de123baff76553af01f9f150 | d1e2f5993573a16ed6cf359215e596814db33ad7 | /flaskm/db_respository/versions/003_migration.py | c26e106263a75f6e4f7112810b5f90ddb811e57f | [] | no_license | Andor-Z/My-Learning-Note | a6b62fd10119cede9ba4c6c79b2dcb5c346d11e0 | 202401f1be1f9f7c32049623315c0c54720498f7 | refs/heads/master | 2022-10-22T13:55:44.821097 | 2016-07-10T09:21:02 | 2016-07-10T09:21:02 | 42,592,078 | 1 | 1 | null | 2022-10-20T21:49:08 | 2015-09-16T14:24:01 | Python | UTF-8 | Python | false | false | 1,610 | py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
alembic_version = Table('alembic_version', pre_meta,
Column('version_num', VARCHAR(length=32), nullable=False),
)
users = Table('users', post_meta,
Column('id', Integer, primary_ke... | [
"zyfsta@outlook.com"
] | zyfsta@outlook.com |
61ca45d83eb6073d7855e1253f88d235326f2005 | db7601406ea38e0b361d9a1c54ba640ae9b132eb | /quicksort.py | 0463437079b854f611c9d76d6e9146e84805bc56 | [] | no_license | FalseF/Algorithms-and-Problem-Solving-with-Python | c06c049d7499df76795eac8b82d8f5aebe126109 | d53ee80da5ff865eef05bbe280bdc68dae4f275d | refs/heads/master | 2023-07-17T06:24:47.918286 | 2021-09-06T16:32:30 | 2021-09-06T16:32:30 | 403,690,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | cnt=0
def partition(A,low,high):
global cnt
pivot=A[high]
i=low-1
for j in range(low,high):
if(pivot>=A[j]):
i+=1
A[i],A[j]=A[j],A[i]
cnt+=1
A[i+1],A[high]=A[high],A[i+1]
cnt+=1
return i+1
def quick_sort(A,low,high):
if(low<high... | [
"noreply@github.com"
] | noreply@github.com |
d4fd9849fa05350b943d25108223405f5d1ff1e1 | 24946a607d5f6425f07d6def4968659c627e5324 | /Python/any-or-all.py | 4fbe2d7a06841045541ba086ab6a9fd5e9056ae0 | [] | no_license | mmrubayet/HackerRank_solutions | 5d8acbb8fd6f305a006f147e6cb76dbfc71bbca5 | f1c72fbf730b6a79656d578f6c40a128a6f0ac5c | refs/heads/master | 2023-06-02T16:51:18.017902 | 2021-06-19T18:35:41 | 2021-06-19T18:35:41 | 233,853,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | n, ar = int(input()), input().split()
print(all([int(i)>0 for i in ar]) and any([j == j[::-1] for j in ar]))
| [
"m.rubayet94@gmail.com"
] | m.rubayet94@gmail.com |
b369d7adcb7c77b520a6603260a100ec030d48d3 | 57e778bf76e8857aeae96a997c9aa36d0744078b | /dfs/dfs_order.py | 47237ae0ad98285b6bdaefa8da0906b8627a1eed | [] | no_license | hieuza/algorithms | 1f9da2a2f8bdc054fa2b9028da2ac3ad90eed29b | beac146b44551bda1a227aff0f2dda4dd1e555bb | refs/heads/master | 2021-01-18T16:32:19.823463 | 2013-08-05T03:43:04 | 2013-08-05T03:43:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | #!/usr/bin/env python
# hieuza@gmail.com
# 03.Dec.2012
# updated: 03.Aug.2012, iterative DFS
# depth-first-search ordering
# preorder, postorder and reversed postorder
from graph import Graph
import time
class DFSOrder(object):
def __init__(self, g, recursive=True):
self.g = g
self.recursive = recursive
# que... | [
"hieuza@gmail.com"
] | hieuza@gmail.com |
b252813ec3a656ad05163967f29a6b1d6d3f5201 | 058a77c2a321671a183160fdc0ecfe46889d59ac | /Day17/merge_sort.py | 27a121d677169440053453a5af60a2fc128e149b | [] | no_license | MinJae-Gwon/Algo | 502b919ca5a8bb8392cd284008f42693df7a01bb | 23913f8e7495c931e59ea95b4bfa686818ede8e0 | refs/heads/master | 2021-07-17T05:55:16.243320 | 2020-06-27T13:11:49 | 2020-06-27T13:11:49 | 171,435,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | data = [38, 27, 43, 3, 9, 82, 10]
def merge(l, r):
result = []
while True:
if l[0] <= r[0]:
result.append(l.pop(0))
else:
result.append(r.pop(0))
if len(l) == 0 or len(r) == 0:
break
if len(l) > 0:
result.extend(l)
if len(r) > 0:
... | [
"sinyo0523@gmail.com"
] | sinyo0523@gmail.com |
5918ac3617d6a5c640a6e0aca7193152daaf268f | b0a217700c563c4f057f2aebbde8faba4b1b26d2 | /software/glasgow/gateware/analyzer.py | bb4a69bc6366646bbb3c9b40d54291e9a389cd88 | [
"0BSD",
"Apache-2.0"
] | permissive | kbeckmann/Glasgow | 5d183865da4fb499099d4c17e878a76192b691e7 | cd31e293cb99ee10a3e4a03ff26f6f124e512c64 | refs/heads/master | 2021-09-15T15:59:38.211633 | 2018-11-15T22:36:04 | 2018-11-22T21:13:59 | 157,077,707 | 3 | 0 | NOASSERTION | 2018-11-11T12:33:49 | 2018-11-11T12:33:48 | null | UTF-8 | Python | false | false | 29,898 | py | from functools import reduce
from collections import OrderedDict
from migen import *
from migen.fhdl.bitcontainer import log2_int
from migen.genlib.fifo import _FIFOInterface, SyncFIFOBuffered
from migen.genlib.coding import PriorityEncoder, PriorityDecoder
from migen.genlib.fsm import FSM
__all__ = ["EventSource", "... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
7b7420814b1496c3571d4d75207128c627f763d6 | a61848fd53eb0b2d569e685781edd5852e739fc8 | /find_all.py | 09f8c580afb95bf2fb89fba173b629aa4c2f5925 | [] | no_license | guaracyalima/python_basics | 41243e716c3723389a67f44b526d7a33538d3b6d | 6456084b9735f59d9575b348dff71e9a7cc4917a | refs/heads/master | 2021-08-15T07:57:34.692836 | 2017-11-17T16:05:17 | 2017-11-17T16:05:17 | 111,103,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from bs4 import BeautifulSoup
with open('arquivo03.html', 'r') as f:
soup = BeautifulSoup(f, 'lxml')
tag_list = soup.find_all(['ul', 'div'])
print(tag_list)
| [
"guaracyaraujolima@gmail.com"
] | guaracyaraujolima@gmail.com |
18ae1dbba7d5c134023e183f45772eacc5724340 | 015d0ca2e84ee94bd694cfa5fd477d73eed90f36 | /applications/expensive_seq/expensive_seq.py | b307f2b3585261380a99cdd732710b1528f8226c | [] | no_license | Edudeiko/Hash-tables-module-project-CS | c00448d0e7918e2e433005e541f24da21db8ab37 | 85f23c994983493c64321dce900b4f3faba78003 | refs/heads/master | 2023-01-24T09:10:52.105077 | 2020-11-08T17:35:21 | 2020-11-08T17:35:21 | 307,555,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | '''
start with creating an empty cache table
'''
cache = {}
def expensive_seq(x, y, z):
if x <= 0:
return y + z
if (x, y, z) not in cache:
cache[(x, y, z)] = expensive_seq(x - 1, y + 1, z) + expensive_seq(x - 2, y + 2, z * 2) + expensive_seq(x - 3, y + 3, z * 3)
return cache[(x, y, z)]
... | [
"evgeniy.dudeyko@gmail.com"
] | evgeniy.dudeyko@gmail.com |
e0f17e5eeb6554f374cb320cd4367c2d1ad06c2c | 03ed1f1e259dcf377b3163ee33622546b68379ab | /printerque.py | 3f662a5714da763dfd66e03fe8cc0ad6e64d187d | [] | no_license | dustiumus/py-comp-sci-lab | dd39aab2092b8c124cc9ca7d62a335631f188880 | 8b6842aafc369e9d18ef61c187089f7858a5b04b | refs/heads/main | 2023-08-22T15:31:04.899642 | 2021-09-03T06:05:01 | 2021-09-03T06:05:01 | 402,664,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | class Queue():
"""FIFO queue.
Implemented as a linked list. This will be slower than
using a Python list for small lists but when the list
size is larger than ~5,000, it becomes faster to use,
as it's expensive to pop items off the front of a Python
list (this is a O(n) operation, whereas it's ... | [
"dustiumus@gmail.com"
] | dustiumus@gmail.com |
97ab50faddc4f97b4337834613ec49e7cd000426 | 45c2455a2ee69e5688fcb65eae8a6982ddc3db9a | /exercises/05_basic_scripts/task_5_1b.py | bca822d05799bcae12ad27cd0c87d337780bd72d | [] | no_license | li-zard/pyeng-ex | 3d5900b2da8e4ec065e6f5d42d48912c16660deb | 8d012c73bf900dac9b5051961ce086bc49ea5925 | refs/heads/main | 2023-01-24T16:26:17.065511 | 2020-12-10T15:54:35 | 2020-12-10T15:54:35 | 316,801,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # -*- coding: utf-8 -*-
"""
Задание 5.1b
Переделать скрипт из задания 5.1a таким образом, чтобы, при запросе параметра,
отображался список возможных параметров. Список параметров надо получить из словаря,
а не прописывать вручную.
Вывести информацию о соответствующем параметре, указанного устройства.
Пример выполнен... | [
"lizardlogo@gmail.com"
] | lizardlogo@gmail.com |
f3dafd535a8a693bec6ca22cd688aa45fee162b6 | 92ada67b0393303370867eb90d614b363537c8f1 | /scripts/ugrid_wx.py | b1cee6491a8a4ded788e4d83c026e78c74d918d7 | [] | no_license | brandonmayer-zz/pyugrid | 158d90a73947624e91f49e69b93c0fae8060d474 | a101a929c1ec519c752f24889e00797a2514e20d | refs/heads/master | 2021-05-28T06:27:59.350948 | 2014-07-12T21:55:34 | 2014-07-12T21:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | #!/usr/bin/env python
"""
ugid_wx.py:
A small wxPython utility app to visualize pyugrids, etc.
"""
import wx
## import the installed version
from wx.lib.floatcanvas import NavCanvas, FloatCanvas
class DrawFrame(wx.Frame):
"""
A frame used for the ugrid viewer
"""
#some parameters for drawing:
... | [
"chris.barker@noaa.gov"
] | chris.barker@noaa.gov |
bfd4888edb395deaddfdc4022c9b829b04107625 | 024046de7eb1ffd46c77456418b1073e84af15b1 | /torchvision/prototype/datasets/_builtin/celeba.py | ebfce4b652d5b78be5975d14d7c04ac8e4548bb6 | [
"BSD-3-Clause"
] | permissive | jiafatom/vision | ce31eba6fdffce77e9370e0816ffeb0d743bad80 | 7839bdbe1389e734b00529edd9a7566bb8701588 | refs/heads/main | 2023-08-27T22:56:28.723162 | 2021-10-25T19:10:20 | 2021-10-25T19:10:20 | 319,733,821 | 0 | 0 | BSD-3-Clause | 2020-12-08T19:01:41 | 2020-12-08T19:01:40 | null | UTF-8 | Python | false | false | 6,753 | py | import csv
import io
from typing import Any, Callable, Dict, List, Optional, Tuple, Iterator, Sequence
import torch
from torchdata.datapipes.iter import (
IterDataPipe,
Mapper,
Shuffler,
Filter,
ZipArchiveReader,
Zipper,
KeyZipper,
)
from torchvision.prototype.datasets.utils import (
Da... | [
"noreply@github.com"
] | noreply@github.com |
6bb43b959aa84ac5c99dfd6715abbd08d279a89d | 340cffbb27fa99491e12902c673e3cca1593737c | /homebytwo/routes/migrations/0003_remove_segment.py | fc446f32dcc45042e6dd59bab2e22b826340523d | [
"MIT"
] | permissive | HomebyTwo/homebytwo | 85d90b9b453fe0d50ca44a48437b6f35631f57b5 | 29d26ce9f5586943e3b64c95aa4ce9ea7263bd10 | refs/heads/master | 2022-12-09T15:43:42.765518 | 2020-12-01T11:31:49 | 2020-12-01T11:31:49 | 75,376,872 | 7 | 0 | MIT | 2022-12-09T11:19:29 | 2016-12-02T08:35:07 | Python | UTF-8 | Python | false | false | 568 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-03 11:39
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('routes', '0002_route_data'),
]
operations = [
migrations.RemoveField(
m... | [
"cedric.hofstetter@mac.com"
] | cedric.hofstetter@mac.com |
18f71ff081c3f7d2ea9d18c72d99ea233b3b5d56 | 3eb9b5da2fd9e5e8acfac096921ab7f6b95ddfea | /ml-clustering-neuronal-networks/main.py | 1c7f767bec9ed816da26b7f34ce920555a2d82b1 | [] | no_license | sebastianvolti/ml-clustering-neuronal-networks | a401c3f54dc37978ea22dfb19d4ed03dd96a25df | 7f386a12718ebd25227d0bc3d07e3eb82373dee2 | refs/heads/master | 2023-03-30T07:18:13.833712 | 2021-03-06T20:18:23 | 2021-03-06T20:18:23 | 345,186,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,418 | py | import pandas as pd
import numpy as np
import argparse
import copy
import knn
import logging
import statistics
import random
import utils
import dataset_analysis
import means
import means_plot
from attributes import DATASET_ATTRS, DATASET_FILE, DATASET_FILE_NUM, DATASET_HEADERS, DATASET_CLASS
from sklearn import neigh... | [
"sebastian.volti.diano@gmail.com"
] | sebastian.volti.diano@gmail.com |
16321033f51ae465e1c80dde7ae0eea9def38c33 | e26f8069953f17a267d9dcb61d3bb18d6a4f1847 | /step3/scraping/py_zip/python_crawler_final.py | c8978ba193ef2002acb91fd3bdc5d6cd6ff95433 | [] | no_license | BingSuYam/Ubuntu_Python_crawling-scraping | a89dbd8e12f8831bbe9c5b8e507f2d31303b807a | 3ebd88cd269b275a1f983a4c730d81b4318569ef | refs/heads/master | 2021-05-23T08:02:33.180672 | 2020-04-19T09:15:53 | 2020-04-19T09:15:53 | 253,188,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | import time # time 모듈을 임포트 합니다.
import re # re 모듈을 임포트 합니다.
import requests
import lxml.html
from pymongo import MongoClient
def main():
"""
크롤러의 메인 처리
"""
# 크롤러 호스트의 MongoDB에 접속합니다.
client = MongoClient('localhost', 27017)
# scraping 데이터베이스의 ebooks 콜렉션
collection = client.scraping.ebook... | [
"dydals93@gmail.com"
] | dydals93@gmail.com |
f94ef394016ab76292cd46b7c523ddb2b452f32a | edda54d9c20a9fa7ee4ab029f8adedbec89fef9a | /contactquery.py | e0cd85cbf686200cbde051f5f7cdd545b9082075 | [] | no_license | travisbrkr1234/javaassist | 7e88ce0c51537dab10266b953d3739224a01ce77 | 9fb4ab8cca370865712d1403e365afc92aae5206 | refs/heads/master | 2016-09-06T17:02:37.594670 | 2015-07-10T15:13:27 | 2015-07-10T15:13:27 | 38,782,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import sys
sys.path.append("C:\\Users\\carlos.ochoa\\Documents\\Support Dev\\Python\\csvToolbox\\")
import csv
import ISServer_master as ISServer
infusionsoftapp = "as113"
infusionsoftAPIKey = ""
thisserver = ISServer.ISServer(infusionsoftapp, infusionsoftAPIKey)
allrecords = thisserver.getAllRecords("Contact")
for ea... | [
"carlos.ochoa@infusionsoft.com"
] | carlos.ochoa@infusionsoft.com |
97cc36dd32b2d5cd5c4ab97c7b39c7420193152f | 8b9c84f2540ef9de8830232898b7b3636523ceff | /Problem1.py | 4d8d558f4df6dcc8a1440776e4ca8d187309fb29 | [] | no_license | s-andromeda/Binary-Search-3 | e06b73352af51666bd7d8bf0f4f33a6ec54b9dba | eafd90e65bd04ca544c80d5f24a9ceef55786ad2 | refs/heads/master | 2022-11-17T07:18:50.414405 | 2020-07-21T07:06:29 | 2020-07-21T07:06:29 | 280,072,057 | 0 | 0 | null | 2020-07-16T06:24:20 | 2020-07-16T06:24:19 | null | UTF-8 | Python | false | false | 704 | py | """
Student : Shahreen Shahjahan Psyche
Time : O(log N) [binary search]
Space : O(1) [No Auxiliary Space Has Been Used]
Pased Test Cases : Yes
"""
class Solution:
def myPow(self, x: float, n: int) -> float:
# base case
if n == 0:
return... | [
"noreply@github.com"
] | noreply@github.com |
0ecfe2662d567c63db7e2c659f8b3058a8b7db30 | 1c2b90d6e0c44faabadace30f81cefb037e46e76 | /Anserini-master/src/main/python/jdiq2018_effectiveness/run_batch.py | ba6de46914aa5ce638e030bcd0d6559640922b49 | [
"Apache-2.0"
] | permissive | sandeepsuri/capstone_ryerson | 77bd33e1362db1ec36aafc8d7c0faa75e0998a12 | c632f690e75a17144a681428ee05660a86a02666 | refs/heads/master | 2023-04-16T13:52:18.967986 | 2020-01-31T09:57:01 | 2020-01-31T09:57:01 | 156,599,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,888 | py | # -*- coding: utf-8 -*-
"""
Anserini: A toolkit for reproducible information retrieval research built on Lucene
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/LICENS... | [
"sandeep.suri@ryerson.ca"
] | sandeep.suri@ryerson.ca |
33312e48a6fec52577cc1a2ee8867f5750e74dfe | 1f410c8010877a56f4457535197dce856676b20b | /src/apps/datasets/migrations/0003_dataset_uuid.py | a0dbd6564812f765b4f6083fab8af3ea40c986b9 | [
"MIT"
] | permissive | ckcollab/brains | 1484222312b1695081bc77d9d5ca4ee6e8ce7ad8 | 1f85462d3e4f25170b8c487a0ff4efb598bf1f2e | refs/heads/master | 2021-05-30T13:42:30.628334 | 2015-12-30T01:20:11 | 2015-12-30T01:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-18 20:04
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('datasets', '0002_auto_20151217_1928'),
]
operations = [
migrations... | [
"eric@ckcollab.com"
] | eric@ckcollab.com |
aadb205a2439041ce02330affc79dc4f38e71027 | beffbf1f432b77499cff2e5410268cc1eabc82c3 | /Backend/belisce.py | 36f6c60eb1caff86a3a7a97e45ffb8b726de11f3 | [] | no_license | AlenCamagajevac/LRA | dc482207358ae745372d86dad371862e48cc4ed5 | 035b4fd054e9f122b4084b19c5e83daf4b1ca6df | refs/heads/master | 2023-04-26T21:56:49.297027 | 2020-05-19T06:59:26 | 2020-05-19T06:59:26 | 263,342,701 | 0 | 0 | null | 2021-05-11T14:38:29 | 2020-05-12T13:20:35 | Python | UTF-8 | Python | false | false | 1,436 | py | import logging
import logging.config
import yaml
from flask import Flask
from flask_migrate import Migrate
from jwt_config import setup_jwt
from resources import blueprint as api_blueprint
from db import db
from core.seed_data.database_seed import DatabaseSeeder
from core.logging.access_log import init_access_logger
f... | [
"alen@protostar.ai"
] | alen@protostar.ai |
b96e02dead305da09846744075aa26794afff58c | 8b75c16b18adaeccd58d0f933e64d6521d90697e | /matplotlib_stu/lesson_02.py | 28c00e940c457855dccd58ad3bac1aced8c20dff | [] | no_license | elliottqian/ML_STUDY_P27_GIT | 21a16bee9d6b9747e5743dc25cd174e046b6f0ce | 38e2afab079ccc6acfe93adffbbebc2930d169a7 | refs/heads/master | 2021-01-20T21:12:48.794327 | 2017-01-08T16:24:12 | 2017-01-08T16:24:12 | 62,136,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py |
import numpy as np
import matplotlib.pyplot as plt
n_groups = 5
means_men = (20, 19, 18, 17, 16)
means_women = (25, 32, 34, 20, 25)
fig, ax = plt.subplots()
index = np.arange(n_groups)
# 宽度
bar_width = 0.1
opacity = 0.4
# 参数分别是:
# 坐标, 坐标对应的数组, 宽度, 透明度, 颜色, 标题
rects1 = plt.bar(index, means_men, bar_width, alpha=o... | [
"752004979@qq.com"
] | 752004979@qq.com |
84bfdcb2572f73b8a3127ae075b64188d0f455ad | 2dd2c41e65cbb8d915d01c40ed1c68c4e923e98b | /venv/Lib/site-packages/tablip/formats/_xls.py | b631f3994a0dd768a96fb5cfd090acfb9f6f36a3 | [] | no_license | tyagisen/Ecommerce | aca312c0116175058de35453d30dcc8cb2496bce | bc6a1cc07f5416a46fa0c3a03b6b91bf1b8508f8 | refs/heads/master | 2023-08-15T22:45:33.339529 | 2021-09-23T13:56:31 | 2021-09-23T13:56:31 | 409,611,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,937 | py | """ Tablib - XLS Support.
"""
from io import BytesIO
import tablip
import xlrd
import xlwt
# special styles
wrap = xlwt.easyxf("alignment: wrap on")
bold = xlwt.easyxf("font: bold on")
class XLSFormat:
title = 'xls'
extensions = ('xls',)
@classmethod
def detect(cls, stream):
"""Returns Tru... | [
"tyagisen@gmail.com"
] | tyagisen@gmail.com |
f1e8216fde2ab8e09e1501fb7af1c8b7efa1794f | fe25c062e41678a45a9560a372172d089c3acccd | /_lab-work/lab13/task5/main.py | a0823363f6f819223297947ebc5b1c4d8dee4cd0 | [] | no_license | linuk/food-serve-delicious | bd200ad33fc2b65177535dd71499ec011d01e275 | 95245d5a6f5922ff976d6bfedce0ceffb96fc4f5 | refs/heads/master | 2020-03-15T14:47:59.326180 | 2018-05-04T23:31:00 | 2018-05-04T23:31:00 | 132,197,477 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | from flask import Flask, render_template, flash, send_from_directory
import os
from werkzeug.utils import secure_filename
from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed, FileRequired
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = 'static/uploads'
app.secret_key = "asdhiqwekhukh2... | [
"jlin015@gold.ac.uk"
] | jlin015@gold.ac.uk |
9fd8a6e45d473d3e878fe000db8eb996be0c59a3 | 635c79ae11f9ac29aa1917a3792b8195c6689ec3 | /1_Python/Desafios/036_Empréstimo_casa.py | 3232e4198848bde2cb5c02452b63912258f11e67 | [
"MIT"
] | permissive | guilhermebaos/Curso-em-Video-Python | 822d3a43235f75637f5698aa5d071e7bf96262ec | b72c98aac74824813e96932def07b9449b74dd14 | refs/heads/master | 2022-02-26T00:35:58.548167 | 2022-02-05T13:17:04 | 2022-02-05T13:17:04 | 254,331,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from termcolor import colored, cprint
cprint('Sistema de aprovamento de empréstinmos automático', 'yellow')
c = float(input(colored('Qual é o valor da casa que quer comprar?(€) ', 'blue')))
s = float(input(colored('Qual é o seu salário?(€) ', 'blue')))
a = float(input(colored('Em quantos anos pretende pagar a casa? ', ... | [
"guilhermebaos@gmail.com"
] | guilhermebaos@gmail.com |
c76818ac251baba4d8e9c25bf8d51d65511fec87 | 3df392ab9726687b71ba721f5ccb7e87e68152f5 | /src/python/cloud_functions/clear_shelves.py | bc764e1f15f3e819b6643b61898511f5c99e178e | [] | no_license | djmarcus/OrderingDelivery | f68573420c0844dba6eec846f3cfe6fccba00716 | 5050e35f19ba334d7e350d08a80a926b535232f3 | refs/heads/master | 2022-04-26T11:13:51.906701 | 2020-04-09T18:52:51 | 2020-04-09T18:52:51 | 197,234,216 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | from google.cloud import datastore
datastore_client = datastore.Client()
def clear_shelves():
query = datastore_client.query(kind="overflow")
results = list(query.fetch())
for result in results:
datastore_client.delete(result.key)
query = datastore_client.query(kind="cold")
results = list(query.fetch())
... | [
"danieljohnmarcus@gmail.com"
] | danieljohnmarcus@gmail.com |
36457a95f13f7e83e99c40acfe8b170b4504153e | 6528707b55bcf417bab35fba59c956a704c524ad | /examples/threaded.py | 98edb80fdfd6c339c2e6eaf4f27e3b910ba25655 | [] | no_license | badisa/bs-abqpy-example | e0231bb55c0254e3d630ba7cb1dcce993d93c89b | bc955baf93bf422c8ae4a4662c051fb537dfaf7a | refs/heads/master | 2016-08-03T23:48:11.318895 | 2015-06-03T01:16:43 | 2015-06-03T01:16:43 | 35,226,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | import threading
import urllib
import time
from bs4 import BeautifulSoup
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
'number',
type=int,
help='Number of Poems to Scrape')
parser.add_argument(
'count',
type=int,
help='Number of Loops in Each Thread',
default=0)
ar... | [
"forrest.york@gmail.com"
] | forrest.york@gmail.com |
11f394999f596ffed484585977fc5206096d8378 | 33b00fadfa2e56e5a628e1905411088fa7ecac8d | /pipeline.py | 502c2762e25f273b5c4d02600df766cba02b452a | [] | no_license | burke86/tequila_shots_binder | 82c43accc48e6ea34022de481248f0eb8b6dfb23 | 30b480b013f5c920e269183ffc3e1cfe69980889 | refs/heads/master | 2022-11-06T14:07:00.220271 | 2020-06-25T10:47:43 | 2020-06-25T10:47:43 | 274,830,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,961 | py | import numpy as np
import sys, os
import warnings
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import lightkurve as lk
from lightkurve import MPLSTYLE
from astropy import units as u
from astropy.table import unique
from astropy.table import QTable
from astropy.coordinates import SkyCoord
from astr... | [
"colinjb2@illinois.edu"
] | colinjb2@illinois.edu |
e642eca3839f51f6a0934e2a47c2bbfce1e4c387 | 1c774c129385b4bd6006ef61f53e75d07474d03e | /base_for_web_app.py | 000df6aa26904997f99cac20037aa0971f39c861 | [] | no_license | darth-mycol/slot-wiz | 4de6388c5c754ccdd1159f8623543d12c9b38d08 | d21f214c7366c41d4a580bfb6d395c2876469ac9 | refs/heads/master | 2021-01-13T17:32:07.158550 | 2017-02-23T17:59:37 | 2017-02-23T17:59:37 | 81,810,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | from flask import Flask, jsonify, render_template, request
import data_interaction_module_aiims
import data_interaction_module_slotting
import slot_distribution_calculator
import slot_schedule_payoff_calculator
app = Flask(__name__)
@app.route('/_by_date')
def by_date_look_up():
try:
date = request.args... | [
"rohun.tripati@mycol.in"
] | rohun.tripati@mycol.in |
07bafbf54361a1f49f8246f063abe7ea2f4ac270 | 386448448c23d0e4f6b72d37f7ca20caa1ecc207 | /part 09 增加子弹/settings.py | 93d23f33f61f96182c92c5aae5d24b66cb55ca40 | [] | no_license | typeme/pygame-demo | 1299bd1b437f52234cf1c48a4ee3265811bbf4a5 | 875fabec70ae7aaa245f7fc1c35f2dee173df58e | refs/heads/master | 2020-05-28T09:38:54.475818 | 2019-07-01T15:00:33 | 2019-07-01T15:00:33 | 188,958,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import pygame as pg
vec = pg.math.Vector2
# 定义了一些颜色 (R, G, B)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
DARKGREY = (40, 40, 40)
LIGHTGREY = (100, 100, 100)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
BROWN = (106, 55, 5)
# 游戏基本设定
WIDTH = 1024 # 16 * 64 or 32 * 32 or 64 * 16
HEIGHT = 768 # 16 * 48... | [
"typeme3@163.com"
] | typeme3@163.com |
339e645241a59e0357edfc8df83ee28aea3818c3 | 2e811dbe3b5e08733416d2aae1d63e32d0d8b079 | /word_cloud.py | 10be404d6a780e949df5bcd1b039218fe5762136 | [] | no_license | tengbing88/The_Captain | 1f40b23ac04bcb3fbca6041cc70b8e8449004623 | 72f8b76d89dc60d961afbb4e6b5f27b3d36dee3c | refs/heads/master | 2022-03-09T06:26:26.975792 | 2019-11-01T17:00:17 | 2019-11-01T17:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | # -*- coding: utf-8 -*-
# @Author : Keginx
from collections import Counter
from wordcloud import WordCloud, ImageColorGenerator
import jieba
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import pandas as pd
def generate_wordcloud(stopwords):
## 绘制词云
comment_data = pd.read_csv('resources/dro... | [
"vueginc@gmail.com"
] | vueginc@gmail.com |
f8abe5ecf1cad5f4ae9a99be711931aa542fc6df | 5774101105b47d78adb7a57eefdfa21502bbd70c | /python 之路/section5_反射_3/lib/manager.py | d31ae9adb3736efb7cdcb985aca4793d4a5f05a4 | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 106 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
def order():
print("炫酷的订单页面") | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
f9acc6c1b378818ba70ee0481bb30fc5b6cb89e4 | 65d27e728627965168de68d80ad824a3731fb68e | /evolutionary.py | e930dcb532a2fe64b8cbd96254453c5b25952d63 | [] | no_license | Manolomon/differential-evolution | e2916c0f1e76d9e28186e12af20e2f4a181f605c | b40f21254db3d16406482e35b594b5cdc00c0445 | refs/heads/master | 2022-07-23T13:32:47.039345 | 2020-01-14T04:01:37 | 2020-01-14T04:01:37 | 233,727,687 | 0 | 0 | null | 2022-06-22T00:08:55 | 2020-01-14T01:11:22 | Jupyter Notebook | UTF-8 | Python | false | false | 2,175 | py | import numpy
import random
import pandas as pd
def aptitud(individuo):
return (individuo[0]**2) + (individuo[1]**2)
def ed_rand_1_bin(np, max_gen, f, cr, execution):
EVOLUTION = pd.DataFrame()
g = 0 # Contador de generación
population = numpy.random.uniform(low=-5, high=5, size=(np,2)) # Crear una pob... | [
"manolope338@gmail.com"
] | manolope338@gmail.com |
e63f17e2d553fe393a27ce15b7df51ab1d7c07be | 783a23e160c26931dddce2415b0af1ecf71783af | /Crypto/unused/MerkleTree1.py | df4c9ded334e556aad14cb0e5a2f8a07cb9974fc | [] | no_license | vaibspider/bitcoin | c89b108f60b8eedd4ca7bd4356f9d08f9ebd5140 | f88c78cf52ecf0f588b2a90031a9d799d3a53f82 | refs/heads/master | 2022-12-08T17:13:15.310266 | 2020-08-14T16:45:42 | 2020-08-14T16:45:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from Crypto.Hash import SHA256
from collections import OrderedDict
from typing import List
class MerkleTree:
def __init__(self, txnList: List[str]) -> List[str]:
self.listOfTxns: List[str] = txnList
self.mrkl_root: str = ""
def getHashValue(self,left: str, right: str) -> str:
newHash ... | [
"pratikkaria96@gmail.com"
] | pratikkaria96@gmail.com |
75cc7c8d1fba46bcee40c74f4deab8796d53a56b | 5b37c4bd44553a0ae29d14cde773a73fd6f091ef | /day16.py | 0b8a71970dd0b9bdd6a4e7b5dd0869ff6515f8c7 | [] | no_license | Curiouspaul1/30daysofcode-Dsc | bf38cacc76d537a4722d7a87be2d6d8657c1ffd9 | 56735671732b22645d6e0dd87884a141c6ddb90b | refs/heads/master | 2022-04-26T00:52:56.590578 | 2020-04-24T12:27:42 | 2020-04-24T12:27:42 | 250,358,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | from flask import Flask, request, jsonify,make_response
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.exc import IntegrityError
from flask_bcrypt import Bcrypt
from day10 import emailcheck
import os
# Database directory
basedir = os.getcwd()
app = Flask(__name__)
#app config
"""
This config clause specifie... | [
"170408025@live.unilag.edu.ng"
] | 170408025@live.unilag.edu.ng |
86d71e2a0078a23f5ba88d4cf5f4ca0b1a07ee59 | b7f78e4758374cffcc912489e40134dee4a70d26 | /domain/providers/provider.py | fffe3086f34e3fe53674d3d454e0cb13f1afa008 | [] | no_license | Canu667/python-payment-gateway | b0fa57d15f6985975b934d6e6f3d22ac14d42166 | d680c618ec269e1f6fdbdd4d18768b16d54ae118 | refs/heads/master | 2021-07-11T15:00:07.266354 | 2020-01-19T22:03:40 | 2020-01-19T22:03:40 | 228,256,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | from abc import ABC, abstractmethod
from models.payment_model import PaymentModel
from schemas.payment import PaymentDto
class Provider(ABC):
@abstractmethod
def create_payment(self, payment: PaymentDto):
pass
def capture(self, payment: PaymentModel):
pass
class CouldNotInitialisePaymen... | [
"mcanova@notebooksbilliger.de"
] | mcanova@notebooksbilliger.de |
87351cd3e0205ea5223f15e570548bc590e8013f | 5ed35806523dd5587cb2dc31e55aa086dda87801 | /datamanagement/modules/pipeline/CreateCASAImagerParsetFiles.py | 9a9101586cfb2b6a327b4d4716debf24d9aad5d7 | [] | no_license | oscarmartinezrubi/ledama | 97d3e188432e42f37dd0229080a8e0750acbf128 | 75fca624dfd38e58af32f23a96113b04248cc251 | refs/heads/master | 2020-12-31T04:16:59.640490 | 2016-09-16T12:04:12 | 2016-09-16T12:04:12 | 68,370,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,501 | py | ################################################################################
# Created by Oscar Martinez #
# martinez@astro.rug.nl #
#############################################################################... | [
"omrubi@gmail.com"
] | omrubi@gmail.com |
f9f6066f5029d0b9a9d17b03d3525476857e4fb2 | 2d5d17225ddabe81f17b74589895f49e530344f8 | /testchild.py | bd5664d3017ce696e7674d7c93dc078eddbccbca | [] | no_license | Gracia958/testrepo | 230644e4976414c67e12a508d14f832e3d73d7d9 | db898e9748ab851b65421ae7819019cd5211b64b | refs/heads/master | 2022-11-27T13:10:05.071494 | 2020-07-28T07:19:54 | 2020-07-28T07:19:54 | 282,127,528 | 0 | 0 | null | 2020-07-28T07:19:55 | 2020-07-24T05:03:38 | Python | UTF-8 | Python | false | false | 64 | py | ##Add a new file in child branch.
print ("Inside Child branch")
| [
"noreply@github.com"
] | noreply@github.com |
a083a7f709dddbd60e57d7f87fa6d2c921a93153 | b0c391ecf351e2317ac61c257dd6bfa5b10d4015 | /pymotifs/motifs/info.py | 8e50f9402510548d536cf1cc88526c18a5f68479 | [] | no_license | BGSU-RNA/RNA-3D-Hub-core | 57db94bfff9b338b3a751f545699f4117150b921 | 1982e10a56885e56d79aac69365b9ff78c0e3d92 | refs/heads/master | 2023-05-26T09:41:38.397152 | 2023-05-23T05:50:10 | 2023-05-23T05:50:10 | 6,049,336 | 3 | 1 | null | 2022-06-21T21:27:52 | 2012-10-02T18:26:11 | Python | UTF-8 | Python | false | false | 1,058 | py | """Load the motif info data.
This will load the cached data to store all motifs into the DB.
"""
from pymotifs import core
from pymotifs import models as mod
from pymotifs.motifs.utils import BaseLoader
from pymotifs.motifs.release import Loader as ReleaseLoader
class Loader(BaseLoader):
dependencies = set([Re... | [
"blakes.85@gmail.com"
] | blakes.85@gmail.com |
82136ba6add582586d0f7de5f1aebe36c5ef8f5c | 2e2c9cf0bf1f6218f82e7ecddbec17da49756114 | /day1python基础/__init__.py | b29e98abae8a3e380d7654fbeaf3546ede374470 | [] | no_license | guoyunfei0603/py31 | c3cc946cd9efddb58dad0b51b72402a77e9d7592 | 734a049ecd84bfddc607ef852366eb5b7d16c6cb | refs/heads/master | 2023-03-02T20:50:02.052878 | 2021-02-05T06:17:24 | 2021-02-05T06:17:24 | 279,454,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
# @Time : 2020/6/24 10:18
# @Author : guoyunfei.0603
# @File : __init__.py.py
# s = "'abcd'"
# print(s[0:2]) #'a
# 三、 将字符串中的单词位置反转,“hello xiao mi” 转换为 “mi xiao hello”
# (提示:通过字符串分割,拼接,列表反序等知识点来实现)
s = "hello xiao mi"
s1 = s.split(' ')
t = s1[::-1] # 方式一
# print(t,type(t)) 是一个列表 ... | [
"1359239107@qq.com"
] | 1359239107@qq.com |
721bd1b05d530a4f48442cf012415980f573f230 | 4f3f2ae204a2c709bffde8e3ae478339f743c3e8 | /main/migrations/0009_whitepaper_is_active.py | fd2ac8af2732a9a6b8528cadbb7d9911a2479ea1 | [] | no_license | Anupam124jain/ICO | a9d5f02d2cd1680c5a4545439238f7325c601373 | 5faf27c7e25bfc3d4fa7cfc3f8dff10583dddaad | refs/heads/master | 2022-12-15T17:37:11.193927 | 2019-01-21T13:39:24 | 2019-01-21T13:39:24 | 166,819,535 | 0 | 0 | null | 2022-12-08T03:00:50 | 2019-01-21T13:33:33 | Python | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.1 on 2018-09-11 12:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0008_auto_20180911_1249'),
]
operations = [
migrations.AddField(
model_name='whitepaper',
name='is_active',
... | [
"anupam124jain@gmail.com"
] | anupam124jain@gmail.com |
0ed37eb51587abc34d6099dead9aa947fcb30c01 | d20d4de2ee73a13aac79c5baeb8fc90ce3f4d02e | /chapter04/section10.py | 3e85fdb8d91b8dc9693bf9ff5612a81cd3150454 | [] | no_license | wistra4/minpy | 86e7c6b009b4ba35af12f6eeb2422ade9141d585 | 4cfe8eb669a55487a8f9bab6abe864ed2ea663ac | refs/heads/master | 2023-03-13T01:29:07.644879 | 2021-03-03T08:52:20 | 2021-03-03T08:52:20 | 343,477,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | # 10_Pythonの文字列と日本語
# バイト(bytes)型
s = "あいうえお" # ひらがなを含む文字列型を定義
len(s) # 長さを調べる
bs = s.encode("shift-jis") # 文字列型からバイト型に変換
len(bs) # 長さを調べる
print(bs) # バイト型をprint()する
print(s[0])
print(bs[0])
# 文字列をバイト型に変換する
u = s.encode("euc-jp", "strict") # EUC-JPの文字列に変換
# バイト型を文字列型に変換する
u = s.decode("shift... | [
"1946keisuke.o@keio.jp"
] | 1946keisuke.o@keio.jp |
ab688480455f8430e70d31f40d5a7677b8fdd149 | 0008d0eaff317af3ccedf523299ae382a98a6e81 | /experiments/Q3-pres/single-instance-learning/ST-primary_multiclass/temporal_downsample/no_augmentation/_sources/train_emmental_1e13924c460154448026d09dac861e0a.py | df5d0b3b5326469959c12aad8210cd7007b56851 | [] | no_license | geoffreyangus/cow-tus | 44227d8c449a262af2b9b1c644fc41b72f511e29 | ad0eec4a5691b43a1708a4d9f599a6d7725092dd | refs/heads/master | 2020-08-04T14:35:32.531057 | 2020-06-12T19:05:36 | 2020-06-12T19:05:36 | 212,168,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,514 | py | import os
import os.path as path
import logging
from functools import partial
import emmental
from emmental import Meta
from emmental.data import EmmentalDataLoader
from emmental.learner import EmmentalLearner
from emmental.model import EmmentalModel
from emmental.scorer import Scorer
from emmental.task import Emmenta... | [
"gdlangus@gmail.com"
] | gdlangus@gmail.com |
ba2bb89073ea49c7a089f39e13f410021fb648ce | f94651173636a51180e68adaebe05e4b20d60fdd | /utils/ansible2/test_runner.py | 8496fd596f332708fc01f81a932ae3a048d37a11 | [] | no_license | wangtangkun/devops | 5082a0e04fcd6796b2b9474da528c9643b16d0b0 | 979db139a4841b3dc1fafa17ad805b04ef69c8f3 | refs/heads/master | 2020-09-12T18:27:19.024758 | 2019-11-18T18:02:55 | 2019-11-18T18:02:55 | 222,510,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | # coding: utf-8
from utils.ansible2.runner import AdHocRunner, CommandRunner, PlayBookRunner
from utils.ansible2.inventory import Inventory
def TestAdHocRunner():
"""
以yml的形式 执行多个命令
:return:
"""
host_data = [
{
"hostname": "192.168.179.135",
"ip": "192.168.179.135... | [
"496996740@qq.com"
] | 496996740@qq.com |
840efc99ddd9a5f51a77bb185b52f53a8a51442d | 2d37d926159b98af115799bbbde066983e0f2c31 | /combined_color_threshold.py | f4320f42c132357f95a99d329d9cf6729e366f1e | [] | no_license | eoguzinci/advanced_lane_finding | cf01ed9b195aabeb31aac913ed642591ee294551 | c08ff77ad2cef4bbc26698893b74e6dbe5adac92 | refs/heads/master | 2021-09-06T17:23:28.881426 | 2018-02-09T00:09:23 | 2018-02-09T00:09:23 | 104,279,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('test3.jpg')
thresh = (180, 255)
gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
# Convert to HLS color space and separate the S channel
# Note: img is the undistorted image
hls = cv2.cvtColor(img... | [
"eoguzinci@gmail.com"
] | eoguzinci@gmail.com |
b9d01644c808a33c9c69100e16e1b4652eec57a9 | 1616b2a7082196182a853ac85a336974f80dc680 | /Tools/LibEnsemble/warpx_simf.py | 8822d22efe1fcf163ab6f931080add47b6f9903e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"BSD-3-Clause-LBNL"
] | permissive | RevathiJambunathan/WarpX | a034416ae9369e48bc1f7c2ed95fa6800eb5f522 | 85bc4610adbdd5a48f1cbe666f11db6b72a781c0 | refs/heads/development | 2023-09-01T12:49:36.522416 | 2021-01-27T18:02:18 | 2021-01-27T18:02:18 | 174,003,690 | 0 | 4 | NOASSERTION | 2023-09-13T00:30:57 | 2019-03-05T18:59:20 | C++ | UTF-8 | Python | false | false | 4,170 | py | import os
import time
import numpy as np
from libensemble.executors.executor import Executor
from libensemble.message_numbers import WORKER_DONE, TASK_FAILED
from read_sim_output import read_sim_output
from write_sim_input import write_sim_input
"""
This file is part of the suite of scripts to use LibEnsemble on top ... | [
"noreply@github.com"
] | noreply@github.com |
84b2147114b80a5def71d56900706a173d972b84 | 8322fc54e79c8311f8503c22236d146f3a9e4c00 | /day03/02_python列表-list.py | ac8ae40a71a92a073eb038858d48346519c45db9 | [] | no_license | syasky/python | c8adae0014d1c3d221771f2ef06948d38aed2b7f | e88396503b2c9acaade8753ba6bcc9abbac3d145 | refs/heads/master | 2022-11-10T18:16:52.119695 | 2020-06-25T11:41:36 | 2020-06-25T11:41:36 | 274,897,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,413 | py | #创建列表
list1=[1,2,3,'口罩','cov']
print(list1)
print(type(list1))
list2=[1,2,3,4]
print(list2)
list3=['a','b','c','d']
print(list3)
str1='hello'
list4=[str1,True,1,None,list3]
print(list4)
print('--------------------------------------------------------------')
'''
一个变量存三组数据
1组:一万,二万,三万
2组:四条,五条,六条
... | [
"noreply@github.com"
] | noreply@github.com |
6e2571379cdcc6fc301ab69841937b6e9b34e72b | d8f3997fb9da5c8898a8a1258c64e5239410139e | /lab1_5.py | c6c6748ff997b3d07e52959e60add3a7f40cb44a | [] | no_license | keerthikapopuri/Python | 9dad324e99fe1ba28ddce4569c95980726575519 | 2187c7b451954f9f15ddf5e92dc47d447b1106d7 | refs/heads/main | 2023-06-14T20:11:09.522539 | 2021-07-13T06:18:06 | 2021-07-13T06:18:06 | 385,497,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | a=int(input("enter a: "))
b=int(input("enter b: "))
temp=a
a=b
b=temp
print("after swapping")
print(a,b) | [
"keerthikapopuri@gmail.com"
] | keerthikapopuri@gmail.com |
822489ad746bb4d182fbf9ec11d681882e5fd98e | 86ac96d9a9135279fbc50aab6e3fbf12894a4a5b | /saxsflow/core/saxs/dataset.py | be891e7ca29f78f8c0f3658a3cd833321226fbcb | [] | no_license | bm29/workflow | 7958748ae8c394d8433dd8718079601a55a6294b | 579d3516edb074f464977d329a8bd3d47651273a | refs/heads/master | 2016-09-06T16:33:00.754126 | 2015-09-18T13:39:52 | 2015-09-18T13:39:52 | 31,201,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | import json
class SaxsDataset(object):
'''
Biosaxs Dataset
'''
json = None
def __init__(self, jsonRecord):
self.json = json.loads(jsonRecord)
def getInput(self, i=None):
if i is None:
return self.json["INPUT"]
else:
return self.json["INPUT"][i]... | [
"ademaria@pc593.embl.fr"
] | ademaria@pc593.embl.fr |
8e7077c2e98f6f31eb5e6c24d476b9e3254d9bcf | 873941ffbd49839dd5170c00b51f6e6d1ef51d0c | /题目/pwnable.tw/applestore/exp.py | d2f5fcd94c67e339bc8174932535f4095c0ba46d | [] | no_license | kotorinxn/CTF | 1fd202838b8e62a5c86f1f483a7452f79a2cfce3 | c44f93adf5869b234d59854d2384f9b6710fbb79 | refs/heads/master | 2021-07-07T17:31:19.167341 | 2020-09-24T19:08:06 | 2020-09-24T19:08:06 | 189,968,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | from pwn import *
context(os = 'linux',arch = 'i386', log_level = 'debug')
debug = 0
if debug == 1:
p = process('./applestore')
libc = ELF('/lib/i386-linux-gnu/libc.so.6')
else:
p = remote('chall.pwnable.tw', 10104)
libc = ELF('libc_32.so.6')
elf = ELF('./applestore')
def add(idx):
p.recvuntil('>'... | [
"295092540@qq.com"
] | 295092540@qq.com |
b9f513a4388555b2bd612aad4a47b3229b8af79f | 78e609d905f189e1df1e015a11bf3f3ae4935977 | /python.py | b6d6fb158d964cf288c0002ab6dcea961ab8382d | [] | no_license | VinayakLuha/cautious-octo-sniffle | 650ab9b68f44a3d7269ffccfd9176f8fc25a0d56 | b600a68bef45fc3ce6b486db23b82671aee1bbd8 | refs/heads/master | 2022-11-14T07:40:19.933419 | 2020-07-05T15:36:01 | 2020-07-05T15:36:01 | 277,231,005 | 0 | 0 | null | 2020-07-05T04:40:01 | 2020-07-05T04:30:27 | null | UTF-8 | Python | false | false | 18 | py | print("HOOOOOOO")
| [
"vinayakofficial186f@gmail.com"
] | vinayakofficial186f@gmail.com |
63459c05f9decea9fb591739d9950284975a7236 | 11594333854f35e942fde4db523a543aa74c6000 | /Similarities.py | ab699aedb9ecf4b6f72de97b2486aad55e137f37 | [] | no_license | Epsilon456/WordSimilarities | 2f43ce209470cb17810dee9860abb4b6a835a399 | 5f25cbbb1383dd3fc16a4fa38ea011412df3776e | refs/heads/master | 2023-05-31T22:23:36.937710 | 2019-11-18T21:58:20 | 2019-11-18T21:58:20 | 221,731,186 | 1 | 0 | null | 2023-05-22T22:33:00 | 2019-11-14T15:38:53 | Python | UTF-8 | Python | false | false | 17,423 | py | import Levenshtein as LV
import gensim
import pandas as pd
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
"""This script contains a single class which in turn, contains all 5 of the methods to be tested (as well as their
initialization functions.) The five methods are as follows:
... | [
"noreply@github.com"
] | noreply@github.com |
9e5792142558cd46f6ba9a81e13b947bb2b6145c | 37d612c90db933b059937b3e7ed91b06b1c22f88 | /build/src/Django-1.0.2-final/django/contrib/admin/options.py | 3d60b9ddf4842183dd54008172494e81d15f48fa | [
"BSD-3-Clause"
] | permissive | taylanpince/alghalia | 751aaba7bd01f955fc79c9e3a2bd69cc34d7bf41 | b5a4949207e0604f035dea74538f655f73ccc2a3 | refs/heads/master | 2020-05-04T00:52:24.307879 | 2009-04-04T23:40:30 | 2009-04-04T23:40:30 | 155,763 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,792 | py | from django import forms, template
from django.forms.formsets import all_valid
from django.forms.models import modelform_factory, inlineformset_factory
from django.forms.models import BaseInlineFormSet
from django.contrib.contenttypes.models import ContentType
from django.contrib.admin import widgets
from django.contri... | [
"taylanpince@gmail.com"
] | taylanpince@gmail.com |
ea080f6a970422adc404cafa7a6c8b5224104598 | 4dea70c70d4ad0f8c761ecc619110b86a38f6721 | /Optimization.py | 3f1cfc402904003bfa2d5ab9394c3cf0567c0b50 | [] | no_license | homayunafra/Decision_Theoretic_Approach_for_Interpretability_in_Bayesian_Framework | af036a96e3eccae50b7ba6a4e5e021748d209e07 | cb58964cc16b7ab6c3632da0d6066325b6f31d72 | refs/heads/master | 2023-04-06T02:48:51.729907 | 2021-04-29T08:48:11 | 2021-04-29T08:48:11 | 284,804,129 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,275 | py | import tigraphs as tig
import numpy as np
import igraph as ig
from copy import deepcopy
from itertools import combinations
from math import log, floor, sqrt
from sklearn.model_selection import KFold
class DecisionNode(tig.BasicNode, object):
def __init__(self, **kwargs):
super().__init__(**kwargs)
... | [
"homayun.it@gmail.com"
] | homayun.it@gmail.com |
afcb824861fbac4be730a519487cc5aca554d744 | 2836d0c8648a02f326bac0f5748a57ff1bcf0169 | /issue/models.py | 73961f57dcf9cddc29ff756dd29acb582d9e36ff | [] | no_license | blockbyte-sbhack19/web | dce37bf81a2a801bed892f7a061d58f42864d1f2 | 543db71b7616e4c1fd2bdba333ec3a9efa45a40a | refs/heads/master | 2020-06-08T08:40:16.501744 | 2019-06-22T20:26:20 | 2019-06-22T20:26:20 | 193,198,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.db import models
class Soil(models.Model):
location = models.CharField(max_length=200)
size = models.CharField(max_length=200)
price = models.CharField(max_length=200)
beforeDate = models.DateTimeField('beforeDate')
afterDate = models.DateTimeField('afterDate')
| [
"cedric.walter@gmail.com"
] | cedric.walter@gmail.com |
1ba4b6a2f09c11c36c36f246039c90cfc4286031 | 7f402e7bf0f56f3f5d4251e8e39352855816156c | /ubuntu/scripts/rcutorture.py | 6b7d6ac997dce39a667ff64fc15abb768ed63239 | [] | no_license | wuyuer/lava-test-cases | 3aab1b92e610351102f857183a0361e0a524af8c | 4e2c280a8ef53e082336290d37500520f18430b9 | refs/heads/master | 2021-01-10T02:22:29.748180 | 2016-01-13T11:58:39 | 2016-01-13T11:58:39 | 49,557,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,548 | py | #!/usr/bin/env python
#
# RCU Torture test for Linux Kernel.
#
# Copyright (C) 2010 - 2014, Linaro Limited.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, o... | [
"milosz.wasilewski@linaro.org"
] | milosz.wasilewski@linaro.org |
4b7a7e5245954567017ea30f2e6e5b2a68d61c27 | 38c35956be6343855914b1c58b8fbd2e40c6e615 | /AdHoc/1030.py | 6cab25d7e55eca194d128a95ba59b1e53ae65c24 | [] | no_license | LucasBarbosaRocha/URI | b43e4f4a6b3beed935f24839001bea354411c4bd | 2c9bcc13300a9f6243242e483c8f9ec3296a88ad | refs/heads/master | 2020-06-25T05:06:51.297824 | 2019-08-22T04:50:11 | 2019-08-22T04:50:11 | 199,210,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | nc = int(input())
for i in range(nc):
entrada = input().split(" ")
n = int(entrada[0])
k = int(entrada[1])
lista = [1]*n
vivos = n
pos = 0
while vivos > 1:
j = 0
while j < k:
while (lista[pos] == -1):
pos = pos + 1
if (pos == n):
pos = 0
pos = pos + 1
if (pos == n):
pos = 0
j ... | [
"lucas.lb.rocha@gmail.com"
] | lucas.lb.rocha@gmail.com |
3179f9de593ae3fcecf09342a4adc0d941e09c45 | 586ee79d0963d6183cf45656c2b0b9dd115226ce | /python_basic/textFile/textPross.py | 2723559965dc1d5952ece9bc84a0ad1e501c5d31 | [] | no_license | nie-xin/GeometryAlgorithms | afd62e3c5e45c1ddeb0c0fa768accc0b2d5ea176 | 392fde108b24a7c23c4e61c211cfe3d8e7901338 | refs/heads/master | 2021-01-18T13:54:39.332207 | 2013-12-10T12:39:16 | 2013-12-10T12:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | import os
if os.path.exists('sketch.txt'):
data = open('sketch.txt')
for each_line in data:
if not each_line.find(':') == -1:
(role, line_spoken) = each_line.split(':', 1)
print(role, end='')
print(' said: ', end='')
print(line_spoken, end='')
data.close()
else:
print('The data file is missing') | [
"niexin.study@gmail.com"
] | niexin.study@gmail.com |
31fd854d20dd39dbe8cb2df8574a881bb9c4c0bc | 49c626418cf64cf0bae7bc5a9a481359692e0a19 | /5-21.py | de8ca4dfa3cf3c9cf67ad74b6214d81dd4b16c67 | [] | no_license | WebGLer/on-my-window | 086c53090ff3bdcc5f139bb1fd0ab3f55c3bb68c | a625687c0493746dcc3d098950eb0c582f29e911 | refs/heads/master | 2020-07-22T12:19:54.161777 | 2019-11-26T09:19:08 | 2019-11-26T09:19:08 | 207,200,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | #给出文件夹路径
import os
base_dir = "D:\\参赛文件\\cats_and_dogs_small"
train_dir = os.path.join(base_dir,'train')
validation_dir = os.path.join(base_dir,'validation')
test_dir = os.path.join(base_dir,'test')
#使用数据增强的特征提取
from tensorflow.python.keras.applications import VGG16
data_path = "F:\\5-model data\\vgg16_weights_... | [
"noreply@github.com"
] | noreply@github.com |
d48a095767b13aa2d16d266ded3f78a690976077 | 26d04fb000bdd882120109c5aec82c26fb1d9cdb | /interface/truck/__init__.py | e810248328b99d73020b3228397809e9354e9401 | [] | no_license | blomqvist/thesis | 445ae2dafebd2c2361ec28f9a9c1e55b1f20a4d7 | 532d0e47a18c05cf643a5898c6f92020d2f7e6d0 | refs/heads/master | 2020-05-17T04:22:37.097397 | 2016-01-28T18:21:40 | 2016-01-28T18:21:40 | 30,926,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | __all__ = ["Truck"] | [
"niklas.blomqvist@gmail.com"
] | niklas.blomqvist@gmail.com |
177debec7b606199f56acb03e4ef5f5046d2badc | 895d67c065919ac132f9ef9ddeb667d8d4aca4cc | /pratice_wework_delete_contactor_po_appium/page/info.py | 338a28dccc28f71ab88dc664da45f652b66bd35c | [] | no_license | testdemo11/Hogwart_pratice | 57df9afb1038b77bfccefe3f6cdffaf2cce41175 | ebc025a2272beb5f0d25fd16ea7d06ffe460ed23 | refs/heads/main | 2023-03-28T08:04:01.716982 | 2021-03-30T03:50:23 | 2021-03-30T03:50:23 | 350,715,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # -*- coding:utf-8 -*-
__author__ = 'Tnew'
from pratice_demo.pratice_wework_delete_contactor_po_appium.basepage import BasePage
from pratice_demo.pratice_wework_delete_contactor_po_appium.page.edit import Edit
class Info(BasePage):
def goto_edit_contactor(self):
# 点击更多,进入编辑用户信息界面
self.step('../da... | [
"tnew_tao@163.com"
] | tnew_tao@163.com |
bd3dba7cedd5c61ce2c28d80320106ebde0e7bd2 | ec8d7c3176187359c7618bd591724ea93a9b0772 | /python/testing/cookbook/01-unit/recipe5.py | e519029af5beb796eb5f3a107a9494b28b0e38ed | [] | no_license | almacro/snippets | 7000faf593ab97a0890ea56d944ceef4ef23643a | e247c5bc26f336add1c7be8636775f841a65615d | refs/heads/master | 2023-08-05T11:00:13.161159 | 2023-07-23T15:31:42 | 2023-07-23T15:31:42 | 65,136,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | class RomanNumeralConverter(object):
def __init__ (self):
self.digit_map = {"M":1000, "D":500, "C":100, "L":50, "X":10, "V":5, "I":1}
def convert_to_decimal(self, roman_numeral=""):
val = 0
for char in roman_numeral:
val += self.digit_map[char]
return val
import uni... | [
"alfred@ridecell.com"
] | alfred@ridecell.com |
548ae2da86ee3cad8a9df7b3561adf9b60b9ef4c | 2aafa49c445580d39d647b753081a9a4a38614cf | /src/Guidance_system/guidance_sys/GPIO.py | ed85194103ada3ea6f56d75a5d29ec9d0a03988e | [
"MIT"
] | permissive | Joseph-tsai415/Msc-All-Terrain-Robot | e623dc3438764877545ec2229f84e4a0c22953fb | 40973b8d1b088d37efc372f6313ee58d18792c02 | refs/heads/master | 2023-01-16T00:39:11.932757 | 2020-11-30T10:51:38 | 2020-11-30T10:51:38 | 297,651,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import RPi.GPIO as GPIO
from time import sleep # this lets us have a time delay (see line 12)
# for GPIO numbering, choose BCM
GPIO.setmode(GPIO.BCM)
# or, for pin numbering, choose BOARD
#GPIO.setmode(GPIO.BOARD)
GPIO.setup(25, GPIO.IN,pull_up_down=GPIO.PUD_DOWN) # set GPIO 25 as input
GPIO.setup(18, GPIO.OUT)... | [
"bingjun.cai@gmail.com"
] | bingjun.cai@gmail.com |
546e354836cc463b0eb0ee84e5a037c8c4895543 | dcb0bb373ff999dc784e68f2d05cccd26548da67 | /manage.py | 1a34b77f248a40122a51aadead42a3d014da3476 | [] | no_license | JulioLopez2/DjangoTut | cc1c09975cdb6523f0ad787a6479940c45782860 | 00ec21e39ff409b240556c63b49a4c32098431d3 | refs/heads/main | 2023-04-17T22:54:20.707978 | 2021-04-30T22:53:03 | 2021-04-30T22:53:03 | 361,031,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | #!/usr/bin/env python
import os
import sys
print("Hello world")
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "trydjango.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Coul... | [
"julio.lopez2.jr@gmail.com"
] | julio.lopez2.jr@gmail.com |
5be296e2bc7bd3fdd5941a9aa4e3e8e66ecaa693 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/search_his_meetings_response.py | 9079e05888af9d2c2ce545a7033572d3306fef6e | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,130 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SearchHisMeetingsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d94e881b7392a797a21413588260985a5b523625 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_public_network_access.py | f83ed93ccc50f1aa7c7d34e29e6c867c534c64f5 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,775 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
6e6adb4ac5f39c2697616a67a264d17e179d9eef | e112fb4549c00a77530b32c67c748d66c19a4f87 | /ex14.py | 4d0c00f540374edd2b21c714349eb91b5b84b049 | [] | no_license | XinCui2018/Python-Hard-Way | 1abff62cc7a7027affb6bcdb467fc0cb7fba127a | 05f338a16aec58485c643d3156768aa87bb414ec | refs/heads/master | 2022-10-11T13:34:11.972437 | 2020-06-08T13:05:13 | 2020-06-08T13:05:13 | 270,669,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # from sys import argv
# script, user_name = argv
# prompt = '> '
# print ("Hi %s, I'm the %s script." % (user_name, script))
# print ("I'd like to ask you a few questions.")
# print ("Do you like me %s?" % user_name)
# likes = input(prompt)
# print ("Where do you live %s?" % user_name)
# lives = input(pr... | [
"noreply@github.com"
] | noreply@github.com |
3d64a5bfed4cc338ce7b38db5ada112fe517c445 | dfd51748ba20c9af87925f30db1cd283fb5554f6 | /invenio_rdm_records/services/components/relations.py | 0b83ec0fe8c3975b0baf477b1c3e2ba6486a11da | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ppanero/invenio-rdm-records | 6daf38464755b04d33fd706148b7001a3c2500a9 | b4bcc2e16df6048149177a6e1ebd514bdb6b0626 | refs/heads/master | 2023-06-07T22:14:07.678463 | 2022-04-01T13:06:46 | 2022-04-01T13:06:46 | 206,281,822 | 0 | 0 | MIT | 2022-03-24T09:20:25 | 2019-09-04T09:25:28 | Python | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 CERN.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""RDM service component for metadata."""
from copy import copy
from invenio_drafts_resources.services.recor... | [
"lars.holm.nielsen@cern.ch"
] | lars.holm.nielsen@cern.ch |
b010f851ace9d560f4744da9777c12ef58ecc805 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /packages/service-library/src/servicelib/docker_utils.py | 0a1e3c094b6d77ab5579293a2b2d6b49970d63c3 | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 532 | py | from datetime import datetime
import arrow
def to_datetime(docker_timestamp: str) -> datetime:
# docker follows RFC3339Nano timestamp which is based on ISO 8601
# https://medium.easyread.co/understanding-about-rfc-3339-for-datetime-formatting-in-software-engineering-940aa5d5f68a
# This is acceptable in I... | [
"noreply@github.com"
] | noreply@github.com |
fb890dc580eea9b0adef48e5e1e80d3eb610ab9a | ce0161fbfc57221e99d06c33d805c920b78b0668 | /venv/bin/flask | b74e3568d1128d71494d18916f991e8b803d704a | [] | no_license | faizan2590/Energy_Tariff_Selection | b72815178231b71441e46a30cdbdedbffc3a23c5 | fbf3c9103c3248051f93e8ef626d8f04763fe6e8 | refs/heads/master | 2021-10-13T13:59:18.780578 | 2021-10-04T19:04:02 | 2021-10-04T19:04:02 | 118,249,172 | 0 | 0 | null | 2021-10-04T19:04:03 | 2018-01-20T14:18:05 | Python | UTF-8 | Python | false | false | 285 | #!/Users/muhammad.faizan/Dropbox/Blockchain(MAC)/Energy_Tariff_Selection/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"faizan2590@gmail.com"
] | faizan2590@gmail.com | |
0c6cb54ad19b2cdaa6b81ab6851c9972fa85bc7a | aee4c0839933a11d8ce3c485d06595202dd3cabd | /keras/layers/reshaping/cropping1d.py | 2eb632e38d0ae45a148bb71d27c864c72c325578 | [
"Apache-2.0"
] | permissive | xiaoheilong3112/keras | fc3025a2f14838bf8416b2faed766cb43da62f9b | 8d5e9b2163ec9b7d9f70920d1c7992b6df6820ec | refs/heads/master | 2023-08-07T18:23:36.804563 | 2023-07-25T19:16:12 | 2023-07-25T19:16:48 | 137,238,629 | 1 | 0 | Apache-2.0 | 2023-07-26T05:22:44 | 2018-06-13T15:59:45 | Python | UTF-8 | Python | false | false | 3,256 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f7cd7780e8a21e7a258c04a2754208c931442142 | 00edbfdc13b5cba7bd4f52bccda63dd7f09a5961 | /gen.py | e108c6a1a086c30e1293b46be447ec5901d00ffb | [
"Apache-2.0"
] | permissive | hercules261188/dvcyaml-schema | 796f7b6900baf9e0ce4b9102d3386b0326f95763 | 724d2ba40d13978334f53f988b19b2b7510bad97 | refs/heads/master | 2022-12-03T02:52:20.193279 | 2020-08-16T06:16:01 | 2020-08-16T06:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | """schema.json generator."""
# flake8: noqa: D1
# pylint: disable=unused-import,missing-class-docstring,too-few-public-methods
try:
from typing import TypedDict
except ImportError:
from typing_extensions import TypedDict # noqa: F401
from typing import Any, Dict, Optional, Set, Union
from pydantic import Ba... | [
"noreply@github.com"
] | noreply@github.com |
e7ddcf7210f3b09dba848c793ab03efad8fdb443 | c90cab17679a44aba7e4b74e83d1b15cd8778051 | /mgj/migrations/0002_productdetail.py | 7546f098f8300a0cfaed0d697e03fd13ca547cdf | [] | no_license | code5257/mgj | 3327edf9a8ea0613053c3ca04b850adc946ac2d7 | da9ef5fdc335fdc0ecdf3b904824d6ca1044e6c5 | refs/heads/master | 2020-04-28T23:32:31.032096 | 2019-03-19T08:59:31 | 2019-03-19T08:59:31 | 175,658,585 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2019-03-14 12:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mgj', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"773156716@qq.com"
] | 773156716@qq.com |
150bc75088e264799314b9e8e52e15be34713791 | 3c7eceeae8c5472ea9d5dc54d910730de935b8e9 | /api/user/migrations/0002_auto_20200331_1553.py | ced7c3c8164dfc7da5e4f076cc74b98b1f71bb82 | [] | no_license | mkwiatek770/mind-battle | dd827556801b9b70f8a400e58c0de31a46f6d3b5 | 158b8c50df5b5eed671f33fab722ebd9d1309070 | refs/heads/master | 2023-01-20T18:10:41.716987 | 2020-04-10T18:25:52 | 2020-04-10T18:25:52 | 247,666,836 | 0 | 0 | null | 2023-01-05T17:07:53 | 2020-03-16T09:56:18 | Python | UTF-8 | Python | false | false | 541 | py | # Generated by Django 3.0.4 on 2020-03-31 13:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('quiz', '0004_auto_20200331_1154'),
('user', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='QuestionUser',
... | [
"michalkwiatek9@o2.pl"
] | michalkwiatek9@o2.pl |
cf3c3b21e8f5b7399fd8217db7c45097ed017be8 | 1279665ee0d6730580b8989b723744cdc90c5148 | /TreeNode.py | 7d094ad16915aae185263a3ae64f753238d3c840 | [] | no_license | danielkiselev/Translator_Python | 003b3f87649618caedb772be4fb55e3b65f02055 | 93260641837df56a02c3930adaf2d72877d33984 | refs/heads/master | 2020-04-08T01:00:38.254113 | 2018-11-23T21:24:54 | 2018-11-23T21:24:54 | 158,877,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | class treeNode:
def __init__(self, data, code):
self.data = data
self.code = code
self.children = []
def addChild(self, child):
self.children.append(child)
| [
"32784081+danielkiselev@users.noreply.github.com"
] | 32784081+danielkiselev@users.noreply.github.com |
f1c51004af2b9f3170c829e779a17aace310e803 | 645ef293d840c96e987596189acf62b4537bd9cd | /lab2/components/finite_automaton.py | 21be7a9c2a9ed266fbab0fcee2cb886568ef642b | [] | no_license | vivere-dally/ubb_y3_lftc | 86b04b4f3c93efd72a2d8bcf1835850682dbf932 | a7a7060f62ba5074e853ca19435b0297b3817d0d | refs/heads/main | 2023-02-09T09:16:37.693965 | 2021-01-05T17:13:27 | 2021-01-05T17:13:27 | 304,396,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,678 | py | import components.transition as trans
class FiniteAutomaton:
"""Class that represents a finite automaton.
"""
def __init__(self, alphabet: list, states: list, initial_state: str, final_states: list, transitions: dict):
"""Initializes a finite automaton class.
Args:
alphabet (... | [
"stefanbuciujr@gmail.com"
] | stefanbuciujr@gmail.com |
aafbdb21c87f6b9bcfb133a11bf516bbee634e83 | d5f75adf5603927396bdecf3e4afae292143ddf9 | /python/paddle/fluid/tests/unittests/test_custom_grad_input.py | 2d12243de52c0603918edf5a2945617621b5d4f0 | [
"Apache-2.0"
] | permissive | jiweibo/Paddle | 8faaaa1ff0beaf97ef7fb367f6c9fcc065f42fc4 | 605a2f0052e0ffb2fab3a4cf4f3bf1965aa7eb74 | refs/heads/develop | 2023-07-21T03:36:05.367977 | 2022-06-24T02:31:11 | 2022-06-24T02:31:11 | 196,316,126 | 3 | 2 | Apache-2.0 | 2023-04-04T02:42:53 | 2019-07-11T03:51:12 | Python | UTF-8 | Python | false | false | 6,613 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
047391e1ff8cbb03e8117646a3fc4005c9504adf | 26d8f17871e2eedd68a3b5acf9f1c9a7aca3cb08 | /snippets/serializers.py | 863e0674a56574d113dee52f8eb245fa2319ad05 | [] | no_license | django-learning/drf_tutiroal | b5e713b9768e721f622dfe2d467b270a3762112e | 2b7f1bd440cd86fd34b2fc3670aea5083bcdf5b8 | refs/heads/master | 2022-12-11T18:17:03.403092 | 2019-12-05T13:37:19 | 2019-12-05T13:37:19 | 226,109,972 | 0 | 0 | null | 2022-04-22T22:54:39 | 2019-12-05T13:35:24 | Python | UTF-8 | Python | false | false | 1,121 | py | from rest_framework import serializers
from .models import LANGUAGE_CHOICES, STYLE_CHOICES, Snippet
class SnippetSerializer(serializers.Serializer):
pk = serializers.IntegerField(read_only=True)
title = serializers.CharField(required=False, allow_blank=True, max_length=100)
code = serializers.CharField(st... | [
"dev.cslee@gmail.com"
] | dev.cslee@gmail.com |
53970fe6d10e8cec87714991c66d5b2bb83a9d35 | 70940d64dad504f50f0cb6d517aeff495f2eeccb | /prefork/server.py | ecd38221a5a4b05a8edde489c7211d775091a08b | [] | no_license | wd055/technopark_highload_hm2 | f9c6b10022daf2cdae030478dbceb05794343f3a | dfece88623e3007af4a410330561edf48db9df02 | refs/heads/master | 2023-08-02T13:58:51.225652 | 2021-09-25T20:57:35 | 2021-09-25T20:57:35 | 410,105,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | import asyncio
import atexit
import os
import signal
import socket
import uvloop as uvloop
from utils import config, request, response
async def handle(sock):
raw = await asyncio.get_event_loop().sock_recv(sock, 1024)
req = request.Request(raw.decode('utf-8'))
result_code = req.parse_request()
resp ... | [
"wd055@mail.ru"
] | wd055@mail.ru |
cddf927dc8b21ae937d56ad44c750b23f38b46ba | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2783/60617/307453.py | ed312ac679931cc10b43d59691abd88befc03747 | [] | 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,345 | py | def Berland_cardGame():
n=int(input())
turn=list()
if n==15:
print("aawtvezfntstrcpgbzjbf")
exit()
elif n==12:
print("fcgslzkicjrpbqaifgweyzreajjfdo")
exit()
for i in range(0, n):
turn.append(input().split(" "))
if n==10 and turn[0]==['qdplghhx', '-649']:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d6d356cf095d96fddaa440f0a63882704a4c531e | 582e13fe12d6beeb30756d612e81b5f9825644bd | /DFS/dfs1.py | 0c0ff83ea6fae69e5f62b98793d8c787364d8014 | [] | no_license | 25349023/Blogger | 59d69bc7122dba5fc294f06aedf036cd7a97683b | 6b8737eee26a0e86b859275a907ae408cc8e783d | refs/heads/master | 2020-03-28T23:52:11.445933 | 2019-04-02T10:07:36 | 2019-04-02T10:07:36 | 94,632,434 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | class Node:
def __init__(self, s):
self.data = s
self.next = [None, None, None]
def build_tree():
root = Node('red-1')
root.next[0] = Node('orange-2')
root.next[1] = Node('lime-3')
root.next[2] = Node('green-4')
root.next[0].next[0] = Node('yellow-5')
root.next[... | [
"noreply@github.com"
] | noreply@github.com |
ef717c03870841bf5efa3c9596fb363d3424ad0c | 935041ed3aecb7c0d1a0f50fe5c377c1783e54e7 | /TeamAwesome.py | 2b5905cb275a672def63d65fed19e627e1b8c0d7 | [] | no_license | microsanch/CSP_Micro2017 | 9f0cf05bf9a5304f042fb0906d627bca7ce903f1 | 87c90044e68233639c3f383442b3e790818e2b56 | refs/heads/master | 2021-01-12T03:00:39.325977 | 2017-01-05T21:12:56 | 2017-01-05T21:12:56 | 78,146,975 | 0 | 3 | null | 2017-01-05T21:13:18 | 2017-01-05T20:45:24 | Python | UTF-8 | Python | false | false | 21 | py | David Guerreca
3.14
| [
"noreply@github.com"
] | noreply@github.com |
dc41615535e47b7fe892714255f4666881d291ec | 8b9229ba6d43c5ae3cc9816003f99d8efe3d50a4 | /apps/QtMinimal/launcher2.py | 3410f0463d8a8fd1be5d7f0cef8baefa9ab98a95 | [] | no_license | JamesLinus/pipeline | 02aef690636f1d215a135b971fa34a9e09a6b901 | 27322a5527deb69c14bd70dd99374b52709ae157 | refs/heads/master | 2021-01-16T22:14:56.899613 | 2016-03-22T10:39:59 | 2016-03-22T10:39:59 | 56,539,375 | 1 | 0 | null | 2016-04-18T20:22:33 | 2016-04-18T20:22:32 | null | UTF-8 | Python | false | false | 2,983 | py | import tkinter
import subprocess
#class QtMinimalXBARLauncher(tkinter.Frame):
# def __init__(self, master=None):
# Frame._init__(self, master)
# self.master.title("QtMinimalXBARLauncher")
choices = list()
listboxes = dict()
choices.append( ("filename",
["c:\\models\\icido\... | [
"matavenrath@nvidia.com"
] | matavenrath@nvidia.com |
57cb562139621d6f43d8c42e92b2d5da13ae4e7b | 36d1af455d542a3321289c974f4b1a2b4dadf3be | /StmtSeq.py | 85d1258917c0d992e2784fe731b82dc6751a83dd | [] | no_license | motomaniak/InterpreterProgram | 778a1d24c1357c2465dd7610318e9676b82b8e84 | 0b4fe1e71cfc4d85388d5a3e60c602c9abf3d8e1 | refs/heads/master | 2021-01-10T14:35:27.242613 | 2017-01-27T21:43:07 | 2017-01-27T21:43:07 | 80,242,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import Stmt
import pdb
class StmtSeq:
def __init__(self,t, inData):
self.st = Stmt.Stmt(t, inData)
self.case= 0
self.t = t
self.inData = inData
def parse(self):
if self.t.isStmt():
x = int(self.t.peek())
if x in [5,8,10,11,32]:
self.st.parse()
else:
print "There was an unintended erro... | [
"noreply@github.com"
] | noreply@github.com |
b907f96478917192ab46c9bd004800704b20c2dd | 25f79d934fe25d67f5f9bcf464c52736e684a532 | /singlecell/pipeline/map_patient_virus.py | eef68d84aecb45e9b4643fd3631259d378debba5 | [
"MIT"
] | permissive | iosonofabio/Zanini_et_al_DENV_patients_2018 | f6e581a9db773fad49e491830fe36ab4b33a5c03 | 9d68c929d9d09d12ced9ade2d07673af2d142aa0 | refs/heads/master | 2023-02-20T18:44:22.603678 | 2018-09-23T18:27:28 | 2018-09-23T18:27:28 | 140,030,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,081 | py | # vim: fdm=indent
'''
author: Fabio Zanini
date: 03/06/18
content: Pipeline for virus mapping within patients AFTER the rough virus
reads have been identified in the Snakemake pipeline. The thing is
Snakemake is VERY slow to construct that graph ;-)
'''
import os
import sys
import n... | [
"fabio.zanini@fastmail.fm"
] | fabio.zanini@fastmail.fm |
f7903f29ba482880aa370a7cad1dd83fbbd716f8 | 0467d81be1bfebf1184d341cd2d20b2867525017 | /kpi_tests_parser_for_git/csv_to_json.py | a706db6389c8e764cbd05ef82b2a39a842863276 | [] | no_license | ezik/tasks | 464425efedbd62c9f3aba570c42e47cff2ca9865 | e84d5d3054ba387b99e467583de15ece3f0cd6f1 | refs/heads/master | 2023-05-30T03:13:06.625484 | 2020-01-17T09:44:21 | 2020-01-17T09:44:21 | 226,717,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import os
def csv_to_json(dir_path):
"""
Renames csv files to json. Initially results are generated as json files and re-formatted to csv. This
function reverse this.
:param dir_path: path where csv files from carlo kpi run located
:return: None
"""
for dirpath, _, filenames in os.walk(dir... | [
"noreply@github.com"
] | noreply@github.com |
bfb99ca7cd5dd92c96c283eb04c7ea701922e019 | c2bccb70c592b72448ddf940e6caaa164279967f | /store/urls.py | 227b8af651b8cb0861059fbc5cceea70d5a519ab | [] | no_license | aloulouyessine/Django_Elfirma | 28ea89e8d5ad5e049c9433a91a6fb0cb2a1031a1 | 11cfb311646be82230793839413f5c3f777d1640 | refs/heads/master | 2023-05-08T13:47:49.263655 | 2021-05-31T22:34:29 | 2021-05-31T22:34:29 | 372,638,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.urls import path
from . import views
urlpatterns = [
#Leave as empty string for base url
path('', views.store, name="store"),
path('store/', views.store, name="store"),
path('cart/', views.cart, name="cart"),
path('checkout/', views.checkout, name="checkout"),
path('home/',views.home,name="home"),
... | [
"aloulouyessine2@gmail.com"
] | aloulouyessine2@gmail.com |
c8fa0e588d99a5b271d5405f813a30aebee35779 | 9a92799e2ca8aa75895c0cc45e0077e5c0fe1fcd | /rasa-bot/drafts/spacy-server.py | 2b90c696d2fa17085278af414cb708ed7833251b | [] | no_license | gabrielboroghina/mem-assist-conv-agent | 27a5b57f52f083d5c6777629ecf73f402fb08f72 | c63afe5006070cc2a104a1236d287fb526c2b30a | refs/heads/master | 2023-05-07T18:41:25.335378 | 2020-10-27T12:29:35 | 2020-10-27T12:29:35 | 246,593,375 | 0 | 0 | null | 2021-06-06T05:27:30 | 2020-03-11T14:28:12 | CSS | UTF-8 | Python | false | false | 1,373 | py | """
Server for accessing spaCy's NLU features from a web application.
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import spacy
from spacy import displacy
nlp = spacy.load("spacy_ro")
PORT_NUMBER = 3333
class RequestHandler(BaseHTTPRequestHandler):
def parse(self, phrase):
doc = nlp... | [
"gabrielboroghina@outlook.com"
] | gabrielboroghina@outlook.com |
de32c78c72c9358ec437b32cacdb93ba23c1fa23 | 744db61d9f5e548956022457e363ced4d3328878 | /ps2/test_median_finder.py | b160274c0f3ae4256a7a7b7cfca04441470696e7 | [] | no_license | stuartsan/algscourse | 26da00d07ffbe5132610102680078c6a9f559d57 | 56a784f40f1128219b84fabe3473f8e2ea30d65d | refs/heads/master | 2021-01-01T18:34:39.105898 | 2014-04-11T00:24:08 | 2014-04-11T00:24:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | """Test two simple ways of finding the median of a three-element list."""
import random
def m():
"""Test whether min(max(list)) returns the median. (It does not.)"""
while True:
k = 1000
lst = [random.randint(-k, k) for i in range(3)]
if sorted(lst)[1] != min(max(lst[0:2]), lst[2]):
... | [
"brannerchinese@gmail.com"
] | brannerchinese@gmail.com |
87004f51e72498ea8ff0fee7cfacb77dc1779270 | ced8d87d1fa10d577516793102851bfd1ec32cfa | /arquivos.py | 640eb9358537818068dbd56142a9a1498a6c6d09 | [] | no_license | JheniferElisabete/Python | 6538adf58144791b62bd9f73f2c9b26b475035dd | f7873623fca53424b83cc483d86cf023e10158f5 | refs/heads/main | 2023-05-26T16:51:47.920078 | 2021-06-05T03:11:13 | 2021-06-05T03:11:13 | 373,354,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | '''
dentro de um arquivo de texto com o py de maneira automatica
w -> Escrever
a -> Alterar
r -> Ler
\n -> pula linha
'''
#declara um nome para o arquivo, se existir ele vai trabalhar em cima daquele arquivo, senão ele cria um novo (dentro da pasta que o arquivo principal esta)
#cria uma variavel e usa a função... | [
"noreply@github.com"
] | noreply@github.com |
148a12685a56009ec0a4028f1e90bbb3f81672b6 | a5fd6b06cfeed486e3729de3be2202140656eed6 | /realtors/models.py | 60444962715bcec8e28f72d5df9bb962c32ea960 | [] | no_license | Sevikus/btre_project | ca723bc1372d7a717d62d3efc430b245384b6d37 | 729b7e6e118a6a409e6ffdbd7f44f10a09d95a81 | refs/heads/master | 2020-09-30T04:02:43.627869 | 2019-12-10T19:25:29 | 2019-12-10T19:25:29 | 227,197,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from django.db import models
from datetime import datetime
class Realtor(models.Model):
name = models.CharField(max_length=200)
photo = models.ImageField(upload_to='photos/%Y/%m/^d/')
description = models.TextField(blank=True)
phone = models.CharField(max_length=20)
email = models.CharField(max_len... | [
"dragansevo.ds@gmail.com"
] | dragansevo.ds@gmail.com |
aaced4595be61166c67bc9e708fcdcf08989b133 | 45dd427ec7450d2fac6fe2454f54a130b509b634 | /homework_6/a2.py | 43866c4d2513ffd176bec3aca244d43524336665 | [] | no_license | weka511/smac | 702fe183e3e73889ec663bc1d75bcac07ebb94b5 | 0b257092ff68058fda1d152d5ea8050feeab6fe2 | refs/heads/master | 2022-07-02T14:24:26.370766 | 2022-06-13T00:07:36 | 2022-06-13T00:07:36 | 33,011,960 | 22 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | '''
Path sampling: A firework of algorithms
This program encompasses both version of the program from step A2.
Function 'evolve' carries out the Markov Chain Monte Carlo evolution,
'plot' produces the graphs, and 'compare' allows us to judge whether the
distributions match.
'''
import random, math, pylab
... | [
"simon@greenweaves.nz"
] | simon@greenweaves.nz |
31d16535084b7bbe5bd6380d13b40cdeb814e697 | 1b2a1f807b98034567e936b9b5c76c2fc89b908a | /adj_tf/models/albert/modeling_tf_albert.py | 41dc434e0cb716761948190ee55d9a1250aa5a9e | [] | no_license | Adreambottle/Transformer2GP | 48c955d8eb155caef4c24a3c03ee3aa9ab0bd3da | 5ba1a5005c2ad21066304cdeb1d7c2587c8191da | refs/heads/main | 2023-07-07T14:17:51.673437 | 2021-08-17T14:14:56 | 2021-08-17T14:14:56 | 397,279,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70,146 | py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License... | [
"adreambottle@outlook.com"
] | adreambottle@outlook.com |
d3b8e62fee8dbdb31c0ad6e0e6956cf3d36fa35b | 1a31fce39e8c83e32a79389132867a048518d3b9 | /backend/venv/bin/pip | 5a1e94108c38ab27cca4c3a7946035206bc8d128 | [] | no_license | ziminyuri/Verbal-Decision-Analysis-SNOD | 54f3c5dfa57204e69f126799aea8455985233aac | f580794c9a902a887d05e97597c7ddb5de36c2d5 | refs/heads/master | 2023-03-13T05:12:17.696971 | 2021-02-11T13:17:42 | 2021-02-11T13:17:42 | 297,934,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | #!/Users/zimin/Documents/GitHub/Verbal-Decision-Analysis-SNOD/backend/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zimin.yuri22@gmail.com"
] | zimin.yuri22@gmail.com | |
2626379928ce4d207789a77c1bcc5ed5fb915ad1 | 5d9b7e117373d14d3ee720b33848b7e4c0d06e5a | /spaghettibin/mainapp/patterns/utils.py | 8c458ac1e1516af2637ddb0d703209f6b3ca6366 | [] | no_license | loneloon/spaghettibin | 36873fc56175b6ae44165ce3ed0f65c84e63f4e3 | 6e4c0e3961cdfb1b22775d4b1290f1671fb79ca9 | refs/heads/main | 2023-03-01T01:54:01.075530 | 2021-02-16T05:48:58 | 2021-02-16T05:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,412 | py | import re
signin_link = '/signin/'
def parse_queries(data: str):
result = {}
if data:
if '&' in data:
params = data.split('&')
else:
params = data.split('\r\n')
while '' in params:
params.remove('')
for item in params:
k... | [
"f.kleshev@gmail.com"
] | f.kleshev@gmail.com |
b31ccd4b4007cb4ee5b887a84613fa6b8a303ae4 | 0211132a35d1fb990a061ab28eec3b00363c7c42 | /setup.py | 20144d27c7e4b35114002a3455cf25664c086e8e | [
"BSD-3-Clause"
] | permissive | victordeleau/codae | bb312fa006683e496c8dc41da84fd22202db57a7 | d5b8351334df64b30b3f6929c934a936b66ed963 | refs/heads/master | 2022-11-27T21:05:56.773564 | 2020-07-25T15:24:31 | 2020-07-25T15:24:31 | 178,262,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from setuptools import setup, find_packages
setup(
name='codae',
version='1.0',
packages=["codae"]
) | [
"victor.deleau@gmx.com"
] | victor.deleau@gmx.com |
39d331e59d88c829c46113d50cfb446786f0fdfa | 0d78474be6255f053d69d081d69caed76e46fe48 | /aol/facilities/models.py | faab6649b33bb74829f6a6998b92ca45b8eba82b | [] | no_license | conwayb/aol | 5eff86ce1addaeb82d6437d1f548409e2b962e6e | d29538a502d028574e142baca508db5bfc4430ca | refs/heads/master | 2020-04-05T21:32:20.035371 | 2016-11-04T23:59:04 | 2016-11-04T23:59:04 | 12,762,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,885 | py | import requests
from django.contrib.gis.db import models
from django.contrib.gis.gdal import CoordTransform, SpatialReference
from django.contrib.gis.geos import Point
from django.db import transaction
class FacilityManager(models.Manager):
def to_kml(self, bbox):
return Facility.objects.all().extra(
... | [
"mdj2@pdx.edu"
] | mdj2@pdx.edu |
1979fca7aa9b1817738c9706a16ba34f22f64692 | 4908b1d34d69c1cb652f25049552562574e1075f | /2020/Day-22/Crab_Combat/example.py | 25da40021ae28995dac1a997eebd358fed3a5fe5 | [
"MIT"
] | permissive | sreekesari-vangeepuram/adventofcode | 3d4ad98a25a30640182d928538b421e00ad8259d | 645531be0208affe042ac0328105b9ef3cfc9dbf | refs/heads/main | 2023-07-26T13:36:03.036721 | 2021-08-11T08:27:25 | 2021-08-11T08:27:25 | 317,850,039 | 1 | 0 | MIT | 2021-08-11T08:27:26 | 2020-12-02T12:08:13 | Go | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python
from typing import List, Tuple
def play_space_cards(p1: List[int], p2: List[int]) -> Tuple[str, List[int]]:
b1, b2 = 0, 0 # buffer spaces for both players to space their cards
while len(p1) !=0 and len(p2)!= 0:
b1, b2 = p1.pop(0), p2.pop(0)
if b1 > b2:
p1.exte... | [
"kesari.vangeepuram@gmail.com"
] | kesari.vangeepuram@gmail.com |
731ddf38caa2c4256f0d8a41ee367b3da942d9e6 | bd1793b867d511e24e46b4c51acc5b4371a875c1 | /TestModel/migrations/0001_initial.py | b425cf8231fd2c4e3572c56cfde1b75b2d634056 | [] | no_license | Animoji/vue-python | 5f3a8ebd134e16662869cc814393b922a321a3cd | 1bf1f87dcf126be8e75bb94b6fe3289b84f9a6e9 | refs/heads/master | 2020-03-19T23:56:34.501882 | 2018-06-12T13:42:12 | 2018-06-12T13:42:12 | 137,025,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # Generated by Django 2.1a1 on 2018-06-07 13:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Test',
fields=[
('id', models.AutoField(aut... | [
"32695656+Animoji@users.noreply.github.com"
] | 32695656+Animoji@users.noreply.github.com |
2cbdf4473d404c56a2846b7ae5b0d3379a099e86 | ce702bf0745ec4a44087d07829e9e68a0e81b748 | /Numpy,Panades,Matplotlib/4.1.py | 315a83e3ff241be8cab34142025005ebb1cb0022 | [] | no_license | monster-yjz/learning_1 | 3bab88132c5029d09a0552d7c7e4dd7f4be6bf80 | e69e9bd016b24194f6e67a06540724d2c6933f07 | refs/heads/master | 2022-07-31T13:27:11.498120 | 2020-05-10T14:04:40 | 2020-05-10T14:04:40 | 262,206,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import numpy as np
data1 = [[1, 2, 3, 4], [1, 5, 8, 4]]
arr1 = np.array(data1)
data2 = np.eye(4, 5)
data3 = np.random.randn(4, 3, 4)
| [
"1174388274@qq.com"
] | 1174388274@qq.com |
76da3f488792fec1b25c04baa7b60b38dd552ef4 | f2301f8c438427bbbb573ce91cb7edc9006d154f | /react/render_server.py | a7b190709da4e998a59f92967e3b5c8a81086d67 | [
"MIT"
] | permissive | vijaykunapareddy/MERNAPP | 5d520cc0d8391f0c63f499580d2fa94942640fc3 | 27d029e462843061dcfa06c86a8fc04bba96f5b3 | refs/heads/master | 2021-01-20T08:01:18.325189 | 2017-05-02T23:44:34 | 2017-05-02T23:44:34 | 90,082,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | import json
import hashlib
import requests
from optional_django.serializers import JSONEncoder
from .exceptions import ReactRenderingError
from . import conf
from .exceptions import RenderServerError
class RenderedComponent(object):
def __init__(self, markup, props):
self.markup = markup
self.prop... | [
"kunapareddy.vijay560@gmail.com"
] | kunapareddy.vijay560@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.