blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83060bc4714b82ea8cc3e7bba7f4ce4411fdd011 | bc10a5df6d3f7e59cea6bf364ac614d39d04ac75 | /submodule/template_lib/pytorch/fgsm_tutorial.py | 45008790ddb86792173526de3d373db99817e2af | [
"MIT"
] | permissive | AnonymousGFR/wbgan.pytorch | f65efdb1f5a6678b7344a6e4186f6e78d446d53c | d75cb6599852e901df0136db87520e3314f8ca71 | refs/heads/master | 2023-04-14T06:22:34.542167 | 2019-10-08T14:28:46 | 2019-10-08T14:28:46 | 210,862,958 | 1 | 0 | MIT | 2023-03-24T23:08:30 | 2019-09-25T14:17:04 | Python | UTF-8 | Python | false | false | 5,192 | py | from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
import numpy as np
import matplotlib.pyplot as plt
outdir = 'results/fgsm'
epsilons = [0, .05, .1, .15, .2, .25, .3]
pretrained_model = f"{ou... | [
"you@example.com"
] | you@example.com |
ed8fd8a7e250c616bfaaad5bd06f39a58258aad1 | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /VMS/core/python/setup.py | 145c7ec74b08da59c3c13b1c966f6979da01ad6e | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 1,110 | py | # coding: utf-8
"""
VMS API
## Description API to be impemented by VMS systems for integration into HealthSuite business processes # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: support@allocatesoftware.com
Generated by: https://openapi-generator.tech
"""
from setuptools im... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
6f55d1a15017e4db87d7d41770a35d0bedbffe61 | 31fd6c73c37b5065221427d8272e92afc5a79a53 | /src/uniform-tilings/coxeter/integer.py | afcbbb6ec064ff1d47a0d7422bfb08a8eff48433 | [
"MIT"
] | permissive | GenerousMan/pywonderland | 2b28d59aea65fc402dcbea8be585c4e30c7fed3b | 28b7611066fde2590ab9f60971248eb47809ec3e | refs/heads/master | 2020-12-28T09:07:27.086833 | 2020-02-04T11:48:08 | 2020-02-04T11:48:08 | 238,259,252 | 1 | 0 | MIT | 2020-02-04T17:04:20 | 2020-02-04T17:04:19 | null | UTF-8 | Python | false | false | 785 | py | """
Helper functions for integer arithmetic.
"""
from collections import defaultdict
def lcm(m, n):
if m * n == 0:
return 0
q, r = m, n
while r != 0:
q, r = r, q % r
return abs((m * n) // q)
def decompose(n):
"""Decompose an integer `n` into a product of primes.
The result... | [
"mathzhaoliang@gmail.com"
] | mathzhaoliang@gmail.com |
f6a8ae1541c9a1aea0034d32f065444a664ebed5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/55/usersdata/111/22852/submittedfiles/av2_p3_civil.py | 1f8bc8ba880d7c45429f3ca8df20c55e347dfe9a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def peso(a,x,y):
soma=0
c=0
d=0
for i in range(0,a.shape[0],1):
for j in range(0,a.shape[1],1):
if x==a[i+1]
c=i
if y==a[j+1]
d=j
for i in range(c,a.shape[... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e7433943b06f1d78b9a7fd9a4c54496f2fd4de75 | 6987dfe763caed29613ae255c00821ffb25f44c9 | /utils/ltp/ltp_xml.py | b9c9c1205fdcd7370b8f2fc55893503643bb2607 | [] | no_license | sapnajayavel/FakeReview-Detector | 70a4f9decc7214f796f362b1e53736dd4c3ef71f | ab3ebef3cc0bb6c483c18d39bff1277d2e98c9c0 | refs/heads/master | 2021-01-22T13:30:58.090821 | 2013-06-16T23:42:37 | 2013-06-16T23:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python2.7
#encoding=utf-8
"""
"""
from xml.dom.minidom import parse,parseString
class ltpXML:
def __init__(self,sentence,xml_str):
self.sentence = sentence
self.xml_str = xml_str
self.relate_list = self.get_relate_list()
self.word_list = self.get_word_list()
de... | [
"yangxue00.yxmn@gmail.com"
] | yangxue00.yxmn@gmail.com |
a063e399690c0d581577baa5acc8bb0f037038f6 | 698c383b77111d53495268b64d45f39ffcba126d | /homebooks/accounts/utils/make_user_yaml.py | dd16087b243bf1cb875dca3c6c2651217cc629e0 | [] | no_license | noname2048/ab-homebooks-django | 5f42080d17c9e16a68210766bab11cff56ef74dd | 702e2957ea48eb4fdee8d00558d2ded1434e170d | refs/heads/main | 2023-07-07T15:28:36.000023 | 2021-08-10T12:27:46 | 2021-08-10T12:27:46 | 363,648,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import yaml
from faker import Factory
from yaml import load, dump
from pathlib import Path
if not Path(Path(__file__).resolve() / "test_users.yaml").exists():
fake = Factory.create("en_US")
fake.seed(1)
user_list = [{"username": fake.user_name(), "email": fake.email()} for _ in range(100)]
try:
... | [
"sungwook.csw@gmail.com"
] | sungwook.csw@gmail.com |
40058b6bf2a6a6dbfac1e5619d0b93b834b79775 | 1bb2a9150de01c618163bbb8f872bdce6f14df4f | /Puzzle/030_set_tap.py | f618728840144e90b9c2fb12dd4b874157cd6e85 | [] | no_license | whyj107/Algorithm | a1c9a49a12a067366bd0f93abf9fa35ebd62102e | aca83908cee49ba638bef906087ab3559b36b146 | refs/heads/master | 2023-04-14T12:59:52.761752 | 2021-05-01T03:53:31 | 2021-05-01T03:53:31 | 240,014,212 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | # 멀티 탭으로 만든 문어 다리 배선
# 문제
# n=20일 때 몇 가지의 멀티 탭 배치를 생각할 수 있는지 구해 보세요
# (단, 전원 용량은 생각하지 않기로 한다.)
N = 20
def set_tap1(remain):
if remain == 1:
return 1
cnt = 0
# 2구
for i in range(1, remain // 2 + 1):
if remain - i == i:
cnt += set_tap1(i) * (set_tap1(i) + 1) // 2
els... | [
"60024292+whyj107@users.noreply.github.com"
] | 60024292+whyj107@users.noreply.github.com |
174d29bde1166d77b5ea8428c53b1229672719c3 | 3cc2f47de6d78d610a2887f92bfba150b2994888 | /application/utils/helper.py | a55fae66e681c0efa5cc87d0be94b0835edd7f75 | [] | no_license | fengliu222/blogbar | c8a66df586187d0a16063e4536e76d155863fe17 | ff6e7182f000777112101eed12ae9e2ca4298d25 | refs/heads/master | 2021-01-15T08:59:51.478354 | 2014-12-20T08:13:53 | 2014-12-20T08:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # coding: utf-8
def parse_int(integer, default=None):
"""提取整数,若失败则返回default值"""
try:
return int(integer)
except Exception, e:
return default
| [
"hustlzp@qq.com"
] | hustlzp@qq.com |
5dc8c4505c10729f9eba9ecc3c9bdcb476c5dbda | 43e0cfda9c2ac5be1123f50723a79da1dd56195f | /python/paddle/fluid/tests/unittests/test_sparse_elementwise_op.py | 12546ea463a84ac9d8defa21eb099c6346b2678d | [
"Apache-2.0"
] | permissive | jiangjiajun/Paddle | 837f5a36e868a3c21006f5f7bb824055edae671f | 9b35f03572867bbca056da93698f36035106c1f3 | refs/heads/develop | 2022-08-23T11:12:04.503753 | 2022-08-11T14:40:07 | 2022-08-11T14:40:07 | 426,936,577 | 0 | 0 | Apache-2.0 | 2022-02-17T03:43:19 | 2021-11-11T09:09:28 | Python | UTF-8 | Python | false | false | 5,489 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | jiangjiajun.noreply@github.com |
4946b6aece4fd26a815a69b1f0b8b0e7d424b1f3 | 843ca2944c5a92dc3d13d132c34545d3b18a9eb9 | /scripts/cell/interfaces/Avatar/DialogSystem.py | fc3f3e99bb9671019e60d6fc59f6cc818c81ed2c | [] | no_license | m969/wanfadalu_server | 550dac97795bfc15c1d47f0c18bfab9c18fe6a76 | 08f5bec5ed4a17f4f1fcc40a27311aa03906e5ef | refs/heads/master | 2021-07-03T10:21:21.331204 | 2020-08-14T14:56:42 | 2020-08-14T14:56:42 | 138,024,157 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | # -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *
import GlobalConst
import PyDatas.level_data as level_data
import PyDatas.dialog_config_Table as dialog_config_Table
from DIALOG_ITEM import TDialogItem
from DIALOG_ITEM import TDialogItemList
dialogDatas = dialog_config_Table.datas
dialogTypeMap = {
1... | [
"969041327@qq.com"
] | 969041327@qq.com |
fc79f953728d1619a0608c81d27284876bdce5b6 | 16f61285e902285ecade358870a2ab5720bfc3b4 | /utilities/make_nsr_database.py | 350eb90bfb64c5d88363c94b7f0d50bbba4e90cf | [] | no_license | naturalis/galaxy-tool-taxonmatcher | 56dbd56264392fb3f2c477ea7aea65a0cd919a19 | 4e9e337c7156d624db60842ed9c7304d909f479d | refs/heads/master | 2022-11-17T18:35:23.176173 | 2022-11-15T10:15:18 | 2022-11-15T10:15:18 | 149,607,894 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | #!/usr/bin/python3
import sqlite3
import csv
db = sqlite3.connect('nsr_taxonmatcher')
cursor = db.cursor()
def make_database():
cursor.execute('''CREATE TABLE nsr(id INTEGER PRIMARY KEY, source TEXT, taxonID INTEGER, acceptedNameUsageID INTEGER, taxonomicStatus TEXT, species_rank TEXT, genus_rank TEXT, family_rank... | [
"martenhoogeveen@gmail.com"
] | martenhoogeveen@gmail.com |
58a9216257324f092630be979ba310cc8f359ca1 | 149c90e6366d8adf9cbfd9332612736a41e6dc25 | /__manifest__.py | 224e05af8799187aeda5ad199cb0481c624444e3 | [] | no_license | brahim94/formation | 02549ef1fee7d7432987248e87627b22158a12f6 | 1cd96a6ccfac1d61e524a20b84d4c30d395f5a35 | refs/heads/master | 2023-03-06T16:19:15.883896 | 2021-02-25T18:13:16 | 2021-02-25T18:13:16 | 341,509,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # -*- coding: utf-8 -*-
{
'name': "formation",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My Company",
'websit... | [
"brahim-ayad@hotmail.com"
] | brahim-ayad@hotmail.com |
cf7283cf94a1136d00a4c9a0df38866b2d50be20 | 6ecff67d6103ddbd787f78c35182722b83b8a37e | /백준/Python/카테고리/우선순위 큐/11286(절대값 힙).py | c06ae059aafbe6c660e2deb3dda5c19f3f852654 | [] | no_license | jsungmin6/Algorithm | 9ef2339aa00921e7df756a8dff569954a008c118 | bc1ea9de9f7ba3f1aa6616ebef8719540d72e0bf | refs/heads/master | 2023-05-27T06:24:16.123307 | 2021-06-11T09:22:21 | 2021-06-11T09:22:21 | 259,299,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | '''
분류
우선순위 큐
근거
절대값 힙, 작은수부터 출력해 배열에서 제거
풀이과정
1.절대값이 가장 작은 값을 출력 하는데 같을경우에는 -를 출력한다.
힙을 튜블로 저장해서 -,+ 여부를 파악하고 순서를 줘야할 것 같다.
2.다른 풀이를 보니 우선순위큐를 두개써서 음수와 양수를 나누어 저장해 깔끔하게 구했다.
시간복잡도
우선순위 큐는 삽입과 삭제가 O(log(N)) 이다 . N번 수행하니
O(Nlog(N))
'''
import heapq
import sys
input = sys.stdin.readline
N=int(input())
heap=[]
for _ i... | [
"jsungmin506@gmail.com"
] | jsungmin506@gmail.com |
9229c9844bad464a609cd06d4a743ce10d40f974 | 1fb1c41a7b916da23f02db059526f93f071c5479 | /django12/src/blog/views.py | 9f847f4e748441c0399614978594313e2c220119 | [] | no_license | jm40108/1 | 1a70d90ad8f7bfb0e4da55960b075a70766482c5 | 2f11ad1751aa4d5df01c00fcd07fd2c68a93a425 | refs/heads/master | 2020-04-14T01:20:18.752824 | 2018-12-30T03:23:12 | 2018-12-30T03:23:12 | 163,557,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from .models import *
from django.views.generic.detail import DetailView
from django.views.generic.edit import FormView
from .forms import *
from django.http.response import HttpResponseRedirect
from django.urls.base import revers... | [
"user@DESKTOP-7EQF3M8"
] | user@DESKTOP-7EQF3M8 |
99f41f0320101cd077bdd50a4a2cb1db34c8fa1e | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/25.ReverseNodesInK-Group.py | 6607facb67916c01b66962b629574b88293be6ce | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | # 25. Reverse Nodes in k-Group
# Hard
# 4406
# 427
# Add to List
# Share
# Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
# k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
4e09d800c43d33123b8450392a65415a90949257 | ddc38e9a10e31c122e19d8fe132e9d73ac954c50 | /tests/conftest.py | 4338383926352a7245060ae3a6035ede61b2a92b | [
"MIT"
] | permissive | Tinche/pyrseia | 8734bddc5f0efcc5ceb901fd80a7bd239306577f | 5abf2eda9be06b7417395a50ef676454bbd8f667 | refs/heads/master | 2023-09-03T17:38:05.059968 | 2020-05-10T01:05:20 | 2020-05-10T01:05:20 | 256,872,895 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | from typing import Callable, TypeVar, Type
from pytest import fixture # type: ignore
from pyrseia import server, Server
from .calculator import Calculator
C = TypeVar("C")
@fixture
def calculator_server_creator() -> Callable[[Type[C]], Server[Calculator, C]]:
def create_server(
ctx_cls: Type[C], middle... | [
"tinchester@gmail.com"
] | tinchester@gmail.com |
61a0e08eee109f4b7a51ef5accb0820c64fd186e | d2dbc4eeba22f308634d8accde50062739fb50d1 | /sd/algorithms/partitional.py | 004f4e4ff78310c3a207d2e1a97987346704b6a9 | [
"Apache-2.0"
] | permissive | shibaji7/SuperDARN-Clustering | bf2d793a23dfae105bd4ca5bbac09fd64e60182a | d7427ba609fb7f5e50c26f52364e5e9e118bbc31 | refs/heads/master | 2022-12-24T07:08:52.308469 | 2020-10-06T16:46:08 | 2020-10-06T16:46:08 | 267,057,983 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | #!/usr/bin/env python
"""
partitional.py: module is deddicated to run different partitional algorithms.
Partitional clustering algorithms aim to discover the groupings present in the data by optimizing
a specific objective function and iteratively improving the quality of the partitions. These algorithms
... | [
"shibaji7@vt.edu"
] | shibaji7@vt.edu |
9182b833c33a0c031a4b6abd00195b321488a6ba | 35fa8925e63f2b0f62ef6bfc1ff4e03cf42bd923 | /django_analyses/serializers/analysis.py | 5686c2648bdc0f3b2920d148bc7a04ed4cdb06cb | [
"Apache-2.0"
] | permissive | TheLabbingProject/django_analyses | 9e6f8b9bd2a84e8efe6dda6a15de6a3ecdf48ec1 | 5642579660fd09dde4a23bf02ec98a7ec264bceb | refs/heads/master | 2023-02-26T07:53:53.142552 | 2023-02-17T08:12:17 | 2023-02-17T08:12:17 | 225,623,958 | 1 | 2 | Apache-2.0 | 2023-02-17T08:12:18 | 2019-12-03T13:15:29 | Python | UTF-8 | Python | false | false | 662 | py | from django_analyses.models.analysis import Analysis
from django_analyses.models.category import Category
from rest_framework import serializers
class AnalysisSerializer(serializers.HyperlinkedModelSerializer):
url = serializers.HyperlinkedIdentityField(view_name="analyses:analysis-detail")
category = seriali... | [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
766e6c727fc7adb01aeabb92bfcb815182f6aae6 | 81f3f88c6b1a687726b75b8f53c2fb29d72df584 | /aispider/crawler/auto_crawler.py | d998aaa9ed30476aae87695ddcafe35746857691 | [
"Apache-2.0"
] | permissive | East196/aispider | 1f256ee1eea991d49d41373f2b4734a65b264b7d | 6b42ff5c4bda89cbd923a86f3aa3fdf4a224dbb9 | refs/heads/master | 2020-04-07T10:14:14.222722 | 2018-04-21T04:55:11 | 2018-04-21T04:55:11 | 124,202,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
爬取器
"""
from __future__ import print_function
import json
import re
from xml.sax.saxutils import escape
from bs4 import BeautifulSoup
from lxml import etree
from aispider.core.http_request import HttpRequest
from aispider.core.request import get_soup, get_json, get_... | [
"2901180515@qq.com"
] | 2901180515@qq.com |
710eb29d865055eab7e561ae6bcc477dc460ff18 | 7410903c6cd5ef35c592af00c934fb21c369cbf2 | /00_Code/01_LeetCode/537_ComplexNumberMultiplication.py | 094cbd3b7c1735c92ca7bc620c1998bdb3a74513 | [
"MIT"
] | permissive | KartikKannapur/Algorithms | f4e4726170599db0622d18e8c06a382e9bce9e77 | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | refs/heads/master | 2020-12-25T18:32:41.086518 | 2020-10-19T02:59:47 | 2020-10-19T02:59:47 | 93,961,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | """
Given two strings representing two complex numbers.
You need to return a string representing their multiplication.
Note i2 = -1 according to the definition.
Example 1:
Input: "1+1i", "1+1i"
Output: "0+2i"
Explanation: (1 + i) * (1 + i) = 1 + i2 + 2 * i = 2i, and you
need convert it to the form of 0+2i.
Example 2:... | [
"kartikkannapur@gmail.com"
] | kartikkannapur@gmail.com |
db82c1c496fe6537c6a8907b9536571681a9557c | 98879590858368d5c32c389db31b761e479a0ab8 | /wsgiserver/test_server2.py | 65acfc0ccd5cfba74d4dc697f67fa500d68a87c0 | [] | no_license | zhiruchen/get_hands_dirty | 0bbf3719113dcf474baae571ecd55e5c234072a3 | af98a11bbeb8183428fe41cb7c9fa9a2354983e9 | refs/heads/master | 2020-04-17T12:00:44.275247 | 2017-06-24T16:28:43 | 2017-06-24T16:28:43 | 66,988,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # -*- coding: utf-8 -*-
import re
from cgi import escape
def index(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
return ['''Hello World Application
This is the hello world application:
`continue <hello/>`_
''']
def hello(environ, start_respon... | [
"zhiruchen1992@foxmail.com"
] | zhiruchen1992@foxmail.com |
3e3a6e0c7c8a80543715611c08a374cc4e38615b | 114ea96f201cf3de825900fc632b6696433ae240 | /my_selenium/scroll.py | 538bf4ca52bdd1ef18230e06d1660bc08b65d708 | [] | no_license | iorilan/py_tiny_apps_playground | 2662133ec97aee0d495329a355fd22f7fb14ad2e | 70fb7965c1c27419ee83b6e9fd94d27ad47e4040 | refs/heads/master | 2023-02-08T12:06:47.406728 | 2020-12-31T15:08:24 | 2020-12-31T15:08:24 | 282,785,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | """
http://the-internet.herokuapp.com/infinite_scroll
"""
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
import time
def go():
y=100
# to keep browser open by pass... | [
"iorilan@hotmail.com"
] | iorilan@hotmail.com |
3f5d03e017f3cbb1e790acea900ca9157adbf6c2 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/type_field_py3.py | d522b7658ebd52d0c6959e7716a83589d1124bef | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 1,042 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
e68925dd548561cc823aaf960ced2ccccccc2fda | 7e96ba20c25c6fb56af6ccd36b3b6d68df6a081c | /Shivi_khanuja/Django/belt_reviewer/apps/reviews/apps.py | 074ef3493d7c37a3c7566d311a3355dc3c20d54f | [] | no_license | CodingDojoDallas/python_september_2017 | 9d8cd74131a809bc6b13b7f465594cf8b1e2fd75 | f9f2f7b39bf9c4fceda3df5dc7424164aa5d5df5 | refs/heads/master | 2021-01-23T08:52:22.899994 | 2017-10-30T17:00:55 | 2017-10-30T17:00:55 | 102,558,291 | 2 | 14 | null | 2018-01-13T05:28:34 | 2017-09-06T03:28:38 | Python | UTF-8 | Python | false | false | 162 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class ReviewsConfig(AppConfig):
name = 'reviews'
| [
"shivalikhanuja.net@gmail.com"
] | shivalikhanuja.net@gmail.com |
b98467ba8ab928b8fe67d4607f0eaa6093bece31 | 14d1b3b0d2f4b21a62ae11bb30adaafca4aa0a76 | /demo_2.py | 106f3e70eebbcab59aad22dcb7825bc9f53da156 | [] | no_license | bdrummo6/CSPT13_Algorithms_GP | 9d64f83cdf566588b988d4108be655997d3b0dd0 | 907dc29d245ebb88d9ce07cf60249bf1ca862c50 | refs/heads/main | 2022-12-26T17:48:29.633204 | 2020-10-06T02:29:58 | 2020-10-06T02:29:58 | 301,584,067 | 0 | 0 | null | 2020-10-06T01:35:29 | 2020-10-06T01:35:28 | null | UTF-8 | Python | false | false | 4,375 | py | '''Explorer's Dilemna - aka the Knapsack Problem
After spending several days exploring a deserted island out in the Pacific,
you stumble upon a cave full of pirate loot! There are coins, jewels,
paintings, and many other types of valuable objects.
However, as you begin to explore the cave and take stock of what you'v... | [
"tomtarpeydev@gmail.com"
] | tomtarpeydev@gmail.com |
8f06b68aecddec25becf243ccd0383fb3198050f | a4ac55fca45c6d958513af43a1916c66fb25b931 | /pyatool/extras.py | 685dbf8e9c9ea0f853f63f2f2bd2fe94754931ad | [
"MIT"
] | permissive | guolong123/pyatool | d4393ebbfe3160400b0060e52f0d73c457212999 | 3d7e1bad67d990909dc590c1132c0f3811a2eee9 | refs/heads/master | 2020-04-24T02:19:07.642579 | 2019-02-20T05:59:01 | 2019-02-20T05:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,097 | py | import requests
import tempfile
import os
import re
import platform
SYSTEM_TYPE = platform.system()
def hello_world(toolkit=None):
"""
test only
:param toolkit:
:return:
"""
# toolkit contains some tools for development
# get device id
device_id = toolkit.device_id
print(device_i... | [
"178894043@qq.com"
] | 178894043@qq.com |
9ec0d07f9d5c5478b3c58d1c523384b8f2a6aa8e | 1b3402ff6f4b531d13add47d94fa497666bdd3f1 | /authentication/serializers.py | 0cab463ae50c55a50877768f7d80bf9ebf71a3f8 | [] | no_license | falled10/breaking_brain_api | b4287ed8986986dea5621deb45529c6986af0f32 | b16324f5a0a6d102797944a02c3194d6f86b049e | refs/heads/master | 2023-06-03T07:25:11.862023 | 2021-06-20T16:00:43 | 2021-06-20T16:00:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | from django.utils.encoding import force_text, force_bytes
from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode
from django.conf import settings
from rest_framework import serializers
from authentication.models import User
from authentication.tokens import TokenGenerator
from breaking_brain_api.ta... | [
"jurakulek@gmail.com"
] | jurakulek@gmail.com |
dc2ed23ce665cf327bd85c3c52419c99ed15d825 | dd0f95e4b20112b3c8ec4ded3e2baa9acaa5f71e | /tests/tests.py | e1669df1959e52168d30d20d954360fad2da7d33 | [] | no_license | scotm/postcode_locator | 1cf6f0e075ff38a16806be82be4cb6b345cf6d73 | e9d6a486dc66cc05bc53157f91a71477abc1f449 | refs/heads/master | 2021-01-21T10:13:23.944029 | 2019-03-26T16:47:21 | 2019-03-26T16:47:21 | 31,371,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | from django.contrib.gis.geos import Point
from django.core.urlresolvers import reverse
from django.test import TestCase
from postcode_locator.models import PostcodeMapping
from postcode_locator.tests.factories import PostcodeMappingFactory
class MatchPostcodeTest(TestCase):
def setUp(self):
pass
def... | [
"scott.scotm@gmail.com"
] | scott.scotm@gmail.com |
da0b1ea947109a1a2d20982c3c045252fa82861c | 9b14cd92abcae4e26df1afc3cc595e1edeffda82 | /ATLASalertsservice/alerts.py | 79452ceab9de5b49e82a4533e4f45dd73f8e03d2 | [] | no_license | ATLAS-Analytics/AnalyticsNotebooks | 8d374363c3a55067614a802c1928743e990bd419 | 6656470cf42c5211891013a9f3a0f9036749abe1 | refs/heads/master | 2020-04-15T15:50:44.881217 | 2018-10-19T18:00:05 | 2018-10-19T18:00:05 | 55,799,185 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | import requests, httplib2, json, time
from oauth2client.service_account import ServiceAccountCredentials
from apiclient import discovery
import oauth2client
from oauth2client import client
from oauth2client import tools
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipa... | [
"ivukotic@cern.ch"
] | ivukotic@cern.ch |
c143278afc362b186e45a61344e467ce938f73cf | ddd7e91dae17664505ea4f9be675e125337347a2 | /unused/2014/preprocess/preprocess_ndpi.py | e183a7517dc9cfbe7be7907701c28afb1afe6eb4 | [] | no_license | akurnikova/MouseBrainAtlas | 25c4134bae53827167e4b54ba83f215aec9f2d85 | ed1b5858467febdaed0a58a1a742764d214cc38e | refs/heads/master | 2021-07-15T17:17:19.881627 | 2019-02-22T06:00:17 | 2019-02-22T06:00:17 | 103,425,463 | 0 | 0 | null | 2018-04-27T19:08:02 | 2017-09-13T16:45:56 | Jupyter Notebook | UTF-8 | Python | false | false | 5,345 | py | #!/usr/bin/python
def execute_command(cmd):
try:
retcode = call(cmd, shell=True)
if retcode < 0:
print >>sys.stderr, "Child was terminated by signal", -retcode
else:
print >>sys.stderr, "Child returned", retcode
except OSError as e:
print >>sys.stderr, "Execution failed:", e
... | [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
77058cba020de410735849d1908ef6510f24db88 | dd4d2589d1f14303cacd3b7ee1dd5f6bacd3bf3c | /company/amazon/graphs/connected_graphs.py | e8044bd1e1dd19d5a95ccc77e3a4796e68f2fa77 | [] | no_license | salujaharkirat/ds-algo | ec22eaae81bdb78f2818248508325a536aedbb7b | 819b5971826d97ec600b92776c5158518c9cbf22 | refs/heads/master | 2023-05-02T17:20:49.425484 | 2021-05-23T07:54:29 | 2021-05-23T07:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | class Solution:
def dfs(self, isConnected):
visited = [0] * len(isConnected)
res = 0
def traverse(visited, i):
for j in range(len(isConnected)):
if isConnected[i][j] == 1 and visited[j] == 0:
visited[j] = 1
traverse... | [
"saluja.harkirat@gmail.com"
] | saluja.harkirat@gmail.com |
13866286b72f821ce21e6968b0f7be80736b3dc1 | 24b2f3f5f49ed19cf7fd3dcd433d6b72806e08cf | /python/sorting_and_searching/0363_Max_Sum_of_Rectangle_No_Larger_Than_K.py | 680321f332bc9186ac9d8af3bffac598b0194d6a | [] | no_license | lizzzcai/leetcode | 97089e4ca8c3c53b5a4a50de899591be415bac37 | 551cd3b4616c16a6562eb7c577ce671b419f0616 | refs/heads/master | 2021-06-23T05:59:56.928042 | 2020-12-07T03:07:58 | 2020-12-07T03:07:58 | 162,840,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | '''
27/05/2020
363. Max Sum of Rectangle No Larger Than K - Hard
Tag: Binary Search, Dynamic Programming, Queue
Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rectangle in the matrix such that its sum is no larger than k.
Example:
Input: matrix = [[1,0,1],[0,-2,3]], k = 2
Output: 2
Exp... | [
"lilcolinn@gmail.com"
] | lilcolinn@gmail.com |
9b06082fd362d65269019bd114f3fabdf83ff4c5 | 740ed147112eddc2581504f5a8c5c4cb4dbe32f6 | /pprof/projects/pprof/sqlite3.py | e407453388a8fe510e87f19c8ee2998d4bd0e9c8 | [] | no_license | CIB/pprof-study | 3765499c8111dfcf6f690ea192b9ce235f1f28c4 | 9d6b995ba21ced3fa39327eff6dc34274e3b3b56 | refs/heads/master | 2021-01-22T01:33:53.452195 | 2016-02-15T14:45:14 | 2016-02-15T14:45:14 | 37,426,320 | 0 | 0 | null | 2015-06-14T19:28:01 | 2015-06-14T19:28:00 | null | UTF-8 | Python | false | false | 2,569 | py | from pprof.projects.pprof.group import PprofGroup
from os import path
from plumbum import local
class SQLite3(PprofGroup):
""" SQLite3 """
NAME = 'sqlite3'
DOMAIN = 'database'
src_dir = "sqlite-amalgamation-3080900"
src_file = src_dir + ".zip"
src_uri = "http://www.sqlite.org/2015/" + src_fi... | [
"simbuerg@fim.uni-passau.de"
] | simbuerg@fim.uni-passau.de |
4b2cd183f9317d769c5c7ab8699d92dc79d30b09 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /grow_bert/lowcost/layers/resolution_layer.py | b35bb95842ab66c6af0c41c742b726d6721f1191 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 4,229 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e3444263f858ef21d7e3d42b693a6d4a0113c448 | e122b7aa4f2f0b09962c2a3580b9a440ed1dbcce | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/BatchGetEdgeInstanceDriverConfigsRequest.py | fc162a96be2081c218889caa3105e475c54d4f0c | [
"Apache-2.0"
] | permissive | laashub-soa/aliyun-openapi-python-sdk | 0a07805972fb5893f933951960d0f53fc2938df9 | c0d98a5363225fc8ad4aee74e30d10f62403319b | refs/heads/master | 2023-02-28T00:17:05.934082 | 2021-02-05T09:46:35 | 2021-02-05T09:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
52020455331440cfe02942db01afd18aed00716a | 717558d6a075163294054bd5aea4ef3234df23ad | /models_all/st_test6.py | 020b56f9d7347dd2d7a7fd204cf82942113dc054 | [
"MIT"
] | permissive | RomeoV/pyomo-MINLP-benchmarking | 1270766397fbc4e57ea1bd0c2285fb7edf64062d | 996d2c8ee1cb9b03fe00c6246f52294337d8b92c | refs/heads/master | 2021-07-11T17:54:25.284712 | 2020-08-13T23:43:14 | 2020-08-13T23:43:14 | 185,664,992 | 8 | 1 | MIT | 2019-05-10T19:07:05 | 2019-05-08T19:09:05 | Python | UTF-8 | Python | false | false | 2,229 | py | # MINLP written by GAMS Convert at 05/15/20 00:51:23
#
# Equation counts
# Total E G L N X C B
# 6 1 0 5 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"bernalde@cmu.edu"
] | bernalde@cmu.edu |
669b4b361e5ae6e31c58326b71d172bdfac6fa46 | 1d0613fb401e92b6861ea3f615561df854603db6 | /KiBuzzard/deps/fonttools/Tests/ttLib/tables/otBase_test.py | ce0416e429bf1d1d925f0deb9a77811759bbcc93 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"OFL-1.1",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | gregdavill/KiBuzzard | 8c84a4339108c9942e1ec0e05e4110bba49fd265 | 88c4129b3fbed2cad718c01e5e2d29204e2f2071 | refs/heads/main | 2023-09-01T19:46:45.146077 | 2023-08-31T11:55:10 | 2023-08-31T11:55:10 | 328,686,533 | 358 | 36 | MIT | 2023-08-31T12:12:45 | 2021-01-11T14:16:42 | Python | UTF-8 | Python | false | false | 3,188 | py | from fontTools.misc.textTools import deHexStr
from fontTools.ttLib.tables.otBase import OTTableReader, OTTableWriter
import unittest
class OTTableReaderTest(unittest.TestCase):
def test_readShort(self):
reader = OTTableReader(deHexStr("CA FE"))
self.assertEqual(reader.readShort(), -13570)
... | [
"greg.davill@gmail.com"
] | greg.davill@gmail.com |
e66cb54f081ee6a1b66de4c70b0070575006b270 | caf135d264c4c1fdd320b42bf0d019e350938b2d | /04_Algorithms/Leetcode/JZ23 二叉搜索树的后序遍历序列.py | 9fd12c4174b4cea3111d6a7932fcc8b955ad6e21 | [] | no_license | coolxv/DL-Prep | 4243c51103bdc38972b8a7cbe3db4efa93851342 | 3e6565527ee8479e178852fffc4ccd0e44166e48 | refs/heads/master | 2022-12-31T22:42:20.806208 | 2020-10-23T10:19:19 | 2020-10-23T10:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | # -*- coding:utf-8 -*-
class Solution1:
def VerifySquenceOfBST(self, sequence):
def helper(seq):
if 0 < len(seq) < 2:
return True
elif len(seq) == 0:
return False
else:
pivot = seq[-1]
place = -1
... | [
"1574572981@qq.com"
] | 1574572981@qq.com |
e8fb944f87186041b706d37c50f6956045ae2213 | 7c39cc529a292967d8fc52718a227fccc0da53e4 | /src/crawler/crawler/items.py | 8341771ba3b5981723f73e6ed2a721d274f4581e | [] | no_license | carrie0307/parking-domain-detection | 860b5d1ad5e0e0344c4667e2e91149257a1068a6 | 9ff9f4f2b31c73599d0ac46eeb62634e2a8d940a | refs/heads/master | 2020-04-10T18:03:27.496758 | 2018-12-11T00:28:18 | 2018-12-11T00:28:18 | 161,192,700 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class CrawlerItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
'''
oldDomain = scrapy.Field()
... | [
"cst_study@163.com"
] | cst_study@163.com |
6e78a0942b241bb27c202408d2d7248f3628cdbc | 9689ebc06e7c9a5c1b5b19d34dbcf0f5b5b82cb6 | /speech/migrations/0125_auto_20190121_1023.py | b2e25a07b6d803abbd5e98a66ad8e95273c52cfe | [] | no_license | tigrezhito1/Ramas | 94fe57dc4235616522aa50b36f5a655861ecbb9f | fa894fa69f6bf2a645179cadc11fb8809e82700a | refs/heads/master | 2020-05-02T07:03:03.564208 | 2019-03-26T14:55:29 | 2019-03-26T14:55:29 | 177,808,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-01-21 10:23
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('speech', '0124_auto_20190121_0906'),
]
operations = [
migra... | [
"you@example.com"
] | you@example.com |
877180851854964f8c776d432dcf5da1e3a1f906 | 4a7494457d4ffcc32fd663835ceaa6360488f9e6 | /largest-subarray.py | 8f90cd5e9901bd472435d910a0b9fe416b59f539 | [] | no_license | eliyahuchaim/randomCodeChallenges | c5e35c7afc80f6c2acc482878256bb4710bbbe55 | 780e4404bcad20c6ccaba7a11c52c8d67c96cd59 | refs/heads/master | 2021-05-01T07:18:19.164784 | 2018-02-11T18:21:17 | 2018-02-11T18:21:17 | 121,152,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | array = [1, -1, 5, 3, -7, 4, 5, 6, -100, 4]
def largestSubarray(array):
total = temp = 0
for n in array:
# temp += n if temp + n > 0 else 0
if temp + n < 0:
temp = 0
else:
temp += n
if total < temp: total = temp
return total
# print(largestSubarr... | [
"github email address"
] | github email address |
d217fb6e18d40c8667f11db7401b0d973258cfa1 | 5f2b22d4ffec7fc1a4e40932acac30256f63d812 | /mathematical-modeling/test/canadian_temperature.py | fcb568f1f5270207fcff7d06d953597f12abea66 | [] | no_license | Thpffcj/Python-Learning | 45734dd31e4d8d047eec5c5d26309bc7449bfd0d | 5dacac6d33fcb7c034ecf5be58d02f506fd1d6ad | refs/heads/master | 2023-08-04T21:02:36.984616 | 2021-09-21T01:30:04 | 2021-09-21T01:30:04 | 111,358,872 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,834 | py | # -*- coding: UTF-8 -*-
# Created by thpffcj on 2019/9/20.
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 40)
pd.set_option('display.width', 1000)
'''
[839 rows x 25 columns]
"Date/Time","Year","Month","Mean Max Temp (°C)","Mean Max Temp Flag","Mean Min Temp (°C)","Mean Min Temp Flag","M... | [
"1441732331@qq.com"
] | 1441732331@qq.com |
5573cd63e7ebaa8b444ea121a417072282d3ba39 | 1fc45a47f0e540941c87b04616f3b4019da9f9a0 | /tests/sentry/api/endpoints/test_project_environments.py | 3279e53b271d1c8c31363bcb8df014286d498391 | [
"BSD-2-Clause"
] | permissive | seukjung/sentry-8.15.0 | febc11864a74a68ddb97b146cc1d2438ef019241 | fd3cab65c64fcbc32817885fa44df65534844793 | refs/heads/master | 2022-10-28T06:39:17.063333 | 2018-01-17T12:31:55 | 2018-01-17T12:31:55 | 117,833,103 | 0 | 0 | BSD-3-Clause | 2022-10-05T18:09:54 | 2018-01-17T12:28:13 | Python | UTF-8 | Python | false | false | 1,174 | py | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from sentry.models import Environment
from sentry.testutils import APITestCase
class ProjectEnvironmentsTest(APITestCase):
def test_simple(self):
project = self.create_project()
env1 = Environment.objects.create... | [
"jeyce@github.com"
] | jeyce@github.com |
43765cb5e4883a166f855945d77778bc48262c7f | 4c489dadcc7d5b59e95eb1991085509372233d53 | /backend/home/migrations/0001_load_initial_data.py | 54607830076275e75394db8f9cbd3dc37bd32255 | [] | no_license | crowdbotics-apps/test-26812 | 1a304728cd5230c7f7a843bb37be5b1f2a65f923 | dedd52fc3ab5cb0d5d49f1dafd93232b246beb87 | refs/heads/master | 2023-05-07T09:40:39.041733 | 2021-05-17T18:41:05 | 2021-05-17T18:41:05 | 368,288,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "test-26812.botics.co"
site_params = {
"name": "test",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_create(default... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
42092263ef3f5e333a75f78220560c9da11a25c8 | 4ca853aeabbd3e33f5c0f28699b3de7206ad83a7 | /ML With python/ASSIGNMENT/p41.py | 657bbf07ebc5b1d9c5524a377bc2fbccd8239179 | [] | no_license | kundan4U/ML-With-Python- | 9fe1ce5049591040521b0809e9cd154158364c72 | 5376693ae3f52721663adc713f6926c0ccccbf75 | refs/heads/main | 2023-06-17T20:27:30.411104 | 2021-07-21T18:47:23 | 2021-07-21T18:47:23 | 388,214,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py |
list=[]
print("plese Enter 10 integer number")
for i in range(0,10):
n=int(input())
list.append(n)
print("Sum of list is :",sum(list))
print("Average of list is :",sum(list)/10) | [
"kc946605@gmail.com"
] | kc946605@gmail.com |
d5a0b82e66988683dc1a7a08141b7edbbd417a8e | 20aadf6ec9fd64d1d6dffff56b05853e0ab26b1f | /l6/L6_pbm10.py | 3ae3245b6a76d7e97b2c8dab28e13dd0e95b16a6 | [] | no_license | feminas-k/MITx---6.00.1x | 9a8e81630be784e5aaa890d811674962c66d56eb | 1ddf24c25220f8b5f78d36e2a3342b6babb40669 | refs/heads/master | 2021-01-19T00:59:57.434511 | 2016-06-13T18:13:17 | 2016-06-13T18:13:17 | 61,058,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | def howMany(aDict):
'''
aDict: A dictionary, where all the values are lists.
returns: int, how many values are in the dictionary.
'''
templist = aDict.values()
result = 0
for elmnt in aDict.values():
result += len(elmnt)
return result
| [
"femi1991@gmail.com"
] | femi1991@gmail.com |
2e8b923f0207d66b8e635ac23e77072882adefa1 | 62261d7fbd2feab54b1b5f9f0fef33fd784873f9 | /src/results/deepfool/merge.py | 3ca3a046015f8a2c7f425357dd4043e353ce924f | [] | no_license | ychnlgy/DeepConsensus-experimental-FROZEN | 50ebfe25b33ce8715fb9f24285969831cef311f2 | 904ae3988fee1df20273e002ba53a49a0d811192 | refs/heads/master | 2020-03-31T06:18:38.029959 | 2018-12-02T05:04:52 | 2018-12-02T05:04:52 | 151,976,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | import scipy.misc, os, collections, numpy
ORI = "original.png"
PER = "perturbed.png"
def pair(folder):
files = os.listdir(folder)
sep = collections.defaultdict(dict)
for f in files:
fid, lab = f.split("-")
im = scipy.misc.imread(os.path.join(folder, f))
sep[fid][lab] = im
... | [
"ychnlgy@gmail.com"
] | ychnlgy@gmail.com |
e3063f03197b9586200a1b0b57c839c13178ae36 | 8f7dee55fd89be91f5cc0f3539099d49575fe3a9 | /profile/context_processors.py | a5e74883e9f039415a0d319a2c201278b3bad380 | [] | no_license | qoin-open-source/samen-doen | f9569439a5b715ed08b4a4dadc3e58a89f9e1d70 | 9feadb90fe14d458102ff3b55e60c56e0c8349e4 | refs/heads/master | 2020-05-03T23:59:43.794911 | 2019-04-02T21:15:18 | 2019-04-02T21:15:18 | 178,876,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | from django.conf import settings
#from cms.models import Page
def top_menu_items(request):
"""
Adds list of items to include in top menu (reverse ids from menu system).
"""
return {
'top_menu_items': settings.TOP_MENU_ITEMS
}
def tandc_url(request):
"""Adds terms and conditions url ... | [
"stephen.wolff@qoin.com"
] | stephen.wolff@qoin.com |
7714c67660d779859e7a8c5e203bd5850c7d3fcc | 092dd56a1bf9357466c05d0f5aedf240cec1a27b | /tests/fullscale/eqinfo/TestEqInfoTri.py | 90cb696cfd95f9f891ecb9e9d0875d78fd19a316 | [
"MIT"
] | permissive | rwalkerlewis/pylith | cef02d5543e99a3e778a1c530967e6b5f1d5dcba | c5f872c6afff004a06311d36ac078133a30abd99 | refs/heads/main | 2023-08-24T18:27:30.877550 | 2023-06-21T22:03:01 | 2023-06-21T22:03:01 | 154,047,591 | 0 | 0 | MIT | 2018-10-21T20:05:59 | 2018-10-21T20:05:59 | null | UTF-8 | Python | false | false | 2,571 | py | #!/usr/bin/env nemesis
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University at Buffalo
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://g... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
121e27cfcaef5efab2c56974139a1bafd566952e | edbf8601ae771031ad8ab27b19c2bf450ca7df76 | /19-Remove-Nth-Node-From-End-of-List/RemoveNthNodeFromEndOfList.py3 | 8a93b5636d86f21ee4c093c44be72653cf74c6a3 | [] | no_license | gxwangdi/Leetcode | ec619fba272a29ebf8b8c7f0038aefd747ccf44a | 29c4c703d18c6ff2e16b9f912210399be427c1e8 | refs/heads/master | 2022-07-02T22:08:32.556252 | 2022-06-21T16:58:28 | 2022-06-21T16:58:28 | 54,813,467 | 3 | 2 | null | 2022-06-21T16:58:29 | 2016-03-27T05:02:36 | Java | UTF-8 | Python | false | false | 670 | py3 | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:
if head==None or n<0 :
return None
dummy = ListNode(0)
dummy.next... | [
"gxwangdi@gmail.com"
] | gxwangdi@gmail.com |
755afec3b1065969f31399dc2818065df4c4ce1b | e3fe234510d19c120d56f9a2876b7d508d306212 | /tool/add_user_info.py | cf7926ddc05cd92b753d4b9fb6fff028de2b4ba3 | [
"Apache-2.0"
] | permissive | KEVINYZY/python-tutorial | 78b348fb2fa2eb1c8c55d016affb6a9534332997 | ae43536908eb8af56c34865f52a6e8644edc4fa3 | refs/heads/master | 2020-03-30T02:11:03.394073 | 2019-12-03T00:52:10 | 2019-12-03T00:52:10 | 150,617,875 | 0 | 0 | Apache-2.0 | 2018-09-27T16:39:29 | 2018-09-27T16:39:28 | null | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
# Author: XuMing <shibing624@126.com>
# Data: 17/8/30
# Brief:
import sys
path_user_cdc_client = sys.argv[1]
path_file = sys.argv[2]
path_output = sys.argv[3]
userid_map = {}
with open(path_user_cdc_client, "r")as f:
for line in f:
userid = line.strip().split("\t")[0]
us... | [
"507153809@qq.com"
] | 507153809@qq.com |
a7cb90a23bc7cad769ce94384e03a03fa159fdf6 | fd8ef75bb06383538cdb21ed2a0ef88e570179b7 | /src/openfermion/resource_estimates/thc/compute_lambda_thc.py | 16fa0ef8d1fcf0fdb71359635f9c43ccda4892ed | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | quantumlib/OpenFermion | d1147383f99573d19005bd0f3e0120e9e9bed04c | 788481753c798a72c5cb3aa9f2aa9da3ce3190b0 | refs/heads/master | 2023-09-04T11:00:32.124157 | 2023-08-24T21:54:30 | 2023-08-24T21:54:30 | 104,403,768 | 1,481 | 406 | Apache-2.0 | 2023-08-24T21:54:31 | 2017-09-21T22:10:28 | Python | UTF-8 | Python | false | false | 2,973 | py | #coverage:ignore
"""
Compute lambdas for THC according to
PRX QUANTUM 2, 030305 (2021) Section II. D.
"""
import numpy as np
from openfermion.resource_estimates.molecule import pyscf_to_cas
def compute_lambda(pyscf_mf,
etaPp: np.ndarray,
MPQ: np.ndarray,
use_er... | [
"noreply@github.com"
] | quantumlib.noreply@github.com |
308fa8a66e05dc307f31798d5666ddc5f04c04b9 | a6d8465aed280c36fb7129e1fa762535bae19941 | /embroidery365/builder/models.py | 2a66c14eedd56fbd8017ed36c96924943f213b2b | [] | no_license | rahuezo/365digitizing_and_embroidery | c61c53f567e73163a67d3fd568a20551a3681ccd | 41a22b6ff8bd83238219f2d34ce13b5a8ef9bb57 | refs/heads/master | 2020-09-02T11:59:07.702947 | 2017-11-11T02:40:01 | 2017-11-11T02:40:01 | 98,377,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
class BaseItem(models.Model):
name = models.CharField(max_length=255)
def __str__(self):
return self.name
class Style(models.Model):
name = models.CharField(... | [
"rahuezo@ucdavis.edu"
] | rahuezo@ucdavis.edu |
0c681f2924ffd76c5f9ae78985c972d4343bc44c | 0d2f636592dc12458254d793f342857298c26f12 | /11-1(tag).py | 734ce229ca7758695bc91f180e55aa7f25671b3e | [] | no_license | chenpc1214/test | c6b545dbe13e672f11c58464405e024394fc755b | 8610320686c499be2f5fa36ba9f11935aa6d657b | refs/heads/master | 2022-12-13T22:44:41.256315 | 2020-09-08T16:25:49 | 2020-09-08T16:25:49 | 255,796,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
def absolute(n):
""" 絕對值設計 """
if n < 0:
n = -n
print("絕對值是 ", n)
x = int(input("請輸入數值 = "))
absolute(x)
"""自己做的"""
"""n = input("請輸入數值=")
def absolute(n):
return abs(n)"""
| [
"kkbuger1523@gmail.com"
] | kkbuger1523@gmail.com |
fbd130a61a01bd9a6823abfaf12fe6aaabe8bdfa | 7e80b503e6563f190147e5e6bc2b47d5d8020510 | /xpdan/tests/test_main_pipeline.py | d48ca0a8d228efbdc4760025b3eb6e1f3beab1e4 | [] | no_license | eaculb/xpdAn | a687c15175fdff82a0f2092509faa7c2da288357 | 82e16ba50ddbfb9dcd0dba9b3b181354c329d58a | refs/heads/master | 2021-09-04T06:07:48.173024 | 2017-10-11T14:24:59 | 2017-10-11T14:24:59 | 106,735,663 | 0 | 0 | null | 2017-10-12T19:20:47 | 2017-10-12T19:20:47 | null | UTF-8 | Python | false | false | 1,230 | py | import os
import time
from xpdan.pipelines.main import conf_main_pipeline
def test_main_pipeline(exp_db, fast_tmp_dir, start_uid3):
"""Decider between pipelines"""
source = conf_main_pipeline(exp_db, fast_tmp_dir,
vis=True,
write_to_disk=True,
... | [
"cjwright4242@gmail.com"
] | cjwright4242@gmail.com |
33ffbc046e4b0ac1d10d366ef83a771449e1ddc9 | 5ba2ea4694d9423bc5435badba93b7b8fedfadd0 | /webapp/common/form_filter.py | b8a0c53c890bb381213adb1227e781f2a1f1a292 | [] | no_license | Digital-Botschafter-und-mehr/mein-stadtarchiv | bdf480d82b366253afd27c697143ad5d727f652f | a9876230edac695710d4ec17b223e065fa61937c | refs/heads/master | 2023-02-05T18:43:13.159174 | 2021-01-01T09:35:46 | 2021-01-01T09:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | # encoding: utf-8
"""
Copyright (c) 2017, Ernesto Ruge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditi... | [
"mail@ernestoruge.de"
] | mail@ernestoruge.de |
ba73735c7237f4e48b4b1fbd2aa067c357f01d0e | c2be187155aabf59a4c0d3f5065bc26239c0b827 | /get_products.py | f2882901593542808abf671d139350736cc370d0 | [] | no_license | dankCodeNugs/tmtext | 1d6c54f79399bfa5e6f3905c0f72ba0be59d8d0d | 8e2d834775f440def7f57294674b8109b46ee191 | refs/heads/master | 2023-03-16T08:49:38.456929 | 2016-12-20T19:45:54 | 2016-12-20T19:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | #!/usr/bin/python
# extract products from a certain output file, that belong to a certain category/department
# and write their respective category ids to a file
# usage: site given as first argument, category as second argument
import json
import codecs
import re
import sys
from pprint import pprint
def get_produc... | [
"life.long.learner127@outlook.com"
] | life.long.learner127@outlook.com |
5ccb3f3b16bf9a927d6c3b37a551c8127225de2e | 696b9b8963a6b26776849f69263e50860317a37d | /PyPoll/main.py | 61a19cdc1d53b9a47dffc15695d5372dc380ec3e | [] | no_license | neelarka/python-challenge | 64a7099470b2885511b568625c8c0e320801da82 | 9060c30ed9a319807fd5bd8756b3bc36f522bbc8 | refs/heads/master | 2020-03-24T22:00:26.874430 | 2018-08-05T04:23:11 | 2018-08-05T04:23:11 | 143,061,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | import os
import csv
from pathlib import Path
filepath = Path("../../Desktop/election_data.csv")
with open(filepath, newline="", encoding='utf-8' ) as csvfile:
csvreader = csv.reader(csvfile, delimiter=",")
reader = csv.reader(csvfile)
next(reader, None)
Voter_Id = []
county = []
candidate = []... | [
"you@example.com"
] | you@example.com |
5e08cd42df0284a8dbe8ab6c59c652b94834a5ae | b2d4c5b7738f3b53126d73bcac6165cbb32445eb | /05_数据存储/02-关系型数据库存储/_01_MySQL的存储/_05_删除数据.py | c378a6ab681dba229320434e26d188cf3b8b0411 | [] | no_license | xuelang201201/Python3Spider | 933911abb5056bc7864d3c6bfaf1d7f75ca6ac98 | 0b190f11f74f66058eda6a40a000c5d6076764ea | refs/heads/master | 2022-07-02T11:15:42.032997 | 2020-05-16T13:01:08 | 2020-05-16T13:01:08 | 259,358,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import pymysql
db = pymysql.connect(host='localhost', user='root', password='123456', port=3306, db='spiders')
cursor = db.cursor()
table = 'students'
condition = 'age > 20'
sql = 'DELETE FROM {table} WHERE {condition}'.format(table=table, condition=condition)
try:
cursor.execute(sql)
print('Successful')
... | [
"xuelang201201@gmail.com"
] | xuelang201201@gmail.com |
903c419d5b5ada8e3f10bf8af828028c8b21c111 | 0a9949a7dbe5f7d70028b22779b3821c62eb6510 | /static/flight_price_analysis/conf/conf.py | 03dee15c55f02670e982b0b01d56b2fd80b699f2 | [] | no_license | 744996162/warehouse | ed34f251addb9438a783945b6eed5eabe18ef5a2 | 3efd299a59a0703a1a092c58a6f7dc2564b92e4d | refs/heads/master | 2020-06-04T22:10:14.727156 | 2015-07-03T09:40:09 | 2015-07-03T09:40:09 | 35,603,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | #coding=utf-8
__author__ = 'zhangc'
import ConfigParser
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
#测试路径
# conf_path=path+"/conf/db.conf"
# conf_path=path+"/conf/db3.conf"
#部署路径
# conf_path="conf/db3.conf"
# conf_path="db.conf"
conf_path = BASE_DIR+"/conf/db.conf"
class DBConf(object):
... | [
"744996162@qq.com"
] | 744996162@qq.com |
4c67b10133e699217a67331d1ee268eb65d7d2c7 | 34cab614568d4ce3cf28167450d6d2bc2bf7bfbf | /importers/cunia.py | 287229bfda6b4aace79d72da50a213322351c454 | [] | no_license | Halicea/ArmandDictionar | 07949936efd3a55edfa1e7a1e12d1ed8c48c4bdf | a82f77065e03cafa6c6b50c163fa53858ab356b8 | refs/heads/master | 2016-09-05T14:03:41.261258 | 2013-04-29T10:27:27 | 2013-04-29T10:27:27 | 964,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | # -*- coding: utf-8 -*-
import codecs
import re
import os
langs = ['ro', 'en', 'fr']
err_count = 0
tr_not_found = {'ro':0, 'en':0, 'fr':0}
with_ref=0
def parse_line(l, index):
global err_count
global tr_not_found
global with_ref
results = []
#synonims or similar meaning
words = l.split(u'§')
for i in rang... | [
"costa@halicea.com"
] | costa@halicea.com |
c8dee9b1d52c4575ef88af44d875106e2a851a69 | 1f620140538728b25fd0181e493975534aa0e1fb | /project/basis/admin.py | 29ffeb36206b3b503e22a6c5ab29970a5e48bb91 | [] | no_license | YukiUmetsu/recipe-app-api-python-django | 2a22f63871489cd073d5c312e20fd9fe49eee5a5 | abaf4a0826e840e990781b20aaa5d7f0577c54c5 | refs/heads/master | 2022-11-30T03:11:16.129881 | 2020-03-03T20:04:00 | 2020-03-03T20:04:00 | 244,045,701 | 0 | 0 | null | 2022-11-22T05:21:23 | 2020-02-29T21:41:25 | Python | UTF-8 | Python | false | false | 947 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.utils.translation import gettext as _
from basis import models
class UserAdmin(BaseUserAdmin):
ordering = ['id']
list_display = ['email', 'name']
fieldsets = (
(None, {'fields': ('email', ... | [
"yuuki.umetsu@gmail.com"
] | yuuki.umetsu@gmail.com |
f8e645fdf821b4a8a13e40bf4c64379b0006bd1f | 8af71789222675dddd541bafba681143162f4206 | /apps/entidades/admin.py | 0036ab360b549a2fda945f3612c3020591d73f18 | [] | no_license | RubenAlvarenga/nhakanina | b82d23d80e06aaf49693c8fb65a70ee73e130994 | 3e39a522029c9a6cbb455b2e736ce335ebc4bf1d | refs/heads/master | 2021-01-10T15:32:01.550423 | 2016-03-07T17:34:09 | 2016-03-07T17:34:09 | 43,449,047 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Persona, Alumno
from apps.finanzas.models import PlanPago
class AlumnoAdmin(admin.ModelAdmin):
list_display = ('codigo', 'cedula', 'get_full_name')
search_fields = ['cedula', 'apellido1', 'apellido2', 'nombre1',... | [
"rubenalvarengan@gmail.com"
] | rubenalvarengan@gmail.com |
c5b809b7fc38a9ff5c2f441e16cef7229f172c5c | 019fd2c29b8239d7b0a3906cfbdddfd440362417 | /automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py | d93ca92f8ed2cfa20ca2620e5999b95da2b81014 | [
"Apache-2.0"
] | permissive | tswast/google-cloud-python | 1334d26cdb994293f307d889251d7daef5fcb826 | d897d56bce03d1fda98b79afb08264e51d46c421 | refs/heads/master | 2021-06-10T17:40:06.968584 | 2020-01-11T17:41:29 | 2020-01-11T17:41:29 | 58,775,221 | 1 | 1 | Apache-2.0 | 2019-04-10T17:09:46 | 2016-05-13T22:06:37 | Python | UTF-8 | Python | false | false | 1,173 | py | config = {
"interfaces": {
"google.cloud.automl.v1beta1.PredictionService": {
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"... | [
"noreply@github.com"
] | tswast.noreply@github.com |
3b260f7d947e059cd8f8835dcc76c8a3a680903b | f889bc01147869459c0a516382e7b95221295a7b | /test/test_error_parameters_item.py | f28c7deb40b2328947bfa816d2d8f5b8c4d4729a | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
36085263fc74873d7a489b295947c34b95ac2da9 | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/misc/editgrid.py | 88352f19f837e68d04a636a2ed4eefcea4deadab | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 2,557 | py | # -*- coding: utf-8 -*-
import wx
import wx.grid
import numpy as np
class EditGrid(wx.grid.Grid):
def __init__(self, *args, **kwargs):
wx.grid.Grid.__init__(self, *args, **kwargs)
wx.EVT_KEY_DOWN(self, self.OnKeyDown)
def OnKeyDown(self, event):
key = event.GetKeyCode()
... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
9b6987d7cb66e6ddd8024c55a1385a3fdea8a190 | 1cccad3f2b8cb9872fd47360486f43ed90f57c9b | /config/snippets/models.py | fcd342d2d7995fc13300285bb1aba732f10a9e9a | [] | no_license | moorekwon/rest-api | bf377cd98aa07792fd08bda70ff2621c9ca3bf9b | 5455c021dd2796968cd035f41ad7de44ec4201c4 | refs/heads/master | 2021-01-02T15:04:18.630201 | 2020-03-02T15:55:30 | 2020-03-02T15:55:30 | 239,673,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from django.db import models
# Create your models here.
from pygments.lexers import get_all_lexers
from pygments.styles import get_all_styles
from config.settings import AUTH_USER_MODEL
LEXERS = [item for item in get_all_lexers() if item[1]]
LANGUAGE_CHOICES = sorted([(item[1][0], item[0]) for item in LEXERS])
STYLE... | [
"raccoonhj33@gmail.com"
] | raccoonhj33@gmail.com |
1f2f281bc5d31a4d6b6acc05d5758e652471300c | 2d4ab8e3ea9fd613ec0ae0c1956b68874c9b5f06 | /paip/pipelines/variant_calling/index_alignment.py | 5237bd5c232a9b2a4000d6340f70cca0582b76b0 | [] | no_license | biocodices/paip | 4abd39cbbd372a68592da87177c70c403d5a661d | 040a62c11e5bae306e2de4cc3e0a78772ee580b3 | refs/heads/master | 2021-01-17T20:48:28.642255 | 2019-07-26T14:30:58 | 2019-07-26T14:30:58 | 62,604,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from paip.task_types import SampleTask
from paip.pipelines.variant_calling import MarkDuplicates
from paip.helpers.create_cohort_task import create_cohort_task
class IndexAlignment(SampleTask):
"""
Takes a BAM and creates its BAI (index) companion.
"""
REQUIRES = MarkDuplicates
OUTPUT = "dupmarked... | [
"juanmaberros@gmail.com"
] | juanmaberros@gmail.com |
af319fa3841c5cb66f3ce96349db1ab481a2337d | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/Risk/FK_FKYW_PG_KCB_212.py | 06c0ff949a1a41fb9928d88cc150b43d6ed2101e | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import os
sys.path.append("/home/yhl2/workspace/xtp_test/Autocase_Result/Risk/service")
from order import f
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from QueryStkPriceQty import *
from log import *
from utils import *
sys.path.append("/home/yhl2/wo... | [
"418033945@qq.com"
] | 418033945@qq.com |
38e4fda8720303f4e1bd2540c6a20bf972c60ed9 | f546248daf7fd64aeff6517e9fea668b459f9b62 | /yatwin/interfaces/onvif/wsdl/wsdl/errors.py | 557ffa417b37c79dad41bfc06a4d843c207004bc | [] | no_license | andre95d/python-yatwin | 2310b6c6b995771cea9ad53f61ad37c7b10d52d0 | 7d370342f34e26e6e66718ae397eb1d81253cd8a | refs/heads/master | 2023-03-16T18:06:17.141826 | 2020-05-12T23:04:53 | 2020-05-12T23:04:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | """
Library which contains errors
All errors inherit from <Exception>, then pass
... essentially just renaming the <Exception>
Contains:
<FileDoesNotExist>
<InvalidArgument>
<ParseError>
"""
class FileDoesNotExist(Exception): pass
class InvalidArgument(Exception): pass
class ParseError(Exception): pass
| [
"26026015+tombulled@users.noreply.github.com"
] | 26026015+tombulled@users.noreply.github.com |
77a82b1e7d4bc1d00910f61fcaba9536d4b9e2e4 | 89145800ada60f8d2d1b3200b6f384c1a4f8fff8 | /aparcamientos/migrations/0007_auto_20170513_2045.py | c46410372c612861e5c7097ab767691fd484be12 | [] | no_license | malozanom/X-Serv-Practica-Aparcamientos | 2f8f2cab9b9ca096ab3209d8fa6579aacbdce593 | d6da3af090aef7e8b0d23add7a5ff76f979d0311 | refs/heads/master | 2021-06-24T17:34:40.930085 | 2019-11-04T18:36:38 | 2019-11-04T18:36:38 | 90,887,116 | 0 | 0 | null | 2017-05-10T16:46:30 | 2017-05-10T16:46:30 | null | UTF-8 | Python | false | false | 598 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aparcamientos', '0006_auto_20170513_2038'),
]
operations = [
migrations.AlterField(
model_name='aparcamiento',
... | [
"you@example.com"
] | you@example.com |
6e1a191a96a7f8c72db1a5e68631517295612b77 | 81c5323d6a456479d32c9a2a2b9ab61484dd7922 | /otter/assign/r_adapter/tests.py | a1922198413bc3a05d3eb9c88d3baaf1309b1b53 | [
"BSD-3-Clause"
] | permissive | fperez/otter-grader | c488f339fa6db8577c09bbcba22d919519fb3fb5 | 6c9ded064b7c8bbd115d8ab54330f4400a564b17 | refs/heads/master | 2023-07-27T16:33:33.392295 | 2021-08-26T18:12:18 | 2021-08-26T18:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | """
ottr test adapters for Otter Assign
"""
import re
import pprint
import yaml
import nbformat
from collections import namedtuple
from ..constants import BEGIN_TEST_CONFIG_REGEX, END_TEST_CONFIG_REGEX, OTTR_TEST_FILE_TEMPLATE, OTTR_TEST_NAME_REGEX, TEST_REGEX
from ..tests import write_test
from ..utils import get_s... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu |
6ecfa4e76bd00ac931f5a23055997abaa3f3c7c0 | 02952ddf96e7960a3faef74485f4ffc12bcf2973 | /projects/node_failure/grayscott_example.py | 70cc7692d34770f851f5fac30d67789e8b4e26c1 | [
"BSD-2-Clause"
] | permissive | danielru/pySDC | 5decca37e1ecea643fe21dac0f978e3fdaa24ac6 | 558b2b4db3aeb97e6a87e41cd4958a8a948af37a | refs/heads/master | 2020-12-25T10:58:57.215298 | 2017-03-21T06:45:59 | 2017-03-21T06:45:59 | 31,062,846 | 0 | 0 | null | 2015-02-20T11:52:33 | 2015-02-20T11:52:33 | null | UTF-8 | Python | false | false | 5,773 | py | import numpy as np
import projects.node_failure.emulate_hard_faults as ft
from projects.node_failure.allinclusive_classic_nonMPI_hard_faults import allinclusive_classic_nonMPI_hard_faults
from pySDC.helpers.stats_helper import filter_stats, sort_stats
from pySDC.implementations.collocation_classes.gauss_radau_right im... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
4bc2fe82e33b7056ddfa4db9de4d352059f62de5 | 95aa541b9dcede42e6969947d06a974973dd052a | /ch10_thread_and_subprocess/manpage_server.py | 154595fe1845e23af8d4100d18008086d16f2c64 | [] | no_license | AstinCHOI/book_twisted | a693d5eaf7a826b26671e9e98d167f6808dcc0dc | dc5a5dff1ac432e2fb95670b683628e09d24774e | refs/heads/master | 2016-09-05T16:11:03.361046 | 2015-03-27T07:27:23 | 2015-03-27T07:27:23 | 28,185,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import sys
from twisted.internet import protocol, utils, reactor
from twisted.protocols.basic import LineReceiver
from twisted.python import log
class RunCommand(LineReceiver):
def lineReceived(self, line):
log.msg("Man pages requested for: %s" % (line,))
commands = line.strip().split(" ")
... | [
"asciineo@gmail.com"
] | asciineo@gmail.com |
808da2cebeee1cf74826f659edf3a3e4224feeb7 | 54f33f6026b6fb71caba620f4bf39ec48ad76422 | /trazabilidad/migrations/0004_auto_20200707_1259.py | 6674d2af94293ccf727b9c3873faf9e43c2fc171 | [] | no_license | geovanniberdugo/lab7 | 7d30458c64bc32e21c390d4836db76bf894609f5 | 8a945d937864961da3fcd1e8c4dbf7575febc58d | refs/heads/main | 2023-02-13T02:03:19.067815 | 2021-01-15T22:24:35 | 2021-01-15T22:24:35 | 330,033,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # Generated by Django 2.2.13 on 2020-07-07 17:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('trazabilidad', '0003_recepcion_responsable_tecnico'),
]
operations = [
migrations.AlterModelOptions(
name='reporte',
option... | [
"geovanni.berdugo@gmail.com"
] | geovanni.berdugo@gmail.com |
336baca78251949d3080584964342725bd72e442 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/111/usersdata/224/64138/submittedfiles/av2_p3_m2.py | 6a24b72cb7c12e52bc9bb665c8c885fcad335b6c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # -*- coding: utf-8 -*-
import numpy as np
def L(A):
L=[]
for i in range(0,A.shape[0],1):
soma=0
for j in range(0,A.shape[1],1):
soma=soma+A[i,j]
L.append(soma)
return(L)
def C(A):
C=[]
for j in range(0,A.shape[1],1):
soma2=0
for i in range(0,A.s... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
98981c98e568239d5f45a9956b008fa6e08dddc3 | d2eb7bd335175edd844a3e6c1c633ee0dc2dbb25 | /contests_cf/cgr13/a.py | 17700eeffc72067c1d7b3c7ce4a4409baea8f942 | [
"BSD-2-Clause"
] | permissive | stdiorion/competitive-programming | 5020a12b85f1e691ceb0cacd021606a9dc58b72c | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | refs/heads/main | 2023-03-27T01:13:42.691586 | 2021-03-08T08:05:53 | 2021-03-08T08:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | n, Q = map(int, input().split())
a = list(map(int, input().split()))
queries = [tuple(map(int, input().split())) for _ in range(Q)]
sa = sum(a)
for t, q in queries:
if t == 1:
if a[q - 1]:
sa -= 1
else:
sa += 1
a[q - 1] ^= 1
if t == 2:
print(int(sa >= q)... | [
"itkn1900@gmail.com"
] | itkn1900@gmail.com |
f1e1916d5ee16ab930b58883865ded11391e592b | 9d8e2dd4441c50b443390f76c899ad1f46c42c0e | /hacker_rank/warmup/acm_icpc.py | d89e3c9e0e9eacebe4f54393b2719d36db302d06 | [] | no_license | vikramjit-sidhu/algorithms | 186ec32de471386ce0fd6b469403199a5e3bbc6d | cace332fc8e952db76c19e200cc91ec8485ef14f | refs/heads/master | 2021-01-01T16:20:52.071495 | 2015-08-03T17:42:29 | 2015-08-03T17:42:29 | 29,119,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | """
Hacker Rank - Algorithms Warmup
ACM ICPC team
https://www.hackerrank.com/challenges/acm-icpc-team
"""
def find_max_skillset(n, person_skills):
""" Using brute force method - O(n^2) """
max_or = 0 #the number representing the max no of topics a pair can have in common, using bitwise or gate
co... | [
"vikram.sidhu.007@gmail.com"
] | vikram.sidhu.007@gmail.com |
71b60f4bbb9e39e2541f0232e385b0b1d2e736a1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03150/s166029107.py | 7912d0c3c96249b3eef4d049d6bd02ec4463ca6b | [] | 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 | 160 | py | S = input()
N = len(S)
for i in range(N):
for j in range(i,N):
if S[:i]+S[j:] == "keyence":
print("YES")
exit()
print("NO")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a50387cc2103e7bb54d4efc666435bc50c0049b5 | 3c5ae1e6dcd105354971c78ef279420b0b817ffa | /nova-master/nova/version.py | 01b6b47658d7e4e1fb5362ba57ca75420093f641 | [
"Apache-2.0"
] | permissive | Yunzhe-Sun/CentOS-openstack | e9e99360cedd46e9bf7f2f1b2dab22032c6b2aca | e22b8090e7bf748c38448a61793a23ca71ec91d4 | refs/heads/master | 2021-07-15T23:19:15.560323 | 2021-07-07T02:43:01 | 2021-07-07T02:43:01 | 218,758,174 | 0 | 1 | null | 2021-07-07T02:43:02 | 2019-10-31T12:13:49 | Python | UTF-8 | Python | false | false | 2,531 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack Foundation
#
# 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/LICEN... | [
"171194570@qq.com"
] | 171194570@qq.com |
c489de6483130e1719c5238ee2f413453c3d8a12 | 5a281cb78335e06c631181720546f6876005d4e5 | /karbor-1.3.0/karbor/common/opts.py | 141e3d4b1f62c335e989a939c6679f778d7b5c9f | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 3,875 | py | # 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, software
# d... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
d2a1e18f1dbe66e35809ad3d837e3d80d6088ed7 | 2dfec35bafb4a808771b723ca94c102240b5d8f4 | /align/alignProject/lineWriteExcel.py | d830271cf966eca71653032874f36f2d7fa74475 | [] | no_license | mengguiyouziyi/outsourcing | cde7169d94bcdde63091e92f91d140c72c1d184c | 140172ca792c9808cb69251468a14529b84ea380 | refs/heads/master | 2022-11-13T19:55:54.851329 | 2020-06-18T02:51:25 | 2020-06-18T02:51:25 | 273,120,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | import os
import xlwt
def toExcel(file_align, en_sen, zh_sen, xlsx):
"""
根据对齐文件 1 <-> 1,在英中断句文件中找到相对应的句子,写入到excel中
:param file_align: 对齐文件路径
:param en_sen: 英文断句文件路径
:param zh_sen: 中文断句文件路径
:param xlsx: 导出的excel文件路径
:return:
"""
current_path = os.getcwd()
# 筛选对应行号,入 xxx_num_list... | [
"775618369@qq.com"
] | 775618369@qq.com |
cbea139f8853a006a1972d5ee7af4fcd57543eaa | 8be5929368bd987caf744c92f234884bf49d3d42 | /lib/app/reportdatasources/loader.py | 10ddd1e2dc402ed2c6599f4203b634578a5d1d95 | [
"BSD-3-Clause"
] | permissive | oleg-soroka-lt/noc | 9b670d67495f414d78c7080ad75f013ab1bf4dfb | c39422743f52bface39b54d5d915dcd621f83856 | refs/heads/master | 2023-08-21T03:06:32.235570 | 2021-10-20T10:22:02 | 2021-10-20T10:22:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | # ----------------------------------------------------------------------
# ReportDataSource Loader
# ----------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Pyth... | [
"aversanta@gmail.com"
] | aversanta@gmail.com |
2b16643e7e21bbfc7d0c383285dbed507442b4ec | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/accounts/migrations/0230_auto_20190813_0943.py | cad59fc29518cbca8c11ec4722683b2757ed0e2f | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.4 on 2019-08-13 07:43
import diventi.accounts.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0229_auto_20190812_1402'),
]
operations = [
migrations.AlterModelManagers(
name='diventiuser'... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
74fa365c1adbad9b80577e126779020c1164fc07 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_085029.80+325447.4/sdB_SDSSJ_085029.80+325447.4_coadd.py | 499208837b41dc63ff2c0793947849f68567605c | [] | 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=[132.624167,32.913167], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_SDSSJ_085029.80+325447.4/sdB_SDSSJ_085029.80+325447.4_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f41e8f81b5f3338158a8eb1869dcfb2e36386ba3 | 871b090c3562669c6ff2fc92508419b680443fad | /Booking_Management/edl_management/migrations/0026_auto_20210622_2153.py | b4a828c53fcaeae9de2eabecc4d009fe221f5d14 | [] | no_license | maxcrup007/CLEM | 4ace1a28be7a0463d8f04a04c0e19d991d7cdb70 | 3a1cb35fce426f1826e8764487ad97c631ff59a9 | refs/heads/master | 2023-06-06T00:13:26.663741 | 2021-06-24T17:12:19 | 2021-06-24T17:12:19 | 379,998,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.0 on 2021-06-22 14:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('edl_management', '0025_auto_20210622_1351'),
]
operations = [
migrations.AlterField(
model_name='... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
2f55c363d20f9a90e541fbc60990f6901e6e451d | 87274e9dd7cf48645b3bc6baa5e7572b9fcdcb0b | /ceshi/ceshi/spiders/lagou_spider.py | a471e1cd80f359b586c3576741c0fef3563362f2 | [] | no_license | ixiaoxinxin/xiaoxinxinPAPAPA | 1619652812cd1db4caa84528c814f58e3afa1ce4 | ac97c81f24e725ff5f33160b032e2f99c7f1dfe2 | refs/heads/master | 2021-05-02T01:27:20.706064 | 2017-02-05T14:24:13 | 2017-02-05T14:24:13 | 79,033,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | # -*- coding: utf-8 -*-
from scrapy.spider import Spider
from scrapy.contrib.spiders import Rule,CrawlSpider
from scrapy.selector import Selector
class LagouSpider(Spider):
name = "lagou"
allowed_domains = ["lagou.com"]
start_urls = [#这个名称不能写错,否则会识别不到url,d导致爬不到数据
"https://www.lagou.com/zhaopin/cesh... | [
"295563386@qq.com"
] | 295563386@qq.com |
61d98a99974294a3d48ec28e780ce63457575bf4 | 272a8b0b38e4af5f22dd811040f0ca2b0b111c61 | /exp_scripts/loss_gan_noload3.py | 3d8162cf5e1b818f3e989bbee573ebe95b041078 | [] | no_license | jessemin/GeneGan | 1c1a97b6ab566a7c556ce1452e4c35530b0b626c | 2ad94e842cfaee531d7e13af7472b623bf96de30 | refs/heads/master | 2021-09-13T13:02:33.629138 | 2018-04-30T06:57:13 | 2018-04-30T06:57:13 | 112,046,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import os
os.chdir('../exp_notebooks')
os.system('python loss_gan.py\
-w=2001\
-save=loss_gan_noload_3\
-sample_num=10000\
-g_weight=0.5\
-mse_weight=0.5\
-g_lr=0.001\
-d_lr=0.001\
--smooth_rate=0.1\
-cuda=1')
| [
"jesikmin@stanford.edu"
] | jesikmin@stanford.edu |
dd881acb19392265ebaf229e8e5e36e1235eb54b | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/addons/hw_escpos/__init__.py | b69f45ed25a74e18525c21c133b53d0f06904456 | [
"MIT"
] | permissive | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # -*- coding: utf-8 -*-
# Part of YuanCloud. See LICENSE file for full copyright and licensing details.
import controllers
import escpos
| [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
0d8a541cf7e89dc8bfa362e75441297927f3dbdb | 61afe17201589a61c39429602ca11e3fdacf47a9 | /Chapter3/Day23/16.进程间数据的共享_Array.py | c663d6e8677d235e387ba052b83e1d4875630641 | [] | no_license | Liunrestrained/Python- | ec09315c50b395497dd9b0f83219fef6355e9b21 | 6b2cb4ae74c59820c6eabc4b0e98961ef3b941b2 | refs/heads/main | 2023-07-17T14:16:12.084304 | 2021-08-28T14:05:12 | 2021-08-28T14:05:12 | 399,408,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from multiprocessing import Process, Value, Array
def f(data_array):
data_array[0] = 66
if __name__ == '__main__':
arr = Array('i', [11, 22, 33, 44]) # 数组:元素类型必须是int;只能是这么几个数据,不能多,也不能少
p = Process(target=f, args=(arr, ))
p.start()
p.join()
print(arr[:]) # [66, 22, 33, 44]
| [
"noreply@github.com"
] | Liunrestrained.noreply@github.com |
e890e6a1b3efbd2ecb9561220b3fdbe2a0c6c70d | 3e78bf8a64318c091837cab3c1288cafc3617310 | /scripts/Script.py | c3c3b28229d28ae56f80278c459c443cc3f2cd66 | [] | no_license | eddiedb6/rate | e6887a6f8324e79fafa0ccd75a280dcc883a18b7 | 9c54bf949348d74fe8c7e4b0d3a1abd56b936821 | refs/heads/master | 2022-03-10T12:04:53.025473 | 2019-11-06T10:15:42 | 2019-11-06T10:15:42 | 105,227,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | import sys
import os
import time
# __file__ will be AFW.py in auto/afw
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], "../../scripts"))
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], "../../util"))
sys.path.append(os.path.join(os.path.split(os.path.realpath(__fil... | [
"eddiedb6@gmail.com"
] | eddiedb6@gmail.com |
f610ac4877ded41728b8e65579ba101a3dbe0b45 | 7f31d42f80dd93d6f18baed192125991b3645d66 | /examples/scripts/x86/check_constraint1.py | d96398bde35cf6fda16fd4ffcb7f772c978a822b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | jmorse/barf-project | e183aba9ab99d0b742c320cba8169704441777ed | 7b336f9747216b44773f01a57bafbe4cbdf3c838 | refs/heads/master | 2021-05-08T07:02:07.175186 | 2017-10-17T15:51:47 | 2017-10-17T15:51:47 | 106,693,149 | 0 | 0 | null | 2017-10-12T12:59:04 | 2017-10-12T12:59:03 | null | UTF-8 | Python | false | false | 2,459 | py | #! /usr/bin/env python
from barf import BARF
if __name__ == "__main__":
#
# Open file
#
barf = BARF("../../samples/bin/constraint1.x86")
#
# Check constraint
#
# 80483ed: 55 push ebp
# 80483ee: 89 e5 mov ebp,esp
# 80483f... | [
"cnheitman@fundacionsadosky.org.ar"
] | cnheitman@fundacionsadosky.org.ar |
61d05adc137915e86dd216e736831bf0cc5917fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03665/s821294954.py | b2af28f559909e7fcc451a213b7441c4c193ce2c | [] | 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 | 775 | py | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N, P = two_int()
A=many_int()
even = 0
odd = 0
for a in A:
if a%2==0:
even+=1
else:
odd+=1
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
de13c796eb2ff43e6f5f5a08ccc5e6911a6a6749 | d2cfe3ef86d89d580f2a9670f9fc9b11c3e424b4 | /rvsml/EvaluateRVSML.py | 67a0ebf4c95d06d1ab04f36c3197a780b026bcac | [
"BSD-3-Clause"
] | permissive | ShuheiKuriki/SentEval_by_RVSML | 4e89ccd20fa6446c1656d76bafbbd79199b36e86 | b2cebb65c755bfec8ebb0a0400f0d69a5725bd6f | refs/heads/master | 2022-04-25T22:01:21.612920 | 2020-04-14T19:07:08 | 2020-04-14T19:07:08 | 254,819,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | import numpy as np
import time
from rvsml.NNClassifier import *
from rvsml.RVSML_OT_Learning import *
import logging
from array import array
def EvaluateRVSML_dtw(classnum, dim, trainset, trainsetnum, testset, testsetdata, testsetdatanum, testsetlabel, testsetnum, logname, logfile):
#rankdim = 58
CVAL = 1
... | [
"shukuri.7336.8@gmail.com"
] | shukuri.7336.8@gmail.com |
c62305d533cfdea397699d4dcbbcc47d4d51441f | f63fdd673e5b9881a0395be83e0a6b5ccc7edbdb | /ReedsShepp_planner/drawing_pallet_jack.py | ac856f0c27793f58e4388e1c15825a7020aa8cfb | [] | no_license | karry3775/Motion-Planning-Python | 63ad4bf928c57b9ea6b8c19fceea16dbc2adb783 | 20ed30526bd03380ead8b29357e5bf7eb291ba9b | refs/heads/master | 2023-02-08T18:19:26.644696 | 2020-12-30T22:22:36 | 2020-12-30T22:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,109 | py | import matplotlib.pyplot as plt
import numpy as np
import math
def wrapToPi(theta):
return math.atan2(math.sin(theta),math.cos(theta))
def dpj(x,y,theta,steer):
# plotting the center point
wd = 1.5
plt.plot(x,y,'co')
plt.arrow(x,y,math.cos(theta),math.sin(theta),width=0.01,color='orange')
plt... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
f99707e466fb45f4b828045d6ea2f479b3607a9e | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4145/codes/1785_1593.py | bdc0b42949e4321e6639bacb31776578fbdc14d2 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from numpy import*
v = array(eval(input("vetor de notas: ")))
#v=input("vetor de notas: ")
#vv=arange(v,dtype ==float)
i=1
n=0
c=0
d=0
while(i<size(v)):
v[c]= v[c]*i
c=c+1
d=d+i
i=i+1
m =sum(v)/d
#print(round(n/d,2))
print(round(m,2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
0ef05a08b6f483dac468d83fbee9b86c0391c9de | 28a7feb26470d0d6743454222b74abadf05af449 | /dcase_util/utils/timer.py | 79247276c5e10e9961884ce814bfae551278dea5 | [
"MIT"
] | permissive | DCASE-REPO/dcase_util | de322c900388de66af3398af294e095e28392beb | a2694b0b9ad4592c9c27c935fb92b0e5751b8ab4 | refs/heads/master | 2023-06-08T08:06:23.525652 | 2022-06-09T22:05:38 | 2022-06-09T22:05:38 | 110,171,294 | 137 | 41 | MIT | 2022-06-09T22:05:39 | 2017-11-09T22:03:27 | Python | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import
import datetime
import time
class Timer(object):
"""Timer class"""
def __init__(self):
# Initialize internal properties
self._start = None
self._elapsed = None
def start(self):
... | [
"toni.heittola@gmail.com"
] | toni.heittola@gmail.com |
22476f16fbbdba9d4cd70f408ea0265dce33ddf2 | e522dc3b8ae16fb6adf8c679c2fcd61e06979f29 | /example/serial_example_2.py | c0f03b4ff72605d2fc8273faa36f0f388dd3043c | [
"MIT"
] | permissive | amaork/raspi-io | 96e92330555e7700f54633f582efbc7620f8b10b | aaea4532569010a64f3c54036b9db7eb81515d1a | refs/heads/master | 2021-09-17T15:27:43.853195 | 2021-08-27T08:51:24 | 2021-08-27T08:51:24 | 94,192,125 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/env python3.5
from raspi_io import Serial
import raspi_io.utility as utility
if __name__ == "__main__":
cnt = 0
port = Serial(utility.scan_server()[0], '/dev/ttyS0', 115200, timeout=1)
while True:
port.read(1)
| [
"amaork@gmail.com"
] | amaork@gmail.com |
153829a56bfdcb6f0bf9cf971b037d569141c8b2 | a8750439f200e4efc11715df797489f30e9828c6 | /codechef/CFR_383_2_742_A.py | b5af70d5e071990b82d467c9a9062dbe056f81f8 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py |
# -*- coding: utf-8 -*-
# @Date : 2018-10-02 08:00:37
# @Author : raj lath (oorja.halt@gmail.com)
# @Link : link
# @Version : 1.0.0
from sys import stdin
max_val=int(10e12)
min_val=int(-10e12)
def read_int() : return int(stdin.readline())
def read_ints() : return [int(x) for x in stdin.readline().spli... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
98039b25a467025b1eb7152af7fecb84cafc6724 | 4626631c5e68a13ed4dde041212da39d344d74d9 | /examples/scripts/define-user-roles.py | 8066ecfe60673ba22a2b7e702350628e5d50c9c2 | [
"MIT"
] | permissive | xod442/python-hpOneView | a1482677e3252dabf1e14f9349c119428331089f | b78fb81cba34992bb84ed3814aae04ce05ef913f | refs/heads/master | 2021-01-18T05:53:42.466348 | 2015-08-11T15:59:16 | 2015-08-11T15:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | #!/usr/bin/env python3
###
# (C) Copyright (2012-2015) Hewlett Packard Enterprise Development LP
#
# 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 limit... | [
"troy@debdev.org"
] | troy@debdev.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.