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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf134c811fb3713e81e175427e899b6ebd34c10f | 00ee6a3c859362bbc20342c568a27ea2a493e427 | /src/x007007007/djapp/localnet/nameserver/models/domain.py | 35a784009909f91f382019ba5f13b41bf6ab4811 | [
"MIT"
] | permissive | x007007007/raspberrypi | 7721b1fde2763fd28db579ca65217b81ee2193ae | 9dfe49666c029b8bb617830a5c5a873a6106d853 | refs/heads/master | 2022-10-04T04:51:29.974216 | 2022-10-03T16:36:00 | 2022-10-03T16:36:00 | 56,951,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from x007007007.djapp import _models
class DomainQuerySet(_models.QuerySet):
def available(self):
return self.filter(enable=True)
class DomainModel(_models.Model):
objects = DomainQuerySet.as_manager()
name = _models.CharField(max_length=254)
enable = _models.BooleanField(default=False)
... | [
"x007007007@hotmail.com"
] | x007007007@hotmail.com |
54efa1c0b889e824fede6b3b02a78c8183256961 | 9a9fb43d866dc8fd829211d2b47328ef1f5ed428 | /PI_ROS_WORKSPACES/test/build_isolated/rosbuild/catkin_generated/pkg.installspace.context.pc.py | a8b861fca59e5dbabc02b4c6fbd5d6206f663874 | [] | no_license | droter/auto_mow | 326df42a54676079cac61fe63c40d5d04beb049b | 3742cb2ef78bc06d2771ac4c679e5110909774f8 | refs/heads/master | 2022-05-19T20:18:33.409777 | 2020-04-29T00:42:24 | 2020-04-29T00:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosbuild"
PROJECT_SPACE_DIR = "/home/... | [
"joshuatygert@gmail.com"
] | joshuatygert@gmail.com |
d80d501c329d043b4b71d7d49c4af48ecc537c39 | 2d00083fbb5e7cec01dd248b61f4ff0520695e3c | /neutron_fwaas/extensions/firewall.py | ef1d92469585825258da5ed923c681f207718e03 | [
"Apache-2.0"
] | permissive | Woody89/neutron-fwaas | 47637d2ad3bf83e9c5211b8940bb09a6a14faf3e | 34b6ae323d8182e38f9ff23efd28e95f5f19c439 | refs/heads/master | 2021-01-22T18:33:21.013535 | 2017-08-19T05:57:24 | 2017-08-19T05:57:24 | 100,765,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,972 | py | # Copyright 2013 Big Switch Networks, Inc.
# 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... | [
"dongpzh@adtec.com.cn"
] | dongpzh@adtec.com.cn |
aa7b589d699b8db00da9ad7ac174df285adf2b18 | fa688be812459dee92b16defaf3446103f7e557c | /models.py | 45775bda2d4e3c55506cd174fe4a979b84e5f298 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | NextFloor/paste | ed042ebb2a711f2438e3aa1e534a540cd572b411 | 829f7dae7f30c621def9378b82b62d19b2ede043 | refs/heads/master | 2023-02-04T00:20:59.229854 | 2020-04-17T06:59:58 | 2020-04-17T06:59:58 | 97,236,204 | 7 | 1 | MIT | 2023-02-02T06:24:20 | 2017-07-14T13:24:01 | Python | UTF-8 | Python | false | false | 3,755 | py | import botocore
import random
import uuid
from datetime import datetime, timedelta
from passlib.hash import argon2
from pygments.lexers import guess_lexer
from sqlalchemy.sql import exists
from flask import abort
from flask import current_app as app
from flask_boto3 import Boto3
from flask_sqlalchemy import SQLAlchem... | [
"devunt@gmail.com"
] | devunt@gmail.com |
3e0e8742d55a9c6fc96366fb5ebe8ab2bab27bff | bfd7de2bf935e969ef64431c3760369525ea9db5 | /백준/1차원배열/OX퀴즈.py | 6eadfa9df4e06df0e2644a435e26bb342aab4aa1 | [] | no_license | greenhelix/AlgorithmStudy | 29923de1c2bf4c484b6ea7070af1868b14c9acf1 | 04019cba5c2de2e1ce472420401952ed96087c96 | refs/heads/master | 2023-05-11T10:51:13.521785 | 2023-05-10T15:05:20 | 2023-05-10T15:05:20 | 238,429,809 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # 백준 8958번
# OOXXOXXOOO 같이 문제의 결과가 있다.
# 연속되는 0의 등장하면 점수를 연속된 0의 수만큼 계산
# input>>
# 5
# OOXXOXXOOO
# OOXXOOXXOO
# OXOXOXOXOXOXOX
# OOOOOOOOOO
# OOOOXOOOOXOOOOX
# output >>
# 10
# 9
# 7
# 55
# 30
n = int(input())
a = []
for t in range(n):
a.append(str(input()))
for i in range(n):
quiz = list(a[i])
count = 0
... | [
"dlrghks4444@gmail.com"
] | dlrghks4444@gmail.com |
b0b95374a9a79730f59536a506870227180732e9 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_Pyranja_counting_sheep.py | 91081f1789d16088e1118c785a1fc6233bb1685b | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 727 | py | #!/usr/bin/env python3
import sys, logging
"""codejam 2016 - counting sheep"""
def solve(n):
if n == 0:
return 'INSOMNIA'
seen = set()
current = n
while True:
for c in str(current):
seen.add(c)
if len(seen) >= 10:
return current
current += n
# ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
a97468b141f51d5c17a5e4ae5faa346f69e48735 | a9b8f84c55aa64d4721de11e34e6fc300453be1b | /public/packages/pymongo/v26/pymongo/common.py | c64de1df07b5565ae3e55f007cf8fe7f666dc3f6 | [] | no_license | xuning992/tfty | f17273db407bb5ca87f583b114a42eb8e83d67fc | 20785621b933d2d6bdc293e953710faef4268bf6 | refs/heads/master | 2022-12-13T22:39:14.696326 | 2017-11-19T15:23:11 | 2017-11-19T15:23:11 | 111,306,251 | 0 | 0 | null | 2022-07-05T21:08:37 | 2017-11-19T15:11:40 | Python | UTF-8 | Python | false | false | 23,381 | py | # Copyright 2011-2012 10gen, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You
# may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"xuning992@163.com"
] | xuning992@163.com |
c37c536fc92fc60bf9634767a43b3d98a1823423 | a995e950a202251be3c674f4b7df3fc0111b0c9b | /isur2/urls.py | 3681e1f549407dbfc8d61c91b00c841a97ae6509 | [] | no_license | asmuratbek/isurlessons | 83188f1ba3469cb92274501fe466bbafc07281e9 | 8fd17b6f57ee16c6cee3361808256f58618fd5ce | refs/heads/master | 2021-01-20T13:17:10.068541 | 2017-05-13T14:17:43 | 2017-05-13T14:17:43 | 90,466,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | """isur2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"asmuratbek@gmail.com"
] | asmuratbek@gmail.com |
944ba90b1bb81dd83b295172537f36ca3534888c | 2e676811db543030bf35b948012570a421683c17 | /tensor2tensor/utils/decoding.py | d84fd740be53eacabaafe945c79042b8b9c2f678 | [
"Apache-2.0"
] | permissive | laulysta/tensor2tensor | 56ecf42e516f5c27c8c02c4d31ea7b0523764cf8 | 4c4245c160269b53816e198d9c7563f016b94793 | refs/heads/master | 2021-07-01T03:25:35.557372 | 2017-09-21T23:57:46 | 2017-09-21T23:57:46 | 104,119,810 | 0 | 0 | null | 2017-09-19T19:36:02 | 2017-09-19T19:36:02 | null | UTF-8 | Python | false | false | 21,439 | py | # coding=utf-8
# Copyright 2017 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"rsepassi@google.com"
] | rsepassi@google.com |
20398c6e71f8ec8412661b985f222cd7d226d5d3 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/databoxedge/v20200901/share.py | df5018071629f9b91ddffa40e82cdcdda468e151 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,808 | 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"
] | bpkgoud.noreply@github.com |
52178c5004f54c1e21eb8c03f81c52949282cbcb | 7002368b209d45dc6f076cab4064fecb1d2cb28d | /openimu/utils.py | 70ba7f1214eed1487d289fc1195e70ec63398c4f | [] | no_license | klaird/python-openimu | 970269769b6246256f45b8c4ed4a7b9cd9b6da66 | 936942491f02d377d152cf19032b380273dadef2 | refs/heads/master | 2022-04-17T17:28:37.192828 | 2020-03-25T04:57:09 | 2020-03-25T04:57:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import sys
import os
import pkgutil
def is_in_bundle():
return hasattr(sys, 'frozen') and getattr(sys, 'frozen') and hasattr(sys, '_MEIPASS')
def get_executor_path():
if is_in_bundle():
path = os.path.abspath(os.path.dirname(sys.executable))
else:
path = os.path.join(os.path.expanduser('... | [
"ywsong@aceinna.com"
] | ywsong@aceinna.com |
78cbe639071b36c9dc723169f358e8c6f3a4a7e5 | dba16143d8fa6aa73ca1d4df7bcfaca42824412c | /src/year2022/day04b.py | e6f81b1ff03c0c75c6dad604b168d793845c54e3 | [
"Unlicense"
] | permissive | lancelote/advent_of_code | 84559bf633189db3c3e4008b7777b1112f7ecd30 | 4b8ac6a97859b1320f77ba0ee91168b58db28cdb | refs/heads/master | 2023-02-03T14:13:07.674369 | 2023-01-24T20:06:43 | 2023-01-24T20:06:43 | 47,609,324 | 11 | 0 | null | 2019-10-07T07:06:42 | 2015-12-08T08:35:51 | Python | UTF-8 | Python | false | false | 435 | py | """2022 - Day 4 Part 2: Camp Cleanup."""
from src.year2022.day04a import Pair
from src.year2022.day04a import process_data
def overlap(pair: Pair) -> bool:
(a1, b1), (a2, b2) = pair
return any(
[
a1 <= a2 <= b1,
a2 <= a1 <= b2,
]
)
def solve(task: str) -> int:
... | [
"lancelote.du.lac@gmail.com"
] | lancelote.du.lac@gmail.com |
78a54bb8303ec0f808abbef1226b492cd124a644 | 1564d12d61f669ce9f772f3ef7563167f7fe13bf | /codechef/august/lunchtime/chefAndTrip.py | 6b92dc5e388dbab98b60015f6c662a736547c0ea | [] | no_license | sakshamk6999/codingPractice | 73ec4873defb0f0d2e47173150a589ee12e5e0a1 | f727aac6d87448b19fc9d48660dc6978fe5edc14 | refs/heads/master | 2020-12-01T20:22:36.299535 | 2020-02-04T05:55:53 | 2020-02-04T05:55:53 | 230,757,937 | 0 | 0 | null | 2020-02-12T20:38:12 | 2019-12-29T14:00:22 | Python | UTF-8 | Python | false | false | 1,583 | py | from collections import defaultdict
for _ in range(int(input())):
n, k = map(int, input().split())
a = list(map(int, input().split()))
record = defaultdict(int)
for i in range(1, n + 1):
record[i] = 1
l = []
i = 0
temp = []
tl = 0
while i < n:
if a[i] == -1:
... | [
"sakshamkhatwani@gmail.com"
] | sakshamkhatwani@gmail.com |
0006254dc5982808aec74a2e9542824225d415d7 | 7e9dbc8dddc3f7e7a74adadabc39c6bc31f5208d | /in_place_rev_linked_list/rev_linked_list.py | e92141ed672ca20d465ca926f70fd25196917a55 | [] | no_license | ashish-bisht/ds_algo_handbook | 113bdb20d40e4b885791218d125aaae957243ded | a1847c8c4cc995995bc4791d093a5a7496e4b15b | refs/heads/master | 2023-01-19T02:07:42.622813 | 2020-11-25T04:16:38 | 2020-11-25T04:16:38 | 309,753,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py |
class Node:
def __init__(self, value, next=None):
self.value = value
self.next = next
def display(head):
while head:
print(head.value)
head = head.next
def reverse(head):
prev = None
cur = head
while cur:
nxt = cur.next
cur.next = prev
pre... | [
"ashishbisht723@gmail.com"
] | ashishbisht723@gmail.com |
6e8fcc257405350e2e5a799997d018555f82b433 | c25a17f0f82c2eebca55bbe180f4c2ccbbf00292 | /03_Data_Science/1_Collection/CSV_Handle/csv_test_01.03.py | 0b0b7e514f9d843c28239b3be0f4ca1ec2808d51 | [] | no_license | superbeom97/jumpjump | a0a4da6f0df0483ef0cef9833b5fe0402ec63c9c | fc45efce2a2b00c614aa5aa54b36be1572ed40ce | refs/heads/master | 2021-09-15T09:35:16.903857 | 2018-05-30T00:00:59 | 2018-05-30T00:00:59 | 111,883,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,496 | py | import csv
import math
def get_csv_rowInstance(row_name): # 행(row) 입력 함수
row_instance = []
row_index = data[0].index(row_name)
for element_row in data[1:]:
row_instance.append(element_row[row_index])
return row_instance
def get_csv_columnInstance(primary_key): # 열(column) 입력 함수
column_... | [
"beom9790@naver.com"
] | beom9790@naver.com |
3d8e86b94f8c6ea393d43c5404233f19c3dff896 | 9d39f6ec24ea355ee82adfd4487453172953dd37 | /tao_detection_release/configs/transferred/faster_rcnn_r50_fpn_1x_lvis_reweighthead_bf.py | eeab0d968e0f56d946a0e730ab9ff8489f0f65f3 | [
"Apache-2.0"
] | permissive | feiaxyt/Winner_ECCV20_TAO | d69c0efdb1b09708c5d95c3f0a38460dedd0e65f | dc36c2cd589b096d27f60ed6f8c56941b750a0f9 | refs/heads/main | 2023-03-19T14:17:36.867803 | 2021-03-16T14:04:31 | 2021-03-16T14:04:31 | 334,864,331 | 82 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,791 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[25... | [
"feiaxyt@163.com"
] | feiaxyt@163.com |
1345c47a293a6a346ffd0dbc4a78ec9fb339dfcc | 01d4967b9f8605c2954a10ed7b0e1d7936022ab3 | /components/ownership.gypi | 46a7a51093e7e858d0092d1d676f77bd9e00cf3a | [
"BSD-3-Clause"
] | permissive | tmpsantos/chromium | 79c4277f98c3977c72104ecc7c5bda2f9b0295c2 | 802d4aeeb33af25c01ee5994037bbf14086d4ac0 | refs/heads/master | 2021-01-17T08:05:57.872006 | 2014-09-05T13:39:49 | 2014-09-05T13:41:43 | 16,474,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | gypi | # Copyright 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.
{
'targets': [{
'target_name': 'ownership',
'type': '<(component)',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/cryp... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
6a896d793698e10203bfb57202bdfca826183a3f | 7a2b4aca5ae841cb873e6bced7298c7884eb7e9d | /partOne.py | 6b1dbfe8a1fd8dadd50584cb64e554f06cba38c4 | [] | no_license | SunilKumar-ugra/Nueral_Networks_Tutorials | 73e297fa2df604c74c79eed1fdb2d891f9bd7fb0 | 8fa2d7f8c8bc3c6611b06a3d7860f8bfa11d5795 | refs/heads/master | 2020-08-02T22:48:04.176970 | 2019-09-28T16:53:04 | 2019-09-28T16:53:04 | 211,532,609 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # Neural Networks Demystified
# Part 1: Data + Architecture
#
# Supporting code for short YouTube series on artificial neural networks.
#
# Stephen Welch
# @stephencwelch
import numpy as np
# X = (hours sleeping, hours studying), y = Score on test
X = np.array(([3,5], [5,1], [10,2],[11,2]), dtype=float)
x = np.amax(X... | [
"sk7899132595@gmail.com"
] | sk7899132595@gmail.com |
4e8f79161ea5ee145ef469ba6b36cf2c363e42c1 | af82475dc7eb45c478414372c222e7b6016359d4 | /python书籍/Python For Finance Code/Code of Python For Finance/4375OS_08_Code/4375OS_08_17_date_var.py | f569bdb0c198e340e01ec30e63c0fd18a5fff006 | [] | no_license | enfangzhong/PythonBaseCode | 8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433 | 9ab4a578b2692fdbb6aeeacb310251d51f72e953 | refs/heads/master | 2020-05-17T16:26:02.598344 | 2019-04-27T20:49:40 | 2019-04-27T20:49:40 | 183,817,172 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | """
Name : 4375OS_08_17_date_var.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/26/2013
email : yany@canisius.edu
paulyxy@hotmail.com
"""
import pandas as pd
url='http://chart.yahoo.com/table.csv?s=IBM'
x=pd.read_csv(url,index_col=... | [
"944727327@qq.com"
] | 944727327@qq.com |
d3c841c95e795df6a9e12f940ae734222b343013 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /content/test/gpu/generate_buildbot_json.py | 2b2e64015db01b7c9dab9fd42479a2f27f1659d3 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 72,432 | py | #!/usr/bin/env python
# Copyright 2016 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.
"""Script to generate chromium.gpu.json and chromium.gpu.fyi.json in
the src/testing/buildbot directory. Maintaining these files by han... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
42eefd3a6d0d2cec8f98979cc4dc82356db3b8bb | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Testing/ZopeTestCase/zopedoctest/testWarningsTest.py | 8dd208bceaed33f910d7d572212d8302ed3bc1e6 | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | ##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
615ad3d1352d00f1e5667b7258d5c581fde14184 | 89670ba42a5087a3965cadb678a9f87b6d8286cf | /huati/migrations/0011_auto_20171111_1211.py | 2e77a6d316d0ae1c993e9a7bf58b897a1c3513c4 | [] | no_license | qimengmeng/django_lei_zhihu | f56dd08229bf66e183f3f5b82145d5e183a4d161 | 296a7ee1435efcb2492e0ca078a1d9b5c153e41e | refs/heads/master | 2020-04-08T15:11:35.696655 | 2018-01-06T11:43:08 | 2018-01-06T11:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-11 04:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('huati', '0010_auto_20171111_1202'),
]
operations = [
migrations.AlterField(... | [
"leileili126@163.com"
] | leileili126@163.com |
8b58710838901f702b0d87c2013b13497abe0572 | 6bae32e5ad8f198e31d6da864b0a9f44d54c5ec6 | /src/monteur/egginfo/write.py | e427ef7edb14d7221532778e5b91c5b7fc054297 | [] | no_license | thefunny42/Zeam-Setup | 42dcce867a947fb82e6b17cebd47f92285187a9e | 0c27945b87b0150ee462b493cf646111822e8867 | refs/heads/master | 2020-04-15T15:37:40.153075 | 2013-03-15T10:42:36 | 2013-03-15T10:42:36 | 445,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py |
import logging
import os
from monteur.utils import create_directory
logger = logging.getLogger('monteur')
def write_pkg_info(path, package):
pkg_info = open(os.path.join(path, 'PKG-INFO'), 'w')
pkg_info.write('Metadata-Version: 1.0\n')
pkg_info.write('Name: %s\n' % package.name)
pkg_info.write('Ver... | [
"thefunny@gmail.com"
] | thefunny@gmail.com |
96411aeaf2d788d02c078f263691bf88afb267b8 | 657c80336bce1cc6158cd349ce208c5e680a4d0d | /pyglet/canvas/cocoa.py | cd44673204ca093754a7e6678941b655c1cfa070 | [
"BSD-3-Clause"
] | permissive | Xinmudotmoe/pyglet | b37628618647bf3b1e3d7db28202a5e14c60450c | 144257c365ca85528c6a4c5bed8141e683d7a9b6 | refs/heads/master | 2021-05-29T22:05:40.676643 | 2015-10-24T05:55:49 | 2015-10-24T05:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | """
"""
from ctypes import *
from ctypes import util
from pyglet import app
from .base import Display, Screen, ScreenMode, Canvas
from pyglet.libs.darwin.cocoapy import *
class CocoaDisplay(Display):
def get_screens(self):
max_displays = 256
active_displays = (CGDirectDisplayID * max_displays)... | [
"leif.theden@gmail.com"
] | leif.theden@gmail.com |
6a4d8a465d39c66733cc610bd65c7d3bd8d6ee32 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=1_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=41/sched.py | e32c511497a8def6c0ab223964299fde320c376c | [] | 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 | 693 | py | -S 0 -X RUN -Q 0 -L 2 99 400
-S 0 -X RUN -Q 0 -L 2 67 200
-S 0 -X RUN -Q 0 -L 2 67 200
-S 1 -X RUN -Q 0 -L 2 44 250
-S 1 -X RUN -Q 0 -L 2 43 200
-S 1 -X RUN -Q 0 -L 2 43 250
-S 2 -X RUN -Q 1 -L 1 39 250
-S 2 -X RUN -Q 1 -L 1 39 400
-S 2 -X RUN -Q 1 -L 1 35 200
-S 2 -X RUN -Q 1 -L 1... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
5d0c80d4877726e75d3f2a31ffb416c83d048c44 | 92f69f1f33f6b3aa29dc4f3ccce7d4a06eb24bdf | /deploy/creepageDistanceModel/models_creepage.py | 6ae75beb36e53ae310c65a43b5f31be4a4f18fdf | [
"MIT"
] | permissive | carlsummer/lcnn | 5d0b4c81e3b626e0380fdd36ad5685f3a6b9eb8f | b7ad7fa5502243ac50ca15a355e0001c5992d050 | refs/heads/master | 2023-06-21T05:45:44.910052 | 2021-07-29T00:55:33 | 2021-07-29T00:55:33 | 384,020,516 | 0 | 0 | MIT | 2021-07-08T06:13:42 | 2021-07-08T06:13:41 | null | UTF-8 | Python | false | false | 17,619 | py | import os
import matplotlib as mpl
import matplotlib.pyplot as plt
import uuid
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from .config import M
# 用于归一化的宽度值
NORMALIZATION_WIDTH = 64
NORMALIZATION_HEIGHT = 512
# 像素最大值为255
PIXS_MAX_VALUE = 255.0
# 数据类型
TB_DATATYPE = "tb"
LR_DA... | [
"zengxh@chint.com"
] | zengxh@chint.com |
f14b9015107fd96344bbe692fb7204178aa721d2 | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /nlp/src/chunkerScorer.py | 57c8e2a06f10c06d1990556f4473081946c9d041 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,720 | py | from routeDirectionCorpusReader import readSession
from chunker import makeTagger, tokenize
class ConfusionMatrix:
def __init__(self):
self.TP = 0.0
self.FP = 0.0
self.TN = 0.0
self.FN = 0.0
@property
def numberOfExamples(self):
return self.TP + self.FP + self.TN + s... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
b4bdb3c591598f57390240cf90a2ad80f0bde29b | 60e34c75afec810f4b1c2c82495d8d3017f32d33 | /09概率组合数学/03jump.py | b9ec6a464063c03077318da1157013605b35d5c4 | [] | no_license | ares5221/Data-Structures-and-Algorithms | af97c6b34b810c37f152af595846870a7b9b304b | 7c51eee0c375136f995cc063ffc60d33a520d748 | refs/heads/master | 2021-07-17T21:18:46.556958 | 2018-12-03T07:30:13 | 2018-12-03T07:30:13 | 144,227,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
'''
给定非负整数数组,初始时在数组起始位置放置一机器人,数组的每个元素表示在当前
位置机器人最大能够跳跃的数目。它的目的是用最少的步数到达数组末端。例如:给定
数组A=[2,3,1,1,2],最少跳步数目是2,对应的跳法是:232。
不能简单使用贪心。
初始步数step赋值为0;
记当前步的控制范围是[i,j],则用k遍历i到j
计算A[k]+k的最大值,记做j2;
step++;继续遍历[j+1,j2]
'''
def Jump(a, n):
if n == 1:
return 0
step, i,... | [
"674361437@qq.com"
] | 674361437@qq.com |
b4632e7af892ed9695871d7307a6e394648aaa00 | 49c4d5ddda86f05c15587c13cda11f9a40e4c4f1 | /yggdrasil/metaschema/datatypes/ContainerMetaschemaType.py | 8878fb0740b5e018c8d83165dd2bda0b017ec49a | [
"BSD-3-Clause"
] | permissive | ritviksahajpal/yggdrasil | 816c314db9fa48d5e8effbe498c014c7efd063ec | 777549413719918ba208d73018da4df678a1754e | refs/heads/master | 2020-05-17T12:58:44.339879 | 2019-04-24T21:21:56 | 2019-04-24T21:21:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,876 | py | from yggdrasil.metaschema.datatypes import (
get_type_class, complete_typedef, encode_data, encode_data_readable)
from yggdrasil.metaschema.datatypes.MetaschemaType import MetaschemaType
class ContainerMetaschemaType(MetaschemaType):
r"""Type associated with a container of subtypes."""
name = 'container'... | [
"langmm.astro@gmail.com"
] | langmm.astro@gmail.com |
87bfbb8dd54b0bf8bbc656327512c7e6baf6580c | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/monitor/azure-monitor-query/samples/sample_batch_query.py | 50d45f0e0b24bde23a6296c242aa30f492e9df3a | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 2,506 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""
FILE: sample_batch_query.py
DESCRIPTION:
This sample demonstrates querying multiple queries in a batch.
USAGE:
python sample_batch_query.py
Set the environment variables with your own values before running the ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
241673ed21e518b4c60725b37b18b79c68d3dc85 | 0dc8ddc02b9efc07f16ccd0e15cda4eb9c773763 | /fjfundo/mensalidades/tests/test_model_fundo.py | 7087a90a029e79b37a813fdc4912d09e3934746d | [] | no_license | juniorcarvalho/fjfundo | 04a8913e945101c7e47b6be1663af03c47149445 | 44e3e15c69e8648d7330859f9edf9e62655fe8f6 | refs/heads/master | 2020-09-17T15:34:31.674213 | 2016-10-27T16:19:34 | 2016-10-27T16:19:34 | 66,687,455 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from django.test import TestCase
from datetime import date
from fjfundo.mensalidades.models import Fundo
class FundoModelTest(TestCase):
def setUp(self):
self.fundo = Fundo.objects.create(
nome_fundo='fundo de formatura',
data_inicial=date(2016, 1, 1),
data_final=date(2... | [
"joseadolfojr@gmail.com"
] | joseadolfojr@gmail.com |
945f254e902ef50da52591ba46d2709f73a6b1b0 | e5d74b142a03d7cccc4acd5fdcdc2af7c47dd728 | /dynamo_engine/fields.py | e1b34a3012e7b72e586163ca66c3de019507e5aa | [
"MIT"
] | permissive | eshandas/dynamo_engine | 6f10d33a0d118dbb6bae3d896690698fd63428bd | a6c245ae2618459370ee68e43b4b824ba454f0b4 | refs/heads/master | 2021-01-25T04:22:05.655529 | 2017-06-06T17:58:20 | 2017-06-06T17:58:20 | 93,432,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from base.fields import (
BaseField,
STRING,
)
AVAILABLE_KEY_FIELDS = (
'HashKeyField', 'RangeKeyField', )
AVAILABLE_FIELDS = (
'StringField', )
class HashKeyField(BaseField):
KEY_TYPE = 'HASH'
def __init__(self, type):
self.ATTRIBUTE_TYPE = type
class RangeKeyField(BaseField):
... | [
"eshandasnit@gmail.com"
] | eshandasnit@gmail.com |
c19a50a6473c9a473814ca3bfb3b895e067a35e1 | 88e8e28b58092d5ba051582930c156872b9565a5 | /ABC/ABC.py | 4969b12f1de51c97fc10514845edcb0e14a9e838 | [] | no_license | dorahero/crawlers | b8a4a1c2592e817b365d56a87bee021d29598810 | 88e134fdd2493330622848f931638aabd6c906fe | refs/heads/master | 2023-02-19T07:54:54.945144 | 2021-01-23T09:13:42 | 2021-01-23T09:13:42 | 276,884,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,222 | py | import requests
import json
import os
from bs4 import BeautifulSoup
import re
ss = requests.session()
url = 'https://www.abccar.com.tw/abcapi/car/GetSearchCarBrand'
useragent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'
headers = {'User-Agent': ... | [
"dorahero2727@gmail.com"
] | dorahero2727@gmail.com |
8a6cfdd608e14d3cbb4a1ff59922abf1df55eaa9 | db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1 | /lenv/bin/easy_install-3.6 | 774c4f2f4024d4031c1909df56980d5946b48840 | [
"BSD-3-Clause"
] | permissive | shrey-c/DataLeakageDjango | ffeef61caa347520747fc70cf3f7f8b84a9610cf | a827c5a09e5501921f9fb97b656755671238dd63 | refs/heads/master | 2022-11-30T03:30:12.313025 | 2020-07-12T06:47:44 | 2020-07-12T06:47:44 | 242,569,637 | 6 | 1 | BSD-3-Clause | 2022-11-22T05:20:22 | 2020-02-23T18:33:04 | Python | UTF-8 | Python | false | false | 263 | 6 | #!/home/shreyansh/DataLeakageDjango/lenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shreyansh.chheda@gmail.com"
] | shreyansh.chheda@gmail.com |
82eff230df94326a35032a2aab368a7418a28af3 | 10e3e350526641bedc7455b545463324020b8f4f | /gs12/api/serializers.py | e97d84e60c148a3482345f18134b7c33afc70382 | [] | no_license | shivamdattapurkayastha99/django-rest-studentdetail | da31566d6f289490f0b30a670df5325a44ad6523 | 2fac55908cd50e43c8c0feaee3e32e942cc28fb2 | refs/heads/master | 2023-02-18T01:23:39.433530 | 2021-01-15T17:53:38 | 2021-01-15T17:53:38 | 329,984,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from rest_framework import serializers
from .models import Student
class StudentSerializer(serializers.ModelSerializer):
class Meta:
model=Student
fields=['id','name','roll','city']
| [
"shivamdatta465@gmail.com"
] | shivamdatta465@gmail.com |
b0e90db28ecf6add940a8671196edd2086bb23bb | 6679ab23bf4f0100eb07cf13be21a8c1b1ae4c1f | /Python_Team_Notes/Graph_Theory/Topology_Sort.py | 80c74e3505ee3644db096c34335d5e856ada6d2a | [] | no_license | gimquokka/problem-solving | 1c77e0ad1828fa93ebba360dcf774e38e157d7b6 | f3c661241d3e41adee330d19db3a66e20d23cf50 | refs/heads/master | 2023-06-28T10:19:07.230366 | 2021-07-29T11:29:26 | 2021-07-29T11:29:26 | 365,461,737 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | """
- 위상 정렬(Topology Sort)
: 방향 그래프의 모든 노드를 '방향성에 거스르지 않도록 순서대로 나열하는 것
- 전략
1. 진입차수가 0인 노드를 큐에 넣는다
2. 큐가 빌 때까지 다음의 과정을 반복한다.
(1) 큐에서 원소를 꺼내 해당 노드에서 출발하는 간선을 그래프에서 제거하낟.
(2) 새롭게 진입차수가 0이 된 노드를 큐에 넣는다.
- Time Complexity
O(V+E) # 모든 간선과 노드를 확인함으로
"""
from collections import deque
import sys
input = sys.stdin.rea... | [
"gimquokka@gmail.com"
] | gimquokka@gmail.com |
17062f8eac0ac19c8d035d5cc0e5b3e4cdd6a5af | 87227a9153cda47b720227b3e7e1930936550f7c | /matting/torchscript_resnet50_fp32/code/__torch__/torch/nn/modules/conv/___torch_mangle_56.py | 22b1f3c5fcfaad896bb9b6203f0968e4f011fe4c | [] | no_license | gkyAiLab/Style_Transfer_Matting | 488e7a65d262893fc4b42c4c90544e2f9aee64e4 | 2f461fe8c206c5adade09ae29166d238439c09b2 | refs/heads/master | 2023-07-18T12:15:55.625543 | 2021-08-12T07:50:38 | 2021-08-12T07:50:38 | 390,946,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | class Conv2d(Module):
__parameters__ = ["weight", "bias", ]
__buffers__ = []
weight : Tensor
bias : Optional[Tensor]
training : bool
transposed : bool
_reversed_padding_repeated_twice : Tuple[int, int, int, int]
out_channels : Final[int] = 24
kernel_size : Final[Tuple[int, int]] = (3, 3)
in_channels... | [
"694813183@qq.com"
] | 694813183@qq.com |
bf2188086aa03fc72778fae06fef0ee0e83af51e | 8a1144dd38388992c7e35a4cc84002e381f2cf1f | /python/django_fundamentals/disappearing_ninjas/apps/disappearingninjas/urls.py | bc2fb6f77ea81d293c029bf67a660d788e235393 | [] | no_license | vin792/dojo_assignments | 18472e868610bacbd0b5141a5322628f4afefb5b | 449b752f92df224285bfd5d03901a3692a98562e | refs/heads/master | 2021-01-20T00:20:09.896742 | 2017-05-26T17:37:09 | 2017-05-26T17:37:09 | 82,735,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^ninjas$', views.display_all),
url(r'^ninjas/(?P<color>[a-zA-Z]+$)', views.turtles),
] | [
"vin792@gmail.com"
] | vin792@gmail.com |
726806c4033a9b0cacc59d787e6a56e2e4e0ae1c | fd173195d07b5a5ce229a0c1a20ee61884d8c8a1 | /python_practice/Dictionary_programs/10_check_order_of_char_ordered_dict.py | a35adb04cec3b877f1e5ff092c1c41e1fa084e34 | [] | no_license | anitrajpurohit28/PythonPractice | f7e71946144e04b7f9cb9682087e5d4f79839789 | 8b75b67c4c298a135a5f8ab0b3d15bf5738859f1 | refs/heads/master | 2023-04-12T07:04:12.150646 | 2021-04-24T19:52:24 | 2021-04-24T19:52:24 | 293,912,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | # 10 Python | Check order of character in string using OrderedDict( )
"""
Input:
string = "engineers rock"
pattern = "er";
Output: true
Explanation:
All 'e' in the input string are before all 'r'.
Input:
string = "engineers rock"
pattern = "egr";
Output: false
Explanation:
There are two 'e' after 'g' in the input str... | [
"anitrajpurohit28@gmail.com"
] | anitrajpurohit28@gmail.com |
9663c4f2964c0b5f8e7d8cb59cbcaa361449d8cc | f7c0b3bbd9409f76fa8c74c8f19b89cdc1800c4b | /msnmetrosim/controllers/base/__init__.py | dc87ccb66af510afdf4be4d70687004037101dee | [] | no_license | RaenonX/Madison-Metro-Sim | 4ae320d7ebcca6e050562bfc5624165a47867e53 | 24c31a1afd5241feebc38b8ddd10d1f3b7e228ef | refs/heads/master | 2023-02-24T01:14:30.269160 | 2020-12-20T15:51:26 | 2020-12-20T16:07:40 | 297,050,693 | 2 | 2 | null | 2020-11-01T21:31:38 | 2020-09-20T10:20:34 | Jupyter Notebook | UTF-8 | Python | false | false | 158 | py | """Controller base classes."""
from .fromcsv import CSVLoadableController
from .holder import DataListHolder
from .locational import LocationalDataController
| [
"raenonx0710@gmail.com"
] | raenonx0710@gmail.com |
76f4de44efb33da80730e9422dd9244c582aeae6 | 4202a7c678e0ec25ab2065c4c2804b0296f94480 | /VCFS/fix_vcf_headers.py | 89123a315d7c75faaf1eb3c36ebb9db2ec2680e5 | [] | no_license | kaiyaprovost/whole_genome_pipeline | f1c479536560c5b8c68fe3a5ba0917140fbb0793 | 8e605d855c9f0cd6e11e1b73a97260e0d4aa3fae | refs/heads/master | 2023-04-22T20:51:01.344297 | 2023-04-06T19:12:11 | 2023-04-06T19:12:11 | 237,044,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import sys
import os
import glob
try:
filepath = sys.argv[1]
print("\tFile is: ",filepath)
except:
print("Filename not given, quitting")
#filepath = "/Users/kprovost/Documents/Dissertation/CHAPTER2_GENOMES/ASSEMBLY/genomeresequencingFromLucas/for_AMN_245109/sedtest.txt"
exit()
split = filepath.split("/")
filena... | [
"17089935+kaiyaprovost@users.noreply.github.com"
] | 17089935+kaiyaprovost@users.noreply.github.com |
532990c39ecc04b056fad86a473af7e2f6c8637b | 453d2e699d218fdb3bc1e535a707988194ac6717 | /lib/pector/profile.py | cd69c6d93d8fc98a82b0aa1837cceccf54d5701a | [
"MIT"
] | permissive | defgsus/thegame | d54ffcd343c7e1805d2c11e24cd38b02243e73d4 | 38a627d9108f1418b94b08831fd640dd87fbba83 | refs/heads/master | 2023-07-23T06:32:40.297591 | 2022-04-11T12:02:32 | 2022-04-11T12:02:32 | 127,875,178 | 1 | 0 | MIT | 2023-07-06T22:07:07 | 2018-04-03T08:21:31 | Python | UTF-8 | Python | false | false | 6,662 | py | from .vec3 import vec3
import random
def rnd_vec3(mi=-1., ma=1.):
return vec3((random.uniform(mi, ma),
random.uniform(mi, ma),
random.uniform(mi, ma)))
def nbody_case(nbodies, nframes):
pos = [rnd_vec3() for i in range(nbodies)]
imp = [rnd_vec3() for i in range(nbodies)]
... | [
"s.berke@netzkolchose.de"
] | s.berke@netzkolchose.de |
980e6fd73b204353dd08d97307bfc46b97061467 | 0b4957de738dd05f964ea838016b4b811feca970 | /ultron8/api/depends/get_jwt.py | dbdd7d50c59f3efd6c143787aef51a5f133e840d | [
"MIT",
"Apache-2.0"
] | permissive | bossjones/ultron8 | bdb5db72ba58b80645ae417cdf97287cfadd325d | 09d69c788110becadb9bfaa7b3d2a2046f6b5a1c | refs/heads/master | 2023-01-13T06:52:45.679582 | 2023-01-03T22:25:54 | 2023-01-03T22:25:54 | 187,934,920 | 0 | 0 | Apache-2.0 | 2023-01-03T22:25:56 | 2019-05-22T00:44:03 | Python | UTF-8 | Python | false | false | 1,459 | py | # SOURCE: https://github.com/bergran/fast-api-project-template
import re
from fastapi import Header, HTTPException
from starlette import status
from starlette.requests import Request
# from apps.token.constants.jwt import JWT_REGEX
from ultron8.api import settings
from ultron8.constants.jwt import JWT_REGEX
# it wil... | [
"noreply@github.com"
] | bossjones.noreply@github.com |
b3406f02bf858fa60820c26b9706ea1879d18919 | 9e8a754f62ab172043ca978c0fcce20687377498 | /pper.py | 6b4b8bb5df63a9a4f4dc692e7efdeebd6d1259fd | [
"MIT"
] | permissive | luyang93/ROSALIND | 41a5835ed634668742a7155e162ce14f1875b7a0 | f6e5a099a2c47203a14370cfe97ba41db1ae8429 | refs/heads/master | 2020-04-02T22:40:20.640063 | 2019-02-28T07:53:09 | 2019-02-28T07:53:09 | 154,840,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : pper.py
# @Date : 2019-02-17
# @Author : luyang(luyang@novogene.com)
from math import factorial
def main():
file = 'input/rosalind_pper.txt'
with open(file) as f:
n, k = map(int, f.readline().strip().split())
print(int(factorial... | [
"510426762@qq.com"
] | 510426762@qq.com |
ce413e69ce72c2f5c0aae1812a035fff9118ef11 | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/Scaleform/daapi/view/meta/ContactsTreeComponentMeta.py | 80bd939e51a3a9be5b3602defe190b7a9f38487d | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,413 | py | # 2016.11.19 19:51:17 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ContactsTreeComponentMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class ContactsTreeComponentMeta(BaseDAAPIComponent):
"""
DO NOT MODIFY!
Generat... | [
"info@webium.sk"
] | info@webium.sk |
b5e5a434aefbfbd80790b0c8b37c6fe48d9555e8 | 4910c0f3d03935fc8ee03f1e9dc20dfdb2c7c04b | /Codigos estudiantes por lenguaje/PY/Bryann Valderrama/Matemática/combinatories.py | 39b502005bfe3a301a93155655641484f1b875f2 | [] | no_license | roca12/gpccodes | ab15eeedc0cadc0735651262887b44f1c2e65b93 | aa034a3014c6fb879ec5392c51f9714bdc5b50c2 | refs/heads/master | 2023-02-01T13:49:27.563662 | 2023-01-19T22:50:58 | 2023-01-19T22:50:58 | 270,723,328 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from sys import stdout
wr = stdout.write
cont1 = 0
cont2 = 0
def combUtil(arr, data, start, end, index, r):
global cont1
if index == r:
for j in range(r):
wr(f'{data[j]} ')
wr('\n')
cont1 += 1
return
i = start
while i <= end and end - i + 1 >= r - index:
... | [
"noreply@github.com"
] | roca12.noreply@github.com |
276ae40a2e543da3e05e27e93b5d1815d60013fa | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/preprocessing/plot_function_transformer.py | f2793846b5276e252b98eef912dc6bad871fcef9 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | """
=========================================================
Using FunctionTransformer to select columns
=========================================================
Shows how to use a function transformer in a pipeline. If you know your
dataset's first principle component is irrelevant for a classification task,
you ca... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
6af4bfdf7815e6a889dc3e4d43982356bec92e10 | 768058e7f347231e06a28879922690c0b6870ed4 | /venv/lib/python3.7/site-packages/numba/tests/npyufunc/test_dufunc.py | 7906221ae4cc9a43b5b7d94b034fe27a77edd570 | [] | no_license | jciech/HeisenbergSpinChains | 58b4238281d8c158b11c6c22dd0da82025fd7284 | e43942bbd09f6675e7e2ff277f8930dc0518d08e | refs/heads/master | 2022-12-18T08:04:08.052966 | 2020-09-29T12:55:00 | 2020-09-29T12:55:00 | 258,476,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,533 | py | import pickle
import numpy as np
from numba import njit, vectorize
from numba.tests.support import MemoryLeakMixin
import unittest
from numba.np.ufunc import dufunc
def pyuadd(a0, a1):
return a0 + a1
class TestDUFunc(MemoryLeakMixin, unittest.TestCase):
def nopython_dufunc(self, pyfunc):
return du... | [
"jan@multiply.ai"
] | jan@multiply.ai |
b4bc5a6e014113adc13d24c1e92aa5b0ae1eea08 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/aio/operations/_application_gateway_private_endpoint_connections_operations.py | 618cffe13b15ad80c265cba1a816c1af14f74b4a | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 21,719 | 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"
] | paultaiton.noreply@github.com |
5c192053bb1e71e4c8e3f2ba9558706aecb74d73 | 0f7786e5664e034e77d5529eaafc5a216abcaedb | /resources/lib/pytumblr/models/other/Primary.py | 9e5dfeb2bfbad806a0ce71c9712531a57adfd8c0 | [] | no_license | zoelmd/plugin.video.tumblrv | 38e3acdcdb457c83d1c5acca458d82eeebfd6c65 | 2164a905d5d90469ac1c3b4668ee5b410e6e8541 | refs/heads/master | 2020-03-28T19:46:01.963031 | 2017-08-15T01:36:14 | 2017-08-15T01:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | #!/usr/bin/python
class Primary:
def __init__(self, type):
self.type = type
| [
"r00trox"
] | r00trox |
3949bb74efb7e83cbc9afa63dac2123e7d80a210 | d2ff5d87ce0cd69e05d5d1462cedf89b7bb49c14 | /python/old/print_a_lot.py | 12087f4f55a36576d5fc8aac603bc477152ce694 | [] | no_license | kt3k/anarchy-golf-old-solutions | ecc1b9d33508e1a9fd376f10a2b4ef7854e87c91 | 0ad9804af82b5ebb0bf5cb52083b925998e86cb4 | refs/heads/master | 2023-08-18T03:55:50.085429 | 2015-04-25T08:16:08 | 2015-04-25T08:16:08 | 34,560,939 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | for i in range(10**5):print i, | [
"stibium121@gmail.com"
] | stibium121@gmail.com |
0314afce70df3d153a8efc40f409c5cc3922c701 | f4ad721b7158ff2605be6f7e4bde4af6e0e11364 | /vt_manager_kvm/src/python/vt_manager_kvm/controller/drivers/KVMDriver.py | 99551db2acfc0c494510c3c8be8a19887b9f590f | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | ict-felix/stack | 3fb4222a0538c0dbbe351ccc3da1bafa9ca37057 | 583ccacf067b9ae6fc1387e53eaf066b4f3c0ade | refs/heads/master | 2021-01-10T10:16:29.851916 | 2016-06-22T15:11:11 | 2016-06-22T15:11:11 | 51,439,714 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | from vt_manager_kvm.controller.drivers.VTDriver import VTDriver
from vt_manager_kvm.models.KVMServer import KVMServer
from vt_manager_kvm.models.KVMVM import KVMVM
from vt_manager_kvm.models.VTServer import VTServer
from vt_manager_kvm.utils.HttpUtils import HttpUtils
import threading
import logging
class KVMDriver(VT... | [
"jenkins@localhost"
] | jenkins@localhost |
f6a05657a5c17bf48443b42529171074d24ae2fd | 637ef3599c62d9c186741fbb5cf37961298aa01f | /tests/func/test_grammar.py | dd1998fbcb547affb2647707050afbe569050e12 | [
"MIT",
"Python-2.0"
] | permissive | jwcraftsman/parglare | 7c6d36e42001225b85f3790fa993c5254f5dae98 | 39927c4ce4aabe78d9ad72e51dd2366947abffa0 | refs/heads/master | 2021-09-20T13:41:03.318924 | 2018-08-09T11:16:03 | 2018-08-09T11:16:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,082 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from parglare import Parser, Grammar, Terminal, NonTerminal
from parglare.grammar import ASSOC_LEFT, ASSOC_RIGHT, DEFAULT_PRIORITY
from parglare.exceptions import GrammarError, ParseError
def test_single_terminal():
"""
Test that gr... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
661f174bbea67466701a43643b0ddd608c96077a | 7bf617f77a55d8ec23fa8156c1380b563a5ac7f6 | /CG/Snitch/3D_Scripting_Mac/CS4800/icQTOwn_2.py | 02bef9f467f01e95f2bc0720c53129697138f3f0 | [] | no_license | anyatran/school | c06da0e08b148e3d93aec0e76329579bddaa85d5 | 24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec | refs/heads/master | 2021-06-17T10:45:47.648361 | 2017-05-26T12:57:23 | 2017-05-26T12:57:23 | 92,509,148 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 42,932 | py | #----------------------------------------------------------------------------------------------
#
# QTown tool
#
# SCRIPT: icQTOwn.mel
#
# AUTHOR: Ingo Clemens
# info@effect-house.de
#
# DESCRIPTION:
# This script creates a city like geometry based on the selected... | [
"panhtran249@gmail.com"
] | panhtran249@gmail.com |
d1a417856e0372940c7300b1fec9088b1beff141 | 8411d44bb4c1316755311beaab8cc4c3ec78475e | /dungeonpath.py | b7c46d4d7423584870852dcb4f55db1d221a3a03 | [] | no_license | jrecuero/rpg3 | 45b40908ff39b692e4a68c958383db0946d9e306 | ee961023841f79c22d21c8a4c7a92225d5525c7a | refs/heads/master | 2021-01-19T07:30:46.996853 | 2014-11-25T08:20:06 | 2014-11-25T08:20:06 | 16,552,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,093 | py | #!/usr/bin/env python
"""dungeonpath.py class required for the dungeonpath.
:author: Jose Carlos Recuero
:version: 0.1
:since: 10/21/2014
"""
__docformat__ = 'restructuredtext en'
###############################################################################
## _ _
## (_)_ __ ... | [
"jose.recuero@gmail.com"
] | jose.recuero@gmail.com |
8bb4e54a6ffca03f781beddb041de88e048ab536 | d0765d7c9977f892f0fd4c623107303ff3582485 | /kaggle/facial-keypoints-detection/testcustom.py | 31654fb9eae296e5d9fe7e0ba1442c0b7be43952 | [] | no_license | Lizonghang/Neural-Network | dc82cfa96d1eafcc192374645b6113774cd1cbf2 | be6ddff70022e1933c1c9ad4b04ef0ac3fcf2f70 | refs/heads/master | 2021-01-01T18:39:06.416372 | 2017-12-26T15:33:09 | 2017-12-26T15:33:09 | 98,390,467 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
from keras.models import load_model
def load_image(filepath):
im = Image.open(filepath)
im = im.convert('L')
im = im.resize((96, 96))
return np.array(im).reshape((1, 96, 96, 1)) / 255.0
def display(X, y_pred):
plt.figure()... | [
"870644199@qq.com"
] | 870644199@qq.com |
a4188b86cd08a539db64761d64b3dffac695aa6b | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/talent/v4/talent-v4-py/google/cloud/talent_v4/services/tenant_service/transports/grpc.py | a2f0584fc66609fd76ff2cf8c42180bbaa904c65 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,551 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
b6aa7142f269f0ba1dd4f2de043759be68235d84 | fbe7e4cad853f2bbabadc4597cdb9bb96d27bbbf | /Simulation/17143_boj_낚시왕(Simulation)/17143_boj_fishing.py | 2fea7ae7ada0e3ff5fcc083104971d99c861aa80 | [] | no_license | edugieun/Algorithm-Solving | 67e649b894aede10e4f61ebf30d0ddbac67dd4db | a925657b893cc9877c8dbf1b986323e474872204 | refs/heads/master | 2020-09-08T20:02:14.085427 | 2020-04-15T13:30:31 | 2020-04-15T13:30:31 | 221,231,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,056 | py | import sys, time
sys.stdin = open('input.txt', 'r')
start = time.time()
def shark_change():
# 위치 변경
for shark_num in sharks.keys():
# 위
if sharks[shark_num][3] == 1:
sharks[shark_num][2] = sharks[shark_num][2] % (2 * R - 2)
sharks[shark_num][0] -= sharks[shark_num][2]... | [
"gieun625@gmail.com"
] | gieun625@gmail.com |
21f85fbde500311ba696c8db3619e60960f4c3e3 | 62200230fcff52c826685ed348e9c18b271b7f4e | /op2.22.py | de2aaac428162afa8b3b56b10b421270ccceeb6b | [] | no_license | manasa1463/program | ec149b141e0ee1bd19386de3985ee7cf6e268fe8 | df116cd552728d8f804d5292d924ad53722de629 | refs/heads/master | 2020-04-30T01:08:00.476647 | 2019-07-24T17:40:50 | 2019-07-24T17:40:50 | 176,520,835 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | x,y=map(int,input().split())
while(y):
x,y=y,x%y
print(x)
| [
"noreply@github.com"
] | manasa1463.noreply@github.com |
966336c9846841fe8a4a55d2f9b09814d3c843e9 | 6a165e7dafaec4d738a0a7fa54429a074049dfb6 | /vmagent/libs/instance.py | 84f7b520f767b4f87b967c99f80da72bf23fc2e6 | [] | no_license | zhouqiang-cl/wstack | 14bae1d4e7ecd1972483ca48c9789c7b004c3310 | cd636ccecfe020c1fe57041c84bb7afa93e05608 | refs/heads/master | 2020-01-23T21:57:37.975315 | 2016-11-16T15:25:51 | 2016-11-16T15:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,462 | py | #-*- coding: utf-8 -*-
""" 虚拟机实例函数.
"""
import os
import redis
from libs import (dnsapi, log, utils, volume, interface,
wmi, template, storage)
from const import DOMAIN, ISO_URLS, NAMESERVER
logger = log.LogHandler().logger
def create_origin(name, uuid, version, vcpu, mem, os_size, data_size... | [
"liningning@wandoujia.com"
] | liningning@wandoujia.com |
d23839856394dc02f015232730ab6a9f83793f3c | eb0711915d6bba2f765f052736e33ac9a9a397a6 | /HE1104/model/glee_samp/samp34/glee_chain.py | e949310be1517c45744911df615febd2d25190a9 | [] | no_license | dartoon/GL_HostGalaxy | cd2166f273ae7e0397a7d2d39f760ab59e86f014 | 7469f1c1e640d176a75cc6e9497920e494ad656a | refs/heads/master | 2016-08-11T13:27:17.545360 | 2016-04-07T19:04:57 | 2016-04-07T19:04:57 | 46,524,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import numpy,subprocess
file1 = open('HE34.001.mcmc','r') #should changed with right name
para = numpy.loadtxt(file1)[-30:,0]
file1.close()
i=int(para[0])
#subprocess.call(["echo int(para[0])"],shell=True)
#subprocess.call(["glee -S ${i} HE34.001.001"],shell=True)
#print para.shape
#print para.astype(int)
g=open('... | [
"dingxuheng@mail.bnu.edu.cn"
] | dingxuheng@mail.bnu.edu.cn |
1baa5445cd69ffb9bf4d2b4b632526716f1c3056 | 7a24bd87eb80edefe0db75c84ace364fc093e04a | /examples/hybrid_inverter_sigmoid/hybrid_inverter_sigmoid.py | 21d6b806f4acac4a2f6b41921f70e1272bc22318 | [] | no_license | qibolun/DryVR_0.2 | 5ab1171b0d5a3d4bdaae30713cd450d5797b002e | 4ee2bbc736d382043be585906704bcc4dc115d3d | refs/heads/master | 2021-10-09T06:00:41.738030 | 2021-09-27T19:59:26 | 2021-09-27T19:59:26 | 102,651,161 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | from examples import c2e2wrapper
def TC_Simulate(Mode,initialCondition,time_bound):
# Map givien mode to int 1
if Mode == "Rampup_A":
modenum = 1
elif Mode == "Rampup_B":
modenum = 2
elif Mode == "Rampup_C":
modenum = 3
elif Mode == "Rampup_D":
modenum = 4
elif M... | [
"pricejmh0911@gmail.com"
] | pricejmh0911@gmail.com |
e7dc5ed0f00f3e833ce7517bce5d9cc929080645 | 0600f0979fe17624d33aa74c739775f0f27a3bb5 | /docs/support/test_my_module.py | 5f767d88b77b3f65e6e07decef75159d16f98d1c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | pmacosta/putil | 2c8177fb6b9be667b8d52b48bfd3272de8b0160d | 416cea52df8221981727e25d133e9b4e3f464798 | refs/heads/master | 2021-01-21T13:33:41.232773 | 2016-05-17T12:57:30 | 2016-05-17T12:57:30 | 44,289,408 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | # test_my_module.py
# Copyright (c) 2013-2016 Pablo Acosta-Serafini
# See LICENSE for details
# pylint: disable=C0111,C0410,C0411,R0903,W0104,W0105
import pytest, docs.support.my_module, putil.test
def test_func():
""" Test func() function """
putil.test.assert_exception(
docs.support.my_module.func,
... | [
"pmasdev@gmail.com"
] | pmasdev@gmail.com |
6a5b3a7537dbc9e4a4153681f88f95e68da6f860 | 099b4f825cf6ccf7a9795154f2d7a7daa64d4691 | /python_udemy_course/32 flexible args.py | d74741bf809d34e3c10f9a8b8a3ee3376b66a3e8 | [] | no_license | espiercy/py_junkyard | 22637f4b1056cd7571d99dfc14e27a0590695733 | 48204ddd00a366e67e98e2d6a01921b659677d57 | refs/heads/master | 2020-03-23T11:27:46.779467 | 2018-09-22T12:55:08 | 2018-09-22T12:55:08 | 141,504,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | ##THAT'S pretty cool...
def catch( *vars ):
for var in vars:
print(var)
catch(23, 'udemy', [1,2,'list var']) | [
"evanpiercy@gmail.com"
] | evanpiercy@gmail.com |
12e394688e18a0a8cd50c4672cb605e0ec4083fc | a635b8d51016220a6d84808def431c27dde41b90 | /libcms/apps/journal/urls.py | b06afb6d9b18c032c58083f127b4facac70b13b9 | [] | no_license | isergey/chel | aab3ac98ae2a10258f7a5afce88c74f9e13a2d7f | d1a38bfe7ebba80d9c39ae3b0d54ebfd2965046c | refs/heads/master | 2023-07-07T02:13:41.363452 | 2023-06-26T10:25:14 | 2023-06-26T10:25:14 | 3,816,204 | 1 | 0 | null | 2023-03-31T14:52:31 | 2012-03-24T09:33:53 | JavaScript | UTF-8 | Python | false | false | 322 | py | # -*- coding: utf-8 -*-
from django.urls import re_path, include
from . import views
from .administration import urls as aurls
urlpatterns = (
re_path(r'^$', views.index , name='index'),
re_path(r'^redirect$', views.redirect_to_url , name='redirect_to_url'),
re_path(r'^admin/', include((aurls, 'admin'))),
... | [
"dostovalov@gmail.com"
] | dostovalov@gmail.com |
bab55d69218c204a901ec720b1cc08572d8a0b35 | eb35535691c4153ba2a52774f0e40468dfc6383d | /hash_table/find_diff_str.py | 2c56e7768ccda2172fbde10be2df7b65ac7c8071 | [] | no_license | BJV-git/leetcode | 1772cca2e75695b3407bed21af888a006de2e4f3 | dac001f7065c3c5b210024d1d975b01fb6d78805 | refs/heads/master | 2020-04-30T19:04:12.837450 | 2019-03-21T21:56:24 | 2019-03-21T21:56:24 | 177,027,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # logic: said it got added, by random shuffle
# means no set, as not sure if single or duped
# using xor
def diff(s,t):
d={}
ans=0
for c in s+t:
ans^=ord(c)
return chr(ans)
for i in s:
d[i] = d.get(i,0)+1
for j in t:
try:
d[j]-=1
except:
... | [
"noreply@github.com"
] | BJV-git.noreply@github.com |
efafed03e4c3629dbeaf409f4d9be4f0dedbd82e | 21e10ee87c314cdceaec04217e42332237c7fb58 | /SVM_Classifier.py | 86d4ae1b6e9f883d3ce122762d7655d3c9d34f1d | [] | no_license | QuantuMobileSoftware/SindhiRecognizer | 199f09d5b304dc2354972a38b7471d83dae0dfdc | 6c2af0ea9c796e7a4bc3b2b028b269a4a8be829a | refs/heads/master | 2021-01-22T23:06:14.023760 | 2017-03-20T14:43:27 | 2017-03-20T14:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | import sys
import cv2
import argparse
import warnings
from time import time
from docx import Document
from sklearn.externals import joblib
reload(sys)
sys.setdefaultencoding('utf-8')
# ignore version warnings
def warn(*args, **kwargs):
pass
warnings.warn = warn
# add argument parser for images
ap = argparse.Ar... | [
"you@example.com"
] | you@example.com |
941719ccebe58c5ac65e905376ab4b8eb872dce4 | 786de89be635eb21295070a6a3452f3a7fe6712c | /PSHist/tags/V00-03-00/SConscript | ea4b597c8c16aee6b43d5b58687145b681ac6fc9 | [] | 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 | 1,181 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package PSHist
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file f... | [
"salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
3b0fc70408fbc7d9c1869f21fc189ff9745646ab | 3c97ecb4ca2104ef454c9768cbe6a0c759d4b174 | /scratch/debug_overwrite/scratch_20.py | 86217bfe8856e29b7eb5241812f3a558d5c8602b | [
"BSD-3-Clause"
] | permissive | takuma-yoneda/ml_logger | 44a1add97e00e32e8b66bbac5d4df2711fabede8 | dd619ead4c4ae6927e6093982b40a27ff51b47ec | refs/heads/master | 2023-07-13T07:02:22.430393 | 2021-08-01T20:46:34 | 2021-08-01T20:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import pickle
from cmx import doc
from ml_logger import logger
doc @ """
# Debug Logger Overwrite Bug
Reading from metrics file:
"""
logger.configure("http://54.71.92.65:8080", prefix='geyang/project/debug_logs')
logger.remove('debug_logs')
doc.print(logger.root)
logger.log_text("""
charts:
- i
""", dedent=True, fi... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
6ef8af05d4c89526fa1b2729dcc670018295f892 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /test/app_compat/csuite/integration_tests/csuite_crash_detection_test.py | 9dd8a00f587c2639b5b5152ae31b4d25681ad48e | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | # Lint as: python3
#
# Copyright 2020, The Android Open Source Project
#
# 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 b... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
b61bfcf65971bd7ff9bf1bd4987d1db5eade588c | 84c1e780a349c4bae2d6cf4c1da72889d5222797 | /Python/Numpy/Linear Algebra/linear_algebra.py | 1604f1d3feede1f8abdaa810eb1cabeedf232a41 | [
"MIT"
] | permissive | brianchiang-tw/HackerRank | 18e31583b10cf2189adac97e7cb2997d46790bcd | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | refs/heads/master | 2020-09-23T23:18:08.253868 | 2020-02-13T14:16:22 | 2020-02-13T14:16:22 | 225,612,833 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import numpy as np
if __name__ == '__main__':
dim = int( input() )
arr = []
for i in range(dim):
arr += list( map(float, input().split() ) )
np_arr = np.array( arr )
np_arr = np.reshape( np_arr, (dim, dim) )
determine = np.linalg.det(np_arr)
np.set_printoptions(legacy='1.13')
... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
9e51c017d58a209ca1d4d21a997e29a3ebe2d9d4 | bc2327d2bce695bb4881be63b1912f550857fd14 | /data_structures/examples/example2_8.py | 05f54255aae14831835018af84afadf975b148b2 | [] | no_license | mentalclear/fluent-in-python | 1a1d9ad30e949e72d8633156091b84b6d52b85bc | 243cff274861abc853b4ba5d03090191df5cd7db | refs/heads/master | 2023-08-05T19:26:48.787996 | 2021-10-06T13:04:14 | 2021-10-06T13:04:14 | 402,944,060 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | metro_areas = [
('Tokyo', 'JP', 36.933, (35.689722, 139.691667)),
('Delhi NCR', 'IN', 21.935, (28.613889, 77.208889)),
('Mexico City', 'MX', 20.142, (19.433333, -99.133333)),
('New York-Newark', 'US', 20.104, (40.808611, -74.020386)),
('São Paulo', 'BR', 19.649, (-23.547778, -46.635833)),
]
def m... | [
"mentalclear@gmail.com"
] | mentalclear@gmail.com |
322bac495f779103d108af47f10b388fc9a45d48 | ab8508696b4938331c752aaed0cc5e4062bc8625 | /week2/FirstDay/keyvaluestore2/store/views.py | 5b8fd90e5a2592923b4652fbbb755e0d193a859b | [] | no_license | Nimor111/Django-Course | 5765097cb37ce8b9c1efe93c9a3dad23cd7bd07d | e3b36a345227848928f07af0efb7c81ff082bc22 | refs/heads/master | 2021-01-21T10:34:45.112421 | 2017-05-11T15:00:03 | 2017-05-11T15:00:03 | 83,458,838 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | from django.shortcuts import render
from django.http import JsonResponse, HttpResponse
from django.views.decorators.csrf import csrf_exempt
from .logic import create_user, write_key, get_key, delete_key
import json
# Create your views here.
@csrf_exempt
def create_user_view(request):
identifier = create_user()
... | [
"georgi.bojinov@hotmail.com"
] | georgi.bojinov@hotmail.com |
d44967b219c2a51424a6673dad657e88b2aadb93 | bcad774066bda2ed89b37e200e00312e49a38f2b | /powertrain/models/project.py | 09397241e9bf9eae8741286ea6dc2373ccaf64cc | [] | no_license | VUIIS/powertrain | d52774fd4c4f80b4940003e76a12c63feaee774b | 6260c70dbcc36b1fec5d25cabba34ee72bc309cc | refs/heads/master | 2020-05-24T15:13:16.280501 | 2014-05-21T20:17:03 | 2014-05-21T20:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" project.py
A collection of MR sessions & associated their processing
"""
__author__ = 'Scott Burns <scott.s.burns@vanderbilt.edu>'
__copyright__ = 'Copyright 2014 Vanderbilt University. All Rights Reserved'
from .. import db
class Project(db.Model):
"""TODO: Doc... | [
"scott.s.burns@gmail.com"
] | scott.s.burns@gmail.com |
a8bf4a6ab220f84abfd45454ca066195a871ad21 | 5506e6244a67bc46903858cb8ed4f6bf83d577c1 | /examples/fcis/coco/eval_coco.py | 39708a8000cb18f799b12a3bb8b1bbcb679604ba | [
"MIT"
] | permissive | knorth55/chainer-psroi-align | c122d00cf3b911546978053adccb19fff1486d06 | 66b55e9ea24f8fd36215a604a65235ba53026cc1 | refs/heads/master | 2020-03-19T05:03:29.820238 | 2018-08-05T14:31:17 | 2018-08-05T14:32:13 | 135,895,474 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | import argparse
import chainer
from chainer import iterators
from chainercv.datasets import coco_instance_segmentation_label_names
from chainercv.datasets import COCOInstanceSegmentationDataset
from chainercv.evaluations import eval_instance_segmentation_coco
from chainercv.utils import apply_to_iterator
from chainerc... | [
"shingogo@hotmail.co.jp"
] | shingogo@hotmail.co.jp |
8821ece150449d0aafa9471faf4ac0a8cfb93e82 | 2d08f3dd8cb72fc0f64ac98d6f5409b2d8117f75 | /service/dpms/tasks.py | 78029a4f875dde4552ff5a27d3bed4073287c647 | [] | no_license | Minexora/homeauto | b13291054543669376f1ed22a395ec1001883fa3 | dc44eec86236a916fcf589047ff5ed9272088950 | refs/heads/master | 2023-08-23T23:09:13.992762 | 2021-09-28T05:56:25 | 2021-09-28T05:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | from invoke import task
JOB = 'dpms'
PORT = 9095
TAG_x86 = f'bang6:5000/{JOB.lower()}_x86:latest'
TAG_pi = f'bang6:5000/{JOB.lower()}_pi:latest'
ANSIBLE_TAG = 'homeauto_dpms'
@task
def build_image_x86(ctx):
ctx.run(f'docker build --network=host -t {TAG_x86} .')
@task
def build_image_pi(ctx):
ctx.run(f'docker b... | [
"drewp@bigasterisk.com"
] | drewp@bigasterisk.com |
e46266f28d3ae1c434ea4a8edfb25b967021f173 | f20f930154569f1a353fd8102e7b7f666a042b4d | /utilidades/scripts graficas covertura/test_nbvnet.py | 38140f3a82ce27a5543a5c486ceb569fb1e29c5d | [] | no_license | irvingvasquez/Programas_NBV | 69e15e0bb0750180c783857182e2e574d3fe5528 | 0bfbabaf0c5fd5e0ad81156a960fabe29e93be44 | refs/heads/master | 2020-04-13T21:40:22.697290 | 2018-11-30T19:16:36 | 2018-11-30T19:16:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,615 | py | #!/usr/bin/env python
#crea un octree de 32x32x32 del archivo de entrada indicado
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import tensorflow as tf
import argparse
def flatten_cube_func(direction, octree_cube):
cloud_file = np.loadtxt(direction)
##octree configurati... | [
"you@example.com"
] | you@example.com |
b0c48d7ca0b2687f98e0c4e2ceb112548ed8608b | 2d0f940ebbf3d6f9eb5962715e2880bdc70f40b9 | /week-04/day-3/16.py | cc2313515ccdd4f5c1b0ea8758f8337071ee35a5 | [] | no_license | greenfox-velox/agyenes | 9482cdfc33d0f68f24209ce2af3629e2ccd1a120 | d341d14d7cd0bc627d02e02acabf79bc45c8ccfa | refs/heads/master | 2021-01-21T14:12:08.707870 | 2016-07-14T15:09:28 | 2016-07-14T15:09:28 | 58,042,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # create a 300x300 canvas.
# make it look like a nigth sky:
# - The background should be black
# - The stars can be small squares
# - The stars should have random positions on the canvas
# - The stars should have random color (some shade of grey)
from tkinter import *
import random
root = Tk()
canvas = Canvas(root, ... | [
"aron.gyenes@gmail.com"
] | aron.gyenes@gmail.com |
63f1c759388a1f6c898a492e8f947d5c7f9b7a99 | 12d05a7f65e6ca8ffa701670ed1bec209af77a51 | /capsule_biblosa/models/biblosa/model_context_fusion.py | 3a4558947f0e4fb55f264baf4a5bd036125fec6a | [] | no_license | Bobby-Han/text-classification | ec8015e6bb438fceb8d7b61117519e2d6469c57d | 2fa6d3ed4f3b9288ff7fb385c9cced44daf522ca | refs/heads/master | 2023-02-24T13:27:36.761439 | 2021-02-01T06:27:53 | 2021-02-01T06:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py |
from models.biblosa.configs import cfg
from models.biblosa.utils_biblosa.record_log import _logger
import tensorflow as tf
from models.biblosa.model_template import ModelTemplate
from models.biblosa.nn_utils.nn import linear
from models.biblosa.nn_utils.baselines.interface import sentence_encoding_models
class Mode... | [
"2501967525@qq.com"
] | 2501967525@qq.com |
b1f8abb4f62f317666f8dd6764f0a878d3a3ace1 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/move/usageFromFunction/after/src/a.py | 2f5efc6775c95a5bc58b74169a4277fee24cd33a | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 19 | py | def f():
pass
| [
"andrey.vlasovskikh@gmail.com"
] | andrey.vlasovskikh@gmail.com |
949537d562f002e55024625b80f88fff2fae99b3 | 2132557b760e9837567a5026793da65cf0ea7671 | /Desktop_App/Addax/env/Lib/site-packages/ImageDraw.py | 7aa7deccc37ef3c0f83a23d08d44347e3c31a196 | [
"MIT"
] | permissive | filesmuggler/antelope | e54fa94e3e3036723026bb2b353af8b97c00bfbf | f7f4a857fc8afb4eb9e83f2a8e3734c863ba9102 | refs/heads/master | 2020-04-16T10:48:28.858132 | 2019-01-23T18:48:16 | 2019-01-23T18:48:16 | 165,517,519 | 0 | 0 | MIT | 2019-01-23T18:48:17 | 2019-01-13T14:51:36 | Python | UTF-8 | Python | false | false | 28 | py | from PIL.ImageDraw import *
| [
"krzste09@outlook.com"
] | krzste09@outlook.com |
895ac87d8ad6d02777cd3138ceae448566c4978f | fb28a622b21f5127c83c7fe6193b6312294b2dbe | /apps/videos/serializers.py | 2168d3dee4765b054deb4c9de8ce3792e35b1ecf | [] | no_license | laoyouqing/video | 0cd608b1f9d3a94da4a537867fafce6f7dcd1297 | 9aa7ecf17f0145437408a8c979f819bb61617294 | refs/heads/master | 2022-12-19T11:02:01.343892 | 2019-08-21T04:00:13 | 2019-08-21T04:00:13 | 203,500,521 | 0 | 0 | null | 2022-12-08T06:03:17 | 2019-08-21T03:40:13 | Python | UTF-8 | Python | false | false | 1,732 | py | from rest_framework import serializers
from videos.models import IndexGoodsBanner, Video
class BannerSerializer(serializers.ModelSerializer):
'''轮播图'''
class Meta:
model = IndexGoodsBanner
fields = ('video','image')
class IndexSerializer(serializers.ModelSerializer):
'''首页'''
cl... | [
"lingo.lin@foxmail.com"
] | lingo.lin@foxmail.com |
db9d2e5d78b105e041063fa27e041b701c474cdb | 12977c4d2eae4bfd3b7112814a7e63c506e7bbbe | /ad_budget_detail_div/report/budget_detail_xls_backup.py | e1458b4cde2d2839b081227d4eb06c6b0ac9ed5c | [] | no_license | aryaadiputra/addons60_ptgbu_2013 | 211f3ab9fc74cc3e3f4df770b6ada65d24b83977 | b5cf28bdbb347df4c39ffe3ca32355bd2206077b | refs/heads/master | 2020-04-06T04:11:37.667486 | 2016-11-25T03:27:54 | 2016-11-25T03:27:54 | 58,649,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,703 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# Copyright (c) 2009 Zikzakmedia S.L. (http://zikzakmedia.com) All Rights Reserved.
#... | [
"aryalemon.mail@gmail.com"
] | aryalemon.mail@gmail.com |
3113ca577299f9cc1031afc05fceafb52ffc31cc | 9479825e910f237557325fe3513f3c4d39c841de | /pmg/bills.py | 1bad8a91e470ef5762b2bc0ceec71f996ab9023d | [
"Apache-2.0"
] | permissive | lukehuang/pmg-cms-2 | d9d37d6b4fec024f5a72d0c4078c557fd730de7c | 8a259c34a9cf6a4e6dc5881855290ad1bca1bc20 | refs/heads/master | 2021-01-20T21:06:21.684800 | 2017-08-29T09:34:38 | 2017-08-29T09:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | from itertools import groupby
import datetime
import os.path
import bisect
from flask import url_for
MIN_YEAR = 2006
ICONS = {
"member": "bill-introduced.png",
"committee": "committee-discussion.png",
"house": "house.png",
"president": "signed-by-president.png",
"unknown": "bill-introduced.png",... | [
"greg@kempe.net"
] | greg@kempe.net |
868f86a8b4a8d2b93140c412dfc8cb90f7d0cf46 | 6300fcf67d4fcb5387a9f0f7370a8ffe8f4097d9 | /AutoParts/AutoParts/vehicle/migrations/0001_initial.py | 25670b28e9b21a438a2e658bc4a5e4d008468c93 | [] | no_license | Borislav-source/Final-Project | e34ac1cbb71e3a32ed490361d3583c2e1e8bfbc9 | 501b258d103c2e1b8947451f4bdf750709d040fd | refs/heads/master | 2023-07-17T15:03:19.390774 | 2021-09-01T14:06:09 | 2021-09-01T14:06:09 | 393,977,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | # Generated by Django 3.2.6 on 2021-08-11 11:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EngineModel',
fields=[
... | [
"tsv.borislav@gmail.com"
] | tsv.borislav@gmail.com |
9bc6ca3d85346528dc9c862965f61e85c103ce84 | b9ed8f5edf787f1a7df567a1b01086dc045427ba | /official/projects/video_ssl/dataloaders/video_ssl_input.py | 240b397d18bcf766cf557912984b6cc38a4cae35 | [
"Apache-2.0"
] | permissive | stjordanis/models | 787183f973f8cd4152f328de2368dbef17376488 | 84e1f30cdb5015848cb0d9e38e5b3f0551953b7c | refs/heads/master | 2023-03-18T08:46:29.986735 | 2023-03-07T23:26:36 | 2023-03-07T23:27:43 | 143,071,287 | 0 | 0 | Apache-2.0 | 2018-07-31T21:18:06 | 2018-07-31T21:18:05 | null | UTF-8 | Python | false | false | 12,662 | py | # Copyright 2022 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 |
6e5183a691303b5e623fa4b8814bc986a232de32 | 641f76328bfeb7e54f0793a18c5b7c00595b98fd | /apps/trade/utils.py | 69ea8e92f681b5743beb5f6aab42a27395c8e35c | [
"Apache-2.0"
] | permissive | lianxiaopang/camel-store-api | 1d16060af92eb01607757c0423377a8c94c3a726 | b8021250bf3d8cf7adc566deebdba55225148316 | refs/heads/master | 2020-12-29T13:23:18.118617 | 2020-02-09T08:38:53 | 2020-02-09T08:38:53 | 238,621,246 | 0 | 0 | Apache-2.0 | 2020-02-07T14:28:35 | 2020-02-06T06:17:47 | Python | UTF-8 | Python | false | false | 10,574 | py | import datetime
import re
from decimal import Decimal
from django.utils import timezone
from django.db.models import Sum
from django.conf import settings
from apps.config.models import Marketing, BoolConfig
from apps.account.models import WxUserAccountLog, WxUserCreditLog
from apps.goods.models import GoodType, ReplGoo... | [
"lyh@gzqichang.com"
] | lyh@gzqichang.com |
0c2ef62587a7453de98816ec30eaa6e455911f59 | d14ca036f35c8f1026d6f01df40f90358cddd331 | /meshio/vtu_io.py | e0737b13d1df2084a84ab1ec9db8f56ed2a5338c | [
"MIT"
] | permissive | luohancfd/meshio | c3af9b869507013fd047be5a88b20dd50e1f0dda | acc40c2ccbcdbc002abe02fa0889c7b06b3af17d | refs/heads/master | 2020-03-28T11:58:22.213400 | 2018-09-07T19:23:32 | 2018-09-07T19:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,592 | py | # -*- coding: utf-8 -*-
#
"""
I/O for VTU.
"""
import base64
import logging
try:
from StringIO import cStringIO as BytesIO
except ImportError:
from io import BytesIO
import sys
import zlib
import numpy
from .__about__ import __version__
from .mesh import Mesh
from .vtk_io import vtk_to_meshio_type, meshio_to... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
aa5977428acf1b3da665912ae0e0285b48cc5ba3 | 79f541042e4b4d6bb443e7a758ca918817ea0f33 | /Pygame/09_PythonGameDevelopment.py | 93dd9e7f40723bcdebe22646355eeeccb814bb5a | [] | no_license | ashutoshm1771/Source-Code-from-Tutorials | d5f950db8f5f648e87303835e9558eeba404939a | f5552d4bd0f4bebcf5c674ff730fcb61f2d7a1ce | refs/heads/master | 2020-09-15T06:08:31.777622 | 2019-11-22T09:08:31 | 2019-11-22T09:08:31 | 223,364,275 | 4 | 0 | null | 2019-11-22T09:01:51 | 2019-11-22T09:01:48 | null | UTF-8 | Python | false | false | 789 | py | import pygame
pygame.init()
white = (255,255,255)
black = (0,0,0)
red = (255,0,0)
gameDisplay = pygame.display.set_mode((800,600))
pygame.display.set_caption('Slither')
gameExit = False
lead_x = 300
lead_y = 300
lead_x_change = 0
clock = pygame.time.Clock()
while not gameExit:
for event in pygame.event.get(... | [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
1c383a35c5f3d2a314d4952ad778c6e5be01641a | 4edb067c8c748e503e154bb2b9190843f6f1684a | /tests/test_text/test_postag.py | 31e8bb2600ffba623f8fbf1bb2281dcae63b8a9b | [
"Apache-2.0"
] | permissive | DistrictDataLabs/yellowbrick-docs-zh | 5ecbdccfaff4a6822d60250719b37af9b8d37f61 | 3118e67f2bed561a00885e6edb2cabb3520ad66b | refs/heads/master | 2021-04-09T11:00:29.709555 | 2019-04-06T15:23:55 | 2019-04-06T15:23:55 | 125,447,764 | 22 | 5 | Apache-2.0 | 2019-04-06T14:52:40 | 2018-03-16T01:37:09 | Python | UTF-8 | Python | false | false | 2,190 | py | # -*- coding: utf8 -*-
# tests.test_text.test_postag
# Tests for the part-of-speech tagging visualization
#
# Author: Rebecca Bilbro <rbilbro@districtdatalabs.com>
# Created: 2017-03-22 15:46
#
# Copyright (C) 2017 District Data Labs
# For license information, see LICENSE.txt
#
# ID: test_postag.py [bd9cbb9] rebecca... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
230af37383f1ca4090d9c867135ee998803d7b1c | d7ca36f20465870e67e7d6832f8e1b8348af12fc | /calculate/txt/cal_existed_ratio.py | 7984c110ad59c21e6693e043ff37b090a8839091 | [] | no_license | hlcr/LanguageNetworkAnalysis | c109e670534367c782fb71697a92a3ca95aba098 | 65f6c8086f3e4282b15359cc99cf57a682e6b814 | refs/heads/master | 2020-04-24T07:40:04.100213 | 2020-04-17T09:02:05 | 2020-04-17T09:02:05 | 171,805,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | import tool.util as util
import networkx as nx
import os
import copy
from collections import OrderedDict
from collections import Counter
def get_speical_dict(w_dict):
r_dict = OrderedDict()
index = 0
stop_value = 0
for k,v in w_dict.items():
if v == 1 or v < stop_value:
break
... | [
"hongliryan@gmail.com"
] | hongliryan@gmail.com |
acabbba519a046ce16017002f4e7c7e7f0addf34 | 718f96baef2f8693d9ddf8199e2d6352b2003d60 | /wsib/urls.py | 37fc241159db847a2bd6f93c4d7727167cb92f1b | [] | no_license | Sandaru95/wsib | 95daa08c5352504a564e27c3f3eabbef7e44c39d | 1a55030caad57ce3cc59e7bae9bffc3a7fbabaff | refs/heads/master | 2020-09-13T03:27:26.762096 | 2019-11-20T21:59:43 | 2019-11-20T21:59:43 | 222,643,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.ReturnToHomeView.as_view()),
path('home/', include('home.urls')),
pa... | [
"unknown@example.com"
] | unknown@example.com |
de0d500cff740ded2b8b65ed5b9fa0c2b6958890 | fa0c53ac2a91409eaf0fc7c082a40caae3ffa0d8 | /com/lc/demoLearnPython/python_coroutine.py | 440f38100a78c152f46f97d2175aa78035aae963 | [] | no_license | ahviplc/pythonLCDemo | aba6d8deb1e766841461bd772560d1d50450057b | 22f149600dcfd4d769e9f74f1f12e3c3564e88c2 | refs/heads/master | 2023-07-24T01:41:59.791913 | 2023-07-07T02:32:45 | 2023-07-07T02:32:45 | 135,969,516 | 7 | 2 | null | 2023-02-02T03:24:14 | 2018-06-04T04:12:49 | Python | UTF-8 | Python | false | false | 3,443 | py | # _*_ coding: utf-8 _*_
"""
python_coroutine.py
Version: 0.1
Author: LC
DateTime: 2018年11月28日11:10:11
一加壹博客最Top-一起共创1+1>2的力量!~LC
LC博客url: http://oneplusone.top/index.html
http://oneplusone.vip/index.html
"""
import asyncio
import aiohttp
import threading
# 生产者、消费者例子
def consumer(): # 定义消费者,由于有y... | [
"ahlc@sina.cn"
] | ahlc@sina.cn |
c4ba986be18b469faf2ba1f5a3a4d5d81c6b8e66 | 788e275792f21d8b62334cddd718e6dfa347a7e2 | /citizensnb/pipelines.py | 1612d1a3090ba3dbbdeb99e6266a69d83dccd121 | [] | no_license | daniel-kanchev/citizensnb | 7d99e4e6d976cc173c4ec2fa9c9ec31bdf89a750 | 53fc15778834a3d415fa0eaf41ceed4f9a85243e | refs/heads/main | 2023-04-01T22:33:09.936186 | 2021-04-08T11:56:58 | 2021-04-08T11:56:58 | 355,888,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | from itemadapter import ItemAdapter
import sqlite3
class DatabasePipeline:
# Database setup
conn = sqlite3.connect('citizensnb.db')
c = conn.cursor()
def open_spider(self, spider):
self.c.execute(""" DROP TABLE IF EXISTS articles """)
self.c.execute(""" CREATE TABLE articles (
... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
f7e7997bb9af7f47fab1ac86f96bfc6ad43b2dbd | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_sub_customer_coupons_response.py | cf9c5ebc5ddb0a9eee98ed289b96806ff56b8f60 | [
"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 | 4,441 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListSubCustomerCouponsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1dce5d2fab9f4c3846f11d3dcfe047c8042d3654 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startCirq145.py | 1a54dc465638320a4a50b1bdc04f6cd82d0003f3 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=12
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
348467fbb33b3dd2a17a50137f42632fbc2167e2 | 9a8edc31e2898b4abe3d5be57459d15237ae90b6 | /Groupe3_BD_Serveur-master/g8/g3_tf_idf_week_v2.1.py | 259b81b7b5b50c735c05d887cb81f14de1eba16b | [] | no_license | sid-ut3/watchnews | c6245c01d6d4ff840113bd39826b58da2efbef8f | 3a2e1b56acefe26f4e7d99910d002e27699da302 | refs/heads/master | 2020-04-01T17:21:47.596354 | 2018-10-17T10:03:37 | 2018-10-17T10:03:37 | 153,425,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,410 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 15 08:57:58 2018
@author: laura
"""
"""
g1
@Author : F.C
g3
@Author : L.B. M.I. A.H. C.G.
g8
@Author : F.R.
"""
import MySQLdb
from datetime import datetime, timedelta
import timestring
from flask import Flask, request, jsonify
import json
import requests
from flask_res... | [
"kps@anthracite.local"
] | kps@anthracite.local |
8e8d4a5bcd47f7570f4054c3f0e64a1f6642bbbf | 80c9df63673ffa88ed1ef54cece43e14734d1e0f | /run-client.py | 21039e4c700e389c1260dcd2f846aa44f0bf5673 | [] | no_license | Chovin/Troop | 03407e4ebc1012253bf1e6b1415e9db6254fc9c4 | 37ade96be9d5cc0d34b7b106755fe9d8f5ea8c2a | refs/heads/master | 2021-08-06T20:18:32.344172 | 2017-10-31T15:20:36 | 2017-10-31T15:20:36 | 109,102,534 | 0 | 0 | null | 2017-11-01T07:48:16 | 2017-11-01T07:48:16 | null | UTF-8 | Python | false | false | 1,917 | py | #!/usr/bin/env python
"""
Troop-Client
------------
Real-time collaborative Live Coding.
- Troop is a real-time collaborative tool that enables group live
coding within the same document. To run the client application it
must be able to connect to a running Troop Server instance on
yo... | [
"ryankirkbride26@gmail.com"
] | ryankirkbride26@gmail.com |
f9d2b343bf2502d1ead8b7f8b4962e7f3498deb9 | 8fd07ea363ba4263bafe25d213c72cc9a93e2b3e | /nsd2018-master/nsd1802/python/day03/position_args.py | 24fd09342ec789d08e99e8d2d19e2c6ac10e7456 | [] | no_license | ml758392/python_tedu | 82e12ae014f0fc81230386fab07f901510fc8837 | 9f20798604db0ac8cd7b69d8c7a52ee361ebc7a7 | refs/heads/master | 2020-04-12T08:30:42.354663 | 2019-03-29T11:55:30 | 2019-03-29T11:55:30 | 162,386,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import sys
print(sys.argv) # sys.argv是sys模块里的argv列表
# python3 position_args.py
# python3 position_args.py 10
# python3 position_args.py 10 bob
| [
"yy.tedu.cn"
] | yy.tedu.cn |
868c8919f895151b196d2ca5d3243b356e5b1603 | 7a57aeafb5bcf30510649a7e9e32400ff7994815 | /virtual/bin/django-admin | 3478668038e80cdb831bf4811a9756da9fab1a02 | [] | no_license | EugeneZnm/FINPLANNER | 2b17e53a461742a4889362b509b29cf5a4484be0 | ef3dd88be02bed091dbadcc9fbc500bd1ff9740d | refs/heads/master | 2022-12-15T22:51:08.822562 | 2020-12-01T22:59:08 | 2020-12-01T22:59:08 | 155,441,523 | 1 | 0 | null | 2022-11-22T03:05:21 | 2018-10-30T19:06:14 | Python | UTF-8 | Python | false | false | 323 | #!/home/eugene/Documents/Moringa/CORE/PYTHON/FINPLANNER/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line(... | [
"eugenenzioki@gmail.com"
] | eugenenzioki@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.