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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4693784784bb42b021025f1ca712c9ce4534686e | 50957651c54cfb3cba809eb84cf56c0cb2e2621d | /tests/cpydiff/modules_sys_stdassign.py | 096af430e4f571587577ec543a3dfb426aa26dbd | [
"MIT"
] | permissive | whyengineer/micropython-esp32 | 94d11e1f5171ea526ac5f97de60e34560b656435 | ab95d9cb19fc8cda42bf3fdecd76625ff9929c4e | refs/heads/esp32 | 2020-12-02T18:20:19.929696 | 2017-07-07T10:21:24 | 2017-07-07T10:21:24 | 96,515,880 | 4 | 0 | null | 2017-07-07T08:14:40 | 2017-07-07T08:14:39 | null | UTF-8 | Python | false | false | 223 | py | """
categories: Modules,sys
description: Override sys.stdin, sys.stdout and sys.stderr. Impossible as they are stored in read-only memory.
cause: Unknown
workaround: Unknown
"""
import sys
sys.stdin = None
print(sys.stdin)
| [
"damien.p.george@gmail.com"
] | damien.p.george@gmail.com |
20cc519f37b4cc8a0dbe3cb2c7440dd9e4437f7b | 22d6db28f14ea809fffb3afb187a1b484474713f | /azext_keyvault/mgmt/keyvault/models/__init__.py | e561ff7983d0c7bb82557cb61856036e4c53e434 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-keyvault-cli-extension | 631322637f2311b6833bc9664ef92fd77e1eade6 | a9b4a1f8a1f8e2433f83a81efe6068e3bf4537ef | refs/heads/master | 2023-06-09T18:56:46.388527 | 2023-06-02T16:18:23 | 2023-06-02T16:18:23 | 130,276,163 | 3 | 8 | MIT | 2023-06-02T16:18:24 | 2018-04-19T21:49:23 | Python | UTF-8 | Python | false | false | 4,353 | 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 ... | [
"sschaab@microsoft.com"
] | sschaab@microsoft.com |
2c0dc72ca231da4f98c7a53bddff61f3cebb751f | c1ef1f1fa94b5dbecff2ec09e94ae29a9094d82a | /study/backjoon/backjoon_2231.py | 0561b5dae7d63b7ff43bdca2e4d945e638375f74 | [] | no_license | MONKEYZ9/algorithm | cd6039a2232615e9bd40f63e2509fddf7edcede7 | 4ffde1ac47294af87152ed740962db600e0b9755 | refs/heads/main | 2023-08-14T17:01:54.792376 | 2021-10-01T06:14:55 | 2021-10-01T06:14:55 | 380,917,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | N = input()
max_N = 9*len(N)+1
ans = []
for i in range(1, max_N):
temp = 0
if int(N)-i > 0:
if len(str(int(N)-i)) >= 2:
for j in list(str(int(N)-i)):
temp += int(j)
if i == temp:
ans.append(int(N)-i)
else:
if ((int(N)-i)*2) ==... | [
"sangmin3285@gmail.com"
] | sangmin3285@gmail.com |
5a7e2ba68068192502f574cba81b2619a076de0a | 258f6619c909be6295078d34639f4ffa171257b3 | /src/edb/model/experiment/__init__.py | 6bf85c797e89e61f8a4009925a8e3d711c405148 | [] | no_license | aidanheerdegen/experimentdb | a12a168c50517c72028ab7ba231a27bda88fc05d | 8a5e77b2b489c4cba8766c8071c238586c11c0a3 | refs/heads/main | 2023-07-30T00:15:44.168950 | 2021-09-10T06:35:32 | 2021-09-10T06:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from .base import Experiment
from ...utils import all_subclasses
# Import the subclasses so they're loaded
from . import accesscm, um, generic, payu
def experiment_factory(type: str, path: str) -> Experiment:
"""
Try to create a 'type' Experiment at 'path'
"""
# Each Experiment subclass has the type... | [
"scott.wales@unimelb.edu.au"
] | scott.wales@unimelb.edu.au |
4bded312dca334a10d59f07a72b4fc7556ae4dc3 | 83316f8e2be55b19d81ccee935c9cfa09ac7b0b3 | /deepaudio/speaker/models/clovaai_resnetse34l/configurations.py | 48705f3a4bafd38013ba99080910d6b4c6daef84 | [] | no_license | TrendingTechnology/deepaudio-speaker | 5769b3ed851c721a57fcc4983c5905401d50f85e | 46f4edef5957e0211b5fe82146e5ce48b1744e15 | refs/heads/main | 2023-07-05T03:39:55.224562 | 2021-08-08T08:02:12 | 2021-08-08T08:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from dataclasses import dataclass, field
from deepaudio.speaker.dataclass.configurations import DeepMMDataclass
@dataclass
class ClovaaiResnetse34lConfigs(DeepMMDataclass):
name: str = field(
default="clovaai_ecapa", metadata={"help": "Model name"}
)
embed_dim: int = field(
default=256, me... | [
"yinruiqing110@gmail.com"
] | yinruiqing110@gmail.com |
1897130bdb9a24f6cada979c2535f4bc3279dedf | d066f7fe739fb78f74ec2de8ccbfefdd4270f60f | /appimagebuilder/modules/generate/package_managers/apt/__init__.py | 7ec1d298ae9776e5b17bc702c58ca69a36ebfb00 | [
"MIT"
] | permissive | AppImageCrafters/appimage-builder | 666e75363a74f615cdb3673b3ca9d51a6d292a49 | f38699ef3644fa5409a5a262b7b6d99d6fb85db9 | refs/heads/main | 2023-08-17T06:34:54.029664 | 2023-06-03T17:51:04 | 2023-06-03T17:51:04 | 218,847,680 | 270 | 54 | MIT | 2023-09-06T17:04:18 | 2019-10-31T19:44:17 | Python | UTF-8 | Python | false | false | 751 | py | # Copyright 2021 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publi... | [
"contact@azubieta.net"
] | contact@azubieta.net |
8a0a9d68892f0dbac3b8e55eb69e82f1788cc05e | ba2d449486c58578581b8de7b2b6f21074be6274 | /02 Linked Lists/2-4-Partition.py | 382b61d69de5bcd3a2a3495d4d3dfa4e66b26e1c | [] | no_license | theoliao1998/Cracking-the-Coding-Interview | 4e0abef8659a0abf33e09ee78ce2f445f8b5d591 | 814b9163f68795238d17aad5b91327fbceadf49e | refs/heads/master | 2020-12-09T12:46:10.845579 | 2020-07-25T05:39:19 | 2020-07-25T05:39:19 | 233,306,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | # Partition: Write code to partition a linked list around a value x, such that all nodes less than x come
# before all nodes greater than or equal to x. If x is contained within the list, the values of x only need
# to be after the elements less than x (see below). The partition element x can appear anywhere in the
# "... | [
"theoliao1998@gmail.com"
] | theoliao1998@gmail.com |
92a0f711757a1bedc1524c74b2a79606503bc2e9 | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /env/Lib/site-packages/celery/signals.py | a9d74096a187bdc77fcb044d3bc0c5991ad6c1e0 | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 4,252 | py | # -*- coding: utf-8 -*-
"""Celery Signals.
This module defines the signals (Observer pattern) sent by
both workers and clients.
Functions can be connected to these signals, and connected
functions are called whenever a signal is called.
.. seealso::
:ref:`signals` for more information.
"""
from __future__ impor... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
1770f233133bfac4134d3c943a64c6377601bf89 | 5d0e76e3c741adc120ce753bacda1e723550f7ac | /804. Unique Morse Code Words.py | 32ec17fb4276bfed3e16e772c733fbe1447b419f | [] | no_license | GoldF15h/LeetCode | d8d9d5dedca3cce59f068b94e2edf986424efdbf | 56fcbede20e12473eaf09c9d170c86fdfefe7f87 | refs/heads/main | 2023-08-25T12:31:08.436640 | 2021-10-20T04:36:23 | 2021-10-20T04:36:23 | 392,336,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | class Solution:
def uniqueMorseRepresentations(self, words: List[str]) -> int:
morse = [".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."]
l = []
for cur in words :
tmp =... | [
"todsapon.singsunjit@gmail.com"
] | todsapon.singsunjit@gmail.com |
f99716fda4cb4563b8a60f98be2ac6d07ada0747 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/reaching-points/412272224.py | f83c584abb244333b9df14020e18ff100cbbc336 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # title: reaching-points
# detail: https://leetcode.com/submissions/detail/412272224/
# datetime: Fri Oct 23 22:45:10 2020
# runtime: 20 ms
# memory: 14 MB
class Solution:
def reachingPoints(self, sx: int, sy: int, tx: int, ty: int) -> bool:
if sx == tx and sy == ty:
return True
while t... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
111b23c3006355c235c2d5856e279a4634f63d1d | 761e133170e1c34a2360d488ddca43fa40107b96 | /src/tools/MaxMa.py | c04d37033046bb1d752839b484a050412fa19f2c | [] | no_license | bjzz/StockParser | c85b7180eea7ac5fa79b320fe1ad8934513c0482 | a2dc1d2de06b78055786b956de940548bca75054 | refs/heads/master | 2023-03-18T04:54:31.487171 | 2019-09-27T09:48:28 | 2019-09-27T09:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | #coding:utf-8
#!/usr/bin/env python
import os
import re
import requests,time
import shutil
import sys
import threading
import time
import datetime
reload(sys)
sys.setdefaultencoding('utf-8')
rootPath = sys.path[0][0:sys.path[0].index('StockParser')]+'/StockParser'
sys.path.append(rootPath+'/src')
from common import ... | [
"you@example.com"
] | you@example.com |
1e581d0645442ece0090ccefed1d44c58c5b6f27 | 1f98ccf9ef52d3adab704676480c85fe22c9542d | /simpledb/index/planner/IndexUpdatePlanner.py | 08656dd3f154a4650f863d9049ab5e54285bdf67 | [] | no_license | 61515/simpleDB_Python | 234c671cbbf57f3e8fc5489ec4c292365085b7a8 | b6846da4a78369838f5b3c7a704de704e18f7be7 | refs/heads/master | 2023-02-22T14:07:52.660633 | 2021-01-24T02:25:40 | 2021-01-24T02:25:40 | 332,343,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | #
# * A modification of the basic update planner.
# * It dispatches each update statement to the corresponding
# * index planner.
# * @author Edward Sciore
#
from simpledb.plan.SelectPlan import SelectPlan
from simpledb.plan.TablePlan import TablePlan
from simpledb.plan.UpdatePlanner import UpdatePlanner
class In... | [
"1632039752@qq.com"
] | 1632039752@qq.com |
3da2984b78ac4b9d85c60ceb621e0e1f35020a67 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/paddleLT/donotuse/debug/jit_export_CSPResNet.py | 223881fbcff5703f345d459931528af5ae9a9e8b | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 785 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
ocr rec_srn_head
"""
import copy
import numpy as np
import paddle
import ppdet
paddle.seed(33)
np.random.seed(33)
def randtool(dtype, low, high, shape):
"""
np random tools
"""
if dtype == "int":
r... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
ba7a076e824d53bf5d8d6cbbcd4e609c30366bbc | 650e1bea7cec90b3c88ad84a80f5134434920c68 | /larflow/Reco/test/vis_clusters.py | adebb2eeb34637224859b0f832b8b388f6ac7d34 | [] | no_license | NuTufts/larflow | 7698329f50ec7d0db2f0a715e5a9f6dc09998f55 | 1ba2b426f191704a141bb72d7675d9746538eed4 | refs/heads/master | 2023-08-31T04:35:10.251625 | 2020-09-01T01:49:33 | 2020-09-01T01:49:33 | 136,974,430 | 1 | 1 | null | 2020-09-03T03:00:40 | 2018-06-11T19:56:04 | C++ | UTF-8 | Python | false | false | 6,996 | py | from __future__ import print_function
import os,sys,argparse,json
parser = argparse.ArgumentParser("Plot Reco Clusters for Inspection")
parser.add_argument("-ll","--input-larlite",required=True,type=str,help="kpsrecomanager larlite output file")
args = parser.parse_args()
import numpy as np
import ROOT as rt
from lar... | [
"taritree.wongjirad@gmail.com"
] | taritree.wongjirad@gmail.com |
1115dc0f1240a03cd10c4c47d711092e5ac14e36 | 64764cbae8641d051c2e26c0c2283e8e626d88fb | /ecf/tbl/GLBCNO.py | 86a5dd5680a44379898071b551f23ffb7ba4d13b | [] | no_license | jazlee/csp-accounting | eb801ce902170337121a6dbe2b1382be4089ecca | 85f50f9d8defbf52e6c85f5c0fc0464101a01d03 | refs/heads/master | 2021-01-25T14:11:18.700456 | 2018-03-03T06:34:57 | 2018-03-03T06:34:57 | 123,666,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | from elixir import *
#
# G/L Batch Numbering Option
#
class GLBCNO(Entity):
GLBCNOID = Field(String(3), primary_key=True)
GLBCNONM = Field(String(32))
GLBCMINO = Field(Integer)
GLBCMXNO = Field(Integer)
GLBCLSNO = Field(Integer)
GLBCAUDT = Field(Numeric(8, 0))
GLBCAUTM = Field(Numeric(6, 0))
GL... | [
"jaimy@usg.co.id"
] | jaimy@usg.co.id |
46fe70a671b7a3d75410988284962ba930d7a7ae | 9f59d55bd8466f6f50c5bbec4725c8a073b964bd | /base/urls.py | 2533140c3f85ca26346f0e0d8f03a059d330063f | [] | no_license | youngsoul/django-todo-list | 9a88e14ba2bf305844058d6db94ffc8e11b36e5f | f1d687b72fd066a44b29d8974e6e49a094572a6d | refs/heads/master | 2023-04-11T15:08:54.400185 | 2021-04-26T00:57:14 | 2021-04-26T00:57:14 | 361,575,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from django.urls import path
from .views import TaskList, TaskDetail, TaskCreate, TaskUpdate, TaskDelete, CustomLoginView, RegisterPage
from django.contrib.auth.views import LogoutView
urlpatterns = [
path('login/', CustomLoginView.as_view(), name='login'),
path('logout/', LogoutView.as_view(next_page='login'), ... | [
"theyoungsoul@gmail.com"
] | theyoungsoul@gmail.com |
e472a596c694aca6cb4500d419d1493f0e53bcfa | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/mode_selector/mode_selector_wt_widget_model.py | 2378eac9b0d2e89a56f1349cd4960f6589d3ef65 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,185 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/mode_selector/mode_selector_wt_widget_model.py
from gui.impl.gen.view_models.views.lobby.mode_selector.mode_selector_base_widget_model import ModeSelectorBaseWidgetModel
class ModeSelectorWtWidg... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
f4021e8727f0afecf7a0bdc8479df954272d1dde | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/131/usersdata/172/37508/submittedfiles/al10.py | 8b72b71b334d840e9babcac59072316f61d2bb92 | [] | 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 | 199 | py | # -*- coding: utf-8 -*-
#NÃO APAGUE A LINHA ACIMA. COMECE ABAIXO DESTA LINHA
n=int(input('digite um valor'))
i=2
d=3
while 0<n
soma=4*((i/d)*((i+2)/d))
i=i+2
d=d+2
print('%.5d'%soma) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
40960e8b4d96b9073c43ba86fde89699ce912374 | 993c6595f2d7cb2c4efae2c5264fb09008b9c7d4 | /pychallenge/pychallenge/users/migrations/0003_auto_20190123_1757.py | b1783f138089146c10d8deef5cf7e3a8b036e0c6 | [] | no_license | triump0870/pychallenge | 985af46268a0a83cb3c8a891d3ff0faf01570ef5 | c6c117b41bf981efc0acce814a5b17eec49903c6 | refs/heads/master | 2022-12-15T11:58:39.045942 | 2019-01-23T19:17:33 | 2019-01-23T19:17:33 | 167,192,119 | 1 | 0 | null | 2022-12-08T01:36:26 | 2019-01-23T13:57:47 | CSS | UTF-8 | Python | false | false | 1,032 | py | # Generated by Django 2.1.5 on 2019-01-23 17:57
from django.db import migrations, models
import django.utils.timezone
import markdownx.models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20190123_1746'),
]
operations = [
migrations.AddField(
m... | [
"b4you0870@gmail.com"
] | b4you0870@gmail.com |
3068573ee1705acd83f26145b16387a3fb624f9f | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_table.py | 64286297b4600561a077e8c45d8e6733baddfdb9 | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 784 | py | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
from h2o.utils.typechecks import assert_is_type
from h2o.frame import H2OFrame
def h2o_H2OFrame_table():
"""
Python API test: h2o.frame.H2OFrame.table(data2=None, dense=True)
Copied fr... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
d3897c6338e630a1d5c705c0bc9eafc08f859249 | 0e383ccac5fdf21dc5059502b9aae26412fd6a88 | /sheaths.icmes/src/extract.py | d3de533033d78081270a6c72c86f666f948d5acf | [
"MIT"
] | permissive | jimsrc/seatos | 63c8ad99f2b5d4ae5f203cdc8f8e061948f257f4 | e775dba1a2a96ff44b837cf8d85101ccfef302b1 | refs/heads/master | 2021-01-02T08:38:51.349670 | 2017-09-01T01:59:35 | 2017-09-01T01:59:35 | 99,040,968 | 0 | 1 | null | 2017-09-01T01:59:36 | 2017-08-01T20:33:55 | Python | UTF-8 | Python | false | false | 5,572 | py | #!/usr/bin/env ipython
from pylab import *
from numpy import *
from scipy.io.netcdf import netcdf_file
from datetime import datetime, time, timedelta
#------------ shared libraries:
"""
--- antes de modificar cosas, tener en cuenta los bugs en:
'../../shared_lib/COMENTARIOS.txt'
"""
import sys
sys.path.append('../../... | [
"jimmy.ilws@gmail.com"
] | jimmy.ilws@gmail.com |
a375cf4c71b31dc7efc2a8c11c5da14977bbb778 | 31596558d227ca10911a776023aeef1a7eb0d2c9 | /Other groups/Kaleido/Tate no Yuusha no Nariagari [BD]/tate_06.py | c8cc3bbeb20d34468924be6849d7da32b9be1241 | [
"MIT"
] | permissive | Ichunjo/encode-scripts | 914a113093670f7d07e652ef50f6f04d09cc58b1 | 389a9f497e637eaade6f99acee816636856961d4 | refs/heads/master | 2022-05-03T00:48:54.543905 | 2022-03-17T17:43:02 | 2022-03-17T17:43:02 | 220,536,158 | 45 | 8 | null | 2019-11-08T21:25:59 | 2019-11-08T19:41:14 | Python | UTF-8 | Python | false | false | 10,086 | py | """Tate no Yuusha script"""
__author__ = 'Vardë'
import sys
from pathlib import Path
from typing import NamedTuple, List
from functools import partial
from pymkv import MKVFile, MKVTrack
from acsuite import eztrim
from vsutil import core, vs, depth, get_y
import vardefunc as vdf
import debandshit as dbs
import mvsfu... | [
"ichunjo.le.terrible@gmail.com"
] | ichunjo.le.terrible@gmail.com |
df49c2e8770f6ff76b848c7878d8f60d0083ec8f | 84566b23a26a3eeadc3d99e6ada39296759da3e6 | /ptero_auth/implementation/models/scopes.py | 3ca8e29c1c981954ec1c7c2c872f8a68d35e51f6 | [] | no_license | iferguson90/ptero-auth | 2cfd28c11add633c78ef768fede2ff04e2fe064b | 97047466387df71a8cb8ae29d955f6471540ebfe | refs/heads/master | 2021-01-22T14:39:45.335063 | 2014-08-29T20:56:25 | 2014-08-29T20:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | from .base import Base
from sqlalchemy import Column, ForeignKey, Integer, Text
from sqlalchemy import Table, PrimaryKeyConstraint
from sqlalchemy.orm import relationship
__all__ = ['Scope']
class Scope(Base):
__tablename__ = 'scope'
scope_pk = Column(Integer, primary_key=True)
value = Column(Text, ind... | [
"mark.m.burnett@gmail.com"
] | mark.m.burnett@gmail.com |
b3ba9c0c8676bbdaab744f0fb4b34f6b0a7ce4d7 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/aio/operations/_usages_operations.py | 18d28a6f9d9f1909b20d7b52d7da854475fcec24 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,201 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
7adedccffebabc3cee9a05501b6ab85fe7b4b3e1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SZSJ_292.py | 06e684a9bd632dff4ab6408ce3316867e466936b | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,070 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
4c6342b8a903410e1a5d3185e85c44b88365c921 | b1e52f926116286c138890ca0d86bf74433e8ee4 | /lib/SpriteLoader.py | a1063b8adea2fc0d10c23c115df455528f5701c7 | [] | no_license | topherCantrell/pixel-sign | 22f35b84bbaaf98fb143229f2df6afe0911e1bb0 | b8f1c1723f81259fc3dc3e91b275aea0215802df | refs/heads/master | 2021-07-11T16:51:31.799934 | 2020-07-22T17:36:14 | 2020-07-22T17:36:14 | 160,055,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,822 | py |
class SpriteLoader:
def __init__(self):
self.sprites = {}
with open("Sprites.txt") as f:
lines = f.readlines()
currentName = None
currentSprite = []
for line in lines:
line = line.strip()
... | [
"topherCantrell@gmail.com"
] | topherCantrell@gmail.com |
12ea1bd995b23ab1c185e7562c2fbb73ddf63694 | f8f8651ab604acc4937f8725caadaca1fb97a5e8 | /src/pytorch_lightning/plugins/precision/native_amp.py | 4df1b166ca8dd31d4fbea638d32dc81110659018 | [
"Apache-2.0"
] | permissive | neptune-ai/pytorch-lightning | ac59e746a486e07e21abae426b28e5d72812ac98 | 702014418e2ec0437e67d8bf97809edef686a02c | refs/heads/master | 2022-09-28T09:34:07.653729 | 2022-09-12T11:13:48 | 2022-09-12T11:13:48 | 229,063,811 | 1 | 1 | Apache-2.0 | 2022-09-26T03:29:49 | 2019-12-19T13:48:16 | Python | UTF-8 | Python | false | false | 5,106 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | neptune-ai.noreply@github.com |
a7ecf43316deac0104330b55d0d997358e4b3b58 | 19bb4caf8a06868498c5b7c35c46e5e1da188548 | /simpleorm.py | 2349a3ba2db1ac9933b2255e4e709ce279b1f82a | [] | no_license | MUIC-CS/summer2017-week2-tabkeeper | 3585924534972d354c04007845e18a9b6868a48f | 68b1b989f3d8a8100b599b9a8cdb5251639aa14d | refs/heads/master | 2021-01-15T12:37:37.513496 | 2017-08-09T19:12:16 | 2017-08-09T19:12:16 | 99,653,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | from db import get_cursor
class SimpleBean:
columns = ()
def __init__(self, *args, **kwds):
# TODO: make it set
tmp = {k: v for k, v in zip(self.columns, args)}
tmp.update(kwds)
self.__dict__ = self.filter_params(tmp)
@classmethod
def filter_params(cls, d):
re... | [
"piti118@gmail.com"
] | piti118@gmail.com |
970ed11ee3587e2517db5c3285c8aa9aff4724f4 | f36d2e601b9aa0498c68951e8a081b6ce2036116 | /modules/ip_commands.py | dfea39dfb7b8e1745dfedf9f473a43782d70fc07 | [] | no_license | jaconsta/rpi_notify | 16de79acfb916646cb0ebd4cb8bbb3a7def87c31 | e0aac512dc96eb66fb61ac13560a59e4b1929b89 | refs/heads/master | 2021-01-11T20:48:57.761601 | 2017-01-17T05:05:21 | 2017-01-17T05:05:21 | 79,190,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | """
Obtain current local IP address.
"""
import platform
import socket
import subprocess
def run_command(cmd):
"""
Execute this OS command and return the formated response.
"""
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
return err if er... | [
"constainopia@gmail.com"
] | constainopia@gmail.com |
5223dc88f870d415144c5bdd6c0ed2fe056f2db6 | b9efab6b369cd8e9fec0cbd1e73c45fe1be354c7 | /backend/api/migrations/0187_auto_20190923_1556.py | a9371906a6795185204e1f6f83756c4582ab97d1 | [
"Apache-2.0"
] | permissive | WadeBarnes/tfrs | 646e0aed2bf48d5100f331edbb2d80418adee4b6 | d62f58019dfa0164ce788912099862e35098fbb1 | refs/heads/master | 2021-02-10T21:37:20.021758 | 2020-02-25T17:01:56 | 2020-02-25T17:01:55 | 244,421,600 | 0 | 0 | Apache-2.0 | 2020-03-02T16:40:09 | 2020-03-02T16:40:08 | null | UTF-8 | Python | false | false | 6,643 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-09-23 15:56
from __future__ import unicode_literals
import api.notifications.notification_types
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0186_co... | [
"31664961+kuanfandevops@users.noreply.github.com"
] | 31664961+kuanfandevops@users.noreply.github.com |
7a49fe717f07a258ac1b369ccb182ffb5f4c7d15 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve/client/script/parklife/dungeonHelper.py | b24b4cf64431365e64c28ad45bd6745612c62980 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,371 | py | #Embedded file name: eve/client/script/parklife\dungeonHelper.py
"""
The file provides helper functions to perform dungeon editing operations.
Each function here should be able to handle the case of performing the operation through
Jessica if the client is launched with it, and default to remote server calls otherwis... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
dfc79ab2926282ff85f93564e287333570fd498b | b8ef1a5cd3856a8e9134c3313a4e23522f199df7 | /Programmers/84325_직업군 추천하기/84325_직업군 추천하기.py | 2d65ae9cecc92be4f0db236416f553f114f185dc | [] | no_license | scl2589/Algorithm_problem_solving | 910623d9675ae0219320abfd1fefc7d576027544 | 80db697cdd0180a7d4dbcfae4944d4a54191bddf | refs/heads/master | 2023-07-29T10:56:38.225206 | 2021-09-11T13:50:46 | 2021-09-11T13:50:46 | 235,363,353 | 0 | 0 | null | 2021-03-04T15:39:41 | 2020-01-21T14:36:41 | Python | UTF-8 | Python | false | false | 489 | py | def solution(table, languages, preference):
answer = ''
answer_list = []
for t in table:
lst = t.split(' ')
new = [lst[0]]
new.extend(lst[5:0:-1])
total = 0
for idx, language in enumerate(languages):
if language in new:
total += new.index(l... | [
"chaelinshin96@gmail.com"
] | chaelinshin96@gmail.com |
9c887215d379b9c8833646b6b49a952b26fd42a0 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/DataQuality/DataQualityUtils/scripts/DeMoLib.py | 5efa69354aadd20a9db26ed338260551c407de18 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,586 | py | # Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
# Author : Benjamin Trocme (LPSC - Grenoble) - 2017
# Auxiliary libraries used DemoUpdate, DeMoStatus and DemoScan
##################################################################
from ROOT import THStack
from ROOT import TCanvas,TLegend
from ... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
7c83619bbc76cacaee8fce5c49099d93ca880d70 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631572862566400_0/Python/icedingo/bff.py | 6f6a5da5564dfe239f4a6b0dd80a606d45e35cb2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | T = int(input())
class Pair(object):
def __init__(self, a, b, ap, bp):
self.a = a
self.b = b
self.ap = ap
self.bp = bp
def get_longest(self, pairs, rev, seen):
#print('Getting longest for', self)
alen = 0
for p in self.ap:
if p == self.b:
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
32a13a3c4ef90bca8e60735e77b5dcd0de843596 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/plex/services.py | 0847583635de398594b64c383690af167bf32786 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 6,634 | py | """Services for the Plex integration."""
import json
import logging
from plexapi.exceptions import NotFound
import voluptuous as vol
from yarl import URL
from homeassistant.core import HomeAssistant, ServiceCall
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.dispatcher import async... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
061696e1fd6d7402e0460b8c2bd8cc4d09085cb6 | cce6364dd85b62782671cd8048873eede2045137 | /high/2_mergeKLists.py | 152a70aed8a7ea6300262b0c85c3284a60f19832 | [] | no_license | gmt710/leetcode_python | ed647958440f66583b8717dae7bca49c516984da | 441623afee3713506b702c5fd462c7ba84b48442 | refs/heads/master | 2020-03-28T05:11:02.851792 | 2019-04-17T09:14:51 | 2019-04-17T09:14:51 | 147,761,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
# heapq使用说明
# a为普通列表
# - heapq.heapify(a) 调整a,使得其满足最小堆
# - heapq.heappop(a) 从最小堆中弹出最小的元素
# - heapq.heappush(a,b) 向最小堆中压入新的元素
class Solution(object):
def mergeKLists(self... | [
"noreply@github.com"
] | gmt710.noreply@github.com |
aa712c04989960f93bbe5288b6a2119889c460a7 | 86e904c75d0140eea3e4169d216955e1c34801b3 | /python_test2/cloud/DB_update.py | ef46c6c42d6fecb4b51755d7aa89d1ae39675299 | [] | no_license | reharmony/cloudpython | d62f61749e5b5862d3b81e449d5154e188a14d21 | 98e033e537d763ba86d162f58d0fe8f64249a291 | refs/heads/master | 2020-04-29T16:58:55.281917 | 2019-05-15T12:11:43 | 2019-05-15T12:11:43 | 176,281,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | '''
Created on 2019. 4. 30.
@author: user
'''
import pymysql
from cloud.UI_Main import *
# 수강정보 DB에서 수정
def db_process_update(id, price):
# 1. db인증 -> 연결
con = pymysql.connect(host ='localhost', user='root',password='1234', db = 'course')
print("1. db인증 -> 연결 성공...")
print(con)
... | [
"noreply@github.com"
] | reharmony.noreply@github.com |
4a4d2f3d7a0ca5f6cf4ad7b7d159248b6bcc7b05 | 5a7abc4537039860c49e9a80219efa759aad1b6f | /tests/providers/aws/services/shield/shield_advanced_protection_in_classic_load_balancers/shield_advanced_protection_in_classic_load_balancers_test.py | fbb53920a21e04c33a84a1413341c1b6706f8a7c | [
"Apache-2.0"
] | permissive | sec-js/prowler | d5a06c72f5d7e490bade1167966f83f7a5d7ed15 | f72be9a1e492ad593c9ac267d3ca07f626263ccd | refs/heads/master | 2023-08-31T22:48:33.983360 | 2022-12-22T16:02:28 | 2022-12-22T16:02:28 | 243,866,744 | 0 | 0 | Apache-2.0 | 2022-12-23T12:23:20 | 2020-02-28T22:37:02 | Python | UTF-8 | Python | false | false | 9,601 | py | from unittest import mock
from boto3 import client, resource, session
from moto import mock_ec2, mock_elb
from moto.core import DEFAULT_ACCOUNT_ID
from prowler.providers.aws.lib.audit_info.models import AWS_Audit_Info
from prowler.providers.aws.services.shield.shield_service import Protection
AWS_REGION = "eu-west-1... | [
"noreply@github.com"
] | sec-js.noreply@github.com |
c59d517b4583b3b3e62c9432003fb472aceb46b2 | b1a69cd1d3ad792e8c50f2266493b586b0633168 | /repos/system_upgrade/el8toel9/actors/mariadbcheck/tests/test_mariadbcheck.py | e91345f2d56e2ee79676d33b485203afb6ec5cec | [
"Apache-2.0"
] | permissive | bmarzins/leapp-repository | aaf4c0394fd7d23ea639bd2aa8299e815ff9ba40 | e4f733297937847522ecf4b306182c2bcb293676 | refs/heads/master | 2022-05-26T06:51:34.428355 | 2022-05-04T11:39:41 | 2022-05-04T15:18:35 | 242,839,597 | 0 | 0 | Apache-2.0 | 2020-02-24T20:45:26 | 2020-02-24T20:45:25 | null | UTF-8 | Python | false | false | 2,091 | py | import pytest
from leapp import reporting
from leapp.libraries.actor.mariadbcheck import report_installed_packages
from leapp.libraries.common.testutils import create_report_mocked, CurrentActorMocked
from leapp.libraries.stdlib import api
from leapp.models import InstalledRedHatSignedRPM, RPM
def _generate_rpm_with... | [
"xstodu05@gmail.com"
] | xstodu05@gmail.com |
a075f64105d9368199759c95a39be2c79cbeb562 | 5e381364c2ab31ff3618369085afffba6caa8edb | /recipes/sdf/all/test_package/conanfile.py | f0f5021b597eea4126dc06ed8a9f8ad497bdd594 | [
"MIT"
] | permissive | CAMOBAP/conan-center-index | 16aea68a6d22da22831ba985773125e8eda08f00 | 67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1 | refs/heads/master | 2023-07-30T08:58:57.285571 | 2021-10-02T14:57:54 | 2021-10-02T14:57:54 | 323,262,699 | 1 | 0 | MIT | 2021-05-29T13:37:04 | 2020-12-21T07:30:02 | Python | UTF-8 | Python | false | false | 615 | py | import os
from conans import ConanFile, CMake, tools
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def requirements(self):
self.requires("stb/20200203")
def build(self):
cmake = CMake(self)
cmake.configure()
... | [
"noreply@github.com"
] | CAMOBAP.noreply@github.com |
ce967c34d1d8457b8429f0af4029fc82dd5382d1 | 99e57f00fcaf4469c1c1b79f2d17176aaef9a790 | /purchase_order_revision/tests/test_purchase_order_revision.py | e1e2bc27d76d6d62d40e1a89903a87294617ee1f | [] | no_license | detian08/mcl | d007ffd0e869f3bd9a8c74bc8473119901f0de2a | 32d61148326c931aca0107c3894061773f287e33 | refs/heads/master | 2022-03-23T19:36:29.608645 | 2019-12-11T10:15:50 | 2019-12-11T10:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | from odoo.tests import common
from odoo import fields
class TestPurchaseOrderRevision(common.SavepointCase):
@classmethod
def setUpClass(cls):
super(TestPurchaseOrderRevision, cls).setUpClass()
cls.partner = cls.env['res.partner'].create({
'name': 'Test partner',
})
... | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
64c26ac7295c6f11bf94d56f120e2003ed55fb26 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/012_proxy/examples/proxy_005.py | b41f04843274d5f16824f10b2dd7bc621e24ab5d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,773 | py | """Proxy pattern
Proxy is a structural design pattern. A proxy is a surrogate object which can
communicate with the real object (aka implementation). Whenever a method in the
surrogate is called, the surrogate simply calls the corresponding method in
the implementation. The real object is encapsulated in the surrogate... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
880fe3920c58f152896de23d4ee6ad0c457ad28d | 8766852cddd9cb02cdc57452d6d907a3b0ddcc2b | /test/goose/version.py | fedcbb6de8c5c54f44fe7bea9ef1247fc6013416 | [] | no_license | glqglq/Crawler | 24f532af305e9513dad61670eacef09081c85093 | 769397e0dc723b30955382e22fdbab6aaff35387 | refs/heads/master | 2021-01-20T01:41:34.360112 | 2017-09-15T12:55:44 | 2017-09-15T12:55:44 | 89,318,133 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # -*- coding: utf-8 -*-
"""\
This is a python port of "Goose" orignialy licensed to Gravity.com
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
Python port was written by Xavier Grangier for Recrutae
Gravity.co... | [
"546751140@qq.com"
] | 546751140@qq.com |
0fe69463926f471c995bb00ebd8a5997679f2c6c | 55e9f3b00fc2e488597bab5225ed321c86efbd4b | /sdk/test/test_credit_line.py | 6e143a986df22cb26461a1dcdc7c013dac722df1 | [
"MIT"
] | permissive | bs-yapily/yapily-sdk-python | ad9d04c28f3d744830734c3444c1cef8215206fd | 0bba45e351b674eb655425a51190f539c4e9896f | refs/heads/master | 2020-08-26T17:18:53.156429 | 2019-10-22T11:01:16 | 2019-10-22T11:01:16 | 217,085,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
OpenAPI spec version: 0.0.155
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __fu... | [
"systems@yapily.com"
] | systems@yapily.com |
571cc5f4406ecac2c0cd3d6bc9e1c26aef47177f | 1e64f178931f5efed25c244dce48d5014aab3a3a | /HackerRank-Algorithm/02. Implementation/004. Between Two Sets.py | 99c311611b5537bf830b4752648c328ab6cd6ed5 | [] | no_license | im876/Python-Codes | 8f672136742a447f2e8d62fe3f37b4a763787ab5 | be06e97f2fa7fb2125a899b7ff49bbe97362c7a3 | refs/heads/master | 2023-08-05T07:25:20.555054 | 2021-09-20T08:17:34 | 2021-09-20T08:17:34 | 279,281,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | input();
a=list(map(int, input().split()))
b=list(map(int, input().split()))
ans=0
for i in range(1, 101):
if all(i%x==0 for x in a) and all(x%i==0 for x in b):
ans+=1
print(ans)
| [
"noreply@github.com"
] | im876.noreply@github.com |
ef8501011cc5ff6b245c337330ba692b929dd21b | 70280955a5382d73e58395eba78c119a400f4ce7 | /aoj/itp2/6d.py | 7780d11018469786985006bb7c193acc99bec21a | [] | no_license | cohock13/atcoder | a7d0e26a10a4e58690347a2e36839c2f503a79ba | d268aa68fc96203eab94d021bd158cf84bdb00bc | refs/heads/master | 2021-01-03T00:41:31.055553 | 2020-10-27T12:28:06 | 2020-10-27T12:28:06 | 239,839,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import bisect
input()
a = list(map(int,input().split()))
for i in range(int(input())):
k = int(input())
print(bisect.bisect_left(a,k),bisect.bisect(a,k)) | [
"callout2690@gmail.com"
] | callout2690@gmail.com |
12ceb17dde9e62bad12f5290cd23d191e8114f88 | fb0d368a0a1af269de38a296ebe8aa85e6785ee9 | /plugins/item_tasks/server/cli_parser.py | 79b4f806927c3d1643b61e44ef70b0cec217593d | [
"Apache-2.0"
] | permissive | sutartmelson/girder | 4e1a8d086e48c0a655b45707d624acc77147db23 | d124d3363c86064fa9ef0d3e461fca8e731b81b2 | refs/heads/master | 2020-05-30T22:51:30.643977 | 2017-06-06T13:01:42 | 2017-06-06T13:01:42 | 58,329,911 | 0 | 0 | null | 2016-05-08T20:25:35 | 2016-05-08T20:25:34 | null | UTF-8 | Python | false | false | 4,251 | py | import ctk_cli
import itertools
import os
from girder.models.model_base import ValidationException
from girder.plugins.worker import constants
_SLICER_TO_GIRDER_WORKER_INPUT_TYPE_MAP = {
'boolean': 'boolean',
'integer': 'integer',
'float': 'number',
'double': 'number',
'string': 'string',
'int... | [
"zach.mullen@kitware.com"
] | zach.mullen@kitware.com |
c7f7daa1e8cfbdd9a852740e99925e0052c49c13 | 34ff1ca688d5828ae7181fd86284d50181104cdd | /virtual/bin/easy_install | 46e2fa9dc028a083640917b9d58775ee843cdaaa | [
"MIT"
] | permissive | KadogoKenya/ProjectTutorial | 6cd69f22b6b4f6c0c7a313d760d6c9af5bc4d2f0 | 1f8f4ea95aa8b71224d1eb206703bf8e5efee79e | refs/heads/master | 2023-01-06T03:25:40.875595 | 2020-11-01T10:31:56 | 2020-11-01T10:31:56 | 307,425,572 | 0 | 0 | null | 2020-11-01T10:31:57 | 2020-10-26T15:54:39 | Python | UTF-8 | Python | false | false | 282 | #!/home/kate/Desktop/PYTHON/DJANGO/ProjectTutorial/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
ae136e0ab30772984c0e437e68c38b499091ebf6 | 826a8aeb87cb074938b2056ada22c89b9bd9276c | /test.py | a67e6332d135bd82a5add06f88f209a57d7e1547 | [] | no_license | priyom/priyomdb2 | ce441d755d021c838684aba705b3fb905461ca9f | 47deecab60febd427af692149788d37cd9f770ba | refs/heads/master | 2020-07-04T01:59:29.506148 | 2014-03-03T11:51:14 | 2014-03-03T11:51:14 | 25,634,647 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | #!/usr/bin/python2
# encoding=utf8
from __future__ import absolute_import, unicode_literals, print_function
import time
from datetime import datetime
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import priyom.consistency
import priyom.model as model
engine = create_engine('mysql://pr... | [
"j.wielicki@sotecware.net"
] | j.wielicki@sotecware.net |
d89513cacd3076d29ae48e71669f136780a7c89f | 8634b4f7f2293bf431ba8ed59e95f80abc59483f | /Homework/12/main.py | 71a7c963b22fbc17689ada2e95edeef4ed5bb243 | [] | no_license | TitanVA/Metiz | e1e2dca42118f660356254c39c7fadc47f772719 | e54f10b98226e102a5bb1eeda7f1e1eb30587c32 | refs/heads/master | 2020-12-22T11:44:58.746055 | 2020-02-10T14:41:16 | 2020-02-10T14:41:16 | 236,770,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import pygame
from body import Body
import functions as fs
from settings import Settings
def run_game():
pygame.init()
ai_settings = Settings()
screen = pygame.display.set_mode((ai_settings.screen_width,
ai_settings.screen_height))
body = Body(screen)
pygame.d... | [
"viktorbezai@gmail.com"
] | viktorbezai@gmail.com |
312fa9472582f301101be8327140d6223556eef4 | b8fb00ee277478c368f5b7512bfd265f3ecea356 | /python/creating_table_mysql/venv/Scripts/pip-script.py | 32d30289134b69ada49c6baa42b89dceb4661921 | [] | no_license | DharmilShahJBSPL/DharmilShah | 574477c38a8b76616618130f3b0679a23a9c1af8 | 0d197189c8dcf794d38145e8f1edba6766b02df9 | refs/heads/master | 2021-07-07T11:47:03.770219 | 2019-01-19T13:13:38 | 2019-01-19T13:13:38 | 152,415,037 | 0 | 1 | null | 2020-07-20T10:44:20 | 2018-10-10T11:48:36 | Python | UTF-8 | Python | false | false | 416 | py | #!E:\dharmil\python_task\creating_table_mysql\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"dharmil@jbspl.com"
] | dharmil@jbspl.com |
7f7b74b6d51c039b44bd3835cfb39f27f19cf5ab | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2607/60829/292435.py | 6444270ef4ed48995093bddc1a2fe009718dd2d5 | [] | 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 | 1,018 | py | def a(x):
res=[]
for i in range(len(x)):
res.append(int(x[i]))
return res
def judge(x):
res=[]
for i in x:
if not i in res:
res.append(i)
if res==[0,1,2]:
return True
else:
return False
n=int(input())
for p in range(n):
count=[]
s=a(str(inp... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
33376a313c61badeebef3defefdf750510320187 | 8e2f3c1f4eb3464b4a2317b98393832db741b341 | /AgendaVENV/bin/easy_install | ad81eccb94e2e23af405ea1d00b14ba027ba4019 | [] | no_license | LeoGraciano/Django_Agenda | 59e506652972e12313b20881008716ca4589fc61 | a8a46bccdbd4942f9c5c8102acbe5f86a1d990dd | refs/heads/master | 2022-12-24T20:51:41.162139 | 2020-10-04T01:07:50 | 2020-10-04T01:07:50 | 300,184,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/home/leograciano/Documents/Python/Agenda_Django/AgendaVENV/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"leonardof.graciano@gmail.com"
] | leonardof.graciano@gmail.com | |
f61dce2344eef5b569ebd710533eacfb49626c9c | cc89bc62b5234abdb632023557cda57b7d212a0e | /tests/test_accounting.py | 7a53b83db75405655f0715f1fab0ad5dedca756c | [
"MIT"
] | permissive | baverman/taburet | f296e31b23e6df66aa257c6df50f22f94f5b83d2 | 5afe1157cc698745a0e23cab9b0798f987db0641 | refs/heads/master | 2020-12-30T10:36:48.801532 | 2011-12-07T09:57:25 | 2011-12-07T09:57:25 | 674,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,427 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from taburet.accounts import Account, get_account_by_name, get_toplevel_accounts, create_account, \
create_transaction, get_all_accounts
from taburet.transactions import transactions, month_report, TransactionBase
from .helpers import pytest_funcarg__pm
class... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
c09b204f868edfd5f1d9756b239aa4425f21ed83 | 4a1273f72e7d8a07a3fa67ac9f2709b64ec6bc18 | /tests/run_tests.py | d0248ef9d055bf5fd569d0a42866e153334ececa | [] | no_license | WealthCity/django-project | 6668b92806d8c61ef9e20bd42daec99993cd25b2 | fa31fa82505c3d0fbc54bd8436cfc0e49c896f3e | refs/heads/dev | 2021-01-19T14:10:52.115301 | 2017-04-12T11:23:32 | 2017-04-12T11:23:32 | 88,132,284 | 0 | 1 | null | 2017-04-13T06:26:30 | 2017-04-13T06:26:29 | null | UTF-8 | Python | false | false | 473 | py | #!/usr/bin/env python
import os
import sys
import django
from django.conf import settings
from django.test.utils import get_runner
#from django.test.utils import setup_test_environment
if __name__ == "__main__":
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.test_settings'
django.setup()
TestRunner = get_r... | [
"peterroth0612@gmail.com"
] | peterroth0612@gmail.com |
4429a282f960729165b61d3256b2bb8f8c73a8b4 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/get_workspace.py | e81886c2eaf630679e27b9d528b28b932ddabeb9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,789 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
07e35864dbee7959b626d634e72014526b2f9654 | e461333f1253861829c82a92e345fa7d72518ef6 | /blog/models.py | a1ef570e0f71f70be6101442e4128506ac788dd0 | [] | no_license | slowlearner99/ideal-waffle | 98b548f58ea3da08ef797e7b04ffa1e5f2a45a05 | dc20454580db5807e0b83d667fb11c755fecaf13 | refs/heads/master | 2021-05-02T06:30:52.141729 | 2018-02-09T06:20:11 | 2018-02-09T06:20:11 | 120,859,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author=models.ForeignKey('auth.User',on_delete=models.CASCADE)
title=models.CharField(max_length=200)
text=models.TextField()
created_date=models.DateTimeField(default=timezone.now)
published_date=models.DateTimeField(bla... | [
"sachinjose16@gmail.com"
] | sachinjose16@gmail.com |
0affee339d945f6e06ccff51066566f806486aec | 0f9c9e4c60f28aa00aff8b80e1e4c142c61d24ce | /Python/SwordOffer/reverse_sentence.py | 709437a5803ddb710b5e629aea81631700057e99 | [] | no_license | shouliang/Development | c56fcc69e658393c138b63b507b96c48232128d5 | b7e3b02c50d54515e584cb18dff83109224245d0 | refs/heads/master | 2020-03-22T09:14:51.070228 | 2019-08-29T02:50:26 | 2019-08-29T02:50:26 | 139,825,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | # coding=utf-8
''''
题目描述
牛客最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。
同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。
后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a student.”。
Cat对一一的翻转这些单词顺序可不在行,你能帮助他么?
思路:先翻转整个句子,再单独翻转每个单词
'''
class Solution:
def ReverseSentence(self, s):
if not s:
ret... | [
"git@git.dxl.cc:node/hunqing.git"
] | git@git.dxl.cc:node/hunqing.git |
bb4f8658f4ac81f115ed1fe3417ce1cf3a5b9875 | a1c69d4d5adb2aef2e314a02899d5ef6500b999c | /devel/lib/python2.7/dist-packages/spencer_vision_msgs/msg/_PersonImages.py | d23d183b5b590ae07551e760faa12e75a3d941e2 | [] | no_license | JayZejianZhou/Multiple_motion_planning | 9b112f77ec31c0b1ddc92a7450f620d637d73b26 | 8bf06d518ecf686b8ed1187398f9084118f35677 | refs/heads/master | 2020-05-25T03:09:27.402451 | 2017-03-28T18:49:03 | 2017-03-28T18:49:03 | 84,904,900 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,027 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from spencer_vision_msgs/PersonImages.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import spencer_vision_msgs.msg
import sensor_msgs.msg
import std_msgs.msg
class Pers... | [
"zzhou12@stevens.edu"
] | zzhou12@stevens.edu |
4303ab08ba740fd8b2d44c1b55038746ee90d0b9 | 7ba55da528467cc7d15edec37b955ebe9f9176f9 | /docs/examples/03_backends_ros/files/04_plan_motion.py | 406c5786f88eacfb3d123c54d0e6f04b730420dc | [
"MIT"
] | permissive | xarthurx/compas_fab | 71095cdda107084b583e53e055450fe510a53c6a | 64119228184953aef7899f6853b2ade2296fedc6 | refs/heads/master | 2023-02-08T10:13:16.133155 | 2022-11-09T13:02:51 | 2022-11-09T13:02:51 | 183,207,453 | 0 | 0 | MIT | 2019-05-27T07:31:38 | 2019-04-24T10:36:54 | Python | UTF-8 | Python | false | false | 1,291 | py | import math
from compas.geometry import Frame
from compas_fab.backends import RosClient
with RosClient() as client:
robot = client.load_robot()
assert robot.name == 'ur5_robot'
frame = Frame([0.4, 0.3, 0.4], [0, 1, 0], [0, 0, 1])
tolerance_position = 0.001
tolerance_axes = [math.radians(1)] * 3
... | [
"casas@arch.ethz.ch"
] | casas@arch.ethz.ch |
2f7185ea5b869ce91ea3ac63db95ddf2cfd72921 | 734458ec2b0f573cdd6a5e388f870e036af01c3a | /python/ThirteenTeV/SemiVisibleJets/generateScan.py | d0430f6a5d84fd16a067f22a06c399221ee579f7 | [] | no_license | knash/genproductions | 987ec8d549aba879d0cb8b3f32206d19f139d3ef | 328e10ae97248ece03e548c7b73453e0ff136e92 | refs/heads/master | 2021-01-18T03:12:09.682945 | 2019-07-03T11:11:57 | 2019-07-03T11:11:57 | 85,840,586 | 0 | 1 | null | 2019-06-06T09:14:09 | 2017-03-22T14:53:04 | Python | UTF-8 | Python | false | false | 7,155 | py | import FWCore.ParameterSet.Config as cms
from Configuration.GenProduction.ThirteenTeV.SemiVisibleJets.svjHelper import svjHelper
from collections import OrderedDict
from copy import deepcopy
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
import numpy as np
# implementation of recursive loop over ... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
c68f82f56196ab515b57e4b8dd8e64e11aee61c6 | 3003a8663135aa10f5a152a8642bc6ab270995b9 | /ggCloudSDK/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/compute/subcommands/copy_files.py | c497c185cda19853ba46968bda156d1afe8bafc5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/packmybot | 1b4d199b36d196e5e769a781b520019bb4d0bdbc | 92de1e72cfc51b41447366ffc81a9dcd9a5e7870 | refs/heads/master | 2022-11-25T23:46:06.946645 | 2015-10-22T08:22:04 | 2015-10-22T08:22:04 | 282,313,675 | 0 | 0 | null | 2020-07-24T20:50:10 | 2020-07-24T20:50:10 | null | UTF-8 | Python | false | false | 5,907 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""Implements the command for copying files from and to virtual machines."""
import collections
import getpass
import logging
from googlecloudsdk.calliope import actions
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.core import properties
from go... | [
"cboussicaud@leaseplan.fr"
] | cboussicaud@leaseplan.fr |
9b6a45f40e12d2ecc6562977a6042f61788e25dd | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /DungeonsKitgard/TheRaisedSword.py | bd20ffd2d9632d3bba2ce439aa466531ce379317 | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 168 | py | # http://codecombat.com/play/level/the-raised-sword
self.attack("Rig")
self.attack("Rig")
self.attack("Gurt")
self.attack("Gurt")
self.attack("Ack")
self.attack("Ack")
| [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
ceb6062ff1dac18c07651c2b08736a9dc730fd51 | 0a613ccff34341510e9d8ac5e7c03ec991babfc8 | /pytorch_widedeep/models/wide.py | 24db9c9c539a9f5dae5152178bf0d2ccf1e74544 | [
"MIT"
] | permissive | sailfish009/pytorch-widedeep | f0e507e00566207b1e455d250eb67ac71d2df3c7 | b487b06721c5abe56ac68c8a38580b95e0897fd4 | refs/heads/master | 2023-05-01T05:24:39.217202 | 2021-04-16T15:17:48 | 2021-04-16T15:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | import math
import torch
from torch import nn
from pytorch_widedeep.wdtypes import * # noqa: F403
class Wide(nn.Module):
def __init__(self, wide_dim: int, pred_dim: int = 1):
r"""wide (linear) component
Linear model implemented via an Embedding layer connected to the output
neuron(s).
... | [
"jrzaurin@gmail.com"
] | jrzaurin@gmail.com |
658ae6ce12ab34713850e57285d9f752a27cf1c8 | ca231a325e8f4c18d50d89ffa7eec993d4cc68c3 | /PythonZumbis/lista4/questao01.py | 52ef9d134fbcb8049241fa246ac2f38051db434d | [] | no_license | HugoPorto/PythonCodes | 8e1597999ccd34ffa86df5ae7e91111d77dc7a22 | 539ad6891cbd49a2c011349f843ab710aad2993a | refs/heads/master | 2022-02-13T05:48:24.633750 | 2017-09-12T15:44:06 | 2017-09-12T15:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from random import randint
lista = [
randint(1, 100), randint(1, 100), randint(1, 100),
randint(1, 100), randint(1, 100), randint(1, 100),
randint(1, 100), randint(1, 100), randint(1, 100),
randint(1, 100), randint(1, 100)]
maior = 0
menor = 999
i = 0
while i < 10:
if lista[i] > maior:
ma... | [
"gpzim98@gmail.com"
] | gpzim98@gmail.com |
f3f5edd99ffd8c25d6f8b7f8f256e0d8b3db914b | b72c37e3ccda507b231649cddd5c7845c6c34ba1 | /PythonBasic/Day10/HomeWork_func.py | 616a95d2e92ed813880bc2d38a1c2920d8ab7b03 | [] | no_license | ljrdemail/AID1810 | 51c61c255b5c5efc1dc642b46691a614daedd85e | b417bd831bc1550ab953ce7ca23f54e34b8b2692 | refs/heads/master | 2020-04-24T09:45:14.781612 | 2019-02-21T11:26:49 | 2019-02-21T11:26:49 | 171,866,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py |
def mysum(n):
# sum = 0
# num = int(n)
# for i in range(1, num + 1):
# sum += i
# return sum
return sum(range(1,n+1))
# return sum(list(range(1,n+1)))
def myfac(n):
fac = 1
num = int(n)
for i in range(1, num + 1):
fac *= i
return fac
print(myfac(10))
def mypow(... | [
"root"
] | root |
c5f10f045e2471562135208acf2377b8d14c9942 | 403de45c6626f2c40d2d48d64f4c94a728bb7b09 | /vocoder_eva/eval.py | baa254f50dd11cbd3bae82919f435fa3ef8f150a | [] | no_license | exeex/vocoder_eva | f95d969261adaa63ec01270239496eec3c9adca5 | d81dc01768da20c208df00bfb78d90c52d93c0a8 | refs/heads/master | 2020-09-14T01:04:27.189683 | 2020-01-20T14:08:14 | 2020-01-20T14:08:14 | 222,961,890 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,992 | py | import librosa
import numpy as np
import pyworld as pw
import matplotlib.pyplot as plt
import pysptk
ln10_inv = 1 / np.log(10)
def pad_to(x, target_len):
pad_len = target_len - len(x)
if pad_len <= 0:
return x[:target_len]
else:
return np.pad(x, (0, pad_len), 'constant', constant_values=... | [
"xray0h@gmail.com"
] | xray0h@gmail.com |
560336f07c938cf86e6d8af0547e58c0c2aeee39 | 14fc2ee47e1081416f0465e8afa18da33169095f | /src/PP4E/Ai/ExpertSystem/holmes/holmes2/forward2.py | 68e44a13498fb15d2cd3a51dad0b31cdbb159c0f | [] | no_license | madtyn/progPython | d95ea8021b1a54433e7b73de9d3b11d53a3096b7 | f3a1169149afdeb5191dd895462139f60d21d458 | refs/heads/master | 2021-07-09T13:35:27.519439 | 2017-10-04T14:46:57 | 2017-10-04T14:46:57 | 104,866,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | #
# module forward2.py
#
# forward chaining inference engine
#
# this is a varient of forward.py that implements
# negation both by explicit assertion, and by
# ommission; see holmes.doc for more info;
# to use negation-by-ommission in the shell:
# holmes> +2
# to use it in a program, just import forward2;
#####... | [
"madtyn@gmail.com"
] | madtyn@gmail.com |
e5701a988ccc68f2d79bc6b8df147784e0b255fe | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /robot-server/tests/service/session/models/test_command.py | 67d99f409ac65be929996b5cab636f523cc44269 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 2,142 | py | from datetime import datetime
import pytest
from pydantic import ValidationError
from robot_server.service.session.models import command, command_definitions
@pytest.mark.parametrize(
argnames="command_def",
argvalues=[
command_definitions.ProtocolCommand.start_run,
command_definitions.Calibr... | [
"noreply@github.com"
] | Opentrons.noreply@github.com |
b0f876aa2d6cd51ea2274586bab5fb07bb20feff | 219992b56f8e5cd8b47534d98417dd8ac795110b | /src/FastPass-Agile/CSRA.py | d3eb111e1798314be721a8ab965c41c87ae07524 | [] | no_license | haohaixingyun/dig-python | 63844877de0acad04d07d7119e381b9bb4a97395 | 4e8c3e3cb1ba98f39d65095b4d3b09ba115e586b | refs/heads/master | 2021-01-13T08:45:59.669829 | 2016-10-26T05:54:07 | 2016-10-26T05:54:07 | 71,970,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,966 | py | # coding = utf - 8
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
import unittest
import time,sys
import login,C_screenshots
import HTMLTestRunner
class FastPass_Agile(unittest.TestCase):
... | [
"yunxinghai@hotmail.com"
] | yunxinghai@hotmail.com |
580eeccd0fdd976778a96b8c5d7a64e3cbcc7863 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Emend_WC500026537.4.py | 46754167c443614635089acfee5a74b6d1a88dc2 | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | {'_data': [['Common',
[['Metabolism', u'minskad aptit'],
['Nervous system', u'huvudv\xe4rk'],
['Respiratory', u'Hicka'],
['GI', u'f\xf6rstoppning, dyspepsi'],
['General', u'Tr\xf6tthet'],
['Investigations', u'f\xf6rh\xf6jt ALAT']]],
... | [
"daro@daro-ThinkPad-X220.(none)"
] | daro@daro-ThinkPad-X220.(none) |
ac6dc9752855bb5a9741df5fcd939fbed3d4226b | 0f9f8e8478017da7c8d408058f78853d69ac0171 | /python3/l0229_majority_element_2.py | 8d8dd64afeae37fe515fb54d936bb76fed74d62f | [] | no_license | sprax/1337 | dc38f1776959ec7965c33f060f4d43d939f19302 | 33b6b68a8136109d2aaa26bb8bf9e873f995d5ab | refs/heads/master | 2022-09-06T18:43:54.850467 | 2020-06-04T17:19:51 | 2020-06-04T17:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from typing import List
class Solution:
def majorityElement(self, nums: List[int]) -> List[int]:
c1, c2 = None, None
count1, count2 = 0, 0
for n in nums:
if n == c1:
count1 += 1
elif n == c2:
count2 += 1
elif count1 == 0:
... | [
"zhoulv82@gmail.com"
] | zhoulv82@gmail.com |
0cbf5e113335f0f6acf9dd864503ff0411592ba7 | 8bfd94be34008db3a7822247e9fb05604ad010d2 | /snips/migrations/0001_initial.py | a7b67f1349671972f09f8da5d588956b54b4acf5 | [] | no_license | SnipToday/FrontEnd | c7ce59548b0114e24008580d98dad48c78ff431d | 5043fb584535295b27e8c6f0044c54ac8ab40023 | refs/heads/master | 2021-01-22T17:49:04.506117 | 2017-09-04T22:08:28 | 2017-09-04T22:08:28 | 102,405,712 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-20 13:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import modelcluster.fields
class Migration(migrations.Migration):
initial = True
dependenci... | [
"ranihorev@gmail.com"
] | ranihorev@gmail.com |
5d323280b72ac2c020eaf9e222a4bbe9e7dfd50f | 0fc9eca08cc48f93a4079a9b4c0dd0201ef2ce80 | /vindula/agendacorporativa/browser/search.py | 8571790b6dae199e6a61314a09ccf6efa1eb8e74 | [] | no_license | vindula/vindula.agendacorporativa | c75564c7d89424e23e3a1baa1f1dcdc6ac2dfc4c | e70f6c2baf6629cb4a486bc642c49e7b7138bf7d | refs/heads/master | 2020-12-29T01:41:33.812325 | 2013-08-02T18:54:58 | 2013-08-02T18:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # coding: utf-8
from Products.CMFCore.utils import getToolByName
from AccessControl.SecurityManagement import newSecurityManager, getSecurityManager, setSecurityManager
from DateTime import DateTime
from copy import copy
def busca_commitment(context,username,portlet=False):
ctool = getToolByName(context, 'portal_c... | [
"cesaraugusto@liberiun.com"
] | cesaraugusto@liberiun.com |
e82730273d0eaa099b5b7974f79444de9077c466 | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/purchase/report/purchase_bill.py | d442019eb8c1ec5604f64349509c1d4a9b4dc348 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from harpiya import api, fields, models, tools
from harpiya.tools import formatLang
class PurchaseBillUnion(models.Model):
_name = 'purchase.bill.union'
_auto = False
_description = 'Purchases & Bills Uni... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
5114aa4f0924c3f6eaa3c0e48d017abbbb07dc7f | b6277a78b0337667ec4b88e0da3cb84a76383687 | /tests/test_inertia.py | ee4d43936999c7eb71ba51b38a6a87c207d455ae | [
"MIT"
] | permissive | sgalkina/trimesh | 11c91e9c9a7c013fb81551dcee0fdbfffa1f5d13 | 55e35216efcf620c816d82d9f9167e22966a851d | refs/heads/master | 2021-01-25T07:00:55.935106 | 2017-06-06T03:30:28 | 2017-06-06T03:30:28 | 93,636,761 | 0 | 0 | null | 2017-06-07T13:11:58 | 2017-06-07T13:11:57 | null | UTF-8 | Python | false | false | 4,510 | py | import generic as g
class InertiaTest(g.unittest.TestCase):
def test_inertia(self):
t0 = g.np.array([[-0.419575686853, -0.898655215203, -0.127965023308, 0. ],
[ 0.712589964872, -0.413418145015, 0.566834172697, 0. ],
[-0.562291548012, 0.146643245877, 0.813832890385... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
aaa6d9dc213f7a6387f24784b2d7e5faf88bdaca | 2f37d3dcb20c9ba171024b1f8711b9926dbef0f3 | /eventex/subscriptions/mixins.py | af8a07846e310bed196a2252db4603a7d4f73b42 | [] | no_license | sergiopassos/eventex-sergiopassos | 9c080a365e4e554a5839aa461ce47e3d40d9fc53 | 6672223faaa7930377532141394dea3ae7c2c431 | refs/heads/master | 2023-04-27T02:40:15.094019 | 2020-01-16T13:51:11 | 2020-01-16T13:51:11 | 192,630,937 | 0 | 0 | null | 2023-04-21T20:32:42 | 2019-06-19T00:37:38 | Python | UTF-8 | Python | false | false | 1,585 | py | from django.conf import settings
from django.core import mail
from django.template.loader import render_to_string
from django.views.generic import CreateView
class EmailCreateMixin:
email_to = None
email_context_name = None
email_template_name = None
email_from = settings.DEFAULT_FROM_EMAIL
email_... | [
"sergio.passos02@gmail.com"
] | sergio.passos02@gmail.com |
20aa4222af3a4ebe0cc386a6ed3d8a36989e1b88 | 8a9b10eeef43e648fcc82d5fdbf6505e0e19a88b | /Tensor_Flow/stock_similarity_daily.py | 865cb66b7091f69f8580c800d2c23bd22bff0acb | [] | no_license | lwzswufe/neural_net | 3648e100ad68fd2dbd6e3f51be7b053780f7fd87 | 0a0ed94680c0e5dd3dbd2e13aef79a1b8fd8293d | refs/heads/master | 2021-03-30T17:06:18.296242 | 2019-10-16T08:22:47 | 2019-10-16T08:22:47 | 76,216,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # author='lwz'
# coding:utf-8
# !/usr/bin/env python3
import os
from Tensor_Flow import AutoEncoder2, similarity_analysis
if __name__ == '__main__':
AutoEncoder2.daily()
similarity_analysis.daily() | [
"lwzswufe@foxmail.com"
] | lwzswufe@foxmail.com |
c73df56929f4b7102748c83d681b3d6ba5a8af13 | 0d86bb399a13152cd05e3ba5684e4cb22daeb247 | /python-basics/unit11-error/py116_raise.py | f69da74fed89c80b5b2226b0517bf4504d52200c | [] | no_license | tazbingor/learning-python2.7 | abf73f59165e09fb19b5dc270b77324ea00b047e | f08c3bce60799df4f573169fcdb1a908dcb8810f | refs/heads/master | 2021-09-06T05:03:59.206563 | 2018-02-02T15:22:45 | 2018-02-02T15:22:45 | 108,609,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 18/1/2 下午8:00
# @Author : Aries
# @Site :
# @File : py116_raise.py
# @Software: PyCharm
'''
raise语句 主动抛出异常
'''
def thorw_error():
raise Exception("抛出一个异常")
if __name__ == '__main__':
thorw_error()
'''
Traceback (most recent call last):
Fi... | [
"852353298@qq.com"
] | 852353298@qq.com |
ed61bed728ef72c66243a1d999603df111527ea6 | ab650e6a0ca2f97096235ebe914b140b740aec66 | /app/templates/_root_init.py | 88f63dc99cf2ee4d75a6a147f53f0b50423d33bb | [
"MIT"
] | permissive | ghostRider1124/generator-python-package | 8fd353d6c4ed2c6f1ad88ebb6fe6811a8d585026 | 678b33fec9937c68aaa45ae04e6a8aac5f6554c5 | refs/heads/master | 2020-05-20T18:16:32.266189 | 2014-07-02T17:05:26 | 2014-07-02T17:05:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file is part of <%= package.name %>.
# <%= package.url %>
# Licensed under the <%= package.license %> license:
# http://www.opensource.org/licenses/<%= package.license%>-license
# Copyright (c) <%= package.created.year %> <%= package.author.name %> <%= package.author.e... | [
"heynemann@gmail.com"
] | heynemann@gmail.com |
06c6fc43bcedc984addf32ef365c64484890ea3c | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/ec_13175-1949/sdB_ec_13175-1949_coadd.py | ffac546028839ada5df1dbebec03b93979d41d2d | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[200.073167,-20.088431], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_ec_13175-1949/sdB_ec_13175-1949_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f606fc6928efe6b05a4ee59ddda61acd48e114dd | 930bc970069d8cbcfb36725a90492eff50638ecc | /code/dk-iris-pipeline/airflow_home/src/model/benchmark.py | 1bbbbefb5abcaffd9064680c379d44d929b5a14b | [
"MIT"
] | permissive | databill86/airflow4ds | 4770d856569c4db4b55b2d9dfda010e21c4cd790 | b5ae213f7169c54d31f4eca58d235ec6b09fd56f | refs/heads/master | 2021-09-25T17:26:43.340747 | 2018-10-24T16:09:49 | 2018-10-24T16:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import os
import sys
# Allow Python to discover local modules
sys.path.append(os.getenv(key='AIRFLOW_HOME'))
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import classification_report, accuracy_score
from src import PR... | [
"dushyant.khosla@pmi.com"
] | dushyant.khosla@pmi.com |
3ce8f8c6eacd5408747793dcc122d0488f4ae734 | baa484828e8683d51d58d48989532e3d3ce987bc | /200228_4.py | 2efd1e862a827523b45963bb36d5e9ac5f94ac82 | [] | no_license | sungguenja/study_gui | 0fc1e17c98a9afc0a6e66a39aeefcd89c3e60f5e | b058ca900061f2bd743f8532056ecedcc6b7ce0a | refs/heads/master | 2021-01-16T16:32:28.027456 | 2020-03-17T16:54:21 | 2020-03-17T16:54:21 | 243,184,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from tkinter import *
def font_control(ev):
label.config(font='HY헤드라인M {0} bold'.format(v.get()))
if v.get()==40:
label['text']='wa sans~'
label['font']='굴림체 40 bold'
else:
label['text']='안녕 파이썬~'
win=Tk()
v=IntVar()
win.geometry('300x150')
label = Label(win, text='안녕 파이썬~')
label.... | [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
e6374b6bb555a8e38d56b70d7982bcd3b7b87ad6 | ca299cec2cd84d8b7c2571fa2fdf7161e66b8fe7 | /private_server/guard/CELL-12/Q-7/12-7.py | b6d8cf30e5782ee64820b4e068edc894e409a128 | [] | no_license | benmechen/CodeSet | ca57d4a065ac4fc737749f65cb5aa1011d446a88 | f5a4bf627a9a8efc76a65ae58db63a973fedffb7 | refs/heads/master | 2021-07-16T14:23:36.355491 | 2019-12-02T13:58:27 | 2019-12-02T13:58:27 | 225,385,245 | 1 | 0 | null | 2021-06-22T15:37:57 | 2019-12-02T13:47:09 | JavaScript | UTF-8 | Python | false | false | 87 | py | # Set count_to equal to the sum of two big numbers
count_to = 12 + 12
print(count_to) | [
"psybm7@nottingham.ac.uk"
] | psybm7@nottingham.ac.uk |
d232fe89ca699bb27814c5684ea1ae3d2a1807b6 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-as/huaweicloudsdkas/v1/model/batch_remove_scaling_instances_request.py | bebca60ab39111f01f7c0e8379c57dbbff64a882 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,211 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchRemoveScalingInstancesRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
14c7592a361aec866f6bbc9d904a1567aab1a1ec | ecd4b06d5d5368b71fd72a1c2191510a03b728fd | /3 - pandas foundation/austin case study/4.py | 40ede74aea409c735ebd2a40bd4f6e624d3f96aa | [
"MIT"
] | permissive | Baidaly/datacamp-samples | 86055db5e326b59bfdce732729c80d76bf44629e | 37b4f78a967a429e0abca4a568da0eb9d58e4dff | refs/heads/master | 2022-07-27T01:18:00.700386 | 2022-07-18T19:27:23 | 2022-07-18T19:27:23 | 123,827,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Convert the date column to string: df_dropped['date']
df_dropped['date'] = df_dropped['date'].astype(str)
# Pad leading zeros to the Time column: df_dropped['Time']
df_dropped['Time'] = df_dropped['Time'].apply(lambda x:'{:0>4}'.format(x))
# Concatenate the new date and Time columns: date_string
date_string = df_dr... | [
"daulet.urazalinov@uptake.com"
] | daulet.urazalinov@uptake.com |
1ed5f1cca9b1d29e15103ea5e148e811b1f53733 | be526f8602651479f5b24eab9c91a3817e9bff0e | /word2vec_tensorboard.py | bc0a82bc12957315e14cf53c710a8cda0042d17f | [] | no_license | bage79/word2vec4kor | 76a870c57a1a854ff3e3a00c955424b394723259 | 3dc8a856e22f79e8da27f74b3d55de474a599e8c | refs/heads/master | 2021-04-27T11:33:00.869446 | 2018-05-08T14:12:45 | 2018-05-08T14:12:45 | 122,564,641 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | import argparse
import os
import pickle
import traceback
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import tensorflow as tf
from tensorflow.contrib.tensorboard.plugins import projector
def turn_off_tensorflow_logging():
import os
import tensorflow as tf
os.environ['TF... | [
"bage79@gmail.com"
] | bage79@gmail.com |
782beba45b77ab5dd35b7a388087e5f618f0f266 | 62f59fe1e0246b33c84412ee2a60e77938a05a15 | /test/zombie_task_test.py | 97d79ca67f9031bb031c6eccabdd7eb9bba5e7e6 | [] | no_license | 20113261/platform_service | 02676d2654f5c7bde2c7eafdadbf55fe7253a7b0 | bc903168bd7cbc499892f24c2b1cc82c38180c01 | refs/heads/dev | 2022-08-01T02:30:05.004852 | 2018-04-29T05:39:37 | 2018-04-29T05:39:37 | 131,576,306 | 1 | 0 | null | 2022-07-08T19:13:32 | 2018-04-30T09:14:54 | Python | UTF-8 | Python | false | false | 1,113 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/10/26 下午6:28
# @Author : Hou Rong
# @Site :
# @File : zombie_task_test.py
# @Software: PyCharm
import datetime
import pymongo
client = pymongo.MongoClient(host='10.10.231.105')
collections = client['MongoTask']['Task']
def monitoring_zombies_tas... | [
"nmghr9@gmail.com"
] | nmghr9@gmail.com |
d72d79bedd1d13883fc2cad393b334ee4aff8287 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /test/test_metadata.py | 4a4189f3e130f421154ba36b2d51d25b314c6960 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
0af742a6da7d3a491d33c665d6821b55a52e9e22 | 451e3188ef94bfd106a0194774c23edd0bba84a2 | /blog/migrations/0011_auto_20190624_1757.py | 32bf1b8e4505dacd5f6698621a22e1552d94538a | [] | no_license | Dolidodzik/Wagtail-Django-Static-Blog | fe9c8caf63275c8f444ac7b898e7e0d67fae018a | db0769da8c7b1c3fc450fe40181bfcf984079ec1 | refs/heads/master | 2020-06-08T02:13:32.401772 | 2019-10-29T17:09:09 | 2019-10-29T17:09:09 | 193,139,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # Generated by Django 2.2.2 on 2019-06-24 17:57
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('blog', '0010_auto_20190624_1749'),
]
operations = [
migrations.Al... | [
"teethtard321@gmail.com"
] | teethtard321@gmail.com |
dc8423b42f23e5e62b109260c92631277dd9f347 | 20860030d52b5be62cb797e396a5a6b83f45dc44 | /configuration-api/src/__init__.py | cf8683bda4fd470b0adb1d974c85ba42670d64d7 | [] | no_license | rcosnita/bravehub | 189d30c46224dd80d6fbf41c50a33559ec2f44ae | 960bcfdb3c2e53e81aa75f7a48980e4918cfd4bb | refs/heads/master | 2022-12-21T11:28:16.626690 | 2018-02-17T10:43:09 | 2018-02-17T10:43:09 | 98,259,347 | 0 | 1 | null | 2022-12-19T13:27:11 | 2017-07-25T03:17:44 | Python | UTF-8 | Python | false | false | 396 | py | """Initializes some configuration parameters which are used in the implementation of
configuration-api microservice."""
from src.ioc import ConfigurationApiContainer
API_VERSION = ConfigurationApiContainer.api_meta.version
API_FULL_VERSION = "{0}.{1}.{2}".format(API_VERSION.major, API_VERSION.minor, API_VERSION.patch)... | [
"radu.cosnita@gmail.com"
] | radu.cosnita@gmail.com |
49f713c4ee1d37d24c760dd5a7d2afcca4e2a2f2 | 6359831db732f929409adbb8270092c7e9cca8d5 | /Q046_Vertical_traversal_of_binary_trees.py | a8f43145ca2853b7a89f408b9807b11bd25a2276 | [] | no_license | latika18/interviewbit | 11237219d982c98a22f0098be8248ef7a5b9246f | a065b19dc368136101dafbbbdab9b664fed0bf35 | refs/heads/master | 2020-03-15T15:20:30.002201 | 2018-08-22T07:39:21 | 2018-08-22T07:39:21 | 132,209,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | Given a binary tree, print a vertical order traversal of it.
Example :
Given binary tree:
6
/ \
3 7
/ \ \
2 5 9
returns
[
[2],
[3],
[6 5],
[7],
[9]
]
Note : If 2 Tree Nodes shares the same vertical level then the one with lesser depth will come first.
Code: ... | [
"noreply@github.com"
] | latika18.noreply@github.com |
4d062caff31b114960dd1f54eb12dceb00549788 | df5ed643835e0759b326b9c3ad2f96a945b1519f | /Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/turtledemo/penrose.py | c913c6312d53a0f6dfd5900a4ee1c1972cf95f4c | [
"MIT"
] | permissive | keith/Xcode.app-strings | 8182a6b5272e5763111ddf376818aca277f113d3 | c3c93e5b349425159172bb62e9929b701de26a87 | refs/heads/main | 2023-08-30T22:31:13.291293 | 2023-08-29T18:19:23 | 2023-08-29T18:19:23 | 75,589,712 | 91 | 28 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | #!/usr/bin/env python3
""" xturtle-example-suite:
xtx_kites_and_darts.py
Constructs two aperiodic penrose-tilings,
consisting of kites and darts, by the method
of inflation in six steps.
Starting points are the patterns "sun"
consisting of five kites and "star"
consisting of five darts.
For more informa... | [
"keithbsmiley@gmail.com"
] | keithbsmiley@gmail.com |
994535b97312d7b201e3c3ece5776069e47d98fd | 1269530d9534b563879d8e995fecf67196287719 | /check_size_mlstm.py | 40a5c8f3dcd4d109b5f841f02994af78f278d6a3 | [] | no_license | amirunpri2018/Keras-Multiplicative-LSTM | a7ff7eea2d9b8ba1ae15efa7759eb5510fe6fabe | 3c89fed3ac45d84072bc2712a895e479b657e457 | refs/heads/master | 2020-04-08T03:37:47.274723 | 2017-11-04T03:04:22 | 2017-11-04T03:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | import multiplicative_lstm
from keras.layers import Input, LSTM
from keras.models import Model
ip = Input(shape=(1, 100))
lstm = LSTM(128)(ip)
mlstm = multiplicative_lstm.MultiplicativeLSTM(128)(ip)
lstm_model = Model(ip, lstm)
mlstm_model = Model(ip, mlstm)
lstm_model.summary()
print('\n' * 3)
mlstm_model.summar... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
f69ee0ebd58b2cd9df04217cbdb83c8b95f62007 | f6b5799c13fad2382d638a1208f4972ce818174a | /site/PROGRAMMERS/src/python/스킬테스트/level01/콜라츠추측.py | 9da7b4527830f6a02e0a2ca40eba22dd9e88d4e1 | [] | no_license | JoonBeomLee/Algorithm_Python | 6bf0cc29ffaf75156bfa44ea531c33b3d2b2a129 | 185fb39d535573c374f1d0d88f728f97086a4246 | refs/heads/master | 2023-06-11T10:27:10.228151 | 2021-07-05T14:59:40 | 2021-07-05T14:59:40 | 193,500,999 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | def solution(num):
answer = 0
while True:
if(num == 1): break
if(answer == 500): answer = -1; break
# 짝수
if num % 2 == 0:
num = num / 2
# 홀수
elif num % 2 != 0:
num = 3 * num + 1
an... | [
"jbl9595@naver.com"
] | jbl9595@naver.com |
28623c7e7bcdf0aaaff6991949f05be9d2bc310d | e2992452a3c52f4cbbc64e1686128ad464b71d16 | /weixinSource/weixinSource/pipelines.py | aeba7ce32ab3fe5a82d68511a812978bede5574e | [] | no_license | MaGuiSen/studyScrapy | 6b84605a15027ffc24501d690666f419ebb379fd | 03604bafe19e55db12677a4af388c8a9198ca572 | refs/heads/master | 2021-01-17T04:30:23.858217 | 2017-08-30T01:50:08 | 2017-08-30T01:50:08 | 95,433,695 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class WeixinsourcePipeline(object):
def process_item(self, item, spider):
return item
| [
"1059876295@qq.com"
] | 1059876295@qq.com |
917fe61e6abccc4a02db3da5c659d3386712f344 | d4f87828a3767788dfbd83ef150d4af13c8ac762 | /swagger_client/models/saml_group_read.py | d5997973149b6129873ea058e8861e7e019a04e3 | [] | no_license | n-sundararajan/python-looker-api | 55dc6779843e28796c573a62ee30b75e135e8be5 | 498301068e7bd983b99d6647785a9f3d315ceadd | refs/heads/master | 2020-03-19T13:52:39.284698 | 2018-06-08T10:33:07 | 2018-06-08T10:33:07 | 136,599,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | # coding: utf-8
"""
Looker API 3.0 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | [
"sundar.narasimhan@accenture.com"
] | sundar.narasimhan@accenture.com |
0eec3d555e4db9f9548824002788e9b95e60b91e | dd4d2589d1f14303cacd3b7ee1dd5f6bacd3bf3c | /matrix/spiral_matrix_2.py | ed14ac09091d56c65841453b2f11ee3ea40c813a | [] | no_license | salujaharkirat/ds-algo | ec22eaae81bdb78f2818248508325a536aedbb7b | 819b5971826d97ec600b92776c5158518c9cbf22 | refs/heads/master | 2023-05-02T17:20:49.425484 | 2021-05-23T07:54:29 | 2021-05-23T07:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | """
https://leetcode.com/problems/spiral-matrix-ii/
"""
import numpy as np
class Solution:
def generateMatrix(self, n: int) -> List[List[int]]:
res = []
for i in range(n):
res.append([0] * n)
left = 0
right = n - 1
top = 0
bottom = n - 1
dire... | [
"saluja.harkirat@gmail.com"
] | saluja.harkirat@gmail.com |
d7cdd4c62c61f62e1d8c309bc87f77c4949eadd9 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sbss_1655+591/sdB_sbss_1655+591_coadd.py | f030d65a0471c8af9f04c2583c5c8ff5c0bbeec1 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[254.127958,59.079469], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sbss_1655+591/sdB_sbss_1655+591_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
81d2acb91a751c6699bd377dc4694798e495f094 | 634514a9c10e32051964b179cc807d089d31124e | /S2l/Thesis_Ch3/Exp1_reach3dof/Scripts/plotter_episodes.py | c705777868308749f11d14705ce7c42a4bc061d3 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | leopauly/Observation-Learning-Simulations | 34009872a1f453ffc4ae7ddced7447a74ff704c4 | 462c04a87c45aae51537b8ea5b44646afa31d3a5 | refs/heads/master | 2021-08-04T10:55:42.900015 | 2021-07-05T13:41:09 | 2021-07-05T13:41:09 | 129,761,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #### For plotting from reawrd values stored in files
import numpy as np
import matplotlib.pyplot as plt
import sys
run=sys.argv[1]
y = np.loadtxt('episode_reward_run_'+run+'.txt', unpack=True)
y_new=y[1:len(y)]
x=range(len(y_new))
print(x,y_new)
plt.figure(1)
plt.plot(x,y_new)
plt.title('Reward')
plt.xlabel('epis... | [
"meetleopauly@yahoo.com"
] | meetleopauly@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.