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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
732ccf2811be54afbd199a94e72658e129c6f81b | 8e09c9562173cb40fe26912fcdb1d4c6c08897d7 | /tfx/components/evaluator/component_test.py | 52d28474308225045d848dd0c656642a98ec0934 | [
"Apache-2.0"
] | permissive | robertlugg/tfx | 6a0050f6f1876ba5d53e45fd0d80acac2441187d | 49778c502bb6668ed8230877407fe40ae3a99a06 | refs/heads/master | 2020-07-27T17:00:47.355938 | 2019-09-16T23:00:02 | 2019-09-16T23:00:32 | 209,164,014 | 0 | 0 | Apache-2.0 | 2019-09-17T21:58:47 | 2019-09-17T21:58:46 | null | UTF-8 | Python | false | false | 1,928 | py | # Copyright 2019 Google LLC. 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 law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
f55510e0cc367aad9ebfda9b2a6faa0435ae1473 | 2119953dd04916fa2adf3f42a487f3f9754d1f66 | /modules/sandbox/docker/geo-web-viz/app.py | 9034f8727870c8bdee5a64203363aecd3f7ec266 | [
"MIT"
] | permissive | sarahwertz/sepal | 91d12e3317cd07ad4c99469d5b6211d74013b330 | efbbc33ac99db332fc13f9dfd4c777a8d2c1b41e | refs/heads/master | 2020-06-11T07:42:08.835556 | 2019-05-27T14:21:28 | 2019-05-27T14:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | import json
import logging
import traceback
import sys
from flask import Flask, Blueprint, request, Response
import config
import layers
import raster
import render
from config import to_file
app = Flask(__name__)
http = Blueprint(__name__, __name__)
session_state = {'layer_by_id': {}, 'index_by_id': {}, 'renderers'... | [
"daniel.wiell@fao.org"
] | daniel.wiell@fao.org |
efc55a073b926991fd43116f9fdd132aabaee02c | 55a4573cdeb116b20a625a398af04337f180d598 | /instrument/ifmessage.py | a4c5e4261d01cb8b46c95bd26d5bfe772ae5403e | [
"Unlicense"
] | permissive | NOAA-PMEL/omega-trh-daq | f506e4c968b7942dccb6cf012c377c3719a04143 | 98a18c62130af36d43c2882659e65321c3a98529 | refs/heads/master | 2020-04-02T11:10:18.632072 | 2019-07-23T15:33:39 | 2019-07-23T15:33:39 | 154,374,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 9 09:33:42 2018
@author: derek
"""
class InterfaceMessage():
imFirstIndex = 0
imLastIndex = 1
imAllIndex = 2
# interface STATES
imWaitingToConnect = 'WaitingToConnect'
imConnected = 'Connected'
imDisconnected = 'Disco... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
14867c67fd1d822563fe8ecb1841dce728a316df | 1c801375ead766790f5c097081a1bbbc6a593a9e | /baseSpider/算法/随机获取1000此列表元素并统计次数.py | f9d47c387d183b937269c6fbd47b14e83dfe9a35 | [] | no_license | llf-1996/python3Spider | 5803d1f42b660c7c2643bbc31f17126ac06e7ceb | 4621db8c7383940f8e60754d6640406101141095 | refs/heads/master | 2023-06-01T04:31:27.555140 | 2020-12-13T09:38:19 | 2020-12-13T09:38:19 | 156,145,515 | 2 | 3 | null | 2023-05-23T00:12:59 | 2018-11-05T01:48:46 | Python | UTF-8 | Python | false | false | 527 | py | '''
随机获取一个字符串列表中的字符串,求获取一千次的情况下,各字符串被随机到的次数。
'''
__author__ = 'llf'
import random
from collections import Counter
c = Counter()
ll = ['a', 'b']
for i in range(1000):
a = random.choice(ll)
c[a] = c[a] + 1
print('结果:', type(c), dir(c), c)
'''
<class 'collections.Counter'>
[
'clear', 'copy', 'elements', 'fr... | [
"2367746876@qq.com"
] | 2367746876@qq.com |
2351627cba429794c787f1b8b52c0bf5472cd577 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/mchjos007/question2.py | 95a03b09fd80edb8ce36c1da69e53ec942c2d03e | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | filein = open (input("Enter the input filename:\n"), "r")
lines = filein.readlines()
filein.close()
fileOut = open(input("Enter the output filename:\n"),"w")
width = eval(input("Enter the line width:\n"))
finalFormattedString=""
linecount= 0
currentlineinprogress = ""
for currentline in lines:
wordcount=0 ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
e25b350871e12d31f6b6bc62c04e5aba3c26130e | 5db3009eb36afe7110ed5402be3a9e570c58c540 | /my_plugins/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/completion/docstring.py | 2b9f3481cf5fd27532a2eb46fe7d83f487fbd3c2 | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | imfangli/vimrc | ced2c6caece1cf19421c6ea7deb017bec4ca3a27 | d2d14e7d083d70cc8627ddccb5b99c53c3c38be3 | refs/heads/master | 2022-02-01T00:34:31.855421 | 2022-01-22T15:57:28 | 2022-01-22T15:57:28 | 211,766,038 | 2 | 0 | MIT | 2019-09-30T03:15:03 | 2019-09-30T03:15:02 | null | UTF-8 | Python | false | false | 3,723 | py | """ Test docstrings in functions and classes, which are used to infer types """
# -----------------
# sphinx style
# -----------------
def sphinxy(a, b, c, d, x):
""" asdfasdf
:param a: blablabla
:type a: str
:type b: (str, int)
:type c: random.Random
:type d: :class:`random.Random`
:param ... | [
"fangli@zhiai2019.com"
] | fangli@zhiai2019.com |
b763c6f7ccf02fc091dbceba1f1aa1bff14ba011 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /8qD23E6XRMaWhyJ5z_9.py | 4d2e12540b5fba5e913c81d0957e9d467412bb06 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py |
def happiness_number(s):
happy = 0
sad = 0
happy += s.count(":)")
happy += s.count("(:")
sad -= s.count(":(")
sad -= s.count("):")
return happy + sad
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ad7b0b5fccd2951a4d8e3d28056322b5a64c1f14 | f9646f1a269b0108b174b68172424f19ea563da5 | /lande/utilities/shell.py | b81a52fb5394cf59fcfe24f8cce4cf478e85e955 | [] | no_license | zimmerst/PhD-python | 07a4ef2dd66e2bc9ac08861a04acbf934cb0ae49 | 21d24c0ae70925201b05f73c8044cc39639f8859 | refs/heads/master | 2020-12-26T04:56:27.165230 | 2014-01-27T00:55:17 | 2014-01-27T00:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py |
def format_command(*args, **kwargs):
r""" Create a string suitable for running a shell program command where
*args are the positional arguments for the command and
**kwargs are the keyword arguments for the script
For example:
>>> print format_command('ls','-al', '--author')... | [
"lande@37a9682d-6443-41a2-8582-b44379b6e86f"
] | lande@37a9682d-6443-41a2-8582-b44379b6e86f |
579528bb6dac8b7a786b56c7fa8aebcbc771d0bc | dd15b5ed1050bdd6de3d9a0ee0c448d2ccba09e0 | /assets/python/mm_surface.py | f39a152bc61b12bf8992ad5c81b8cbbfa09dac2c | [] | no_license | rblack42/nffs-2021-symposium | 7f5c581fb46c23dd6896a37e0ac429b22d9de823 | 496696a43958fdf6ad5870b730675ed0b097e8cc | refs/heads/master | 2023-02-24T02:16:01.579345 | 2021-01-27T21:47:15 | 2021-01-27T21:47:15 | 329,161,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | import math
class Surface(object):
def __init__(self,
span, # with dihedral
chord, # root chord
camber, # root camber
tip_radius, # outer LE tip radius
center_span, # center section span (<= span)
tip_elevation # dihedral tip elev... | [
"roie.black@gmail.com"
] | roie.black@gmail.com |
e54990b791469e8f9788843e62d9cbd5ba1586b7 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Py Box/Games/Connect4.py | f10c212bbe6d558099c3a54e5c383f2009f477de | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:1559de38727aac969fef6c397825e86b6e68b16dacaafbe4b2f54499954aaaa9
size 5271
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
fa751f128d9ce6cc8de27b5d0d8262f701ca0df7 | 1dc727f5b326dd984962efa4d982ed9fe036c8fc | /cmsplugin_hanz_card/cms_plugins.py | 9342ebd45a4d621b861df6bbe5db794242c93700 | [] | no_license | hanztura/iamhanz | 2a7380dfe5aa9f05d72fdc1d77d77c950692d30c | 1aeee4c3404ed5048a48187e8b75f0e958c042ba | refs/heads/master | 2021-08-30T22:51:53.916315 | 2017-12-19T18:13:44 | 2017-12-19T18:13:44 | 113,453,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from django.utils.translation import ugettext as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cmsplugin_filer_image.cms_plugins import FilerImagePlugin
from .models import Card
from .forms import CardForm
@plugin_pool.register_plugin
class CardPlugin(FilerImagePlugin):
... | [
"hctura.official@gmail.com"
] | hctura.official@gmail.com |
0af95378e0e392f99cf06587dc97eef7e8859d13 | ef2ea1152afc07e1341abdc99b037f2c803a0a68 | /test_cnn.py | 6de00fafda4942ffd6bbc0f62aafb20aaa792164 | [
"Apache-2.0"
] | permissive | Diriba-Getch/CNN-Multi-Label-Text-Classificati2on | 484a82ed66e7266fb565ebe834e2c7842d1d2f91 | 0792c0f244b8190e097da42e8719c8bb03573e14 | refs/heads/master | 2023-05-14T16:22:32.973452 | 2021-05-27T14:47:21 | 2021-05-27T14:47:21 | 362,522,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,167 | py | # -*- coding:utf-8 -*-
import os
import time
import numpy as np
import tensorflow as tf
import data_helpers
# Parameters
# ==================================================
logger = data_helpers.logger_fn('tflog', 'test-{}.log'.format(time.asctime()))
MODEL = input("☛ Please input the model file you want to test, ... | [
"chinawolfman@hotmail.com"
] | chinawolfman@hotmail.com |
20bb0ef25901482c47de8542f21e7e78fb02f09f | 614cad3588af9c0e51e0bb98963075e3195e92f5 | /models/vote_net/backbone_module.py | 674167186b7eb5fdbacd2d4702c1c38abea4bcc9 | [] | no_license | dragonlong/haoi-pose | 2810dae7f9afd0a26b3d0a5962fd9ae8a5abac58 | 43388efd911feecde588b27a753de353b8e28265 | refs/heads/master | 2023-07-01T14:18:29.029484 | 2021-08-10T10:57:42 | 2021-08-10T10:57:42 | 294,602,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import sys
import os
BASE_DIR = os.path.dirname(os.path... | [
"lxiaol9@vt.edu"
] | lxiaol9@vt.edu |
d0c04d8d6b0caebcc5131c6d7c9185c6da08fb8a | b7ebcfa8429948745dbd9fb11f6d13c6905e9aa1 | /lib/panda/_obj.py | fd7b9191f276e967f2b4dc2a6fbb176e63be53ec | [] | no_license | SiewYan/PandaTree | c00c83a92044b59d460dd2d9a4319eef9f777045 | 5d2da2dc5d419c498a3a14870197aad360d6b071 | refs/heads/master | 2020-12-30T12:35:36.718617 | 2018-02-01T16:25:54 | 2018-02-01T16:25:54 | 91,395,990 | 0 | 1 | null | 2017-05-16T00:16:27 | 2017-05-16T00:16:27 | null | UTF-8 | Python | false | false | 2,279 | py | from base import Definition
from oneliner import Include
from constexpr import Constant, Enum
from refbranch import RefBranch
from refvbranch import RefVectorBranch
from generic import GenericBranch
from objbranch import ObjBranch
from branch import Branch
from reference import Reference
from function import Function
f... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
31d9a115cbd2a43f5ea11e98d4b3a4cde1224566 | 6bdb32ddbd72c4337dab12002ff05d6966538448 | /gridpack_folder/mc_request/LHEProducer/Spin-0/Radion_ZZ_ZlepZhad/Radion_ZZ_ZlepZhad_narrow_M2500_13TeV-madgraph_cff.py | 55b8ce6b6aafef4854d46112ee4cdb202e8e7861 | [] | no_license | cyrilbecot/DibosonBSMSignal_13TeV | 71db480de274c893ba41453025d01bfafa19e340 | d8e685c40b16cde68d25fef9af257c90bee635ba | refs/heads/master | 2021-01-11T10:17:05.447035 | 2016-08-17T13:32:12 | 2016-08-17T13:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/b9fddd83b7d8e490347744408902940547e8135f/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-0/Radion_ZZ_ZlepZhad/Radion_ZZ_ZlepZhad_narrow_M2500
externalLHEProducer = cms.EDProducer("ExternalLHEProdu... | [
"sudha.ahuja@cern.ch"
] | sudha.ahuja@cern.ch |
d3fc31344ad05d1cccd859ad51a3d6332059f748 | 8b7559f7b69173109d7b6e89ab912dbb8b675c3f | /main/tests/test_models.py | 104c45dcd9bc75e5d3b2024147d13fa149a12099 | [] | no_license | GoodnessEzeokafor/django-bookstore | 7859b74ad0bddd32415b6bd917d37c008ba38a73 | dc47e7fe201cf2a62a93c30730fa1e72a6707f93 | refs/heads/master | 2023-02-14T14:13:58.941227 | 2021-01-08T10:14:29 | 2021-01-08T10:14:29 | 327,135,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from decimal import Decimal
from django.test import TestCase
from main import models
class TestModel(TestCase):
def test_active_manager_works(self):
models.Product.objects.create(
name="The cathedral and the bazaar",
price=Decimal("10.0")
)
models.Product.objects.cre... | [
"gootech442@yahoo.com"
] | gootech442@yahoo.com |
65da8f31eec34e35df36db0edc77988d9760b5bb | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_plat_product_get_list_request.py | f8948ba21e7402d29e9aed6e09e6cc8e9cb8dcca | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 738 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.platproduct.model.plat_product_get_list_request import PlatProductGetListRequest
class TestPlatProductGetListRequest(unittest.TestCase):
... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
456a38ad9b87e1b826c521e146df928c90163e88 | 0fbd56d4a2ee512cb47f557bea310618249a3d2e | /official/vision/beta/modeling/layers/roi_sampler.py | 46b4c349839f207291fc2ca42a601d9eaabce92c | [
"Apache-2.0"
] | permissive | joppemassant/models | 9968f74f5c48096f3b2a65e6864f84c0181465bb | b2a6712cbe6eb9a8639f01906e187fa265f3f48e | refs/heads/master | 2022-12-10T01:29:31.653430 | 2020-09-11T11:26:59 | 2020-09-11T11:26:59 | 294,675,920 | 1 | 1 | Apache-2.0 | 2020-09-11T11:21:51 | 2020-09-11T11:21:51 | null | UTF-8 | Python | false | false | 5,978 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
1dba441eba9e895c8b00e03309a0bcd68e736e31 | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/mojo/public/tools/bindings/pylib/mojom/generate/test_support.py | eb394619d2bf4855522d7157dff0d13e87c59850 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 6,092 | py | # Copyright 2013 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.
import sys
import traceback
import module as mojom
# Support for writing mojom test cases.
# RunTest(fn) will execute fn, catching any exceptions. fn shoul... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
d8f8388ccf0bde786d3c4b612af5b9f908999b36 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/errors/types/keyword_plan_idea_error.py | 7317f5950bfe3158aa862fb8e1d10e4d1711708a | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
3123b2e166e0c4d6732e9496e51de271ea7f14b1 | 512f48fdcfa78e322526cf47163110009b84bf73 | /rapid7vmconsole/models/privileges.py | 62da3458bc049d084294218fcc09b1e20475b6aa | [
"MIT"
] | permissive | confluentinc/vm-console-client-python | 9a0f540c0113acf68ee9dc914715bc255e4d99f4 | ccbd944a0e0333c73e098b769fe4c82755d29874 | refs/heads/master | 2023-07-18T10:33:58.909287 | 2021-09-02T20:52:20 | 2021-09-02T20:52:20 | 402,559,283 | 0 | 0 | MIT | 2021-09-02T20:49:56 | 2021-09-02T20:49:56 | null | UTF-8 | Python | false | false | 4,944 | py | # coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Privileges(object):
"""NOTE: This class is auto generated by the swag... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
8c462a9504616211d1a864ac6f1a00d0a2cba936 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pypos/pypos-000/pypos.py | 1d36f8dacb776baa51da76f15440425f8f40a5f8 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,615 | py | #!/usr/bin/env python
import os, sys, getopt, signal
import gobject, gtk, pango
# ------------------------------------------------------------------------
# This is open source sticker program. Written in python.
GAP = 4 # Gap in pixels
TABSTOP = 4
FGCOLOR = "#000000"
BGCOLOR = "#ffff88" ... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
e9e3cda5266717a5660707d3e5cbb04a54cdf11c | 34a7e30c3ceafb06c9a21c59c88c3ea5a6e91388 | /python/datagen/addPriority.py | dbbff881d7bd7fd56ded7dd0a280ef0ad32f27fd | [] | no_license | DinoBektesevic/DinoBektesevic.github.io | 91643f54411d214e7552e9ef2e1e0fbece5fb841 | be8cc8b3b2b58cbc1517593377228ff541fd515c | refs/heads/main | 2023-05-29T22:39:23.801299 | 2021-06-10T02:55:12 | 2021-06-10T02:55:12 | 364,038,461 | 0 | 0 | null | 2021-05-10T20:30:01 | 2021-05-03T19:27:07 | HTML | UTF-8 | Python | false | false | 1,301 | py | import glob
import pandas as pd
import numpy
import seaborn as sns
import matplotlib.pyplot as plt
# filename = "mjd-59662-sdss-simple-expanded.csv"
allfiles = glob.glob("testDir/mjd*-simple-expanded.csv")
for filename in allfiles:
df = pd.read_csv(filename, index_col=0)
newfilename = filename.strip(".csv"... | [
"csayres@uw.edu"
] | csayres@uw.edu |
b992279df4179e343cd86a13c730cb7d56b36b83 | 96909e3b2eb787afa739f3020a9292afae61b0b5 | /web/__init__.py | f2ab81fbc93b8f2f236e99d276ed434f89b742c1 | [] | no_license | fengges/se | 09bd6306f67d78fe0f51286ab41f629237fcf4d6 | 51e199a7fc5f7666063a556f41669a6a8b4fe37d | refs/heads/master | 2020-03-27T04:29:32.207191 | 2018-08-24T05:47:40 | 2018-08-24T05:47:40 | 145,944,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py |
# author :feng
# time :2018/1/25
# function : 应用初始化
# 注册蓝图
import os
from main import Query
from flask import Flask,json,request
app = Flask(__name__)
subject = [{"code": '01', "k": 46}, {"code": '02', "k": 98}, {"code": '03', "k": 98},
{"code": '04', "k": 88}, {"code": '05', "k": 98}, {... | [
"1059387928@qq.com"
] | 1059387928@qq.com |
b055d8ae6cafcbe25b727929949414109497dfbf | fe91e0f7f74c3156a5c194713a69d9846b9e26a2 | /flask_app/blueprints/api/blueprint.py | 9493ed788ee23a4f569ba5bbd705e244e4682ac4 | [
"BSD-3-Clause"
] | permissive | getslash/backslash | cbf963006e3de565a1512f79c6c9ab84e705c67e | 67554c039f8ac6a648deb191cc7fb69480f28253 | refs/heads/develop | 2023-01-10T22:26:11.666887 | 2022-06-17T05:06:00 | 2022-06-17T05:06:00 | 23,376,788 | 17 | 15 | NOASSERTION | 2022-12-27T16:17:59 | 2014-08-27T04:30:58 | Python | UTF-8 | Python | false | false | 1,268 | py | import functools
from flask import Blueprint
from flask_simple_api import SimpleAPI
from ... import activity
from ...utils.api_utils import (auto_render, requires_login,
requires_login_or_runtoken)
blueprint = Blueprint('api', __name__, url_prefix='/api')
api = SimpleAPI(blueprint)
... | [
"vmalloc@gmail.com"
] | vmalloc@gmail.com |
17cbd59404e6774d0093023cd921bea9c0b812b8 | 3e5e8d6c1b39d459f4e489db083bd437f88bf213 | /path/path_server.py | f998079d6e3812562f8b43147012f9300ab9e3bd | [] | no_license | emonson/SamVis | 37b4f92e482a5227520c4f6b95896ab35d0b71e5 | 98f1dc793bc6a0a38785cb279cd8d27a44807b8b | refs/heads/master | 2020-06-04T03:04:53.257031 | 2014-10-30T17:34:39 | 2014-10-30T17:34:39 | 9,029,161 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,354 | py | import cherrypy
import json
from path_obj import PathObj
import os
import glob
class ResourceIndex(object):
def __init__(self, server_url, data_names):
self.server_url = server_url
self.data_names = data_names
@cherrypy.expose
def index(self):
return self.to_html()
@cherrypy.... | [
"emonson@cs.duke.edu"
] | emonson@cs.duke.edu |
6751813df7cadcbc722015f087934164f1982cbe | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res_bw/scripts/common/lib/email/mime/nonmultipart.py | 527fda5afdf5a3217564dd26d8a2f0384691bce1 | [] | 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 | 730 | py | # 2016.02.14 12:47:55 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/email/mime/nonmultipart.py
"""Base class for MIME type messages that are not multipart."""
__all__ = ['MIMENonMultipart']
from email import errors
from email.mime.base import MIMEBase
class MIMENonMultipart(MIMEBase):
"""Base... | [
"info@webium.sk"
] | info@webium.sk |
a91f1a29d2b88913cdb79f5181f207f5e3eadd65 | 05e634a232574f676434dfa8e4183f3d0a1a4bc9 | /paddlecv/ppcv/ops/connector/base.py | 9d315823ec24a76a0e34664c97122662ff637792 | [
"Apache-2.0"
] | permissive | PaddlePaddle/models | 67ac00d93c5255ac64a9d80ae5be2e8927e47cee | 8042c21b690ffc0162095e749a41b94dd38732da | refs/heads/release/2.4 | 2023-09-04T15:23:59.543625 | 2023-07-20T11:54:16 | 2023-07-20T11:54:16 | 88,868,842 | 7,633 | 3,597 | Apache-2.0 | 2023-09-05T23:23:54 | 2017-04-20T13:30:15 | Python | UTF-8 | Python | false | false | 1,062 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
149cbde05cc6385c66a90062e7ac22763bf9aed1 | a03a7935a191d63bee76fd3b85a61ee27f98904a | /test/tests/databases/pdbdatabase.py | 819adafd698290f378a6eb7b80bb41c8c6c1bf27 | [] | no_license | cchriste/visit | 57091c4a512ab87efd17c64c7494aa4cf01b7e53 | c72c413f571e56b52fb7221955219f11f4ba19e3 | refs/heads/master | 2020-04-12T06:25:27.458132 | 2015-10-12T15:41:49 | 2015-10-12T15:41:49 | 10,111,791 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,311 | py | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: pdbdatabase.py
#
# Tests: mesh - 2D,3D curvilinear, single domain
# plots - Pseudocolor, Subset, Vector
# operators - Clip
#
# Programmer: Brad Whitlock
# Date: ... | [
"bonnell@18c085ea-50e0-402c-830e-de6fd14e8384"
] | bonnell@18c085ea-50e0-402c-830e-de6fd14e8384 |
2d1bf385aa0af57dac548b94154d0021b5bcbf2c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_069/ch31_2019_09_28_01_31_28_102445.py | f9f4884fb86277a703c6d470865f3c6e798b155a | [] | 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 | 284 | py | valor = float(input('Qual o valor da casa?' ))
salario = float(input('Qual o seu salário? '))
tempo = int(input('Em quantos anos deseja pagar? '))
prestacao = valor/tempo*12
if salario >= 0.3*prestacao:
print ('Empréstimo aprovado')
else:
print ('Empréstimo não aprovado') | [
"you@example.com"
] | you@example.com |
dde962a6155bab28965c2ed4dfa4a581508ce225 | 69d3680f881833a0a4906ad708eac11401bc03c6 | /python3/2. 01背包问题.py | 2741d3ecf6749f95de6819feb609bb510721b0ff | [] | no_license | menghuu/YALeetcode | 21df4b5ea6cb0a249263b0ce2df37e7580477ddd | 1959a884bb1cc9f2f1acb1ba6f413498ea0d1aca | refs/heads/master | 2023-08-18T03:55:41.470428 | 2021-09-11T12:39:02 | 2021-09-11T12:39:02 | 269,104,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 m <m@meng.hu>
#
# Distributed under terms of the MIT license.
"""
"""
import sys
N, V = map(int, sys.stdin.readline().strip().split())
# dps[j]
dps = [0 for _ in range(V + 1)]
# dps[i][j]
for _ in range(N):
v, w = map(int, sy... | [
"m@meng.hu"
] | m@meng.hu |
c22c01818686115aaa4f416dc26874227498f59a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/004621ef8e2f9da82e0ed2be016e874230d93a0d-<profiles>-fix.py | a3ec5d59222b96ebf703c7962993fe499e3d1581 | [] | 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 | 1,244 | py | @property
def profiles(self):
'Returns a list of profiles from the API\n\n The profiles are formatted so that they are usable in this module and\n are able to be compared by the Difference engine.\n\n Returns:\n list (:obj:`list` of :obj:`dict`): List of profiles.\n\n Ea... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
2a37b57347e8945b94ea8041f9511b3b88e12a17 | 72af8e47d5786571bce1789fc047965de4f9ac92 | /api/__init__.py | ad16f4c6968b0f0d9cc72ec542f4a5cc4cc4663a | [] | no_license | 444thLiao/WES_pipelines | 18d488e7c01ca618b8a6916979e2d8f64d1aa631 | 06365dc6d91b8c1861c053970e2823c322e5814d | refs/heads/master | 2022-01-20T17:59:11.688758 | 2019-07-17T06:43:44 | 2019-07-17T06:43:44 | 93,579,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import sys
from os.path import dirname
sys.path.insert(0,dirname(dirname(__file__)))
from luigi_pipelines.share_luigi_tasks import PrintReads, Annovar1, Annovar2
| [
"l0404th@gmail.com"
] | l0404th@gmail.com |
bba750f4f5d2b831e16a33244d5dcbf9e58ec1ac | 87dcb103e48da1fd17233232a7b4ad1d79ae50d5 | /svtplay-dl | c90f98e505eedf0ecbe8124fd1bd4cc58c18b091 | [
"MIT"
] | permissive | gusseleet/svtplay-dl | 9bd64ba5c83775a12496a3dcd42282e5171249ff | 55d811286df237738802ac9754417a8fed21280f | refs/heads/master | 2020-12-25T02:30:14.399785 | 2016-02-19T20:29:49 | 2016-02-19T20:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | #!/usr/bin/env python
print("This file is no longer updated.")
print("if you still want to use it. go to https://svtplay-dl.se/archive and download the latest one")
| [
"j@i19.se"
] | j@i19.se | |
5fef8ea7f91e094835ace56319fab0b154591baf | 18ca2e0f98b98941ff9d9e098e0be89166c8b87c | /Abp/Cp17/c17_7_1_resizeAndAddLogo2.py | 1e9e0f0d7ca76bb52331717c0a1cfcf67a729979 | [] | no_license | masa-k0101/Self-Study_python | f20526a9cd9914c9906059678554285bfda0c932 | 72b364ad4da8485a201ebdaaa430fd2e95681b0a | refs/heads/master | 2023-03-07T07:38:27.559606 | 2021-02-22T16:24:47 | 2021-02-22T16:24:47 | 263,381,292 | 1 | 0 | null | 2020-06-09T17:32:06 | 2020-05-12T15:47:48 | Python | UTF-8 | Python | false | false | 1,571 | py | #! python3
# -*- coding: utf-8 -*-
# 演習プロジェクト 17.7.1用に改造
# resizeAndAddLogo2.py - カレントディレクトリのすべての画像を300x300に収まる
# ようにサイズ変更し、catlogo.pngを右下に追加する。
import os
from PIL import Image
SQUARE_FIT_SIZE = 300
LOGO_FILENAME = 'catlogo.png'
logo_im = Image.open(LOGO_FILENAME)
logo_width, lo... | [
"noreply@github.com"
] | masa-k0101.noreply@github.com |
ef35d4d21c0c69a4d991e93868072dc6cf75a519 | 61d484ae68e40b89432f66f98164c811692ee612 | /ThirdParty/protobuf-registry/python/protobufs/services/profile/actions/get_profile_stats_pb2.py | 55e84806eed9e93479af3fa9b97e42596ef5d993 | [
"MIT"
] | permissive | getcircle/luno-ios | 2a29192c130c48415e55b50850e77a1a37f22ad1 | d18260abb537496d86cf607c170dd5e91c406f0f | refs/heads/master | 2021-05-01T04:01:52.647661 | 2016-12-05T04:54:08 | 2016-12-05T04:54:08 | 27,101,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,563 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protobufs/services/profile/actions/get_profile_stats.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_... | [
"mwhahn@gmail.com"
] | mwhahn@gmail.com |
13c9726cece639eb23085d411129eaa87a551621 | 87e60b0504be11c6997f1b20b72e9428cc128342 | /ana/magic/histo.py | ea1f01da27e77f8533bcff0d15645274f3f75b83 | [] | no_license | brettviren/cowbells | 70a85856fdfc54526c847f115d5dc01ec85ec215 | 1ceca86383f4f774d56c3f159658518242875bc6 | refs/heads/master | 2021-01-10T18:44:41.531525 | 2014-04-09T15:17:29 | 2014-04-09T15:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | #!/usr/bin/env python
'''
Histogram store
'''
from UserDict import DictMixin
import ROOT
class Histo(DictMixin):
'''
Provide a dictionary interface to a TDirectory (TFile) for
managing ROOT Histogram objects (any TNamed object, really).
The TDirectory must be associated with a TFile opened with the
... | [
"bv@bnl.gov"
] | bv@bnl.gov |
b6293e11242c694c26602b35f2ac13d2b23179dc | 86da8478bd5b28045581445263fded606f592158 | /tests/network/nano_node/data/http/empty_watching.py | c91229055452ec790f8826079b0f4474b6efc22f | [
"CC0-1.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Matoking/siliqua | c2053214187ed6a2a1d418daf7e43108770c731c | b943822631ab18dde85e95d1731ebd7ffd7ef14a | refs/heads/master | 2020-08-28T02:59:53.841369 | 2019-11-18T17:00:26 | 2019-11-18T17:00:26 | 217,568,445 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from tests.network.nano_node.conftest import HTTPReplay
DATA = [
HTTPReplay(
{
"action": "account_history",
"account": "xrb_15n1wthxc5ndjnoufdfe8m4z5j973o6trzwbfys4cu4gtju5mh4xc918fout",
"count": 500,
"raw": True,
"reverse": True
},
... | [
"jannepulk@gmail.com"
] | jannepulk@gmail.com |
f4e7f0e88b95e72ed71b719cc5ec004ce4f3a78e | c84ba95b559d0d1fd142c88dffec3da45cb8e711 | /backend/users/migrations/0003_auto_20210115_1652.py | 04ad1b16a0cd2f76a84ca29e9d06e1ab48a24855 | [] | no_license | crowdbotics-apps/insta-23855 | 4460bc7f00d52a86f9c30f90249e451957d4b145 | c3abded4dc1a1dcaf201da48fe12d348468c7a02 | refs/heads/master | 2023-02-11T13:48:17.207924 | 2021-01-15T16:54:09 | 2021-01-15T16:54:09 | 329,785,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # Generated by Django 2.2.17 on 2021-01-15 16:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20210115_0235'),
]
operations = [
migrations.AddField(
model_name='user',
name='last_updated',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4eb5f6a1973d51f56c5840b06100a56e3a8e22e8 | 957430fc737d07df115f80dae22ce5cd11096689 | /restaurants/table/migrations/0001_initial.py | 36d1e79ffd34d9c15c9e0a9377af92f001469bf6 | [] | no_license | Hamza-abughazaleh/Restaurant | c6ac28c029d1d2c8eadcf0a61575c54d39273623 | ecffb9a7bf11b115aa0d33617f61e72697f327cc | refs/heads/main | 2023-06-19T09:09:03.268647 | 2021-07-16T19:45:33 | 2021-07-16T19:45:33 | 386,622,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Generated by Django 3.2.5 on 2021-07-14 19:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import table.validation
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USE... | [
"hamzaabughazaleh23@gmail.com"
] | hamzaabughazaleh23@gmail.com |
34f85ad410331a5914a2517ee3343c14572b7b59 | 7a2bfe09f7526c36fce304999fa47466b89fdec2 | /profiles/models.py | 7cbf380d6bb77aeabe96546b9fe12b082a1ed6fc | [] | no_license | Brachamul/fichier-jdem | 179344ba64b830c3f6e352907e470a1db8d42a9b | f9b40657aea54db83b3abd3e7b38fec9260d34e9 | refs/heads/master | 2021-05-01T00:37:50.021517 | 2019-02-07T15:02:06 | 2019-02-07T15:02:06 | 58,691,054 | 0 | 0 | null | 2017-07-04T21:13:01 | 2016-05-13T02:01:05 | Python | UTF-8 | Python | false | false | 2,247 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
from django.db.models.signals import post_save
from django.dispatch import receiver
from fichiers_adherents.models import FichierAdherents, Adherent, Cnil, adherents_actuels
class Member(m... | [
"barnaby.brachamul@gmail.com"
] | barnaby.brachamul@gmail.com |
da60dde1e796db0872b0c257e878c1ebb4826cda | ffff723a6c8527b45299a7e6aec3044c9b00e923 | /PS/BOJ/1238/1238.py | 599cad18df66ed2c7caf926d2eb19296b2ffb8d7 | [] | no_license | JSYoo5B/TIL | 8e3395a106656e090eeb0260fa0b0dba985d3beb | 3f9ce4c65451512cfa2279625e44a844d476b68f | refs/heads/master | 2022-03-14T09:15:59.828223 | 2022-02-26T01:30:41 | 2022-02-26T01:30:41 | 231,383,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #!/usr/bin/env python3
import heapq
INF = 10 ** 9
input = __import__('sys').stdin.readline
heappush = heapq.heappush
heappop = heapq.heappop
def get_dist_to_others(edges, src):
nodes_cnt = len(edges)
dists = [INF for _ in range(nodes_cnt)]
heap = [ [0, src] ]
while len(heap) > 0:
[dist, node... | [
"jsyoo5b@gmail.com"
] | jsyoo5b@gmail.com |
f6345fee883766347e8a49dfa0c93038f32995b2 | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/_private/digestion/argument/chi3.py | ef60e618382a4208ce40cd84eadebbd653dad6de | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 407 | py | from ...exceptions import ArgumentError
methods_bool_input = ["molsysmt.topology.get_dihedral_quartets.get_dihedral_quartets",
"molsysmt.structure.get_dihedral_angles.get_dihedral_angles"]
def digest_chi3(chi3, caller=None):
if caller in methods_bool_input:
if isinstance(chi3, bool):
... | [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
6764d6567a70fd6c2f2886bcd6dfc1234234f72f | edf31957838a65e989d5eb5e8118254ac2413fc8 | /parakeet/analysis/collect_vars.py | 66543535c72ccdc08e79053098b7cefbdccc4db0 | [
"BSD-3-Clause"
] | permissive | iskandr/parakeet | e35814f9030b9e8508a7049b62f94eee5b8c5296 | d9089f999cc4a417d121970b2a447d5e524a3d3b | refs/heads/master | 2021-07-18T19:03:05.666898 | 2019-03-13T17:20:20 | 2019-03-13T17:20:20 | 5,889,813 | 69 | 7 | NOASSERTION | 2021-07-17T21:43:03 | 2012-09-20T16:54:18 | Python | UTF-8 | Python | false | false | 1,523 | py | from .. syntax import Var, Tuple
from syntax_visitor import SyntaxVisitor
class SetCollector(SyntaxVisitor):
def __init__(self):
SyntaxVisitor.__init__(self)
self.var_names = set([])
def visit_Var(self, expr):
self.var_names.add(expr.name)
def collect_var_names(expr):
collector = SetCollector()
c... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
546664dc944f734fde1b16887bc05cfe6763ff9b | 65662b604fa40bdc6e8648e39ed201b0dd8ad6fd | /Python Specialization/Course 4/code/party4.py | 257a2d0f8d47dc1b565fc7854b62718b830ad3d4 | [
"MIT"
] | permissive | rubysubash/Coursera-Specializations | 973f9dbc01774dae84d90b6b97870a6dfde674bc | 88acc792bbee20e8d9b8d34ff6f7c3072236d6f3 | refs/heads/master | 2020-08-10T02:43:08.277860 | 2020-06-02T09:48:25 | 2020-06-02T09:48:25 | 214,237,214 | 0 | 0 | MIT | 2019-10-10T16:52:27 | 2019-10-10T16:52:27 | null | UTF-8 | Python | false | false | 295 | py | class PartyAnimal:
x = 0
name = ""
def __init__(self, nam):
self.name = nam
print self.name,"constructed"
def party(self) :
self.x = self.x + 1
print self.name,"party count",self.x
s = PartyAnimal("Sally")
s.party()
j = PartyAnimal("Jim")
j.party()
s.party()
| [
"amandalmia18@gmail.com"
] | amandalmia18@gmail.com |
f496808570d534acea82cfe877a130b206da08d4 | a973f336765a31550cc9661be57e0384c317fc38 | /ejemplo3/proyectoUno/administrativo/urls.py | 8ef4aee1be71fedb011dd6c3682a4c4b57228cee | [] | no_license | PlataformasWeb-P-AA2021/clase03-2bim-ricardoifc | 0a40d61f351525ab87cb2ce1f0982804cb50df37 | 35c42f8e5c3420bfa66103dcb45a75c5b27d5a5a | refs/heads/main | 2023-06-19T17:46:12.663825 | 2021-07-16T17:47:59 | 2021-07-16T17:47:59 | 377,869,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | """
Manejo de urls para la aplicación
administrativo
"""
from django.urls import path
# se importa las vistas de la aplicación
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('estudiante/<int:id>', views.obtener_estudiante,
name='obtener_estudiante'),... | [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
5dab7e3bfdea2a2c594b3dad9518850e875f603f | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/buttub/basic_twitter_scraper_179.py | 43a79636f9de0b40da964a9dc909525b46726714 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | ###################################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to y... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
11eaad49e2f332332ac43910e59112ef2d27a95d | c0340c511cff5b40b4681c4d3238d807624c0323 | /models/revision/branching_entropy/branching_direction_entropy.py | 88c5d3c8f2bdf70871641d209a2d1963a11af595 | [] | no_license | m-hahn/grammar-optim | 5fa7ade47d2ad91f517c887ee2c65af24059069d | 07a1a80692a504bcafc8120a21c4dc9066b495ee | refs/heads/master | 2022-08-30T06:54:42.749264 | 2022-08-05T12:09:28 | 2022-08-05T12:09:28 | 156,456,167 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,065 | py | #/u/nlp/bin/stake.py -g 11.5g -s run-stats-pretrain2.json "python readDataDistEnglishGPUFree.py"
import random
import sys
from math import log, exp
from random import random, shuffle
from corpusIterator_FuncHead import CorpusIteratorFuncHead
languages = ["Hindi", "Swedish", "German", "Urdu", "English", "Spanish", ... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
a8c5f8fe733b1263b9e715e46f656c1827f702d7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2843/60723/275315.py | 68bd3c530b53af09ba7366a8b979d4690d44f3fa | [] | 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 | 176 | py | num=int(input())
a=input().split()
for i in range(num):
a[i]=int(a[i])
b=[]
for i in range(num-1):
b.append(str(a[i]+a[i+1]))
b.append(str(a[num-1]))
print(' '.join(b)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5cff6d1e75311f6a39ff6edc9ee7a41307b16b8f | cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69 | /dashboard/dashboard/api/sheriffs.py | 6a66dcc1d8196a45035d18f819709bca37d2f30c | [
"BSD-3-Clause"
] | permissive | CTJyeh/catapult | bd710fb413b9058a7eae6073fe97a502546bbefe | c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb | refs/heads/master | 2020-08-19T21:57:40.981513 | 2019-10-17T09:51:09 | 2019-10-17T18:30:16 | 215,957,813 | 1 | 0 | BSD-3-Clause | 2019-10-18T06:41:19 | 2019-10-18T06:41:17 | null | UTF-8 | Python | false | false | 591 | py | # Copyright 2018 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 __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from dashboard.api import api_request_handler
f... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
12c1e9f39cad94697ac642a2b342136937d4f0fe | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/prb_control/entities/base/pre_queue/actions_validator.py | 9751c236c69e44dbb07d504e8b417ae5707659af | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,737 | py | # 2017.08.29 21:45:24 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/prb_control/entities/base/pre_queue/actions_validator.py
from gui.prb_control.entities.base.actions_validator import BaseActionsValidator, ActionsValidatorComposite, CurrentVehicleActionsValidator
from gui.prb_control.items import... | [
"info@webium.sk"
] | info@webium.sk |
d5d199e83ae7039dce538234c4fd52c1271f01f4 | 4364fb1fec2ebda2cd240ddc19ef89243812c122 | /tensorflow_datasets/image/diabetic_retinopathy_detection_test.py | c6729f05bccf57a228449fa8db506e268ffc95fc | [
"Apache-2.0"
] | permissive | undeadinu/datasets | 67ebbe6c20462ed6f58713ccd8dc1d67db89f4d9 | a6f1bce86404d534b7343fb90f0ebfd6d098c346 | refs/heads/master | 2020-04-16T03:31:37.564934 | 2019-01-11T10:12:42 | 2019-01-11T10:13:12 | 165,234,637 | 0 | 0 | Apache-2.0 | 2019-01-11T11:44:44 | 2019-01-11T11:41:26 | Python | UTF-8 | Python | false | false | 1,329 | py | # coding=utf-8
# Copyright 2018 The TensorFlow Datasets 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 appl... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
cde3346e90bf0b24b91ea9df9de7d3821dc8a338 | d850f5f7cc09a8379c04d38f5c26c2e6b73f3484 | /kimai_python/models/project_rate.py | 76b7342f2bc64b749686f63d73e8f0362a61bf71 | [
"MIT"
] | permissive | MPW1412/kimai-python | 8d78e3df3036ab11573e800dce96011552aa6946 | 7c89b0866b85fbc4b1092b30eca21f1be48db533 | refs/heads/master | 2022-10-12T17:24:50.522103 | 2020-04-24T06:21:57 | 2020-04-24T06:21:57 | 264,545,139 | 0 | 0 | MIT | 2020-05-16T23:14:13 | 2020-05-16T23:14:12 | null | UTF-8 | Python | false | false | 5,828 | py | # coding: utf-8
"""
Kimai 2 - API Docs
JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and... | [
"kajetan.bancerz@gmail.com"
] | kajetan.bancerz@gmail.com |
c618026c9962936fdc9c07d9881c1e5b4d611e77 | 99351753f51b2a585f3a0bb1dc11b8c6eebd76df | /setup.py | f547ea175656df3ebba7efc860cec92119a0174e | [] | no_license | FND/tiddlywebplugins.imaker | 6ef680e76145f9f954a66ba2d1cabd15cc0b4637 | bcaeca5a4f2b44d9e48414f48cfa5cae468f6c4c | refs/heads/master | 2021-01-15T18:30:52.466042 | 2013-07-13T10:51:54 | 2013-07-13T10:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | AUTHOR = 'Chris Dent'
AUTHOR_EMAIL = 'cdent@peermore.com'
NAME = 'tiddlywebplugins.imaker'
DESCRIPTION = 'Make TiddlyWeb instances'
VERSION = '0.1.3'
import os
from setuptools import setup, find_packages
# You should carefully review the below (install_requires especially).
setup(
namespace_packages = ['tiddly... | [
"chris.dent@gmail.com"
] | chris.dent@gmail.com |
9d5aafb14738f910a84f9fa615fc45a6cd8f3cc2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /es6qJTs5zYf8nEBkG_10.py | 6084216bb61e092527df14f88ae710259e20fc5d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py |
import re
def is_rectangle(lst):
if len(lst) != 4:
return False
num = []
items = []
for x in range(0, len(lst)):
result = [int(d) for d in re.findall(r'-?\d+', lst[x])]
num.extend(result)
for x in range(0, len(num)):
if num[x] not in items:
items.append(num[x])
if len(items) != 4:
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8745eab3a8a025abd42708022865113cd6d9859f | fd326562890d4f1987c384fc7c60374938231222 | /OOP/DefinningClasses/Spoopify/project/album.py | 55660f2a89fde3334a12f48e6c5ecfbc8cdc378d | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 1,675 | py | from .song import Song
class Album:
def __init__(self, name, *songs):
self.name = name
self.songs = list(songs)
self.published = False
def add_song(self, song: Song):
if self.published:
return "Cannot add songs. Album is published."
else:
if son... | [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
930c2c52d19f93eb89a1d6d1cd65fddba65c9851 | df126574e5fae32aa6ba8ae927942208107897b5 | /pyconll/load.py | 2cfdd19dd6edcbb04a5310f3f37bfb3799be6585 | [
"MIT"
] | permissive | ZmeiGorynych/pyconll | 865781a9ac2b5c0b9fe2a26d7d14fce60d4454a7 | 6784295db5fde769754e2b1ac46d6100484e45cc | refs/heads/master | 2020-04-14T11:38:14.167823 | 2018-12-28T22:12:38 | 2018-12-28T22:12:38 | 163,819,354 | 0 | 0 | null | 2019-01-02T09:15:40 | 2019-01-02T09:15:40 | null | UTF-8 | Python | false | false | 3,400 | py | """
A wrapper around the Conll class that allow for easy loading of treebanks from
multiple formats. This module also contains logic for iterating over treebank
data without storing Conll objects in memory.
"""
import requests
from pyconll._parser import iter_sentences
from pyconll.unit import Conll
def load_from_s... | [
"matgrioni@gmail.com"
] | matgrioni@gmail.com |
42e066146f1fa97f71238d54a52fa96707339fed | 0274f2c465f110598456624581f569331221068b | /impl/set_mode.py | 4e67d0d1e69ae5d21f0e2a6144f1fe0e173dbafa | [] | no_license | bluecube/thesis | 63e745076c86a3122e9c3d7ff42ff22e32921860 | 588db206e64de9b681372fea9a70d3fa2aa598df | refs/heads/master | 2016-09-06T00:01:03.840006 | 2013-05-27T09:36:51 | 2013-05-27T09:36:51 | 1,376,241 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #!/usr/bin/python
"""
set_mode.py
Set the GPS to SiRF or NMEA mode.
"""
from __future__ import division, print_function, unicode_literals
import gps
import logging
import sys
import argparse
from gps.sirf_messages import *
def setup_logging():
logging.basicConfig(
format = "%(asctime)s - %(name)s - %(l... | [
"blue.cube@seznam.cz"
] | blue.cube@seznam.cz |
230b8d139a3fe1b4a2b0befd673aebccdac45332 | c5959b7e4fc5b752b54a6352449c1bb0d28d9115 | /bab/bab-12/mysql_fetchmany.py | 1efde507ffa28d2168fa13356bdb0bff188622af | [] | no_license | romanbatavi/kickstarter-python | f5592a371740b28c045ef99dd510d1c6a92ff8d1 | ed3eb692e09a3f44fd3e0b16ab7b042ee2658db6 | refs/heads/master | 2023-03-29T11:34:23.774873 | 2021-04-04T09:11:28 | 2021-04-04T09:11:28 | 354,500,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | ######################################################
# Nama file: mysql_fetchmany.py
######################################################
import mysql.connector
import sys
def main():
try:
conn = mysql.connector.connect(
user="raharjo",
password="123456789",
host="127.0.0.1",... | [
"romanbatavi98@gmail.com"
] | romanbatavi98@gmail.com |
941eed0f81560dccbcd378a4fa258db160bfd547 | 07bab8cd09c27e93c6eb0e0c47b6f472b4a89d45 | /web/home/urls.py | f6c1eb52d83ff48da122cf768e4c2cc1af36d91e | [] | no_license | arunchaganty/webbed-feet | 0b0de344a64fe6a1d5619982d603a785d4ee02cb | d7b3d96900935d43bea97d175cb5552a1aba02d5 | refs/heads/master | 2021-01-01T06:44:59.555676 | 2011-11-28T17:17:52 | 2011-11-28T17:17:52 | 887,725 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('web.home.views',
(r'^logout/$', 'logout'),
(r'^login/$', 'login'),
(r'^ping/$', 'ping'),
(r'^help/$', 'help'),
(r'', 'home'),
)
| [
"arunchaganty@gmail.com"
] | arunchaganty@gmail.com |
573f4c351e671916ffa5970d3e4f0805bfefe12d | 8c4a366c5dc9762e3c922b991e64c691a154ea88 | /36.py | 141e9ea9b51adc24496e1eb27e73e0aabb26772a | [] | no_license | VINITHAKO/pro | bd7fec9b46d7975c46ba0cb42d353bc10965dbdb | c1c3cd943606324f5252f46dd33edf7e180bbb48 | refs/heads/master | 2020-06-24T13:36:15.327211 | 2019-08-13T06:10:52 | 2019-08-13T06:10:52 | 198,976,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | v = int(input())
n = [ int(x) for x in input().split()]
v = len(n)
s = 0
for i in range(0,v-2):
for j in range(i+1, v-1):
for k in range(j+1, v):
if n[i] > n[j] > n[k] :
s =s+ 1
print(s)
| [
"noreply@github.com"
] | VINITHAKO.noreply@github.com |
a90cf650bf1fb64fc1e55e83bc390af95dac2afa | f14bfd79d8bdcd012f21895084598d4bfe9fb9f2 | /0x03-python-data_structures/7-add_tuple.py | 4112e9aab615eb65a9654a62ed3705ceb696cbbd | [] | no_license | ch-canaza/holbertonschool-higher_level_programming | 1c62ae2e7798d79e619d8a133c3929720f317196 | 1d7402c90de37b920e163a04f196491a99d516c0 | refs/heads/master | 2023-01-18T23:06:57.738005 | 2020-11-12T21:57:53 | 2020-11-12T21:57:53 | 259,409,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/python3
def add_tuple(tuple_a=(), tuple_b=()):
len_a = len(tuple_a)
len_b = len(tuple_b)
if len_a < 2:
for i in range(2 - len_a):
tuple_a += (0,)
if len_b < 2:
for i in range(2 - len_b):
tuple_b += (0,)
a = tuple_a[0] + tuple_b[0]
b = tuple_a[1]... | [
"ch-canaza@hotmail.com"
] | ch-canaza@hotmail.com |
3f6185d27af2a0cec9d7825cae72b4a476206fe0 | 466607c14d76c8d798e08f05dde2d79a07f6e069 | /tests/databases/constructed_molecule/mongo_db/utilities.py | 48ae44f71584e4bcfa63e090dc020faf4557262b | [
"MIT"
] | permissive | andrewtarzia/stk | 7c77006bacd4d3d45838ffb3b3b4c590f1bce336 | 9242c29dd4b9eb6927c202611d1326c19d73caea | refs/heads/main | 2023-08-03T12:29:21.096641 | 2023-07-27T09:45:25 | 2023-07-27T09:45:25 | 191,198,174 | 0 | 1 | MIT | 2023-09-04T16:53:05 | 2019-06-10T15:49:25 | Python | UTF-8 | Python | false | false | 850 | py | from collections import Counter
from ...utilities import DatabaseState, get_entry
def get_database_state(database):
"""
Get the state of a :class:`.ValueMongoDb`.
Parameters
----------
database : :class:`.ValueMongoDb`
The database whose state is wanted.
Returns
-------
:cla... | [
"noreply@github.com"
] | andrewtarzia.noreply@github.com |
872a9c9f67e0dda9dbb5ded25dcc5a53ba331d4f | c0f7cc71eb5732d3b90da4f1e40c3f806f63bb29 | /python/fibermeas/exceptions.py | e4375607ef2fc9760f3570e749c674ad21f10151 | [
"BSD-3-Clause"
] | permissive | sdss/fibermeas | 6bb696ca2e46ded83baf3bc09a7b0e2024884789 | 4d29ff58a14b025cf6320ab1caef5f4bcbba394b | refs/heads/master | 2023-06-24T12:09:38.449736 | 2021-05-07T08:14:52 | 2021-05-07T08:14:52 | 329,701,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-12-05 12:01:21
# @Last modified by: Brian Cherinka
# @Last Modified time: 2017-12-05 12:19:32
from __future__ import print_function, division, absolute_import
class FibermeasError(Ex... | [
"csayres@uw.edu"
] | csayres@uw.edu |
e1fb0821c00054365b7452d5b9ee05d208da67f2 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractUnknowntranslationsCom.py | 896536aca1cc20dfe50f401116dd029e1050a31a | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 559 | py |
def extractUnknowntranslationsCom(item):
'''
Parser for 'unknowntranslations.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loit... | [
"something@fake-url.com"
] | something@fake-url.com |
2f78bd1f6bc462d026579f398379118dc3bdc186 | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/importer/tflite2/tflite_schema_head/WhileOptions.py | c1ecce2b777e295124727c75a226511d952f2ee9 | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 2,169 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite_schema_head
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class WhileOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
faf1f3684f84eac1eeec3b33cdfae00169f4277a | c38b292e7bfaa95ac9a5fbf56d247403941139f4 | /ticket_details/views.py | b9fc42bf585a470a67fc1c6f572b4ab7f393d0dc | [] | no_license | poojapauskar/vzcards-api | f6a79938ee032c1da1d04b86a266d939d73b8797 | ed0185f36e274d46f978a8f670a4189571280e8b | refs/heads/master | 2020-12-29T02:38:14.288750 | 2017-08-08T12:30:51 | 2017-08-08T12:30:51 | 44,667,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from ticket_create.models import Ticket_create
from ticket_details.serializers import Ticket_detailsSerializer
from rest_framework import generics
# from ticket.permissions import IsOwnerOrReadOnly
# from rest_framework import permissions
from django.shortcuts import get_object_or_404
class Ticket_detailsDetail(gener... | [
"git.poojapauskar@gmail.com"
] | git.poojapauskar@gmail.com |
d1353c31503e6d8d403d93c3e6896c4c42bb991d | 16b81ffcb40b429bde1e9bc10e5eeddd9d2ec51f | /leetcode/largest-number.py | 0fe00afd4ba572d7756d887bcf9932bddb740397 | [] | no_license | suminb/coding-exercise | 564424b7b98ea768c57a5b7f106fd7844e8e2843 | b8b9377e7a76b498a9e6fb325743b16cbc943932 | refs/heads/master | 2023-06-16T03:01:59.009635 | 2020-05-09T11:09:25 | 2020-05-09T11:09:25 | 171,614,062 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # 179. Largest Number
# difficulty: medium
# https://leetcode.com/problems/largest-number/
from typing import List
import pytest
class CustomString(str):
def __gt__(self, other):
return self + other > other + self
def __lt__(self, other):
return self + other < other + self
class Solution:... | [
"suminb@gmail.com"
] | suminb@gmail.com |
f743a0d111f8b3360e91aaf494b4103c4ca98714 | bef35774ebe121d9657a3d513a21073b8086b331 | /advanced-algorithms/greedy-algorithm/min_operations.py | 542e345b8a1ad9a2798e2bfebe31f3c693f476b0 | [] | no_license | greatertomi/Python-Algorithms-DataStructure | dab0097ec8a450dfddc47e3153359e6fcd873225 | a0ad6aa78086ba39e6f100ac551ddadb9433f724 | refs/heads/master | 2022-04-14T10:52:32.986333 | 2020-04-17T16:04:22 | 2020-04-17T16:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | def min_operations(target):
steps = 0
while target != 0:
while target/2 == target//2:
target = target // 2
steps += 1
target -= 1
steps += 1
return steps
print(min_operations(18))
| [
"oshalusijohn@gmail.com"
] | oshalusijohn@gmail.com |
8e8be09d2a84c32daac3f5af9233b2981859a259 | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /placement-test/pt-test-2/Kangaroo.py | 9915efe82926333e63f3e269d4b28590f33cbaa9 | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the kangaroo function below.
def kangaroo(x1, v1, x2, v2):
if v2 >= v1:
return 'NO'
if (x2-x1)%(v1-v2) == 0:
return 'YES'
return 'NO'
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w'... | [
"akualajayaprakash@gmailcom"
] | akualajayaprakash@gmailcom |
6fe75c8f5b323d1035afb99283468de94ec63bc8 | 4a81f78adf1a1adfc7bb1d19e42171cc856b2ccc | /bin/sqlformat | aebd25c96ed652302ce3c726c885c87b9c66a703 | [] | no_license | Prones94/Music_Site | af910c18c442b802971bc0a624891860266d8f85 | 924bffbc2a935217e84292e682c06fe1e83bb018 | refs/heads/master | 2022-04-21T02:33:41.006384 | 2020-04-21T22:38:15 | 2020-04-21T22:38:15 | 256,361,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/Users/admin/Desktop/MAKE/BEW/BEW-1.2/Music/music_site/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ronesp.85@gmail.com"
] | ronesp.85@gmail.com | |
abf65c1f1b69d082fe55861689026c4a2695eae2 | 5a514c289084b358c658590f2e2599aea4e4e0a8 | /lib/engine/engine.py | ae0a01f5e1e06f6ca173a7444aeed05615dae022 | [] | no_license | gladiopeace/Tentacle | 602d51015d25f71e331a27ccf07270567d4b4a0e | 7b32937496415b77aec35a10551a4ff33863a829 | refs/heads/master | 2023-08-22T13:45:34.700076 | 2021-10-21T08:39:24 | 2021-10-21T08:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author = 'orleven'
import os
import time
import asyncio
import traceback
import async_timeout
from typing import AsyncIterable
from typing import Iterable
from typing import Union
from lib.core.data import logger
from lib.core.data import paths
from lib.core.async_pool ... | [
"546577246@qq.com"
] | 546577246@qq.com |
d4209a045d8c2874fb783624e9d57859a3f90d01 | febb7a4b889c2f40637e2b688eb770cf0809226f | /fython/test/instruction/iruc_test.py | 4bd165906959e2adc6c9080adb1c9ba8161931ea | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nicolasessisbreton/fython | 68253552c626640b5efc2a7cea9384c8e0425c08 | 988f5a94cee8b16b0000501a22239195c73424a1 | refs/heads/master | 2021-01-10T07:10:06.793158 | 2017-08-25T17:27:05 | 2017-08-25T17:27:05 | 50,076,320 | 48 | 3 | null | 2016-08-21T17:16:12 | 2016-01-21T02:30:31 | Python | UTF-8 | Python | false | false | 225 | py | s = r"""
.a.fy
int dimension(10) target x
int dimension(:) pointer y
y => x[3:5]
"""
from fython.test import *
writer(s)
w = load('.a', force=1, release=1, verbose=0)
# print(open(w.module.url.fortran_path, 'r').read())
| [
"contact@nicolasessisbreton.com"
] | contact@nicolasessisbreton.com |
f957ccaad9c4850b8a815994ef49492ba8f5b299 | 54f826d6103263e3983d1861ff902c62deb59916 | /cart/admin.py | 17023013cabe0fe5be3f2b25a5ad0d8d4e551005 | [] | no_license | arumjin/gt-qlik | e37582ae7d3f0ee1d4da0319459f92b588b1beb4 | 9cf859a669b2302f5430972528275fecdce70926 | refs/heads/master | 2022-11-08T18:57:35.386732 | 2020-06-30T00:55:15 | 2020-06-30T00:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.contrib import admin
from .models import CartItem,Cart
# Register your models here.
class CartItemAdmin(admin.ModelAdmin):
list_display = (
'chart',
'cart'
)
admin.site.register(CartItem,CartItemAdmin)
class CartAdmin(admin.ModelAdmin):
list_display = (
'user',
)
a... | [
"tlfgjawlq@naver.com"
] | tlfgjawlq@naver.com |
97a7a1b661d847598f5ef105388d61266babb110 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/441/usersdata/311/109834/submittedfiles/lista1.py | 9c83a6d93621cba2175ab70f2088ceea4fd25712 | [] | 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 | 157 | py | # -*- coding: utf-8 -*-
n=int(input('Digite a quantidade de numeros: '))
a=[]
for i in range(n):
a.append(int(input('Digite o numero%d:' %(i+1))))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
362467cd5e32cd4dcb90e29eaca44d0b17706341 | 3b030444b2d1d9d57197ccba41387b447114b210 | /config.py | fb716512cf2763712c551c3b4015a4743de47d8e | [] | no_license | popfido/PairCNN-Ranking | ec85e45ef54f05a6b1778297cd316b2fa8a23a90 | b29bbe774888e154a8bad5dafa67ec24aba33256 | refs/heads/master | 2020-03-09T10:21:58.509310 | 2018-04-09T09:27:02 | 2018-04-09T09:27:02 | 128,735,443 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # coding:utf8
import warnings
class DefaultConfig(object):
env = 'default' # visdom 环境
model = 'PairCNN' # 使用的模型,名字必须与models/__init__.py中的名字一致
train_dir = './'
train_data_root = './data/train/' # 训练集存放路径
validate_data_root = './data/validate' # 验证集存放路径
test_data_root = './data/test/' # 测... | [
"wanghailin317@gmail.com"
] | wanghailin317@gmail.com |
f4c3288cf1c1417cd9ed9515fb2741abe00f3bb9 | 07b4dd9a88f3404c4851ea7cbb57c67035bc9a54 | /eric.py | b4e8a8f25539f10b194515115cc8fd428448ebe5 | [] | no_license | surajgholap/python-Misc | 9c9d02c42bb37b7378d7336343f8bef7cd802edf | 4a8ce4bfa5a959692d98663b7b5c0b67a165835f | refs/heads/master | 2021-06-17T19:19:25.021038 | 2021-01-27T20:54:03 | 2021-01-27T20:54:03 | 142,781,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from collections import Counter
import requests
def top_five(corpus):
count_map = {}
for i in corpus:
try:
count_map[i] += 1
except:
count_map[i] = 1
# words = corpus.split()
# counter = Counter(words)
# most_fav = counter.most_common(5)
# for i in mos... | [
"surajgholap27@gmail.com"
] | surajgholap27@gmail.com |
f56acf97b9abbc3b137bf4f924ed3ee07b7c5424 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/vitchyr/disentanglement/n_object_pnp/exp_5_on_random_object_init.py | c4a5e28964dd857af355d261e18481bdc3671f3c | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,317 | py | import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.experiments.disentanglement.contextual_encoder_distance_launcher import (
encoder_goal_conditioned_sac_experiment
)
from rlkit.launchers.launcher_util import run_experiment
if __name__ == "__main__":
variant = dict(
env_id='OneObjectPickAndPl... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
b44857c46d895f4857faeac4e3deb4dff8e60872 | c7a1406b2230acaf412542124ef744c83171fa9a | /perdiem/campaign/apps.py | d14c5e8fe339d634cbe6cded1f0c73ad9cefa0c4 | [] | no_license | GilbertRoy/perdiem-django | de2f1351088597fb2b5e739388f28ff346e5e824 | 3d1f00b21a28f71cb89e49986d07b893e5abe1d9 | refs/heads/master | 2020-03-14T03:30:21.445845 | 2018-04-21T21:44:20 | 2018-04-21T21:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class CampaignConfig(AppConfig):
name = 'campaign'
def ready(self):
import campaign.signals
| [
"lucas.revolutiontech@gmail.com"
] | lucas.revolutiontech@gmail.com |
e4e396bdb9c9ff1453ea79cb8ca39725235f75db | 8e1f493ce9fc34b42637bc7d69560aab20c384a3 | /simple_filter/scripts/simple_kalman.py | 7f10fadc9c8eb8b01238b66e7502fb534f4f3abd | [] | no_license | AmyPhung/comprobo20 | 6f980a82174b3938527fb5939cdd539420aaff42 | 2eff4918275542d2d28828df97c8100d2391cfb0 | refs/heads/master | 2023-04-28T21:49:52.085491 | 2021-05-17T22:27:14 | 2021-05-17T22:27:14 | 290,074,022 | 0 | 0 | null | 2020-08-25T00:47:21 | 2020-08-25T00:47:21 | null | UTF-8 | Python | false | false | 4,471 | py | #!/usr/bin/env python3
"""
This script implements a Kalman filter for the system:
x_0 ~ N(0, sigma_sq)
x_t = x_{t-1} + w_t, w_t ~ N(0, sigma_m_sq)
z_t = x_t + v_t, v_t ~ N(0, sigma_z_sq)
"""
import matplotlib.pyplot as plt
import rospy
from numpy import arange
from numpy.random import randn
from math... | [
"paullundyruvolo@gmail.com"
] | paullundyruvolo@gmail.com |
77d284e2b345dc9df82af95355126cbf386ca2fd | a74a0317d8b8e1cf5135cbd0821617f70c8879ca | /old/python_resume/file.py | a0b117dbafe07691e133591f387574ae6e1beeb9 | [] | no_license | chuck1/python-resume | cbd3c0eb2fe3d0894b3809a2ac1526d171d6afc2 | 5b83fa831525faba17f72173cfff9c2155bd21fc | refs/heads/master | 2021-01-10T19:14:08.036676 | 2017-01-04T01:23:03 | 2017-01-04T01:23:03 | 42,127,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | import os
import json
class Manager(object):
def __init__(self, root):
self.root = root
def get_path(self, filename):
return os.path.join(self.root, filename)
def read_text(self, filename):
path = self.get_path(filename)
with open(path, 'r') as f:
text... | [
"charlesrymal@gmail.com"
] | charlesrymal@gmail.com |
ce72b7bb239177efb435d6cc7d06c93e1377518a | 3fa8eead6e001c4d5a6dc5b1fd4c7b01d7693292 | /ros _navigation_in_5_days/src/initialize_particles/scripts/init_particles_caller.py | e82c4f46632c1080b34ac406afdbf5a7b7ed4ca5 | [] | no_license | MarzanShuvo/Ros_from_the_construct | 09261902841cdd832672658947790ec5fbba4cd3 | 4798234284d9d0bab3751e9d8ac2df95ae34a5bf | refs/heads/master | 2023-08-24T17:28:09.182113 | 2021-10-23T07:57:02 | 2021-10-23T07:57:02 | 339,105,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #! /usr/bin/env python
import rospy
from std_srvs.srv import Empty, EmptyRequest
import sys
rospy.init_node('service_client')
rospy.wait_for_service('/global_localization')
disperse_particles_service = rospy.ServiceProxy('/global_localization', Empty)
msg = EmptyRequest()
result = disperse_particles_service(msg)
prin... | [
"marzanalam3@gmail.com"
] | marzanalam3@gmail.com |
a50e4c86ed9764db44777c7fcb47ec51f6780d04 | 6b2dcf691bc7f019d86270ec0588f5232fc3e2b0 | /inflearn_practice/section7/최대점수 구하기.py | e8be936e34aa64f6cf45a818cae04129b1c64022 | [] | no_license | limgeonho/Algorithm | 02c55fbf5b09b718dbc2aee83a887143d121ddaf | 3d4d1ccd6ee3c52dc36ac3cf5f681690fcfdb6ab | refs/heads/master | 2023-06-01T21:05:00.100998 | 2021-06-21T15:04:26 | 2021-06-21T15:04:26 | 371,552,176 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #최대점수 구하기
#다음문제를 푸는 지 풀지 않는지에 대한 선택(O, X)문제
def DFS(L, time, sum):
global res
if time > m:
return
if L == n:
if sum > res:
res = sum
else:
DFS(L+1, time + t[L], sum + v[L])
DFS(L+1, time, sum)
n, m = map(int, input().split())
v= list()
t = list()
for _ in r... | [
"ghlim909@gmail.com"
] | ghlim909@gmail.com |
a2ba4afc7c10c24b24bd646ab7250dcd81777313 | 0d9dd4ac458ac954e453e6f7810ca5e1c759f82d | /list | fb6c972de61fce49941283ab222a8e272a50cc63 | [
"MIT"
] | permissive | ovkulkarni/create-repo | 9335307481686c8109baae7d88cd819dd7ca0cb6 | 0073cd761106e0c5453429204e8da56ba249eb1d | refs/heads/master | 2021-01-10T05:20:54.898788 | 2016-03-30T14:14:03 | 2016-03-30T14:15:06 | 53,800,960 | 0 | 1 | null | 2016-03-14T02:44:39 | 2016-03-13T18:35:40 | Python | UTF-8 | Python | false | false | 3,590 | #!/usr/bin/env python3
######################################################################################
# #
#The MIT License (MIT) #
# ... | [
"2019okulkarn@tjhsst.edu"
] | 2019okulkarn@tjhsst.edu | |
2e3a3c24699f253c7671d55206bcd6aa7151e478 | 5522054c40e9a35b68351bfa546c2e9fffd01340 | /mobileoperators/settings.py | 9fc9e98b471b6627856ba177fb3dccefadbf3c3f | [] | no_license | thepylot/Mobile-Networks-App | 6ee36243c4861063da8b1c086fc0db882a27cb09 | 4893b810b697e399564e1fb1bb6f738b61950b76 | refs/heads/master | 2021-11-27T14:22:13.843167 | 2019-02-08T10:37:25 | 2019-02-08T10:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | """
Django settings for mobileoperators project.
Generated by 'django-admin startproject' using Django 2.1.5.
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/
"""
impo... | [
"charliescene512@gmail.com"
] | charliescene512@gmail.com |
690bf90029924555962d2aa02c4d1d296434d857 | 4bf53a42b336e67ce75e220dc87f75af9911f036 | /tapiriik/urls.py | 4ced6e6a50e2b58565261db7601a7cafecb0b985 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | patricksan/tapiriik | 5cee925d256f5e2b23397487ef807b5766b710ba | 1628f8759c9e2d0562b92dd25561a347389f6cf3 | refs/heads/master | 2020-12-11T08:07:10.991800 | 2018-02-27T13:14:59 | 2018-02-27T13:14:59 | 38,956,416 | 0 | 0 | Apache-2.0 | 2018-02-27T13:15:00 | 2015-07-12T09:22:01 | Python | UTF-8 | Python | false | false | 7,197 | py | from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
ur... | [
"cpf@cpfx.ca"
] | cpf@cpfx.ca |
09da270e1e2c06a0e560ef30f7fadd91ddaec7e6 | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/ZJetsTutorial/python/samples/run2012/diboson.py | b5453eedeeb69a296e71f73508c838dda097261d | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 2,913 | py | import CMGTools.RootTools.fwlite.Config as cfg
# exclusive madgraph samples
# -- -- -- -- -- -- -- --
WWJetsTo2L2Nu = cfg.MCComponent(
name = 'WWJetsTo2L2Nu',
files = [],
xSection = 5.824, #PG from twiki: https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiggsToTauTauWorkingSummer2012#MC_samples_and_cross_sec... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
341f3d6642671fb82aeba75ca4bc26459d43bd1f | f1593773b199c435114b316348b81126aa212cd6 | /web_flask/6-number_odd_or_even.py | 55e21f462a589f3a87e7aec051ee81b1abdeeef8 | [] | no_license | ledbagholberton/AirBnB_clone_v2 | 0f0f0889ed7fac9767e45b7fc17eafc388469738 | 8fefc58e76184fcfe86ec16dde1791fd8ff4777f | refs/heads/master | 2020-07-07T02:20:17.093914 | 2019-09-10T06:13:44 | 2019-09-10T06:13:44 | 203,214,786 | 0 | 0 | null | 2019-08-19T17:01:24 | 2019-08-19T17:01:24 | null | UTF-8 | Python | false | false | 1,942 | py | #!/usr/bin/python3
""" start a Flask Web application
"""
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello_hbnb():
""" Print Hello HBNB """
return 'Hello HBNB!'
@app.route('/hbnb', strict_slashes=False)
def only_hbnb():
""" Print HBNB """
... | [
"789@holbertonschool.com"
] | 789@holbertonschool.com |
bffd4513031c134591a90b558e1174567f6690bc | 3155c38585c5d1cf27c4d8065cb5821f5b980983 | /package/awesome_panel/database/settings.py | 0c78182ac946b4d7c64acbe8293eb5400c0aa261 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | jlstevens/awesome-panel | 460c86ac886a86fa1a3f6ec79b6186f292ca10bc | c67b0f4529a3ce6a8517648f49fef8358e2e2c8b | refs/heads/master | 2020-11-25T03:11:10.018557 | 2019-12-16T20:57:07 | 2019-12-16T20:57:07 | 228,474,317 | 0 | 0 | Apache-2.0 | 2019-12-16T20:55:56 | 2019-12-16T20:55:55 | null | UTF-8 | Python | false | false | 459 | py | """In this module we provide a list of settings"""
GITHUB_URL = "https://github.com/MarcSkovMadsen/awesome-panel/"
GITHUB_BLOB_MASTER_URL = "https://github.com/MarcSkovMadsen/awesome-panel/blob/master/"
GITHUB_RAW_URL = "https://raw.githubusercontent.com/MarcSkovMadsen/awesome-panel/master/"
GITHUB_THUMBNAILS_URL = (
... | [
"MASMA@orsted.dk"
] | MASMA@orsted.dk |
2441cabae99ae34d4d6dd1b980b760e07462a3ee | bee9a140f51f85c612f4e869747aae3d155188c5 | /src/main/python/systemds/operator/algorithm/builtin/l2svm.py | cd7db9e4dc52e3b06e2141612f7bb57105b73816 | [
"Apache-2.0"
] | permissive | clarapueyoballarin/systemds | cb64a494afd14da142269c788c76edb236d8b755 | a68a71ddb089ebdd52e8f316a03bda281f4532ba | refs/heads/master | 2023-05-22T16:39:04.409220 | 2021-06-17T16:14:15 | 2021-06-17T16:14:15 | 341,305,828 | 0 | 1 | Apache-2.0 | 2021-02-24T22:51:31 | 2021-02-22T18:59:49 | Java | UTF-8 | Python | false | false | 2,344 | 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 unde... | [
"baunsgaard@tugraz.at"
] | baunsgaard@tugraz.at |
499ca439f8deb4c3c382d1c47c6df47873853d24 | e4de060c295fba0d0386d0a7678e744ced18b920 | /build/car_szenario/cmake/car_szenario-genmsg-context.py | 309534aaf9d5f6c3f170188f065ab4b9cae655ff | [] | no_license | jbenzhhn/carla_hhn | af9497d01ce1f34ee0016ca660a0cc5af5f71be8 | abd803bcdd506641c8152ec994468518ea809f1b | refs/heads/master | 2023-04-05T10:50:28.934452 | 2021-04-07T14:31:41 | 2021-04-07T14:31:41 | 355,151,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/automotive/catkin_ws/src/car_szenario/msg/RoadInfo.msg"
services_str = ""
pkg_name = "car_szenario"
dependencies_str = "std_msgs;geometry_msgs;nav_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "car_szenario;/home/... | [
"johannes.benz@hs-heilbronn.de"
] | johannes.benz@hs-heilbronn.de |
f78c251f5afd3689e2c6083e1fc40349ec45fb72 | 3fa4aedf320396c3d780ba3cd3c4760ac007ee30 | /nba_api/stats/endpoints/boxscoremiscv2.py | 9a949ea6e5741e796fda0f6a041829728481a016 | [
"MIT"
] | permissive | Fragadule/nba_api | fb4adfe14d355223838df80aa52ab68d2be3c492 | 9df8ba11ade56a1f6b4ff0791adc276052a286c6 | refs/heads/master | 2020-04-13T19:51:43.835155 | 2018-12-28T13:41:47 | 2018-12-28T13:41:47 | 163,414,364 | 0 | 0 | MIT | 2018-12-28T13:37:28 | 2018-12-28T13:37:28 | null | UTF-8 | Python | false | false | 1,841 | py | from nba_api.stats.endpoints._base import Endpoint
from nba_api.stats.library.http import NBAStatsHTTP
from nba_api.stats.library.parameters import EndPeriod, EndRange, RangeType, StartPeriod, StartRange
class BoxScoreMiscV2(Endpoint):
endpoint = 'boxscoremiscv2'
expected_data = {'sqlPlayersMisc': ['GAME_ID',... | [
"swarchon@gmail.com"
] | swarchon@gmail.com |
9e576c530de7906567dbe5b9d96b25f93accd231 | cf8be80fe9d7acfae03d86430d1c8ff8d22a8655 | /ribosome/components/internal/mapping.py | 3f86df4834cd10bddda137ef16920a9828206e20 | [
"MIT"
] | permissive | tek/ribosome-py | 4da2faf3f7c2d646c5a90bf73e81ec12bd360d38 | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | refs/heads/master | 2022-12-21T22:46:49.075358 | 2020-08-31T16:22:51 | 2020-08-31T16:22:51 | 66,086,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from typing import Callable
from amino import do, curried, Do, __, _, Either
from amino.lenses.lens import lens
from amino.logging import module_log
from ribosome.nvim.io.state import NS
from ribosome.data.plugin_state import PluginState
from ribosome.nvim.io.compute import NvimIO
from ribosome.compute.program import... | [
"torstenschmits@gmail.com"
] | torstenschmits@gmail.com |
73faa7aa222e5a2139a1e51d55fc948bf578dafc | 059a61afa19361fe2dd3509cda7924a3eb74b8e0 | /bookmanager/book/models.py | 4dab062e1015fd45c479fdd1df213fcc75dbe06f | [
"MIT"
] | permissive | songaiwen/Django2 | bf3628b7dcd1c28b65644ecfb4442091fdf54991 | 685e41a7f90e4d245f361f8fb78992aebd422978 | refs/heads/master | 2020-03-19T17:54:17.669938 | 2018-06-19T01:38:43 | 2018-06-19T01:38:43 | 136,783,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from django.db import models
"""
create your models here
定义模型类
模型迁移
操作数据库
"""
#1.定义模型需要集成model.Model
#准备书籍列表信息的模型类
class BookInfo(models.Model):
#创建字段,字段类型,自动创建主键并自动增长
name = models.CharField(max_length=20)
def __str__(self):
#将模型类以字符串的方式输出
return self.name
#准备人物列表信息的模型类
class PeopleInfo(... | [
"576883213@qq.com"
] | 576883213@qq.com |
1a6f968edf5fdb4c61c2389a23c364c8b3fffc69 | c11c337d4f2a609326fe8545c70dafb918ad8110 | /maintenance/mtrack/scripts.py | 757f45ca27e71c689cf94262e0725a2cd3a0d47e | [
"MIT",
"BSD-2-Clause"
] | permissive | summertriangle-dev/arposandra | 7b7f62b63cebe07c6b3b24321a0d01623dfed2b3 | d4fcbec32e86a96c7d810d3d146695eb0b384889 | refs/heads/master | 2023-07-25T02:55:37.534890 | 2023-07-07T01:05:12 | 2023-07-07T01:18:02 | 213,795,406 | 19 | 4 | NOASSERTION | 2023-03-04T05:48:36 | 2019-10-09T01:48:47 | Python | UTF-8 | Python | false | false | 3,905 | py | # TODO: I haven't looked very carefully at optimizing these queries.
# May want to come back after a couple years and see how they're doing.
# We sort based on latest release.
def update_set_sort_table():
return f"""
INSERT INTO card_p_set_index_v2__sort_dates
(SELECT representative, server_id,... | [
"summertriangle.dev@gmail.com"
] | summertriangle.dev@gmail.com |
8e547b29dfdd757e9da010a8fcb2e0a74ff18ac0 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-web/azure/mgmt/web/models/hosting_environment_profile.py | de68d8bc558ed823419c5846beb0d775e9a116d2 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,438 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
e8d197368d8a83bbf36c5e39a424a7e7a44b5b7c | 632dcb4e37cadd87cb7ff8715b0048df5cd0d11b | /CompuCell3D/core/Demos/SBMLSolverExamples/SBMLSolverAntimony/SBMLSolverAntimony2/Simulation/SBMLSolverAntimony2Steppables.py | 007262772d5e9b8242557c617ed99a115ce20b47 | [
"MIT"
] | permissive | CompuCell3D/CompuCell3D | df638e3bdc96f84b273978fb479842d071de4a83 | 65a65eaa693a6d2b3aab303f9b41e71819f4eed4 | refs/heads/master | 2023-08-26T05:22:52.183485 | 2023-08-19T17:13:19 | 2023-08-19T17:13:19 | 12,253,945 | 51 | 41 | null | 2023-08-27T16:36:14 | 2013-08-20T20:53:07 | C++ | UTF-8 | Python | false | false | 4,920 | py | from cc3d.core.PySteppables import *
class SBMLSolverSteppable(SteppableBasePy):
def __init__(self, frequency=1):
SteppableBasePy.__init__(self, frequency)
def start(self):
# Antimony model string: cell type 1
model_string_type1 = """model type1()
# Model
S1 => S2; k1... | [
"maciekswat@gmail.com"
] | maciekswat@gmail.com |
95d5c5cadc9fb00f3c1f71d28ec0233c15f404b7 | 5a1e1756025bacae88b619d388ebf61b330001ab | /1.Class/Language_Python-master/Language_Python-master/LC4_HW3.py | 7acbc1e8e531e1ec64cb6af03598dee0507db0cb | [] | no_license | reshmaladi/Python | d1953497703aa15e163cd8ac27be23e3e5c3e947 | 8e9092af63476fef35d221e20acf418983957e53 | refs/heads/master | 2021-10-15T00:55:08.136039 | 2021-10-01T14:32:16 | 2021-10-01T14:32:16 | 165,836,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | x = input("Enter a 1st string \t")
y = input("Enter a 2nd string \t")
print("Swap : \n" + y[0:2] +x[2:] + "\n" + x[0:2] + y[2:]) | [
"reshma.ladi@gmail.com"
] | reshma.ladi@gmail.com |
765503c6c7b8f463814da29afd3332f8f03d5e40 | a053d60e2c84750cf1c51142bfdf6dec5048bf25 | /demo.py | 4cfc291b204313593868375ac5df2099451fc16d | [] | no_license | Sharpiless/paddlex-driver-state-recognition | ed57e58bebcdccc19302dcb49e950dd66be9ed45 | 81f81f72e9b893c8adca8f9aaba3615dc7aff7c7 | refs/heads/master | 2023-03-18T23:02:15.255664 | 2020-06-02T15:42:38 | 2020-06-02T15:42:38 | 268,839,488 | 2 | 3 | null | 2021-03-07T13:43:21 | 2020-06-02T15:32:52 | Java | UTF-8 | Python | false | false | 1,480 | py | import matplotlib
import paddlex as pdx
import paddle.fluid as fluid
import numpy as np
import cv2
import os
import matplotlib.pyplot as plt
from PIL import ImageFont
from PIL import Image
from PIL import ImageDraw
from facedet import FaceDet
fontC = ImageFont.truetype('./platech.ttf', 20, 0)
def drawText(img, a... | [
"1691608003@qq.com"
] | 1691608003@qq.com |
7730f23c1fe157a139eaf71edadb4982a38877c1 | 0d39e91482abe7f40523e9e225ede5464295888f | /mitogen/unix.py | 1af1c0ec6b66522ccdaa603778a48f45502f81cc | [
"BSD-3-Clause"
] | permissive | eamanu/python-mitogen | bdccdd7ceca4f1b114bf3e28556eb0d959b008e8 | e93c7aae83b130abe1ef2dcf829d32e40f9fe8b1 | refs/heads/master | 2022-04-29T17:01:32.451975 | 2019-10-24T00:30:20 | 2019-10-24T00:45:18 | 217,181,829 | 1 | 0 | BSD-3-Clause | 2022-03-29T21:58:20 | 2019-10-24T01:02:03 | Python | UTF-8 | Python | false | false | 7,133 | py | # Copyright 2019, David Wilson
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2.... | [
"eamanu@eamanu.com"
] | eamanu@eamanu.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.