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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2277163fb77406568bbbbfd4c43fbc3d8f8704ff | 583db8851c609f03f722884557cfc67de0ce564e | /pysmapi/interfaces/Event_Stream_Add.py | 8592834aefd487a4a877f75155c9b4f73ace2267 | [
"Apache-2.0"
] | permissive | lllucius/pysmapi | ab0b4409bfda6a61dab7805e2033d71d09a96493 | c0d802edb58e835e4d48cb9c28ccfccfe5b5c686 | refs/heads/master | 2020-04-20T18:07:46.699611 | 2019-06-25T04:27:41 | 2019-06-25T04:27:41 | 169,009,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py |
# Copyright 2018-2019 Leland Lucius
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"github@homerow.net"
] | github@homerow.net |
173d992267a4c50b4df509c54add6f9396d75fbc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02821/s313302941.py | 271131d42505bd3b94253e5c4d6e944e2905ed13 | [] | 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 | 841 | py | n, m = map(int, input().split())
a = list(map(int, input().split()))
def cumsum(s):
n = len(s)
cs = [0] * (n+1)
for i in range(n):
cs[i+1] = cs[i] + s[i]
return cs
def bs_list(a, f):
l, r = -1, len(a)
while r - l > 1:
x = (l + r) // 2
if f(a[x]): r = x
else: l =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
48029ad550be99084bdc75771e75b28299f992dd | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/basic/28_1.py | 8bba51f3b7f6bc07e66c3cce6c8bb5320e828687 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,733 | py | Time Functions in Python | Set 1 (time(), ctime(), sleep()…)
Python has defined a module, “time” which allows us to handle various
operations regarding time, its conversions and representations, which find its
use in various applications in life. The beginning of time is started
measuring from **1 January, 12... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
0171b167d839283f68195e743403d47603fa9f35 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_004/ch15_2019_03_15_12_37_22_879295.py | 63ff08a3f9db6f997d4660dad3874728fbdd779e | [] | 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 | 78 | py | import math
def volume_da_pizza(z, a):
v=(math.pi*(z**2))*a
return v
| [
"you@example.com"
] | you@example.com |
45ea3e7d8004d23bd4b5fe78a403b5515a80826a | 42000e14d25ce3de5b9ba24e3399e67bf88c4ad1 | /Level_Three/ProTwo/AppTwo/migrations/0001_initial.py | db9703f5f9d755c7f363b452bdc1ccaea87e2c26 | [] | no_license | cdunn6754/Django_Projects | 0528b3263e2762d0e872686ec5f00a40f3730851 | 545d4e73f05969d1277cacaab2042787676b7e73 | refs/heads/master | 2021-09-11T18:21:07.249977 | 2018-04-11T00:06:27 | 2018-04-11T00:06:27 | 110,480,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-04-05 00:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"cdunn6754@gmail.com"
] | cdunn6754@gmail.com |
ff5481487e54507a28f7f346fc73b088e009771b | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0006-ZigZag-Conversion/soln.py | f2d94cda1de538a16f8a63dbbbb03073bd1a954e | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 510 | py | import functools
class Solution:
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
if numRows == 1 or len(s) <= numRows:
return s
rows = [[] for _ in range(numRows)]
row, drow = 0, 1
for ch in s:
... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
ae6dccb3f41dacf3ab006321ca502a67ca354237 | 15ab83191e9aeb58433d578582d8c24ecd68bbaf | /backend/manage.py | 7ecd4a62b90eeb57c918b2b0eab5d8f0c9e39ac1 | [] | no_license | crowdbotics-apps/ecommerce-27317 | 6b36638113b5e64c537ef3e1e674132dd4c21bae | 1f2e00366e112aa3acf74362fba31af42c5589c1 | refs/heads/master | 2023-05-01T22:50:02.897152 | 2021-05-24T11:58:30 | 2021-05-24T11:58:30 | 370,334,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ecommerce_27317.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9f52c25f81a9401c049a07ab2f0d2bf4f56c2f38 | b87b4f2ad90390e6dcb53f258077ea6fea574f6c | /tests/test_models/test_user_model.py | 86f00ff5b9e2c85d4cf23f0173349b8b234bc5ee | [] | no_license | Wassally/backend | 1b73510ee451d433c1f747be5356c4e11b6e914a | 01071eb94ecfc3a3b260ae957a0aa638271c66b1 | refs/heads/master | 2022-11-26T13:24:01.684833 | 2019-06-30T06:02:29 | 2019-06-30T06:02:29 | 177,253,039 | 2 | 0 | null | 2022-11-22T03:30:11 | 2019-03-23T06:29:15 | Python | UTF-8 | Python | false | false | 805 | py | from django.test import TestCase
from api.factories import ClientFactory, CaptainFactory
from api.models import User, Captain
class ClientTest(TestCase):
def test_creation_client(self):
client = ClientFactory()
self.assertTrue(isinstance(client, User))
self.assertEqual(
clien... | [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
b036d6fd8e95f539ae982a23cf985148ad491aca | bcabce262e54a6ac38948a4717254cdc3ce65874 | /mealpy/physics_based/WDO.py | 3e376916b7ec257ba7469ad4a3260e10a7cdabce | [
"MIT"
] | permissive | ibrahim85/MEta-heuristics-ALgorithms-in-PYthon | 4ab6e6ef54127b6f4721178a1f855d1be91f9b42 | 47fb428e8378fc52cd5fe6eff20cec1c68ba5039 | refs/heads/master | 2023-06-03T05:23:31.993100 | 2021-06-28T14:48:38 | 2021-06-28T14:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------------------------------------%
# Created by "Thieu Nguyen" at 21:18, 17/03/2020 %
# ... | [
"nguyenthieu2102@gmail.com"
] | nguyenthieu2102@gmail.com |
4ad8ad1fbd7235c212a139cdeafe67ce534debf4 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WH_chargeAsymmetry/WH3l/Full2018_v7/structure.py | 6388a09a0a8e38670a88995180d3619b60830e60 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 2,018 | py | # structure configuration for datacard
#structure = {}
# keys here must match keys in samples.py
#
structure['Fake'] = {
'isSignal' : 0,
'isData' : 0
}
#structure['DY'] = {
# 'isSignal' : 0,
# 'isData' : 0
# }
#
#structure['top'] = {
# ... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
b7cd7a5240afedad530791addc956ba6291b5595 | 54b31b705d88e21bc0b23aabe1df15ca13a07de2 | /bayespy/inference/vmp/nodes/tests/test_concatenate.py | 26d7882980d98f8e8baf3e70236fbf7d7c701405 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"AFL-3.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bayespy/bayespy | 307ef4c51d511e14d4693cce9929dda37124d11d | 5fe58f7160ebc3a9df7f9e96e50d2bd47837794a | refs/heads/develop | 2023-08-18T21:35:27.744022 | 2023-05-25T08:16:36 | 2023-05-25T08:16:36 | 5,568,322 | 655 | 164 | MIT | 2023-08-15T09:31:55 | 2012-08-27T08:10:20 | Python | UTF-8 | Python | false | false | 10,082 | py | ################################################################################
# Copyright (C) 2015 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
"""
Unit tests for `concatenate` module.
"""
import warnings
import ... | [
"jaakko.luttinen@iki.fi"
] | jaakko.luttinen@iki.fi |
ee93303355c66a20ff5ffdd32b3ebf107b00bc0e | f5f7a1ae04a999f3f193cca647397b29806edf73 | /0000_examples/ur3_dual_interpolation_exe.py | 09b091f802f3706ab9fd2e03f1068f6f58440932 | [
"MIT"
] | permissive | kazuki0824/wrs | bf88d1568f591c61870332436bfcd079d78b87d7 | 03c9e59779a30e2f6dedf2732ad8a46e6ac3c9f0 | refs/heads/main | 2023-07-24T05:20:02.054592 | 2021-05-31T14:38:18 | 2021-05-31T14:38:18 | 368,829,423 | 1 | 0 | MIT | 2021-05-19T10:25:48 | 2021-05-19T10:25:47 | null | UTF-8 | Python | false | false | 1,191 | py | import math
import numpy as np
import robot_con.ur.ur3_dual_x as u3r85dx
rbtx = u3r85dx.UR3DualX(lft_robot_ip='10.2.0.50', rgt_robot_ip='10.2.0.51', pc_ip='10.2.0.101')
# left randomization
current_lft_jnt_values = rbtx.lft_arm_hnd.get_jnt_values()
n_lft_jnt_values = (current_lft_jnt_values + (np.random.rand(6) - .5) ... | [
"wanweiwei07@gmail.com"
] | wanweiwei07@gmail.com |
1298229e6667d5b56fca496bd5b6d2adb592dec4 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/kdsjor001/question2.py | b192808bc1bd49a030995b7d46e982d2aaa24594 | [] | 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 | 232 | py | a=eval(input('Enter the hours:\n'))
b=eval(input('Enter the minutes:\n'))
c=eval(input('Enter the seconds:\n'))
if 0<=a<=23 and 0<=b<=59 and 0<=c<=59:
print ('Your time is valid.')
else:
print ('Your time is invalid.') | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
40f756004da71f05733139a24309c3462c7ec54b | 43d4b962a83dac734dfb09b8523fdfcfcc6628c1 | /lavajato_fornecedor/views.py | c245e3d77cf35444022eb95c2347a0cc74207d4f | [] | no_license | redcliver/sistemas | 01edd98c2814eee50550010169b2c7594e5256f5 | 1129c9516c57fbf53ce3cf5e0e5feb3835d3e9df | refs/heads/master | 2020-04-07T17:23:04.809752 | 2019-05-02T16:24:18 | 2019-05-02T16:24:18 | 158,567,651 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,460 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from .models import fornecedor
# Create your views here.
def lavajato_fornecedor(request):
if request.user.is_authenticated():
empresa = request.user.get_short_name()
if empresa == 'dayson':
... | [
"igor-peres@hotmail.com"
] | igor-peres@hotmail.com |
ac3a413222f1c781a87ae64071c11456543630e3 | 71764665e27f4b96bab44f38a4a591ffc2171c24 | /hhplt/productsuite/RD50C/auto_test1.py | 343f405b2ee4ee990bbf72e929d2d148330595b7 | [] | no_license | kingdomjc/RSU_production_VAT | 693f8c504acc0cc88af92942734ccb85f7e7d7c0 | 9a3d6d3f5a5edfaf30afdff725661630aafe434c | refs/heads/master | 2020-07-31T05:03:46.699606 | 2019-09-24T02:09:53 | 2019-09-24T02:09:53 | 210,491,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,235 | py | #encoding:utf-8
u'''本工位测试前请先在测试PC上运行APP版本下载服务程序TFTPSRV.EXE;
1、被测RSDB0单板通过排线连接作为工装的RSIB0板(LED&PSAM卡面板)、测试串口线、网口连接网线;
2、RSDB0单板上电;
3、根据VAT提示按下单板上复位按钮S1;
4、面板灯测试项需人工观察判断面板灯运行情况。
'''
import socket
import serial
from hhplt.deviceresource.checkVersion import VersionManager
from hhplt.productsuite.RD50C import downloadEPLD
... | [
"929593844@qq.com"
] | 929593844@qq.com |
005465f20680fb4a6b902a62c9c1f39bd408de7d | 505b766aeef6dae5fdb2cab9f2550543179e10e9 | /app/keyvalue/models.py | ca70f4fd07e1a6862c13073c71802ea54c71b626 | [] | no_license | tossedwarrior/wri | 19b912630d00f64bcccc499ba22418c73c7bf359 | 0d4a0f9d7c36b04f87c7cf0ec42db4a57698137f | refs/heads/master | 2020-12-25T19:27:19.028235 | 2012-06-13T21:03:11 | 2012-06-13T21:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # -*- encoding: utf-8 -*-
import os
from datetime import datetime
if 'SERVER_SOFTWARE' in os.environ and os.environ['SERVER_SOFTWARE'].startswith('Dev'):
from django.db import models
class JSONData(models.Model):
json = models.TextField(default='[]')
@staticmethod
def get_by_id(id):... | [
"qualopec@gmail.com"
] | qualopec@gmail.com |
ae069441f2d4ce8ad54d7f0570cef537641659eb | 5dd190725aaaeb7287d935b3c99c20480b208816 | /object_detection/dataset_tools/context_rcnn/generate_embedding_data_tf2_test.py | a93e9eacd9bc9e9e98402f6d60446363b8b6c604 | [
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,488 | 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... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
b548b9f7cdadb399f27f06b74930780a08061e79 | 05d5945350fe64f6c1235d4f12ee22323167ca0c | /snakemake/configs/mm10_SRP044873.py | d77054f2e20301267d8ba829038dad7ea369643b | [
"BSD-2-Clause"
] | permissive | saketkc/re-ribo-smk | 674d4423830bbae3a32f46146ffd362514047a60 | c9326cbafdfa060e22e9af692d9146c37f5035ba | refs/heads/master | 2021-07-12T18:46:37.772947 | 2020-05-30T01:41:13 | 2020-05-30T01:41:13 | 148,952,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | RAWDATA_DIR = '/staging/as/skchoudh/re-ribo-datasets/mm10/SRP044873'
OUT_DIR = '/staging/as/skchoudh/re-ribo-analysis/mm10/SRP044873'
GENOME_FASTA = '/home/cmb-06/as/skchoudh/genomes/mm10/fasta/Mus_musculus.GRCm38.dna.primary_assembly.fa'
CHROM_SIZES = '/home/cmb-06/as/skchoudh/genomes/mm10/fasta/Mus_musculus.GRCm38.dn... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
e73bd41c33e69aa417fab4dffaa549a7814efb51 | 9a73c54526082c27e5c5d88bd54950a589233658 | /DeepLearning/Verification_code_identification/nets/alexnet_test.py | f0dc38b9c9f6f80166eb10b496695e7ac63d676d | [
"Apache-2.0"
] | permissive | archu2020/python-2 | af78b65ed7f3ad17f71d4f8a97c002df86908298 | 19c626ca9fd37168db8a7ac075fd80c8e2971313 | refs/heads/master | 2022-12-27T12:08:44.316760 | 2020-10-02T15:46:27 | 2020-10-02T15:46:27 | 300,660,839 | 0 | 0 | Apache-2.0 | 2020-10-02T15:46:28 | 2020-10-02T15:37:58 | Python | UTF-8 | Python | false | false | 5,964 | py | # Copyright 2016 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 app... | [
"767786685@qq.com"
] | 767786685@qq.com |
d72ecdd7a3b850a399fcd9116f3c384b38b3d1d6 | 181e9cc9cf4e52fcc6e9979890cc5b41e7beb756 | /Module 1/06_Codes/06/06_Codes/managers.py | c2650fc77fbc09ebd2367a198a7481ec81ec29c4 | [
"MIT"
] | permissive | PacktPublishing/OpenCV-Computer-Vision-Projects-with-Python | ace8576dce8d5f5db6992b3e5880a717996f78cc | 45a9c695e5bb29fa3354487e52f29a565d700d5c | refs/heads/master | 2023-02-09T14:10:42.767047 | 2023-01-30T09:02:09 | 2023-01-30T09:02:09 | 71,112,659 | 96 | 72 | null | null | null | null | UTF-8 | Python | false | false | 6,862 | py | import cv2
import numpy
import pygame
import time
import utils
class CaptureManager(object):
def __init__(self, capture, previewWindowManager = None,
shouldMirrorPreview = False):
self.previewWindowManager = previewWindowManager
self.shouldMirrorPreview = shouldMirro... | [
"prasadr@packtpub.com"
] | prasadr@packtpub.com |
549d26bdfebb26f7e41ffa553e48b04e054ae011 | 5e255ad1360c90478393744586663741a9569c21 | /linebot/v3/insight/models/get_statistics_per_unit_response_overview.py | 8dead06a2e9bdba632aa7f0ff33642dfff6804fd | [
"Apache-2.0"
] | permissive | line/line-bot-sdk-python | d76268e8b542060d6eccbacc5dbfab16960ecc35 | cffd35948238ae24982173e30b1ea1e595bbefd9 | refs/heads/master | 2023-08-31T22:12:31.698183 | 2023-08-28T01:10:09 | 2023-08-28T01:10:09 | 70,553,423 | 1,898 | 1,181 | Apache-2.0 | 2023-09-11T05:14:07 | 2016-10-11T03:42:26 | Python | UTF-8 | Python | false | false | 4,122 | py | # coding: utf-8
"""
LINE Messaging API(Insight)
This document describes LINE Messaging API(Insight). # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import annotations
i... | [
"noreply@github.com"
] | line.noreply@github.com |
97d15d6f45852f8ad8f5576eff06fea5cb1089b3 | 43cbef9a8b7424fb7144255d1d9494be828e3b4c | /nes_randomizer/registration/urls.py | a6c54bd79ab683e6b46d4559d9fdcb440476523a | [] | no_license | thebmo/NESRandomizer | 59135814c3dd23d948af1f5ce7ca236c8f96dc56 | 1bad8c3ba8ed2a513f3ecd7005023f063fc3ba1f | refs/heads/master | 2020-07-05T08:19:02.916233 | 2015-11-03T03:34:32 | 2015-11-03T03:34:32 | 22,393,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns('',
url(r'^$', views.register, name='register'),
)
| [
"bmosier@gmail.com"
] | bmosier@gmail.com |
46605773042e4694045207282c63666f3ac7d88a | b5550fc728b23cb5890fd58ccc5e1668548dc4e3 | /network/security_group/openstack_driver.py | 9717ba421b4a63ea98d5328cfd53bec9b7f01766 | [] | no_license | bopopescu/nova-24 | 0de13f078cf7a2b845cf01e613aaca2d3ae6104c | 3247a7199932abf9718fb3260db23e9e40013731 | refs/heads/master | 2022-11-20T00:48:53.224075 | 2016-12-22T09:09:57 | 2016-12-22T09:09:57 | 282,140,423 | 0 | 0 | null | 2020-07-24T06:24:14 | 2020-07-24T06:24:13 | null | UTF-8 | Python | false | false | 1,631 | py | #coding:utf-8
# Copyright 2013 Nicira, Inc.
# 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... | [
"719184289@qq.com"
] | 719184289@qq.com |
0d8cf3d920dc76f0c4b05c2d553f6846e4799bcb | edc80b253c0ad88a421f7cd341d695e601fde73d | /utils.py | 1194f99c9f18970a5625febf931cca1ec72e84ff | [
"MIT"
] | permissive | prashantramangupta/snet-platform-usage | 62cc4061326e89ca39c1b3105362fc4b4fb9509c | 41b0669ebebf116012f312a333d0b3cbcdcf8519 | refs/heads/master | 2022-11-04T23:57:35.611828 | 2022-10-13T05:03:05 | 2022-10-13T05:03:05 | 177,531,350 | 1 | 1 | MIT | 2022-10-12T10:20:37 | 2019-03-25T06:56:31 | Python | UTF-8 | Python | false | false | 1,607 | py | import json
import datetime
import decimal
import requests
from constant import SLACK_HOOK
IGNORED_LIST = ['row_id', 'row_created', 'row_updated']
class Utils:
def __init__(self):
self.msg_type = {
0 : 'info:: ',
1 : 'err:: '
}
def report_slack(self, type, slack_msg):
... | [
"you@example.com"
] | you@example.com |
33673f2e8184b5c2020942244cf7cd80e01a59c1 | ad0e853db635edc578d58891b90f8e45a72a724f | /python/ray/train/_internal/checkpoint.py | 82c25febb8b0d79b04a829842a8758c8d245538a | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | ericl/ray | 8c93fc713af3b753215d4fe6221278700936e2db | e9a1c6d814fb1a81033809f56695030d651388f5 | refs/heads/master | 2023-08-31T11:53:23.584855 | 2023-06-07T21:04:28 | 2023-06-07T21:04:28 | 91,077,004 | 2 | 4 | Apache-2.0 | 2023-01-11T17:19:10 | 2017-05-12T09:51:04 | Python | UTF-8 | Python | false | false | 11,154 | py | import os
import logging
from pathlib import Path
from typing import Callable, Dict, List, Optional, Type, Union
from ray.air import Checkpoint, CheckpointConfig, session
from ray.air._internal.checkpoint_manager import CheckpointStorage
from ray.air._internal.checkpoint_manager import (
_CheckpointManager as Comm... | [
"noreply@github.com"
] | ericl.noreply@github.com |
50d7896ca2a3fd81c7a3a5b423c105fc094df359 | 0f2112a0e198cb0275c002826854c836bbfb5bdf | /pywicta/image/__init__.py | ebc8b9794d95d617edc05784841fc62efa089799 | [
"MIT"
] | permissive | jeremiedecock/pywi-cta | a7f98ae59beb1adecb25623153c13e5bc70e5560 | 1185f7dfa48d60116472c12ffc423be78a250fc9 | refs/heads/master | 2021-04-15T12:06:03.723786 | 2019-03-21T02:33:15 | 2019-03-21T02:33:15 | 126,397,380 | 0 | 1 | MIT | 2018-10-16T12:17:52 | 2018-03-22T21:31:45 | Python | UTF-8 | Python | false | false | 158 | py | """Image functions
This package contains additional image processing functions.
"""
from . import hillas_parameters
from . import signal_to_border_distance
| [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
936ac1a26cc0f0c3c4098e4dab5068c152183601 | 786de89be635eb21295070a6a3452f3a7fe6712c | /root/tags/V00-03-00/SConscript | 79a8398cab91d01f66746f757727ba8c866b37e9 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package root
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file for... | [
"gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
38a7fca7aa7911336a605a76d7fe26a7822d15be | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_galleries_operations.py | 78b2fc6273345d2b9c8cba61fa9f1031eb1862b9 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 23,103 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
afbec97b1c9d34f73ceab3845b07f37693580dcc | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncolman.py | b4eb8ea4b99751f343c4618a341e4a0f9d07a3cc | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 64 | py | ii = [('WadeJEB.py', 4), ('ClarGE3.py', 15), ('HogaGMM2.py', 7)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
47aedceb25e986a3e5d3aae64be46cd960624d18 | 81f128c1d3ffc57ea35053a0f42bc3adb8ac820d | /MxShop/db_tools/import_goods_data.py | 71e3cfa1b711929ae1f857f0ba8333e70073b35b | [] | no_license | tminlun/tminlun-MxShop | f06816b5f596cffb7fa634891a70567055de1bf9 | a1ccf4b05edd8b47ad716fe65072b5be6e501e50 | refs/heads/master | 2022-12-10T11:08:28.043339 | 2019-04-15T15:12:44 | 2019-04-15T15:12:44 | 176,200,320 | 0 | 0 | null | 2022-12-08T01:43:02 | 2019-03-18T03:47:29 | Python | UTF-8 | Python | false | false | 2,099 | py | # _*_ encoding:utf-8 _*_
__author__: '田敏伦'
__date__: '2019/2/27 0027 20:38'
# 导入goods的数据
import sys
import os
pwd = os.path.dirname(os.path.realpath(__file__))
sys.path.append(pwd + "../")
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'MxShop.settings')
import django
django.setup()
from db_tools.data.product_da... | [
"you@example.com"
] | you@example.com |
a95902c6e18ce1bc91769f463fdcadd5edc5103a | b776894e97c2cedb791cb6d860865908d13b6fa9 | /op_app/Controllers/logDetailControllerClass.py | 87f3670e671f689c175562fb968b544499703355 | [] | no_license | yezimai/v11 | 30463acf9cd4c2b9bd43eb0c722947804a08c36e | a4029afb169962b0f041ac2dc9e5c03a61cba8ee | refs/heads/master | 2021-09-04T00:32:13.951114 | 2018-01-13T10:05:39 | 2018-01-13T10:05:39 | 116,007,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,704 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from op_app.logger.log import runlog
from op_app.Model.base.baseModelClass import BaseDbModelClass
from op_app.Model.base.operation_dbModelClass import Operation_dbModelClass
from op_app.logger.log import dblog, runlog
from op_app.lib import appConfigDetailClass, pub
impor... | [
"41815224@qq.com"
] | 41815224@qq.com |
150031906408644576efe4932f757a1e0abf4fa8 | ddddaa700e4642f46a2c1e1e0271a7c8ea62ba0f | /harness/determined/cli/sso.py | 026b6b502e98d88856d356e481ab9bf2cf8167e6 | [
"Apache-2.0"
] | permissive | determined-ai/determined | 9d563cb5ffd074c88ee5edc9bf22ab9c3cb78c7e | 8239b1993f4f44390f4e88901ffaf3b12429b83c | refs/heads/main | 2023-08-21T12:13:36.651298 | 2023-08-21T08:34:16 | 2023-08-21T08:34:16 | 253,846,879 | 2,531 | 330 | Apache-2.0 | 2023-09-14T21:54:17 | 2020-04-07T16:12:29 | Go | UTF-8 | Python | false | false | 5,240 | py | import sys
import webbrowser
from argparse import Namespace
from getpass import getpass
from http.server import BaseHTTPRequestHandler, HTTPServer
from typing import Any, Callable, List
from urllib.parse import parse_qs, urlparse
from determined.common import api
from determined.common.api import authentication
from d... | [
"noreply@github.com"
] | determined-ai.noreply@github.com |
01f149a939d7ee4687c0ce58037ed05278e16865 | 04142fdda9b3fb29fb7456d5bc3e504985f24cbe | /mmcv/cnn/bricks/upsample.py | 78fb5bf371712d13a72edf5d57151dca8fce6953 | [
"Apache-2.0"
] | permissive | open-mmlab/mmcv | 419e301bbc1d7d45331d67eccfd673f290a796d5 | 6e9ee26718b22961d5c34caca4108413b1b7b3af | refs/heads/main | 2023-08-31T07:08:27.223321 | 2023-08-28T09:02:10 | 2023-08-28T09:02:10 | 145,670,155 | 5,319 | 1,900 | Apache-2.0 | 2023-09-14T02:37:16 | 2018-08-22T07:05:26 | Python | UTF-8 | Python | false | false | 3,299 | py | # Copyright (c) OpenMMLab. All rights reserved.
import inspect
from typing import Dict
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmengine.model import xavier_init
from mmengine.registry import MODELS
MODELS.register_module('nearest', module=nn.Upsample)
MODELS.register_module('bilinear',... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
697a14ba16fec12bc6822c838c5c9307b462870a | 4d7f743f871860e64f7e1e057b32c8af76fe98ff | /nmtlab/utils/vocab.py | 893b2a2fcfcb1d9146383a199150e541bf465ee5 | [
"MIT"
] | permissive | MarkWuNLP/nmtlab | 8a822c7d2385f885509b9b3e5d039b8fc38562ad | da9c28126336528fc6b85f2d424632ad227a3682 | refs/heads/master | 2022-02-21T14:05:10.523962 | 2019-10-05T08:32:21 | 2019-10-05T08:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torchtext.vocab
import pickle
from collections import Counter, defaultdict
DEFAULT_SPECIAL_TOKENS = ["<null>", "<s>", "</s>", "UNK"]
class Vocab(torchtex... | [
"raphael@uaca.com"
] | raphael@uaca.com |
e2666f46d0fa645869fb18bacd4d1c27777b444b | 1c2a0411f9cd24ad3076a7c85baeb7d72cd91c6f | /app_meta/admin.py | 680fe8ae84b8d8946d1f698f52786b3a719551e4 | [] | no_license | eshandas/django_scrapy_project_template | a98b75f5da5a5eeba16fd51be0347ad28432ce79 | 5eb2a2787727569e03f24a9f4bd75add37ddf9bb | refs/heads/master | 2021-01-19T13:06:18.712611 | 2017-04-29T15:48:08 | 2017-04-29T15:48:08 | 88,064,034 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import (
KeyValueSetting,
)
admin.site.register(KeyValueSetting)
| [
"eshandasnit@gmail.com"
] | eshandasnit@gmail.com |
0ff47b51128d4c3f179c4ff101481282d1461151 | 47fabc7be3769cb1d2d17369efe2048818158477 | /test/test_multinomial_splitting.py | fb9f8105646ef967184adf4470dbd210056f4169 | [
"Apache-2.0"
] | permissive | jpeyhardi/GLM | 35ae651c4aa9771fec63b7c151858e0555a80c07 | 6f0fd763aec2a0ccdef3901b71ed990f20119510 | refs/heads/master | 2021-09-26T08:50:08.938073 | 2018-10-28T13:22:24 | 2018-10-28T13:22:24 | 125,999,551 | 0 | 0 | Apache-2.0 | 2018-03-20T10:21:13 | 2018-03-20T10:21:09 | C++ | UTF-8 | Python | false | false | 1,223 | py | from statiskit import (linalg,
core,
glm)
from statiskit.data import glm as data
import unittest
from nose.plugins.attrib import attr
import math
@attr(linux=True,
osx=True,
win=True,
level=0)
class TestMultinomialSplittingRegression(unittest.TestCase):... | [
"pfernique@gmail.com"
] | pfernique@gmail.com |
3e1c5077ecb243ee0421f0cc303f389c21b8d623 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqpt/fanstats1d.py | ca82eee313ce110542aa85b5984e92415bd750ea | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 18,404 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
26abe393261a86288211f6bc9fd241563a9b60ce | 119a85a388fe436361530fbb47932e704d749557 | /PEAK-0.5a4dev_r2085/build/lib.macosx-10.6-x86_64-2.7/peak/util/signature.py | dbd8a3fbf7c6e8f609c9564bba8de27bd211ea3d | [
"Python-2.0"
] | permissive | chrisrgunn/cs156project | 014d5b05c6bf0e08ab8bd0dea525057d0e65b9a7 | e5414a37f9793c8b0674695b948482b559b18ea6 | refs/heads/master | 2021-01-19T14:09:49.046539 | 2017-05-24T02:10:29 | 2017-05-24T02:10:29 | 88,128,762 | 0 | 2 | null | 2017-05-04T23:49:09 | 2017-04-13T05:36:10 | Python | UTF-8 | Python | false | false | 1,270 | py | """Crude introspection of call signatures"""
import protocols; from protocols import adapt, Interface
from inspect import getargspec
from types import FunctionType, MethodType
__all__ = 'ISignature', 'getPositionalArgs'
class ISignature(Interface):
# XXX There should be a lot more here than this...
def get... | [
"chrisrgunn@gmail.com"
] | chrisrgunn@gmail.com |
4cf2a8b84c3cdd0ebae529ac5397255b44f2e9ee | 5f2103b1083b088aed3f3be145d01a770465c762 | /406. Queue Reconstruction by Height.py | 54dbb0fb8a1dbe5530f49b27d210c81d690d7a0e | [] | no_license | supersj/LeetCode | 5605c9bcb5ddcaa83625de2ad9e06c3485220019 | 690adf05774a1c500d6c9160223dab7bcc38ccc1 | refs/heads/master | 2021-01-17T17:23:39.585738 | 2017-02-27T15:08:42 | 2017-02-27T15:08:42 | 65,526,089 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | from operator import itemgetter
# todo insert order thinking
class Solution1(object):
def reconstructQueue(self, people):
"""
:type people: List[List[int]]
:rtype: List[List[int]]
"""
people.sort(key = itemgetter(1,0))
result = []
start = 0
... | [
"ml@ml.ml"
] | ml@ml.ml |
a52de2fb1424ea5d399877b53b6f048575a62dee | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /essentials-gpiozero/02-LEDBasics/ch2listing4.py | 182bec077a8cdc43f6efc791966c9e6f6b7cdd87 | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 953 | py | from gpiozero import TrafficHat
from time import sleep
th = TrafficHat()
try:
while True:
# Traffic light code
# First, turn the green LED on
th.lights.green.on()
print(“Press the button to stop the lights!”)
# Next, we want to wait until the button is pressed
while... | [
"tdamdouni@users.noreply.github.com"
] | tdamdouni@users.noreply.github.com |
5e97ee335b85ed1562ba97122a365eef2a05f7ff | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/FireEye-Detection-on-Demand/Integrations/FireEye-Detection-on-Demand/FireEye-Detection-on-Demand.py | b969be415dd9b367021b7757c9c76ce0e0c6acb4 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 15,153 | py | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
from typing import Any, Dict, List, Optional, Tuple
import dateparser
import urllib3
# Disable insecure warnings
urllib3.disable_warnings()
''' CONSTANTS '''
DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
''' CLIENT CLASS '''
class ... | [
"noreply@github.com"
] | demisto.noreply@github.com |
1f330a243eabf5b8c046f3eeffcee642a856d548 | 0937646b6ce9249a8d193987f308ce398dc28bd1 | /104API/104API.py | 5ec24357b53855d4c9189223fbb28b268e8829ff | [] | no_license | barry800414/JobTitleNLP | 98622d02b25b1418f28698f7d772c8de96642032 | b379c2052447e6483d17f5db51fb918b37ac7a52 | refs/heads/master | 2021-06-08T19:36:39.044757 | 2016-10-21T03:11:10 | 2016-10-21T03:11:10 | 66,043,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | #!/usr/bin/env python3
# invoke 104 API to get all 104 jobs
import sys
import requests
import json
from getCat import getL3ID
API_URL = "http://www.104.com.tw/i/apis/jobsearch.cfm"
def getJobsByCatID(catID, verbose=0):
jobs = dict()
payload = {
"cat": catID,
"role": 1,
"fmt": 8,
"... | [
"barry800414@gmail.com"
] | barry800414@gmail.com |
a3ddfd87f910aeddaeb2fdccc180e2928ab42be7 | bc441bb06b8948288f110af63feda4e798f30225 | /object_store_sdk/model/notify/subscriber_pb2.py | 692c20775b418cfdc51ab0f6e6720297f4eb1271 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,376 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: subscriber.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"service@easyops.cn"
] | service@easyops.cn |
40dcbecf7f281aed9dcb30300876afe764f694bd | 0c1d6b8dff8bedfffa8703015949b6ca6cc83f86 | /lib/worklists/operator/CT/v3.0/business/VDSL_4+2/WLAN_Multi/script.py | 9a9b6c6cbee9a6edf93585bdaa4fbf2b5d34cecf | [] | no_license | samwei8/TR069 | 6b87252bd53f23c37186c9433ce4d79507b8c7dd | 7f6b8d598359c6049a4e6cb1eb1db0899bce7f5c | refs/heads/master | 2021-06-21T11:07:47.345271 | 2017-08-08T07:14:55 | 2017-08-08T07:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,798 | py | #coding:utf-8
# -----------------------------rpc --------------------------
import os
import sys
DEBUG_UNIT = False
if (DEBUG_UNIT):
g_prj_dir = os.path.dirname(__file__)
parent1 = os.path.dirname(g_prj_dir)
parent2 = os.path.dirname(parent1)
parent3 = os.path.dirname(parent2)
parent4 = os.path.d... | [
"zhaojunhhu@gmail.com"
] | zhaojunhhu@gmail.com |
1b33a0d2e211750824ab74b353f3eec8b0a32f06 | 6e2dfbf50c1def19cd6ae8e536a2ddb954a5ad63 | /predict.py | 3e96f112a8763f74066d46caa470404c48356c44 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"MIT",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | boshining/NeuronBlocks | 9d71f087772eb17c3a4130d0374818cfd80d976f | 74fbb8658fb3f1cffea5c9bc84b2a1da59c20dd9 | refs/heads/master | 2020-05-27T16:24:10.244042 | 2019-08-06T07:37:55 | 2019-08-06T07:37:55 | 188,699,703 | 0 | 0 | MIT | 2019-08-06T08:19:55 | 2019-05-26T15:23:06 | Python | UTF-8 | Python | false | false | 3,096 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
from settings import ProblemTypes, version
import os
import argparse
import logging
from ModelConf import ModelConf
from problem import Problem
from LearningMachine import LearningMachine
def main(params):
conf = Mode... | [
"shoulinjun@126.com"
] | shoulinjun@126.com |
c6ddac9e303b762b38d565c374ec231de78f1052 | aac63f0f178945e8109f74ebb9bbb59165185172 | /news/urls.py | e0d7f3b27f0854cb4fa0912eb93b73f36dddd8c4 | [] | no_license | okumujustine/hacker-news-clone | 587f7e88f53d576ee58e5dfff78f4d18e046b4db | 7f70d18325c7627237de719e04bdde9ad75a8d5d | refs/heads/main | 2023-01-02T13:41:37.825072 | 2020-11-04T14:52:41 | 2020-11-04T14:52:41 | 310,032,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py |
from django.contrib import admin
from django.urls import path, include
from django.contrib.auth import views
from apps.core.views import signup
from apps.story.views import frontpage, search, submit, newest, vote, story
urlpatterns = [
path('', frontpage, name='frontpage'),
path('s/<int:story_id>/vote/', vot... | [
"okumujustine01@gmail.com"
] | okumujustine01@gmail.com |
fc6b3d226bbf27414b9873a6166718c97218c228 | 16fcf452e6165a0de5bc540c57b6e6b82d822bb1 | /Learntek_code/4_June_18/while2.py | 7a9891325874d47ce4779e35a821980c21e374a2 | [] | no_license | mohitraj/mohitcs | e794e9ad2eb536e3b8e385fb8d222e8ade95c802 | d6399b2acf69f5667c74f69715a0b55060bf19d1 | refs/heads/master | 2021-09-09T00:21:23.099224 | 2021-09-07T16:39:07 | 2021-09-07T16:39:07 | 87,798,669 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import getpass
print "Hello World "
print "Please enter the password\t"
pass1 = getpass.getpass()
flag1 =0
num =0
while True:
if pass1=="India":
print "Welcome in India"
break
else :
print "Wrong password type again"
num = num+1
print num
if num==3:
break
print "Please enter the password ... | [
"mohitraj.cs@gmail.com"
] | mohitraj.cs@gmail.com |
525379ed03b39dc09421131f1b21c85a278b744d | ab1f25e6266a71ea23f1d3e04ec8635ae550d1df | /HW6/Task-1/temp_HW6/person.py | 9dc7cb45a9f296a612d9c858867a544884bb3914 | [] | no_license | Pavlenkovv/e-commerce | 5143d897cf779007181a7a7b85a41acf3dfc02c4 | 0d04d7dfe3353716db4d9c2ac55b0c9ba54daf47 | refs/heads/master | 2023-01-25T03:13:41.238258 | 2020-12-06T22:16:53 | 2020-12-06T22:16:53 | 313,103,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | class Person:
"""Any Person"""
def __init__(self, surname=None, name=None, age=None, *args, **kwargs):
self.surname = surname
self.name = name
self.age = age
def __str__(self):
return f'Surname: {self.surname}, name: {self.name}, age: {self.age}'
| [
"pavlenko.vyacheslav@gmail.com"
] | pavlenko.vyacheslav@gmail.com |
1dee9eaec67b0c0952431a177322b33833f669d8 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/GCNet/dependency/mmdet/models/detectors/point_rend.py | e9d1d4b639d2027b566b58ab2b44017d39b48e54 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,366 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
1f67fe7255fb1282c3fcc2652a59677474c9bda8 | 784936ad8234b5c3c20311ce499551ee02a08879 | /lab4/patterns/pattern04.py | 3fcf0f3989546c699ae05960faf3d52c1bb8cec2 | [] | no_license | jonlin97/CPE101 | 100ba6e5030364d4045f37e317aa05fd6a06cb08 | 985d64497a9861f59ab7473322b9089bfa57fd10 | refs/heads/master | 2021-06-16T01:31:31.025153 | 2017-02-28T19:29:11 | 2017-02-28T19:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import driver
def letter(row, col):
if row in [2,3,4] and col in [3,4,5,6]:
return 'M'
else:
return 'S'
if __name__ == '__main__':
driver.comparePatterns(letter)
| [
"eitan.simler@gmail.com"
] | eitan.simler@gmail.com |
1ca12f40b6da6c54896751b8fdc0c2ed2ce7ded5 | d2fb1de19bb55e3b03db94b4fdce396fe56a223e | /caesure/ecdsa_secp256k1.py | a24f78a2d48632ae1799cf42702c8927e03412a2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | mikegogulski/caesure | 83a2a0a5d9b7c16339d54076bc54d351dbe0c3e4 | ccee420665e3fb4e7a005241efc6832ead4b90d8 | refs/heads/master | 2021-01-22T00:02:40.058902 | 2014-11-04T05:54:25 | 2014-11-04T05:54:25 | 26,273,215 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # -*- Mode: Python -*-
import caesure.secp256k1
from bitcoin import dhash
class KEY:
def __init__ (self):
self.p = None
def set_pubkey (self, key):
self.p = key
def verify (self, data, sig):
return caesure.secp256k1.verify (self.p, dhash (data), sig)
| [
"gitsam@rushing.nightmare.com"
] | gitsam@rushing.nightmare.com |
d99ff535dc1910cb9019d6f11a9939d50cc55669 | acb7228022a36218846bc3f431e7a45057bb581d | /mappingpedia/migrations/0003_auto_20180214_1501.py | 9c5d9d620a594b0c3db4110b7ac1bfa980b4358a | [
"Apache-2.0"
] | permissive | oeg-upm/mappingpedia-userinterface | c6ba106f3072a4d37c1c34573e2d72882429dd1b | 1738b32f704bbf66f1ed8b78c99c71d49b208d43 | refs/heads/master | 2021-11-03T14:34:39.044575 | 2019-04-26T07:02:11 | 2019-04-26T07:02:11 | 111,107,643 | 3 | 1 | Apache-2.0 | 2018-02-28T11:55:04 | 2017-11-17T13:40:44 | HTML | UTF-8 | Python | false | false | 692 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-02-14 15:01
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mappingpedia', '0002_auto_20180214_1409'),
]
operations = [
... | [
"ahmad88me@gmail.com"
] | ahmad88me@gmail.com |
f1da8b2e8cd2b49b4089ef7c8d1561bd7405bb9c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/348/85739/submittedfiles/testes.py | 6041d85fcddfaab01edb49cb3b652c18ffee68af | [] | 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 | 148 | py | b = 0
a = 100
for i in range(0,a,1):
if (a%(i+1)) !=0:
b = b + 1
print(b)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ea35143cdc0111cd7637ce9c09e8694f82c80c7d | 3d91c09bca4e68bf7a527cb40ed70ac208495b93 | /library/migrations/0004_auto_20201128_0844.py | faa172d3cb83cc52c23cfb2b00723338c7b633e8 | [] | no_license | Kaik-a/OCR-Projet13 | 02e9d8c9228d6d7a09013b4ab2570304c01dfc28 | ac339002279397f43316e33a869cce797b5d92b2 | refs/heads/main | 2023-02-17T09:39:11.184120 | 2021-01-11T15:50:58 | 2021-01-11T15:50:58 | 311,875,691 | 0 | 0 | null | 2021-01-11T15:50:59 | 2020-11-11T05:51:34 | CSS | UTF-8 | Python | false | false | 368 | py | # Generated by Django 3.1.3 on 2020-11-28 08:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("library", "0003_auto_20201128_0823"),
]
operations = [
migrations.AlterUniqueTogether(
name="lendedgame",
unique_together={(... | [
"mehdi.bichari@outscale.com"
] | mehdi.bichari@outscale.com |
7f271a553860b8386270632196e05e93106e5631 | 5cbf6cf8a9eb958391c371c6181c49155533b6ba | /leetcode_链表_18.排序链表(快排+归并).py | 4825959173e4f80a6369e29f6246967d3a75fdf9 | [] | no_license | cmychina/Leetcode | dec17e6e5eb25fad138a24deba1d2f087db416f7 | 18e6ac79573b3f535ca5e3eaa477eac0e60bf510 | refs/heads/master | 2022-12-20T16:09:46.709808 | 2020-09-28T04:04:54 | 2020-09-28T04:04:54 | 282,446,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | """
链表的快排与归并排序
"""
from linklist import *
class Solution:
def sortList(self, head: ListNode) -> ListNode:
"""
归并排序,要找中点,链表中点用快慢指针
:param head:
:return:
"""
if not head or not head.next:
return head
slow,fast=head,head
while fast.next and fa... | [
"noreply@github.com"
] | cmychina.noreply@github.com |
b277f0d27a1a1bc16d0c56b6ca8d5a27cbcb6c93 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/authoring/aio/_operations/_operations.py | 0e46617f5d1c327c085652d1db7dc3c6ae718e0c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 153,782 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | gaoyp830.noreply@github.com |
eb0c32a682abc73083d3f4107b867774b5972b20 | 67e3388ed0e1154dc0ceb189c83a8521eba79fae | /katpoint/test/test_projection.py | 032e6ecdfb607b5818f3fbdd90f050914c002c10 | [
"BSD-3-Clause"
] | permissive | astrojhgu/katpoint | 3dd0f946d76859280ade5f55c85f08538cc24462 | b0fa342c2f6dcebe7474cc405d5fbdb4f3f295bc | refs/heads/master | 2020-12-31T00:40:42.452856 | 2017-01-31T10:30:25 | 2017-01-31T10:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,066 | py | ################################################################################
# Copyright (c) 2009-2016, National Research Foundation (Square Kilometre Array)
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy
# of the... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
e71f2ad4ff01abe55a1af73d50b4b2075d281736 | b2f3b7b3be11a63d5d1ddfea945439402394efe7 | /routers/stock_dividends.py | 867f17a070eb93246f322a74b193cce05c8808cc | [] | no_license | leonardoo/fast_api_stock_bvc | a8a57b9e2e3822c84829a91702ba2ce73c6ff439 | c91b9267360ed0aacd2e98a1da9b1e3b160dc837 | refs/heads/main | 2023-08-13T08:05:41.064300 | 2021-10-08T00:05:14 | 2021-10-08T00:05:14 | 383,130,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | from typing import List
from datetime import datetime
from fastapi import APIRouter, Depends
from starlette.responses import JSONResponse
from models.stock import Stock
from models.stock_dividends import StockDividends
from models.users import User
from plugins.fastapi_users import fastapi_users
router = APIRouter(
... | [
"leonardoorozcop@gmail.com"
] | leonardoorozcop@gmail.com |
30afc63d7c5839fede97f2925e6bbb6f93e81b28 | e65453aecb1b64f75a4a6eee7ca1328984773d5d | /Test/test1.py | 662d8a12291d456ee624881943ae9a53dc213b46 | [] | no_license | huyendtt58/raSAT | 1a9a0a1c05b81877416e82c9c102ae92c6d80931 | b4f7c8995eef71bd099046c761ea19ea904fd18d | refs/heads/master | 2021-01-19T14:27:24.036231 | 2017-02-23T12:36:52 | 2017-02-23T12:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,520 | py | import fnmatch
import os
import subprocess
import csv
matches = []
def run(directory, initLowerBound, initUpperBound, initSbox, timeout, resultFile):
lowerBound = initLowerBound
upperBound = initUpperBound
#sbox = initSbox
solvedProblems = 0
with open(os.path.join(directory, resultFile), 'wb') as csvfile:
... | [
"toilatung90@gmail.com"
] | toilatung90@gmail.com |
95292dbab6b727fc93cbd5ed860178fecee84ca4 | 752116ef4b69a3049fef0cfe9b3d212548cc81b1 | /sources/actions/watch/describe.py | ef16f46eb7e4fe787faa620233f6f13455fd54fb | [] | no_license | VDOMBoxGroup/runtime2.0 | e54af4af7a642f34b0e07b5d4096320494fb9ae8 | cb9932f5f75d5c6d7889f26d58aee079b4127299 | refs/heads/develop | 2023-07-07T11:06:10.817093 | 2023-07-03T06:11:55 | 2023-07-03T06:11:55 | 62,622,255 | 0 | 12 | null | 2023-05-23T02:55:00 | 2016-07-05T09:09:48 | Python | UTF-8 | Python | false | false | 4,418 | py |
from logs import console
from utils.structure import Structure
from utils.parsing import VALUE, Parser, ParsingException
from ..auxiliary import section, show
from .auxiliary import query
REQUEST = "<action name=\"describe\">%s</action>"
SOURCE_OBJECTS_OPTION = "<option name=\"source\">objects</option>"
SOURCE_GARBA... | [
"nikolay.grishkov@vdombox.ru"
] | nikolay.grishkov@vdombox.ru |
87cee6b3fc7d259b87a0cb05ee0fee88ed14e10f | 9ae2d337cbfa56768580187cc507f9c3c4ace1a8 | /test/test_meshzoo.py | abc4f1e9a37a6ea0c9ac22e5aea80e860fa44c3f | [
"MIT"
] | permissive | tongluocq/meshzoo | 5a734012e02f70bdf37147a3520b733f5095da02 | 46d3a999b7537fdcea92cd19ae53920b8639b0b3 | refs/heads/master | 2020-09-26T11:21:16.086387 | 2019-10-16T16:36:25 | 2019-10-16T16:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,706 | py | import numpy
import pytest
import meshzoo
from helpers import _near_equal
def test_cube():
points, cells = meshzoo.cube()
assert len(points) == 1331
assert len(cells) == 5000
points, cells = meshzoo.cube(nx=3, ny=3, nz=3)
assert len(points) == 27
assert all(numpy.sum(points, axis=0) == [13.5... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
586fbbda387bcc0fd0af65aec9272afaf55c6d94 | db3a0578ef5d79cee7f9e96fa3fd291bbaaf9eb4 | /Pygame/Bees/bees.py | 90620d058d1920a15e8892180aa8c230a8c0d55f | [
"MIT"
] | permissive | otisgbangba/python-lessons | 0477a766cda6bc0e2671e4cce2f95bc62c8d3c43 | a29f5383b56b21e6b0bc21aa9acaec40ed4df3cc | refs/heads/master | 2022-11-03T22:10:52.845204 | 2020-06-13T15:42:40 | 2020-06-13T15:42:40 | 261,255,751 | 1 | 0 | MIT | 2020-05-04T17:48:12 | 2020-05-04T17:48:11 | null | UTF-8 | Python | false | false | 1,885 | py | import pygame, random
from pygame.locals import *
from util import loadImage
from bee import Bee
from flower import Flower
from score import Score
pygame.init()
TITLE = 'Bee, Get the Nectar!'
screen = pygame.display.set_mode((1280, 720), 0)
screenRect = screen.get_rect()
Bee.loadImages()
Flower.loadImages()
background... | [
"daveb@davebsoft.com"
] | daveb@davebsoft.com |
fc5c6cf54acdc92357aedf5a77af4161c7885cb0 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Box/Users/DeleteUser.py | 19db5a19eb485a39cf7171ed247400616e188e0a | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# DeleteUser
# Deletes a specified user.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from temboo.core... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
b4fdf0086dda0bb0a9e8e631adbd62959995d35f | be01d0d54723d1e876c9a15618921dffe2b2255a | /Python/BinarySearch/two_sumII.py | 0d534e7163571ad8332aad8f4b807b4999e276c6 | [] | no_license | jxlxt/leetcode | 17e7f25bf94dd334ac0d6254ffcffa003ed04c10 | a6e6e5be3dd5f9501d0aa4caa6744621ab887f51 | refs/heads/master | 2023-05-26T22:10:03.997428 | 2023-05-24T02:36:05 | 2023-05-24T02:36:05 | 118,216,055 | 0 | 0 | null | 2018-01-20T06:31:57 | 2018-01-20T06:30:06 | null | UTF-8 | Python | false | false | 1,122 | py | #! /Users/xiaotongli/anaconda3/bin/python
# -*- coding: utf-8 -*-
# @Time : 9/28/18 10:57 PM
# @Author : Xiaotong Li
# @School : University of California, Santa Cruz
# @FileName: autocomplete_System.py
# @Software: PyCharm
class Solution:
def twoSum(self, numbers, target):
"""
:type numbers: L... | [
"xli239@ucsc.edu"
] | xli239@ucsc.edu |
bbc97a0c69bc5c0d0fd4008b39d904edef1921b0 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/periodicities/Month/Cycle_Month_25_M_360.py | 82ea2d119aaaddab2bb5d8c525d24df36e2a36a3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 82 | py | import tests.periodicities.period_test as per
per.buildModel((360 , 'M' , 25));
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
5bc08a32ba5bc9e78823dc89fe5070e1deb89e25 | 057d2d1e2a78fc89851154e87b0b229e1e1f003b | /venv/Lib/site-packages/keystoneclient/auth/identity/v2.py | add1da4f5d894be3192f1253735eca8da6d07f56 | [
"Apache-2.0"
] | permissive | prasoon-uta/IBM-Cloud-Secure-File-Storage | 276dcbd143bd50b71121a73bc01c8e04fe3f76b0 | 82a6876316715efbd0b492d0d467dde0ab26a56b | refs/heads/master | 2022-12-13T00:03:31.363281 | 2018-02-22T02:24:11 | 2018-02-22T02:24:11 | 122,420,622 | 0 | 2 | Apache-2.0 | 2022-12-08T05:15:19 | 2018-02-22T02:26:48 | Python | UTF-8 | Python | false | false | 7,824 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"prasoon1812@gmail.com"
] | prasoon1812@gmail.com |
319a8ecd8143da437cd5720b73ed24a1a396c1cc | 2f09e893c3a21f4a17c95b99446d1efbf0b109f7 | /huaytools/tensorflow/layers/__init__.py | 6f45582415c893a8cb74a1d2dd931b0b6805be10 | [
"MIT"
] | permissive | knight134/huaytools | b19f0078e724963415c63d60218ae3cc624f598a | cbecd6771c05f8241e756a7619047589397b16d3 | refs/heads/master | 2020-04-24T18:30:27.732740 | 2018-05-27T13:51:24 | 2018-05-27T13:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | """
"""
import tensorflow as tf
import tensorlayer as tl
# from .cnn import *
# from .rnn import *
from .attention import *
from .embedding import *
logging = tf.logging
def dense(inputs, n_units,
activation=tf.nn.relu,
use_bias=True,
W_init=tf.truncated_normal_initializer(stddev=0.1)... | [
"imhuay@163.com"
] | imhuay@163.com |
1548d5d2f9a1f0420dc18688bb58d6d32b25877a | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_10_01/operations/_mhsm_private_endpoint_connections_operations.py | 071dc770d7741dd509f07515c1cb63522e1d153e | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 26,266 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
afeebd636416a886d7f9ed90d354fd7b7d02c895 | 71cc3524493e30366f122fdbdfd4260ca0ae8934 | /harbor_client/model/retention_policy_scope.py | c7b1ef5000b7ed44731db1b1367749fcd29b7d6f | [] | no_license | moule3053/harbor-python-client-api | f293a42bac0e2eee54d43d89af12fb215146bd06 | 31abc14deaf6bb62badc4d9a7b687c60e6fc99eb | refs/heads/master | 2023-08-24T23:16:45.144820 | 2021-10-11T22:54:36 | 2021-10-11T22:54:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,210 | py | """
Harbor API
These APIs provide services for manipulating Harbor project. # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from harbor_client.model_utils import ( # noqa: F401
ApiTypeError... | [
"vb@container-registry.com"
] | vb@container-registry.com |
da9a073d426253f4f74df5f982a4c0fd2cf697bd | a81c1492783e7cafcaf7da5f0402d2d283b7ce37 | /google/ads/google_ads/v6/proto/resources/ad_group_criterion_pb2.py | 6a447067f79a24f9a96374b62dd4f696aab9a5b9 | [
"Apache-2.0"
] | permissive | VincentFritzsche/google-ads-python | 6650cf426b34392d1f58fb912cb3fc25b848e766 | 969eff5b6c3cec59d21191fa178cffb6270074c3 | refs/heads/master | 2023-03-19T17:23:26.959021 | 2021-03-18T18:18:38 | 2021-03-18T18:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 66,824 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v6/resources/ad_group_criterion.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import ... | [
"noreply@github.com"
] | VincentFritzsche.noreply@github.com |
df84bf9d01fc1b6084257e37167497a0c70e75dd | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Configuration/Generator/python/SingleElectronFlatPt5To100_pythia8_cfi.py | 37df2ba0d8904688e35cfd867a38350252f6e5ef | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 813 | py | import FWCore.ParameterSet.Config as cms
generator = cms.EDFilter("Pythia8PtGun",
PGunParameters = cms.PSet(
MaxPt = cms.double(5.),
MinPt = cms.double(100.),
ParticleID = cms.vint32(11),
AddAntiParticle = cms.bool(True),
MaxEta = cms.double(2.5),
... | [
"you@somedomain.com"
] | you@somedomain.com |
7c258ecc296b93e65bf8e0cbc5b9c3df0c21f607 | 21818228cb62d31b9685de44deb27cfd90430573 | /ccxt/flowbtc.py | 2153a8b8e285212a60a2754aaf3d616c1ebb77d1 | [] | no_license | mico/cryptoArbitrage | d9d5d2f89e3fccc0b84d9c13b771edef0f2b00a1 | ea9ef03e79f302b36948746c77e4acbb3d6f01b7 | refs/heads/master | 2021-03-22T00:17:30.448593 | 2018-05-28T05:08:21 | 2018-05-28T05:08:21 | 108,232,310 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 7,310 | py | # -*- coding: utf-8 -*-
from ccxt.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
class flowbtc (Exchange):
def describe(self):
return self.deep_extend(super(flowbtc, self).describe(), {
'id': 'flowbtc',
'name': 'flowBTC',
'countries': 'BR', ... | [
"artur.komarov@gmail.com"
] | artur.komarov@gmail.com |
dcd8e325ace6b51794580b2b65cb39022b4d9256 | 837ebd601d0882e370522719606c975b9c815ad2 | /adm/templates/plugins/mediation/{{cookiecutter.name}}/main/application.py | 9ee876166f3b2151ae78f6033bb9438e0b514679 | [
"BSD-3-Clause"
] | permissive | dearith/mfserv | 8ba97e211d31a177fc6de160cd4b1f8555ebf600 | ad72e51bf77595a75dcb2600d7323f13e2c2fb4b | refs/heads/master | 2021-08-15T21:17:30.528351 | 2019-04-25T10:25:58 | 2019-04-25T10:25:58 | 183,577,154 | 0 | 0 | null | 2019-04-26T07:10:44 | 2019-04-26T07:10:43 | null | UTF-8 | Python | false | false | 2,141 | py | from aiohttp import web, ClientSession
from aiohttp_metwork_middlewares import mflog_middleware
CHUNK_SIZE = 4096 * 1024
STREAMING_MODE = True
async def handle(request):
# Log something with context aware logger
log = request['mflog_logger']
http_method = request.method
url_path_qs = request.path_qs... | [
"fabien.marty@gmail.com"
] | fabien.marty@gmail.com |
c117af46846c1174ea7008f8552fa52b1505a9b8 | ebbfc69c9b14b8fd0e8b51abb0ba4f767abce6e9 | /sandbook/base/models/novel.py | 3e4e8fdb929f8cfbc346753c49db9354d87a73f8 | [] | no_license | lwaxx/novel | 0a882347dffaafb35f061eaf6301abe32254b54f | 5b538e85606cd22c34ac10f53438fc0d3ff131a0 | refs/heads/master | 2022-06-30T03:21:52.673001 | 2020-05-09T15:26:58 | 2020-05-09T15:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,965 | py | import os
import re
import time
from django.core.files.storage import FileSystemStorage
from django.db import models
from base.constants.novel import (
DEFAULT_COVER, NOVEL_STATUS_UNAPPROVED, NOVEL_STATUS_ACTIVE, NOVEL_STATUS_FINISHED,
NOVEL_STATUS_BLOCKED
)
from django.core.cache import cache
from general.u... | [
"1225191678@qq.com"
] | 1225191678@qq.com |
dcd9d496ee0141ea04f9a8c83b711f5ce5252089 | ffc1cc3bb7b68335b115122fdc7924fc4e31d528 | /pro38.py | fd23c4fc45f9509da980b95618a4cae2a5d6442b | [] | no_license | Rihanashariff/swathi24 | dba1dd3c3d2ff583ae431b432e0ef262bfeb3ac3 | 2b0d21f2febdd2a563e8f0affeebd5ca7a5821b8 | refs/heads/master | 2020-07-02T05:28:32.199982 | 2019-06-29T08:22:10 | 2019-06-29T08:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | #s
n,k = map(int,input().split())
l = list(map(int,input().split()))
c= 0
for i in l:
if(i+k <=5):
c+=1
g=c//3
print(g)
| [
"noreply@github.com"
] | Rihanashariff.noreply@github.com |
cc09ec3dc544f923a01256d80c96928a1ec33d28 | 0dc24a6e729a4b438fbcd9cfb72da3b6ee716d77 | /ksiazka_zrob_to_sam/my_electric_car.py | 10fbec7652bb7144eb706ddd63de707e5df80507 | [] | no_license | Licho59/learning_python_eric_matthes_book | fca84a2bff207c10dec20c7fea9aeacf05d6a101 | 969f95132822d8bd21c30403d8e0bf6aadb9914f | refs/heads/master | 2021-09-01T03:41:37.281741 | 2017-12-24T15:12:13 | 2017-12-24T15:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 8 21:20:17 2017
@author: Leszek
"""
from car import ElectricCar
my_tesla = ElectricCar('tesla', 'model s', 2016)
print(my_tesla.get_descriptive_name())
my_tesla.battery.describe_battery()
my_tesla.battery.get_range()
# Import wielu klas z modułu
from car import Car,... | [
"lestlalka@gmail.com"
] | lestlalka@gmail.com |
5487773f243f788ebc92256016ebad447a41750c | d5f75adf5603927396bdecf3e4afae292143ddf9 | /python/paddle/fluid/tests/unittests/test_kthvalue_op.py | 66eb8ab4f31fba1ef8cb7eee8a8896077b683a1f | [
"Apache-2.0"
] | permissive | jiweibo/Paddle | 8faaaa1ff0beaf97ef7fb367f6c9fcc065f42fc4 | 605a2f0052e0ffb2fab3a4cf4f3bf1965aa7eb74 | refs/heads/develop | 2023-07-21T03:36:05.367977 | 2022-06-24T02:31:11 | 2022-06-24T02:31:11 | 196,316,126 | 3 | 2 | Apache-2.0 | 2023-04-04T02:42:53 | 2019-07-11T03:51:12 | Python | UTF-8 | Python | false | false | 6,945 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | jiweibo.noreply@github.com |
a272e1b11c4ec4f975a6dd241d020af9876ef059 | 6d8ed9e06e7783443fac3d100a4fdea304d5d64e | /dashboard/internet_nl_dashboard/migrations/0036_urllistreport_average_internet_nl_score.py | de64746ac2b34bee044538ef4f70302d905e030b | [
"Apache-2.0"
] | permissive | internetstandards/Internet.nl-dashboard | 399c6d13d66bbc56b1a5b964a727cc299d351bd8 | f1f68352a173689e2386d790f69bd28640a75e09 | refs/heads/main | 2023-08-31T21:01:42.739287 | 2023-07-12T10:51:16 | 2023-07-12T10:51:16 | 175,843,928 | 7 | 8 | Apache-2.0 | 2023-09-13T08:45:51 | 2019-03-15T15:16:49 | JavaScript | UTF-8 | Python | false | false | 667 | py | # Generated by Django 2.2.2 on 2019-06-28 07:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('internet_nl_dashboard', '0035_auto_20190624_0712'),
]
operations = [
migrations.AddField(
model_name='urllistreport',
... | [
"elger.jonker@gmail.com"
] | elger.jonker@gmail.com |
b363e6a7cb06107e6b57f522269db06f2372e699 | 7be4f595d555614a28f708c1ba7edda321f0cf30 | /practice/algorithms/implementation/find_digits/find_digits.py | 944aa7f96b379dc5bf1efe15f35da50bb098ef74 | [] | no_license | orel1108/hackerrank | de31a2d31aaf8aeb58477d1f2738744bfe492555 | 55da1f3a94e8c28ed0f0dea3103e51774f0047de | refs/heads/master | 2021-04-09T17:38:25.112356 | 2017-01-22T11:21:19 | 2017-01-22T11:21:19 | 50,198,159 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | t = int(raw_input())
for _ in range(t) :
n = raw_input()
digits = map(int, n)
print len(filter(lambda x: x > 0 and int(n) % x == 0, digits))
| [
"r.orlovskyi@gmail.com"
] | r.orlovskyi@gmail.com |
0439f06409ab6778d84756e8fa98bb4cb7bd9058 | cb20ef5b4048457a2e6dca4a4cb45c53c9843744 | /test/rosapi/1.0/actions/data.logrotate.py | c1b93af96b263f644f14def92db35a78ef176b57 | [] | no_license | rudecs/openvcloud | 5001b77e8d943427c1bed563f3dcc6b9467936e2 | 12ccce2a54034f5bf5842e000c2cc3d7e22836d8 | refs/heads/master | 2020-03-24T00:00:10.422677 | 2018-11-22T13:41:17 | 2018-11-22T13:41:17 | 142,267,808 | 2 | 1 | null | 2018-07-25T08:02:37 | 2018-07-25T08:02:36 | null | UTF-8 | Python | false | false | 54 | py | def main(j,jp):
#remove old logs
pass
| [
"devnull@localhost"
] | devnull@localhost |
20ea0483a27f1041660bd88552c58835f78d876e | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/tenPercent/rank_1bj1_H.py | 1bc2f459e6bf336ab3b52b79623a3fec22f210a6 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
444d45bf3c5ac155b55dfd08b8250911a948e0c8 | a550aece79bda789826b463280b91abffbf2d372 | /books/python-3-oop-packt/Chapter7/7_28_callable_repeat.py | 09746de64e095feb18df107627ebdb96c1fe1546 | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 469 | py | from timer import Timer
import datetime
def format_time(message, *args):
now = datetime.datetime.now().strftime("%I:%M:%S")
print(message.format(*args, now=now))
class Repeater:
def __init__(self):
self.count = 0
def __call__(self, timer):
format_time("{now}: repeat {0}", self.count)
... | [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
088099fe03d5e3dee4df77f61ea5cb2aa08d45d5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /M8hDPzNZdie8aBMcb_11.py | f8aa226b0f1d8e00377c89c45f1f158d226792c3 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | """
Implement a function count_substring that counts the number of substrings that
begin with character "A" and ends with character "X".
For example, given the input string `"CAXAAYXZA"`, there are four substrings
that begin with "A" and ends with "X", namely: "AX", "AXAAYX", "AAYX", and
"AYX".
### Examples
c... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5458665911175eba625d5f5b7fc0cc7853562425 | 9d82e37d34ed4d836fcef98ed37ed7ac5c49b316 | /ibmsecurity/isam/web/embedded_ldap/admin.py | a068695630ebb77e72b212d90faed1a94943d4d2 | [
"Apache-2.0"
] | permissive | keiran-ibm/ibmsecurity | 075c156961e371c0e85a7c360fb2d82954315bb6 | b1a77f7a1e8c3cce67e2c3af85c20626d42c0bbd | refs/heads/master | 2022-02-14T14:24:15.687461 | 2019-01-18T05:21:19 | 2019-01-18T05:21:19 | 116,325,033 | 0 | 0 | Apache-2.0 | 2019-01-18T05:16:46 | 2018-01-05T01:23:35 | Python | UTF-8 | Python | false | false | 643 | py | import logging
logger = logging.getLogger(__name__)
def set_pw(isamAppliance, password, check_mode=False, force=False):
"""
Changing the administrator password of the embedded LDAP server
"""
if check_mode is True:
return isamAppliance.create_return_object(changed=True)
else:
retu... | [
"rsreera@us.ibm.com"
] | rsreera@us.ibm.com |
be65e8b6843e01ce485befc48c2d14bde2967dea | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/contradiction/medical_claims/alamri/tfrecord_gen.py | 5ddfa13b77c7f7eda2cea802707861ff4e6e6373 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 3,932 | py | import json
import os
from typing import Iterator
from contradiction.medical_claims.alamri.pairwise_gen import enum_true_instance, enum_neg_instance, enum_neg_instance2, \
enum_neg_instance_diff_review
from contradiction.medical_claims.biobert.voca_common import get_biobert_tokenizer
from cpath import at_output_di... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
b324821f4e1cb588672bdca6d07e05ff834b9547 | a939ec03a7eb31962817d6cffea7f125ea4d69db | /DataScience/pandas/Example02_series.py | 9983ac491066a66c45841303c88fcc293db3bfb3 | [] | no_license | dipayandutta/python3 | e21e50d7a21315bc63702a103af79f3d61d91ab1 | f3d01ea52d05a23103cf86afbf5dff64a5d36634 | refs/heads/master | 2022-12-10T09:13:04.967400 | 2021-07-25T15:20:40 | 2021-07-25T15:20:40 | 153,072,927 | 0 | 0 | null | 2022-11-22T02:24:01 | 2018-10-15T07:46:28 | Python | UTF-8 | Python | false | false | 144 | py | #Manually assign index values to a series
import pandas as pd
series = pd.Series(['Dipayan','Ruby'],index=['Husband','spouse'])
print(series) | [
"inbox.dipayan@gmail.com"
] | inbox.dipayan@gmail.com |
5f956a3f925ac4a9a724e8128b079d5b8afa2c82 | 45734abde30b437c2a1ba80653d7323e5c1d8c7f | /python/0320_generalized_abbreviation.py | f56e22143bc7bf3043f75dbf895dd29533b46079 | [] | no_license | rdtr/leetcode_solutions | 6629e03dd5b5fee15aaabe7f53204778f237ed96 | 51800d33c57e36ef62b6067d6f91a82c0e55dc6d | refs/heads/main | 2022-05-21T12:17:23.201832 | 2022-03-12T09:20:46 | 2022-03-12T09:20:46 | 80,395,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from collections import deque
class Solution:
def generateAbbreviations(self, word: str) -> List[str]:
res = []
self.helper(word, 0, 0, '', res)
return res
def helper(self, word, pos, length, cur, res):
if pos >= len(word):
if length > 0:
cur += str... | [
"redtree.dev1112@gmail.com"
] | redtree.dev1112@gmail.com |
0991be737f49582ec10aa7eedbd0a61d6dfe7b40 | 9b0bdebe81e558d3851609687e4ccd70ad026c7f | /剑指offer/02.从尾到头打印链表.py | c171768fb4cf4ebffccff7c7bf930ebb8b0066c0 | [] | no_license | lizenghui1121/DS_algorithms | 645cdad007ccbbfa82cc5ca9e3fc7f543644ab21 | 9690efcfe70663670691de02962fb534161bfc8d | refs/heads/master | 2022-12-13T22:45:23.108838 | 2020-09-07T13:40:17 | 2020-09-07T13:40:17 | 275,062,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | """
输入一个链表,按链表从尾到头的顺序返回一个ArrayList。
@Author: Li Zenghui
@Date: 2020-03-02 20:10
"""
# -*- coding:utf-8 -*-
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# 返回从尾部到头部的列表值序列,例如[1,2,3]
def printListFromTailToHead(self, listNode):
res = []
... | [
"954267393@qq.com"
] | 954267393@qq.com |
b08c2c670bcb0c5c3ca004b5b5e8ae7656f10ffa | 369b985626c565096a3e65635542ac708339b329 | /blog/urls.py | 9a3cbcfd3770f5beceeffc016a5790b887880504 | [
"MIT"
] | permissive | ernestmucheru/Week4-IP | 9a68b28a127d8746d777d7b67e2cc055d034980c | be80372a33cbc3e80644915db66e0bf51cced175 | refs/heads/main | 2023-06-27T19:45:48.071039 | 2021-07-27T06:34:22 | 2021-07-27T06:34:22 | 389,307,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from django.urls import path
# from .views import (PostListView,PostDetailView,PostCreateView,PostUpdateView,PostDeleteView)
from . import views
urlpatterns =[
# path('', PostListView.as_view(), name='blog'),
# path('post/<int:pk>/', PostDetailView.as_view(), name='post-detail'),
# path('post/new/', PostCr... | [
"you@example.com"
] | you@example.com |
84df37df94ef3c4a86e883fc459662587a40e5c2 | 10686640b326da3de4e37b08bebd9f7ec7609ca7 | /uvscada/bpm/i87c51/write.py | 05a1a477faa0b38d6118941655ab56c87cb0f289 | [
"BSD-2-Clause"
] | permissive | jshafer817/uvscada | 62e11d136e03968878bcd647c896c32acae23c79 | 206a6c0cbf241b037de1fab47ce6f386d61b7982 | refs/heads/master | 2021-01-18T05:00:32.710552 | 2017-02-26T03:06:34 | 2017-02-26T03:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,066 | py | import binascii
import time
import usb1
import libusb1
import sys
import struct
import inspect
from uvscada.usb import usb_wraps
from uvscada.bpm.bp1410_fw import load_fx2
from uvscada.bpm import bp1410_fw_sn, startup
from uvscada.bpm.cmd import bulk2, bulk86
from uvscada.bpm.cmd import sm_read, gpio_readi, led_mask_3... | [
"JohnDMcMaster@gmail.com"
] | JohnDMcMaster@gmail.com |
dcd1312cab4fb26d9d18de7f6ae7ba98ab807bcc | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPD_20210712184959.py | 2722f9846c7b00deb679ab94edd3570b6ebdba30 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,129 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aer... | [
"libao@gatech.edu"
] | libao@gatech.edu |
2f9e3f9b1f607d3f89fc3e056f19fcccad2f74fe | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/recent/String.prototype.startsWith.spec | ba62e090c26d2ee9be97ca1a97a2010796ad2856 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 884 | spec | 1. Let _O_ be ? RequireObjectCoercible(*this* value).
1. Let _S_ be ? ToString(_O_).
1. Let _isRegExp_ be ? IsRegExp(_searchString_).
1. If _isRegExp_ is *true*, throw a *TypeError* exception.
1. Let _searchStr_ be ? ToString(_searchString_).
1. Let _len_ be t... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
9d0b0a941398fd991247b3a0ec96412244d364c5 | 30fe7671b60825a909428a30e3793bdf16eaaf29 | /.metadata/.plugins/org.eclipse.core.resources/.history/9a/f0d15008ccf800161174a93fd5908e78 | 96f863b8b89de32901e8cf640c731bc4ebefeb38 | [] | no_license | abigdream84/PythonStudy | 0fc7a3b6b4a03a293b850d0ed12d5472483c4fb1 | 059274d3ba6f34b62ff111cda3fb263bd6ca8bcb | refs/heads/master | 2021-01-13T04:42:04.306730 | 2017-03-03T14:54:16 | 2017-03-03T14:54:16 | 79,123,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | #!/usr/bin/env python
#coding:UTF-8
from audit_demo.utility.MySqlHelper import MySqlHelper
class g_table(object):
def __init__(self):
self.__helper = MySqlHelper()
def add_grp(self,gpname):
sql = 'insert into g_table(g_name) values(%s)'
try:
self.__helper.insert(sql,gp... | [
"abigdream@hotmail.com"
] | abigdream@hotmail.com | |
d78e9b91414cf74ab0da36fd5f6de8f911a9e0cd | 53eee7eb899cb518983008532257037fb89def13 | /2579.count-total-number-of-colored-cells.py | eb2d7d5de90aeac6f2c95bbec4eef4b247461260 | [] | no_license | chenxu0602/LeetCode | 0deb3041a66cb15e12ed4585bbe0fefce5dc6b26 | 3dc5af2bc870fcc8f2142130fcd2b7cab8733151 | refs/heads/master | 2023-07-05T19:26:21.608123 | 2023-07-02T08:35:35 | 2023-07-02T08:35:35 | 233,351,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | #
# @lc app=leetcode id=2579 lang=python3
#
# [2579] Count Total Number of Colored Cells
#
# @lc code=start
class Solution:
def coloredCells(self, n: int) -> int:
# return n * n + (n - 1) * (n - 1)
return 2 * n * (n - 1) + 1
# @lc code=end
| [
"chenxu@MacBook-Pro.local"
] | chenxu@MacBook-Pro.local |
3c74be0064501659bed8cf392ce9d5f5ca0414a4 | bede337b5ee193bb5669c855b70a78d929dc5ae8 | /apps/one_password.py | ca9110f9a15ed7b774c7eb7f446788b5cfa0d019 | [
"0BSD"
] | permissive | dwiel/talon-user | ffe83c05e054626431fe12c14dbfe850950fa4c4 | 559617135408ea2ceafaef54564438405546f255 | refs/heads/master | 2020-09-12T22:58:36.575833 | 2019-11-19T17:12:05 | 2019-11-19T17:12:05 | 222,585,938 | 0 | 0 | NOASSERTION | 2019-11-19T02:00:20 | 2019-11-19T02:00:19 | null | UTF-8 | Python | false | false | 217 | py | from talon import ctrl
from talon.voice import Context, Key
from ..utils import text, delay
ctx = Context("1password")
ctx.keymap({
"password [<dgndictation>] [over]": [Key("shift-cmd-\\"), delay(0.2), text],
}) | [
"dwight.holman@workday.com"
] | dwight.holman@workday.com |
050f2631f6b47527fb3ebdc876e7b392d2199011 | 3ffb51fa2241cba9c9680ab01f8da4057861f849 | /collezione/migrations/0023_auto_20181102_1526.py | a6e5117963a13b170e60c828a4b8d205856cf3f5 | [] | no_license | mions1/Euros | a663d9e3a38de56c51091233e6b4fc6db3147fb2 | faa74139e178b2c9dc868a536518715bed91c676 | refs/heads/master | 2020-04-08T00:12:45.713416 | 2018-11-23T14:35:45 | 2018-11-23T14:35:45 | 158,842,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # Generated by Django 2.1.2 on 2018-11-02 15:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('collezione', '0022_auto_20181030_2030'),
]
operations = [
migrations.AddField(
model_name='acquisto... | [
"simone.mione1@gmail.com"
] | simone.mione1@gmail.com |
e5fb1f72e9850b7e778c6e302a06e49f892d630d | 6c219c027c7d0ef454bdeac196bd773e8b95d602 | /system/tomcat/tomcat_put_exec.py | 5d95b87eb442bce192ffbb30043ed14ef2a86d4f | [] | no_license | aStrowxyu/pocscan | 663f3a3458140e1bce7b4dc3702c6014a4c9ac92 | 08c7e7454c6b7c601bc54c21172c4788312603b1 | refs/heads/master | 2020-04-19T10:00:56.569105 | 2019-01-29T09:31:31 | 2019-01-29T09:31:31 | 168,127,418 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: Tomcat代码执行漏洞(CVE-2017-12616)
referer: https://mp.weixin.qq.com/s/dgWT3Cgf1mQs-IYxeID_Mw
author: Lucifer
description: 当 Tomcat 运行在 Windows 主机上,且启用了 HTTP PUT 请求方法(例如,将 readonly 初始化参数由默认值设置为 false),攻击者将有可能可通过精心构造的攻击请求向服务器上传包含任意代码的 JSP 文件。之后,JSP 文件中的代码将能被服务器执行。
影响版本:A... | [
"wangxinyu@vackbot.com"
] | wangxinyu@vackbot.com |
99d4e37e0d66355af8f0a5232e0a8b75df8ecdd0 | 4539b71e48ec47526f7f3834098e491383096fcd | /DemoUIonly-PythonQt/chap14matplotlib/Demo14_2Detail/myMainWindow.py | d7a681172d064cd1507c14f78d451967de8ba6bb | [] | no_license | likeke201/qt_code | e4d5ae8894153ae7a92e4ffdc01612c0aeb7510b | e0244558764bbbcc3646e828a907cdb1cdee6225 | refs/heads/master | 2022-12-06T11:23:38.068457 | 2020-08-30T05:16:12 | 2020-08-30T05:16:12 | 291,404,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,229 | py | # -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import (QApplication, QMainWindow,
QSplitter, QColorDialog, QLabel, QComboBox)
from PyQt5.QtCore import pyqtSlot,Qt
from PyQt5.QtGui import QColor
import numpy as np
import matplotlib as mpl
import matplotlib.style as mplStyl... | [
"316790607@qq.com"
] | 316790607@qq.com |
9d7e53e4f1b89ea971dd1e49f599e7919a008497 | 4bab98acf65c4625a8b3c757327a8a386f90dd32 | /ros2-windows/Lib/site-packages/rqt_publisher/publisher.py | ecccbf727b1edfdae4f1dbb37ffd5136f5f52b43 | [] | no_license | maojoejoe/Peach-Thinning-GTRI-Agricultural-Robotics-VIP | e2afb08b8d7b3ac075e071e063229f76b25f883a | 8ed707edb72692698f270317113eb215b57ae9f9 | refs/heads/master | 2023-01-15T06:00:22.844468 | 2020-11-25T04:16:15 | 2020-11-25T04:16:15 | 289,108,482 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,547 | py | #!/usr/bin/env python
# Copyright (c) 2011, Dorian Scholz, TU Darmstadt
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# ... | [
"aidencfarrar@gmail.com"
] | aidencfarrar@gmail.com |
49a7d67eecf924882e9f2aa4097d4b1d2d124264 | ec46c70a721f16031a784f54f522656fb43dfc9f | /venv/lib/python3.6/stat.py | 4d858099ad6d6f85e6e7bf6703e84af7a7511e3c | [] | no_license | kardelen-karatas/django-importXML | c6a62942b740697d3647ec0bc1ed9c078e751159 | b169966627bd54b684aaedd5fd6c0d7be551b973 | refs/heads/master | 2022-12-10T00:38:40.578278 | 2020-04-15T10:34:36 | 2020-04-15T10:34:36 | 125,032,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /home/kardelen/.pyenv/versions/3.6.3/lib/python3.6/stat.py | [
"kardelen.karatas@gmail.com"
] | kardelen.karatas@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.