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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57f7e7a98efc2ba19453ca164616ca915aa1d1b1 | f66a33f8cdd8286320da730be67c89ee00d83d8d | /ext/libelf/SConscript | 535e216ddf1152e87d570cb4615bde289b7d97d3 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | H2020-COSSIM/cgem5 | 0d5812632757e6146f7852c9bf4abe4e9628296a | 1222cc0c5618875e048f288e998187c236508a64 | refs/heads/main | 2023-05-13T14:08:01.665322 | 2023-05-08T08:39:50 | 2023-05-08T08:39:50 | 468,039,890 | 3 | 2 | BSD-3-Clause | 2022-10-12T14:29:33 | 2022-03-09T18:05:40 | C++ | UTF-8 | Python | false | false | 5,084 | # -*- mode:python -*-
# Copyright (c) 2004-2005 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above co... | [
"ntampouratzis@isc.tuc.gr"
] | ntampouratzis@isc.tuc.gr | |
f091fda178c17b28a06ec0aab0bf657492ab6016 | 0556754cd4765d05a1d831c48933c5f299bb095d | /Dec-18-2020/ThreadByExtending.py | 12369dbbe3bf5dd33bbdee68914a580058d7eefa | [] | no_license | rohitbhatghare/python | 4fa5e5883743023ced841892a13a9798b7686f39 | 248d265e02ecbc1270a87081af26537eb401e535 | refs/heads/main | 2023-02-03T04:32:15.716805 | 2020-12-21T11:33:27 | 2020-12-21T11:33:27 | 302,831,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from threading import *
class Mythread(Thread):
def run(self):
for i in range(10):
print("child class-1")
t = Mythread()
t.start()
for i in range(10):
print("main thread-1")
| [
"noreply@github.com"
] | rohitbhatghare.noreply@github.com |
2e78bcd54c647bec3744feb1502e4fef91bc5733 | 84de9423c003e22631a549dd767f7f88006f73d5 | /tests/tools/profile/runtest.py | 3c664934c55eae96aa200b0add25463fb790bb5a | [
"Apache-2.0"
] | permissive | Go0zx/NyuziProcessor | 7c23cdad06cff0e0d6f77264e54b1fa826231e91 | 35264d91dafbf0455e551e3e1f3cd1a0f429c991 | refs/heads/master | 2020-08-07T20:51:04.594123 | 2019-10-05T13:07:29 | 2019-10-05T15:27:20 | 213,583,543 | 1 | 0 | Apache-2.0 | 2019-10-08T08:04:20 | 2019-10-08T08:04:19 | null | UTF-8 | Python | false | false | 2,386 | py | #!/usr/bin/env python3
#
# Copyright 2017 Jeff Bush
#
# 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... | [
"jeffbush001@gmail.com"
] | jeffbush001@gmail.com |
91a4269e0b9f9229eff2dc342717525c19908503 | 84f2d9c40ec5816aa208e4a4877a78087cc2980f | /manage.py | b6cc3ab41d4435f743e02d42b1676fd54c111e1a | [] | no_license | shanthimadugundi/heroku | 87dde40e791dfffad4ba5b7a42d54c6d849e94e7 | 4ec48ff331598bd3f2fdc12de374915d55257ec1 | refs/heads/master | 2020-04-27T11:00:10.983817 | 2019-03-07T06:00:11 | 2019-03-07T06:00:11 | 174,279,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'madugundishanthisite.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import... | [
"shanthimadugundi@Shanthis-MacBook-Pro.local"
] | shanthimadugundi@Shanthis-MacBook-Pro.local |
88096a5c9910e54d7fb1b3d7865008e8ba9acb34 | 696799b824503429a3ac65ebdc28890bfbcaebe0 | /plugins/com.astra.ses.spell.gui.cots_4.0.2.201806070922/win32/spell/spell/lib/dummy/config.py | bde2e0f7b4c61e25d9d920099ca1f2b5a02f09a6 | [] | no_license | CalypsoCubesat/SPELL_GUI_4.0.2_win32_x86 | a176886b48873b090ab270c189113a8b2c261a06 | 9275ecfff2195ca4d4c297f894d80c1bcfa609e3 | refs/heads/master | 2021-08-03T08:04:25.821703 | 2019-10-28T04:53:50 | 2019-10-28T04:53:50 | 217,968,357 | 0 | 0 | null | 2021-08-02T17:03:44 | 2019-10-28T04:50:59 | Python | UTF-8 | Python | false | false | 3,382 | py | ###############################################################################
"""
(c) SES-ASTRA 2008
PACKAGE
spell.lib.adapter.config
FILE
config.py
DESCRIPTION
Setup environment for correct core driver instantiation
COPYRIGHT
This software is the copyrighted work of SES ASTRA S.A.
A... | [
"matthew.travis@aresinstitute.org"
] | matthew.travis@aresinstitute.org |
09431e04feee5173a0495644128709b76257ecd9 | 9eec7de3670cb6a53dd2e1ac16891eed45cc796e | /xhose/urls.py | 1405be00d3dccdc6388acd60de4e74ae99adcfac | [] | no_license | rudiq4/landing-page | e7c891c9d4220b74cb88b9e86e341f0faf05627d | f4ab2eb4d80620b6fbaec3d04c79c23949375bd4 | refs/heads/master | 2020-03-24T20:56:12.380552 | 2018-07-31T11:11:35 | 2018-07-31T11:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.conf.urls import url
from xhose import views
app_name = 'xhose'
urlpatterns = [
url(r'^xhose/', views.xhose, name='xhose'),
# url(r'^contacts/$', views.contacts, name='contacts'),
] | [
"rudikvovan@gmail.com"
] | rudikvovan@gmail.com |
62476c413ee5a0c5b0c4c85e0d4bb4c3eec16108 | 9f86b4a4e31affb497dcc500ea45a57589f2f533 | /detectron2/layers/nms.py | e29435e77b9edca7f01da5e4627352c81bd2920a | [] | permissive | ishann/detectron2 | a68ae39960dc2594dd971908176074ac5af8b1ba | a52fcd7f6d5ebd334508d59823dbda9f81f2cd0e | refs/heads/master | 2020-08-10T05:58:21.115916 | 2019-12-09T01:16:00 | 2019-12-09T01:16:00 | 214,275,928 | 0 | 0 | Apache-2.0 | 2019-10-10T20:08:02 | 2019-10-10T20:08:02 | null | UTF-8 | Python | false | false | 6,572 | py | # -*- coding: utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch
from torchvision.ops import boxes as box_ops
from torchvision.ops import nms # BC-compat
def batched_nms(boxes, scores, idxs, iou_threshold):
"""
Same as torchvision.ops.boxes.batched_nms, but safer.
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
dc6e21c252793fe6e0b0f0a7c9640fbeb83c8bac | 0cb6eb8a9dc9bdd4e3552040848cecec19d25798 | /FaceRecognition/settings.py | 2135266da38e065cd8395bcfab3e9c68efad056e | [] | no_license | mayank2498/Face_Detection | 9c89e40a0b5359466c2c49e89a2fb6204ad0be20 | fdcb98923d924312038356706c3830fe13bed3da | refs/heads/master | 2021-08-31T13:09:52.876858 | 2017-12-21T11:32:33 | 2017-12-21T11:32:33 | 114,999,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | """
Django settings for FaceRecognition project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
i... | [
"mayankchaurasia.bsp@gmail.com"
] | mayankchaurasia.bsp@gmail.com |
551a6c050f045f8fac9fa97a7f453cecde40f95d | 559fe08f79c297783c404caf7eccee2a269932d4 | /etl/parsers/etw/Intel_Thunderbolt_App.py | 93acf723184612ce60fab955eed5a1b08887f46f | [
"Apache-2.0"
] | permissive | killvxk/etl-parser | 9ba70f54120887f56950054f2cde6dc6c18e0973 | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | refs/heads/master | 2022-11-23T03:35:47.127241 | 2020-07-23T08:55:50 | 2020-07-23T08:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,292 | py | # -*- coding: utf-8 -*-
"""
Intel-Thunderbolt-App
GUID : 8ef15e41-05bf-5bcd-4aa8-4f0559564dc0
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.parsers... | [
"citronneur@gmail.com"
] | citronneur@gmail.com |
9e94d260f3ad0d89442a785c6b2ebbacb48b40ab | 363302c0dce6f72290f19be2bb0728d7b0bdb02d | /top_like_tags/migrations/0004_fixed_hashtag_sub_title.py | 911da63f8ab79c32a12580e338a476a9d5f8420c | [] | no_license | linker10/totag | 87e242734c9b586e66f76f4d99740bb1f175117c | 274e70174387d9ad55ab27e16816dd54f6e71699 | refs/heads/master | 2022-12-06T13:56:23.641080 | 2020-09-04T15:49:24 | 2020-09-04T15:49:24 | 292,886,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 3.0.6 on 2020-05-31 09:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('top_like_tags', '0003_fixed_hashtag'),
]
operations = [
migrations.AddField(
model_name='fixed_hashtag',
name='sub_t... | [
"bilalsharif4@gmail.com"
] | bilalsharif4@gmail.com |
e4850aa7a18ba29d395c5eec5ec94ea8a09818a8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_transmigrated.py | 297c6c5aac3496c8827de39a106d134d7b6404d3 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py |
#calss header
class _TRANSMIGRATED():
def __init__(self,):
self.name = "TRANSMIGRATED"
self.definitions = transmigrate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['transmigrate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ce5db88c9ac44022408cf0d61d9a3509c38b239c | 2be679906bfd8481fde463b0ceaf7d0d8a9c4775 | /tests/test_session.py | 79c986120cdf916f06ad273063bb1440caa118fa | [
"MIT"
] | permissive | dayjaby/libtmux | 73b8b62e47ca18043dda55ac6cb0c7d1a389a060 | 47a8aeb7fa6919aae7e6c0303e7aece5e7679b21 | refs/heads/master | 2020-07-13T16:32:07.385953 | 2019-08-29T11:46:48 | 2019-08-29T11:46:48 | 205,115,334 | 0 | 0 | MIT | 2019-08-29T08:19:44 | 2019-08-29T08:19:44 | null | UTF-8 | Python | false | false | 7,807 | py | # -*- coding: utf-8 -*-
"""Test for tmuxp Session object."""
from __future__ import absolute_import, unicode_literals, with_statement
import logging
import pytest
from libtmux import Pane, Session, Window, exc
from libtmux.common import has_gte_version
from libtmux.test import TEST_SESSION_PREFIX, namer
logger = lo... | [
"tony@git-pull.com"
] | tony@git-pull.com |
8946b5ae8d70fc3d519899293f2227a86275f898 | 1bebfe3d45f11f89014dc56d27306be7d5507c5c | /flavio/_parse_errors.py | fb894885b8a77c3f8e85e754f4bdca39680f082a | [
"MIT"
] | permissive | talismanbrandi/flavio | 6ed628d9f4831c6d55ff56d587eaaca2633de3bb | 9c8f2ce0fa68ea1a4733977557b4a602d590a0ea | refs/heads/master | 2021-01-19T06:38:17.355774 | 2017-12-10T10:55:23 | 2017-12-10T10:55:23 | 87,472,967 | 0 | 0 | null | 2017-04-06T20:40:43 | 2017-04-06T20:40:43 | null | UTF-8 | Python | false | false | 7,141 | py | import re
from flavio.statistics.probability import *
# for strings of the form '< 5.3e-8 @ 95% CL'
_pattern_upperlimit = re.compile(r"^\s*<\s*([-+]?\d+\.?\d*)([eE][-+]?\d+)?\s*@\s*(\d+\.?\d*)\s*\%\s*C[\.\s]*L[\.\s]*$")
# for strings of the form '1.67(3)(5) 1e-3'
_pattern_brackets = re.compile(r"^\s*\(?\s*(-?\d+\.?\d*... | [
"david.straub@tum.de"
] | david.straub@tum.de |
fbb477b2257116e7ff83fc702ea8d7a4dc02cb65 | 10e4652d4e677b2ce89abd0729424dc92c562e19 | /IPython/utils/pickleutil.py | dd1f733637513cf55c58d288c710bb60c5ff6d3b | [
"BSD-3-Clause"
] | permissive | appasche/ipython | 18fd6619d19c96694747aa12f435c410bb5d8f4e | d538c7ac9dcee2e75ff5e670376ac4d3ad6715ee | refs/heads/master | 2021-01-21T09:06:22.830942 | 2015-04-19T16:26:08 | 2015-04-19T16:26:08 | 34,225,707 | 1 | 0 | null | 2015-04-19T21:45:07 | 2015-04-19T21:45:07 | null | UTF-8 | Python | false | false | 140 | py | from warnings import warn
warn("IPython.utils.pickleutil has moved to ipython_kernel.pickleutil")
from ipython_kernel.pickleutil import *
| [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
3fd5b74a50a88a63c25bd07180142e8f0f57f887 | 11ff14c118240e87c4804d0373e4656d0683d479 | /test_case/old_case/test_wifi.py | 3079e369d1a0331e51ea3b1275b53a7c1bf3c822 | [] | no_license | wxmmavis/OS3.1 | e3028d9c79d5a1a17449fea6380fcdda902bdec7 | 26d954344207a82d2298821c3c4f01302393dc7e | refs/heads/master | 2020-03-25T20:07:11.225493 | 2018-08-13T03:20:57 | 2018-08-13T03:20:57 | 144,115,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,146 | py | # -*- coding: utf-8 -*-
import configparser
import logging
import time
import os
import pytest
#########################
# import module
#########################
import sys
sys.path.append("..")
import modules.login_router
import modules.router_setup
import modules.initialize
import modules.device_management
from mod... | [
"1475806321@qq.com"
] | 1475806321@qq.com |
9383ab86a94925354013c11a2320662bce7900ea | 2d2777db0077c52e058bf429011938ef1fd390ba | /scripts/xfrmr/xfrmr_30ft.py | fdee1945491e98ce5a5d5ece483c0e746cfa2477 | [] | no_license | darraghdog/riiid | 164eb37db50e9d7afddb1c05ace367206bf3f45b | 663c5631465dd127e1df40648563066c01901326 | refs/heads/master | 2023-02-18T08:36:53.963778 | 2021-01-07T11:18:37 | 2021-01-07T11:18:37 | 311,267,801 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,559 | py | # https://www.kaggle.com/bminixhofer/speed-up-your-rnn-with-sequence-bucketing
# https://www.kaggle.com/its7171/lgbm-with-loop-feature-engineering/#data
import os
import platform
import sys
PATH = '/Users/dhanley/Documents/riiid/' \
if platform.system() == 'Darwin' else '/mount/riiid'
os.chdir(PATH)
sys.path.append... | [
"darragh.hanley@gmail.com"
] | darragh.hanley@gmail.com |
90d17be586bf4e63e3a8346168cf2cd7cd9755b1 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/백트래킹/14889_스타트와 링크.py | 0552b5ad7fa88ee91f4b003aaaa042dbd8d4f794 | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # N은 짝수, 두 팀으로 나눔.
# 팀 나누는 방법은 조합?
def comb(idx, sidx):
if sidx == N // 2:
global teams
teams.append(sel.copy())
return
for i in range(idx, N):
sel[sidx] = i
comb(i + 1, sidx + 1)
N = int(input())
info = [list(map(int, input().split())) for _ in range(N)]
teams = []
se... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
e8d991ff30ab7eef92e081619c6febba3569da66 | e7d65f8773a8c736fc9e41e843d7da6da5cc2e0b | /py3plex/algorithms/community_detection/node_ranking.py | af80dd4bd4e6a79a2245f1f1a4d8fd843735e838 | [
"BSD-3-Clause"
] | permissive | hanbei969/Py3plex | 768e86b16ca00044fcb4188e01edf32c332c8a2a | 1ef3e0e6d468d24bd6e6aec3bd68f20b9d9686bb | refs/heads/master | 2021-01-03T18:19:24.049457 | 2020-02-12T16:51:14 | 2020-02-12T16:51:14 | 240,188,307 | 1 | 0 | BSD-3-Clause | 2020-02-13T05:57:16 | 2020-02-13T05:57:16 | null | UTF-8 | Python | false | false | 5,165 | py | ## node ranking algorithms
import numpy as np
import networkx as nx
import scipy.sparse as sp
#from networkx.algorithms.community.community_utils import is_partition
from itertools import product
# def stochastic_normalization(matrix):
# matrix = matrix.tolil()
# try:
# matrix.setdiag(0)
# except T... | [
"skrljblaz@gmail.com"
] | skrljblaz@gmail.com |
7dd3f312d9609c7548451d48fd24fc7858972eb4 | 629034462af2e1fccaf7a47e4b9a5cbd789c90e7 | /algorithm/graph-embedding/configs/base.py | e8868d62ac4da3f10266e620bbaf663f22f5b386 | [] | no_license | zhouxh19/Grep-project | eb17c23650aada7a87aef550492ca4bcd8ef0657 | 40ee7d8dcc1e46db82582bf92b86f9a909db727c | refs/heads/master | 2022-12-24T13:00:40.783457 | 2020-09-13T14:47:15 | 2020-09-13T14:47:15 | 284,244,936 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | from pathlib import Path
base_dir = Path().resolve()
config = {}
feature_num = 2
max_iteration = 8
max_test_iteration = 2
k = 3
db = 'tpch'
workload_num = {'tpch': 20187, 'job': 3224, 'xuetangx': 22000}
table_job = {'aka_name': [], 'aka_title': [], 'cast_info': [], 'char_name': [], 'comp_cast_type': [], 'company_n... | [
"zhouxuan19@mails.tsinghua.edu.cn"
] | zhouxuan19@mails.tsinghua.edu.cn |
b59bb380bb991cabe3cefb26f89a8fa5c6f3da44 | 1113e8eec4ccbbcd00c6a9b5466c5239b6f0eb03 | /ops/core/rdb_icpocm.py | 972f5c82126e411356f275269175e3db0db53953 | [] | no_license | yizhong120110/CPOS | a05858c84e04ce4aa48b3bfb43ee49264ffc5270 | 68ddf3df6d2cd731e6634b09d27aff4c22debd8e | refs/heads/master | 2021-09-01T17:59:53.802095 | 2017-12-28T05:43:06 | 2017-12-28T05:43:06 | 106,247,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,260 | py | # -*- coding: utf-8 -*-
"""
通讯进程参数信息查询
"""
import ops.core.rdb
def get_txxx( txjclx ):
"""
通过进程信息表的jclx,获得通讯进程相关的参数
返回值:
{'txwj': 'ops.ocm.short_tcp.jnfs_app', 'bm': 'jnfs_app'}
"""
txjdxx_dic = {}
with connection() as db:
sql = """
sele... | [
"yizhong120110@gmail.com"
] | yizhong120110@gmail.com |
e569dbc4052364132ab074eaf6c3b2e70407822b | d644b6cabb4fa88cf900c59799a2897f5a0702d8 | /tests/base_tests/multipolygon_tests/strategies.py | bd202eb0721c2b567aa55e8a3372cf4acb3b6804 | [
"MIT"
] | permissive | lycantropos/gon | c3f89a754c60424c8e2609e441d7be85af985455 | 177bd0de37255462c60adcbfcdf76bfdc343a9c1 | refs/heads/master | 2023-07-06T01:11:57.028646 | 2023-06-26T20:47:14 | 2023-06-27T00:30:06 | 194,597,548 | 15 | 1 | MIT | 2023-06-27T00:30:07 | 2019-07-01T04:06:06 | Python | UTF-8 | Python | false | false | 1,010 | py | from tests.strategies import (coordinates_strategies,
coordinates_to_multipolygons,
coordinates_to_points,
coordinates_to_polygons,
invalid_multipolygons)
from tests.utils import (cleave_in_tuples,
... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
df941af2e5b59c83931a8144e389f0875fe8898b | 804a81e52d5fc7fd1078268a3a2976ca80a91880 | /nengo/test/test_new_api.py | 14494ef583ac2047ea4e4f779770ce9dca7474ec | [
"MIT"
] | permissive | jvitku/nengo | 692bbc56717acf476cfb384b3cf0affa71135c40 | 484b9244a32ff1011a1292b24225752db75fc3b2 | refs/heads/master | 2020-12-25T05:42:34.936881 | 2013-07-10T16:50:38 | 2013-07-10T19:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,948 | py | from pprint import pprint
from unittest import TestCase
from matplotlib import pyplot as plt
import nose
import numpy as np
from nengo.nonlinear import LIF
from nengo.model import Model
def rmse(a, b):
return np.sqrt(np.mean((a - b) ** 2))
class TestNewAPI(TestCase):
show = False
def test_direct_mode... | [
"tbekolay@gmail.com"
] | tbekolay@gmail.com |
eae545f5af90d8c3c562142d45cf233bbe774293 | 2f4ae73c68637306c878a5234fc3b81950de8854 | /tests/compiler/test_pre_parser.py | 640bc673a35ff9c272b30198c186ce9e2bdc561d | [
"MIT"
] | permissive | ltfschoen/vyper | b121cf1f320f852b7997b0d54eaff5e68163e66e | f68af5730516011007e2546ff825b881e94f030f | refs/heads/master | 2020-03-11T02:42:28.688320 | 2018-04-17T12:42:59 | 2018-04-17T12:42:59 | 129,726,567 | 0 | 0 | MIT | 2018-04-16T10:34:58 | 2018-04-16T10:34:57 | null | UTF-8 | Python | false | false | 1,317 | py | from vyper.exceptions import StructureException
from pytest import raises
def test_semicolon_prohibited(get_contract):
code = """@public
def test() -> int128:
a: int128 = 1; b: int128 = 2
return a + b
"""
with raises(StructureException):
get_contract(code)
def test_valid_semicolons(get_... | [
"jacques@dilectum.co.za"
] | jacques@dilectum.co.za |
1ca1632321aee4063fff9a55b986fe6e9ff62a8b | 6bdb32ddbd72c4337dab12002ff05d6966538448 | /gridpack_folder/mc_request/LHEProducer/Spin-2/BulkGraviton_hh_hVVhbb_inclusive/BulkGraviton_hh_hVVhbb_inclusive_narrow_M450_13TeV-madgraph_cff.py | 03b465498d74fe0f6d139a62106502f6a31c8127 | [] | no_license | cyrilbecot/DibosonBSMSignal_13TeV | 71db480de274c893ba41453025d01bfafa19e340 | d8e685c40b16cde68d25fef9af257c90bee635ba | refs/heads/master | 2021-01-11T10:17:05.447035 | 2016-08-17T13:32:12 | 2016-08-17T13:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/31b6e7510443b74e0f9aac870e4eb9ae30c19d65/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-2/BulkGraviton_hh_hVVhbb_inclusive/BulkGraviton_hh_hVVhbb_inclusive_narrow_M450
externalLHEProducer = cms.E... | [
"syu@cern.ch"
] | syu@cern.ch |
645847f61e91b01dc0dc99a5a8f3216f229bb86c | ad23b164febd12d5c6d97cfbcd91cf70e2914ab3 | /TestCaseFunction/main/run_all_test_createActivity.py | fd0b6a13a6bce27051cfae09df9786c9dc4ddad3 | [] | no_license | wawj901124/webtestdata | 9eedf9a01dec2c157725299bda9a42e8d357ef0b | 54f6412566fce07ece912760c5caea73ede819cb | refs/heads/master | 2022-12-09T14:18:38.125191 | 2021-04-25T07:54:07 | 2021-04-25T07:54:07 | 175,773,318 | 1 | 1 | null | 2022-12-08T02:39:15 | 2019-03-15T07:49:16 | Python | UTF-8 | Python | false | false | 4,042 | py | import unittest
# 在jenkins运行时经常提示找不到包,所以就需要手动添加PYTHONPATH,通过追加sys.path列表来实现
import os
import sys
rootpath = str(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
syspath = sys.path
sys.path = []
sys.path.append(rootpath) # 将工程根目录加入到python搜索路径中
sys.path.extend([rootpath + i for i in os.lis... | [
"410287958@qq.com"
] | 410287958@qq.com |
3375c9d7e789e362ffbc2a148ed3e347e6f8f559 | 62718778da7e683be16ede27bdc2aaf1695be5ec | /routing_classifier/predict_bert.py | b730128378a6e307bd4465527d604911224486c1 | [] | no_license | GihanMora/QA_LEAP | 25a65685df41360dc8385391434b5ba25e115f1b | 67b2bbdde471202ff6e4b69b831b8321d733fd89 | refs/heads/master | 2023-09-04T18:23:39.720062 | 2021-11-11T11:52:49 | 2021-11-11T11:52:49 | 426,982,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | import ast
import numpy as np
import pandas as pd
import torch
from sklearn.metrics.pairwise import cosine_similarity
from transformers import AutoTokenizer, AutoModel
from routing_classifier.building_embedding_space_bert import get_mean_pooling_emb
model_path = 'bert-base-uncased'
vocab_path = 'bert-base-uncased'
t... | [
"gihangamage.15@cse.mrt.ac.lk"
] | gihangamage.15@cse.mrt.ac.lk |
524fa9c06c6a7e63bf445458738e0daf7b313979 | ff871c8dc30b34070cc3e0ea6a31e658158b7c63 | /PaddleVision/ImageClassification/models/mobilenet.py | 4a1154e1a5bd03a241effb8e4ef05bc4d8636929 | [
"Apache-2.0"
] | permissive | SunAhong1993/PaddleSolution | 3da9255849b520a6fb7d7b1eda5a2da48f9127e4 | 46ee3812c66c0dc436c96be8330b7c7d931604b2 | refs/heads/master | 2020-07-05T05:06:08.133802 | 2019-08-20T12:19:24 | 2019-08-20T12:19:24 | 202,531,666 | 2 | 0 | Apache-2.0 | 2019-08-20T06:39:21 | 2019-08-15T11:48:03 | Jupyter Notebook | UTF-8 | Python | false | false | 6,201 | py | #copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.
#
#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 l... | [
"jiangjiajun@baidu.com"
] | jiangjiajun@baidu.com |
d27a90acd871761c963b57f503bff98869154d67 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/operations/_load_balancer_frontend_ip_configurations_operations.py | 9c8d7b50957f3c4802e0aadc57c2a6c3281f68a4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 9,049 | 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"
] | scbedd.noreply@github.com |
c3ed3b484ab64c7d5b85380754f2f47d6a7e4939 | df716b2868b289a7e264f8d2b0ded52fff38d7fc | /tests/formatters/symantec.py | f1b0886c63474d244c14ce69700bf5c780427667 | [
"Apache-2.0"
] | permissive | ir4n6/plaso | 7dd3cebb92de53cc4866ae650d41c255027cf80a | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | refs/heads/master | 2021-04-25T05:50:45.963652 | 2018-03-08T15:11:58 | 2018-03-08T15:11:58 | 122,255,666 | 0 | 0 | Apache-2.0 | 2018-02-20T21:00:50 | 2018-02-20T21:00:50 | null | UTF-8 | Python | false | false | 1,167 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the Symantec AV log file event formatter."""
from __future__ import unicode_literals
import unittest
from plaso.formatters import symantec
from tests.formatters import test_lib
class SymantecAVFormatterTest(test_lib.EventFormatterTestCase):
"""Tests for the... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
013f6557d21e5cb87dcc3029821b093ccc528416 | dc6750f77b60b188c5161f09c831622de76f84d4 | /andros/euterpe-master/euterpe/model_asr/seq2seq/v2/encrnn_decrnn_att_asr.py | 6e1e3ff0bc7a0609d7c141b5c63e04a59382f627 | [] | no_license | gudwns1215/latest | 614edb900167178845d99a0dfdfc732b625e26f5 | 0d0b96aaaecb05039da5b6faf81c2f3e78d8087c | refs/heads/master | 2020-06-03T22:36:13.664965 | 2018-10-08T03:03:50 | 2018-10-08T03:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,554 | py |
import sys
import time
import re
import numpy as np
import json
# pytorch #
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torch.nn.utils.rnn import pack_padded_sequence as pack, pad_packed_sequence as unpack
# torchev #
from torchev.generator import gen... | [
"kano.takatomo.km0@is.naist.jp"
] | kano.takatomo.km0@is.naist.jp |
0995fea88a29d3ee76e12db1750b10190ae20cc1 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/ops/numpy_ops/np_utils_test.py | 2cb8f64324e9e9d6d47bcab8981ed3a8b6d8439f | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,674 | py | # Copyright 2020 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... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
09f339b23093009144f9b4c01d6ee8320fadfc8c | 8016e033484d3cb88a4ee9b82bd3ca08557c12aa | /programmingKnowledge_OOP/hello.py | bd08eca157d9b0200fdd35f8a6aa3a11dac798e7 | [] | no_license | keys4words/python | 72ecf5de80b14ad3a94abe1d48e82035a2f0fa3d | 08431836498e6caed8e01cbc3548b295b69056fe | refs/heads/master | 2021-06-16T19:42:21.294976 | 2020-04-30T14:40:24 | 2020-04-30T14:40:24 | 187,210,896 | 0 | 0 | null | 2021-03-20T01:25:04 | 2019-05-17T12:16:40 | Python | UTF-8 | Python | false | false | 434 | py | class Hello:
def __init__(self):
# self.name = name
# self.age = 10
self.a = 10
self._b = 20
self.__c = 30
def public_method(self):
# print(self.a)
# print(self.__c)
print('public')
self.__private_method()
def __private_method(self):
... | [
"keys4words@gmail.com"
] | keys4words@gmail.com |
3074e68ae62c9b8da42116372bac38daab0eab34 | 1e5f2b99be2e7c1bcbe1718e09e5dce1c7a5ed4d | /23_Merge_k_Sorted_Lists/23_Merge_k_Sorted_Lists.py | 63ce62aef895054cbbca668733a19e61eaf894b0 | [] | no_license | superSeanLin/Algorithms-and-Structures | 05706cf34ac6bbf919f14001da9d44b918c10fb8 | 53ec4471f1eff393c26f7575a47df1a56fb8af11 | refs/heads/master | 2020-03-27T09:13:30.330974 | 2019-10-13T05:10:32 | 2019-10-13T05:10:32 | 146,323,422 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
## Use heap to do better job
def mergeKLists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
minimum =... | [
"noreply@github.com"
] | superSeanLin.noreply@github.com |
954fd295540dba8cfc19355ba45a3c7da5aa94a9 | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /test/experiment.py | 6a774f21b36d3719206d9df9793d4a0a31d8cb59 | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 6,977 | py | # ===============================================================================
# Copyright 2013 Jake Ross
#
# 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
d1fb0d046a7c0d9e863a9839b89b7b64feca1388 | 21b201ebf2ffbbc19fa8d74e5657e12ef597b02d | /research/pcl_rl/baseline.py | 58f7893a6c9a4bb783738399016266fa483810a2 | [] | no_license | alhsnouf/model | fa619691ad9d0afc7ad849a9471e6bb0643a8d47 | 5fe429b115634e642a7469b3f1d4bc0c5cf98782 | refs/heads/master | 2021-04-12T11:16:02.150045 | 2018-03-27T15:19:18 | 2018-03-27T15:19:18 | 126,702,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4252c9a3674f2fe52c94c44905609a6f028ed27517804d6b9a68c3b4ce0b5efe
size 7292
| [
"alhanouf987@hotmail.com"
] | alhanouf987@hotmail.com |
84684ad06806b9b834d775398aa42b70ebb3bff9 | ddb8c14775dfbe9424691dabf1617273d118d317 | /catkin_ws/devel/lib/python2.7/dist-packages/mavros_msgs/srv/_MountConfigure.py | 8bc922a6cacf418e9ad6166d4a3cb1ca7856d717 | [] | no_license | rishabhdevyadav/fastplanneroctomap | e8458aeb1f2d3b126d27dc57011c87ae4567687a | de9d7e49cb1004f3b01b7269dd398cf264ed92b4 | refs/heads/main | 2023-05-12T22:12:27.865900 | 2021-05-26T19:25:31 | 2021-05-26T19:25:31 | 356,674,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | /home/rishabh/catkin_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/srv/_MountConfigure.py | [
"rishabhdevyadav95@gmail.com"
] | rishabhdevyadav95@gmail.com |
1485edb0101fc10707d2f472fb4c3ed4549ba608 | 7ab41799fd38489c93282f1beb3b20e7ef8ff165 | /python/94.py | 6a9b8fc33e6ab122cea451ead65017089a84d0c5 | [] | no_license | scturtle/leetcode-sol | 86c4095df6b31a9fcad683f2d63669ce1691633c | e1a9ce5d9b8fe4bd11e50bd1d5ba1933de845db7 | refs/heads/master | 2020-04-23T00:01:37.016267 | 2015-11-21T04:15:27 | 2015-11-21T04:15:27 | 32,385,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | class Solution(object):
def inorderTraversal(self, root, ans=None):
"""
:type root: TreeNode
:rtype: List[int]
"""
if ans is None:
ans = []
if not root:
return ans
self.inorderTraversal(root.left, ans)
ans.append(root.val)
... | [
"scturtle@gmail.com"
] | scturtle@gmail.com |
56229b6884789b2f9643a05e87993227183ac570 | f0dce7b15b55647b709300d335ddcca523ee61f7 | /34_Find_First_and_Last_Position_of_Element_in_Sorted_Array.py | b4dd6bab76ed54fd3570cd6599c240a478044dc2 | [] | no_license | breezekiller789/LeetCode | ecc4883f616d21e7b72d85c9f93293a8daf3dc74 | 51090f28eaab17e823981eddc9119abe174ceb4e | refs/heads/master | 2023-06-03T20:54:29.222478 | 2021-06-18T14:33:05 | 2021-06-18T14:33:05 | 347,049,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
# Binary search
# Output: [3,4]
nums = [5, 7, 7, 8, 8, 10]
target = 8
# Output: [-1,-1]
nums = [5, 7, 7, 8, 8, 10]
target = 6
# Output: [-1,-1]
nums = [5, 7, 7, 8, 8, 10]
target =... | [
"breezekiller789@csie.io"
] | breezekiller789@csie.io |
078371257b2c04228f984197d2bd37b339ecdf6f | 4cd0631100e099e9b154b12b234715ddee0711d3 | /model/BiSeNetV2AD3.py | f9331953b1e387866c5127b8efacd13f87224c98 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Ethan-ye/Efficient-Segmentation-Networks | d6dd029c76cb46b89ac00ee2f6a49d9ddcd99a3a | 27272e43126a507a6d93b21cd2372f5432f61237 | refs/heads/master | 2023-04-22T11:10:23.256349 | 2021-05-07T05:04:40 | 2021-05-07T05:12:38 | 281,823,847 | 0 | 0 | MIT | 2020-07-23T01:50:42 | 2020-07-23T01:50:41 | null | UTF-8 | Python | false | false | 66,224 | py | # *- coding: utf-8 -*
###########################################################################
# https://github.com/Soulempty/BiseNetv2-pytorch
import torch
import torch.nn as nn
from torch.nn import functional as F
from torchsummary import summary
from utils.activations import NON_LINEARITY
from fvcore.nn.flop_cou... | [
"ye_b@hotmail.com"
] | ye_b@hotmail.com |
628e6d136054a6d06792eb383522a465965a4b1b | bcc04939aa70675c9be19c0bf4a9642877db46b1 | /qa/urls.py | bab92ea3fbcf77b3fe73b3d096450528a2fbd7e2 | [
"MIT"
] | permissive | zkeshtkar/gapbug | 164398e2ddd8f952d5851eab19e34f9f84a080e1 | eec5baf9b4346aef26bcb10e48ddcb358140d708 | refs/heads/main | 2023-06-20T07:39:50.084126 | 2021-07-16T13:31:10 | 2021-07-16T13:31:10 | 387,550,452 | 0 | 0 | MIT | 2021-07-19T17:53:20 | 2021-07-19T17:53:19 | null | UTF-8 | Python | false | false | 1,726 | py | from django.urls import path
from . import views
app_name = "qa"
urlpatterns = [
path("", views.QuestionList.as_view(), name="index"),
path("ask", views.Ask.as_view(), name="question"),
path("show/<int:id>/<str:slug>", views.show, name="show"),
path(
"<int:id>/answer/submit", views.AnswerQues... | [
"mshirdel@gmail.com"
] | mshirdel@gmail.com |
fca7b1ef9fb4de7c9a18ac5ac1b8740490e71104 | a5aabe2e4057d78e687a57a6b560516a7cdb5836 | /unsserv/extreme/sampling/protocol.py | b81ea0a13077b05dbebfab9cabc85dd2beb7c114 | [
"MIT"
] | permissive | aratz-lasa/py-unsserv | 0ffc09ddab65a11ce917d0faa8b1b5dff091e563 | 6f332385e55d05953186b9a8b7848bca4b878e18 | refs/heads/master | 2022-12-14T21:10:12.397834 | 2020-05-03T11:29:49 | 2020-05-03T11:29:49 | 228,329,158 | 5 | 0 | MIT | 2022-12-08T07:00:55 | 2019-12-16T07:35:20 | Python | UTF-8 | Python | false | false | 3,695 | py | from enum import IntEnum, auto
from typing import Tuple, Sequence
from unsserv.common.utils import parse_node
from unsserv.common.structs import Node
from unsserv.common.rpc.structs import Message
from unsserv.common.rpc.protocol import AProtocol, ITranscoder, Command, Data, Handler
from unsserv.extreme.sampling.struc... | [
"aratzml@opendeusto.es"
] | aratzml@opendeusto.es |
25a25d841579b1ba7c8b6f758ec38f5162118091 | bcfc082c98c13bccd4a415c30b67c61d0b91828c | /pymc_hacking/eg3/run_mcmc.py | d43d95f4d452d8ea1875956fa9da5748be328748 | [] | no_license | Markus333/doing_bayesian_data_analysis | 0e7375af1acfd9952044ade28e59d734974e9a71 | 27f144fda3e9df41dbb74f70c5bf82547d2fa649 | refs/heads/master | 2020-12-28T21:39:08.758946 | 2013-01-10T06:46:11 | 2013-01-10T06:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #!/usr/bin/env python
import two_normal_model
from pymc import MCMC
from pymc.Matplot import plot
# do posterior sampling
m = MCMC(two_normal_model)
m.sample(iter=100000, burn=1000)
print(m.stats())
import numpy
for p in ['mean1', 'mean2', 'std_dev', 'theta']:
numpy.savetxt("%s.trace" % p, m.trace(p)[:])
# draw ... | [
"matthew.kelcey@gmail.com"
] | matthew.kelcey@gmail.com |
f09e09827089f8e92a61465736668ec7b5bbb6a5 | fed8edd1396e6f611744b36d744cb23da956409a | /test_dj_app_8_dev_1593/urls.py | dc5381962ff66caeafcf829b0deb7ee07346a97f | [] | no_license | crowdbotics-apps/test-dj-app-8-dev-1593 | ffdc02f6268df04725d647a2ca9f963fe1552b38 | 48602ed68f119b69a2114cedd59350ffc7f0205e | refs/heads/master | 2022-04-02T10:18:14.994388 | 2020-02-04T17:15:16 | 2020-02-04T17:15:16 | 238,261,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | """test_dj_app_8_dev_1593 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
59979f1621b5032c17414f37611219c67fb481dd | c7e5d2fd3a9fdc585f335477eb74248a4416e44b | /setup.py | 19611e6865b7fddf5b82ed3fc61d2ccc8153f801 | [
"MIT"
] | permissive | lord63/pyhipku | d4ec626df5c9e354894f1290633132bb86388730 | 4037014ee4d56ed3dd62b3fe1b9681095e6f5de8 | refs/heads/master | 2022-03-10T16:46:10.514356 | 2021-10-04T11:12:48 | 2022-02-22T14:54:31 | 31,259,992 | 104 | 6 | MIT | 2021-10-04T11:12:54 | 2015-02-24T12:57:02 | Python | UTF-8 | Python | false | false | 1,199 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import pyhipku
try:
import pypandoc
long_description = pypandoc.convert('README.md','rst')
except (IOError, ImportError):
with open('README.md') as f:
long_description = f.read()
setup(
name='pyhipku',
version=p... | [
"lord63.j@gmail.com"
] | lord63.j@gmail.com |
7fccc2a26214b24ed6112b3083ded4973cf22b7c | b92b0e9ba2338ab311312dcbbeefcbb7c912fc2e | /build/shogun_lib/examples/undocumented/python_modular/preprocessor_sortwordstring_modular.py | cbeb3b9c60661aeb5b61178e97e3ba7a043908ed | [] | no_license | behollis/muViewBranch | 384f8f97f67723b2a4019294854969d6fc1f53e8 | 1d80914f57e47b3ad565c4696861f7b3213675e0 | refs/heads/master | 2021-01-10T13:22:28.580069 | 2015-10-27T21:43:20 | 2015-10-27T21:43:20 | 45,059,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | from tools.load import LoadMatrix
lm=LoadMatrix()
traindna = lm.load_dna('../data/fm_train_dna.dat')
testdna = lm.load_dna('../data/fm_test_dna.dat')
parameter_list = [[traindna,testdna,3,0,False,False],[traindna,testdna,3,0,False,False]]
def preprocessor_sortwordstring_modular (fm_train_dna=traindna,fm_test_dna=tes... | [
"prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305"
] | prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305 |
80d08ab26221fb1bcfb4478b7d0d7ee2bedb94d3 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1702.py | cfd5953d19d3326974e9bc2e2f80559fa8e2ef50 | [
"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 | 4,647 | py | # qubit number=5
# total number=51
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
6f8b3a5d8957841087142834c91c801aa460a488 | 8e79de4b73998dd0ee1dae4881784a2b12410615 | /219/notifications.py | 09294bb1d55b253633d306d9185376cafe2febce | [
"MIT"
] | permissive | alehpineda/bitesofpy | e6eb7c9413cf407a12643efece01bef5457e5dcb | bfd319a606cd0b7b9bfb85a3e8942872a2d43c48 | refs/heads/master | 2021-07-15T19:59:35.061049 | 2020-09-25T17:49:32 | 2020-09-25T17:49:32 | 209,878,791 | 0 | 0 | MIT | 2020-09-06T00:11:45 | 2019-09-20T20:49:51 | Python | UTF-8 | Python | false | false | 268 | py | from datetime import date, timedelta
TODAY = date.today()
def gen_bite_planning(num_bites=1, num_days=1, start_date=TODAY):
days = 0
while True:
days += num_days
for _ in range(num_bites):
yield start_date + timedelta(days=days)
| [
"ale.hpineda@gmail.com"
] | ale.hpineda@gmail.com |
92c31e6b240db898369e4593625739fe5d39e00f | e6b9ca7b13a21fcc5a26e787191c845698a47f17 | /django_mako_plus/provider/compile.py | 1090218285d818cbbd93b2b3b8f62d91c72c36ac | [
"Apache-2.0"
] | permissive | BrightBridgeWeb/django-mako-plus | c42e6b3ff4a62b5110f6412958b8df585ae78881 | 24690661b80562a510c1632853815df5111b606c | refs/heads/master | 2020-04-15T14:47:44.565952 | 2019-01-02T02:29:42 | 2019-01-02T02:29:42 | 164,768,193 | 0 | 0 | Apache-2.0 | 2019-01-09T02:06:52 | 2019-01-09T02:06:51 | null | UTF-8 | Python | false | false | 7,416 | py | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
import os
import os.path
import shutil
import collections
import logging
from .base import BaseProvider
from ..util import log
from ..command import run_command
class CompileProvider(BaseProvider):
'''
Runs a command, suc... | [
"doconix@gmail.com"
] | doconix@gmail.com |
df6d1e4f182172ca91145d9307cefe3d8451ec3f | 4992f95174927775146f46275ed604aefe5e9699 | /dstagram/config/urls.py | a7febe8b3c2ba7dc58f8b9ec32801e3465038596 | [
"MIT"
] | permissive | djangojeng-e/mini_projects | 55d5858628eb5f42cb4a5a5e417958fe5929d658 | 32014388e8c83556d83f6ae911bd0e33df2067a7 | refs/heads/master | 2022-12-25T21:26:23.057485 | 2020-05-27T08:02:20 | 2020-05-27T08:02:20 | 229,744,025 | 0 | 0 | MIT | 2022-12-11T05:30:16 | 2019-12-23T12:01:05 | CSS | UTF-8 | Python | false | false | 1,080 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"headfat1218@gmail.com"
] | headfat1218@gmail.com |
bf366e9f7685b1100977df1b46176a6fd4e773e3 | c46f8b1b822166b426b7dacfa85bbf093c8b3fa0 | /pycity_calc/toolbox/analyze/save_load_profiles.py | 7ea4cebae79abc2b2dc30649a25f65103ccdb01f | [
"MIT"
] | permissive | RWTH-EBC/pyCity_calc | d82e684488ed2fba82167c07439f1ffa00907cd8 | 99fd0dab7f9a9030fd84ba4715753364662927ec | refs/heads/master | 2021-03-27T13:11:13.171620 | 2019-06-16T12:01:59 | 2019-06-16T12:01:59 | 92,810,373 | 4 | 0 | MIT | 2019-06-16T11:38:14 | 2017-05-30T07:56:52 | Python | UTF-8 | Python | false | false | 38,298 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Code extracts and saves load profiles of all buildings of city object
"""
from __future__ import division
import os
import warnings
import pickle
import numpy as np
import matplotlib.pyplot as plt
try:
import openpyxl
except:
msg = 'Could not import openpyxl. ... | [
"jschiefelbein@eonerc.rwth-aachen.de"
] | jschiefelbein@eonerc.rwth-aachen.de |
a1526b01102784964eeb982e8698dfbe4e2c1e4c | 63e0bfa7fb4ecf0b6d4f8fd740be0316cd82ea00 | /Graphs/DFSgraph.py | dd8c66f76b63d4d6e3f7eda3c8b8e87506da5a67 | [] | no_license | shaheershantk/Problem-Solving-with-Algorithms-Data-Structure | 7ceb025c8af97dd81890d3baebc69a82d8196801 | ce8b4ba1240fed3109a767984e370ce7a7eb630b | refs/heads/master | 2016-09-06T00:45:50.861117 | 2014-12-01T09:00:16 | 2014-12-01T09:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from graph import Graph
class DFSGraph(Graph):
def __init__(self):
super().__init__()
self.time = 0
def dfs(self):
for aVertex in self:
aVertex.setColor('white')
aVertex.setPred(-1)
for aVertex in self:
if aVertex.getColor() == 'white':
... | [
"shaheer.shan@gmail.com"
] | shaheer.shan@gmail.com |
ff606cd3f830e14dcd8513ca07d6193f66176520 | 04afb34356de112445c3e5733fd2b773d92372ef | /Sem1/FP/Exam/board.py | ac01e707bf43b664662a7821bfd3124d34aeec33 | [] | no_license | AndreeaCimpean/Uni | a4e48e5e1dcecbc0c28ad45ddd3b0989ff7985c8 | 27df09339e4f8141be3c22ae93c4c063ffd2b172 | refs/heads/master | 2020-08-21T19:12:49.840044 | 2020-05-15T17:22:50 | 2020-05-15T17:22:50 | 216,222,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,139 | py | from texttable import Texttable
import random
class Board:
def __init__(self):
self._data = [0] * 64
self.place_stars()
self.place_endeavour()
self.place_cruisers(3)
def get_cell(self, i, j):
return self._data[((ord(i) - ord('A')) * 8 + j - 1)]
def set_cell(self, ... | [
"andreeacimpean.910@gmail.com"
] | andreeacimpean.910@gmail.com |
3f00da3a7e49680da3280abdc9e62595162564a2 | ffad717edc7ab2c25d5397d46e3fcd3975ec845f | /Python/pyesri 2/ANSWERS/countwords.py | 2f99c6fb13bb5934869c3497fc0145931cb580f8 | [] | no_license | shaunakv1/esri-developer-conference-2015-training | 2f74caea97aa6333aa38fb29183e12a802bd8f90 | 68b0a19aac0f9755202ef4354ad629ebd8fde6ba | refs/heads/master | 2021-01-01T20:35:48.543254 | 2015-03-09T22:13:14 | 2015-03-09T22:13:14 | 31,855,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!/usr/bin/python
import sys
if len(sys.argv) < 3:
print "Syntax: countwords.py PATTERN FILE ..."
sys.exit()
pattern = sys.argv[1]
for fname in sys.argv[2:]:
count = 0
with open(fname) as f:
for line in f:
if pattern in line:
count += 1
... | [
"shaunakv1@gmail.com"
] | shaunakv1@gmail.com |
475f9818e2bccdeb3c2faec0b8c438eb5c4c96f4 | e0f1b0f8d8771e0852c9d5a118c8a1d5bac274ba | /Keras/5_Deep_Learning_for_Computer_Vision/5.2.py | d69ed0c7c87d8a147caa42dd7731c667bea73655 | [] | no_license | rapsealk/TIL | cdec9a67c510ba0cc33f5f11cdace0ffb4f847e1 | b1a78201fef37cc6d28f8acda41645cd7db4ef6f | refs/heads/master | 2022-11-26T17:11:36.375136 | 2020-10-21T04:35:01 | 2020-10-21T04:35:01 | 122,223,741 | 3 | 0 | null | 2022-11-10T14:58:46 | 2018-02-20T16:26:15 | Java | UTF-8 | Python | false | false | 6,457 | py | #!/usr/bin/env python3
"""
Datasets can be downloaded @ https://www.kaggle.com/c/dogs-vs-cats/data
"""
"""
5.2.2
"""
import os, shutil
original_dataset_dir = './datasets/cats_and_dogs/train'
base_dir = './datasets/cats_and_dogs_small'
os.mkdir(base_dir)
train_dir = os.path.join(base_dir, 'train')
os.mkdir(train_dir)... | [
"piono623@naver.com"
] | piono623@naver.com |
7a37d75648f80d161d5fcf360df2b3744e76dd14 | 52877e2b60ed675eb16ea66c7398127294a313d3 | /t2t_bert/distributed_single_sentence_classification/train_eval_multilabel_sess_fn.py | 26adc4d0a7a96ee2fcb7494645c5b20da11457d7 | [
"Apache-2.0"
] | permissive | yyht/BERT | 0dc82ea8e141cad4774e638dd7d44f781d77b6c3 | 480c909e0835a455606e829310ff949c9dd23549 | refs/heads/master | 2023-04-07T03:32:28.123608 | 2021-02-17T02:15:58 | 2021-02-17T02:15:58 | 162,232,730 | 37 | 12 | Apache-2.0 | 2022-11-21T21:15:04 | 2018-12-18T05:02:27 | Python | UTF-8 | Python | false | false | 13,499 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
from optimizer import distributed_optimizer as optimizer
from data_generator import distributed_tf_data_utils as tf_data_utils
# try:
# from .bert_model_fn import model_fn_builder
# from .bert_model_fn import rule_model_fn_builder
# except:
# from bert_model_fn impor... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
4ecdb76b8e0319bfa6d4f6b7dc0e061f3c6dc767 | e2345e19d448c4fa36af58a6fc908698086137f4 | /woodwork/__init__.py | 3c97e9a8ad0cc661bc81bca8183f7354516c0add | [
"MIT"
] | permissive | westurner/woodwork | df727eb30ea7c07399664b44f0df3afc626db371 | 2475f9cbc220fc57828f880014e9e2a00f547c84 | refs/heads/develop | 2023-01-09T07:29:48.452416 | 2019-07-20T12:20:40 | 2019-07-20T12:20:40 | 191,066,025 | 0 | 0 | MIT | 2022-12-26T20:47:39 | 2019-06-09T23:32:34 | Makefile | UTF-8 | Python | false | false | 141 | py | # -*- coding: utf-8 -*-
"""Top-level package for woodwork."""
__author__ = """Wes Turner"""
__email__ = 'wes@wrd.nu'
__version__ = '0.1.0'
| [
"wes@wrd.nu"
] | wes@wrd.nu |
aebb1eddc6fcf0731267d7340d71f4c83cedd761 | bf902add6952d7f7decdb2296bb136eea55bf441 | /YOLO/.history/pytorch-yolo-v3/video_demo_20201105155405.py | 15b378f813c2de470669d0aedcd9618634ee4675 | [
"MIT"
] | permissive | jphacks/D_2003 | c78fb2b4d05739dbd60eb9224845eb78579afa6f | 60a5684d549862e85bdf758069518702d9925a48 | refs/heads/master | 2023-01-08T16:17:54.977088 | 2020-11-07T06:41:33 | 2020-11-07T06:41:33 | 304,576,949 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 15,214 | py | from __future__ import division
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import cv2
from util import *
from darknet import Darknet
from preprocess import prep_image, inp_to_image
import pandas as pd
import random
import argparse
import pickle as pkl
import r... | [
"73480314+ryo-jpg@users.noreply.github.com"
] | 73480314+ryo-jpg@users.noreply.github.com |
3b042aa37d0a4f05387f289756ac8cbe1d169d5c | 003349d700f7d762f2cc3124717e332d0091be1a | /www/src/Lib/asyncio/coroutines.py | 58f1db3f88c528324bed50fd77177ba810c60fb5 | [
"BSD-3-Clause"
] | permissive | Rocia/brython | bffce20d736f67b58587f503ad8b503232823fbb | 4c29ad017d0b91971d195f31f6a0e18f68e28c55 | refs/heads/master | 2021-01-15T13:18:54.149409 | 2017-08-06T09:33:15 | 2017-08-06T09:33:15 | 99,669,037 | 1 | 0 | null | 2017-08-08T08:23:59 | 2017-08-08T08:23:58 | null | UTF-8 | Python | false | false | 6,467 | py | __all__ = ['coroutine',
'iscoroutinefunction', 'iscoroutine']
import functools
import inspect
import opcode
import os
import sys
import traceback
import types
from . import events
from . import futures
from .log import logger
# Opcode of "yield from" instruction
_YIELD_FROM = opcode.opmap['YIELD_FROM']
... | [
"jonathan.verner@matfyz.cz"
] | jonathan.verner@matfyz.cz |
16fc7bcb55d17f616c53e65cc1ae9dafcc3968f6 | 215e3c24d9bf55c5951cdbab08d045663003331a | /Lib/hTools2/dialogs/font/__init__.py | 74e3e5f5c6b36643c9ecc94222334f4bf4af2a8f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | hipertipo/hTools2 | 8ac14ee37d6ed78a5ce906e65befa889798cc53d | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | refs/heads/master | 2022-07-10T20:37:13.869044 | 2018-11-21T10:42:44 | 2018-11-21T10:42:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # dialogs.font
'''Dialogs to do things to the current font.'''
from element_set import setElementDialog
from groups_print import printGroupsDialog
from glyphs_rename import batchRenameGlyphs
from info_copy import copyFontInfoDialog
from info_print import clearFontInfoDialog
from layer_delete import deleteLayerDialog
... | [
"gustavo@hipertipo.com"
] | gustavo@hipertipo.com |
b35deb44547fcef0a2d8632596c3f8f056a079ff | 55f945f29f78c0c0c6ac110df808126a38999be5 | /devel/lib/python2.7/dist-packages/mav_planning_msgs/msg/_Point2D.py | ad30cc3b60d081967f1ea88872955374f0dadcab | [] | no_license | aarchilla/NodeROS | 43e9f0d6931d1eb11057d229e20e2911fba943c2 | 4d79e3ffbbb19c11535613249fed2191ada63000 | refs/heads/master | 2020-06-16T20:00:39.218889 | 2019-07-07T18:36:17 | 2019-07-07T18:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | /home/esaii-admin/catkin_ws/devel/.private/mav_planning_msgs/lib/python2.7/dist-packages/mav_planning_msgs/msg/_Point2D.py | [
"aarchilla21@gmail.com"
] | aarchilla21@gmail.com |
e60dcbd49809656ea4dc38d9856068c52d115ebc | 75224b9a071a7e231c87cb984e1ac81d873a0165 | /finalsweek/game/program_api/game_deck_api.py | 97726ef723a21f6ee0a7388e4d0b29ad0ee1aa0c | [] | no_license | tckerr/finalsweek | 94fe740f9f1db100071d3d5b04d57d8aa48f9695 | dea12866919e5b37643e46d42d797d672dd83182 | refs/heads/master | 2021-01-23T03:52:52.777566 | 2017-05-20T00:58:20 | 2017-05-20T00:58:20 | 86,127,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | from game.definitions import OperationType, OperatorType
from game.operation.decorators import accepts_operation, accepts_operator
from game.scripting.api.program_child_api import ProgramChildApi
from trace.definitions import LogLevel, LogType
from trace.logger import Logger
# TODO: split action card and dismissal ca... | [
"tckerr@gmail.com"
] | tckerr@gmail.com |
d58981503e1312e14b20bf7ce3a549340b34779d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/142/usersdata/231/62183/submittedfiles/av2_p3_civil.py | c48a48605ffd795c38ee98f06a74012f88f0d143 | [] | 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 | 618 | py | # -*- coding: utf-8 -*-
def media(a):
soma = 0
for i in range(0,len(a),1):
soma = soma + a[i]
media = soma/len(a)
return (media)
#ESCREVA AS DEMAIS FUNÇÕES
def soma1(g):
media=media(a)
cont=0
for i in range(0,len(g),1):
cont=cont+(g[i]-media(a))
return cont
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
33872138ea3dceeb7ec6c48bc1b0b17ef7f988e6 | 91e0036d8e976b09c9a9e3281f33559c4b163412 | /Api/admin.py | 39cdfb2cdc1835fbf3a59932392c2fba1d9315fa | [] | no_license | sirajmuneer123/LibraryApp | b1b77f817ec909899715b484788eb6f9b2e1a853 | f41543ece1f513edc85508cd45b4b68c1e4b3cbc | refs/heads/master | 2020-09-09T00:14:32.235343 | 2019-11-15T13:50:18 | 2019-11-15T13:50:18 | 221,285,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.apps import apps
from django.contrib import admin
from django.contrib.admin.sites import AlreadyRegistered
app_models = apps.get_app_config('Api').get_models()
for model in app_models:
try:
admin.site.register(model)
except AlreadyRegistered:
pass
| [
"sirajmuneer4@gmail.com"
] | sirajmuneer4@gmail.com |
c30df6cdff0df25e70d3951f98834cff940e8c4f | b333dc607a2f1556f6a8adb6d16dc88fa8a30c8b | /portal/apps/epubparser/views.py | a2dac12c6e6f988b3cc1a028f3cb4ed50e01b92c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hernan0216/utopia-cms | 6558f8f600620c042dd79c7d2edf18fb77caebb8 | 48b48ef9acf8e3d0eb7d52601a122a01da82075c | refs/heads/main | 2023-02-06T10:31:35.525180 | 2020-12-15T17:43:28 | 2020-12-15T17:43:28 | 321,775,279 | 1 | 0 | BSD-3-Clause | 2020-12-15T19:59:17 | 2020-12-15T19:59:16 | null | UTF-8 | Python | false | false | 8,191 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.shortcuts import redirect
from django.template import RequestContext
import os, re
import ebooklib
from ebooklib import epub, utils
from bs4 import BeautifulSoup, Tag
from django.views.generic import ListView, FormView, View, DetailView
from django.core.urlresol... | [
"apacheco@ladiaria.com.uy"
] | apacheco@ladiaria.com.uy |
70c7ef7f60eb803955e8f403aaebada84e807bda | 36f6b1d7a7355ee21e387b2a4f56ebd8dd044b2c | /snippets/try_bench.py | f416d2344f0af895df5c80c490df937f4b35e6bc | [] | no_license | sbl1996/hinas | e826936537094d7de5ba36cc78dcdb8e4de076ac | e2db5ebc219a2f7dc1b1344e5d13c97177467e08 | refs/heads/main | 2023-02-20T17:52:38.719867 | 2021-01-21T02:22:05 | 2021-01-21T02:22:05 | 301,271,639 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import numpy as np
from hinas.models.nas_bench_201.search.darts import Network
from hinas.models.nas_bench_201.api import SimpleNASBench201
api = SimpleNASBench201("/Users/hrvvi/Code/study/pytorch/datasets/NAS-Bench-201-v1_1-096897-simple.pth")
net = Network(4, 8)
val_accs = []
ranks = []
for i in range(100):
ne... | [
"sbl1996@126.com"
] | sbl1996@126.com |
2eb572de05a2ef49a132ba18d76c92d43849d6f6 | b253452291fe7a0ebd5673bf9f6e8ead4a6825c8 | /fireplace/cards/gvg/mage.py | 1204db22fc7a1a231b295c5a1f01cf38318431cb | [] | no_license | rafzi/fireplace | 3c75b3892848635f5de264f01fd1431c34ef6983 | 8fc6198c1b855b448e2fceebe7bdab5e6436e2b7 | refs/heads/master | 2021-01-14T08:51:54.403001 | 2015-07-08T13:45:09 | 2015-07-08T13:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | from ..utils import *
##
# Minions
# Snowchugger
class GVG_002:
events = [
Damage().on(
lambda self, target, amount, source: source is self and [Freeze(target)] or []
)
]
# Goblin Blastmage
class GVG_004:
def action(self):
if self.poweredUp:
return [Hit(RANDOM_ENEMY_CHARACTER, 1) * 4]
# Illuminato... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
e660785218f7aaf8b80cd9306885cd20180a5a38 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc008/A/4900621.py | 339205eb206cbdbeac2ed6cbc083a7ebc5b7e05f | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | s = input().split()
S = int(s[0])
T = int(s[1])
if 1 <= S <= T <= 1000:
print(T - S +1) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
93ee83b0a17ef7ea90b7e103fcfa8ebc52d9406c | d1c7d493eb01ba3636482ad452aa540e253ff0e9 | /python-3/beginner/1164.py | 5bb22dbc2ce9dc78e4b7a81857d93a04b81e579d | [
"MIT"
] | permissive | MisaelAugusto/uri | 411aa8b3915c9c046ce46ac180daab7950922109 | 22bee72edf44f939d7a290383336b4d061faecbb | refs/heads/master | 2022-12-05T08:32:22.999188 | 2020-08-31T12:31:05 | 2020-08-31T12:31:05 | 268,656,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # -*- coding: utf-8 -*-
N = int(input())
for i in range(N):
X = int(input())
total = 0
for i in range(1, int((X / 2)) + 1):
if (X % i == 0):
total += i
print(("%d eh perfeito" % X) if (total == X) else ("%d nao eh perfeito" % X)) | [
"misael.costa@ccc.ufcg.edu.br"
] | misael.costa@ccc.ufcg.edu.br |
0d69a25061e8410a69ca57c98149a3ff32ec0dbd | b02a5015ecc61414834c4b24e5f33168eb99070a | /CCscripts/DrawCuts.py | 4aa074ccf23b22710695a909fad2956b4ae69a06 | [
"MIT"
] | permissive | mrvollger/SDA | f1aa8edf9989125d7e0c0f6ae159bca495915826 | 3d5e9ec8d1e7ac97121c33c6be80d635392631cf | refs/heads/master | 2023-05-13T05:24:54.665854 | 2023-05-07T23:40:25 | 2023-05-07T23:40:25 | 101,452,926 | 29 | 5 | MIT | 2019-11-21T18:08:13 | 2017-08-26T00:58:01 | Python | UTF-8 | Python | false | false | 605 | py | #!/usr/bin/env python
import ABPUtils
import argparse
ap = argparse.ArgumentParser(description="Plot cuts individually")
ap.add_argument("graph", help="Original graph file.")
ap.add_argument("cuts", help="Cuts file.")
ap.add_argument("--out", help="Output file.", default="./")
args = ap.parse_args()
g = ABPUtils.Re... | [
"mrvollger@gmail.com"
] | mrvollger@gmail.com |
04674a600e226e31aa0f8316d18ab01272775691 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_subcontracts.py | 7377f23ac79db909499e908ee8af2088973acc0e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py |
from xai.brain.wordbase.verbs._subcontract import _SUBCONTRACT
#calss header
class _SUBCONTRACTS(_SUBCONTRACT, ):
def __init__(self,):
_SUBCONTRACT.__init__(self)
self.name = "SUBCONTRACTS"
self.specie = 'verbs'
self.basic = "subcontract"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8d5a83daead27736aecc6e7ac623324c76e906dc | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/3-lists_20200405001109.py | 5a0bda1428374ca1f3e46e140e448d5438925749 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # A List is a collection which is ordered and changeable. Allows duplicate members.
numbers = [ 3, 23, 111, 3423, 352]
print(numbers)
print(type(numbers))
#using a constructor
listNum = list (( 213, 11, 342, 2342, 55432))
print(listNum)
fruits = ['Apples', 'Oranges', 'Grapes', 'Pears']
print(fruits[2])
#Get len
pri... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
f2eee898f0944c4b6faea8454a3765ba7fb32f35 | 428ee863e50fecfaedbbf64f3da95e9acb746ae4 | /src/tamsin/sysmod.py | ee7671e8e91b5727f007a422a134f6c0d9003edd | [
"BSD-3-Clause",
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | catseye/Tamsin | ba53a0ee4ac882486a958e6ba7225f19eea763ef | 1c9e7ade052d734fa1753d612f2426ac067d5252 | refs/heads/master | 2021-01-17T09:21:25.202969 | 2016-03-31T15:00:14 | 2016-03-31T15:00:14 | 19,212,331 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,364 | py | # encoding: UTF-8
# Copyright (c)2014 Chris Pressey, Cat's Eye Technologies.
# Distributed under a BSD-style license; see LICENSE for more information.
# Python version of Tamsin's $ module.
import sys
from tamsin.term import Atom, Constructor
from tamsin.scanner import EOF
TRANSLATOR = {'return': 'return_', 'pri... | [
"cpressey@catseye.tc"
] | cpressey@catseye.tc |
dd9795fe720d8bf7f51b07a3bf2c790181a0397d | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/transformers/src/transformers/models/data2vec/modeling_data2vec_vision.py | e63ee0d32cf1879d8d939daa93b2807a091002b6 | [
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 53,001 | py | # coding=utf-8
# Copyright 2022 Meta Platforms and The HuggingFace Inc. team. 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/LICEN... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
e7436a8ac1f5eadf84e2b41f3f537b5b70bdc951 | fda673f9450d6d78c542a699fe8b9064f65d9057 | /spider/ms_main_update_score.py | a97faedfdf27c2b6a8d2aba18398cc1e66b7101c | [] | no_license | asdlei99/MovieSite | 1221f8103ec4af63b4f9b80d89d7f7bf5a21a1c3 | 2a7ee09a308e13df58f6b43f6288908c68fc6271 | refs/heads/master | 2020-03-26T16:19:19.059927 | 2018-06-08T09:01:05 | 2018-06-08T09:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | # coding=utf-8
"""
Update douban_addr and socre for db
"""
import urllib
import re
import os
from ms_utils.db_helper import connect_db
from ms_utils.html_helper import Douban
from ms_utils.common import get_webdriver, get_html_content, get_douban_sn, \
get_douban_url
from ms_utils.log import Log
from ms_constants i... | [
"1225191678@qq.com"
] | 1225191678@qq.com |
7a2d0fe093e4636025d1c89079263aa7eacf5957 | c6fca34b2c9cb973d9d65d23e58e40d4513e173a | /aoc2016/day25.py | f1a75d25732ce30e7e8d149f847be0996fb35b09 | [] | no_license | tomkooij/AdventOfCode | 8ff47c027c887194b0d441f61a8db172c4e260ea | 7890d45a01498dcb48972a7e311888ce6f003bd2 | refs/heads/master | 2021-08-15T19:46:21.869137 | 2021-01-18T06:37:50 | 2021-01-18T06:37:50 | 48,421,868 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # adventofcode assembunny
from collections import defaultdict
def run(len_output, **kwargs):
def int_or_reg(register):
try:
return int(register)
except ValueError:
return regs[register]
regs = defaultdict(int)
output = []
for key, value in kwargs.items():
... | [
"tomkooij@tomkooij.nl"
] | tomkooij@tomkooij.nl |
b2b85535c8249764df743da35a36a587fbee07e3 | 9905901a2beae3ff4885fbc29842b3c34546ffd7 | /nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/basic/vserver.py | dd3e1af728c8e9185c6e0c6bd682e7968ced6772 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | culbertm/NSttyPython | f354ebb3dbf445884dbddb474b34eb9246261c19 | ff9f6aedae3fb8495342cd0fc4247c819cf47397 | refs/heads/master | 2020-04-22T17:07:39.654614 | 2019-02-13T19:07:23 | 2019-02-13T19:07:23 | 170,530,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,121 | py | #
# Copyright (c) 2008-2016 Citrix Systems, 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 l... | [
"mdculbert@marathonpetroleum.com"
] | mdculbert@marathonpetroleum.com |
eacfea7464bd43192aea85f068759c41257baf5d | ca9e037a6ac24117b7250922c607ce9e5609e82b | /docrec/compatibility/sib18.py | 5298bf7d77cec38ab770661ad3d5f55c27f43caa | [] | no_license | thiagopx/deeprec-cvpr20 | 4d4e1752fa33a17c3da26cc11433531a2e08d40c | 3f04c494574790cbc390930cd60e0e207ec15b10 | refs/heads/master | 2022-06-02T18:31:32.664352 | 2022-05-16T20:50:35 | 2022-05-16T20:50:35 | 248,400,773 | 2 | 3 | null | 2022-05-16T20:55:20 | 2020-03-19T03:21:03 | Python | UTF-8 | Python | false | false | 4,872 | py | import sys
import cv2
import numpy as np
import math
from time import time
from skimage.filters import threshold_sauvola, threshold_otsu
import tensorflow as tf
from .algorithm import Algorithm
from ..models.squeezenet import SqueezeNet
class Sib18(Algorithm):
''' Proposed algorithm. '''
def __init__(
... | [
"paixao@gmail.com"
] | paixao@gmail.com |
45921dd008fad6bac984470e8218cf30bc8ac73e | b2afbc68e3900ebd2a673f5152f4f04374792bca | /pm4py/objects/conversion/log/versions/to_trace_log.py | 6a08685e41dbd465c77611512cf40f07a7bc4638 | [] | no_license | indrawaspada/online_process_monitoring_using_incremental_state-space_expansion_an_exact_algorithm | 83d0c2a3dfd7f1f9ce686564bf7f525bb534e973 | 2b23ab20f739e87447af86bb7f63d8816c69c9db | refs/heads/master | 2022-09-18T12:15:33.172540 | 2020-06-04T13:58:07 | 2020-06-04T13:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | import pm4py
from pm4py.objects.log import log as log_instance
from pm4py.objects.log.util import general as log_util
def apply(log, parameters=None):
if isinstance(log, pm4py.objects.log.log.EventLog) and (not isinstance(log, pm4py.objects.log.log.TraceLog)):
parameters = parameters if parameters ... | [
"daniel.schuster@fit.fraunhofer.de"
] | daniel.schuster@fit.fraunhofer.de |
2f0d441ea6d652558924b0e2e0149d7843eebddb | 25597909c9fd5ae13eb89cf255f4ae79053a6d80 | /.ipynb_checkpoints/c2_model_selection-checkpoint.py | 8bb516e43fa4fba192fe988c6aea97eb6256ce53 | [] | no_license | FangyangJz/AI_Machine_Learning_Muke | 986038941dd7e4af9d2873369408808d5a75e412 | 751f3b850dad31441fd80ac94e1909adbb43473a | refs/heads/master | 2020-03-22T21:53:28.386637 | 2018-07-30T15:01:11 | 2018-07-30T15:01:11 | 140,719,785 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
'''
created by Fangyang on Time:2018/7/11
'''
__author__ = 'Fangyang'
import numpy as np
def train_test_split(X, y, test_ratio=0.2, seed=None):
'''将数据X和y按照test_ratio分割成X_train, X_test, y_train, y_test'''
assert X.shape[0] == y.shape[0], \
"the size of X... | [
"fangyang.jing@hotmail.com"
] | fangyang.jing@hotmail.com |
df34cfcdc20a398e643f5cd7471eec02573e3d40 | 1b2aafc17203e0c789e51b9b51e59c70be478f23 | /l10n_ve_hr_payroll/__init__.py | 80081c7a38dc614ac7b750b6c4994248d670259e | [] | no_license | adrt271988/odoo_custom_v8 | 7cfd9e1a1537e32de69ef0d617592af118c6d129 | e61176e06bffd6afd82fbcc17fad4ede8a955502 | refs/heads/master | 2020-04-06T05:53:33.547748 | 2017-03-17T00:15:03 | 2017-03-17T00:15:03 | 49,723,158 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
f0ef214be096340939ed6eb9684488ba392bb112 | 8b45916af90aca42f23eab1fd0f78833dfca5bfa | /tests/test_app.py | 8af16aa31636dc536e6387f9cfcf93d8e4a4dd4d | [
"MIT"
] | permissive | bradh/rio-viz | aeeef8c3b94729092ce21ff44b7ecaf79b43b50c | bc73a06c09e49b19541543f1e758109466ca17f8 | refs/heads/master | 2022-03-01T02:50:23.640625 | 2019-07-15T15:37:31 | 2019-07-15T15:37:31 | 197,893,243 | 0 | 0 | MIT | 2019-07-20T07:07:08 | 2019-07-20T07:04:58 | Python | UTF-8 | Python | false | false | 3,052 | py | """tests rio_viz.server."""
import os
import pytest
from starlette.testclient import TestClient
from rio_viz.raster import RasterTiles
from rio_viz.app import viz
from rio_tiler.errors import TileOutsideBounds
cog_path = os.path.join(os.path.dirname(__file__), "fixtures", "cog.tif")
def test_viz():
"""Shoul... | [
"vincent.sarago@gmail.com"
] | vincent.sarago@gmail.com |
df9837844c511d1fd489c599062faa029c57ba79 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03681/s154151403.py | efacb540b804061374acf8c118541a6ce367cf52 | [] | 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 | 625 | py | def factorial_mod(n,mod):
ret = 1
for i in range(1,n+1):
ret *= i
ret %= mod
return ret
def comb_mod(n,r,mod):
if r > n or r < 0:
ret = 0
else:
fact_n = factorial_mod(n, mod)
fact_r = factorial_mod(r, mod)
fact_nr = factorial_mod(n-r, mod)
re... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
776304ba0a3143e65e73466d9f081b897a53d0d9 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /content/test/gpu/gpu_path_util/setup_tools_perf_paths.py | 5d90d6b007b2d134c53bc620913767cf22226e3e | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 228 | py | # Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import gpu_path_util
gpu_path_util.AddDirToPathIfNeeded(gpu_path_util.TOOLS_PERF_DIR)
| [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
7e864297750e34096f4ed3464d0db7370279f277 | 657ac5489186e9e6f9aa7522cbf25ee929f8dde6 | /microchip/microchip/wsgi.py | 34cc8817d3d3337752078af76ec64f2d42776f9c | [] | no_license | Ginkooo/MicroChipServer | ab8f30fb87d89d9cd217b5abe7a8e940c9d3de3f | fe18496f1023f13a0dad2efba17cfa95e1748a5e | refs/heads/master | 2021-01-13T05:28:46.870298 | 2017-05-10T10:34:47 | 2017-05-10T10:34:47 | 86,624,819 | 0 | 1 | null | 2017-04-02T13:16:07 | 2017-03-29T20:09:22 | Python | UTF-8 | Python | false | false | 396 | py | """
WSGI config for microchip project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"piotr_czajka@outlook.com"
] | piotr_czajka@outlook.com |
ff264d04f5910444f98cfa82b309a14c52616dbd | b731d1b35a5416cdd73d421ea3b88a3a18e4c6d3 | /tools/report-error-positional-distribution.py | 050f158a7b77d58da6ba54495fe3b1672e24adbd | [] | no_license | xflicsu/ecliptic | ad772d3563cff1875dddc7d29d156093e03afd07 | e9d2e671bcabc5df30ada0cf42953769099ad5d7 | refs/heads/master | 2020-12-28T21:06:37.212834 | 2013-06-18T14:13:23 | 2013-06-18T14:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,225 | py | #!/usr/bin/env python
from __future__ import division
import csv
import sys
import os
import pickle
import numpy as np
import matplotlib as mpl
mpl.use('Agg') # to enable plotting without X11
from matplotlib import pyplot as plt
from ecliptic.support.plotutils import iwork_colors, adjust_numbers_style
PLOT_FORMATS = ... | [
"hyeshik@snu.ac.kr"
] | hyeshik@snu.ac.kr |
4f7c0f59574280506381ae50d52222c1fa3a1b2a | ba12e5b18bf29cf152050bade5dfc04493904afb | /setup.py | 3291b5009df36c8de49ffd8eb8a279cc654313df | [] | no_license | st4lk/centrifuge-mongodb | 4ac5b99db29443db0db3862712bb0194d4097a82 | c9c5c678fc1935c761433d33804bcf59d588c406 | refs/heads/master | 2020-02-26T13:19:19.022732 | 2014-03-19T08:42:02 | 2014-03-19T08:42:02 | 26,912,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import os
import sys
from setuptools import setup
if sys.argv[-1] == 'test':
status = os.system('python tests/tests.py')
sys.exit(1 if status > 127 else status)
requirements = [
'centrifuge',
'six==1.3.0',
'motor==0.1.2'
]
def long_description():
return "MongoDB structure backend for Centr... | [
"frvzmb@gmail.com"
] | frvzmb@gmail.com |
8fe0d18309ed7841e63127156eb08261cb23e707 | 3185e5061f522f80d88122e022a35e7b1541296f | /startCamp/04_day/flask/app.py | 548c80842bc4c8e68432fb66aaa84b767ba26eb8 | [] | no_license | min1378/TIL | cc688b6e6377563e9d55712b81b117c69d1c8c25 | afbeba104d10614e078ec43676a4e1c1d70422a3 | refs/heads/master | 2020-06-17T11:55:45.982224 | 2019-07-12T01:14:04 | 2019-07-12T01:14:04 | 195,916,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | from flask import Flask, render_template, request #requests랑 다름 flask 자체 제공 함수 사용자의 요청을 확인할 수 있는 객체
import requests
import bs4
app = Flask(__name__)
@app.route('/') # / => root
def index():
return 'hello world'
@app.route('/greeting/<string:name>') #입력받아올땐 꺽쇠 <> 사용!!!!!
def hello(name):
#return f'안녕하세요 ... | [
"qwes123@naver.com"
] | qwes123@naver.com |
cd8df0cdec8e425c79e6dc06a9fc7ff507004647 | 70054615f56be28373b00c9df96544ec822be683 | /res/scripts/client/gui/prb_control/events_dispatcher.py | 4c439155085c3f32851159a72c51df0964279474 | [] | no_license | wanyancan/WOTDecompiled | c646ad700f5ec3fb81fb4e87862639ce0bdf0000 | 9ffb09007a61d723cdb28549e15db39c34c0ea1e | refs/heads/master | 2020-04-17T23:13:15.649069 | 2013-11-15T16:37:10 | 2013-11-15T16:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,890 | py | # 2013.11.15 11:25:38 EST
# Embedded file name: scripts/client/gui/prb_control/events_dispatcher.py
from constants import PREBATTLE_TYPE
from debug_utils import LOG_ERROR
from gui.Scaleform.framework import VIEW_TYPE, g_entitiesFactories as guiFactory
from gui.Scaleform.framework.managers.containers import POP_UP_CRITE... | [
"james.sweet88@googlemail.com"
] | james.sweet88@googlemail.com |
b06dc60fd4fb7841a68042ea98f1808d2d288fe3 | 888e79392cb660be5799cc5bd25d76bcfa9e2e2c | /doctorus/doctorus/doctype/actividad/actividad.py | eee8389df8919f860cdc420df5fd9dbd3524f95f | [
"MIT"
] | permissive | Nirchains/doctorus | 269eadee5754612c521d1c6193d5fe7bbfdb3b8a | 38d39270742dfdae6597a06713952df01a2c3e9d | refs/heads/master | 2020-03-17T07:09:30.046005 | 2019-05-08T06:51:50 | 2019-05-08T06:51:50 | 133,386,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, HISPALIS DIGITAL and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Actividad(Document):
def validate(self):
pass
def on_submit(self):
validate_... | [
"nirchains@gmail.com"
] | nirchains@gmail.com |
ea518cb07b2ff4574c1d97e42179ea4970eddb78 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/reports_beta/azext_reports_beta/generated/_help.py | 884a89739caaf6c46be6e844a298a6731039e84c | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 61,930 | py | # --------------------------------------------------------------------------
# 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 cause... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
2717eda646b498b47de156b64448a2edde9c8e84 | adce0de4c11887519b8e471f1cbca4e18b46d906 | /h0rton/tdlmc_utils/__init__.py | 8bb4883f2bc5cbe39977a9e7fde986993408766b | [
"MIT"
] | permissive | jiwoncpark/h0rton | 30ca4a3c9943099ecd393e4b936b48cad7d81943 | 2541885d70d090fdb777339cfb77a3a9f3e7996d | refs/heads/master | 2021-06-25T23:08:26.902632 | 2021-01-12T01:57:47 | 2021-01-12T01:57:47 | 199,093,811 | 7 | 1 | null | 2020-03-19T16:02:01 | 2019-07-26T23:56:49 | Jupyter Notebook | UTF-8 | Python | false | false | 86 | py | from .tdlmc_parser import *
from .reorder_images import *
from .tdlmc_metrics import * | [
"jiwon.christine.park@gmail.com"
] | jiwon.christine.park@gmail.com |
9f417eb14d8abcbced54fe8f9fe566e3e40b832b | a7d1030cb797b862b87ee3e8b8a206814d26eee2 | /mp32wav | 4a3f91cf65190620fa86b58032fd439474bf2f5e | [] | no_license | lmanul/sak | 8bdf98d2e463f3e171aa79b82557cd4d6ade2724 | 37604f1d0dc61373bd24d73d742afe9c754e62a3 | refs/heads/master | 2023-08-30T07:51:04.727676 | 2023-08-27T06:09:46 | 2023-08-27T06:09:46 | 144,207,029 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | #!/usr/bin/python3
import os
import sys
mp3 = sys.argv[1]
wav = mp3.replace("mp3", "wav")
wav = wav.replace("MP3", "wav")
os.system("ffmpeg -i " + mp3 + " " + wav)
| [
"m@ma.nu"
] | m@ma.nu | |
46cf4fbeb1bcfa982b10cd663c29fdddcee01b4c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2921/58586/259025.py | 986b891f3ca8d9ab2517f01c7e63aa7d53fae1c9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | [n,m,d]=list(map(int,input().split(" ")))
arr=[]
for i in range(n):
temp=list(map(int,input().split(" ")))
for j in range(m):
arr.append(temp[j])
arr.sort()
start=arr[0]
flag=False
final={}
index=0
for i in range(1,len(arr)):
if arr[i]!=start:
if (arr[i]-start)%d:
flag=True
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c90e8ed2cdc4ea72c332363db1794fa3f0f34920 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class2485.py | 6b13a2466853ebc3044175c1edfaec9ec5c78dc7 | [
"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 | 4,244 | py | # qubit number=4
# total number=43
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
37c32bed552b8bc0037a4d7c3e13c1478324fb9a | a89b9dbcd0af4a98303651e73bdcc100bd7bf8f2 | /lib/node.py | fd373f513300941bfa8ca89dc179e7ab4be52ec6 | [] | no_license | freeman1981/algorithms | f5b9065db7ea5ede108a70ad9276630b329a6cbf | 312d1253c2bf0a53bc346abee9b51369037f93a6 | refs/heads/master | 2021-09-04T16:03:57.791928 | 2018-01-20T05:13:14 | 2018-01-20T05:13:14 | 115,587,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | class Node:
def __init__(self, init_data):
self._data = init_data
self._next = None
def get_data(self):
return self._data
def get_next(self):
return self._next
def set_data(self, new_data):
self._data = new_data
def set_next(self, new_next):
self._... | [
"a"
] | a |
e184ae7009848ce2548c4df955b05fda154381b6 | 375e5bca82843647941068bd7634cf7adf2015ca | /tests/test_sequences_reservoir.py | 381cd3d7128ebc9be2b68e3abab2b2c2ada57282 | [
"MIT"
] | permissive | civodlu/trw | cd57e7bded7fdb0a9d623ed9cd50645fab96583b | 11c59dea0072d940b036166be22b392bb9e3b066 | refs/heads/master | 2023-02-08T09:56:39.203340 | 2023-02-07T14:22:16 | 2023-02-07T14:22:16 | 195,147,670 | 12 | 2 | MIT | 2020-10-19T15:24:11 | 2019-07-04T01:19:31 | Python | UTF-8 | Python | false | false | 18,334 | py | from unittest import TestCase
import trw
import trw.train
import numpy as np
import time
import collections
import torch
import functools
import trw.utils
def function_to_run(batch):
return batch
def function_to_run_id(batch):
return batch
def function_to_run_id_wait(batch, wait_time: float, text=None):
... | [
"civodlu@gmail.com"
] | civodlu@gmail.com |
fcb2f6c40dbb8ed628205a4f54ebdeb0aac571fa | 6444622ad4a150993955a0c8fe260bae1af7f8ce | /djangoenv/lib/python2.7/site-packages/django/contrib/postgres/forms/ranges.py | 0498f42c1330eb6418f119272348fadab2465108 | [] | no_license | jeremyrich/Lesson_RestAPI_jeremy | ca965ef017c53f919c0bf97a4a23841818e246f9 | a44263e45b1cc1ba812059f6984c0f5be25cd234 | refs/heads/master | 2020-04-25T23:13:47.237188 | 2019-03-22T09:26:58 | 2019-03-22T09:26:58 | 173,138,073 | 0 | 0 | null | 2019-03-22T09:26:59 | 2019-02-28T15:34:19 | Python | UTF-8 | Python | false | false | 3,070 | py | from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange
from django import forms
from django.core import exceptions
from django.forms.widgets import MultiWidget
from django.utils.translation import ugettext_lazy as _
__all__ = [
"IntegerRangeField",
"FloatRangeField",
"DateTimeRangeField",
... | [
"jeremyrich@free.fr"
] | jeremyrich@free.fr |
55dd996f52ef086c06fc9b23667bc1055a5ef042 | 4943280542b35028ec84d5aca3b24dd3e1bd1794 | /pm_readwrite1.py | 13903bf9bd7ee3ad8c66c62afe7b22e263385436 | [] | no_license | Botany-Downs-Secondary-College/password_manager-sam-hurd | e3db67508dc0b605483e49ebf6ca14c7504794b3 | 2ff0a2efb04f76c92675fb2320278ba91bd74bad | refs/heads/main | 2023-03-30T04:59:51.852270 | 2021-03-25T01:41:55 | 2021-03-25T01:41:55 | 341,007,543 | 0 | 1 | null | 2021-02-21T21:26:12 | 2021-02-21T21:26:07 | null | UTF-8 | Python | false | false | 3,771 | py | #password_manager.py
#store and display passwords for users
#Sam Hurd, Feb 22
i = 1
user_list = ["bdsc", "pass1234"]
login_list = []
with open("members.txt") as fa:
lines = fa.readlines()
for line in lines:
members = line.split()
for member in members:
user_list.ap... | [
"noreply@github.com"
] | Botany-Downs-Secondary-College.noreply@github.com |
11f5f77e6c949ed37e981d5c17ca0838d81e0991 | b84d5fe69232139ecf7282af72b2f3f802128f8b | /dev_nbs/course/lesson4-collab.py | 4cca2b9046bc206e971b43a85b1f7d32ab0f5612 | [
"Apache-2.0"
] | permissive | huangyingw/fastai_fastai | f8ba2e0a83c7b017dd797400aa5677b17590052e | 68ff76a21b2f70f44fb91885abcb73c1c213ec1a | refs/heads/master | 2023-08-30T09:14:38.268415 | 2020-10-17T23:54:20 | 2020-10-17T23:54:20 | 289,820,769 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# split_at_heading: true
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.6.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
fr... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
2f3c95e5e141f6523213f3eb08049afb0594cd36 | 88726f0d487a0d9f1c568722f458d5cc8ad40566 | /panasonic2020/C.py | 1dc61efb636939e18fdd56451751aa9713f8deb7 | [] | no_license | thortoyo/study | 60e3cccbf7b6587044ca3ee5c4cdb07f038a5800 | 7c20f7208703acf81125aca49de580982391ecfe | refs/heads/master | 2023-06-21T21:56:47.141439 | 2023-06-20T02:38:47 | 2023-06-20T02:38:47 | 196,919,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import math
a,b,c=map(int,input().split())
#if ((a + b + (2 * math.sqrt(a*b))) < c):
# print("Yes")
#else:
# print("No")
if (((c-a-b) >= 0) and (4*a*b < ((c-a-b)*(c-a-b)) )):
print("Yes")
else:
print("No")
| [
"thor.toyo@gmail.com"
] | thor.toyo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.