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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a6fa620c02a9969300f1da35177f8acf5abe1d9 | 585bc7a21664e7a371950c4811723aae92256c92 | /test.py | f3c46723e224226df8b89453fcbcfb8851c88fe4 | [] | no_license | JacquesLucke/ml_test | bfb421ba6c423bfda545dac7aeabbcc81d71abd8 | 3c743b0b60dcf492a64bea2ed16c7edc4e6a6809 | refs/heads/master | 2023-06-03T20:24:46.733564 | 2021-06-19T17:08:10 | 2021-06-19T17:08:10 | 378,464,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import numpy as np
weights = np.array(
[
[[1, 2], [3, 4]],
[[-1, -2], [-3, -4]],
[[0, 3], [-1, 2]],
]
)
data_in = np.array(
[
[1, 2],
[3, 4],
]
)
print(weights.shape)
print(weights)
print(data_in.shape)
print(data_in)
print(np.tensordot(weights, data_in, 2))
e... | [
"[email protected]"
] | |
8de2486482a883800948f7d6d08d5ce1676ba874 | 6466eef5477db250879a74935b3b776dc878ff3b | /ideas/views.py | e959cd77ba2866f690fca657fdcb6afc1b18108b | [] | no_license | BakdauletBolatE/django_ideas | 8edb61a569f436865283e82edba3377a150665a8 | ef0258f3aae0c090d38a5098d175bceaddcf67af | refs/heads/master | 2023-03-12T00:02:04.969353 | 2021-03-02T19:41:00 | 2021-03-02T19:41:00 | 324,287,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.shortcuts import render, redirect
from Content.models import Ideas,ICategory
def home(request):
lastideas = Ideas.objects.all()[:3]
categories = ICategory.objects.all()[:4]
data = {
'categories':categories,
'lastideas':lastideas
}
return render(request,'home... | [
"[email protected]"
] | |
715d48294f51deec24a2be0e2e499cb445e21a45 | 8e52c27f1b2823db67db4438b2b7e22c18254eca | /pytorch/pytorchcv/models/sepreresnet.py | 1b32e85718d516056c6f4de7cde5a45e85de714d | [
"MIT"
] | permissive | earhian/imgclsmob | 5582f5f2d4062b620eecc28d5c4c9245fea47291 | c87c0942420876941868c016211073dec4392e4d | refs/heads/master | 2020-04-12T02:13:55.258601 | 2018-12-17T20:38:19 | 2018-12-17T20:38:19 | 162,242,486 | 1 | 0 | MIT | 2018-12-18T06:40:42 | 2018-12-18T06:40:41 | null | UTF-8 | Python | false | false | 13,510 | py | """
SE-PreResNet, implemented in PyTorch.
Original paper: 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507.
"""
__all__ = ['SEPreResNet', 'sepreresnet18', 'sepreresnet34', 'sepreresnet50', 'sepreresnet50b', 'sepreresnet101',
'sepreresnet101b', 'sepreresnet152', 'sepreresnet152b', ... | [
"[email protected]"
] | |
824db027a189587196ece3814888aad0001898d6 | d95a672d614ea547a79be582fc9e9e97a09f7d9d | /pack/ex3_18.py | 2e00fe3851e1b7f4f70930d8e8514b207e749b6b | [] | no_license | vt0311/python | 26992c096512df8d0304f6d8b452a663645a8b61 | 51fa4c240b9f69a81f68d75e3f6ffdd9dada8848 | refs/heads/master | 2021-09-06T12:01:40.433969 | 2018-02-06T09:28:32 | 2018-02-06T09:28:32 | 107,950,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | print('방법1 : import 패키지명.모듈명')
import pack.mymod1
print(dir(pack.mymod1)) # mymod1에 정의된 멤버 확인
print(pack.mymod1.__file__)# 경로 명 및 파일 명
print(pack.mymod1.__name__)# 모듈 명
print('mymod1의 함수 호출')
list1 = [1, 3]
list2 = [1, 2]
pack.mymod1.ListHap(list1, list2)
print('다른 모듈의 전역 변수 : ', pack.mymod1.tot)
print('방법2 : fro... | [
"[email protected]"
] | |
82c582ff24e69ccb0acace9ec4ffa7596294a51b | 8a4c32783b2c8e13eca88d193c767bd25e63306c | /algo/gnn/gat.py | 6d087b9d8c3dafdbfde8dff45067056d7cf2b909 | [] | no_license | fs302/GraphWorld | 6765e4ba36d3af2ed5f820e52514096b3aeb10d7 | 9864eaca21f41117adf758f74379efa87692f5f8 | refs/heads/master | 2022-07-31T17:05:32.535380 | 2022-07-08T08:35:15 | 2022-07-08T08:35:15 | 196,156,937 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import torch
from torch.nn import Linear
import torch.nn.functional as F
from torch_geometric.nn import GATConv
class GAT(torch.nn.Module):
def __init__(self, input_channels, hidden_channels, out_channels, heads, dropout_ratio=0.):
super().__init__()
torch.manual_seed(1234567)
self.dropout... | [
"[email protected]"
] | |
417dfcc3c5f7259d1d81b83fb9ee10f6e487a810 | 801f367bd19b8f2ab08669fd0a85aad7ace961ac | /rl-fmri/tmp_sort_by_covariance.py | b8f808ec8e32693436251db5c839ebcdb7657592 | [
"MIT"
] | permissive | Wendong-Huo/thesis-bodies | d91b694a6b1b6a911476573ed1ed27eb27fb000d | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | refs/heads/main | 2023-04-17T18:32:38.541537 | 2021-03-12T19:53:23 | 2021-03-12T19:53:23 | 623,471,326 | 1 | 0 | null | 2023-04-04T12:45:48 | 2023-04-04T12:45:47 | null | UTF-8 | Python | false | false | 635 | py | import numpy as np
N = 5
t_org = np.arange(N)
pi = np.random.permutation(N)
x_org = np.array([np.random.randn(100)*k for k in range(N)])
S_org = np.cov(x_org)
print("Covariance of sorted time steps", S_org, sep="\n")
t_obs = t_org[pi]
x_obs = x_org[pi]
S_obs = np.cov(x_obs)
print("Covariance of unsorted time steps", S... | [
"[email protected]"
] | |
c5fa64d082c79e76c983683b96b872b39b9f7cbd | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch036/wiColorJ/Add2Loss/Sob_k05_s001_EroM_Mae_s001/pyr_Tcrop255_p20_j15/pyr_5s/L3/step09_5side_L3.py | 5fb954a0762d3b33eee11d933ad13a32e79db8b1 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,445 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"[email protected]"
] | |
23ffd822cb9394060d8ed04bdd0e6a6f5ea26806 | 0df7f40b27cffe0b4e009041c35fc1e78e33f82d | /django_api/users/admin.py | c6a9e761a57586af5b9cd2a6a296661ba21db9e3 | [
"MIT"
] | permissive | ridwanray/tay-twitter-microservices | 5be11f166bd0e2dba298da1577549264315d0120 | d5bdb6b6d4fd8333efbb4c79752f8c5efaccb1f0 | refs/heads/master | 2023-01-09T13:22:46.917407 | 2020-11-20T01:16:06 | 2020-11-20T01:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | """Admin App Customization is done here"""
from django.contrib import admin
from .models import User
from django.contrib.auth.admin import UserAdmin
class CustomUserAdmin(UserAdmin):
"""Custom Admin Manager for Custom USer Model"""
fieldsets = UserAdmin.fieldsets + (
(None, {'fields': ("follower", "following")}),... | [
"[email protected]"
] | |
2e610648cd9fb047a28f7e2d76bec256eec5c645 | 55647258df0565f19179ffb97ac217708d84ba4a | /social/serializers/comments.py | 4ac4833bd46f2e9cefdd1058d793c2201b05038b | [] | no_license | beatonma/snommoc | 25de0e81af0d9940bdc3aa6420cb5764d50c6d11 | 0a9d37dcad112c5dd98609c1566e74176ae3d89d | refs/heads/main | 2022-03-11T07:53:33.038649 | 2022-03-05T17:03:56 | 2022-03-05T17:03:56 | 188,595,195 | 0 | 0 | null | 2022-02-18T17:54:30 | 2019-05-25T17:35:58 | Python | UTF-8 | Python | false | false | 1,696 | py | import bleach
from rest_framework import serializers
from social.models.comments import Comment
from social.models.mixins import get_target_kwargs
from social.models.token import UserToken
from social.views import contract
class CommentSerializer(serializers.ModelSerializer):
username = serializers.CharField(sou... | [
"[email protected]"
] | |
a3f8bde72496e9b464ce228a2d862429620305ee | e9a737a6a9101d201e1ddf4292b31da9c6ed5919 | /ytree/frontends/rockstar/io.py | d16beae61c4767f34351067299f63bb27c35f7ae | [
"BSD-3-Clause"
] | permissive | brittonsmith/ytree | fd1305fc3f35c33741d5441e2c8b6a09cce2bb54 | 0c6a331f38c9758cca663ffd6e740183d359f7aa | refs/heads/main | 2023-05-25T06:02:19.020508 | 2021-04-19T14:35:18 | 2021-04-19T14:35:18 | 203,828,654 | 0 | 0 | NOASSERTION | 2019-08-22T16:01:34 | 2019-08-22T16:01:34 | null | UTF-8 | Python | false | false | 2,804 | py | """
RockstarArbor io classes and member functions
"""
#-----------------------------------------------------------------------------
# Copyright (c) ytree development team. All rights reserved.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed ... | [
"[email protected]"
] | |
799a2ad2a3aed25738677f3c563458a4cd38017d | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /content/DEPS | e891ebc72b9fd7dbdb01980defa7890b1268ebd9 | [
"BSD-3-Clause"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 3,816 | # Do NOT add chrome to the list below. We shouldn't be including files
# from src/chrome in src/content.
include_rules = [
# The subdirectories in content/ will manually allow their own include
# directories in content/ so we disallow all of them.
"-content",
"+content/app/resources/grit/content_resources.h",
... | [
"[email protected]"
] | ||
2ff06a22caf04d6abf9ee0dadb6a814e357ba72f | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/daapi/view/lobby/clans/search/clansearchinfo.py | effd5375670fa8314a02b23ce4895ec79def0848 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,782 | py | # 2016.08.04 19:50:21 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/clans/search/ClanSearchInfo.py
import weakref
import BigWorld
from adisp import process
from gui import SystemMessages
from gui.clans import formatters as clans_fmts
from gui.clans.clan_controller import... | [
"[email protected]"
] | |
359f4e23b3ef1e9e4e2aec0b35aeccbd462a008b | 99c6e64c0bf533e702576c516c3092bf5e641637 | /server.py | c4ec64b92fe2f6b3466ab170489f3924ceec64fd | [
"MIT"
] | permissive | rjc-development/remote-desktop-control | 67ff0f1ae3d7c507f269d982540bacfa666dd322 | c138d6665a25053b4001c4e0c12ff851e401dc3f | refs/heads/master | 2022-12-22T02:26:46.556215 | 2020-09-25T20:01:02 | 2020-09-25T20:01:02 | 298,668,093 | 3 | 1 | null | 2020-09-25T19:59:46 | 2020-09-25T19:59:45 | null | UTF-8 | Python | false | false | 1,761 | py | from starlette.applications import Starlette
from starlette.websockets import WebSocketDisconnect
import json
import logging
import uvicorn
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
app = Starlette()
websockets = {
'web': {},
'desktop': {},
}
async def receive_json(websocket):
... | [
"[email protected]"
] | |
294636258c2d0c16eda8eebc1460b1c2b8febfb3 | 8cf3a19eb3d0f69e5c0237fc504977330e95aac2 | /workflow/scripts/manticore-plotvcf.py | 6fc8c870e989714519620809b58213b502db8b43 | [
"MIT"
] | permissive | NBISweden/manticore-smk | 0c46ab5da5cdf7a40806bfef5ea05558efea8c5e | fd0b4ccd4239dc91dac423d0ea13478d36702561 | refs/heads/main | 2023-08-13T05:44:36.125066 | 2021-10-19T19:12:55 | 2021-10-19T19:12:55 | 308,556,800 | 1 | 2 | MIT | 2021-05-13T07:15:20 | 2020-10-30T07:33:11 | Python | UTF-8 | Python | false | false | 3,059 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import shutil
import argparse
import random
import numpy as np
import allel
import zarr
import numcodecs
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style("white")
sns.set_style("ticks")
populations = ["CHS", "YRI"]
pop_colours = ... | [
"[email protected]"
] | |
b1ad2582245f045c6dcbc4be07e3e4d8e9749c61 | aac5982c8dcf26221419086fb90c399b9f4324ef | /DFTB/SlaterKoster/slako_tables/n_cl.py | dd88b37045a4b15c7246ef3a8903f2924b9fa709 | [] | no_license | by-student-2017/DFTBaby-0.1.0-31Jul2019 | 99184d3fa2976d4e02f7f1bddee97e56526d9365 | 92cb73f1a6472f88588986561349d7f2ad1b1c15 | refs/heads/master | 2022-12-12T00:12:50.449505 | 2020-09-01T21:05:59 | 2020-09-01T21:05:59 | 290,116,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,481 | py | # This file has been generated automatically by ./generate_slakotables.py
# from /home/humeniuka/DFTB-0.1.0/DFTB/SlaterKoster/confined_pseudo_atoms/n.pyc and /home/humeniuka/DFTB-0.1.0/DFTB/SlaterKoster/confined_pseudo_atoms/cl.pyc.
from numpy import array
Z1 = 7
Z2 = 17
# overlaps S[(l1,l2,i)] and hamilton matrix elem... | [
"[email protected]"
] | |
eb2ca5d1b00bedc68345d9103057a0bd38c3425f | a79da24bda658f588fd8e71c7e63f01931c1a694 | /bigapple/venv/lib/python3.7/site-packages/plotly/graph_objs/bar/_stream.py | 8f528873536d267aa02021460ab7bf8155d2a086 | [] | no_license | replicantdeca/bigapple-insys | 60519b486f13e1a3eb18b5ba637e45deaf8e1d8e | 5e7328fb94362fbb04a71c2e297bffd83443eebc | refs/heads/master | 2020-03-27T12:57:31.894182 | 2019-12-01T11:25:13 | 2019-12-01T11:25:13 | 146,580,916 | 0 | 1 | null | 2018-08-29T10:00:28 | 2018-08-29T10:00:27 | null | UTF-8 | Python | false | false | 3,812 | py | from plotly.basedatatypes import BaseTraceHierarchyType
import copy
class Stream(BaseTraceHierarchyType):
# maxpoints
# ---------
@property
def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, onl... | [
"[email protected]"
] | |
92108883e03e44c0b266ef7a49d9dea628e31e41 | 61b475c33745dbe11d88ea288cbdee279f89c610 | /src/izi/apps/dashboard/widgets.py | 8fe3723a9b44c00ad92a5dec957228dfddf69ec0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | izi-ecommerce/izi-core | a092ea285d0dbd83d17427de3157a9f1e77d6c51 | 21176be2d41f0cf54ca954f294209c585f643dba | refs/heads/master | 2020-03-30T08:37:39.045514 | 2018-10-08T02:58:46 | 2018-10-08T02:58:46 | 151,029,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | import copy
import re
from django.forms import Widget
from django.urls import reverse
class RelatedFieldWidgetWrapper(Widget):
"""
This class is a wrapper to a given widget to add the add icon for the
IZI dashboard.
"""
template_name = 'izi/dashboard/widgets/related_widget_wrapper.html'
IS_P... | [
"[email protected]"
] | |
dfb4aafe897b5263ebd18b74bb4a504d4d203e7f | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/go/util_rules/embedcfg.py | d2ed6cc938823c9793be977e5ede6db43a726bc2 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 4,141 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import json
from dataclasses import dataclass
from typing import Any, Iterable, Mapping
from pants.util.frozendict import FrozenDict
from pants.util.st... | [
"[email protected]"
] | |
411e8160fa633fee9650fda54c0078f8af778b18 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5011/404005011.py | fca6c0597cac9c112b926b948f6c0cd9e7cdd1ee | [] | 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 | 3,993 | py | from bots.botsconfig import *
from records005011 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'SR',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'ZC1', MIN: 0, MAX: 1},
{ID: 'BX', MIN: 0, MAX: 1},
... | [
"[email protected]"
] | |
992ad12a575aa28017fbf8115beb2a0579bad5bb | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envcontacts/migrations/0065_auto_20210223_0054.py | 007d402317fba9799fbecce80a479a8fe0db8323 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.1.7 on 2021-02-23 00:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envcontacts', '0064_auto_20210223_0034'),
]
operations = [
migrations.AlterField(
model_name='person',
name='email1_... | [
"[email protected]"
] | |
69c8613e89b0b70ecdbf7d9a9cc3558b46d87771 | 7f7bf9a5827d1441f18f568fc75ed5bf0159ca6c | /Декоратор/2/2функцию-декораторv41.py | f7a19566515c70ee88069f9c42bb8055b942a228 | [] | no_license | KorsakovPV/yandex_contest | 08bcff4eaf38d46a8348ac3abbb5f496857fe8e4 | f67917ef710f5b138142b11ec4e6e4678b23e408 | refs/heads/master | 2023-01-06T13:04:07.955570 | 2020-10-24T20:22:41 | 2020-10-24T20:22:41 | 290,097,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | def cache3(func):
cache = {'res': func(), 'counter': 0}
def save_three_times():
if cache['counter'] == 3:
cache['counter'] = 0
cache['res'] = func()
return cache['res']
cache['counter'] += 1
return cache['res']
return save_three_times
@cache3
de... | [
"[email protected]"
] | |
f5d7ee6e684505ed22b422d7ed9221e0d6c707d5 | 0eefc9995ce927964969cbae247e28fd98f4998e | /src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/image/psx_tim.py | 12103cca74f785a478567753e17eccc22387f220 | [
"MIT"
] | permissive | SamuelWAnderson45/hobbits | 993bde59d2fd96b1824e4f85ba1913eba12c8f3f | 412f4ca50aa6aa2d26a1d05913f21f2ab0198eba | refs/heads/master | 2022-12-14T09:36:46.663303 | 2020-08-30T17:05:53 | 2020-08-30T17:05:53 | 291,514,129 | 0 | 0 | null | 2020-08-30T17:02:44 | 2020-08-30T17:02:43 | null | UTF-8 | Python | false | false | 3,662 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
from enum import Enum
import collections
if parse_version(kaitaistruct.__version__) < parse_versi... | [
"[email protected]"
] | |
cf7003a96795ac941e196feb0ba340851ebef983 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cse/huaweicloudsdkcse/v1/model/engine_reference.py | f492745795a7c0b25ba3bb1a8314bd1147a93b69 | [
"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 | 11,145 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class EngineReference:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute na... | [
"[email protected]"
] | |
dc5f16a21eaf87f548dcafd572e064bea67e1b04 | 928508a85d16987a1382b7adcd7142dee7ac986f | /Practice_Python/6.String_lists.py | 0d9f652a42a79e534901e740e8c4129af9c11942 | [] | no_license | TheoRobin76/Data_Engineering22 | ed29798d0660d6ac73985f510ef7cea942ab77ad | 26299a61a8b4372d9ed2664d4ad623c9d12d23d0 | refs/heads/main | 2023-06-17T05:43:40.347544 | 2021-07-14T13:23:23 | 2021-07-14T13:23:23 | 378,177,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | word = input("Please enter a word and I will tell you if it is a palindrome: ")
if word == word[::-1]:
print(f"Congratulations, {word} is a palindrome")
else:
print(f"My Condolences, {word} is not a palindrome")
| [
"[email protected]"
] | |
ff131d5fea0ba01e244ca696d7d1c796629e8173 | cb5719d2e21f02be07368790ae5649b249c9a20e | /apps/tests/log_databus/test_collectorhandler.py | 60505d52d55ea82f8d6a149d6e5a34ee771aba5b | [
"MIT"
] | permissive | Toread-jxj/bk-log | fff57337cc39fdd6a85890bf84baff8aa23539be | 7d68cad3a2c78511141c9af2a016fcd603f62707 | refs/heads/master | 2023-07-15T01:22:47.200423 | 2021-08-19T03:08:25 | 2021-08-19T03:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,559 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-LOG 蓝鲸日志平台 is licensed under the MIT License.
License for BK-LOG 蓝鲸日志平台:
------------------------------------------------... | [
"[email protected]"
] | |
e516493b77004a907bb16ef524f73968b6760fc5 | 8cf633e92a0671c8201268620a0372f250c8aeb2 | /204.计数质数.py | dc347d29caae6593e34a2ccf06dfa29044656b36 | [
"Unlicense"
] | permissive | SprintGhost/LeetCode | 76da5c785009d474542e5f2cdac275675b8e60b8 | cdf1a86c83f2daedf674a871c4161da7e8fad17c | refs/heads/develop | 2021-06-06T04:04:28.883692 | 2021-01-01T14:09:26 | 2021-01-01T14:09:26 | 230,635,046 | 0 | 0 | Unlicense | 2020-12-11T14:55:36 | 2019-12-28T16:34:39 | Python | UTF-8 | Python | false | false | 607 | py | #
# @lc app=leetcode.cn id=204 lang=python3
#
# [204] 计数质数
#
# Accepted
# 20/20 cases passed (124 ms)
# Your runtime beats 85.76 % of python3 submissions
# Your memory usage beats 28.36 % of python3 submissions (36.8 MB)
# @lc code=start
class Solution:
def countPrimes(self, n: int) -> int:
if n < 2:
... | [
"[email protected]"
] | |
5b3d7a86142ca1e96291cb8b7355a821f2d2b495 | 3e7cce8dc203bcdbd35fccfaf974a9af0613d838 | /profilemaker/views.py | 5bb04d58dafd44c0f3899b259bb47bc561694b2d | [] | no_license | MdReyajuddin/blog | 146ac2b0b6967261b943535c819b403817390cd5 | 7da318865cef3116d50bcf0eb20d800e57290b90 | refs/heads/master | 2022-12-15T15:44:30.969717 | 2020-01-25T08:07:37 | 2020-01-25T08:07:37 | 236,128,083 | 0 | 0 | null | 2022-11-22T05:16:03 | 2020-01-25T05:06:16 | Python | UTF-8 | Python | false | false | 892 | py | from django.shortcuts import render
from .forms import Profile_Form
from .models import User_Profile
# Create your views here.
IMAGE_FILE_TYPES = ['png', 'jpg', 'jpeg']
def create_profile(request):
form = Profile_Form()
if request.method == 'POST':
form = Profile_Form(request.POST, request.FILES)
... | [
"[email protected]"
] | |
5aa57daf3cc68ef88f14f8f3ba7cba5f03636d50 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_8/34.py | 13a5dbdcd1c07973c0fd5e97e7a59e2773a1dde9 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | """The grouper class has been reciped from:
http://code.activestate.com/recipes/387776/
"""
class Grouper(object):
"""This class provides a lightweight way to group arbitrary objects
together into disjoint sets when a full-blown graph data structure
would be overkill.
Objects can be joined using .join(), tested fo... | [
"[email protected]"
] | |
5e034aa33708e97b5aedbcbf1bba6cf51df4c4f9 | e06c7fd594c52425ab7fc5498c07ae14daf9578b | /api/admin.py | cafd7a142d565ea707d870d9d0d7f3375129165e | [] | no_license | rwheeler-7864/simplenight-api | bc35560eca1e1c25092a1bcdc4af1633367413b8 | 602646911a0155df5b70991d1445c10cee18cd33 | refs/heads/master | 2023-03-12T03:10:51.516499 | 2021-02-25T20:40:44 | 2021-02-25T20:40:44 | 342,370,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | from django import forms
from django.contrib import admin
from django.forms import TextInput
from api.models.models import (
Booking,
OrganizationFeatures,
PropertyInfo,
Venue,
VenueMedia,
VenueContact,
VenueDetail,
PaymentMethod,
# ProductMedia,
ProductHotelsMedia,
Products... | [
"[email protected]"
] | |
506003b3dae22a077719c309c33a12355ed13292 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /codeforces/cf251-275/cf260/a2.py | a83e5ffe122cda371ad06555dc20bfd8fbd03eb2 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
n = int(raw_input())
for loop in xrange(n):
a, b = map(int, raw_input().split())
if a < b:
print "Happy Alex"
break
else:
print "Poor Alex"
| [
"[email protected]"
] | |
b548144cbea5bfa89e439e9720a806f5b4e08fe8 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts_tests/tests/google/nr/sa5g/Sa5gSmsTest.py | 011062f94542ad88a258d6dd33ea3382f50f7a21 | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | #!/usr/bin/env python3.4
#
# Copyright 2021 - Google
#
# 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 appl... | [
"[email protected]"
] | |
f3ff45256bbea619dbbf64fd88fabf51d085e602 | 0c15310c93117c916211b214bf5e87bdb05e768b | /hyperion/__init__.py | f1feff3c2c50c50e70b91d7fb71f52e9b778df21 | [
"BSD-2-Clause"
] | permissive | hyperion-rt/hyperion | 553efc0bd2c279409f65381d769546770b728236 | 743e085dd03ac8f92796773e55a69fd5b50700c1 | refs/heads/main | 2023-08-30T20:57:38.751726 | 2023-08-25T20:41:29 | 2023-08-25T20:41:29 | 1,442,240 | 41 | 19 | BSD-2-Clause | 2023-08-25T20:41:31 | 2011-03-05T04:43:44 | Python | UTF-8 | Python | false | false | 2,344 | py | from __future__ import print_function, division
from .version import __version__
# Set up the test function
_test_runner = None
def _get_test_runner():
from .testing.helper import TestRunner
return TestRunner(__path__[0])
def test(package=None, test_path=None, args=None, plugins=None,
verbose=Fal... | [
"[email protected]"
] | |
ba79ccbb978bcafbf81db83fd7e2fa58372de286 | 1ec96ae64d42a735278c6ae718cc0205e846a79e | /qpwcnet/app/quantize/test_infer_tflite.py | 45c4358b9a7326e67f1def3e95d1066e81d036f2 | [] | no_license | fenguoo/qpwcnet | c3139c04787ecd8abf88d7aa7c106fd8715d92ab | 3fa803d4b55d46559eb96543ce0683fa4dd4d737 | refs/heads/master | 2023-03-08T20:37:50.137699 | 2021-02-25T18:40:24 | 2021-02-25T18:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | #!/usr/bin/env python3
import tensorflow as tf
import numpy as np
import faulthandler
import cv2
from qpwcnet.core.util import disable_gpu
from qpwcnet.data.augment import image_resize, image_augment
from qpwcnet.data.tfrecord import get_reader
from qpwcnet.core.vis import flow_to_image
from qpwcnet.vis.show import s... | [
"[email protected]"
] | |
066630c5fc08c6a3f8d7aea2d8c7356f89559c49 | afc677459e46635ceffccf60d1daf50e62694557 | /ACME/utility/isskinny.py | b174ab247419e98a7beff22f70e10383e0180265 | [
"MIT"
] | permissive | mauriziokovacic/ACME | 056b06da4bf66d89087fcfcbe0fd0a2e255d09f3 | 2615b66dd4addfd5c03d9d91a24c7da414294308 | refs/heads/master | 2020-05-23T23:40:06.667416 | 2020-01-10T14:42:01 | 2020-01-10T14:42:01 | 186,997,977 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from .row import *
from .col import *
from .ismatrix import *
def isskinny(*tensors):
"""
Returns whether or not the input tensor is a skinny matrix
A fat matrix is a matrix where the number of columns is smaller than the rows
Parameters
----------
*tensors : Tensor
a sequence of ten... | [
"[email protected]"
] | |
555dc967aabaab2c6844ce81e8e30bd1621e7673 | af368ad82efda90ca9de73c57f2822aa27a21044 | /rigl/rigl_tf2/networks.py | ff96229cb5555728ea5fe8612ba59a1157351158 | [
"Apache-2.0"
] | permissive | google-research/rigl | e24f05bfd872f31194a047cf1b3a0bfa12ab45aa | d39fc7d46505cb3196cb1edeb32ed0b6dd44c0f9 | refs/heads/master | 2023-08-25T04:54:29.014303 | 2023-01-13T13:40:32 | 2023-01-26T17:47:13 | 224,050,000 | 324 | 61 | Apache-2.0 | 2022-07-04T22:02:04 | 2019-11-25T22:03:16 | Python | UTF-8 | Python | false | false | 2,777 | py | # coding=utf-8
# Copyright 2022 RigL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"[email protected]"
] | |
0d6be2d20aad56dc93e13e89dae8a30e5c924f42 | e1eaed6dde62fc54eb317d28dbd18e0740e3e8f3 | /official/projects/yt8m/configs/__init__.py | 2785613f22bdd5886332e53a03d96f3d529b7fd9 | [
"Apache-2.0"
] | permissive | nlpming/models | cf5008d2e66d2b66b6d61423e214f2f9f9fbe472 | 3cbf0748529d787dd09fa3ed031e557f0ddfa268 | refs/heads/master | 2021-12-03T03:29:16.042489 | 2021-11-23T14:09:10 | 2021-11-23T14:09:10 | 206,007,973 | 0 | 0 | Apache-2.0 | 2019-09-03T06:47:46 | 2019-09-03T06:47:46 | null | UTF-8 | Python | false | false | 692 | py | # Copyright 2021 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... | [
"[email protected]"
] | |
40d07a435766b7b05fd6c3cfdb3b1ec4ba000f2b | 8fe42fb556547bc60bd34b8c5230c01d7ef2dc89 | /src/operaciones.py | c2b28d668244639975b2d9d79f52146085af3388 | [] | no_license | Davidlazarog/Shark-Project | 1c8b3225f41a32dbcabace88c776043aeac42066 | e6baf3c346aa324566ac687af885a7abcd66b5a2 | refs/heads/master | 2022-12-06T20:03:15.679049 | 2020-08-31T19:06:54 | 2020-08-31T19:06:54 | 291,052,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | def fatality(x):
if x == "Y":
return True
elif x == "N":
return False
elif x == " N":
return False
elif x == "N ":
return False
elif x == "y":
return True
return 'Unknown'
def Type(x):
if x == "Unprovoked":
return 'Unprovoked'
elif x == "P... | [
"[email protected]"
] | |
d4d3db0d9c63d6caa39c78c51416d5cd71a05bf5 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/23fcae7c9e2969cf6c9ffb019dda90e2abce2337-<v2_runner_on_unreachable>-fix.py | a2bf157a0a16543a0a827efdc86b55d5841fa9c6 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py |
def v2_runner_on_unreachable(self, result):
self._preprocess_result(result)
msg = 'unreachable'
display_color = C.COLOR_UNREACHABLE
task_result = self._process_result_output(result, msg)
self._display.display((' ' + task_result), display_color, stderr=self.display_failed_stderr)
| [
"[email protected]"
] | |
11e3a016835e75036ea8902a59cb6d19e5fba1d5 | ad8a182386d9cbffc5949e06435aee9dc65e79cd | /src/test/py/bazel/testdata/runfiles_test/bar/bar.py | a88b10b28ba73e4b68fbd2bcab7611e28f473e07 | [
"Apache-2.0"
] | permissive | JefferyQ/bazel | 2284f1792cc10b96fa485bfc7e54e064d2733750 | e666d3b88efb59f2a8f10b18882c9f13801508d9 | refs/heads/master | 2020-03-06T19:08:35.713184 | 2018-03-27T16:18:53 | 2018-03-27T16:20:19 | 127,021,388 | 1 | 0 | Apache-2.0 | 2018-03-27T17:18:14 | 2018-03-27T17:18:14 | null | UTF-8 | Python | false | false | 846 | py | # Copyright 2018 The Bazel 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 applicable la... | [
"[email protected]"
] | |
d6942f802ebb324f1d183331af8a70085d17d2a8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03260/s433501845.py | f916e360749b81eba126bb8d969b1f1e0e46b12a | [] | 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 | 227 | py | import sys
def main():
a, b = map(int, input().split())
for c in range(1, 4):
if (a * b * c) % 2 == 1:
print('Yes')
sys.exit(0)
print('No')
if __name__ == "__main__":
main()
| [
"[email protected]"
] | |
3209c668a67a07c6ad75cfad7348b0fa17bc9382 | eae3d77ac72c168cee7701462f1fc45d7d4dcd91 | /SWEA/5653_줄기세포배양.py | 352a068ba658b7efae977a5f073569e60fa98afe | [] | no_license | ByeongjunCho/Algorithm-TIL | ed2f018d50bd2483bd1175ff9bf7e91913c14766 | ad79125a1498915fe97c1d57ee6860b06c410958 | refs/heads/master | 2022-07-19T15:12:23.689319 | 2020-05-18T08:37:09 | 2020-05-18T08:37:09 | 256,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | # 5653. [모의 SW 역량테스트] 줄기세포배양
for tc in range(1, 1+int(input())):
N, M, K = map(int, input().split()) # 행, 열, 시간
arr = [list(map(int, input().split())) for _ in range(N)]
# 좌표를 dict 에 입력
cell = {} # 살아있는 세포
deadcell = set() # 죽은세포
for i in range(N):
for j in range(M):
if... | [
"[email protected]"
] | |
c6786c9dbf4949ae65f9b5146056f5c8542d97d3 | 76658a65823ea493038c1d037eb0bc1eda6733d3 | /chapter8/decorator.py | 1af2950bea033ac2d44c7197d914df3b0ee7bdea | [] | no_license | Asunqingwen/OOR_Edition3 | 2f14446f26a6615aea58920f67f6656c74257c4c | 92481b15fc365f8d5b903f6e5eb0974e9ff2af33 | refs/heads/master | 2022-08-15T05:49:33.619528 | 2020-01-13T01:53:47 | 2020-01-13T01:53:47 | 230,414,693 | 0 | 0 | null | 2022-07-29T23:04:04 | 2019-12-27T09:33:05 | Python | UTF-8 | Python | false | false | 933 | py | # -*- coding: utf-8 -*-
# @Time : 2020/1/7 0007 14:40
# @Author : 没有蜡笔的小新
# @E-mail : [email protected]
# @FileName: decorator.py
# @Software: PyCharm
# @Blog :https://blog.csdn.net/Asunqingwen
# @GitHub :https://github.com/Asunqingwen
# @WebSite : labixiaoxin.me
import time
def log_calls(func):
def wrapper... | [
"[email protected]"
] | |
aa7d5492970481f8d5ecd055913b223e31a05a4a | f93ea26173e6b72ff46b3abb2a5250bfb0636cdd | /tests/test_multiple.py | fc19b1449f2d61c628ba768b08192cf784420648 | [
"MIT"
] | permissive | eng-tools/eqsig | 53d1dc695ffbe132a7fef871d825d9b7011f821c | 8a70f4c7152bc0f0901d457b6acbca256d1a6473 | refs/heads/master | 2023-02-26T06:58:43.243878 | 2022-08-16T03:23:04 | 2022-08-16T03:23:04 | 125,842,866 | 22 | 10 | MIT | 2023-02-08T00:41:12 | 2018-03-19T10:46:43 | Python | UTF-8 | Python | false | false | 720 | py | import numpy as np
from eqsig import multiple
def test_same_start():
time = np.linspace(0, 102, 10200)
acc = np.sin(time)
dt = 0.01
cluster = multiple.Cluster([acc, acc + 0.3], dt=dt)
cluster.same_start()
diff = np.sum(cluster.values_by_index(0) - cluster.values_by_index(1))
assert diff <... | [
"[email protected]"
] | |
bec4c93a740437135214e47923fb069380ba88e1 | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/19-22-07-21_20210905233329.py | 1c3e07808a594a922ce4ec611612db0be63d70cf | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | class MENU ():
def __init__(self,titulo,opciones=[]):
self.titulo = titulo
self.opciones = opciones
def menu(self):
print(self.titulo)
for opcion in self.opciones:
print(opcion)
opc=input("Elije opcion [1 ..... {}]:".format(len(self.opciones)))
retu... | [
"[email protected]"
] | |
f448fb85f2fa97dfe22916d51c24dde06f126299 | 910c97ce255f39af7ef949664b4346e8cb5d6a0e | /managerlib/dblib/.svn/text-base/db_cloudfs_account.py.svn-base | a35cee46cf8948ff6bed248f5925041ed5a0724e | [] | no_license | sun3shines/manager_monitor | f3742a4fde95b456f51d0a18feb78f3d4048c560 | f49d741203d8476f2249a49d90fecc86143ac622 | refs/heads/master | 2021-01-17T06:47:14.375088 | 2016-04-29T06:43:05 | 2016-04-29T06:43:05 | 57,361,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | # -*- coding: utf-8 -*-
from urllib import unquote
from managerlib.db.db_account import account2id,insert_account,account_exists
from managerlib.db.table.stobj import delete_stobj
# atdelete -> db_cloudfs_account_delete
# atput -> db_cloudfs_account_put
# atexists -> db_cloudfs_account_exists
# athead -> db_cloudfs_a... | [
"[email protected]"
] | ||
0fbc76d0300d598b7281028957299fbf30355f1c | 24de7e00fc6888efe2540d078d4bada6b21174ae | /glue_jupyter/ipyvolume/volume.py | c14a3500bd5b6ef0f413a9b7f7c63bf6c5dcc0f6 | [] | no_license | NoahLiot/glue-jupyter | 542e136f0688c98380b46ab8d7cb68dd577fc57b | 012703c603c5eae7c99ab93d832eb60f307e3c95 | refs/heads/master | 2020-03-27T05:15:10.485726 | 2018-08-09T10:16:29 | 2018-08-09T10:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,775 | py | import ipyvolume as ipv
import ipywidgets as widgets
import traitlets
from IPython.display import display
import numpy as np
import matplotlib.colors
from .scatter import IpyvolumeScatterLayerArtist
from ..utils import reduce_size
#from glue_vispy_viewers.common.layer_state import VispyLayerState
from glue_vispy_view... | [
"[email protected]"
] | |
c50124e6e37ed41624bd020b878be1a0fd742599 | 61a21ed2dcdfe9a43588c5582eea38ce8fdfcbf2 | /akshare/stock/stock_dzjy.py | b132c81a9b31b7160848277fdb6ca9908ccb012b | [
"MIT"
] | permissive | huanghyw/akshare | 44187c6c56872d499651bb62c178ee837c776388 | ed84e937773c0420cc003793d74b73e64223e08b | refs/heads/master | 2023-04-22T07:06:08.929307 | 2021-05-02T16:05:59 | 2021-05-02T16:05:59 | 319,346,216 | 13 | 5 | MIT | 2021-05-02T16:05:59 | 2020-12-07T14:32:08 | null | UTF-8 | Python | false | false | 15,145 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/12/4 20:31
Desc: 东方财富网-数据中心-大宗交易-市场统计
http://data.eastmoney.com/dzjy/dzjy_sctj.aspx
"""
import demjson
import pandas as pd
import requests
def stock_dzjy_sctj() -> pd.DataFrame:
"""
东方财富网-数据中心-大宗交易-市场统计
http://data.eastmoney.com/dzjy/dzjy_sctj.as... | [
"[email protected]"
] | |
2576f671397537847ead9f33f72b37b62d262c6c | 61004e474b7b2ad0071c16766f0f7874f04f9466 | /examples/dataflow-xml-pubsub-to-gcs/python/beamPubSubXml2Gcs.py | 714dcc12868880a5d623a66cf9fb253735ed5a8a | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/professional-services | eb79751efae765a8c691a745e520f44f51bd715c | 0f51121b945bd74c7f667e74e8861fceda87565c | refs/heads/main | 2023-09-05T02:57:33.328973 | 2023-08-30T14:40:30 | 2023-08-30T14:40:30 | 91,730,359 | 2,626 | 1,381 | Apache-2.0 | 2023-09-14T20:13:42 | 2017-05-18T19:29:27 | Python | UTF-8 | Python | false | false | 6,666 | py | # Copyright 2023 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | [
"[email protected]"
] | |
b03ff75b410cad50551f9771c230a5908f250464 | 8a62bbff9378187a898f336532bb49de18cb88e4 | /2020-rnn-transducer/configs/rna3c-lm4a.convtrain.switchout6.l2a_1e_4.nohdf.encbottle256.attwb5_am.dec1la-n128.decdrop03.decwdrop03.pretrain_less2_rep6.mlr50.emit2.fl2.rep.fixmask.ctcalignfix-ctcalign-p0-4la.chunk60.encctc.devtrain.config | b61cbb234d7f86453b238052a65f98e61fbba6dc | [] | no_license | rwth-i6/returnn-experiments | e2cdecb67febe646d702282ced8c290f1dd8edd0 | a46021329c030af361e0becb25ea92afca9610ce | refs/heads/master | 2023-06-08T08:56:11.891782 | 2023-05-30T12:46:45 | 2023-05-30T12:46:45 | 67,426,132 | 159 | 52 | null | 2023-05-30T12:46:46 | 2016-09-05T14:07:48 | Python | UTF-8 | Python | false | false | 45,596 | config | #!crnn/rnn.py
# kate: syntax python;
# -*- mode: python -*-
# sublime: syntax 'Packages/Python Improved/PythonImproved.tmLanguage'
# vim:set expandtab tabstop=4 fenc=utf-8 ff=unix ft=python:
# via:
# /u/irie/setups/switchboard/2018-02-13--end2end-zeyer/config-train/bpe_1k.multihead-mlp-h1.red8.enc6l.encdrop03.decbs.ls... | [
"[email protected]"
] | |
a7ee7d01542a6a2c392badd3a337b82978760149 | 978228e0c7291e6dad04a49ac8fdbd2e17322b6b | /PythonAutomats/Tinder/song_of_the_day_tinder.py | 71674fd8278ca4cc0f848d30fdfb6f961e6da1bc | [] | no_license | tdworowy/PythonAutomats | f5edbea96b53e1e452f16457ba44a31e7750d7ab | 84d30db03b5be936092622d446b0fc9834dfa2de | refs/heads/master | 2022-08-27T21:12:24.963091 | 2022-08-15T08:39:46 | 2022-08-15T08:39:46 | 73,401,085 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import sys
from random import choice
from Api.Songs import ApiAdapter
from Chrome_Driver_Folder.driver_path import get_driver_path
from Songs.last_fm_parser import FOLDER_PATH, update_songs_distribution
from Tinder.tinder_Api import TinderMessageBot, TinderAdapter
from Utils.decorators import log_exception
from Youtub... | [
"[email protected]"
] | |
3988f947afc8104c3abbc1371fb28d19b7677e15 | ac6e4102dfb49a4e49de0e2766feb6e80ab0b5c2 | /h1/model/website_project_instance_create.py | 40e2620a7c7b0b2bb04d8a2d6fc79057e3b28627 | [
"MIT"
] | permissive | hyperonecom/h1-client-python | df01f05ad295121e3dd391a3274c41e2f5b88e53 | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | refs/heads/master | 2023-04-05T01:51:31.637002 | 2021-03-29T00:05:41 | 2021-03-29T00:05:41 | 319,309,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,357 | py | """
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from h1.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
... | [
"[email protected]"
] | |
aefae7fca95e26baee3b1888e265657b3105ea73 | 2c3f13857d4a915410de5ac9547745eb2769db5f | /eval/e5/scrape_so.py | 60e0110c53ba3c6434b54a83d7b9f733bf2aff48 | [] | no_license | andrewhead/StackSkim | 43a4cf769645bb70202075f8077fa4d5d7be2a4b | 9ac11705ff82aa978d1a87177059e665f4e5ebef | refs/heads/master | 2020-06-03T16:15:15.127268 | 2016-01-16T17:16:36 | 2016-01-16T17:16:36 | 50,692,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | #! /usr/bin/env python
# encoding: utf-8
from __future__ import unicode_literals
import logging
import subprocess
import requests
import json
logging.basicConfig(level=logging.INFO, format="%(message)s")
SCRAPE_DIR = "scrape"
QUESTIONS_OUTFILE = 'questions.json'
ANSWERS_OUTFILE = 'answers.json'
ANSWERS = [
{'q... | [
"[email protected]"
] | |
26d5bc1377b3152d42dffb7588d782be1a251f02 | 55fefb8017a97d049f035f6771e1dfb6e7eb94a2 | /investmtype/migrations/0002_auto_20180912_1801.py | 7a085e28a5f0cfda3dea08219c2bed6a64ba48cb | [] | no_license | niravhjoshi/DjangoE2ISAapi | d90df84d1788e2f6a0335f707438afc543b02d56 | ff74799bdb122dbc3067b3f131663c0d932355c4 | refs/heads/master | 2020-03-25T18:01:04.356469 | 2019-04-23T12:02:32 | 2019-04-23T12:02:32 | 144,008,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-09-12 12:31
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('investmtype', '0001_initial'),
]
operations = [
migrations.RenameField(
... | [
"[email protected]"
] | |
a79b7926d63cc865874100159fc42f3ad2fd8148 | 3899dd3debab668ef0c4b91c12127e714bdf3d6d | /venv/Lib/site-packages/tensorflow/contrib/tpu/python/ops/tpu_ops.py | 2208c6894ebed35b51b8734a9349641c00d2b1bc | [] | no_license | SphericalPotatoInVacuum/CNNDDDD | b2f79521581a15d522d8bb52f81b731a3c6a4db4 | 03c5c0e7cb922f53f31025b7dd78287a19392824 | refs/heads/master | 2020-04-21T16:10:25.909319 | 2019-02-08T06:04:42 | 2019-02-08T06:04:42 | 169,691,960 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,803 | py | # Copyright 2017 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... | [
"[email protected]"
] | |
8985832a9acfc77b38e220afc8b2162c9d8ceccd | 30736dab9d8e682e5603d4803349144a5f6a84fb | /sdk/cognitiveservices/azure-cognitiveservices-search-websearch/azure/cognitiveservices/search/websearch/models/ranking_ranking_group_py3.py | 1a865ff2a79a51e178c6aa333a5a293db4672915 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | montgomp/azure-sdk-for-python | 6fcaffc59f4321852aa71109691e94ad38c66464 | 0ffb0b0de095b97cbc5b69309bbce0a3b91d3eb4 | refs/heads/master | 2020-12-06T11:08:01.683369 | 2020-01-07T23:24:42 | 2020-01-07T23:24:42 | 232,445,563 | 1 | 0 | MIT | 2020-01-08T00:45:33 | 2020-01-08T00:45:33 | null | UTF-8 | Python | false | false | 1,174 | 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 ... | [
"[email protected]"
] | |
36c5af91c16098ac83d608a74a948a0ebdc15c5d | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200321213612.py | acc2caebe079475068d5af0e9ab3be845b0ef9ba | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | import os
import subprocess
import re
from datetime import datetime
import time
numberOfTests = 10
tabuIteration = '5'
tabuDuration = '0'
numberOfCities = '10'
final_solution = []
print(f"\n\nTest for Tabu Search with this config: \n\tIterations : {tabuIteration} \n\tDuration(Tabu Memory): {tabuDuration} \n\tNumb... | [
"[email protected]"
] | |
fa1d5887fe6ef08cd2f3a5e63792396cc36a1d52 | 934235f70a390a3ba0d7b464cddd10872f31cda3 | /rango/server/.history/tango_with_django/tango_with_django/settings_20210102125402.py | 2b4db67f09db82b87456b7e41dffde57e8cabd20 | [] | no_license | deji100/Projects | 6919041ba23e77a5c74e5ab7692bfcee38ececcb | 17e64d954d1d7805be57ec5d8d4344e4944889e6 | refs/heads/master | 2023-04-30T05:25:03.143303 | 2021-05-20T15:00:43 | 2021-05-20T15:00:43 | 338,844,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | """
Django settings for tango_with_django project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
im... | [
"[email protected]"
] | |
9a16095b8acd59b41e7e8caefad9a50cec5f1b3d | 1f51c064f70a8ee303ebe3a64eb8e685f40aee88 | /lib/core/test_engine.py | 6c4d85439a526e58a2606752eb9c6071d5845b0e | [] | no_license | cxiang26/CVPR_2018_WAD | b35e74b238c214985810aca9d592b551deaf7638 | c1c631488349015d27b77437a840057833095af2 | refs/heads/master | 2020-03-24T23:29:51.861906 | 2018-08-01T10:11:27 | 2018-08-01T10:11:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,203 | py | # Copyright (c) 2017-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"[email protected]"
] | |
83958d051cfb91f802ae0406167170b153d49d14 | 98dc91f742e13ff4007ffade532c801ce40c6105 | /userblog/apps.py | d579959ef1b454682d87a7d8f0f44a52a4288990 | [] | no_license | divyajonna/My_First_Task | 6149d0da008e549e9f0d8ad52a90fe36e15775e3 | c8c5007a2eb9112cecd5b1e6df1ea449be4c02d9 | refs/heads/master | 2021-05-16T15:51:05.676726 | 2018-02-12T05:58:21 | 2018-02-12T05:58:21 | 119,347,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class UserblogConfig(AppConfig):
name = 'userblog'
| [
"[email protected]"
] | |
8e994b7fb88bd07b8dd63b38805b854bd33fb1a1 | 6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41 | /lib/phonenumbers/data/region_KG.py | 43602a368e7acf704db78ca08cc9b7ebbdb58f5d | [] | no_license | JamesBrace/InfluenceUWebLaunch | 549d0b48ff3259b139cb891a19cb8b5382ffe2c8 | 332d25940e4b1b45a7a2a8200f77c8413543b199 | refs/heads/master | 2021-09-04T04:08:47.594900 | 2018-01-15T16:49:29 | 2018-01-15T16:49:29 | 80,778,825 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | """Auto-generated file, do not edit by hand. KG metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_KG = PhoneMetadata(id='KG', country_code=996, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[235-8]\\d{8,9}', possible_number_patter... | [
"[email protected]"
] | |
3ddac5d0043c1c26ff2578686412fd41f81052d7 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/eis.py | e4c8c63e6e63638a617334a48198e48d02f03318 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
22c577217301c191b4d44fd8db9ea4e06b3e4e6d | d8673a8b9a34292b54285edbf900d7e130ec39b8 | /instant_generator/migrations/0006_auto_20200514_1040.py | 16f69bd9642ca9b3b15c7801742a1d7161ef6bae | [] | no_license | AzeezBello/toolx | 7383f43e500f300062193d8b43254c0b7af53dbf | daf6a7d585a4b72ace47b24ec86828fc6a2d2982 | refs/heads/master | 2022-03-07T10:12:32.915043 | 2022-02-16T00:01:18 | 2022-02-16T00:01:18 | 253,473,631 | 0 | 0 | null | 2022-02-16T00:02:45 | 2020-04-06T11:11:21 | HTML | UTF-8 | Python | false | false | 426 | py | # Generated by Django 2.2.9 on 2020-05-14 09:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instant_generator', '0005_auto_20200425_0018'),
]
operations = [
migrations.AlterField(
model_name='instantgenerator',
... | [
"[email protected]"
] | |
c41a8a3c97568c0f098dbb43a50bcf87af787237 | b742abb440174ec59f56a334f14871f3accc1743 | /util/IpUtil.py | ab987e3cf1d64a0ca66c52b6985f7680bc9bd341 | [] | no_license | sunshineywz123/baymax | 00e92b71b599df6ce39902652b78167a51100002 | 25518474cb09644c34febaf556fe8a0449dc7da4 | refs/heads/master | 2021-12-30T06:37:13.224221 | 2018-02-07T08:25:03 | 2018-02-07T08:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # -*- coding: utf-8 -*-
__author__ = 'likangwei'
import socket
def get_ip_address():
return socket.gethostbyname(socket.gethostname())#得到本地ip
def get_host_name():
return socket.gethostname()
print get_ip_address() | [
"[email protected]"
] | |
89c8c28987a6cd74eaa104ef9ddd9e566b65636f | 7dfabdddeb5b8f1628e445cdb6d536958c8bc85b | /pcdet/models/dense_heads/anchor_head_single_fpn_range.py | d406aacffd4357d40fa54af9f62af187b582c228 | [
"Apache-2.0"
] | permissive | vehxianfish/SRDAN_Open | d6ba16ebc201c9651fac16bc30f57dc3a740041f | 47c1bd9d2369d8e486b18a7aea220af7324c9011 | refs/heads/master | 2023-08-15T10:36:56.483018 | 2021-09-25T03:35:53 | 2021-09-25T03:35:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,341 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from .anchor_head_template import AnchorHeadTemplate
class GradReverse(torch.autograd.Function):
def __init__(self, lambd):
self.lambd = lambd
def forward(self, x):
return x.view_as(x)
def backward(self... | [
"[email protected]"
] | |
ecc1f1d2cd3a78e2dc7168fd9d413dc5f440fbe5 | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /fac/migrations/0088_folder_custom_form_data.py | 2743e0be6a25e3364aacb4075b2da20e62c2de44 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # Generated by Django 2.2.17 on 2020-11-24 10:54
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fac', '0087_project_custom_form_data'),
]
operations = [
migrations.AddField(
model_name='f... | [
"[email protected]"
] | |
7570fb3bb7d13173c86545c05e5965ec64f35c4c | 1b1190a127a21bfd096529d3a3f20d05151b2276 | /opsweb4/common/urls.py | d7b6911ed326a13da88a4b690cf0f28bab08413b | [] | no_license | cucy/zrdops4 | a9d37d9dd7cfba5a3ecb1180094621754d97c5e9 | f0609e90e5a944d30a65d6918b2bfcfd63a92c26 | refs/heads/master | 2021-01-19T14:39:54.315360 | 2017-09-24T04:01:27 | 2017-09-24T04:01:27 | 88,176,943 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
from common.views import success_view, error_view, IndexView
urlpatterns = [
# 通用视图
# 主页
url(r'^$', IndexView.as_view(), name='index'),... | [
"[email protected]"
] | |
5fbe5a1bfc9e491ef9f1597760db1d4c54b41b56 | f7ca89772fc3b19424f537895957cbf3fcafece3 | /nusa/version.py | b855b1a6a59a93d4da0487fc4064f1fdbc94ba7d | [
"MIT"
] | permissive | OrganizationUsername/nusa | d829d341da09bb7d10e7d4f630d63333c96ed2e0 | 05623a72b892330e4b0e059a03ac4614da934ce9 | refs/heads/master | 2022-12-20T11:51:14.221422 | 2020-10-07T19:10:25 | 2020-10-07T19:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | """
NuSA (Numerical Structural Analysis in Python)
Author: Pedro Jorge De Los Santos
E-mail: [email protected]
License: MIT License
"""
__version__ = "0.3.dev0" | [
"[email protected]"
] | |
5d85feea87db2cd7b9f58a5a1fb29a01ab6a72f2 | 32bae996c594282515193ecb2357feb4f3004944 | /sap/cli/datadefinition.py | 8ec403e875616f73661a190f86cd5fe392adeaa4 | [
"Apache-2.0"
] | permissive | corani/sapcli | 2559c59073d64285dfe606c0afe491826d2a72ea | 7e81776afa08be0c454c0f86754c8a9b5d938522 | refs/heads/master | 2022-11-13T12:27:44.016007 | 2020-06-08T11:19:40 | 2020-06-08T11:20:09 | 273,421,126 | 1 | 0 | Apache-2.0 | 2020-06-19T06:29:13 | 2020-06-19T06:29:12 | null | UTF-8 | Python | false | false | 954 | py | """ADT proxy for Data Definition (CDS)"""
import sap.adt
import sap.adt.wb
import sap.cli.core
import sap.cli.object
class CommandGroup(sap.cli.core.CommandGroup):
"""Adapter converting command line parameters to sap.adt.DataDefinition
methods calls.
"""
def __init__(self):
super(CommandG... | [
"[email protected]"
] | |
9a9deb90c6765a6bc613f4f39852d1b3fc01d628 | 0f850c7a6746174c3ecc20884e6dc7b2aa6bcce1 | /model.py | ca0e76717541a32c12900d843baad3651fbc293f | [] | no_license | wnd2da/launcher_gateone | 9e1831637606885374dcfeca36637b20fdcfcbbb | 601b00cdaf179e7cdd96e63f9aa8abd427f52cf9 | refs/heads/master | 2022-12-04T13:38:14.346940 | 2020-08-23T04:02:27 | 2020-08-23T04:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # -*- coding: utf-8 -*-
#########################################################
# python
import os
import traceback
import json
# third-party
# sjva 공용
from framework.logger import get_logger
from framework import db, app, path_app_root
# 패키지
from .plugin import package_name, logger
db_file = os.path.join(path_app... | [
"[email protected]"
] | |
30b010d2049deb9889ac634c2f45af497d8f3046 | 5a281cb78335e06c631181720546f6876005d4e5 | /ec2-api-8.0.0/ec2api/tests/unit/test_customer_gateway.py | e4dfd8ae776ef4561c265897a509d233ecc7cf74 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 5,305 | py | # Copyright 2014
# The Cloudscaling Group, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"Wayne [email protected]"
] | Wayne [email protected] |
60a83fbe0010450f8a95ef1138802bc95b62c8fa | 67b5c4a03c3da2808054cfabc4001f05c7fdac49 | /dataset/cifar_dataset.py | 7e78aa20301bc7fdaf7dd7f7f646b65b59594f87 | [] | no_license | dannieldwt/deep_learning_algorithm | 411b1ffef4fdea1e0a42a09bee82c68bab17bffc | e2a37a378c88e20560ef6c0e8187a751905a51b1 | refs/heads/master | 2022-04-10T03:46:19.788919 | 2020-01-18T14:16:14 | 2020-01-18T14:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,403 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 11 17:54:50 2019
@author: ubuntu
"""
import pickle
import numpy as np
from dataset.base_dataset import BasePytorchDataset
class Cifar10Dataset(BasePytorchDataset):
"""原版数据集地址http://www.cs.toronto.edu/~kriz/cifar.html
cifar10: 10个类别,每个... | [
"[email protected]"
] | |
f5472639f09abf2e99dd3af4f8b4e77684efe070 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit2433.py | e2e631040a9f7275ba486935a2c37c61f5898b14 | [
"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,149 | py | # qubit number=4
# total number=39
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_... | [
"[email protected]"
] | |
47bfcf0b643a946c7fdd64357993ae722e0afc73 | 14324a581c4f22c7ea8a96cc79725cdb84960e43 | /trees/utils/Standard_CART/CART_Continuous.py | 3b7032ee5bb900794c9dc9104f4b7ad9640fa519 | [] | no_license | dogger123/django-treeapi | a3f141f87bb515e4af4f820a80daf6bacc40199d | 942da122d6c9909c21321a1aea2849428ba47120 | refs/heads/master | 2020-05-22T13:20:22.798164 | 2019-05-13T06:45:13 | 2019-05-13T06:45:13 | 186,357,054 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,772 | py | import operator
import re
import json
import pymysql
#------------------------I.数据读取----------------------------
def readFromCSV(filename='data'):
f = open(filename+".csv")
datas = []
# 开始读取数据集
for line in f:
newline = line.strip('\n').split(',')
# 插入到datas
datas.append(newline) ... | [
"="
] | = |
bf46db0b0b805194fe8e6a4f4fd9f6d2f6736559 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200626130014.py | 2cde60173d6d8422f33af36b5ca36b8c888624ad | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 4,247 | py | # 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中
import requests
from bs4 import BeautifulSoup as bs
maoyanUrl = "https://maoyan.com/board/4";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {
'Conten... | [
"[email protected]"
] | |
bae48855210e299852060c2088e67bd9f761ceaa | f8b5aafac15f408a48fabf853a918015c927e6fe | /bk_tomo/venv/venv27/lib/python2.7/site-packages/ansible/plugins/connection/docker.py | f49d12bcc74208905d92af64bbc82e6a9ebf119d | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,357 | py | # Based on the chroot connection plugin by Maykel Moya
#
# Connection plugin for configuring docker containers
# (c) 2014, Lorin Hochstein
# (c) 2015, Leendert Brouwer
# (c) 2015, Toshio Kuratomi <[email protected]>
#
# Maintainer: Leendert Brouwer (https://github.com/objectified)
#
# This file is part of Ansible
#... | [
"[email protected]"
] | |
9fce71be596e167cbdbd8b915b98f9c62c586643 | a90aa4871684f6f24aa5b0daf2ece384418c748b | /basic/python/2_applica/3_scrapy/2_process/multiprocess.py | c422da3970f695c4de502a064be611270dd06869 | [] | no_license | Martians/code | fed5735b106963de79b18cc546624893665066cd | 653e2c595f4ac011aed7102ca26b842d4f6beaaf | refs/heads/master | 2021-07-11T19:22:24.858037 | 2019-02-22T13:04:55 | 2019-02-22T13:04:55 | 110,106,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,604 | py | # coding=utf-8
'''
方案:数据库记录网址信息,本地多进程拉取, 第三课
参考:https://github.com/hezhen/spider-course-4/multi-process
## Install
pip install ConfigParser
~/.pyenv/versions/3.6.5/lib/python3.6$ cp configparser.py ConfigParser.py
pip install mysql-connector
## Question
1. 下载过程中,发生的编码问题等
2. 遇... | [
"[email protected]"
] | |
47c7f38df6616f44f27f20887988c3be622a9975 | 0a21d5e72b4afbabcbf4ec0d65ea84cd8d6159c7 | /Contest/weekly-contest-179/A.py | ebd41441c424c583e8fdc4369c9093db724bcbc3 | [] | no_license | LuoJiaji/LeetCode-Demo | 193f27ba36c93f9030435874a145c63a81d3c0f8 | 78e6e87c01848a1dc71b7dc0716029ece5f35863 | refs/heads/master | 2020-06-24T03:03:33.366537 | 2020-04-05T02:09:41 | 2020-04-05T02:09:41 | 198,830,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | class Solution(object):
def generateTheString(self, n):
"""
:type n: int
:rtype: str
"""
ans = ''
if n % 2 == 1:
ans = 'a'*n
else:
ans = 'a'*(n-1) + 'b'
return ans
res = Solution().generateTheString(4)
print(res)
| [
"[email protected]"
] | |
61a48c806bd338b16b2b38e7ad2975e6901b5b30 | a7c0cc71e6da4615eca2c3d75117dad5b8dce8d3 | /export.py | 177102ba06cd51436420f1940dfd4e0c28205977 | [
"Apache-2.0"
] | permissive | CTFd/CTFd | 4b75207aeea3ed8d761cc6269c27a070693ab3ec | d8f0b9e602fca109cabe1895e847d39a46ce7429 | refs/heads/master | 2023-09-01T19:19:19.767862 | 2023-08-29T18:46:53 | 2023-08-29T18:46:53 | 28,681,142 | 4,593 | 2,273 | Apache-2.0 | 2023-09-13T18:24:37 | 2015-01-01T05:36:55 | Python | UTF-8 | Python | false | false | 770 | py | from CTFd import create_app
from CTFd.utils import config
from CTFd.utils.exports import export_ctf
import datetime
import sys
import shutil
app = create_app()
with app.app_context():
print(
"This file will be deleted in CTFd v4.0. Switch to using `python manage.py export_ctf`"
)
backup = export_... | [
"[email protected]"
] | |
41d081c5e295fcddccd0310aa469c46bfcbe51c5 | a5a81bc468d2b9d6a87c49701441cf6dacdaf039 | /tester/grabAndPlotLimits.py | 61aedf06e2b49f6165e7a313ba5233e52cf45152 | [] | no_license | truggles/CombineHarvester | 396833e57afe2a203c9c4ee5117b87c3397eb795 | 8721ef6752006999c014a86bb13e81402cda0662 | refs/heads/master | 2020-04-05T08:19:11.877201 | 2016-02-01T14:39:17 | 2016-02-01T14:39:17 | 50,054,454 | 1 | 1 | null | 2016-01-20T19:26:20 | 2016-01-20T19:26:20 | null | UTF-8 | Python | false | false | 3,210 | py | import ROOT
import array
from ROOT import gPad
masses1 = [80, 90, 100, 110, 120, 130, 140, 160, 180, 600, 900, 1000, 1200, 1500, 2900, 3200]
ROOT.gROOT.SetBatch(True)
def plotLimits( signal, channel ) :
#if channel == 'em' or channel == 'tt' or channel == 'mt' : masses = masses1
masses = masses1
#limi... | [
"[email protected]"
] | |
9af6e42d83edadd6a400d931ac653f5aef03369c | c4cde4e3538b455e558f8896f90f05ea39408a4d | /helpers/rovershare.py | f6da69a9b6a767b6821333845c72ca02aac1d2d7 | [] | no_license | sumsted/rover | 0380b26b3eb0bf6426d28221f077169bb740456d | d658c35d45cf887b23e299d3ff570d9cdc856ab2 | refs/heads/master | 2021-01-01T20:01:37.512806 | 2017-12-04T12:16:04 | 2017-12-04T12:16:04 | 98,741,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,941 | py | from datetime import datetime
import json
import time
import redis
from helpers import settings
# todo make singleton
class RoverShare:
host = settings.share.host
port = settings.share.port
command_queue_key = settings.share.command_queue_key
sense_key = settings.share.sense_key
sense_queue_key =... | [
"[email protected]"
] | |
14b7aae7767aad49409ab0944c50817bd8fbdaee | 70ab3ee89cafa7f4882a6944e6ec335210875d30 | /run_single_basketball_leyou.py | 6ccf32d3874091547ad3bd0b9bab6d23628562ba | [] | no_license | SXL5519/caipiao1.0_1 | 3fa1fecd00576c36f37e6af21f0fe9b326289a6a | 2db4387c5bad536cce99417041fbd34a699aa2cc | refs/heads/master | 2021-10-10T07:39:45.127902 | 2019-01-08T09:32:47 | 2019-01-08T09:32:59 | 164,613,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import unittest,time
from HTMLTestRunner_jpg import HTMLTestRunner
from modle.function import send_mail,screen_shot,logfile
case_dir = "./test_case/Leyou"
pattern="*_single_basketball_*.py"
discover = unittest.defaultTestLoader.discover(case_dir,pattern)
logfile()
if __name__ =='__main__':
#日期格式化
times = tim... | [
"[email protected]"
] | |
52e5f02be0348d286eaa45d1457e68ff9698b3b6 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/mgr/kpi/battleeventjoindaily.py | 579ff996a58470e10b0a683fa40021637adbad39 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.mgr.kpi.base import KpiHandler
from platinumegg.app.cabaret.util.api import BackendApi
import settings
from platinumegg.app.cabaret.models.battleevent.BattleEvent import BattleEventMaster
from platinumegg.app.cabaret.views.mgr.model_edit import AppModelChoiceFi... | [
"[email protected]"
] | |
58c7ff2a6067216bc0386f2a43ff30ae25929f09 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/ankiandroid/testcase/interestcases/testcase1_3_0_3_3_004.py | a03762f34cada6a568fc0fd1d438871d03d00428 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,309 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"[email protected]"
] | |
7aac97bd18585740470971643e94c41583982cc6 | b096dbccb31d3bd181259e930816964c71034ff4 | /tests/test_base/test_signature.py | 44e7721141d1ad15178fb3820f4cc6706d18aad4 | [] | no_license | cosphere-org/lily | b68f95720381a69ce0caa5f47fca461b3f5242a9 | f6a8281e10eedcccb86fcf3a26aaf282d91f70f4 | refs/heads/master | 2023-02-18T13:49:03.568989 | 2022-06-30T09:58:23 | 2022-06-30T09:58:23 | 175,789,374 | 6 | 0 | null | 2023-02-15T18:49:10 | 2019-03-15T09:28:05 | Python | UTF-8 | Python | false | false | 3,362 | py |
from datetime import datetime
import string
from unittest.mock import call
from itsdangerous import SignatureExpired, URLSafeTimedSerializer
import pytest
from lily.base import signature
from lily.base.events import EventFactory
#
# sign_payload
#
def test_sign_payload__calls_dumps_correctly(mocker):
dumps_mo... | [
"[email protected]"
] | |
605b8ac68ca36f19a6c83959423f5e17545569cc | 6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41 | /lib/phonenumbers/shortdata/region_RW.py | 34419d07f20772809e8c065ece534282a63aab08 | [] | no_license | JamesBrace/InfluenceUWebLaunch | 549d0b48ff3259b139cb891a19cb8b5382ffe2c8 | 332d25940e4b1b45a7a2a8200f77c8413543b199 | refs/heads/master | 2021-09-04T04:08:47.594900 | 2018-01-15T16:49:29 | 2018-01-15T16:49:29 | 80,778,825 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """Auto-generated file, do not edit by hand. RW metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_RW = PhoneMetadata(id='RW', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2}', possible_number_pattern='\\d{... | [
"[email protected]"
] | |
b3293d311675fab17255febd8777666c78c11a7c | 42d3e676cb9da325712dd54001a8fdda1661d1e1 | /OutOfAfrica.py | 8459020897373768d0f5f6ef2277657bb5c6f9b3 | [] | no_license | janaobsteter/msprime | 5f139f2b101e7246e53a6d0baaff1f28cf1dfa6c | e96ae69720100d544f69384d19a28fcca07a9c1d | refs/heads/master | 2022-08-03T11:35:51.759317 | 2020-05-25T07:59:49 | 2020-05-25T07:59:49 | 266,719,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | import math
import msprime
# First we set out the maximum likelihood values of the various parameters
# given in Table 1.
N_A = 7300
N_B = 2100
N_AF = 12300
N_EU0 = 1000
N_AS0 = 510
# Times are provided in years, so we convert into generations.
generation_time = 25
T_AF = 220e3 / generation_time #
T_B = 140e3 / gener... | [
"[email protected]"
] | |
0f506c20beb65be6f34ecb5fcb1bcacae5c97864 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class2922.py | 8052c4b482d939ce0e7613f8c75fb9223b0a120a | [
"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,299 | py | # qubit number=4
# total number=42
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_... | [
"[email protected]"
] | |
f5bdb35b232eabf76f6685808f87bd5839a6ca32 | 392651974f2e6d006618b64aac6cc2613ba01883 | /accounts/admin.py | 5601dfa75500f8614dcb52e35fbc4181ec32ee53 | [
"MIT",
"Apache-2.0"
] | permissive | davidjrichardson/uwcs-zarya | 654266dc67deaacd6dba2e390c6dbc85a9525d83 | ab0a94540bf496531dd6b13fe7d313badc4a353c | refs/heads/master | 2022-09-29T12:58:14.542328 | 2021-03-10T17:07:06 | 2021-03-10T21:24:29 | 63,612,819 | 7 | 6 | MIT | 2022-08-30T20:57:36 | 2016-07-18T15:04:54 | Python | UTF-8 | Python | false | false | 1,088 | py | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from accounts.models import CompsocUser, ShellAccount, DatabaseAccount, ExecPlacement, ExecPosition
class CompsocUserInline(admin.StackedInline):
model = CompsocUser
... | [
"[email protected]"
] | |
77764321c46b85ea547f1665e7b53ed0b2e9e1d9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/468/usersdata/301/111541/submittedfiles/Av2_Parte3.py | a5ede4cca77b944784daf1e730e8b2f44e7d0ec2 | [] | 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 | 183 | py | # -*- coding: utf-8 -*-
a=[]
m=int(input('a quantidade de listas: '))
for i in range(0,m,1):
int(input('digite os elemnetos: '))
a.append(m)
c=sum(a)
b=len(a)
print(a)
| [
"[email protected]"
] | |
d16a63615e60bf2d1563cbf42caf63ac028d8eb7 | 56782846ce12a4aa65c0cdd41231f82fb09bb2e2 | /python/14940.py | 08e7b50de71974b1f76b31e33f87fbaefb6d109c | [] | no_license | Zigje9/Algorithm_study | 2eb7255ffae734954944e549ccaab7c4573c3b99 | a6c526b42f8c0e01daf1d699f55c9b0a78741be8 | refs/heads/master | 2023-08-14T02:08:26.395265 | 2021-09-23T01:10:31 | 2021-09-23T01:10:31 | 256,192,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import sys
from collections import deque
N, M = map(int, sys.stdin.readline().split())
move_x = [1, 0, -1, 0]
move_y = [0, -1, 0, 1]
board = []
for _ in range(N):
board.append(list(map(int, sys.stdin.readline().split())))
def get_start():
for i in range(N):
for j in range(M):
if board[... | [
"[email protected]"
] | |
0f505cac33fd32fb549df9455005938e8b0736e7 | 86e45d6f82210888601a8063c4a491a36c886b60 | /channels/management/commands/runserver.py | 34154b95ace15eaa6c7c0a54bb444472e8d09fae | [
"BSD-3-Clause"
] | permissive | wengole/channels | 68dfb1776f05bd5e8bafd82299b6274fbf932f4e | 21b54e7db8f08a61af934a56d6832a3065d37676 | refs/heads/master | 2021-01-15T15:54:04.794407 | 2015-11-07T10:49:47 | 2015-11-07T12:47:26 | 45,731,612 | 0 | 0 | null | 2015-11-07T10:15:27 | 2015-11-07T10:15:27 | null | UTF-8 | Python | false | false | 1,851 | py | import django
import threading
from django.core.management.commands.runserver import Command as RunserverCommand
from django.core.management import CommandError
from channels import channel_backends, DEFAULT_CHANNEL_BACKEND
from channels.worker import Worker
from channels.adapters import UrlConsumer
from channels.inter... | [
"[email protected]"
] | |
19615e4337da149ca2ed1b253545b7f5e66843d1 | 4f0beffcf200dd0b42cc192a4a2b9c2d0f0a2a42 | /rewrite/dsl/_dyacc.py | c7de0002f3dc35150c1a3e729ff2b20f0947c9d7 | [
"BSD-2-Clause"
] | permissive | rebcabin/pyrewrite | d11a2385920a8b375e9f3f7a4cc81ed8a178cf28 | 226d139ff361b095d46a58c65bc345cd18443008 | refs/heads/master | 2020-03-26T00:09:40.835150 | 2013-02-13T16:46:24 | 2013-02-13T16:46:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,270 | py |
# /home/stephen/continuum/pyrewrite/rewrite/dsl/_dyacc.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = 'o\xdc).WL\x02\xb9\xbb\xdb=\xab\x84j\xd8l'
_lr_action_items = {'NAME':([0,2,3,4,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,31,3... | [
"[email protected]"
] | |
18ca4fe49c3a373eff2d58cd4615322d002593fb | d3efc82dfa61fb82e47c82d52c838b38b076084c | /crossmarketetf/crossmarket_redemption_HA/YW_CETFSS_SHSH_044.py | 51dcf600f3979f6907a6dc09c820765634ed9b6c | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,671 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test")
from crossmarketetf.cetfservice.cetf_main_service import *
from crossmarketetf.cetfservice.cetf_get_components_asset import *
from crossmarketetf.cetfservice.cetf_utils import *
from crossmarketetf.cetfmysql.query_ce... | [
"[email protected]"
] | |
0266bfd3dabb66fbc32785187d7dd62dcd182a82 | 5399dd4580ea3f528753bc8b52a981743d62f8bb | /ML/m39_pickle.py | 957e4037bd4d833cbf848e3087f487fa8f253ce3 | [] | no_license | iwillbeaprogramer/Study | 3ac7c118ffe3981d78b4ad263cb62432eae13970 | 3bfe571da5bbfc545b994e5878e217f9306bde14 | refs/heads/main | 2023-05-07T16:31:05.564973 | 2021-05-27T14:50:00 | 2021-05-27T14:50:00 | 324,044,441 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # eval_set
from xgboost import XGBClassifier,XGBRegressor
from sklearn.datasets import load_boston, load_breast_cancer
from sklearn.model_selection import train_test_split
import numpy as np
from sklearn.metrics import r2_score,accuracy_score,mean_squared_error
datasets = load_boston()
x = datasets.data
y = datasets.... | [
"[email protected]"
] | |
2816391722086df3dfeffc573cf0446551c2149b | 4bed9030031fc99f6ea3d5267bd9e773f54320f8 | /sparse/repos/MaayanLab/clustergrammer-widget/setup.py | 0dd34fb3172e27c6f17267a1c21facac86ecae9f | [
"BSD-3-Clause"
] | permissive | yuvipanda/mybinder.org-analytics | c5f4b939541d29727bc8d3c023b4d140de756f69 | 7b654e3e21dea790505c626d688aa15640ea5808 | refs/heads/master | 2021-06-13T05:49:12.447172 | 2018-12-22T21:48:12 | 2018-12-22T21:48:12 | 162,839,358 | 1 | 1 | BSD-3-Clause | 2021-06-10T21:05:50 | 2018-12-22T20:01:52 | Jupyter Notebook | UTF-8 | Python | false | false | 5,515 | py | from __future__ import print_function
from setuptools import setup, find_packages, Command
from setuptools.command.sdist import sdist
from setuptools.command.build_py import build_py
from setuptools.command.egg_info import egg_info
from subprocess import check_call
import os
import sys
import platform
here = os.path.d... | [
"[email protected]"
] | |
73c6fbe202adb37cfaa60701dbf155423a36249b | a775bb0ef2347a91aa1e6236f0e6eae6512a84ad | /src/robosub2019/armer.py | cbf0ec2d09da56ca925e8bb07392e777ba257059 | [] | no_license | Tartan-AUV/tartan-sub | 66376e163681bd7dac47c62e41669c0c842badc0 | 0a05156a887cdd6467813a358973cc23e6e55227 | refs/heads/master | 2020-04-06T16:45:04.396871 | 2019-10-19T17:46:37 | 2019-10-19T17:46:37 | 157,632,649 | 0 | 4 | null | 2019-11-03T20:26:47 | 2018-11-15T01:10:48 | Python | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import Bool
class Armer(object):
def __init__(self, run_config):
self.config = run_config
self.pub = rospy.Publisher(self.config.arming_topic, Bool, queue_size=1)
self.sub = rospy.Subscriber(self.config.arming_topic, Bool, self.callback)... | [
"[email protected]"
] | |
0b330a3afbbf55128aa6e962b16c14c7c7eaf126 | 99b0631baa2fd9ab2455d848b47febf581916272 | /study_code/learn_nonlocal.py | 108dc21fa3015ab9051ced4645bbf529a466aeb5 | [] | no_license | seceast/PyProjects | a934e366cb619f2610d75b9a0fb47d818814a4de | 7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1 | refs/heads/master | 2023-03-07T22:23:21.229489 | 2021-02-25T05:37:58 | 2021-02-25T05:37:58 | 265,480,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """
-*- coding: utf-8 -*-
@author: yangyd
@file: learn_nonlocal.py
@time: 2019/10/14 0014 14:33
"""
def outner():
b = 10
def inner():
# 声明外部函数局部变量,不声明可以使用b但是无法修改b
nonlocal b
print(f'old_var = {b}')
b = 20
print(f'new_bar = {b}')
inner()
outner()
| [
"[email protected]"
] | |
10dc28f9618ba9669fbf73bb52f0188b41ca1653 | 4bc2d855558ccb962991f997e9779919031687dd | /capstone/causalmodel/migrations/0026_suggestedintervention_is_priority.py | fa89dff57a9a21ae61b0079b3a2bd148a737e427 | [] | no_license | jmblontoc/Likha-Capstone | 80081e44b7ad6457eb776432e623c6db8b7a17e2 | e1c32911b58cd1419c8e1a554ac32210456d201d | refs/heads/master | 2022-12-10T03:26:32.946638 | 2018-12-09T04:33:10 | 2018-12-09T04:33:10 | 134,726,142 | 0 | 1 | null | 2022-11-25T23:52:42 | 2018-05-24T14:21:36 | Python | UTF-8 | Python | false | false | 413 | py | # Generated by Django 2.1b1 on 2018-11-01 11:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('causalmodel', '0025_suggestedintervention'),
]
operations = [
migrations.AddField(
model_name='suggestedintervention',
... | [
"[email protected]"
] | |
3f52cb7f354134071ca7b9aa0ee2b810466b0d7b | d76cf9484f93c1822c71c87980e6f76a2c0f5786 | /application/api/superclass/superclasses.py | e73ead1271653b8a6b572471b3917a103589597d | [] | no_license | chris-hamberg/twitter | a02b0278eab609d696a84f39ea771a5936379561 | b806de4e073a0f4791cde93111c69c4d44b6844a | refs/heads/master | 2022-12-14T19:06:26.221176 | 2019-12-13T21:44:23 | 2019-12-13T21:44:23 | 172,611,261 | 0 | 0 | null | 2022-12-08T04:51:18 | 2019-02-26T01:02:13 | Python | UTF-8 | Python | false | false | 4,721 | py | try:
from twitter.application.api.superclass.abstract_base_class import AbstractBase
from twitter.application.subprocess.base64encode import base64encode
from twitter.application.subprocess.connection import requests
except ModuleNotFoundError as main:
from application.api.superclass.abstract_base_class... | [
"[email protected]"
] | |
387a27431bd3d1af9f529f413813a0a29f54f3d5 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/logic/v20150801preview/get_integration_account_certificate.py | 8d5432fc9120d562473d196d12733d96b4a0883b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,163 | 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... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.