blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
319d58ed3197580898e4249bda21bfd1cec0797b | bad04904c1c939be61682aebabb0e37409011b3f | /authentication/views/admin.py | c64770c7f650d395b8cdb30fe504657672abe7ae | [] | no_license | oosprey/SRPA | 499213d39f41141dc35ab9170510a1f18332b17c | 37017f600f61ea1b4a8c8c928ca65ab2c1f00d29 | refs/heads/master | 2021-01-23T22:00:31.865443 | 2017-10-12T03:16:27 | 2017-10-12T03:16:27 | 102,920,120 | 0 | 0 | null | 2017-09-09T02:17:00 | 2017-09-09T02:17:00 | null | UTF-8 | Python | false | false | 5,429 | py | #!/usr/bin/env python3
# coding: UTF-8
# Author: David
# Email: youchen.du@gmail.com
# Created: 2017-10-06 14:12
# Last modified: 2017-10-07 17:05
# Filename: admin.py
# Description:
from django.views.generic import TemplateView, CreateView, UpdateView
from django.views.generic import DetailView, ListView
from django.c... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
c3b667c46fa1e0574626695cf60534a6c36e3f66 | 0ad7fa728c4a8eabb82edb7eb757a4bef3f0a19f | /ha/I2CInterface.py | 9883e5e8fc196114b756733829d1bfdb8cceedfa | [] | no_license | randyr505/ha | bb5d8d38441cee41a0c961a6e9d92e8cbbf89a0f | 6771c50e3141c4162c89569fa4bce95b5f121867 | refs/heads/master | 2020-12-29T02:54:43.339856 | 2016-05-23T00:51:47 | 2016-05-23T00:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py |
import smbus
from ha.HAClasses import *
class I2CInterface(HAInterface):
def __init__(self, name, interface=None, event=None, bus=0):
HAInterface.__init__(self, name, interface=interface, event=event)
self.bus = smbus.SMBus(bus)
def read(self, addr):
try:
debug('debugI2C',... | [
"joe@thebuehls.com"
] | joe@thebuehls.com |
62efaef4c35f83861dd5de7f6c954b1a4eb15c55 | 11ff14c118240e87c4804d0373e4656d0683d479 | /RatToolAgent/ZapAgent.py | 77c8328884d695c9fe760d84041ff9d8482c5aa6 | [] | no_license | wxmmavis/OS3.1 | e3028d9c79d5a1a17449fea6380fcdda902bdec7 | 26d954344207a82d2298821c3c4f01302393dc7e | refs/heads/master | 2020-03-25T20:07:11.225493 | 2018-08-13T03:20:57 | 2018-08-13T03:20:57 | 144,115,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | import subprocess as sp
import time
import threading
import pdb
import re
from RatToolAgent import _adapter_name
_zap_dict = dict(thread=None,
zap_cmd=r'zap -s%s -d%s -X%s',
pskill_cmd=r'C:\bin\win\pskill')
def send_zap_traffic(source_ip="", destination_ip="", duration="", speed="", proto="", ... | [
"1475806321@qq.com"
] | 1475806321@qq.com |
2967013c3c0c4a820168109b8f5c6c19cdcfe04c | 53396d12d606bebea71c149aed0150af7b17b6f5 | /array/medium/215-kth-largest-element-in-an-array-1.py | af2f422c0b1f7c9ef583847bde0cd8c0f18028da | [] | no_license | superggn/myleetcode | 4c623bd9ad3892d826df73ad3b2c122e08aaa9e9 | 40ca33aefbf0cf746a2d0b7e7f52643ae39591be | refs/heads/master | 2023-02-02T11:06:35.163570 | 2020-12-19T10:36:45 | 2020-12-19T10:36:45 | 322,821,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | """
排序-普通版
https://leetcode-cn.com/problems/kth-largest-element-in-an-array/solution/pai-xu-by-powcai-2/
"""
import heapq
from typing import List
# 排序
class Solution:
def findKthLargest(self, nums: List[int], k: int) -> int:
return sorted(nums, reverse=True)[k - 1]
| [
"939401399@qq.com"
] | 939401399@qq.com |
c6cb81d05d1327c650793835d04ddd9cd32a007c | 750fa6642143723f4585a8668af701cccf053c5d | /barcodecop/barcodecop.py | d617f934941522f30ee36fabd89d40fe41fc19f7 | [
"MIT"
] | permissive | dhoogest/barcodecop | 858c2cb9d553c4334e1edf67ed7d9723de59cfc5 | 586fb0df6889caef1bfe9d7cf2a138667465ca89 | refs/heads/master | 2021-01-25T06:25:19.933057 | 2017-03-13T19:24:45 | 2017-03-13T19:24:45 | 93,571,730 | 0 | 0 | null | 2017-06-06T23:08:28 | 2017-06-06T23:08:28 | null | UTF-8 | Python | false | false | 5,274 | py | #!/usr/bin/env python
"""Filter fastq files, limiting to exact barcode matches.
Input and output files may be compressed as indicated by a .bz2 or .gz
suffix.
"""
import argparse
import sys
from collections import Counter
from itertools import islice, tee, izip
import operator
import logging
from collections import... | [
"noah.hoffman@gmail.com"
] | noah.hoffman@gmail.com |
67fd7ac430f02f90e57cf3651190c6e9dd7bb15f | ff6f60d02ed8d024f7b2db5c9eb4b1196ebf166b | /mysite/blog2/migrations/0002_article_pub_time.py | 761ae2617117e36ba66c73bf9d7ffbcc593e45f4 | [] | no_license | cekong/learnit | 43b707e347ff552754b6592e01dd106c98cd0cc5 | b4111d6fee95960f7b7ca5421b7159cb6122ad2a | refs/heads/master | 2020-03-25T13:53:37.848843 | 2019-08-29T06:46:48 | 2019-08-29T06:46:48 | 143,848,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.0.7 on 2018-10-25 06:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog2', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name='pub_time',
fi... | [
"noreply@github.com"
] | cekong.noreply@github.com |
4afecaed7d549f21e85ffa373e6b6bd797513efe | 3fda2cf03821d5627d6628aca348870ac3d127c2 | /utils.py | 4561fe05ef59a3c5eb413fc664df80a1786c8aa1 | [
"MIT"
] | permissive | valohai/aws-pricelist-tool | 04f0e601cb32995d37f2b207480fe4db4f094f0a | 637ff1add70dc5bab0651abd7051822da9df671f | refs/heads/master | 2020-04-25T22:24:50.348013 | 2019-10-18T16:51:00 | 2019-10-24T13:35:01 | 173,110,705 | 1 | 0 | MIT | 2019-10-24T13:35:03 | 2019-02-28T12:45:16 | Python | UTF-8 | Python | false | false | 2,293 | py | import fnmatch
import itertools
import json
import os
import time
import logging
from typing import Set
import requests
log = logging.getLogger(__name__)
REGIONS = {
'ap-northeast-1': 'Asia Pacific (Tokyo)',
'ap-northeast-2': 'Asia Pacific (Seoul)',
'ap-northeast-3': 'Asia Pacific (Osaka-Local)',
'ap... | [
"akx@iki.fi"
] | akx@iki.fi |
52afe2fe2d6b878609a8ca061380d4bdaf627bc6 | e121ceeeeea5dbacbd3ea36f8d5f226ea43faa89 | /shop_catalog/shop_catalog/urls.py | c162cf0f299f8c60d5e66f4a4badb4ace00cf7b0 | [] | no_license | Ranc58/training_django_shop | dae7b264f849502da0e54f2d70c715335a8d52f9 | 260b7c1be1c120652a791ff355afdd64c06602b0 | refs/heads/master | 2021-05-16T01:34:08.820340 | 2017-10-16T13:50:08 | 2017-10-16T13:50:08 | 107,131,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | """shop_catalog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"rancvova@gmail.com"
] | rancvova@gmail.com |
bb7672c211d730b8ac2e4d8c18f97d833e607424 | 824b582c2e0236e987a29b233308917fbdfc57a7 | /sdk/python/pulumi_google_native/iam/v1/get_service_account_iam_policy.py | cb879aff8b8fc2d019e19500fe1af7596f78c7a2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 24601/pulumi-google-native | ce8faf8455609a9572a8cbe0638c66427bf0ae7f | b219a14201c6c58eaa10caaeacbdaab528931adf | refs/heads/master | 2023-08-23T05:48:31.819709 | 2021-10-08T18:50:44 | 2021-10-08T18:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,255 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | 24601.noreply@github.com |
dc8862d5f210ae31a1ad69817c3da3b3f20d26f3 | 5f4e13201d4c5b7edc8dbbda289380682a187bec | /services/ping_service/coffeehouse_ping/__main__.py | 54c78ce3e37e965ab5bbec124d3465090942452d | [] | no_license | intellivoid/CoffeeHousePy | 92f4fb344de757837c3d3da05cb5513e90408039 | 57c453625239f28da88b88ddd0ae5f1ecdd4de3c | refs/heads/master | 2023-02-23T14:32:01.606630 | 2021-01-28T02:57:10 | 2021-01-28T02:57:10 | 324,419,067 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import sys
from coffeehouse_ping import Server
def _real_main(argv=None):
"""
The main command-line processor
:param argv:
:return:
"""
if argv[1] == '--help':
_help_menu(argv)
if argv[1] == '--start-server':
_start_server(argv)
def _start_server(argv=... | [
"netkas@intellivoid.info"
] | netkas@intellivoid.info |
33cb531d016b53d9e66de77beab3280ef808fe8e | 61ce1dff5e61dde649e3908b6ba7c2a270a78e94 | /users/models.py | fd8f6f26694565195903bf3553da2c8b17a77c6a | [
"Unlicense"
] | permissive | xeddmc/pastebin-django | b9438104691b4c21af4a01e46e8c9ada7ee66403 | 5e38637e5a417ab907a353af8544f64a0ad2b127 | refs/heads/master | 2021-01-12T20:07:53.454983 | 2015-12-21T09:31:29 | 2015-12-21T09:31:29 | 45,421,895 | 0 | 0 | Unlicense | 2019-08-05T19:47:34 | 2015-11-02T21:03:40 | Python | UTF-8 | Python | false | false | 6,890 | py | from django.db import models, transaction
from django.core.cache import cache
from django.contrib.auth.models import User
from django_redis import get_redis_connection
from ipware.ip import get_real_ip
from sql import cursor
from pastes.models import Paste
from pastebin import settings
import datetime
class Favo... | [
"jannepulk@gmail.com"
] | jannepulk@gmail.com |
57502ecd1d88cf997c4b70a179256c8d58f69ed6 | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/internet/iocpreactor/reactor.py | fcb4aa331cc7f1798f284ef1cc49bc7c67159a3c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,463 | py | # -*- test-case-name: twisted.internet.test.test_iocp -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Reactor that uses IO completion ports
"""
import warnings, socket, sys
from zope.interface import implementer
from twisted.internet import base, interfaces, main, error
... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
194ea14eaf4b23e565969d666db913b837eb3d1e | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /doc/rst/conf.py | fee0a9988b79286c7831cf83dfe3e0e67b8e42df | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 6,408 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
a204884acab08f712678c840bab689bf04f996c3 | 1ada3010856e39c93e2483c960aa8fc25e2b3332 | /Binary Tree/DiameterOfBT.py | accf7d2fa64c600f094487d5b2cfaf5cc85c7837 | [] | no_license | Taoge123/LeetCode | 4f9e26be05f39b37bdbb9c1e75db70afdfa1b456 | 4877e35a712f59bc7b8fffa3d8af2ffa56adb08c | refs/heads/master | 2022-02-24T20:09:21.149818 | 2020-07-31T03:18:05 | 2020-07-31T03:18:05 | 142,700,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def height(node):
#Base case
if node is None:
return 0
return max(height(node.left), height(node.right)) + 1
def diameter(node):
if node is None:
return 0
lHe... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
113ffbcabf72b96ff950c9973a922243f540df6a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_216/ch50_2020_09_23_01_25_05_690150.py | 3c21d662ff00c1e961bde777d852f3f46d55eb93 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | def junta_nome_sobrenome(nomes,sobrenomes):
e = ' '
resposta = []
i = 0
while i < len(nomes):
resposta.append(nomes[i] + e + sobrenomes[i])
i += 1
return resposta | [
"you@example.com"
] | you@example.com |
041e262947c9bf7972e3fb50938ddef32cf407cc | 8ed4bf9fbead471c9e5f88e4d18ac432ec3d628b | /hackerrank/algorithm/implementation/bonetrousle.py | f757a2dcc98a7f8c3969b716375b3557e543a413 | [] | no_license | hizbul25/programming_problem | 9bf26e49ed5bb8c9c829d00e765c9401222fb35c | 2acca363704b993ffe5f6c2b00f81a4f4eca7204 | refs/heads/master | 2021-01-10T22:28:26.105787 | 2018-01-21T16:45:45 | 2018-01-21T16:45:45 | 65,394,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # Problem URL: https://www.hackerrank.com/challenges/bonetrousle
firstLine = int(input())
for a in range(0, firstLine):
nums = input()
numsArr = list(map(int, nums.split(" ")))
n = numsArr[0]
k = numsArr[1]
b = numsArr[2]
num1 = 0
rem = 0
answer = True
remAdded = False
count ... | [
"hizbul.ku@gmail.com"
] | hizbul.ku@gmail.com |
0922a16dd2cacc23c8c92cdfddbe8f7cf93ac3b3 | eef4d2330edb808acdb82b92621f927db4911dda | /CURSOR/Batman/8/8.2.py | a2c0c3111209aabce9e3aec7d076b233909bc78b | [] | no_license | OkS369/Education | 648308c755dab6e8510c507211005f34cbed495d | c44f6b0223b567753089627056429d1f4dab7368 | refs/heads/master | 2023-05-24T06:31:10.869633 | 2021-06-15T13:52:23 | 2021-06-15T13:52:23 | 225,942,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | n = 0
while n < 21:
print (f'2^{n} = {2**n}')
n += 1
| [
"romanincognito17@gmail.com"
] | romanincognito17@gmail.com |
6b8f6dbf41521d7d6397fdaf4ef3af2ad4fcc709 | 0d9c964fd7644395a3f0763f484e485fcc67f762 | /new/src/13.03.2021/OOP_ Змейка.py | 92f0fa1f4d92712f47d0aa2dcf595724363bb77d | [
"Apache-2.0"
] | permissive | VladBaryliuk/my_start_tasks | eaa2e6ff031f2f504be11f0f64f5d99bd1a68a0e | bf387543e6fa3ee303cbef04d2af48d558011ed9 | refs/heads/main | 2023-04-14T14:00:08.415787 | 2021-04-24T13:47:38 | 2021-04-24T13:47:38 | 354,538,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | py | from tkinter import *
import random
# Создаем окно
root = Tk()
# Устанавливаем название окна
root.title("Змейка на PYTНON")
# ширина экрана
WIDTH = 800
# высота экрана
HEIGHT = 600
# Размер сегмента змейки
SEG_SIZE = 20
# Переменная отвечающая за состояние игры
IN_GAME = True
# создаем экземпляр класса Canvas (его м... | [
"vladmain9@gmail.com"
] | vladmain9@gmail.com |
6296a611321521ffd2004163b14e0bc37d43db87 | 4d2238210813c1581bf44f64d8a63196f75d2df4 | /dfs.py | d9fd93c39b98cb91429e37fb06a310f3bc3625f3 | [] | no_license | wwtang/code02 | b1600d34907404c81fa523cfdaa74db0021b8bb3 | 9f03dda7b339d8c310c8a735fc4f6d795b153801 | refs/heads/master | 2020-12-24T14:10:33.738734 | 2012-12-14T04:24:47 | 2012-12-14T04:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | class Vertex:
def __init__(self, data):
self.data =data
self.successor = []
#generate a Graph
def petersenGraph():
v = [Vertex(i) for i in xrange(10)]
edges = \
[(0,1), (1,0), (1,2), (2,1), (2,3), (3,2), (3,4), (4,3), (4,0), (0,4),
(5,6), (6,5), (6,7), (7,6), (7,8), ... | [
"andytang1994@gmail.com"
] | andytang1994@gmail.com |
0f69064cc124c90fd91b36b89f7ef3e0045c1c86 | 536ec8e275d0e4ac826ed492a818802f17eb29da | /other/diverta20192/b.py | a1dda6c0b38d2f1cf3ff5d45c0772170667c90dd | [] | no_license | tamanyan/coding-problems | 3d74ee708a943348ee06f1a25c45ee3a35cfd9ee | 415e8230c8386163e1abf5eea217a1e5be8a15bc | refs/heads/master | 2020-07-03T21:36:23.566534 | 2020-06-10T16:33:55 | 2020-06-10T16:33:55 | 202,057,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | from heapq import heappush, heappop, heapify
from collections import deque, defaultdict, Counter
import itertools
from itertools import permutations, combinations, accumulate
import sys
import bisect
import string
import math
import time
def I(): return int(input())
def MI(): return map(int, input().split())
def ... | [
"tamanyan.sss@gmail.com"
] | tamanyan.sss@gmail.com |
94e635241a858c40290e54fa2adf9b57550f8043 | 70fbcca27b1bf777db40319a025ef1c752e2e11d | /ecmo/sockets.py | 34f0deb09632354e978675865e277b199f5c9823 | [] | no_license | thecaffiend/ecmo_data_viz | 051297ddac642a5f0dbae1ef006158c677aca947 | 8f80e4070377f173f1883062dac776339f170aa9 | refs/heads/master | 2021-01-01T18:18:14.818933 | 2011-08-04T03:00:07 | 2011-08-04T03:00:07 | 2,093,412 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,379 | py | from django_websocket import require_websocket
from django.utils import simplejson
from django.core.cache import cache
import math
import time
from copy import deepcopy
from ecmo.models import *
import sys
def jsjson(msg):
return simplejson.dumps(msg, ensure_ascii=True)
@require_websocket
def screen_socket(r... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
6d59e0b17594d456e339941c2951d033580722a3 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=7/params.py | d1044ead6dd845269e7675cbd1da27353c9e2499 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.611238',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 7,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
93cfc9ca0d3256a4230a2b01248704e4b4d40f54 | 3b9d763180410bf0abf5b9c37391a64319efe839 | /toontown/coghq/LawbotOfficeGearRoom_Platform00.py | 71d1e0c89e93a701510c168d907594938d9fc6a4 | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,749 | py | # File: L (Python 2.4)
from toontown.coghq.SpecImports import *
GlobalEntities = {
1000: {
'type': 'levelMgr',
'name': 'LevelMgr',
'comment': '',
'parentEntId': 0,
'cogLevel': 0,
'farPlaneDistance': 1500,
'modelFilename': 'phase_11/models/lawbotHQ/... | [
"Infinitywilee@rocketmail.com"
] | Infinitywilee@rocketmail.com |
23aebddeccd15771fc92e83af3e8ccd3ce23cc3f | b8d89bd2b0a4464146b349c6702d13caf776127b | /resticus/parsers.py | 8ea5511ef0391e77c7ce9628f8939f579708a74c | [
"MIT"
] | permissive | ssteinerx/django-resticus | 7683d20dbf30fe68f5c5ab04219d40f6b8f4627b | 772a89d7bbe3ae72b2551f2dd5b823405460ddf8 | refs/heads/develop | 2020-12-24T06:44:54.998362 | 2016-11-11T14:17:39 | 2016-11-11T14:17:39 | 73,331,769 | 0 | 0 | null | 2016-11-10T00:06:54 | 2016-11-10T00:06:54 | null | UTF-8 | Python | false | false | 823 | py | from django.utils.translation import ugettext as _
from .exceptions import ParseError
from .settings import api_settings
def parse_content_type(content_type):
if ';' in content_type:
content_type, params = content_type.split(';', 1)
try:
params = dict(param.split('=') for param in par... | [
"derek.payton@gmail.com"
] | derek.payton@gmail.com |
4337257b1cc102097378401dabda4458d298a225 | 250e692078234b0e3ef22ad20ab7168f807d1d5f | /plus_minus.py | 65eeef59116a3bb9fbe1461fbf5552b207e0c437 | [] | no_license | AnTznimalz/python_prepro | 694338609985971c5e6eaf8ec463c2a5c62dd836 | bdc1e49fa03704bebcf2ab69a4c1600e4cd46a74 | refs/heads/master | 2022-06-22T23:47:28.396580 | 2020-05-07T15:07:56 | 2020-05-07T15:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | """ Plus Minus """
def ratio():
""" Func. ratio for calculate ratio of the given array """
num = int(input())
msg = input().split()
pos = 0
zero = 0
neg = 0
for i in msg:
if int(i) > 0:
pos += 1
elif int(i) == 0:
zero += 1
else:
neg... | [
"thuchpunapivitcholachat@gmail.com"
] | thuchpunapivitcholachat@gmail.com |
422e9f9d1e84b4d2346b968275d55ea920cf8315 | 85a0ee08b54b2c5e3154e3727b92c37915b4c1de | /test/TT/Strategy7.py | 95b8bc12608c042b3536a3d8cca7e4019aa3e6fd | [] | no_license | yaotony/sandbox-empty | 877da9b9ba0ec658bbdc8acc79a97267f96408b9 | 85f04e5db5d26a04fad9ae4ad6d3c86977a9f865 | refs/heads/master | 2022-05-20T17:14:51.348759 | 2022-05-04T08:06:56 | 2022-05-04T08:06:56 | 35,472,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | import math
import numpy as np
def BoxTheory(df,N,S):
df['BoxTop'] = 0
df['BoxDown'] = 0
df['BoxTopN'] = 0
df['BoxDownN'] = 0
df['BoxTopD'] = 0
df['BoxDownD'] = 0
#Box 交易訊號欄
df['BoxTopD'] = df['high'].iloc[:].rolling(N).max()
df['BoxDownD'] = df['low'].iloc[:]... | [
"tony.exmail@gmail.com"
] | tony.exmail@gmail.com |
416d9a1dc7d09ded0fbe07e5a5ca26b458661b4c | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/0fee3ef0355224294ed245f863279f4c010e2ae7urls.py | 0fee3ef0355224294ed245f863279f4c010e2ae7 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 654 | py | from django.conf.urls.defaults import *
import views
from tastypie.api import Api
from wdd.api import *
api = Api(api_name='v1')
api.register(EntryResource())
api.register(RoomResource())
api.register(UserResource())
urlpatterns = patterns('',
url(r'^$', views.IndexView.as_view(), ... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
fcec50a1fdecd92091643f867728bc4c71f9a203 | bc441bb06b8948288f110af63feda4e798f30225 | /topology_sdk/model/next_builder/import_storyboard_node_pb2.py | 045709a9c0e78c00982b424ec7626203e23d88f5 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 9,885 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: import_storyboard_node.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goog... | [
"service@easyops.cn"
] | service@easyops.cn |
c9b044f351ab64212748338576bcbb175ceb4044 | c2fa3b814a7f56ad804dffc767fc54f5099d60f8 | /models/structs/snakes_400/mu_context_time.py | db61ba172954e8df0734bdef3f116521d2e2303a | [] | no_license | dmely/contextual_circuit_bp | 223b602dbabbe8f8091fbb9106f3103bd5e1dcba | a277bc3146beaa4e3edd2134fc9fb8d3388a6013 | refs/heads/master | 2021-10-07T19:04:14.509951 | 2018-03-31T17:10:33 | 2018-03-31T17:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | """2D convolutional model for Allen data."""
layer_structure = [
{
# 'layers': ['alexnet_conv'],
# 'alexnet_npy': '/media/data_cifs/clicktionary/pretrained_weights/gabors_for_contours_7.npy',
# 'alexnet_layer': 's1',
# 'trainable': True,
# 'init_bias': True,
'layers'... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
a29ae03ae7a520b7baa848f815ccbd35b19898db | 9df795e57589a99838199f97945e96811e288e75 | /W174.py | 7c8477888852a7017a676af9a8e81382b0220935 | [] | no_license | JakeAttard/2810ICTPythonExercises | 945783908a6bf981fc8128a5fc0b4bda6fd52eea | 199cc42402a5cf4d8b86060af377d3906af00429 | refs/heads/master | 2020-06-17T19:07:46.788283 | 2019-07-16T11:22:15 | 2019-07-16T11:22:15 | 196,018,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from PyTest import *
##//////////////////////////// PROBLEM STATEMENT ///////////////////////////
## Given a number n, write while and for loops that add up the numbers in //
## the series 1,2,3,4,..., n-2, n-1, n and display the resultant sum. The //
## number n will be input by the user of the algorithm. ... | [
"jakeattard18@gmail.com"
] | jakeattard18@gmail.com |
d1790f748dc1ee5ef4f3bd93c1d0df251d24eeda | dfb53581b4e6dbdc8e3789ea2678de1e1c4b5962 | /AI/Machine_Learning/Day02/demo03_save.py | a89925c6b46c5a5bdc001dc176b456aa68c53a86 | [] | no_license | biabulinxi/Python-ML-DL | 7eff6d6898d72f00575045c5aa2acac45b4b0b82 | 217d594a3c0cba1e52550f74d100cc5023fb415b | refs/heads/master | 2020-06-01T09:13:17.314121 | 2019-06-08T03:59:36 | 2019-06-08T03:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | # -*- coding: utf-8 -*-
# @Project:AID1810
# @Author:biabu
# @Date:2019/3/26 14:12
# @File_name:demo03_save.py
# @IDE:PyCharm
"""
模型保存
"""
import pickle
import pandas as pd
import numpy as np
import sklearn.linear_model as lm
import matplotlib.pyplot as plt
import sklearn.metrics as sm
x, y = np.loadtxt('../ml_data... | [
"biabu1208@163.com"
] | biabu1208@163.com |
4a37a85ae9cee3fc4bc3d6ff986b2ffe82c6db0a | 527fd39d3a1555800c2c32025fdd15fd86ba6672 | /String/user_input.py | c2f37f7cd060b39d3345d5cdf074553f87dff45d | [] | no_license | rohanwarange/Python-Tutorials | cfd39551f7ff62bd032946976ba3820474e42405 | 53d8fb226f94d027ae7999f9678697206d37d83a | refs/heads/master | 2023-06-18T10:45:36.884324 | 2021-07-07T17:44:22 | 2021-07-07T17:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | name=input("type your name ")
print("hello " + name)
age=input("What is your age ?")
print("your age is " + age) | [
"rohanwarange24@gmail.com"
] | rohanwarange24@gmail.com |
c5af6865211a8e4f3e24f7c23a980bc5eb71dfc4 | 786de89be635eb21295070a6a3452f3a7fe6712c | /ParCorAna/tags/V00-00-05/src/UserG2.py | c057df1c1414049b1ddc930a968c225c4a9dc031 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,330 | py | '''Example of implementing user code for the G2 calculation.
Notes:
An import of this module should not do anything complicated. Delay anything
complicated until the __init__ method or other methods of the class. The reason
for this is that an import of the module is done when reading the params.py file.
An i... | [
"davidsch@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | davidsch@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
c3bd9b7c3ecbdb2de5e7f3c78ae57b2ded1ebef1 | dccdfc0b58b24035c614a2fcd3efcc6a88cfa51d | /setup.py | 9bf155862a113c7bb84c77fe5c8f87e0b5ae8380 | [
"MIT"
] | permissive | igorsobreira/django-test-extensions | 203bbb19ccb285a7e816b2b225adc11b89bc8107 | d57313401d6964ad0102ad1c584a7b848ba76615 | refs/heads/master | 2021-01-16T21:02:34.784060 | 2011-03-12T02:56:16 | 2011-03-12T02:56:16 | 1,470,571 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from setuptools import setup, find_packages
setup(
name = "django-test-extensions",
version = "0.9",
author = "Gareth Rushgrove",
author_email = "gareth@morethanseven.net",
url = "http://github.com/garethr/django-test-extensions/",
packages = find_packages('src'),
package_dir = {'':'sr... | [
"gareth@morethanseven.net"
] | gareth@morethanseven.net |
cf969a758c84028af52f86848a1607da7e7e5a80 | e86fd9f61a41731deb9d56e1107db04de41b6789 | /beebeeto/poc_2015_0077.py | 96f303abff8c84e77d24cf76f202c39562561b7a | [] | no_license | c0py7hat/POC-EXP | f58e0f1df41e1905e5fdc72b019f8125aac48799 | 7ddf2790012efb7fb5bd258ddcd1e1c25f0cf201 | refs/heads/master | 2020-04-30T07:05:31.390537 | 2019-03-20T08:38:50 | 2019-03-20T08:38:50 | 176,674,030 | 3 | 2 | null | 2019-03-20T08:09:56 | 2019-03-20T07:00:45 | Python | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/env python
# coding=utf-8
"""
Site: http://www.beebeeto.com/
Framework: https://github.com/n0tr00t/Beebeeto-framework
"""
import socket
import urllib2
from baseframe import BaseFrame
class MyPoc(BaseFrame):
poc_info = {
# poc相关信息
'poc': {
'id': 'poc-2015... | [
"noreply@github.com"
] | c0py7hat.noreply@github.com |
79770caee3376d14b2ae8c0350f4fcd214826bdb | 9a78b2fafd64e200f844a2f6f0deb034ffc96c8d | /rentapps/migrations/0001_initial.py | ace5c693acfd27f917134ddf7e9617354dd36024 | [] | no_license | gabrielcoder247/property | 8ba29ae443e03f60a39d73b97cd4b0f9e5fea9c4 | 5620ad7220e2f90d7d95ec711ed3caace4823291 | refs/heads/master | 2020-06-19T05:16:13.632824 | 2019-07-17T18:35:06 | 2019-07-17T18:35:06 | 196,574,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-07-12 12:37
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations... | [
"gabrielcoder247@gmail.com"
] | gabrielcoder247@gmail.com |
59f25ff70be224b12e6cf04bfee0dce4295358cb | 223590e81400eb8192aeb0a56b36b5a80408d4b4 | /untitled0.py | 5d8197e9f495e56c5efd0c87cbde3b294eba5703 | [] | no_license | TianyaoHua/LeetCodeSolutions | c47fd3b6ae0bf60c0656ce12fb88290672c129ed | 418172cee1bf48bb2aed3b84fe8b4defd9ef4fdf | refs/heads/master | 2020-03-06T19:48:13.338630 | 2018-08-10T18:27:52 | 2018-08-10T18:27:52 | 127,037,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 25 16:57:27 2018
@author: Hua Tianyao
"""
class Solution(object):
def dfs(self, color, nums, i, n):
next_index = (i + nums[i]) % n
if color[next_index] == 1:
color[i] = 2
return True
elif next_index != i and color[next_... | [
"hua.tianyao@columbia.edu"
] | hua.tianyao@columbia.edu |
c6dac6d64165754472f17a77ad466a0ca0279b6e | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /last_thing/good_week_and_person/own_eye_and_person/part_and_big_point/problem/problem_or_case.py | 20ae2bf35ce4c8e25534587be86a80ec979d2b7a | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#! /usr/bin/env python
def next_person(str_arg):
public_week(str_arg)
print('own_fact')
def public_week(str_arg):
print(str_arg)
if __name__ == '__main__':
next_person('do_good_day_after_case')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
9682453679a05e8d64bd30fb27ba145b36d956f7 | 78c3082e9082b5b50435805723ae00a58ca88e30 | /03.AI알고리즘 소스코드/venv/Lib/site-packages/caffe2/python/data_workers_test.py | 81fa0f865d93340abf4508206c0454608bf2f22e | [] | no_license | jinStar-kimmy/algorithm | 26c1bc456d5319578110f3d56f8bd19122356603 | 59ae8afd8d133f59a6b8d8cee76790fd9dfe1ff7 | refs/heads/master | 2023-08-28T13:16:45.690232 | 2021-10-20T08:23:46 | 2021-10-20T08:23:46 | 419,217,105 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,757 | py |
import numpy as np
import unittest
import time
from caffe2.python import workspace, model_helper
from caffe2.python import timeout_guard
import caffe2.python.data_workers as data_workers
def dummy_fetcher(fetcher_id, batch_size):
# Create random amount of values
n = np.random.randint(64)... | [
"gudwls3126@gmail.com"
] | gudwls3126@gmail.com |
5a5fd88b8f285217867052540eace6bebb77212d | 8d6ca1631ef5dd98c65147b01a4b186af055813f | /samples/fleetprovisioning_mqtt5.py | f98d67cc23b0cc010707ec4c9fb94998ced71714 | [
"Apache-2.0"
] | permissive | aws/aws-iot-device-sdk-python-v2 | fc888c3c08ccca9b7871ceb60ecb51c87d1bcc34 | 30d6fb27c9ba5b553d25fda5911d16279960f175 | refs/heads/main | 2023-09-04T10:57:42.561856 | 2023-08-28T21:09:34 | 2023-08-28T21:09:34 | 157,452,080 | 346 | 224 | Apache-2.0 | 2023-09-13T18:25:20 | 2018-11-13T21:52:37 | Python | UTF-8 | Python | false | false | 15,154 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0.
from awscrt import mqtt5, http
from awsiot import iotidentity, mqtt5_client_builder
from concurrent.futures import Future
import sys
import threading
import time
import traceback
import json
from utils.command_l... | [
"noreply@github.com"
] | aws.noreply@github.com |
4862104a0fb2371de05ff5051d73fe8321f166a0 | 6ac0bba8c1851e71529269c0d9d89a7c8fa507f2 | /Easy/26.py | 0915536721dec4fcf77cccd8a1e6caa20567b01f | [] | no_license | Hellofafar/Leetcode | e81dc85689cd6f9e6e9756beba070cb11e7b192e | 7a459e9742958e63be8886874904e5ab2489411a | refs/heads/master | 2021-05-16T07:07:19.823953 | 2020-02-17T03:00:09 | 2020-02-17T03:00:09 | 103,690,780 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | # ------------------------------
# 26. Remove Duplicates from Sorted Array
#
# Description:
# Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
# Do not allocate extra space for another array, you must do this in place with constant memory.
#
# For... | [
"buptljf@gmail.com"
] | buptljf@gmail.com |
a365e4289c66e1d3c595093fd34f83502adf51a3 | 3090b3e964601e0392a03c903d28f324b4351936 | /src/verification/tests.py | 865430abb1f493bc192427fbd6115a19476e9f2b | [] | no_license | infoxchange/django-verification | eeebb4f7372ed95d43d8afd6f7b20ebdaa0e295e | 51ac7a648863393d44fe7a2813eccbfbee2eb615 | refs/heads/master | 2021-01-24T23:42:01.913727 | 2014-07-29T08:29:12 | 2014-07-29T08:29:12 | 24,980,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,002 | py | from __future__ import unicode_literals
import random
import hashlib
import datetime
import unittest
from django.core.urlresolvers import resolve, reverse
from django.contrib.auth import get_user_model
from django.core.exceptions import ValidationError
from django import test
from django.http import HttpRequest
from... | [
"kaleissin@gmail.com"
] | kaleissin@gmail.com |
aa5b6f495066efc73bf588601fe5b0f2372803ab | d2024f10e641ab2f28a888d23071edc032299498 | /simple_tasks/realtime_plot_paper_ts_time_based.py | abc861dc00e375a4587e773d46e2b12a8e1f3702 | [] | no_license | chen116/demo2018 | 6f2ae07150182b8e14a2eacbc57bdc79c03e6dee | d289545bcc30445be26e1381d5301d8f657d0c6e | refs/heads/master | 2021-04-27T13:11:44.742650 | 2018-07-14T14:38:37 | 2018-07-14T14:38:37 | 122,435,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,714 | py |
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.widgets import Cursor
from matplotlib.font_manager import FontProperties
from matplotlib.widgets import CheckButtons
import time
fig = plt.figure(figsize=(10, 7))
ax1 = fig.add_subplot(2,1,1)
ax2 = fig.add_subplot(2,1,2)
buf = ... | [
"yvictorck@gmail.com"
] | yvictorck@gmail.com |
56d262b69962f3c5f4793a2e6e4dc4c0a775ee3f | f69fdcbc208045fc0b6f5f83231309d9ee473ff7 | /src/kedja/models/auth.py | 04af025f3ade3f27ecca593937be1b9770514b5d | [] | no_license | kedjaproject/kedja_server | d578266ad5e688dcbd21ceac8694ad60e4b1e72a | 6df14d221c8ea247460e7f4600bf7fa860eb18de | refs/heads/master | 2020-05-07T18:02:16.816912 | 2019-10-22T19:43:58 | 2019-10-22T19:43:58 | 180,751,037 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | import json
from random import choice
from string import ascii_letters, digits
from pyramid.authentication import CallbackAuthenticationPolicy
from pyramid.authentication import extract_http_basic_credentials
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.interfaces import IAuthenticationPolicy
... | [
"robin@betahaus.net"
] | robin@betahaus.net |
0a07346dc2887b6524b57e969d9e6eae196467c4 | 9f5dce388b745c3e7354948a3b833812fb43f202 | /storyscript/Features.py | 5caefb0e1ed20853201f45714032a47017159eff | [
"Apache-2.0"
] | permissive | ramlaxman/storyscript | f9ba96ea85f50a85ade0083209c588acd1783c0a | 274047c4cb4ed7ec301ce4a65f0fb8b98e595cc9 | refs/heads/master | 2023-04-14T14:59:04.036023 | 2019-10-01T19:30:03 | 2019-10-01T19:30:03 | 212,381,736 | 0 | 0 | Apache-2.0 | 2023-04-04T01:23:50 | 2019-10-02T15:53:11 | null | UTF-8 | Python | false | false | 819 | py | # -*- coding: utf-8 -*-
class Features:
"""
Configuration for compiler settings or features.
"""
defaults = {
'globals': False, # makes global variables writable
'debug': False, # enable debug output
}
def __init__(self, features):
self.features = self.defaults.co... | [
"seb@wilzba.ch"
] | seb@wilzba.ch |
ec92634dfe091b522492d966ab421e420a73a01a | 41dc19883789f45b6086399a1ae23995f53b4b2c | /IPython-parallel-tutorial/check_env.py | 85c49fd4c3e695589de399a92b65d5ba442a02d9 | [
"MIT"
] | permissive | sunny2309/scipy_conf_notebooks | f86179ddcd67168b709c755cc01862ed7c9ab2bd | 30a85d5137db95e01461ad21519bc1bdf294044b | refs/heads/master | 2022-10-28T17:27:42.717171 | 2021-01-25T02:24:05 | 2021-01-25T02:24:05 | 221,385,814 | 2 | 0 | MIT | 2022-10-20T02:55:20 | 2019-11-13T06:12:07 | Jupyter Notebook | UTF-8 | Python | false | false | 707 | py | """check_env.py for IPython.parallel tutorial at SciPy 2014"""
import sys
import numpy
import scipy
import requests
import matplotlib.pyplot
import skimage
import matplotlib
try:
from bs4 import BeautifulSoup
except ImportError:
print("BeautifulSoup will be used for an example.")
try:
import networkx... | [
"sunny.2309@yahoo.in"
] | sunny.2309@yahoo.in |
48bc29bb081af5a16c80a9718cac5b56f870de00 | e09930641fa513b821d99674fa0bef3023a7123c | /classification/data_conversion/convert.py | 88e354213c1c3d02a8b1560e350ffbee6f19b71b | [] | no_license | abhilashdighe/loop-unroll-583 | d7106f9d044b308e3cf778c40a8954becc47626e | 9bbbac5b745fc0f33397e3813872ba22379a1ded | refs/heads/master | 2021-01-21T09:18:05.299439 | 2016-03-17T20:22:15 | 2016-03-17T20:22:15 | 45,954,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | import csv
import sys
from sklearn.cross_validation import train_test_split
import cPickle as pickle
loop_to_features = {}
loop_to_timings = {}
with open('features.csv') as features_file:
features_csv = csv.reader(features_file)
for sample in features_csv:
benchmark , loopid = sample[:2]
featur... | [
"="
] | = |
2af238d2ce96798c8a7789cd63e4c8bd8376f814 | c43873b9fb8bca215d937f4281d6368bba02a1b5 | /plan/testsuite/job.py | 9a408603ac095e9eb8fde424f783e76ec14d8755 | [
"BSD-3-Clause"
] | permissive | effyroth/plan | f4d2682f9d6ddb031180ebfae62d36b096a3b15f | 063b0234fe457386d9c1aeef9cfe4c05b959af24 | refs/heads/master | 2021-01-18T17:24:23.672363 | 2014-06-17T03:41:43 | 2014-06-17T03:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,314 | py | # -*- coding: utf-8 -*-
"""
plan.testsuite.job
~~~~~~~~~~~~~~~~~~
Tests the Job classes for Plan.
:copyright: (c) 2014 by Shipeng Feng.
:license: BSD, see LICENSE for more details.
"""
import sys
import unittest
from plan.testsuite import BaseTestCase
from plan.job import is_month, is_week, get_... | [
"fsp261@gmail.com"
] | fsp261@gmail.com |
5442d0553b637f755d53626209f2a0d888a2b510 | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes/117.py | 67d6fabeee26b4579e9906d7101f49b8478c19ab | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,946 | py | data = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, ... | [
"jonathan.sanderson@northumbria.ac.uk"
] | jonathan.sanderson@northumbria.ac.uk |
fdb2d48f4c0c91c9d980efc87584dee29006574d | 54516aed6c3c4dc57873cafd201bef02e9bb419f | /soynlp/noun/_noun_news.py | 1afa5524d41fc7c618eac6cdeea4967ac7b16bed | [] | no_license | Kimchanggyun/soynlp | 5e5da630d91052eb682f154d8f6876c1672431fa | 3c957ed7b9918eaeb39356947e4595dea33b4ccc | refs/heads/master | 2021-04-27T14:40:15.282375 | 2018-02-14T08:19:18 | 2018-02-14T08:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,122 | py | from collections import namedtuple
NewsNounScore = namedtuple('NewsNounScore', 'score count feature_proportion eojeol_proportion n_positive_feature unique_positive_feature_proportion')
class NewsNounExtractor:
def __init__(self, l_max_length=10, r_max_length=7, predictor_fnames=None, base_noun_dictionary=None... | [
"soy.lovit@gmail.com"
] | soy.lovit@gmail.com |
1f4c7521cdae03be724f7fda5a14b675b3ac1ba9 | fd0be9219fbc479548829289921907659dcfe18c | /src/k8s/my_pod.py | 1f5944c99fb3eb7f8b0dc96f19499eb616fa57d1 | [
"MIT"
] | permissive | latonaio/kube-etcd-sentinel | 00f18c2dabada0211aff474afc25b1b79c4c53a9 | bf8d1248ac9b13c30b4624867d8d4d17fa5ab06e | refs/heads/main | 2022-12-19T16:58:28.196293 | 2020-10-21T06:01:22 | 2020-10-21T06:01:22 | 305,906,052 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | from datetime import datetime as dt
from kubernetes import client
from k8s.my_kubernetes import MyKubernetes
class MyPod(MyKubernetes):
def __init__(self, kube_client: client.CoreV1Api, node_name, datetime_fmt):
super().__init__(kube_client, node_name, datetime_fmt)
self.pod_names = []
sel... | [
"kokorononakaniitumo@yahoo.co.jp"
] | kokorononakaniitumo@yahoo.co.jp |
546229f61db0dd8227e6fe61a72e2fea1b2455c8 | 18f8abb90efece37949f5b5758c7752b1602fb12 | /py/django_tools/django-cms/cms/admin/placeholderadmin.py | 6148ae5ccb44debb9ca9ac07a42637c42008b626 | [
"BSD-3-Clause"
] | permissive | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 14,297 | py | # -*- coding: utf-8 -*-
from cms.forms.fields import PlaceholderFormField
from cms.models.fields import PlaceholderField
from cms.models.placeholdermodel import Placeholder
from cms.models.pluginmodel import CMSPlugin
from cms.plugin_pool import plugin_pool
from cms.utils import get_language_from_request
from cms.utils... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
bca470acefa5e161ce2520a221ac6e2465d1d88e | deddca116d34aaeac1193334f6341dffda5bd025 | /umonya/content/views.py | 59d09160f668c61b1ca1bfc6e29e7c113ee06596 | [] | no_license | keegancsmith/Umonya-Website | 7079177fe60b9088acd42184ad496a4fb92ad6d2 | 5575a003dadcc66940cc22564e751051120801cf | refs/heads/master | 2016-09-06T16:46:50.882232 | 2011-07-24T15:04:24 | 2011-07-24T15:04:24 | 2,009,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from annoying.decorators import render_to
from umonya.content.models import Sponsor
@render_to('sponsors.html')
def sponsors(request):
return {
'sponsors': Sponsor.objects.filter(type='Sponsor'),
'collaborators': Sponsor.objects.filter(type='Collaborator'),
}
| [
"keegan.csmith@gmail.com"
] | keegan.csmith@gmail.com |
3fc99ccb5f274b23b2ab4a310a3b211d475f906c | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/meeting/tests_views.py | c049182d7d2229baea703b4903943aff243bc0fa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,806 | py | # Copyright The IETF Trust 2009-2019, All Rights Reserved
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime
import io
import os
import random
import shutil
import six
from unittest import skipIf
from mock import patch
from pyquery import PyQuery
from io... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
9c973488f9d719fd9c2a411440ca647bee688d38 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc071/B/answers/522566_koshin.py | 20bb39dec8949fc4e380efefc6a903dbde19a1ce | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | S=list(str(input()))
a=list('abcdefghijklmnopqrstuvwxyz')
for i in a:
if i not in S:
print(i)
exit()
else:
print('None') | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
eb04578dd4f8e1459026e5d3de2526c389876ca4 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/utils/migrations/0019_auto_20180513_1844.py | 450db0d4d873f520e5f19a49c64c33e02caa89ff | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 1,611 | py | # Generated by Django 2.0.2 on 2018-05-13 18:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('utils', '0018_merge_20180508_1254'),
]
operations = [
migrations.AlterMode... | [
"mani@myhost.local"
] | mani@myhost.local |
ac65ddd449c21c09edc55058e5b68f2044967871 | 62221ae1588e496d278806c63eadd30c6b6ccc56 | /chp44/ex44b.py | ea43712920ed198fd78e467ca3c933fd4ded54e3 | [
"MIT"
] | permissive | udoyen/pythonlearning | 1b2aa32cad2b274fff46ce6abf69363bbfd0efd7 | b157a19ebc1bcf8cb8fb5f76d8a98fcb8e465476 | refs/heads/master | 2021-01-21T04:59:53.287035 | 2016-06-19T19:13:35 | 2016-06-19T19:13:35 | 48,765,097 | 0 | 0 | null | 2016-06-18T23:07:23 | 2015-12-29T20:06:48 | Python | UTF-8 | Python | false | false | 246 | py | # Override Explicitly
class Parent(object):
def override(self):
print "PARENT override()"
class Child(Parent):
def override(self):
print "CHILD override()"
dad = Parent()
son = Child()
dad.override()
son.override()
| [
"datameshprojects@gmail.com"
] | datameshprojects@gmail.com |
3d900bbbb3870178d5f961b5086c1f23d4531ff1 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/replit/identity/verify.py | 532795d5cfe6b08b999c2c34f721ca585de3d35f | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/22/41/ff/651c060c2d804e00772fb16ad5742f3413e927507140067eb1700cef17 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
8ea1165a34eb37731299f45c15b41003279813a3 | 5698fb67c9925902832f69738f1f116bb837528e | /pizza/forms.py | d4bf6b7531157eea4f9afb3d0f6d67b5aa4ac1a9 | [] | no_license | lo1cgsan/djangoapp2 | ebcc1a2e5758ec2a566d5292ebb3f377bc53dfe7 | 28aebc44f8a0e70f239626da37fa9bdeab44177c | refs/heads/master | 2023-04-28T09:36:55.483445 | 2021-05-16T18:12:59 | 2021-05-16T18:12:59 | 206,551,530 | 0 | 0 | null | 2023-04-21T20:42:23 | 2019-09-05T11:50:44 | Python | UTF-8 | Python | false | false | 195 | py | from django.forms import ModelForm
from pizza.models import Skladnik
class SkladnikForm(ModelForm):
class Meta:
model = Skladnik
fields = ('nazwa', 'cena', 'jarski', 'pizze') | [
"lo1cgsan@gmail.com"
] | lo1cgsan@gmail.com |
55db7e12ea7dea676a28d62fd2b98986a76904b9 | 5c6ccc082d9d0d42a69e22cfd9a419a5b87ff6cd | /coursera/pythonHse/third/17.py | c6a636de267b026260f08684218d38d2b49704b3 | [] | no_license | kersky98/stud | 191c809bacc982c715d9610be282884a504d456d | d395a372e72aeb17dfad5c72d46e84dc59454410 | refs/heads/master | 2023-03-09T20:47:25.082673 | 2023-03-01T08:28:32 | 2023-03-01T08:28:32 | 42,979,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # Дана строка. Найдите в этой строке второе вхождение буквы f, и выведите
# индекс этого вхождения. Если буква f в данной строке встречается только один
# раз, выведите число -1, а если не встречается ни разу, выведите число -2.
# При решении этой задачи нельзя использовать метод count.
# s = 'comfort'
# s = 'co... | [
"kerskiy-ev@pao.local"
] | kerskiy-ev@pao.local |
1ea86dcdfe9956c456106c7ec0a97a6d8c419cd0 | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /python/dgl/distgnn/tools/__init__.py | 25bdf4c65809df987d8ca20c5e781a9a93bdc9f1 | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 114 | py | """
This package contains extra routines related to Libra graph partitioner.
"""
from .tools import load_proteins
| [
"noreply@github.com"
] | dmlc.noreply@github.com |
9fd947528b778aef4c2487cc0fd92ba8504da87e | 0234ad09e974ca91947751dea575a4fb4d2d138d | /tests/commands/element/test_misc.py | 2e0381c1559ee70ad8c52362e0fef632fa26ecf3 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | o3seespy/o3seespy | 8e0cee872ec4ec88b81af6c39b6d9287e6d6e057 | 57e47940cf6c0979215a04a11e184e38fd6f73a5 | refs/heads/master | 2023-09-04T18:38:45.126336 | 2023-08-19T01:13:54 | 2023-08-19T01:13:54 | 216,960,642 | 18 | 6 | MIT | 2023-02-08T00:40:39 | 2019-10-23T03:31:48 | Python | UTF-8 | Python | false | false | 1,312 | py | import o3seespy as o3 # for testing only
import pytest
def test_surface_load():
osi = o3.OpenSeesInstance(ndm=2)
coords = [[0, 0], [1, 0], [1, 1], [0, 1]]
ele_nodes = [o3.node.Node(osi, *coords[x]) for x in range(4)]
o3.element.SurfaceLoad(osi, ele_nodes=ele_nodes, p=1.0)
def test_vs3d4():
osi ... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
8e7e2b242a40a59a3882ec99d3e0e89f24f03055 | b7ae24b0dd67a7fafbf0253f24c80924df88da62 | /lab/logger/loop.py | c2ba8b296b533dc4d7b722622f7fd1cf8c2792b3 | [
"MIT"
] | permissive | gear/lab | b3a2b1e5babc1adb172f842651e4db5d20939a16 | ad1c5838acbcc98abb5d5d93d5c7a6c2b74bdfa2 | refs/heads/master | 2020-12-19T01:30:33.478027 | 2020-01-23T10:30:52 | 2020-01-23T10:30:52 | 235,579,450 | 0 | 0 | MIT | 2020-01-22T13:29:16 | 2020-01-22T13:29:15 | null | UTF-8 | Python | false | false | 3,712 | py | import math
import time
from typing import Optional, Dict
from lab.logger import internal
from lab.logger.sections import LoopingSection
from .colors import Text
class Loop:
def __init__(self, iterator: range, *,
logger: 'internal.LoggerInternal',
is_print_iteration_time: bool):... | [
"vpjayasiri@gmail.com"
] | vpjayasiri@gmail.com |
8924942cf9a7e1481b811816c032ff48f0bbd05e | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc108/A/4984031.py | 47e9337053e96ed5e74b5561b5e2ace37987971b | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | n = int(input())
e = o = n // 2
if ( n % 2 != 0):
o += 1
print(e * o) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
c81184fc056080d1b7ac9ab3668ec51f80548815 | 238cff74530e5571648da88f127d086d2d9294b4 | /0x08-python-more_classes/6-rectangle.py | a84bd8002a4564362e770c5557e21640e606a829 | [] | no_license | Achilik/holbertonschool-higher_level_programming-6 | b92fcbd1bc6bbedcfef4b49bb3907d97b8be41ff | d0c46cc5ed2bfd1c8d75ce4a2a7604fc4f3f1c5c | refs/heads/master | 2023-03-21T08:03:31.613145 | 2018-09-08T10:10:53 | 2018-09-08T10:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | #!/usr/bin/python3
"""Contains the rectangle class"""
class Rectangle:
"""A rectangle class"""
number_of_instances = 0
def __init__(self, width=0, height=0):
"""Initilizes a rectangle"""
self.width = width
self.height = height
Rectangle.number_of_instances += 1
def __... | [
"sidneyriffic@gmail.com"
] | sidneyriffic@gmail.com |
4d0c92e543eecad07812775d1c61c09793a91b41 | 4eb67371900b24faab41ca615612c41f78939bef | /stockpy_venv/Scripts/pip-script.py | 28c9fc512610a5dbff315b2e8c74e484ab258a30 | [] | no_license | CyborgVillager/ja_stock_pydjango | 1670b8b48c238994cd7f604954b6d5f9176f1f8c | b352bc1d4d91e809ce8b34b7d85eb7f705b3e98c | refs/heads/master | 2020-10-01T00:19:39.965922 | 2019-12-15T20:02:57 | 2019-12-15T20:02:57 | 227,406,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!D:\PyProject\GitRespo\stock_pydjango\ja_stock_pydjango\stockpy_venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
50c67bed7ba721e1cbacce1759cd7d0a11a0e433 | 3da7f8a1fae54b4aa6f081e049e03ce28c0d7381 | /venv/Lib/site-packages/pip/_vendor/urllib3/__init__.py | f05ac4feb8638484d1b140b92ec7e5b6b291bd7d | [] | no_license | 1751605606/PersonalBlog | 96259196848418be5344520dda4b94b28f4d85e0 | 29b364897075e0ea6ce358ce0041b5ce29262e32 | refs/heads/master | 2022-09-28T11:05:54.016739 | 2019-12-17T13:19:15 | 2019-12-17T13:19:15 | 222,211,569 | 1 | 0 | null | 2022-09-16T18:13:09 | 2019-11-17T07:17:04 | Python | UTF-8 | Python | false | false | 2,683 | py | """
urllib3 - Thread-safe connection pooling and re-using.
"""
from __future__ import absolute_import
import warnings
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
from . import exceptions
from .filepost import encode_multipart_formdata
from .poolmanager import PoolManager, ... | [
"16302010030@fudan.edu.cn"
] | 16302010030@fudan.edu.cn |
c56b4d049ae904203932b8be248c75f798ac22ab | 2a6d385c7737aea3c6b49eef9252babb7557b909 | /Scripts/submitDY.py | 5ffaab269ea817873d6d083ec627f80c3c6dd808 | [] | no_license | Sam-Harper/usercode | 1b302a4b647e479d27a9501f9576bd04b07e111a | fa43427fac80d773978ea67b78be58d264f39ec8 | refs/heads/120XNtup | 2022-08-26T12:59:53.388853 | 2022-07-12T16:52:46 | 2022-07-12T16:52:46 | 15,675,175 | 1 | 11 | null | 2022-07-21T13:27:57 | 2014-01-06T13:54:22 | Python | UTF-8 | Python | false | false | 3,154 | py | #!/usr/bin/env python
import threading
import subprocess
class JobThread (threading.Thread):
def __init__(self, cmds):
threading.Thread.__init__(self)
self.cmds=cmds.split()
self.stdout=None
self.stderr=None
def run(self):
# print self.cmds,
import subprocess
... | [
"sam.j.harper@gmail.com"
] | sam.j.harper@gmail.com |
fb30adb175d3b157046e8a351c35bbae75a1518a | af41c215f420bbd66067d6dc851ce41d9ed40819 | /CRBM/CRBM_linBin.py | 37486616144c92d247cebe64ad8654224778066e | [] | no_license | danathughes/pyNeuralNetwork | b704f525bddbc64eabf33c1174dad0649be7bfd9 | dbe2090e50434f33ac7a46845ad67eb5dc7dea87 | refs/heads/master | 2021-01-01T16:30:47.781646 | 2016-01-27T23:11:51 | 2016-01-27T23:11:51 | 19,729,930 | 0 | 4 | null | 2015-02-27T22:22:18 | 2014-05-13T07:32:24 | Python | UTF-8 | Python | false | false | 4,365 | py | import numpy as np
import random
import copy
class CRBM:
"""
"""
def __init__(self, num_visible, num_hidden):
"""
"""
self.num_visible = num_visible
self.num_hidden = num_hidden
# Weights is a matrix representing the weights between visible units
# (rows) and hidden unit... | [
"danathughes@gmail.com"
] | danathughes@gmail.com |
9f8789fccf3df008ae84be98d9f9d1eaa6a2e518 | 2952677aeb4ab4765fd0b588b8cf2a9f58408f3a | /requests/create_geo_objects.py | 22ffb604598aab36bd4d8167fbbfba21747d74b4 | [] | no_license | VToropov1337/MA | a60c69110a557a744a1b1a949d4dbcfc1d2ca8aa | 823c204154f973ded50b62ab2104358f5b2c7131 | refs/heads/master | 2020-03-20T21:58:45.039951 | 2019-06-27T18:24:35 | 2019-06-27T18:24:35 | 137,772,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import requests
import json
import pandas as pd
COL = ['title', 'comment', 'country', 'region', 'city', 'street', 'house',
'ltd', 'lgt', 'address', 'territory', 'metro_city', 'metro_competitor',
'problematical', 'at_code', 'category_id', 'regional_category_id']
token = '***'
params = {'Content-Type':... | [
"vladimirtoropov87@gmail.com"
] | vladimirtoropov87@gmail.com |
d75a7d8956bc4a6db76ca03519d33c3abfa7d77d | 5504bdf5045343145d962537a39fcf4adb823d9b | /simplesocial/posts/models.py | ce20fbee2474320cef8fcfe6b02fac8ceec8f611 | [] | no_license | haruyasu/django-deployment-social | f3df16b67ed96175a23537bdb004eaa51510ac61 | e4cb3ac2b88ce76d17ec3b6d18686966d5e33673 | refs/heads/master | 2021-08-23T03:43:53.213940 | 2017-12-03T01:18:11 | 2017-12-03T01:18:11 | 112,890,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from django.db import models
from django.core.urlresolvers import reverse
from django.conf import settings
import misaka
from groups.models import Group
# Create your models here.
from django.contrib.auth import get_user_model
User = get_user_model()
class Post(models.Model):
user = models.ForeignKey(User,relat... | [
"harukun2002@gmail.com"
] | harukun2002@gmail.com |
c445921ea9533fb28a3bb8e2efc58bb3c23255fd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2880/61020/248415.py | 1e2294e028de52f931cc843ec994906932c8770c | [] | 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 | 533 | py | import os
import sys
s = input()
n = int(s[0:1])
k = int(s[2:3])
'''
8 4
4 2 3 1 5 1 6 4'''
weight_list = input().split()
for i in range(0, len(weight_list)):
weight_list[i] = int(weight_list[i])
left_index = 0
while (left_index < len(weight_list)) and (weight_list[left_index] <= k):
left_index += 1
if le... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
fb5ab7fefb1602942552482e3abcdb141674b869 | 0c9ec5d4bafca45505f77cbd3961f4aff5c10238 | /openapi-python-client/test/test_version_dto.py | 42e411d4b0a5c74d862fd2bbd0bb770eb27d12b8 | [
"Apache-2.0"
] | permissive | yanavasileva/camunda-bpm-examples | 98cd2930f5c8df11a56bf04845a8ada5b3bb542d | 051f8f28c62845e68ce4059ab64264c5a0bdc009 | refs/heads/master | 2022-10-19T20:07:21.278160 | 2020-05-27T15:28:27 | 2020-05-27T15:28:27 | 267,320,400 | 0 | 0 | Apache-2.0 | 2020-05-27T14:35:22 | 2020-05-27T13:00:01 | null | UTF-8 | Python | false | false | 1,309 | py | # coding: utf-8
"""
Camunda BPM REST API
OpenApi Spec for Camunda BPM REST API. # noqa: E501
The version of the OpenAPI document: 7.13.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_clie... | [
"noreply@github.com"
] | yanavasileva.noreply@github.com |
5357c9994f096c88200299181ed677f3cdcb2aa4 | 75275e1cd5ef1a5dddd5fdcb82db03fdf1b609d3 | /lib/ansible/modules/cloud/alicloud/alicloud_vswitch_facts.py | 561d125b8647854e88f68e032792d213c1b52967 | [
"Apache-2.0"
] | permissive | jumping/ansible-provider | bc8b2bc51aa422de89d255ba1208ba8e8ae8f0be | 067ce1aa4277720bc481c2ba08e3d1b408b8f13c | refs/heads/master | 2020-03-13T21:30:50.287049 | 2018-04-27T13:12:23 | 2018-04-27T13:12:23 | 131,297,789 | 0 | 0 | Apache-2.0 | 2018-04-27T13:12:24 | 2018-04-27T13:07:37 | Python | UTF-8 | Python | false | false | 7,048 | py | #!/usr/bin/python
# Copyright (c) 2017 Alibaba Group Holding Limited. He Guimin <heguimin36@163.com.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
93e90f8008b9eb70c05f3db8771a4a04c3ee4d08 | 643e4cf0a3fe3a3ab04cf584b97e38b4838e4e1d | /1.2.2_[T.S].py | 7abc50bd411c7b5bf73393a0ff90c5a3264cd8e8 | [] | no_license | riley-csp-2019-20/1-2-2-catch-a-turtle-leaderboard-tiffany85615 | 188e86ba3a6b85a669321c431305edc702ce5866 | 20ef11e6aafcf1e87d676aa1a2459bf443888791 | refs/heads/master | 2020-08-31T22:19:17.319740 | 2019-11-08T15:59:14 | 2019-11-08T15:59:14 | 218,799,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | # a121_catch_a_turtle.py
#-----import statements-----
import turtle as trtl
import random
import leaderboard as lb
#-----game configuration----
shape = "turtle"
size = 10
color = "orange"
score = 0
timer = 5
counter_interval = 1000 #1000 represents 1 second
timer_up = False
#leaderboard variables
le... | [
"noreply@github.com"
] | riley-csp-2019-20.noreply@github.com |
83d75d742cdf7f8b7d4970dff0532f6e23253ee2 | 171179bbef63781fa55ffe94bd33868578272db0 | /prog/lu.py | 83a4dca99e822dc012b36010c749e84aba2dfab5 | [] | no_license | nineties/math-seminar | 9a038a4fb88bbcb2fbc2456860a3bd88b99ca10e | 51bbc071aa46418abf525969391a502312867c08 | refs/heads/master | 2020-04-16T16:36:22.207459 | 2018-09-12T22:41:08 | 2018-09-12T22:41:08 | 12,613,664 | 14 | 7 | null | 2019-11-08T12:10:17 | 2013-09-05T09:06:37 | HTML | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
import numpy as np
def lu(A):
A = np.copy(A) # 作業用
n = A.shape[0]
L = np.identity(n, dtype=float) # 対角行列
U = np.zeros((n,n), dtype=float) # 零行列
for k in xrange(n):
U[k,k] = A[k,k]
for i in xrange(k+1,n):
U[k,i] = A[k,i]
L[i... | [
"nineties48@gmail.com"
] | nineties48@gmail.com |
16d7ba3880938e774a1bd1213fd7bd46d6db8316 | 81529f3d8570db42218b9420fe82ddc3ec7820b6 | /15-exercises/stochastic_gradient_descent_two.py | 15e114c355202edec727a4eb39980aeb15544444 | [] | no_license | rileyL6122428/data-science-from-scratch-notes | f10770030fbdd5062de0477b8997cd33b5acf1e6 | 8202442024a502b13d0b462c398b2dcb74712e38 | refs/heads/master | 2020-07-13T10:25:39.318516 | 2019-08-29T02:45:33 | 2019-08-29T02:45:33 | 205,064,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import random
import pdb
# USUALLY, ERROR FUNCTIONS FOR GRADIENT DESCENT PROBLEMS ARE ADDITIVE
# WHICH MEANS THE PREDICTIVE ERROR ON THE WHOLE DATA SET IS SIMPLY THE SUM
# OF THE PREDICTIVE ERRORS FOR EACH DATA POINT
# STOCHASTIC GRADIENT DESCENT:
# COMPUTES THE GRADIENT OF A SINGLE DATA POINT AND TAKES A STEP
# IT CY... | [
"rileylittlefield@ymail.com"
] | rileylittlefield@ymail.com |
7937369f1aa7ea27e2c1bfb5fe1d8b91569a4c89 | 3fa149cfcdd8ec56d51cf99a16cbf3afbd9b1266 | /django/mysite/blog/views.py | 2f789f2fc7fa924fcdb58c4d500f5c19f37ec596 | [] | no_license | leinian85/project | 045ec90475b012063624151d604d9148d2d8c948 | c2463da30cbdda8c35a557048988260e62212d08 | refs/heads/master | 2020-07-06T16:44:42.993050 | 2019-11-04T06:44:41 | 2019-11-04T06:44:41 | 203,082,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from . import models
def index(request):
return render(request,"blog/index.html")
def list(request):
return render(request, "blog/list.html")
def mypic(request):
return render(request, "blog/mypic.html")
def login(request):... | [
"42737521@qq.com"
] | 42737521@qq.com |
2863c98cb8176410c703c0fd4c2af26245e0829a | ac3db86631a4ab6fd9ef0d1397ccd842cef957fa | /blocks/eyeBlocks/timecomponent.py | 14a3c47580776b1a3ce2feb4754be17b0ad1e669 | [
"MIT"
] | permissive | csparkresearch/ExpEYES17-Qt | 57f5e19196bfd7a04454c0708c33d6eccd36e1e1 | 7a3bdc0df19569c0321434d8fd897439b1854fb1 | refs/heads/master | 2020-12-31T00:30:42.669312 | 2018-04-19T11:11:39 | 2018-04-19T11:11:39 | 86,545,764 | 1 | 4 | null | 2017-07-21T10:00:39 | 2017-03-29T06:22:12 | Python | UTF-8 | Python | false | false | 2,722 | py | # -*- coding: utf-8; mode: python; indent-tabs-mode: t; tab-width:4 -*-
############################################################################
#
# Copyright (C) 2017 Georges Khaznadar <georgesk@debian.org>
#
#
# This file may be used under the terms of the GNU General Public
# License version 3.0 as published ... | [
"georgesk@debian.org"
] | georgesk@debian.org |
3fb4f0e2850f32ab1f80edb8ed59569c4b953632 | 84a5c4c2e0977d42425771098f5f881c750da7f0 | /neomodel_constraints/fetcher/constraints/__init__.py | 73fec18b7981f1156387bb109741685f95637d1e | [] | no_license | SSripilaipong/neomodel-constraints | 6c3023ba156275e48f5f7ebcbdd283ce8d41f9a1 | 4b91185ba9eec993c58e9ae770fd3d0e90f915ae | refs/heads/main | 2023-07-15T09:58:41.451631 | 2021-08-29T13:19:38 | 2021-08-29T13:19:38 | 390,312,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from .data import Neo4jConstraintQueryRecord
from .fetcher import get_constraints_fetcher
from . import v4_2
from . import v4_1
| [
"santhapon.s@siametrics.com"
] | santhapon.s@siametrics.com |
89e30a2a6763156d76c6422ce8f501062ff571fe | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /reverseLeftWords.py | 1e01e7b90c6730cb62f2249769eedb64f27917b7 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py |
class Solution:
def reverseLeftWords(self, s: str, n: int) -> str:
return s[n:]+s[:n]
| [
"zzz136454872@163.com"
] | zzz136454872@163.com |
a1f7908d567bac4f484b55effb0cccdaf55518bb | 83df1fb88f7abba1198284bb4b8dc8d0a7ff6f93 | /src/tools/telemetry/telemetry/internal/backends/chrome/android_browser_finder.py | 6958262d5084870fa2bc43a01507674f3049ebeb | [] | no_license | JamshedVesuna/telemetry | 7f3385399e47b7b98f8d3eec80ade43690956cd7 | 1697886b155f22a42e13aa311538f1db65e6e6ed | refs/heads/master | 2021-01-20T09:12:34.645395 | 2016-01-22T08:40:44 | 2016-01-22T08:40:44 | 47,851,831 | 3 | 2 | null | 2020-07-24T04:58:51 | 2015-12-11T21:25:59 | HTML | UTF-8 | Python | false | false | 8,392 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Finds android browsers that can be controlled by telemetry."""
import logging
import os
import sys
from telemetry.core import exceptions
from telemetry.... | [
"jamshed.vesuna@gmail.com"
] | jamshed.vesuna@gmail.com |
009c7689d899f6b590b2b405a7df7c8ed717a727 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/cuspup/cuspup_985b33e540b199c473b9a9aa9d00f4c4.py | 44cd2b03fca9c53826daa25735c52165e2446bed | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,044 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
a99f0536c1d5f211f5d364eb549957ee8b00dfec | 3c7057226c7bb01cd493cde5742b3979cf030f94 | /lmctl/client/api/behaviour_projects.py | 0b0e73b6319e5993be94a05d25387e22b98be3d4 | [
"Apache-2.0"
] | permissive | sharadc2001/lmctl | 2d047f776d1bbee811801ccc5454a097b1484841 | a220a3abeef5fc1f7c0a9410524625c2ff895a0a | refs/heads/master | 2023-05-27T06:14:49.425793 | 2021-04-29T20:08:52 | 2021-04-29T20:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from .resource_api_base import ResourceAPIBase
class BehaviourProjectsAPI(ResourceAPIBase):
endpoint = 'api/behaviour/projects'
| [
"daniel.vaccaro-senna@ibm.com"
] | daniel.vaccaro-senna@ibm.com |
38f5fcd0c82d2fedebb31c1e82541d9708fd8458 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03252/s222988530.py | d03803223cba2148882efcfde3db4be3936b980f | [] | 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 | 1,205 | py | #from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations,permutations,accumulate, product # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Cou... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7dcfd73cbe7545f48aac779d51ddde20a249fdd4 | 3493c9edcc457ea692aa2f992f79c103f558d9c5 | /alarms/views.py | 51530a89d54e7b91f64f960cdf3d4e94156dbb65 | [
"MIT"
] | permissive | RashaMou/clock-api | ad2427d2a0bda03a05a871d63bd0a35f1fbbfd26 | 57c16e83cdb405feea268c6a03959207a12cb4d0 | refs/heads/master | 2023-07-05T13:18:42.767423 | 2021-08-12T15:15:29 | 2021-08-12T15:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from rest_framework import viewsets
from . import models, serializers
class AlarmViewSet(viewsets.ModelViewSet):
authentication_classes = []
permission_classes = []
queryset = models.Alarm.objects.select_related("sound", "task__crontab").all()
serializer_class = serializers.AlarmSerializer
filter... | [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
d0d4daccbb923c4f2682742e5a3e450c5c0c2db3 | 8b57c6609e4bf3e6f5e730b7a4a996ad6b7023f0 | /appserver/mrsparkle/lib/message.py | 778be4f1fd722f3c66a0b96ba327ed393660c664 | [] | no_license | bullll/splunk | 862d9595ad28adf0e12afa92a18e2c96308b19fe | 7cf8a158bc8e1cecef374dad9165d44ccb00c6e0 | refs/heads/master | 2022-04-20T11:48:50.573979 | 2020-04-23T18:12:58 | 2020-04-23T18:12:58 | 258,293,313 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,980 | py | from builtins import object
import cgi
import cherrypy
import logging
import splunk.util
from decorator import decorator
logger = logging.getLogger('splunk.appserver.mrsparkle.lib.message')
QUEUE_SESSION_KEY = 'queue'
QUEUE_INFO_LEVEL = 'info'
QUEUE_ERROR_LEVEL = 'error'
def get_session_queue():
"""
Create... | [
"splunk@x.y"
] | splunk@x.y |
2f84e673311d417b421b9ae8507b879d52c87744 | 16f11e566c5069a874a99ff33debb47913881bfa | /python/sets/symetric_difference.py | 1845ad05bcf46c0bdf85ba51b2d9ade857fbb091 | [] | no_license | Suraj-KD/HackerRank | 7c5a1a73ea2d2c30370ff5d2dd633aaef315f00a | ef6ba86b2245172de6f62a6fb63916318adef2a6 | refs/heads/master | 2021-06-27T10:30:14.195489 | 2019-03-20T12:33:54 | 2019-03-20T12:33:54 | 129,599,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import sys
def setsym(a, b):
return len(set(a) ^ set(b))
def main():
lines = [[int(x) for x in line.strip().split()] for line in sys.stdin.readlines()[:4]]
print(setsym(lines[1], lines[3]))
if __name__ == '__main__':
main()
| [
"surajdubey302@gmail.com"
] | surajdubey302@gmail.com |
b2426b7f50a539574f6d126b81234c8edd9c082b | cbb9152ea4290fb655caff877101eaeb68236dfd | /students/douglas_klos/session9/mailroom/html_render.py | 9b51232fe9339ad8feb8f3eaac197afba6064c58 | [] | no_license | pauleclifton/GP_Python210B_Winter_2019 | 7105a080d105cd9999933936346d5ae29f232d26 | 661903cd9dc49b294fb9a0c905133a4c3f9d8d0f | refs/heads/master | 2020-04-16T04:26:31.951165 | 2019-03-31T15:22:51 | 2019-03-31T15:22:51 | 165,267,180 | 0 | 0 | null | 2019-01-11T15:39:48 | 2019-01-11T15:39:48 | null | UTF-8 | Python | false | false | 9,989 | py | #!/usr/bin/env python3
#pylint: disable=W0223,W0231,C0103,C0321
""" A class based system for rendering HTML """
# Douglas Klos
# March 14st, 2019
# Python 210, Session 9, Mailroom OO
# html_render.py
class Element():
"""
Framework for a basic element in HTML code.
Class attributes:
tag: Tag used... | [
"dougklos@gmail.com"
] | dougklos@gmail.com |
51469423fd3a93f1c1b7fee30ec663745e8eb641 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_sdk/public/platform-tools/systrace/catapult/common/py_utils/py_utils/cloud_storage_unittest.py | 20586a4bf6631237fae3e2889ba1eca86686ee43 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 136 | py | ../../../../../../../../../../.cipd/pkgs/82/_current/platform-tools/systrace/catapult/common/py_utils/py_utils/cloud_storage_unittest.py | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
aa09f2d8129f95e2dca1a311d322ace71a2eaa32 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_143026.15+195346.7/sdB_sdssj_143026.15+195346.7_coadd.py | 60fd321f363d4a9442ec3bb3c4bf7aaccdebdbb7 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[217.608958,19.896306], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sdssj_143026.15+195346.7/sdB_sdssj_143026.15+195346.7_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
d6837933673c1503000c6d39ad4772b2c03345e5 | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/itkMattesMutualInformationImageToImageMetricPython.py | 81440a32b1811b0ec96222199dc6ed9ec225ad20 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,289 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkM... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
7b2a69f3ac172111bffd9b484e13e7b56ac6be8a | 2a0c2b3b682fdc7a49ff2ea107f53ac4b8fb5d20 | /tool/mySpiderUtil/getFontTTF/__init__.py | 09fb027b761e9a2e1580ff3f506b9974fab89d76 | [] | no_license | NoobsZero/DesignMode | 29f8327c09ecd8f26e9fc3c8618e5fba3de712b2 | 161997377020436491520a10fc3ac927469458f1 | refs/heads/master | 2023-07-08T04:24:59.776257 | 2021-08-17T05:55:46 | 2021-08-17T05:55:46 | 303,366,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # encoding: utf-8
"""
@file: __init__.py.py
@time: 2021/6/11 10:54
@author: Chen
@contact: Afakerchen@em-data.com.cn
@software: PyCharm
""" | [
"870628995@qq.com"
] | 870628995@qq.com |
24940e00c644513f38be88fb79e726ba911f152c | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/Cookie/20180504_ygh_HaiHangDYQiHuo.py | f05a27560ebeffb699133df25782c69739a91286 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,358 | py | # coding:utf-8
# Department : 保障部
# Author : 袁龚浩
# Create_date : 2018-05-02
from datetime import datetime
from FundNavSpiders import GGFundNavSpider
from FundNavSpiders import GGFundNavItem
import json
class HangHaiDYQiHuoSpider(GGFundNavSpider):
name = 'FundNav_HaiHangDYQiHuo'
sitename = '海航东银期货'
chann... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
10a0be8ff0647bb8a664bf5229355fe8e245c642 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03291/s377331832.py | 862748becfb1ad9796cc654b44a9968803c6871f | [] | 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 | 435 | py | s = input()
dp = [[0] * (len(s) + 1) for _ in range(4)]
dp[0][0] = 1
for i, c in enumerate(s):
# use c
if c == "A" or c == "?":
dp[1][i+1] = dp[0][i]
if c == "B" or c == "?":
dp[2][i+1] = dp[1][i]
if c == "C" or c == "?":
dp[3][i+1] = dp[2][i]
# not use c
for j in range(4):
if c == "?":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d80d9361b9b2a5f562f54b6c6ab7714bf12b879c | bb6ebff7a7f6140903d37905c350954ff6599091 | /tools/grit/grit/format/policy_templates/writers/ios_plist_writer_unittest.py | 14a0cab1edc0f641f2616e5c732fce413fab1ad4 | [
"BSD-3-Clause",
"BSD-2-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 6,156 | py | #!/usr/bin/env python
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Unit tests for grit.format.policy_templates.writers.ios_plist_writer'''
import base64
import functools
import os
import plistl... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
0f3ceab2ded03ac9f8f286be4adafe0df10dfe98 | 62cdfa992639a860ab212630b423f86233925a02 | /pralon_accounting_reports/wizard/sales_journal.py | aef033b68e97e07f0f1d4b85e9c44db0c3827501 | [] | no_license | eksotama/prln-prln | dfd1a411a97dbf8c5f5a22b68c031e205b510a2b | 9b3ecc3e1df1e7e795d19a68ab7d915edefc16e8 | refs/heads/master | 2020-03-25T19:49:08.076300 | 2015-12-01T07:38:29 | 2015-12-01T07:38:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,844 | py | # -*- encoding: utf-8 -*-
###############################################################################
#
# Vikasa Infinity Anugrah, PT
# Copyright (C) 2013 Vikasa Infinity Anugrah <http://www.infi-nity.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU A... | [
"aero@aero.(none)"
] | aero@aero.(none) |
bd6301e51bcc84d80811b5a9c3c8e646f908bc2a | dfdb41fdf315819008845949a25800a2a2bd7493 | /jacobi_gs_pixelcnn/jacobi_gs_layers.py | 54bf547f9e1ec2269564e8e8267c4f9e59465749 | [] | no_license | ermongroup/fast_feedforward_computation | 1c0507aebd0b10be86970aef2ab5c1a297f3d2a2 | 6d14294647cfd880f991eacd59c9323643e45ea0 | refs/heads/main | 2023-08-04T23:05:35.960466 | 2021-09-25T18:25:36 | 2021-09-25T18:25:36 | 376,141,511 | 17 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,133 | py | from pixelcnnpp.cached_layers import *
import math
def sum_rightshift_downshift(rightshifted_pixel, downshifted_row, cols, num_blocks, first_index=True):
'''Sums the vertical and horizontal stack.'''
if first_index:
return rightshifted_pixel + downshifted_row
else:
# num_block x B x H x W x C
downsh... | [
"yang-song@live.cn"
] | yang-song@live.cn |
7d76bf001033d051ea34ded6b3e5c8d0d9d5bc2b | aa071e5782c76d8552844329073214ae73f005f0 | /Study_9/Study_9.py | cfe964bcbcd8e8a9713f89965fb88d27deb883cd | [
"MIT"
] | permissive | LeeDaeil/PyQt5_study | 1feff7a934aa9b46c7e70c4de00e02c49f292db8 | ecdd22ce2809ce6f01c8691a7ca75ef1771b7202 | refs/heads/master | 2021-06-24T09:14:32.358137 | 2020-12-06T13:35:30 | 2020-12-06T13:35:30 | 176,840,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | import sys
from PyQt5.QtWidgets import QDialog, QApplication
from ui_data.gui_study_9 import *
import Study_9_re_rc # resource file
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.background_setting()
self.initia... | [
"dleodlf1004@naver.com"
] | dleodlf1004@naver.com |
af5386d8b29e79b56dcf99e9be2b9c056aa19606 | 4b61ae276d8a198017a5986e72fb2c4d991286b3 | /utils/test/visibility_tests/VisibilityDataPrepToolsTestSuite.py | 1c8c2cdfd11164f5afad6e168c8b666a2129fd9c | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | NatalieCampos/solutions-geoprocessing-toolbox | b8e13de5b0686d3f0d521e4e4f99520afc965b14 | de6b175cd97ad4030fb72b3e66995a018448ffbf | refs/heads/master | 2018-01-16T20:20:04.729686 | 2017-07-20T16:33:41 | 2017-07-20T16:33:41 | 24,063,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # coding: utf-8
'''
-----------------------------------------------------------------------------
Copyright 2015 Esri
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... | [
"mfunk@esri.com"
] | mfunk@esri.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.