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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4820edc7e76561ec54b8f59602904b85f5792be0 | a31c42e99785fca5793f08be8b9f312f75b01973 | /test/util_fixtures.py | a05b608a34de787645ddc0e85464fdf60f2ae32a | [
"MIT"
] | permissive | gxpjzbg/machin | 6389beb50fad096d740f8f15031073289b9925c7 | d10727b52d981c898e31cdd20b48a3d972612bb6 | refs/heads/master | 2023-05-03T21:51:56.631559 | 2021-05-21T20:42:10 | 2021-05-21T20:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | import torch as t
import pytest
from test.data.archive import Archive
from test.data.all import generate_all, get_all
@pytest.fixture()
def gpu(pytestconfig):
dev = pytestconfig.getoption("gpu_device")
if dev is not None and dev.startswith("cuda"):
return dev
pytest.skip(f"Requiring GPU but provid... | [
"hanhanmumuqq@163.com"
] | hanhanmumuqq@163.com |
1da31dae5b70c2f8a4ecb8853fee254dbf41d97b | 8adec48dfaee1cdfd6c7f4d2fb3038aa1c17bda6 | /WProf/build/masters/master.chromium.memory/master_gatekeeper_cfg.py | 539c07011afd193f9392d64309ec408591fb8b82 | [] | no_license | kusoof/wprof | ef507cfa92b3fd0f664d0eefef7fc7d6cd69481e | 8511e9d4339d3d6fad5e14ad7fff73dfbd96beb8 | refs/heads/master | 2021-01-11T00:52:51.152225 | 2016-12-10T23:51:14 | 2016-12-10T23:51:14 | 70,486,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from master import gatekeeper
from master import master_utils
# This is the list of the builder categories and the corresponding critical
# steps. If on... | [
"kusoof@kookaburra.(none)"
] | kusoof@kookaburra.(none) |
3de9065870753636844318616c7686d4aad6f0da | 0b358a0d64eb03655c030b36c0ae87880b153951 | /mmdet/models/detectors/maskformer.py | f7257d2547d1644fe9f677f8883223e1b992288c | [] | permissive | jshilong/DDQ | db05ff309d63316c62faa59b28c66d65eef973d1 | de9331e4579aaafab4d69e3a9a3c6638efc5392c | refs/heads/main | 2023-06-03T15:02:09.949907 | 2023-05-24T03:32:12 | 2023-05-24T03:32:12 | 498,974,099 | 199 | 6 | Apache-2.0 | 2022-06-02T05:01:53 | 2022-06-02T03:10:25 | null | UTF-8 | Python | false | false | 7,585 | py | # Copyright (c) OpenMMLab. All rights reserved.
import mmcv
import numpy as np
from mmdet.core import INSTANCE_OFFSET
from mmdet.core.visualization import imshow_det_bboxes
from ..builder import DETECTORS, build_backbone, build_head, build_neck
from .single_stage import SingleStageDetector
@DETECTORS.register_module... | [
"2392587229zsl@gmail.com"
] | 2392587229zsl@gmail.com |
356ad1ce285bcd5f67cdc1a4b41cdc2877e0f680 | 54857571461a579bed30cee27871aaa5fe396bcc | /nltk-0.9.7/src/nltk/wordnet/browse.py | 642456d6a2fad207fc1a725391e1ab038bfe1a19 | [] | no_license | ahmedBazaz/affective-text-classification | 78375182e800b39e0e309e8b469e273c0d9590f0 | 719e9b26e60863c620662564fb9cfeafc004777f | refs/heads/master | 2021-01-10T14:50:01.100274 | 2009-01-09T03:59:01 | 2009-01-09T03:59:01 | 48,296,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,094 | py | # Natural Language Toolkit: Wordnet Interface: Wordnet Text Mode Browser
#
# Copyright (C) 2001-2008 NLTK Project
# Author: Steven Bird <sb@csse.unimelb.edu.au>
# Jussi Salmela <jtsalmela@users.sourceforge.net> (modifications)
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
"""Natural ... | [
"tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883"
] | tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883 |
e088689ba503de3fb63bb4e6d818c3b31043f29f | 716501ff054d10f095879f986d74882778fa72c5 | /tests/plugins/test_openrectv.py | 6ad67ba62479db94f42434c339a3b6175a88477f | [
"BSD-2-Clause"
] | permissive | TheDrHax/streamlink | 017fdfd999277089a0c89a209ba4f64df9e54916 | 4dfd0d516fd8484438389518985e3b5131b7a253 | refs/heads/master | 2021-10-26T17:43:50.402219 | 2020-10-11T22:43:53 | 2021-10-25T19:10:01 | 223,461,822 | 4 | 0 | BSD-2-Clause | 2019-11-22T18:25:47 | 2019-11-22T18:25:46 | null | UTF-8 | Python | false | false | 382 | py | from streamlink.plugins.openrectv import OPENRECtv
from tests.plugins import PluginCanHandleUrl
class TestPluginCanHandleUrlOPENRECtv(PluginCanHandleUrl):
__plugin__ = OPENRECtv
should_match = [
'https://www.openrec.tv/live/DXRLAPSGTpx',
'https://www.openrec.tv/movie/JsDw3rAV2Rj',
]
... | [
"gravyboat@users.noreply.github.com"
] | gravyboat@users.noreply.github.com |
e894a72950212d1db457da5dc7166e1c722016aa | 7f1e0158e70b69bfa353661bfb2eabda9ee5c56c | /tests/models/validators/v2_2_1/jsd_b3f79d3b45b98849d9180cc08018e.py | 92b7d3e181ba8446b8fba1d18d39842a7b3e03b1 | [
"MIT"
] | permissive | Jerbuck/dnacentersdk | 97fb11844410ec7ab49aec35a30979d6288a87fd | ef2adde6113e7a6acd28a287007eb470fa39d31f | refs/heads/master | 2023-07-31T13:43:01.108243 | 2021-09-14T17:41:19 | 2021-09-14T17:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,857 | py | # -*- coding: utf-8 -*-
"""Cisco DNA Center getTopologyDetails data model.
Copyright (c) 2019-2021 Cisco Systems.
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 wi... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
a87fd0a0d8ad9b8e45fb3ca27a5dd677c294d57c | fc5a4e7c181dc4371ee1ac3b5b077901ca91f889 | /src/python/WMCore/WMBS/MySQL/Jobs/AutoIncrementCheck.py | 0ab3a3d0ad3b761194f40c77fbd9380329f6efcb | [
"Apache-2.0"
] | permissive | vkuznet/WMCore | 4900a6320c52210aeaaafea90f1be1ef7bc932a6 | de110ccf6fc63ef5589b4e871ef4d51d5bce7a25 | refs/heads/master | 2023-09-01T12:19:26.134554 | 2023-08-24T09:50:59 | 2023-08-24T09:50:59 | 19,494,576 | 0 | 0 | Apache-2.0 | 2022-02-24T18:36:38 | 2014-05-06T13:08:55 | Python | UTF-8 | Python | false | false | 1,389 | py | #!/usr/bin/env python
"""
_AutoIncrementCheck_
AutoIncrement Check
Test to properly set the autoIncrement value
First, find the highest jobID either in wmbs_job or in wmbs_highest_job
Then reset AUTO_INCREMENT to point to that.
"""
__all__ = []
import logging
from WMCore.Database.DBFormatter import DBFormatter
cl... | [
"sfoulkes@4525493e-7705-40b1-a816-d608a930855b"
] | sfoulkes@4525493e-7705-40b1-a816-d608a930855b |
2636c033740d569cbff6da29f52c020bb929bcde | 89e6c3548fbdd06178aae712de1ff19004bc2faa | /my_django/contrib/gis/geos/linestring.py | 8b47fd894a494599e4513cb0eb13d014bf2dd4b1 | [
"BSD-3-Clause"
] | permissive | bhgv/ublog_git.hg.repo-django.python-engine | a3f3cdcbacc95ec98f022f9719d3b300dd6541d4 | 74cdae100bff5e8ab8fb9c3e8ba95623333c2d43 | refs/heads/master | 2020-03-23T01:04:07.431749 | 2018-07-25T12:59:21 | 2018-07-25T12:59:21 | 140,899,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,586 | py | from my_django.contrib.gis.geos.base import numpy
from my_django.contrib.gis.geos.coordseq import GEOSCoordSeq
from my_django.contrib.gis.geos.error import GEOSException
from my_django.contrib.gis.geos.geometry import GEOSGeometry
from my_django.contrib.gis.geos.point import Point
from my_django.contrib.gis.geos import... | [
"bhgv.empire@gmail.com"
] | bhgv.empire@gmail.com |
6aa80f8c9a0e453c816ad6e61647dafa2f89fa01 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fizz_20200607124830.py | 7edd28cb237df1a2b42f86950f78fd2d8353787b | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | def fizz(num):
newNumber = []
for i in range(1,num+1):
newNumber.append(i)
for j in range(len(newNumber)):
if newNumber[j] % 3== 0:
newNumber[j] = "Fizz"
elif newNumber[j] % 5 == 0:
newNumber[j] = "Buzz"
elif newNumber[j] % 3 == 0 and newNumber[... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
4ede3d6430189f396047e99b23d6ba39496b371d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2499/60703/279909.py | dd36db8a37d5cb6d0821368c58f16d876f7ab06e | [] | 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 | 651 | py | N = int(input())
Add = []
Query = []
Del = []
for i in range(N):
l = input()
this = l.split(" ")
if(this[0]=="Add"):
# a,b,c = [int(x) for x in this[1:]]
if("" in this):
this.remove("")
a,b,c = int(this[1]),int(this[2]),int(this[3])
# print(this)
Add.append... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
137335f8efa4bf152af0ece0543a2bfab5a63393 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/program/util/ProgramMergeFilter.pyi | c81161bd1644ebe54e013458a0123d7441223c37 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,605 | pyi | from typing import List
import java.lang
class ProgramMergeFilter(object):
"""
The ProgramMergeFilter is used to specify which portions of a
program should be merged into another program.
It indicates the types of program differences to merge.
Each merge type can have its filter set to IGNORE o... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
f9b4481ce7cba346054da5a19c7cec8344893e57 | d65128e38be0243f279e0d72ef85e7d3c5e116ca | /base/site-packages/emailconfirmation/views.py | e4548f68cf3bb4d499e6cde4de68b8f830c0fcc6 | [
"Apache-2.0"
] | permissive | ZxwZero/fastor | 19bfc568f9a68f1447c2e049428330ade02d451d | dd9e299e250362802032d1984801bed249e36d8d | refs/heads/master | 2021-06-26T06:40:38.555211 | 2021-06-09T02:05:38 | 2021-06-09T02:05:38 | 229,753,500 | 1 | 1 | Apache-2.0 | 2019-12-23T12:59:25 | 2019-12-23T12:59:24 | null | UTF-8 | Python | false | false | 480 | py | from django.shortcuts import render_to_response
from django.template import RequestContext
from emailconfirmation.models import EmailConfirmation
def confirm_email(request, confirmation_key):
confirmation_key = confirmation_key.lower()
email_address = EmailConfirmation.objects.confirm_email(confirmation_key)
... | [
"edisonlz@163.com"
] | edisonlz@163.com |
207abfd88b3fe639f0c4efd6eaa871947eb0e48f | 80301f1cffc5afce13256e2ecab6323c5df00194 | /cn.fc/py/E0310.py | 681b9e8da36575a89da4e0f3be858238b6f5a6c3 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 1,860 | py | from ED6ScenarioHelper import *
def main():
CreateScenaFile(
FileName = 'E0310 ._SN',
MapName = 'event',
Location = 'E0310.x',
MapIndex = 1,
MapDefaultBGM = "ed60010",
Flags = 0,
EntryFunction... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
4d33ba9a57d398620a5cbce24178775f93987cfa | 183cc3bc7b067e30d02321f2f138b241ce619188 | /chess_engine/chess_db/utils.py | c135e1a8cf516b4a4d685f31b1e99eb7d24be524 | [
"Apache-2.0"
] | permissive | yashbonde/chessshhh | 147d880819b404e047035a22e668f0f4e25fb7a6 | 5ee67fc4583d56255bf902a7ad04c1a75822f5bc | refs/heads/master | 2020-11-26T15:44:13.272573 | 2020-01-16T06:35:36 | 2020-01-16T06:35:36 | 229,126,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | """this is the complete manager for all things DB
ideally this should be built and maintained using an ORM but
I tried that and it is becoming to much of a deviation and
pushing me away from actual delivery. So move to psycopg as a
quick hack.
"""
import os
import logging
import psycopg2
from psycopg2.extras import Re... | [
"bonde.yash97@gmail.com"
] | bonde.yash97@gmail.com |
3ff9f73a57e73ab8f0dfb813b98e9717d1b67e0e | 440c9752c30ea2514c2ccbe45cd0a336c4e111a1 | /ProblemSolving/450DSA/Python/src/dynamicprogramming/LongestCommonSubsequence.py | f9e9e32b3161cc768447c092fb23e3c85db274ae | [] | no_license | Snehal2605/Technical-Interview-Preparation | b6c6e578a42fcac5ac42c8ea7745637575e7ed2b | 0069669790f561bdcedbe5c2900d03ff7d3f218d | refs/heads/master | 2023-08-02T16:59:35.479401 | 2021-08-23T13:40:14 | 2021-08-23T13:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | """
@author Anirudh Sharma
Given two sequences, find the length of longest subsequence present in both of them.
Both the strings are of uppercase.
"""
def lcs(s1, s2):
# Special case
if s1 is None or len(s1) == 0 or s2 is None or len(s2) == 0:
return 0
# Lengths of the two strings
m, n = ... | [
"anirudh03sharma@gmail.com"
] | anirudh03sharma@gmail.com |
d05fd8d4ae335894e444ded3a511408fcf5451e2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_020/ch150_2020_04_13_19_54_04_068508.py | 84beed7fa00b8d84d1c859cd2bbe8918b6594b97 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import math
def calcula_pi(n):
x = 0
for i in range(1,n+1):
x = x + 6/(i**2)
pi = math.sqrt(x)
return pi | [
"you@example.com"
] | you@example.com |
75cb3830e90a4a415a1022620f15c477f7b22e9e | 76e7feaea74beb9d337885dcaa3ee59e26d9db70 | /keras/keras_kfold_manual.py | 5c03e7ca17648887e5a2d5afbf968b3afc8a765f | [] | no_license | sayantansatpati/dlf | 8f9bec134212a6608f2b6854c120253677c71959 | ce8b083f31cd1b4f67ea3718cbbad5cac1eff1f4 | refs/heads/master | 2021-01-11T15:47:02.118653 | 2017-11-14T21:04:19 | 2017-11-14T21:04:19 | 79,931,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | # MLP for Pima Indians Dataset with 10-fold cross validation
from keras.models import Sequential
from keras.layers import Dense
from sklearn.model_selection import StratifiedKFold
import numpy
# fix random seed for reproducibility
seed = 7
numpy.random.seed(seed)
# load pima indians dataset
dataset = numpy.loadtxt("pim... | [
"sayantan.satpati.sfbay@gmail.com"
] | sayantan.satpati.sfbay@gmail.com |
997a2d96680cfa0d778ef6ff12aff96093852a74 | 83e0a9cb729892aa19488ab847ad2e4486f96e6a | /app/views.py | d6933bf84b5b627a0d81dbe1b1b40ef8d00723df | [] | no_license | pankajgoyal69/flask | 9b4e792a1b9fbdde358a219acb5540e4592f7d0a | 1575509bc6af03bbdc956da7476e326805f6bd5c | refs/heads/master | 2020-03-28T11:10:54.689794 | 2016-08-24T13:44:44 | 2016-08-24T13:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from app import app
from flask import render_template, flash, redirect
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Abhi'} # fake user
posts = [ # fake array of posts
{
'author': {'nickname': 'Shashank'},
'body': 'We ha... | [
"abhimanyu98986@gmail.com"
] | abhimanyu98986@gmail.com |
88380fea2bb5e9a477ffa8c32b5d553febd17d86 | bc441bb06b8948288f110af63feda4e798f30225 | /notify_sdk/model/container/container_status_pb2.py | e92513e02b1134c5e2557d29431ff472f32e5192 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,860 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: container_status.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pro... | [
"service@easyops.cn"
] | service@easyops.cn |
a9b5aaf1308ecd2d78cce7be0f00ca0c4b19165b | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/eve/client/script/environment/effects/TriageMode.py | 26944f400e3839a82d486d9440c43bf374cd5410 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\environment\effects\TriageMode.py
from eve.client.script.environment.effects.GenericEffect import STOP_REASON_DEFAULT
from eve.client.script.environment.effects.sh... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
e39703acf951b97bafcb09db32ceb855cee4ba62 | a0994965785a4def2c194f6bf06a20b7dda3d11a | /test/test_framelist.py | 6bc7ed51a1ce3fd900aaf572583b4a9dab36f7f3 | [
"MIT"
] | permissive | waytai/kaa | 4285df542b9c1f3504f9ec7818c6b18c9892e739 | a9edc8d3db9a2d4b0035d03d8f67f3949559c4d2 | refs/heads/master | 2021-01-18T11:05:06.556564 | 2013-11-17T16:52:32 | 2013-11-17T16:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from contextlib import ExitStack
from unittest.mock import patch
import kaa
from kaa.ui.framelist import framelistmode
import kaa_testutils
class _frame:
def get_title(self):
return 'title'
@patch('kaa.app', new=kaa_testutils.DmyApp(), create=True)
class TestFrameList(kaa_testutils._TestDocBase):
de... | [
"ishimoto@gembook.org"
] | ishimoto@gembook.org |
c109d04f73c13ce27f78d32f230e129e5a2a4b2b | 4e62248cc376ac9740fe818b2555e127ed9082af | /recv_sekret_packet.py | 8eba1aa559c58ae474dcc928888fc31c50c0b43a | [] | no_license | tigerjibo/sekret_tunnel | 9b86a5d4809c8fd875be770b72a02f1fb783beed | 17145799aa089f64add1441ce58d8432435e3e17 | refs/heads/master | 2021-01-19T22:34:22.642808 | 2015-11-16T19:13:21 | 2015-11-16T19:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!/usr/bin/python3.4
# Waits for sekret packet
import socket
UDP_IP = '127.0.0.1'
UDP_PORT = [123, 80]
BUFFER_SIZE = 1024
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT[0]))
print("Connection address: " + str(addr) )
while True:
data, addr = sock.recvfrom(BUFFER_SIZE)
if n... | [
"admin@example.com"
] | admin@example.com |
b22ef565333696f7f36ae0eb5e95725b5235ddde | 5d2fe1cbbebec530f1500058525d7a92acd966ca | /algorithms/arrays/transition_point.py | 7d35b8569acd5a60c9abc32c832c831ed2645e59 | [] | no_license | bhaveshAn/pyalgos | 2a4ead675485f1abb2af673cd56b422e6d9dbd5c | 2dd9047ae1778981aae9f467fcdb2e922256beeb | refs/heads/master | 2020-03-30T12:52:46.337328 | 2019-03-23T20:48:54 | 2019-03-23T20:48:54 | 151,245,861 | 2 | 0 | null | 2018-10-27T15:17:04 | 2018-10-02T11:48:51 | Python | UTF-8 | Python | false | false | 403 | py | def transition_point(arr, n):
l = 0
r = n - 1
while l <= r:
mid = (l + r) // 2
if arr[mid] == 0:
l = mid + 1
elif arr[mid] == 1:
if arr[mid-1] == 0:
return mid
else:
r = mid - 1
return -1
arr = [0, 0, 0, 0, 0, 0, 0, 0,... | [
"bhaveshanand7@gmail.com"
] | bhaveshanand7@gmail.com |
845006d08ada53158dff1fc48ddf179170c5db3f | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200605191550.py | 27c8896fb841f01769a9e972b7d65281598db8df | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | def Strings(str):
values = {}
for i in str:
if str[i][0] ==
print(i.split(":"))
Strings(["A:1","B:3","C:3","A:4","B:2"])
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f324c16e7c5c9a81daf3743dd4b08b0cdb50959a | d5e787f85b37f966ccdf0cd5f7a7061eae1c70a8 | /src/transmittals/migrations/0027_auto_20160203_1004.py | 5e368c96ab145e5473d6cf72ea7fa3adec6fa021 | [
"MIT"
] | permissive | iBuilder-Tech/phase | 5ee6cd1fb410de0d067e7b5b8adfea3c4411b62c | cc8f9b9f3e2c31b139d5cce433667c8d5ba2c6f2 | refs/heads/main | 2023-07-10T18:24:20.291136 | 2021-08-31T13:22:17 | 2021-08-31T13:22:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('transmittals', '0026_transmittal_contract_number_new'),
]
operations = [
migrations.AlterIndexTogether(
name='transmittal',
index_together=set([('originator', 'recip... | [
"lp@providenz.fr"
] | lp@providenz.fr |
374f4daa45235f03092e797cbb4990294b12144e | 48fad811fa8afeda817233fd8bae3a08329fe01e | /src/rf_model.py | 9c1f0b2b8d9f71da043e4cba69b02ed8e7662f7a | [] | no_license | yanshaojie123/JuliaTaxi | c2423818bc3e24fe664e576a290d584ee5ed047c | 18adc70103a52cebf02fe0423c172f5585a12fce | refs/heads/master | 2021-06-15T08:34:11.752027 | 2017-02-16T05:00:37 | 2017-02-16T05:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | #-*- coding: utf-8 -*-
import numpy as np
from sklearn.ensemble import RandomForestRegressor
from data_input import get_train, get_test
ftrain, ftest = 'data/train.dat', 'data/test.dat'
X_train, y_train = get_train(ftrain)
print 'Data is ready ...'
#训练集比例
#scale = int(0.8 * len(X))
#X_train, X_test = X[:scale], ... | [
"1139217488@qq.com"
] | 1139217488@qq.com |
3ff6bbeedf9cc51530a695f48270b10787abe679 | 89e4c3dd91ceb3a4a5e74cfaedbb795152ebd1f9 | /lc856_stack.py | 3651a6895d55f13e12003ad9635ac82876e1356a | [] | no_license | Mela2014/lc_punch | a230af2c9d40b1af4932c800e72698de5b77d61a | 498308e6a065af444a1d5570341231e4c51dfa3f | refs/heads/main | 2023-07-13T03:44:56.963033 | 2021-08-25T05:44:40 | 2021-08-25T05:44:40 | 313,742,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | class Solution:
def scoreOfParentheses(self, s: str) -> int:
count_right, rslt = 0, 0
for i, c in enumerate(s):
if c == "(":
count_right += 1
else:
count_right -= 1
if s[i-1] == '(':
rslt += 2**count_right
... | [
"noreply@github.com"
] | Mela2014.noreply@github.com |
06d3bfc4c26bf02f23ca2ffcda5df1ed007c62e4 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /code/day17/demo02.py | e47e7a610f7609c3d4230b2fba96645f1a4bb045 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | """
函数式编程 语法
"""
def fun01():
print("fun01执行喽")
# 调用方法,执行方法体
re1 = fun01()
print(re1) #None
# 将函数赋值给变量
re2 = fun01
# 通过变量,调用函数
re2()
def fun02():
print("fun02执行喽")
# 将函数作为函数的参数进行传递
# 将一个函数的代码(fun02/fun01),注入到另外一个函数中(fun03).
def fun03(func):
print("fun03执行喽")
func()
fun03(fun01)
fun03(fun02)
... | [
"598467866@qq.com"
] | 598467866@qq.com |
f25191ba1160170bd5af78a26dc7096bc6da8330 | a1d38a6f514cb41fb59059e0907004489529ee74 | /hw4/code/planarH.py | 0e8a6df9c1ad5a408f479ab1879dffbafd48786c | [] | no_license | jiaqigeng/CMU-16720-Computer-Vision | ed842bdaac0df3a8d52431ae46ec5712e8d7c073 | a386baa6459ac0da9d4daad23dd965291cb72156 | refs/heads/main | 2023-08-18T14:12:17.644729 | 2021-10-15T19:57:24 | 2021-10-15T19:57:24 | 417,595,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | import numpy as np
import cv2
from BRIEF import briefLite, briefMatch, plotMatches
import matplotlib.pyplot as plt
def computeH(p1, p2):
"""
INPUTS:
p1 and p2 - Each are size (2 x N) matrices of corresponding (x, y)'
coordinates between two images
OUTPUTS:
H2to1 - a 3 x 3 m... | [
"jiaqig@umich.edu"
] | jiaqig@umich.edu |
fc12fdb31012dfead7791923b2e4968fb7e71626 | 6fd2bc0c49a7dfd5bacb9b83e7e70dbdadd06b5d | /venv/bin/rst2pseudoxml.py | 9a0dacce5ca0e7ea8a512c24fdf89b8c919aa8c9 | [] | no_license | LanLi2017/yw-text-mining | 85f8a1bdc879c9744426f3a7626905b6810a913d | f78dd8ff7e95a4b37fa6f0b1fd9a733df19a9011 | refs/heads/master | 2020-03-07T06:34:55.494792 | 2018-04-20T18:54:27 | 2018-04-20T18:54:27 | 127,326,584 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/Users/barbaralee/Downloads/text_tempo/venv/bin/python
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
try:
import... | [
"lilan.scut@gmail.com"
] | lilan.scut@gmail.com |
e76e2b812cf5dd4c5ba279d9149f795c44f7fb92 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_request.py | c225a7ac1644dcf5da50dea1638a47ac291ed539 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,206 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateBatchClustersTagsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
165adde0d99ddd1735c70d313cf3373cba4f6491 | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /docs/jnpr_healthbot_swagger/test/test_tsdb_results_results.py | 52d7c555a3c3706eaec567bd43fc3901e0f88b13 | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 947 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 3.1.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagg... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
1a673310c1c2d40b57833b7fe2c954217d1475b1 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/hvy_chainer-gan-improvements/chainer-gan-improvements-master/models.py | 73fd98b9a0765c144601f76bfd4813021a003e59 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,731 | py | import chainer
from functools import reduce
from chainer import Chain
from chainer import functions as F
from chainer import links as L
def lindim(dims, scale, n):
d = map(lambda x: x // scale, dims)
d = reduce(lambda x, y: x * y, d)
return d * n
def convdim(dims, scale, n):
return (n, dims[0] // sc... | [
"659338505@qq.com"
] | 659338505@qq.com |
4b3e6f2775b996f08a3037e74a91377b7232036c | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-QuickLookThumbnailing/PyObjCTest/test_qlthumbnailerrors.py | fabedd03a57cadba4bca452cd5f54f460ea054b9 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import sys
from PyObjCTools.TestSupport import *
if sys.maxsize > 2 ** 32:
import QuickLookThumbnailing
class TestQLThumbnailErrors(TestCase):
def test_constants(self):
self.assertEqual(QuickLookThumbnailing.QLThumbnailErrorGenerationFailed, 0)
self.assertEqual(QuickLookThumbna... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
b22642f1f7a159dafd93f1056cddcc1301f09729 | 9da8d60ba0c37a8f5d1f4a7ea8f33f7996b9f1bf | /73.Any_or_All.py | 5b4bbdc0c6c8acec9402064c28b664f058df799d | [] | no_license | save6/HackerRank | b7e764200e813453fe6037512652f1c1df1fdff3 | da7038b586399e599fdd9e96f7c3b599d928f6a7 | refs/heads/master | 2023-08-25T13:36:05.632435 | 2021-10-27T22:19:43 | 2021-10-27T22:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
palindromic = {1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99}
_ , nums = input(), list(map(int,input().split()))
if all((n > 0) for n in nums) and any([(n in palindromic) for n in nums]):
print("True")
else:
print("False")
| [
"save6green@gmail.com"
] | save6green@gmail.com |
55f466ea1c6faf37175c8c98394f9917363469bc | d4f05d51568bfda9fb964deba92d9fd599a3dcde | /desing_pattern/builder/director.py | 0d23b59834056b62d49a3cc9d6a50b0997c55591 | [] | no_license | Fullmoon8507/PythonPracticeProject | 44beba7ce783e5e22429516d39ee96adc1ead785 | 57454099ad67bfe4431ee997fada640fde6ccecc | refs/heads/master | 2020-04-16T23:29:58.907552 | 2017-05-06T07:27:35 | 2017-05-06T07:27:35 | 53,178,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | class Director():
def __init__(self, builder):
self.__builder = builder
def construct(self):
self.__builder.make_title('Greeting')
self.__builder.make_string('朝から昼にかけて')
string = ['おはようございます。', 'こんにちは。']
self.__builder.make_items(string)
self.__builder.make_stri... | [
"you@example.com"
] | you@example.com |
2c8d9db601c659e38f3092280b4a5b4c4df0d0a7 | adb683de2a0b799ad3bf14b1962d757631184d62 | /Data/Analyzer.py | f3db3de7dcc531a7387eaf38d27a62c11df12d82 | [] | no_license | psiddire/ZGamma | f2829c44bb11c36d9621ef5cd7bbdf1d610e7b84 | 0002c848946e910187cd41753ece04d2a136e174 | refs/heads/master | 2023-06-13T05:23:35.575395 | 2021-07-08T21:05:27 | 2021-07-08T21:05:27 | 384,248,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | import ROOT
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('input_path')
parser.add_argument('output_path')
args = parser.parse_args()
ROOT.ROOT.EnableImplicitMT()
f = ROOT.TFile(args.input_path)
t = f.Get("tree")
h_ll = ROOT.TH1F("h_ll", "ll_mass", 100, 50, 150)
h_llg = ROOT.TH1F("h_llg", "... | [
"psiddire@nd.edu"
] | psiddire@nd.edu |
12abb6333035c057d8dd69e0b7f68a5b9d5a11bd | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-petadata/aliyunsdkpetadata/request/v20160101/ReleaseInstancePublicConnectionRequest.py | eb09d8caf55b9a6f106d48d7e652a40e9d627e7d | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
59a2ff7c929e6556bf4e0586fa9ae392438dbb8c | 57d907a992eb445526c24930b6441de13d6aae0a | /1584 Min Cost to Connect All points.py | f20049ae01a71716daa9f659e02a9db955c8586a | [] | no_license | sunnyyeti/Leetcode-solutions | 9004505ed3d9d62561df3145e755c01e33d41bb2 | 34a78e06d493e61b21d4442747e9102abf9b319b | refs/heads/master | 2023-06-24T06:29:04.948997 | 2023-06-17T09:43:38 | 2023-06-17T09:43:38 | 166,708,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | # You are given an array points representing integer coordinates of some points on a 2D-plane, where points[i] = [xi, yi].
# The cost of connecting two points [xi, yi] and [xj, yj] is the manhattan distance between them: |xi - xj| + |yi - yj|, where |val| denotes the absolute value of val.
# Return the minimum cost t... | [
"H.Zhang2@shell.com"
] | H.Zhang2@shell.com |
366986b51dbf6b4df7e18b0dd018d1cac9c4503e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Mwh3zhKFu332qBhQa_5.py | 46547cd2f35bdf96a2b4f96bca66995203f248ad | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | """
**Mubashir** is trying to figure out the corresponding quadratic formula for
the following quadratic sequence of numbers:
N| Result
---|---
1| 90
2| 240
3| 450
4| 720
5| 1050
If you can figure this out, then help him by creating a function that takes a
number `n` and returns the **nth number o... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1a78d4bcd594477145a379d323148a9f879b060a | ea42dcad3172c2ea5546a79a74f8aa2edb342e83 | /pytorch_ssd/my_inference.py | c6edc02242f8d9e9006a5a184cef217840280eca | [
"MIT"
] | permissive | WuZifan/Detection_Models | 4781f11c420fa71aa54fa43c1b35494d9d2832ce | 6cfc52618ab084411786907b8272719721d90195 | refs/heads/master | 2021-02-07T22:07:26.175359 | 2020-03-01T07:22:27 | 2020-03-01T07:22:27 | 244,081,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | import torch
from vision.ssd.mobilenetv1_ssd import create_mobilenetv1_ssd, create_mobilenetv1_ssd_predictor
import numpy as np
import cv2
class PytorchSSD():
_defaults = {
"model_path": './models/mobilenet-v1-ssd-mp-0_675.pth', # 权重放置
"label_path": './models/voc-model-labels.txt', # class_names
... | [
"wuzifan0817@gmail.com"
] | wuzifan0817@gmail.com |
d7fab24a70624d86a72508d9becec6155cb68a35 | ef4238779e35114b27d584ae3ef46fab75f90aea | /doctorwho/migrations/0005_auto_20190816_1105.py | 01d36e78e991733f26ed44fdafc47dee9b4afd4b | [
"MIT"
] | permissive | muhindokiro/capstone | 44107aaab11fb4dde512d46b1312bbde34b28dce | 1ef04c5873ef4ef6a960c60ed9af838b8506a289 | refs/heads/master | 2022-11-30T10:42:24.364175 | 2019-08-16T09:02:59 | 2019-08-16T09:02:59 | 202,692,222 | 0 | 0 | null | 2022-11-22T04:11:42 | 2019-08-16T08:44:36 | Python | UTF-8 | Python | false | false | 460 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-08-16 08:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doctorwho', '0004_auto_20190816_1003'),
]
operations = [
migrations.AlterFiel... | [
"blaize1143@gmail.com"
] | blaize1143@gmail.com |
4410c9f0bd13caabd2a00c19a1181232cbb7ae65 | 196f7e3238f961fb5eba7a794f0b0c75d7c30ba1 | /爱心/yourlove文字心.py | fecf088b89748026a12c7dcb96a9cb76a6f5c8e7 | [] | no_license | Liaoyingjie/Pythonlearn | d0b1b95110017af7e063813660e52c61a6333575 | 8bca069f38a60719acac5aa39bd347f90ab0bfb1 | refs/heads/master | 2020-04-08T07:35:07.357487 | 2018-04-12T16:44:43 | 2018-04-12T16:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | print('\n'.join([''.join([('yourlove'[(x-y)%8]if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else' ')for x in range(-30,30)])for y in range(15,-15,-1)]))
| [
"godzoco@qq.com"
] | godzoco@qq.com |
5cdb2cabbe72a803abfce8fcf63de7e959c7b759 | 7a181ad3cf24ded5c9ad485801fe0cdd280c4367 | /spec/python/test_type_int_unary_op.py | b436cb5b669304b911a6ba61a4bae96a81045c6d | [] | no_license | tarm/kaitai_struct_tests | 6618116ebf972429099dc588bab73b2ac861e46c | c57fc4109fe48d594f06be464c3a41b00887c2db | refs/heads/master | 2021-01-19T09:15:34.447469 | 2017-04-24T03:41:35 | 2017-04-24T03:41:35 | 87,744,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import unittest
from type_int_unary_op import TypeIntUnaryOp
class TestTypeIntUnaryOp(unittest.TestCase):
def test_type_int_unary_op(self):
with TypeIntUnaryOp.from_file("src/fixed_struct.bin") as r:
self.assertEqual(r.value_s2, 0x4150)
self.assertEqual(r.value_s8, 0x4150ffff312d4... | [
"greycat@altlinux.org"
] | greycat@altlinux.org |
4e56118748db9fdd467fb20becfbf7aa44f2e19c | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/belligerent.py | 507a2d533a71abcdf6bff566493c0f11510e3101 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('belligerent', __name__, url_prefix='/belligerent')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_templat... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
2a12d1f4fd4a105f28771c32ac995c0c6a768db6 | d93159d0784fc489a5066d3ee592e6c9563b228b | /Configuration/Generator/python/H200ZZ4L_7TeV_cfi.py | 575eec3aaca6b69bf2905e7ce9eee71fa586fca4 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 3,520 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUESettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity = cms.untracked.int32(0),
filterEffic... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
db86b62d9f209e4db7e2f49cceb8d032e67085df | b799ff87e5d50cb1d2318949a3d6d445fd6fe53e | /app_launcher.py | a4423676635f116067c0f0e37c41acdff1906aba | [] | no_license | rcshadman/pyktrader2 | 267235fc99cd941b63af32536c61a3d50923102a | ac24cef56b941c8076d1ee4fd2546ad86952a9d5 | refs/heads/master | 2021-08-30T11:20:48.207539 | 2017-12-17T17:52:20 | 2017-12-17T17:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,238 | py | # -*- coding: utf-8 -*-
import agent
import saveagent
import datetime
import sys
import time
import logging
import mysqlaccess
import misc
import base
import json
from gui_agent import *
def get_option_map(underliers, expiries, strikes):
opt_map = {}
for under, expiry, ks in zip(underliers, expiries, strikes):... | [
"harvey_wwu@hotmail.com"
] | harvey_wwu@hotmail.com |
958967f366a99abf14009b08cdf9df3b3d41c161 | eac24fbc91fcd353c8996346972639f27bc3197c | /hotaru/hotaru_planner_node_blocks/scripts/hotaru_planner_node/algorithm/example_bezier.py | e05588b5f2124d167a8ebddf37261e90f909c08d | [
"BSD-3-Clause"
] | permissive | Forrest-Z/hotaru_planner | 3e05ae864d6dc6f46b5b23b3441a4de4dcbdd149 | 04070d58e72bd9d94c50c15ef3447ffdb40ce383 | refs/heads/master | 2023-01-10T01:43:29.113939 | 2020-10-01T14:22:11 | 2020-10-01T14:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | '''
Created on Sep 16, 2020
@author: kyberszittya
'''
import matplotlib.pyplot as plt
import numpy as np
from bezier import BezierCurve
def main():
bc = BezierCurve()
points = np.array(
[[0.0, 0.0],
[6.0, 4.0],
[7.0, -2.0],
[10.0, -5.0],
[9.0, -9.0]]
)... | [
"noreply@github.com"
] | Forrest-Z.noreply@github.com |
9aef765a578d20e22db90be9ad0ab1da0d1bf7ba | ddfca28d1c37815bc83608a62c249a8bb99f982a | /order/migrations/0001_initial.py | 15b0e2ded4875b4f011b10bf5745478d5a0b7fb5 | [] | no_license | suasue/ShockX | 6f26283c07577f4f22d53b7c0ac75b18282cb95e | b61d97e39b9624d23e724ab5215a407292c5d7d3 | refs/heads/main | 2023-04-28T04:57:38.240913 | 2021-05-11T08:28:18 | 2021-05-11T08:28:18 | 362,797,246 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | # Generated by Django 3.1.6 on 2021-03-11 14:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0001_initial'),
('product', '0001_initial'),
]
operations = [
migration... | [
"fergith@naver.com"
] | fergith@naver.com |
22ba8814d7abcf860089661cdda27dad207af8d8 | 8f81de504adaddaf6c45f0c2198a06ac1a796636 | /test/fx2trt/converters/acc_op/test_avgpool.py | 597b909760af97a6f41876d1963b2c94c27ddf10 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | seemethere/pytorch | ac64f1410142eed319cd2c3d0876bb5748916487 | b428096680b804dfd3336e80efb5d9e6661236c1 | refs/heads/master | 2023-03-18T04:19:35.604440 | 2022-01-11T20:01:12 | 2022-01-11T20:01:12 | 227,252,129 | 1 | 0 | NOASSERTION | 2019-12-11T01:47:36 | 2019-12-11T01:47:36 | null | UTF-8 | Python | false | false | 1,506 | py | # Owner(s): ["oncall: fx"]
import torch
import torch.fx.experimental.fx_acc.acc_ops as acc_ops
from parameterized import parameterized, param
from torch.testing._internal.common_fx2trt import AccTestCase
from torch.testing._internal.common_utils import run_tests
class TestAvgPoolConverter(AccTestCase):
@paramete... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
934998a4ce805894cfd4f9a5c1360d246c6b5376 | cba7444a9b6c7e3f9b557ff81c5ab03a2c8c6d8e | /dftimewolf/lib/preflights/ssh_multiplexer.py | ea898beb4a47d7f410e88e5651102b6ee1590f3e | [
"Apache-2.0"
] | permissive | log2timeline/dftimewolf | e364e0eb213b6a8bb3648598c62fd622cc509755 | bcea85b1ce7a0feb2aa28b5be4fc6ae124e8ca3c | refs/heads/main | 2023-08-24T09:49:25.971929 | 2023-08-17T12:30:07 | 2023-08-17T12:30:07 | 64,484,320 | 248 | 81 | Apache-2.0 | 2023-09-13T07:05:50 | 2016-07-29T13:54:45 | Python | UTF-8 | Python | false | false | 3,077 | py | """Opens an SSH connection to a server using ControlMaster directives."""
import subprocess
import uuid
from typing import Optional, List
from dftimewolf.lib import module
from dftimewolf.lib.modules import manager as modules_manager
from dftimewolf.lib.state import DFTimewolfState
class SSHMultiplexer(module.Pref... | [
"noreply@github.com"
] | log2timeline.noreply@github.com |
eaaf1c8ae6a78e2e68a10a1bb439f2efa670a969 | 071201dd246e451043af40c3a81160e20014a55b | /code/utils/dataset.py | 8fa953699b3bbc521bc013aeed3f2a6e52d83c0a | [] | no_license | XuHangkun/tianchi_channel_1 | 3e3941bb5f6436c52b46b45403ed105c0aa51d1a | 4fb32c7799f060042841a62f146ccfe731b98def | refs/heads/main | 2023-04-24T17:58:10.945395 | 2021-05-11T02:59:22 | 2021-05-11T02:59:22 | 354,222,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | # -*- coding: utf-8 -*-
"""
create a dataset from dataFrame
~~~~~~~~~~~~~~~~~~~~~~
:author: Xu Hangkun (许杭锟)
:copyright: © 2020 Xu Hangkun <xuhangkun@ihep.ac.cn>
:license: MIT, see LICENSE for more details.
"""
import pandas as pd
from torch.utils.data import Dataset
import numpy as np
import torc... | [
"xuhangkun@ihep.ac.cn"
] | xuhangkun@ihep.ac.cn |
2371fc8c067be676730d2949fa474a8b56b76748 | 63394b8b324314439ce0c020e1f652d3bdbca794 | /backend/restaurant/migrations/0001_initial.py | 5173565f00d291cb70c4348a12552dd8c00b7a12 | [
"MIT"
] | permissive | TBD-Team/WellCOME-Food | 367f0c0ae1a90fd76433b6fcef82fbaf45f856e5 | 1cebb373ac142f847039eea0091e4e0a87f93eb2 | refs/heads/main | 2023-05-08T12:11:24.993256 | 2021-06-02T23:05:35 | 2021-06-02T23:05:35 | 372,662,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | # Generated by Django 3.2.3 on 2021-06-02 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Meal',
fields=[
('id', models.BigAutoField(... | [
"fvcneto.master98@gmail.com"
] | fvcneto.master98@gmail.com |
def96c91f84677ba838dc3e35922a5248bd3b68e | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/notifications/client/bountyNotificationAdapter.py | fdbf24f2e02799c5518837fcb1406cb5f3d0c691 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\notifications\client\bountyNotificationAdapter.py
class BountyNotificationAdapter(object):
__notifyevents__ = ['OnBountyAddedToPayout']
def __init__(self, lo... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
0b9daec1251e3786028831bbd5b8c15f3508df08 | 616cc6c05f525dd2cb67916601f6ecd2c8242f24 | /example/object_abstraction.py | fc8ee859f02d48dd1c4c7bb1857d72d5127f91d3 | [] | no_license | cookieli/cs61a_li | 6f1d51aad7cd32fb27f64c855b3803bd2f8d9aad | 6ee0df9c64842bde9e30a0484e661abf04212358 | refs/heads/master | 2020-04-07T14:32:38.337554 | 2018-03-07T10:18:03 | 2018-03-07T10:18:03 | 124,218,933 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | def make_adder(n):
def adder(k):
return n + k
return adder
class Adder(object):
def __init__(self, n):
self.n = n
def __call__(self, k):
return self.n + k
class Dynamo:
def __getattr__(self, key):
if key == 'color':
return 'PapayaWhip'
else:
... | [
"you@example.com"
] | you@example.com |
803c10077368d796211b38b26706aceb3bd6b077 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/common/dossiers2/ui/achievements.py | 6ab27f2e80cc23b2ca067b3a27757d8e7809ba8f | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,472 | py | # 2016.02.14 12:44:29 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/dossiers2/ui/achievements.py
import resource_helper
from debug_utils import LOG_CURRENT_EXCEPTION
BATTLE_HERO_TEXTS = {'warrior': '#achievements:warrior',
'invader': '#achievements:invader',
'sniper': '#achievements:sniper',
'defen... | [
"info@webium.sk"
] | info@webium.sk |
4ee247fde665852a08a5f282e9158ec63cb19de9 | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /examples/with_pyspark_emr/setup.py | 84c19c803342474296cc29e1c9670f2c1a1cd5d9 | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 307 | py | from setuptools import find_packages, setup
setup(
name="with_pyspark_emr",
packages=find_packages(exclude=["with_pyspark_emr_tests"]),
install_requires=[
"dagster",
"dagster-aws",
"dagster-pyspark",
],
extras_require={"dev": ["dagster-webserver", "pytest"]},
)
| [
"noreply@github.com"
] | dagster-io.noreply@github.com |
3fe0035050582f36f56a31a5a2f1b228970f994f | 9e8b11fb2e905cd7710bcd4ca441d48580e34fe6 | /hypergan/train_hooks/experimental/gradient_locally_stable_train_hook.py | 6ed7ab9fa5cfaf0ea9d11b8947bdcfa087e74a94 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | logbie/HyperGAN | ee6cdafdc17f40e30ce585d8ba46bb30758c7b67 | 07b0f070c05a56b9931638512b06e79e3d936c64 | refs/heads/master | 2022-06-04T12:15:04.350622 | 2020-04-29T17:14:36 | 2020-04-29T17:14:36 | 110,853,824 | 0 | 0 | MIT | 2020-04-29T17:14:37 | 2017-11-15T15:50:32 | Python | UTF-8 | Python | false | false | 1,298 | py | #From https://gist.github.com/EndingCredits/b5f35e84df10d46cfa716178d9c862a3
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import state... | [
"mikkel@255bits.com"
] | mikkel@255bits.com |
a8a298b7cc4eb3a8ceb62ca7b69bcd50feec4a18 | 1559ef4153ccc355e3d4992845ae813217ddac4c | /generate_elb_data_rs.py | 10c57bb7aec16fc2540063ec3e99f30bb4488e56 | [] | no_license | akx/elbowgrease | b61f20566a6a8d5712e2f407eff4b57c87f44796 | 5f87ee8da5f9071d86e73660e3351607607fdf68 | refs/heads/master | 2023-01-27T22:11:57.216908 | 2020-12-07T11:31:54 | 2020-12-07T11:31:54 | 319,106,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import json
# Via https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#access-log-entry-syntax
spec = """
proto
time
elb
client:port
target:port
request_processing_time
target_processing_time
response_processing_time
elb_status_code
target_status_code
received_bytes
sent_b... | [
"akx@iki.fi"
] | akx@iki.fi |
37603f5987498b4e4092ded98ecf168f10807b25 | 34ddb81af1be500841ba108775b63ff53afbb19e | /test/topology/wiregraph_tests.py | d1f919378ffc61eb7831f9816b183e185b5deabc | [
"MIT"
] | permissive | W3SS/dilapidator | 0f84ce1dc5b70a3b826934d81c08a853bf98c6b3 | 323595364b934ea5d9f979603c0f49da8640d41f | refs/heads/master | 2021-06-21T07:08:55.461605 | 2017-07-04T14:33:23 | 2017-07-04T14:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,476 | py | from dilap.geometry.vec3 import vec3
from dilap.geometry.quat import quat
import dilap.geometry.tools as gtl
import dilap.geometry.polymath as pym
import dilap.topology.wiregraph as pgr
import dilap.core.plotting as dtl
import matplotlib.pyplot as plt
import unittest,random,numpy
import pdb
#python3 -m unittest di... | [
"cogle@vt.edu"
] | cogle@vt.edu |
3de94ab45ce96c31ce827ed35df6f9186b372e52 | e44c1ac44a3cc912fbeaa0152b9294a03fd893ea | /pyTuplingUtils/utils.py | 44600c53f18682a3197cb28573f6ca84c0fd6a6c | [
"BSD-2-Clause"
] | permissive | umd-lhcb/pyTuplingUtils | ca03db1975f7f283caab1436ac1c5d85fad75d2a | 85f3ca90f01389f834af6de1044364843210c4c5 | refs/heads/master | 2023-03-10T00:12:40.922444 | 2023-03-03T23:31:09 | 2023-03-03T23:31:09 | 215,201,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | #!/usr/bin/env python3
#
# Author: Yipeng Sun
# License: BSD 2-clause
# Last Change: Wed Mar 30, 2022 at 12:47 PM -0400
import numpy as np
from .io import read_branches
# Find total number of events (unique events) out of total number of candidates.
def extract_uid(ntp, tree, run_branch='runNumber', event_branch='e... | [
"syp@umd.edu"
] | syp@umd.edu |
7c6e227a6218bb07e37801575684936eefa3ad62 | 14c032f1ce2685e8113da0cd29b5dd5bfb9cc478 | /src/tests/test_dict.py | cb90a674a085a2ce833c58e4f83c55f987556b33 | [
"MIT"
] | permissive | richardARPANET/persistent-dict | 6ec8459e968ae1e1dba32e5e8f10905eb621f434 | bee97fb8d725dd3af047bf76e5f2eda2eea695bb | refs/heads/master | 2021-05-26T07:47:40.541753 | 2020-10-13T13:34:44 | 2020-10-13T13:34:44 | 127,956,135 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,189 | py | import uuid
from hypothesis import given
from hypothesis import strategies as st
import pytest
import fakeredis
from persistentdict import RedisDict
DICT_CONTEXT_STRAT = (st.booleans() | st.datetimes() | st.text()
| st.integers() | st.dates() | st.times()
| st.timedeltas()... | [
"richard@richard.do"
] | richard@richard.do |
ad1efcfb5f395a11eb7029cf069c4a89781326ce | 1ee90596d52554cb4ef51883c79093897f5279a0 | /Sisteme/Systeme Update/Ingame Bank/Pack/locale/xx/ui/inventorywindow.py | 503f1cbd806475fd66a6942ee66fb43bcc0a540c | [] | no_license | Reizonr1/metin2-adv | bf7ecb26352b13641cd69b982a48a6b20061979a | 5c2c096015ef3971a2f1121b54e33358d973c694 | refs/heads/master | 2022-04-05T20:50:38.176241 | 2020-03-03T18:20:58 | 2020-03-03T18:20:58 | 233,462,795 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | Search:
## 600 - (width + ¿À¸¥ÂÊÀ¸·Î ºÎÅÍ ¶ç¿ì±â 24 px)
"x" : SCREEN_WIDTH - 176,
"y" : SCREEN_HEIGHT - 37 - 565,
"style" : ("movable", "float",),
"width" : 176,
"height" : 565,
Change "height" value with +20:
## 600 - (width + ¿À¸¥ÂÊÀ¸·Î ºÎÅÍ ¶ç¿ì±â 24 px)
"x" : SCREEN_WIDTH - 176,
"y" : SCREEN_HEIGHT - 37... | [
"59807064+Reizonr1@users.noreply.github.com"
] | 59807064+Reizonr1@users.noreply.github.com |
cc7339f1168ab2c72331647479e4a67e095c53d9 | d8e69e950d7f84b674868c801e0170f61a95aec7 | /ytmdl/utility.py | 1f7fc5f7a8e0bc870d1c4b673b2a19a0a3696323 | [
"MIT"
] | permissive | nanthu0123/ytmdl | ab50727cb1910632ef50c8b130e7f6be8f70e432 | 18ade43a450f964c7407649ac43229c978ee0b68 | refs/heads/master | 2022-04-15T00:26:58.437712 | 2020-04-12T11:13:06 | 2020-04-12T11:13:06 | 256,260,597 | 1 | 0 | MIT | 2020-04-16T15:49:41 | 2020-04-16T15:49:40 | null | UTF-8 | Python | false | false | 2,399 | py | """Some definitions to interact with the command line."""
import subprocess
from os import remove, path, popen
from ytmdl import defaults
from shutil import which
import ffmpeg
def exe(command):
"""Execute the command externally.
Written by Nishan Pantha.
"""
command = command.strip()
c = comman... | [
"deep.barman30@gmail.com"
] | deep.barman30@gmail.com |
bc969545fc35472150297ae552914b4964c464ba | 73c45163acf0b50f0a59cee471a36ff9576afee2 | /microblog.py | 0be63a20ea6497ccd7ef6899b3cbdfda9b987508 | [] | no_license | erfaenda/FlaskP | 7b8ec1413daba5a8f1c38eff2aec1767a6214365 | d56a47861a9e4b78d3af4ec58055eaddc046dcd1 | refs/heads/master | 2020-07-08T04:22:51.671076 | 2019-08-23T08:00:36 | 2019-08-23T08:00:36 | 203,563,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from app import app, db
from app.models import User, Posts
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'User': User, 'Post': Posts} | [
"regalko7@gmail.com"
] | regalko7@gmail.com |
74f9e4ff4f9389660517eae375f5391ee2f4d8a7 | 7c0166f59f7c3f7e21daed42013e002a895a3404 | /demo1.py | b7634e6668794a081776c08326817c16fff375dd | [] | no_license | ESIPFed/corpy_example | 1daad044bb74566ae9717e328406379e618564c1 | 96905283c7c3aed4adc8d90e0fa9ef80979e0f9c | refs/heads/master | 2020-03-23T13:52:34.860593 | 2019-01-31T22:29:10 | 2019-01-31T22:29:10 | 141,642,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | #!/usr/bin/env python
# Very basic example of retrieving existing information
# from COR (registered ontologies, organizations, terms).
if __name__ == "__main__":
from pprint import pprint
import swagger_client
configuration = swagger_client.Configuration()
# Note: no authenticated operations in this... | [
"carueda@mbari.org"
] | carueda@mbari.org |
bafd09593a3383c22ece5bd857b4b9b0976707f3 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/macho/dyld/DyldCacheImageTextInfo.pyi | c7b63a33c2f9069b14ac71eeed812c265fd50396 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | pyi | import ghidra.app.util.bin
import ghidra.program.model.data
import java.lang
class DyldCacheImageTextInfo(object, ghidra.app.util.bin.StructConverter):
"""
Represents a dyld_cache_image_text_info structure.
"""
ASCII: ghidra.program.model.data.DataType = char
BYTE: ghidra.program.model.data.DataT... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
b06120ede323cf3d63cbea50fdcdb63797cd167d | 70a960186af21ae6f7a8fcd4d13fde54892f1821 | /odds_and_ends/get_SUT_IP_through_iLO.py | 649ed33cf0f78f6d6bfaf0bda5097ee34ebfb0c4 | [] | no_license | apua/altair_mat | d6f31bacae62d4490d561c2f9ec07a745693e15e | 37dd580fd011aaae9ca52f99bb13757bab2df325 | refs/heads/master | 2021-04-29T05:49:01.561238 | 2015-08-21T09:40:50 | 2015-08-21T09:40:50 | 78,004,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import hpilo
ilo_ip = vSphere_iLO = '16.153.114.143'
ilo = hpilo.Ilo(ilo_ip)
sut_ip = ilo.get_embedded_health()['nic_information']['NIC Port 1']['ip_address']
print(sut_ip)
| [
"apua.juan@hp.com"
] | apua.juan@hp.com |
b177160705e3f927a90758852169afc90dbdb4a7 | 40da64b0b2369d4e7b2fb4404aee9d8b55f3875c | /polls/migrations/0001_initial.py | 8433947ce9de5a4a6b923fb5f0c29291d1db7b47 | [] | no_license | alex1the1great/Polls-App | 1ae2ee26b4ad865412c0f1064a1bd3510ddfe896 | 0797c76bca5aa3918ec5bcf5f198eb16c8172a47 | refs/heads/master | 2022-07-18T03:38:45.026786 | 2020-05-18T13:17:01 | 2020-05-18T13:17:01 | 264,945,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # Generated by Django 3.0.6 on 2020-05-14 06:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"asimshrestha608@gmail.com"
] | asimshrestha608@gmail.com |
140c8029b5804163703fcd1d266071485bbe6407 | 51f7752df6a6e2b4dcee7ea585bacf7b9cb5ea14 | /304. Range Sum Query 2D - Immutable.py | 9c8d75ecccaed855f25909050f78310ff6aa9017 | [
"MIT"
] | permissive | ten2net/Leetcode-solution | a9ba7235987c0fdd1860d88ae461a4ea1fb979e4 | 97e84daa2926a9cd2036e0dee36dfe5773114b15 | refs/heads/master | 2021-01-21T20:29:42.570931 | 2016-12-06T10:29:18 | 2016-12-06T10:29:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | class NumMatrix(object):
def __init__(self, matrix):
"""
initialize your data structure here.
:type matrix: List[List[int]]
"""
self.dp = [range(len(matrix[0])) for i in range(len(matrix))]
for i in range(len(matrix)):
for j in range(len(matrix[i])):
... | [
"982899917@qq.com"
] | 982899917@qq.com |
1018dd569e6b808afb8f20a75118d791ed4e2b11 | afdcb60d13b7516930bc361c7ffa1c4bc4b3fddf | /QANet/lib/data/evaluation/semseg_eval.py | 4f628d40d3c538e91684843180d9db5bdafd71fa | [
"MIT"
] | permissive | sll-ll/parsing-rcc | 7012c8f4b09c86b554b0c020d4a46329966a8e92 | 7a9a67120b706f0d386d3638f84e402ebdb05fc4 | refs/heads/main | 2023-05-24T02:07:33.892667 | 2021-06-07T13:20:15 | 2021-06-07T13:20:15 | 374,361,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,497 | py | import cv2
import numpy as np
import os
from tqdm import tqdm
import torch
from lib.data.structures.semantic_segmentation import convert_pano_to_semseg, convert_poly_to_semseg
from lib.utils.misc import logging_rank
class SemSegEvaluator:
"""
Evaluate semantic segmentation
"""
def __init__(self, da... | [
"you@example.com"
] | you@example.com |
1c9524af0279b17c8fac0068bc39504389be7d41 | 0e1245a588be591e7a5752cbe23774c172929f81 | /22.py | 7fbf4915b2f6e62772a1fb90669e79d68676a2b8 | [] | no_license | Phantom1911/leetcode | 9e41c82f712c596dc58589afb198acedd9351e6b | b9789aa7f7d5b99ff41f2791a292a0d0b57af67f | refs/heads/master | 2022-07-10T22:00:01.424841 | 2022-06-08T09:00:32 | 2022-06-08T09:00:32 | 207,652,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | class Solution:
def generateParenthesis(self, n: int) -> List[str]:
# valid string : you must open a parantheses before closing it
arr = []
generate(n, n, "", arr)
return arr
def generate(remopen, remclose, currstr, arr):
if remopen == 0 and remclose == 0:
arr.append(cu... | [
"aastik.koshta@flipkart.com"
] | aastik.koshta@flipkart.com |
0504a39bd3a53ce3fb37f9012f1f4a1ee8066d17 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D00A/STATACD00AUN.py | dd635c94e98bc6adaf457cc3c6cccc8173fce158 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 791 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD00AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 5},
{ID: 'RFF', MIN: 0, MAX: 5},
{ID: 'CUX'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
12262c97436aca1a39c2d16fcba4418c422a4ff1 | 9fa547b23ebd17f1508260fe571886e7da564f97 | /lab3_task/cloud_generator.py | 9aa4bec7bf85f005397b709b319eeb26fc7a52a2 | [] | no_license | serhiisad/sc_l3 | 2218292e1cd189729092ecb6106f89618eeda337 | 44ab35fb1ef33bfbd0af9efebb418fa0a9cee49e | refs/heads/master | 2020-03-19T05:32:12.024381 | 2018-06-03T21:36:44 | 2018-06-03T21:36:44 | 135,941,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from wordcloud import WordCloud
import matplotlib.pyplot as plt
class WordCloudCreator:
#some prescriptions
STOPWORDS = "english"
def create_cloud(word_string):
cloud = WordCloud(font_path="/fonts/Symbola.ttf",
stopwords=STOPWORDS,
background_... | [
"serhiisad.kpi@gmail.com"
] | serhiisad.kpi@gmail.com |
7808b35e64fd8cce3f6d620a7b484413efedb4a9 | 30cb8fc82cd61fef36e500f7aceaf6cf97c26af2 | /blogengine/blogengine/blogengine/settings.py | 26de304da08ed30bc4d1657aa548455f041f982c | [] | no_license | VladyslavHnatchenko/python_django_blog | c968754e5137ff22ff51e5728ae1741fc1220c45 | 5ab5394e0adcac0371609df11404e0bac7a83b7d | refs/heads/master | 2020-03-30T13:27:27.473440 | 2018-10-04T12:23:58 | 2018-10-04T12:23:58 | 151,273,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | """
Django settings for blogengine project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os... | [
"hnatchenko.vladyslav@gmail.com"
] | hnatchenko.vladyslav@gmail.com |
c66beb40cbc2a5bde1cc5a17bba6f3023a3a46c8 | e05f89b57ebb86edddafe87e1cf77afb3ad9a48b | /python/code/logging_examples/app_ini_logging.py | f2f00b3ca7c612f41046c80c651d899dfdd23bd3 | [] | no_license | sylvaus/presentations | 6c7736042576d0f66d88fa41111b87d29138ac32 | 43c1e33e4764dc609d49927f57354626f281fa9e | refs/heads/master | 2021-07-02T03:32:01.303038 | 2020-11-15T21:43:36 | 2020-11-15T21:43:36 | 187,127,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import logging
import logging.config
from logged_library import printer
def main():
logging.config.fileConfig("config.ini")
logger = logging.getLogger()
logger.debug("root_print")
printer.log_print_info("log_print")
printer_class = printer.Printer()
printer_class.log_class_print_warning("log_... | [
"pierreyves.breches74@gmail.com"
] | pierreyves.breches74@gmail.com |
21835f3224579fe2ff6b3757bff70f66dc684ee6 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/-57053121/PyQt5/QtCore/QXmlStreamAttributes.py | 46175e1c688007918b294c66a284da0c6e8e9ef9 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,417 | py | # encoding: utf-8
# module PyQt5.QtCore
# from C:\Users\Doly\Anaconda3\lib\site-packages\PyQt5\QtCore.pyd
# by generator 1.147
# no doc
# imports
import enum as __enum
import sip as __sip
class QXmlStreamAttributes(__sip.simplewrapper):
"""
QXmlStreamAttributes()
QXmlStreamAttributes(QXmlStreamAttributes... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
90feb22e8c06ee4501a11cf0116368b9dd46e382 | 000e3e3ed05b76c50ad5ed6ee82defb4e84528ce | /Week 5/Quizz 5/ProbabilityWithoutInput/Anharmonic Potential/Approx/matrix_square_anharmonic.py | fb365b070ab960764f7b31cc9d98707ef0ad31a2 | [] | no_license | mattborghi/StatisticalMechanicsComputing | 50eb0a7a5c216dbcab13c4cc43b752447eca424d | 38b8fa821f23e1a71862f581cb1c42c178a8ad4d | refs/heads/master | 2021-01-19T15:19:40.316686 | 2017-08-21T14:32:39 | 2017-08-21T14:32:39 | 100,960,052 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | import math, numpy
import matplotlib.pyplot as plt
#Anharmonic potential
def V(x,cubic,quartic):
return x ** 2.0 / 2.0 + cubic * x ** 3 + quartic * x ** 4
# Free off-diagonal density matrix
def rho_free(x, xp, beta):
return (math.exp(-(x - xp) ** 2 / (2.0 * beta)) /
math.sqrt(2.0 * math.pi * beta... | [
"borghi.matias@gmail.com"
] | borghi.matias@gmail.com |
08d5af84367be41f2bbf4b8649362fce919addc8 | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/torch/legacy/nn/SmoothL1Criterion.py | 8b84ef6d94b2278e8e4568b6f609acc2bafc7a61 | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 1,093 | py | import torch
from .Criterion import Criterion
class SmoothL1Criterion(Criterion):
def __init__(self, sizeAverage=True):
super(SmoothL1Criterion, self).__init__()
self.sizeAverage = sizeAverage
self.output_tensor = None
def updateOutput(self, input, target):
if self.output_ten... | [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
10737f8669e1c5b70375d5b52822908ff4f8d2d8 | 4e0ee2b68398a90b0986975f645350033a624558 | /tests/matrix_conv2d/test_matrix_conv2d_int32_3x3_stride1_concur_och16.py | e8a2724030fce34ffd99015257685748fc20d6a8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kindsenior/nngen | 697b80b32cf2b33e7f2c64e4d1a27eb2d739b30c | 301b19b35e50174d8abb1a757b061ae80cdfe612 | refs/heads/master | 2022-09-21T05:53:34.565461 | 2020-05-03T14:58:19 | 2020-05-03T14:58:19 | 269,007,213 | 0 | 0 | Apache-2.0 | 2020-06-03T06:26:43 | 2020-06-03T06:26:42 | null | UTF-8 | Python | false | false | 2,835 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))
import nngen as ng
import veriloggen
import matrix_conv2d
act_sh... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
ddb778476d3c9d579c8c1b78b74e7face47b21fc | 536bbba61e839d1c3299d1df28b4c630d3e0670a | /series-dataframe.py | 98ccb228bf36ce1f94929ba696222f06aa48a7b2 | [] | no_license | nearxu/pandas-exercise | 6af6a679fd49575c1fc3a29c31013b00f614fb49 | 1bd9d5e7ba7db4caac0df0ff7aca20873a29548b | refs/heads/master | 2020-04-05T07:50:37.984283 | 2018-11-09T10:45:11 | 2018-11-09T10:45:11 | 156,690,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import pandas as pd
import numpy as np
data = [1, 2, 3]
index = ['a', 'b', 'c']
s = pd.Series(data=data, index=index, name='sss')
# dataFrame
data = [[1, 2, 3],
[4, 5, 6]]
index = ['a', 'b']
columns = ['A', 'B', 'C']
df = pd.DataFrame(data=data, index=index, columns=columns)
tips = pd.read_csv('data/tips.c... | [
"2448895924@qq.com"
] | 2448895924@qq.com |
5e85f96660a91e8f43b08fca1f653db3bb7bf855 | 51f438e14dbd2ee48765abaa53364f519300face | /benchmarks/utils/backend.py | 12251151ba2ad2bc88de11429492556fbfb1f6eb | [
"MIT"
] | permissive | chainer/chainer-benchmark | af946ce8809df395378176c89c7de5686426ba97 | 8d0c8f5052b5e2a85ad522ff48899ffc9a2bfafb | refs/heads/master | 2021-04-09T11:50:13.829938 | 2018-08-30T08:49:48 | 2018-08-30T08:49:48 | 125,476,025 | 9 | 2 | MIT | 2019-03-20T11:06:11 | 2018-03-16T06:53:57 | Python | UTF-8 | Python | false | false | 6,592 | py | from functools import wraps
import inspect
import os
import warnings
import chainer
import cupy
import numpy
from benchmarks.utils.helper import _is_func
from benchmarks.utils.helper import parameterize
from benchmarks.utils.helper import sync
_backend_modes = [
# GPU (with use_cudnn == 'never')
'gpu',
... | [
"webmaster@kenichimaehashi.com"
] | webmaster@kenichimaehashi.com |
a733a83e1059e48a75f844145f9800e588e978bc | 079c14bcf35d886ec38834a428d8147bbf3d8dea | /Leetcode_30day_challenge/June_Challenge_2021/Day-15_Matchsticks_to_Square.py | cb70a51d1826c593653a9109f00409370c46601d | [] | no_license | yash-markad/Python-Competitive-Programming | 882666a17dfd93346ed5f75609e5d9e8ad36ac46 | 7fc5d32115bf80f7210f591a2de9a53adc297d98 | refs/heads/master | 2023-05-28T12:00:45.892633 | 2021-06-16T11:13:02 | 2021-06-16T11:13:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py |
class Solution:
def makesquare(self, matchsticks: List[int]) -> bool:
k = 4
sums = [0] * k
subsum = sum(matchsticks)/k
matchsticks.sort(reverse=True)
def solve(i):
if i == len(matchsticks):
return len(set(sums)) == 1
for j in ... | [
"noreply@github.com"
] | yash-markad.noreply@github.com |
ff2d7457b3eb03a65c96f149e9e98e8e0dc6e498 | 73de523bde0c9e8398c63a924b44aadc46d11202 | /test/test_event_events_extended.py | a368347b2cbcc2aad2c37dbc42689cc3f9fca78e | [
"MIT"
] | permissive | Feyd-Aran/isilon_sdk_python | 1c2fae306c1a95a99024dd13dc0fc3b120f9c1de | 24e85a5577d15ac3db06862d07d5a261658c67b7 | refs/heads/v8.0.0 | 2020-09-23T00:16:36.684270 | 2019-12-02T13:45:12 | 2019-12-02T13:45:12 | 225,351,700 | 0 | 0 | MIT | 2019-12-02T10:51:54 | 2019-12-02T10:51:53 | null | UTF-8 | Python | false | false | 928 | py | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 2
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_7_2
from isi... | [
"brandonfkrueger@gmail.com"
] | brandonfkrueger@gmail.com |
2ad26753b396688aab0f073a1e410eb122edde09 | ab0315bcded75c10c591076b22ed8ff664ee76af | /fig4/8mods_round4_0919/config_scf_8mods_data_freeze_190917_sub5_1_1.py | 34c4c928675525a52ac356f5291189bb55c948e2 | [] | no_license | mukamel-lab/BICCN-Mouse-MOp | 389f62492986a2ffe4278ed16f59fc17dc75b767 | 8058ab8ae827c6e019fff719903b0ba5b400931d | refs/heads/master | 2021-07-06T11:14:25.401628 | 2020-09-30T04:54:27 | 2020-09-30T04:54:27 | 189,758,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | #!/usr/bin/env python3
"""An example configuration file
"""
import sys
sys.path.insert(0, '/cndd/fangming/CEMBA/snmcseq_dev')
import os
import snmcseq_utils
# # Configs
name = 'mop_8mods_0915_k30_sub5-1-1'
outdir = '/cndd/fangming/CEMBA/data/MOp_all/results'
output_pcX_all = outdir + '/pcX_all_{}.npy'.format(name)
o... | [
"fmxie1993@gmail.com"
] | fmxie1993@gmail.com |
1b151df5996d4076f15414d795cfa3a84fb2f0fb | 245b0329360b18c32510a6d13b2650fd6ca752cc | /ch03/bollingerbands.py | a0d6b4d3938e530e8988966fc965b098f922b4f2 | [] | no_license | TanUkkii007/numpy-begginers-guide | 56c315d207f681bd4e6d70abeac82bfc0db2bad5 | 6d483bc8672947a06d4240c4379f00183da46d8b | refs/heads/master | 2021-01-17T08:08:07.113571 | 2016-06-29T16:45:59 | 2016-06-29T16:45:59 | 61,984,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | import numpy as np
import matplotlib.pyplot as plt
N = 5
weights = np.ones(N)/N
print("Weights", weights)
c = np.loadtxt('data.csv', delimiter=',', usecols=(6,), unpack=True)
sma = np.convolve(weights, c)[N-1:-N+1]
deviation = []
C = len(c)
for i in range(N-1, C):
if i + N < C:
dev = c[i:i+N]
else:
... | [
"yusuke.007.yasud@gmail.com"
] | yusuke.007.yasud@gmail.com |
d741f4dc2e31ea18208407ad1055cf75e11168f7 | b72dbc51279d3e59cb6410367b671f8a956314c1 | /leet_code/leet_221.py | 9b779dda89d3fccc750ce8919c485c685a4e267e | [] | no_license | ddobokki/coding-test-practice | 7b16d20403bb1714d97adfd1f47aa7d3ccd7ea4b | c88d981a1d43b986169f7884ff3ef1498e768fc8 | refs/heads/main | 2023-07-08T15:09:32.269059 | 2021-08-08T12:19:44 | 2021-08-08T12:19:44 | 344,116,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from typing import List
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
max_width = -1
for i in range(1, len(matrix)):
for j in range(1, len(matrix[0])):
if matrix[i][j] != '0':
matrix[i][j] = min(int(matrix[i - 1][j]), int(... | [
"44228269+ddobokki@users.noreply.github.com"
] | 44228269+ddobokki@users.noreply.github.com |
2edb1344e87bae4019dff4d49c122f342bec658b | a3eb732ead7e1d10a85a88e42dc639eb16a40265 | /instagram_api/response/delete_comment.py | 1efaa064594ea87f89a874f1ebaa931c0ca1f435 | [
"MIT"
] | permissive | carsam2021/instagram_api | 7654c0f485c22935cf478016e46e65acbeda9344 | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | refs/heads/master | 2023-03-16T14:06:27.515432 | 2020-10-17T04:39:19 | 2020-10-17T04:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from .mapper import ApiResponse, ApiResponseInterface
from .mapper.types import Timestamp, AnyType
__all__ = ['DeleteCommentResponse']
class DeleteCommentResponseInterface(ApiResponseInterface):
pass
class DeleteCommentResponse(ApiResponse, DeleteCommentResponseInterface):
pass
| [
"root@proscript.ru"
] | root@proscript.ru |
ef03a9fb1a196c9931d9f5f605aefff2c0fb7864 | 78166a623dce723406b6493990c1b23e0d6eec7b | /Sugar/Loss/LossLib/VGG_UNet.py | 663accc1b0233bf4b3b0aea7b2312be6d24b1d4e | [] | no_license | codybai/simple | c4f2cb1e6000d3932be825384d334b2ce0d42b7c | ca46fdf044f19ecbbb8f85d8a162c6777c6637b6 | refs/heads/master | 2020-03-28T00:05:27.281610 | 2018-09-04T16:31:22 | 2018-09-04T16:31:22 | 147,374,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | import torch.nn as nn
from Model.CreateModel import CreateModel
from Model.DIYLayer.VersaLayer import MinMaxNet
class VGG_UNet(nn.Module):
def __init__(self, model_str,cat_str):
super(VGG_UNet, self).__init__()
cm = CreateModel()
self.model = cm.Create(model_str)
if cat_str is n... | [
"codybai@163.com"
] | codybai@163.com |
7c836c73e3c1eb7c760cd77bfe4ae3a749e76df2 | a9c3db07c29a46baf4f88afe555564ed0d8dbf2e | /src/0827-expressive-words/expressive-words.py | 548f716bd6f863d15d4dc652abadcdc9118db5fd | [] | no_license | HLNN/leetcode | 86d2f5b390be9edfceadd55f68d94c78bc8b7644 | 35010d67341e6038ae4ddffb4beba4a9dba05d2a | refs/heads/master | 2023-03-13T16:44:58.901326 | 2023-03-03T00:01:05 | 2023-03-03T00:01:05 | 165,402,662 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | # Sometimes people repeat letters to represent extra feeling. For example:
#
#
# "hello" -> "heeellooo"
# "hi" -> "hiiii"
#
#
# In these strings like "heeellooo", we have groups of adjacent letters that are all the same: "h", "eee", "ll", "ooo".
#
# You are given a string s and an array of query strings words. A quer... | [
"Huangln555@gmail.com"
] | Huangln555@gmail.com |
4c9e4283d802d77111f761068b39009db366dda8 | 23130cd12e38dbce8db8102810edaad70b240ae2 | /lintcode/798.1.py | 66348a1ab074920bacbe1db1eb7a63304721b742 | [
"MIT"
] | permissive | kangli-bionic/algorithm | ee6687c82101088db20f10fb958b4e45e97d3d31 | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | refs/heads/master | 2023-01-05T09:29:33.204253 | 2020-10-25T17:29:38 | 2020-10-25T17:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | """
798. Backpack VII
https://www.lintcode.com/problem/backpack-vii/description
Input: n = 8, prices = [3,2], weights = [300,160], amounts = [1,6]
Output: 640
Explanation: Buy the second rice(price = 2) use all 8 money.
n = 8 ->capacity
prices -> weight
weights -> value
amount:
processed_prices
processed_weight
m:... | [
"hipaulshi@gmail.com"
] | hipaulshi@gmail.com |
d1000634f0376aae2fddf9af842c4fc073cf72ac | 609ba9de2e578ff39e77bf224a50487ad62665ae | /python/xrayspectrumanalyzer/ui/console/XrayLineReferenceManager.py | 8714cb9a3a2d093b36e74bd341995523da8881fe | [
"Apache-2.0"
] | permissive | drix00/xray_spectrum_analyzer | 2d016818abb000584e184fe792974d0a39390f30 | fec0aee90ec051f7f517b5c81bf7ec6972dec3c6 | refs/heads/master | 2021-01-11T10:49:15.051568 | 2020-04-30T00:23:49 | 2020-04-30T00:23:49 | 76,188,049 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | #!/usr/bin/env python
"""
.. py:currentmodule:: console.XrayLineReferenceManager
.. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca>
X-ray lines reference manager
"""
###############################################################################
# Copyright 2016 Hendrix Demers
#
# Licensed under the Apa... | [
"hendrix.demers@mail.mcgill.ca"
] | hendrix.demers@mail.mcgill.ca |
660b800c9c7be6eb7ec614be5dde3d4f787f725d | 2a318f4c8372c75224b2d79106ef52d8f4375e71 | /python/rangefill_clear.py | a3e3f0acf1250f30d650360c1680cdc1ca8e161f | [] | no_license | keyur32/graph-snippets | 0d4bacc66b5fb0bbfddb73695fa61a5538eaf038 | e416d3ad86abdb30449325c06758e8cc6d73c137 | refs/heads/master | 2021-01-23T05:29:59.155567 | 2017-06-01T02:11:23 | 2017-06-01T02:11:23 | 92,971,791 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import http.client
conn = http.client.HTTPSConnection("graph.microsoft.com")
payload = "{ }"
headers = { 'content-type': "application/json" }
conn.request("POST", "/v1.0/me/drive/items/%7Bid%7D/workbook/names(%3Cname%3E)/range/format/fill/clear", payload, headers)
res = conn.getresponse()
data = res.read()
print(... | [
"keyur32@hotmail.com"
] | keyur32@hotmail.com |
481998ada0c0ef78bbb4fa26730d9d10a3132ab9 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /work_early_eye_for_world/company/high_point/early_case_or_point/big_child_or_child.py | 92fde1477cfca10617fa6235b3dfd29ff53f3e8b | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py |
#! /usr/bin/env python
def big_year_and_other_place(str_arg):
part_or_fact(str_arg)
print('seem_point')
def part_or_fact(str_arg):
print(str_arg)
if __name__ == '__main__':
big_year_and_other_place('leave_man_on_few_day')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
58bcc20be0f3fa734329115202469d831c484347 | 87b7d7948aa51fdb4a27540240579788896369ea | /test/my_runs2/_sources/test 3_4e1e58686d7fae53f92701c4afae5f26.py | 41d0749e54f7f14992937b0f9a9ee928f0ba2dd9 | [] | no_license | Samuel-Levesque/Projet_GLO7030 | 6f13accd63b52107ec3e3a0b9b5f52edccda7c8d | 557bce3235f09723900f65c6e3b44a0ed9d2b519 | refs/heads/master | 2022-01-16T12:49:22.884798 | 2019-05-05T18:38:35 | 2019-05-05T18:38:35 | 177,038,991 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | from numpy.random import permutation
from sklearn import svm, datasets
from sacred import Experiment
from sacred.observers import FileStorageObserver,MongoObserver
ex = Experiment('iris_rbf_svm')
# ex.observers.append(MongoObserver.create("mongodb+srv://user1:gY5fVQ1CwDL5SDjJ@cluster0-zhhvs.mongodb.net/test?retryW... | [
"44324703+William-Bourget@users.noreply.github.com"
] | 44324703+William-Bourget@users.noreply.github.com |
cdd0c2844caaf787286b6166b7f777396e5fe250 | a06b1f68a43622c21b1dbdd8680f21d588a45219 | /setup.py | 156e23e300442138585f63c8fa6360e0ffc6b4d0 | [
"BSD-2-Clause"
] | permissive | i5misswrong/meshless | 6eac7e7ddbe51160ee37358ce36525b26b6c6843 | 27f9729050cedec2d7c1a716104d068608827c0f | refs/heads/master | 2021-01-15T22:51:33.502229 | 2017-07-05T13:59:17 | 2017-07-05T13:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | from __future__ import absolute_import
import os
import inspect
import subprocess
from setuptools import setup, find_packages
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
... | [
"saullogiovani@gmail.com"
] | saullogiovani@gmail.com |
63e03d22c64135796dcbbadcdebb839599a309af | 9a46784244d544445c01c6f0d564f4da65efcfaf | /CodeUltimateFlaskCourse/13. Flask-Login/login_create_form/app.py | 7783a369710f1649665c1d06e1b5379ed4d7a82b | [] | no_license | ammbyrne/Flask | f55a606ec234c6a00b4d264a48e11b2f487d4ef7 | 7922ab46b8a4c388346043d2393173e7e49e43bb | refs/heads/main | 2023-04-19T16:07:08.224824 | 2021-05-07T03:21:44 | 2021-05-07T03:21:44 | 365,101,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from flask import Flask, render_template, request
from flask_login import LoginManager, UserMixin, login_user, login_required, current_user, logout_user
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SECRET_KEY'] = 'Thisisasecret!'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////mn... | [
"andy_m_byrne@yahoo.co.uk"
] | andy_m_byrne@yahoo.co.uk |
30834878669b80bbcfb9f89279b8d3a82103d9e4 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/resources/v20191001/get_deployment_at_subscription_scope.py | 2aa46153ad6ca3f33ca2ff7ee70b5c461ebd56ce | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,139 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
69596b8782b06a6760a81282c05936b8831b8d23 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/pose_estimation/MSPN/exps/mspn.2xstg.coco/train.py | d5dce9ff26b721b013de30309d9d4fd092d0f95f | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 5,856 | py | # encoding: utf-8
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 applicabl... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
52ca0d7034a10d2e5064f8a4df166a7f6b942a3b | 551be15fdad2e1c5cbb6158ce20e165eaadd87bd | /corc/providers/dummy.py | cb53e3fedaf0de4f02e6ff70fee63a9e2199d539 | [
"MIT"
] | permissive | frankfanslc/corc | b230d0f14ca80d5c175a048921a75ed4a0eae0f5 | 2d2ba92ab791f50fa46e1ff2cdc0035925032671 | refs/heads/master | 2023-08-21T22:46:05.987006 | 2021-02-28T16:12:37 | 2021-02-28T16:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | import uuid
from corc.config import default_config_path
from corc.orchestrator import Orchestrator
from corc.util import ping
class LocalOrchestrator(Orchestrator):
def __init__(self, options):
super().__init__(options)
self.instance = None
self.resource_id = None
def endpoint(self, s... | [
"munk1@live.dk"
] | munk1@live.dk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.