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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ad6704531f11096b6c1d2f7cda086784124487a | 789a9373f6198e158822706d6c243ed45e487f87 | /test/backward_compatibility/check_backward_compatibility.py | 6ba9ff66de293a14c2278e0df011e83144cde989 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | JakobHavtorn/pytorch | 98bc88e46a6acc7c77f9ec34810cd93b74e9aceb | 6de7a4a2818fbdd9fd763ad171bdb4c7514990fe | refs/heads/master | 2021-01-02T02:58:39.819315 | 2020-10-01T08:17:22 | 2020-10-01T08:17:22 | 239,460,735 | 0 | 0 | NOASSERTION | 2020-02-10T08:20:40 | 2020-02-10T08:20:39 | null | UTF-8 | Python | false | false | 8,892 | py | import argparse
import datetime
import re
import sys
from collections import defaultdict
import torch
from torch._C import parse_schema
# The date specifies how long the allowlist exclusion should apply to.
#
# - If we NEVER give BC guarantee for an operator, you can put the
# date arbitrarily far in the futur... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
73766be87c861a771f5ae7e6784f2aa71dfca856 | f954729a6941d5309f02865b5313b8524e9e6f53 | /resources/genomes.py | d4d95ae8aa3d7389867fd4d1f1a5fe88474820de | [] | no_license | bnbowman/NoAmpTools | 5f597adec6f49ab8422f443dfdd234b7a9a1dd8d | b59800c675c764ba8b5aee734c3ed79e4ac8e9a5 | refs/heads/master | 2018-12-18T18:58:27.201236 | 2018-09-14T19:33:04 | 2018-09-14T19:34:23 | 107,060,977 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | #! /usr/bin/env python
from collections import defaultdict
import matplotlib.cm as cm
class Genome(object):
def labels(self):
return self._labels
def sizes(self):
return self._sizes
def size(self, key):
return self._sizes[key]
def targets(self):
return self._target... | [
"bbowman@pacificbiosciences.com"
] | bbowman@pacificbiosciences.com |
7e5a0a4b2e4b83568dafc54541a561cc3404b48e | 04b71cef66a039196a2965dfab0ff56b0793fe32 | /python/run/brian_2_xgb.py | 231a8c822d29764c92ace11f0ede645217b21be4 | [] | no_license | gviejo/Prediction_xgb_head_direction | 69d57b7d7a2f366f2c96a6e6e933d0978592718f | 6fbe724f92c15afcc634c84383f57bbeedff7d24 | refs/heads/master | 2021-11-05T09:10:48.067439 | 2021-11-05T01:15:17 | 2021-11-05T01:15:17 | 93,687,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | import scipy.io
import sys,os
import numpy as np
from matplotlib.pyplot import *
import pandas as pd
import xgboost as xgb
store = pd.HDFStore("../data/spikes_brian.h5")
data = store['data']
store.close()
adn_neuron = [n for n in data.keys() if 'ADn' in n]
pos_neuron = [n for n in data.keys() if 'Pos' in n]
bi... | [
"guillaume.viejo@gmail.com"
] | guillaume.viejo@gmail.com |
d86242cd87dd8323bb6214deb9dacb2b9f552040 | 2b3817fb9e4078e912fe1df2e964a68dcd48d053 | /code/pgms/can-sum.py | 021e88ad56ffd0af0b5efa8652465910059432a6 | [
"MIT"
] | permissive | souradeepta/PythonPractice | 350a130b341efec7b22ebd061c3d89036603587f | fa956ca4b87a0eb92fee21fa78e59757ce665770 | refs/heads/master | 2023-08-08T03:46:01.238861 | 2021-09-23T02:37:13 | 2021-09-23T02:37:13 | 256,668,632 | 1 | 0 | MIT | 2021-09-22T18:54:17 | 2020-04-18T04:22:25 | Python | UTF-8 | Python | false | false | 1,810 | py | from typing import List
def canSumRepeat(target: int, input: List, memo: dict) -> bool:
"""Can the sum of input number lead to the target value
Args:
target (int): target
input (List): list of numbers
Returns:
bool: True or False
"""
if not input:
return None
... | [
"sdb.svnit@gmail.com"
] | sdb.svnit@gmail.com |
3b7dbaa8d490c3da4756ccad3b0ccf36d205d1c9 | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /C_LinkList/Swap/L2_24_Swap_Nodes_in_Pairs.py | 875e98e38bc4183aafaf3c32d8ccd3bd631735f4 | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 526 | py | """ https://leetcode.com/problems/swap-nodes-in-pairs/
from dba: https://leetcode.com/problems/swap-nodes-in-pairs/discuss/984392/Python-O(n)-solution-explained
"""
from header import *
class Solution:
def swapPairs(self, head: Optional[ListNode]) -> Optional[ListNode]:
ans = pre = ListNode(next=head)
... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
ed329fe829585a042a59d6c01959272c9d3ee31e | cdc48931cb3adb62c5e4963e43aeaf3cbc5080c4 | /Scripts/Read_omi_data.py | c977f0e3517d4bf8d1888816d3f96f6023bdb222 | [] | no_license | giovannilopez9808/SEDEMA_2000_2019 | ce8f1955b7d0f760485e2a984f36e72141867a0f | 857be19c0acd9587904107ecd470b94a6a7d93b3 | refs/heads/main | 2023-06-25T10:32:06.536548 | 2021-08-04T19:55:16 | 2021-08-04T19:55:16 | 382,178,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import matplotlib.pyplot as plt
import pandas as pd
def date_format(data):
data["Date"] = data["Datetime"].str[0:4]+"-" + \
data["Datetime"].str[4:6]+"-"+data["Datetime"].str[6:8]
data["Date"] = pd.to_datetime(data["Date"])
data.index = data["Date"]
data = data.drop(["Date", "Datetime... | [
"giovannilopez9808@gmail.com"
] | giovannilopez9808@gmail.com |
7d382bee63d4ab632c33c235b382848e1693243a | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Graph/733.py | 5ae87bd51e724a76ced10a0220dd9ab5401483da | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # 733. Flood Fill
# An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535).
# Given a coordinate (sr, sc) representing the starting pixel (row and column) of the flood fill, and a pixel value newColor, "flood fill" the image.
# To perform a "flood f... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
36c8aa5f1334f81fcdcf3cffaf6fe2f5836d7abe | 951fc0da7384b961726999e5451a10e2783462c4 | /script.module.exodusscrapers/lib/exodusscrapers/sources_placenta/en_placenta-1.7.8/ororo.py | da4be034f81d870663f7cf7dbc21eacd06fa0f60 | [
"Beerware"
] | permissive | vphuc81/MyRepository | eaf7b8531b2362f0e0de997a67b889bc114cd7c2 | 9bf8aca6de07fcd91bcec573f438f29e520eb87a | refs/heads/master | 2022-01-02T15:07:35.821826 | 2021-12-24T05:57:58 | 2021-12-24T05:57:58 | 37,680,232 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | [
"vinhphuc_81@yahoo.com"
] | vinhphuc_81@yahoo.com |
0e4ea3b20b875aa0d0f525b5688b469b1ae1cd07 | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/1300-1399/1389.create.target.array.in.given.order.py | fbf27d7eff98adccaa487419a2b2644f45f97e17 | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from typing import List
class Solution:
def createTargetArray(self, nums: List[int], index: List[int]) -> List[int]:
ans = []
for i, x in zip(index, nums):
ans.insert(i, x)
return ans
if __name__ == '__main__':
solver = Solution()
cases = [
([1], [0]),
([0,1,2,3,4], [0,1,2,2,1]),
(... | [
"gyang274@gmail.com"
] | gyang274@gmail.com |
aa680423f2958a393e449a990b4747fc8f1b6e0a | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/gsi_handlers/business_handlers.py | 37908330768a0f86bd61914ae6d9ee428b3c28f5 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,223 | py | from business.business_enums import BusinessType, BusinessEmployeeType
from gsi_handlers.gameplay_archiver import GameplayArchiver
from sims4.gsi.dispatcher import GsiHandler
from sims4.gsi.schema import GsiGridSchema, GsiFieldVisualizers
import services
business_managers_schema = GsiGridSchema(label='Business Managers... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
668a65b4b0b55b74b317267172130bd341836dc6 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_6_mask_unet/mask_5_3a_sobel_k5/sobel_k5_s001_6l/step10_a_mask_5_3_sobel_k5_s001_6l.py | 11a26e1fd09e420e7e64ad4554eaaf5af90295e7 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,254 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
7c7a13988c1414c47d5397c1e6f97e7be4e23afa | 90b95ac525ee731ec5ba7d5da5c9038396ac4c3d | /zoom_data/migrations/0032_auto_20180129_1556.py | 852054a2c4f744955572c6156d903d4e86f2e8a1 | [] | no_license | 5klynna5/zoom_c | 33364146915611917ae0e6e0fd49233370424929 | 59c39eece1dd0ad5e7e210f4f03d8bb64df44b98 | refs/heads/master | 2021-05-12T04:06:39.031130 | 2018-08-04T23:52:19 | 2018-08-04T23:52:19 | 117,153,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('zoom_data', '0031_auto_20180129_1151'),
]
operations = [
migrations.AlterField(
model_name='annual',
... | [
"anderson.kirsten.l@gmail.com"
] | anderson.kirsten.l@gmail.com |
10b42b9c096fb19446e043163c9cfb3ae6a2ed9d | 098f80474295aa024657330b8f0813eca7d015c2 | /UnrealPythonLibrary/PythonLibraries/PythonHelpers.py | 9614830514ae6520ef42d4429675bed7ed05a765 | [] | no_license | sniler/UnrealScript | e4c4387caa6402a61b4bf0ba8952faf598e4464e | a4587d578366551b2470862f18b33c42439c5cdd | refs/heads/master | 2023-04-01T18:45:37.803690 | 2021-04-13T11:25:13 | 2021-04-13T11:25:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # unreal._ObjectBase
# https://api.unrealengine.com/INT/PythonAPI/class/_ObjectBase.html
import unreal
# object_to_cast: obj unreal.Object : The object you want to cast
# object_class: obj unreal.Class : The class you want to cast the object into
def cast(object_to_cast=None, object_class=None):
try:
... | [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
ff61f9d12ceebe86532e622aaecb819f0c39eb8f | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python/LC_573.py | a585295ef01ebf47f30590d98f2feb1f45f6657f | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py |
"""
There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal distance for the squirrel to collect all the nuts and put them under the tree one by one. The squirrel can only take at most one nut at one time and can move in four directions - up, ... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
56113bdeea081fbc16893e7fdd670b1aea96fa36 | 4cdd73fe38027d41bda2959f940fc8a2a6c4ca78 | /l10n_ve_islr_report/__openerp__.py | 437bf359edf4cb159557ab769dca6e3d5272dd75 | [] | no_license | adrt271988/l10n_ve | af408fcc0bd2c87475beccd5ec92ee180d35a0d8 | 0a762490f4ee0a4257fb75dc5ea5607dec91d3bd | refs/heads/master | 2020-04-05T14:04:14.374612 | 2016-09-05T22:19:54 | 2016-09-05T22:19:54 | 53,200,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
f49db6663ec0211a03497fae9b0a7d5b4a7ae930 | e5f1befb7c7ca0072747b33086fc6569a6befd01 | /old/videos/02.py | 18f9ca234fd808ffb6c7a2703c07f80bf5cdd3a6 | [] | no_license | nepomnyashchii/TestGit | ae08d8bb1b7d2ab9389a309fd1dc9e24729b019c | c7abf4ab08ee3c2f3ea1fb09a1938bff7a3e0e5c | refs/heads/master | 2020-04-28T23:41:51.053547 | 2020-01-24T12:22:40 | 2020-01-24T12:22:40 | 175,666,093 | 0 | 1 | null | 2019-03-15T13:44:03 | 2019-03-14T17:08:58 | null | UTF-8 | Python | false | false | 472 | py | import random
from random import randint
import math
# from random import *
from math import sqrt
from math import sqrt as my_sqrt
for element in range (10):
print(random.randint(1, 10))
#random object (randint function as method and 1,10 are arguments)
num =10
print(math.sqrt(num))
print(sqrt(num))
... | [
"nepomnyashchii@gmail.com"
] | nepomnyashchii@gmail.com |
abf24deb33aa929ed64e1f57511d697e2db26a85 | e1436eb68e51dcd1becb7e0f8671b51eb4b23ec0 | /desktop/kde/applications/parley/actions.py | 4ecd82fc5604b7c01eeb26036ad05c7448cec256 | [] | no_license | SulinOS/SulinKDE | bef0ebbecafa6082ad7599f377c95573468827fb | 9984e0f40a5a011e59d439a24856bde78deea1c2 | refs/heads/master | 2020-09-16T05:34:20.333558 | 2020-06-10T08:10:53 | 2020-06-10T08:10:53 | 223,669,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import inarytools
from inary.actionsapi import kde
def setup():
kde.configure()
def build():
kde.make()
def install():
kd... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
cf29657646e6dc10ca79da4d4d8f025b52a0bdd1 | 7416056e689dfc94391c4b108652cea02d59a31a | /reservation/migrations/0009_auto_20200128_0154.py | ee59b4e4dcefa53f8ef69cf34200507a3c15f18a | [] | no_license | zshanabek/house-booking-app | 0ea29fb8113671eb164ead8d335a986b850898a1 | cca5225f40b8a055a2db78810258325f2ba7ded1 | refs/heads/master | 2022-11-28T00:20:12.789534 | 2020-08-14T09:16:40 | 2020-08-14T09:16:40 | 225,791,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 2.2.7 on 2020-01-27 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservation', '0008_auto_20200125_2102'),
]
operations = [
migrations.AlterField(
model_name='reservation',
name='ch... | [
"zshanabek@gmail.com"
] | zshanabek@gmail.com |
f662e13a92f620780fa576c53bfe5eaaf4dc40d3 | 5dfbfa153f22b3f58f8138f62edaeef30bad46d3 | /ros_ws/build/baxter_examples/catkin_generated/pkg.develspace.context.pc.py | ce6228515fedb8113370e7fdd69d2285856a9049 | [] | no_license | adubredu/rascapp_robot | f09e67626bd5a617a569c9a049504285cecdee98 | 29ace46657dd3a0a6736e086ff09daa29e9cf10f | refs/heads/master | 2022-01-19T07:52:58.511741 | 2019-04-01T19:22:48 | 2019-04-01T19:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/bill/bill_ros/ros_ws/devel/include".split(';') if "/home/bill/bill_ros/ros_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy;xacro;actionlib;sensor_msgs;control_msgs;trajectory_msgs... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
5b7b08cc64f27b668429b60c89c6dfff39a1be47 | 3e2ec14daf3e246334e175719bc38adcf15cee5a | /challenges/graphs/black_shapes.py | 711d0422815e2bd4f14aaa3777a4b3ce9f1aaf6a | [
"CC0-1.0"
] | permissive | lukasmartinelli/sharpen | a616ee981d81efb2c844c5106ce30bd97f36e034 | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | refs/heads/master | 2021-01-20T12:11:25.452306 | 2019-06-08T21:06:12 | 2019-06-08T21:06:12 | 58,558,368 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | import collections
def adjacent_black_fields(matrix, row_idx, col_idx):
adjacent = [(row_idx + 1, col_idx), (row_idx - 1, col_idx),
(row_idx, col_idx + 1), (row_idx, col_idx - 1)]
def is_within_matrix(row_idx, col_idx):
row_count = len(matrix)
col_count = len(matrix[0])
... | [
"me@lukasmartinelli.ch"
] | me@lukasmartinelli.ch |
83f67eb1126eb3952caf34740d621467f28863e0 | 3a19c1b17f553b6d54e5c345d550ca494c3593e1 | /td1-problem22.py | 4130c59d812ac8cfd5ae3a90bfb24b370ea9992d | [] | no_license | mines-nancy-tcss5ac-2018/td1-TomLaville | 95faf73aca9375fe7ba990043e9c371713524eaa | 4967cda4594b7706d8edcdaf99a7945ea90ad8e3 | refs/heads/master | 2020-03-31T00:16:54.328127 | 2018-10-07T19:05:42 | 2018-10-07T19:05:42 | 151,733,523 | 0 | 0 | null | null | null | null | IBM852 | Python | false | false | 876 | py | values = ["\"","A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M","N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
def scoreName(nom):
s = 0
for char in nom:
s+= values.index(char)
return s
def solve():
noms = [] ##liste ... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
5388aa37ce371ef5f7f6cb2f18770e3a8791d1bd | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/misc-experiments/_FIREBFIRE/grpc-SwiftPM/tools/run_tests/run_microbenchmark.py | 4b9cd4bc8e85661f9a9cfeefbcc310b227710f5d | [
"MIT",
"Apache-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 9,289 | py | #!/usr/bin/env python
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
7acffc09af312c4cf50348b8c11ac1c2f7a9299c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/134/7136/submittedfiles/triangulo.py | ed25ffd7bbcc72ababe8bfa8ba20892f52ef7ec7 | [] | 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 | 260 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = input('Digite o valor de a:')
b = input('Digite o valor de b:')
c = input('Digite o valor de c:')
if a>=b>=c and a<(b+c) :
print ('S')
if (a**2)==((b**2)+(c**2)):
print
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0880e3a123ede3bcf2211f08a1ccf3132ed4b202 | 27f7ab32a865f4ae6b62d0b2a6a890352fea0cba | /ifmo_certs/courses/x0009_02/__init__.py | c0c67542929f42b7691098b602532d6a2ddb5444 | [] | no_license | defance/edx-ifmo-mod | 38b84381814b103e5cbf07419b1e1e142bc61a70 | 1b86a85a32c06322ab429d323f2ff2be84d0a1cc | refs/heads/master | 2021-01-22T20:59:42.575809 | 2015-10-28T12:57:43 | 2015-10-28T12:57:43 | 21,855,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | __author__ = 'd.ivanyushin'
from .x0009_02 import X0009_02
| [
"defance@gmail.com"
] | defance@gmail.com |
05947191f7a5ddb2a9ff5e8e0385d1616f07bd04 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/get_job.py | e9a9f325635bdf8571c3b2144867f1b62d2a343b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,080 | 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"
] | morrell.noreply@github.com |
69291f4bb7b082fcb63d8d0a0ab580ce63b63c2a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /GX3pQxvbTJApWYgRJ_22.py | ea51d20994790e177a6d6bdea78c3a0e36e6bd7b | [] | 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 | 1,291 | py | """
A Kaprekar Number is a positive integer that is equal to a number formed by
first squaring, then splitting and summing its two lexicographical parts:
* If the quantity of digits of the squared number is even, the left and right parts will have the same length.
* If the quantity of digits of the squared numb... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a56febed6885c0b35f0a30ddce4934f5b6836066 | 53396d12d606bebea71c149aed0150af7b17b6f5 | /array/medium/221-maximal-square-1.py | b3885e1f68c33ae2c1dc19434984e2ec1137c8ff | [] | no_license | superggn/myleetcode | 4c623bd9ad3892d826df73ad3b2c122e08aaa9e9 | 40ca33aefbf0cf746a2d0b7e7f52643ae39591be | refs/heads/master | 2023-02-02T11:06:35.163570 | 2020-12-19T10:36:45 | 2020-12-19T10:36:45 | 322,821,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """
dp
https://leetcode-cn.com/problems/maximal-square/solution/zui-da-zheng-fang-xing-by-leetcode-solution/
"""
from typing import List
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
if len(matrix) == 0 or len(matrix[0]) == 0:
return 0
maxSide = 0
... | [
"939401399@qq.com"
] | 939401399@qq.com |
33dc808475234978f454c5997f1ea1bd3996a31e | 05ace4491b97699333057e35f7e9225864f7130d | /dygraphsex/urls.py | 689201cc230eb577bc30387699482d5ada5e4179 | [] | no_license | scott858/dajs | b6878123748f563550fa2f5e59b1d5dcd4fdcaa5 | bc6b23d0e24be038e278490e34422d69b06d6543 | refs/heads/master | 2021-01-01T16:12:43.477340 | 2015-09-18T01:04:55 | 2015-09-18T01:04:55 | 41,645,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns(
'',
url(r'^$', views.example_app_view, name='main'),
url(r'^plot/$', views.plot_view, name='plot'),
)
| [
"scott.lee@nucleusscientific.com"
] | scott.lee@nucleusscientific.com |
08482fe6214b2752de4f244241d1bee84840b9a8 | 47243c719bc929eef1475f0f70752667b9455675 | /bungeni.main/branches/oauth/bungeni/alchemist/type_info.py | 2d6b1645d913fc2122f0e3dbcb9f1f7071449eff | [] | no_license | malangalanga/bungeni-portal | bbf72ce6d69415b11287a8796b81d4eb6520f03a | 5cf0ba31dfbff8d2c1b4aa8ab6f69c7a0ae9870d | refs/heads/master | 2021-01-19T15:31:42.943315 | 2014-11-18T09:03:00 | 2014-11-18T09:03:00 | 32,453,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,806 | py | # Bungeni Parliamentary Information System - http://www.bungeni.org/
# Copyright (C) 2010 - Africa i-Parliaments - http://www.parliaments.info/
# Licensed under GNU GPL v2 - http://www.gnu.org/licenses/gpl-2.0.txt
"""Aggregation of information about loaded domain types.
No public methods here -- all available methods... | [
"mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc"
] | mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc |
8de4c818ca766df5a345ae0b90065e5d770de5b1 | bc4656f6f74911f114626538294e0e275105c703 | /tests/dat/test_dar_packet.py | b02d91483b4179221c025a2cbc331f1950d03916 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AdrianCano-01/spsdk | d8679ae58fc67c6369bceff4b31db658d9ad6bc4 | 4a31fb091f95fb035bc66241ee4e02dabb580072 | refs/heads/master | 2023-03-15T00:37:07.419191 | 2021-03-05T16:33:50 | 2021-03-05T16:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2020 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
"""Tests with Debug Authentication Packet (DAR) Packet."""
import os
import pytest
import yaml
from spsdk.dat.dar_packet import DebugAuthenticateResponse
from spsdk.dat import DebugAuthenticationChallenge a... | [
"maria.wisniewska@nxp.com"
] | maria.wisniewska@nxp.com |
ef1d77c3ead5c963da4bda0a6758391542a24536 | 234b581de16f0eebfe3db5281d2920d50e3a3631 | /src/com/dtmilano/android/adb/dumpsys.py | efd9d4962f5cb6e26555547c6475bd84fb789c06 | [
"Apache-2.0"
] | permissive | jili0503/AndroidViewClient | 3d453884d68b508fe4d5d28f5bcea0db0cad6062 | c1c38e6fa53dc09697eadb9c1670d6bef8587ab6 | refs/heads/master | 2020-03-06T21:07:33.744022 | 2018-03-22T04:15:50 | 2018-03-22T04:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,612 | py | '''
Copyright (C) 2012-2018 Diego Torres Milano
Created on Dec 1, 2012
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
1e8d16b806a47a308758f7e5980e7257ffc52afe | a8c0867109974ff7586597fe2c58521277ab9d4d | /LC645.py | 199b710d2450fe19fc854e94ce08adbfb1a3b352 | [] | no_license | Qiao-Liang/LeetCode | 1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2 | dbdb227e12f329e4ca064b338f1fbdca42f3a848 | refs/heads/master | 2023-05-06T15:00:58.939626 | 2021-04-21T06:30:33 | 2021-04-21T06:30:33 | 82,885,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | class Solution(object):
def findErrorNums(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
xor = xor0 = xor1 = 0
for num in range(1, len(nums) + 1):
xor ^= num
for num in nums:
xor ^= num
rightmost_bit = xor & -xo... | [
"qiaoliang@Qiaos-MacBook-Pro.local"
] | qiaoliang@Qiaos-MacBook-Pro.local |
70ba21f2461cde284f5558daadde2b7a79b1ce76 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/442.py | 0e9c48707a834d8dbb3976c1a62d17af127fe5a1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 341 | py | """
wordcount
"""
def word_count(text):
"""
Return a dictionary of words and their
word counds
:param text:
:return:
"""
words = {}
text = ' '.join(text.split())
for word in text.split(" "):
if word in words:
words[word] += 1
else:
words[word] ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
b16e3e2cc0d11fee303d0c099065faad2ac767bd | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/wtforms/ext/django/templatetags/wtforms.py | 33a60e3feffb231cb81bf5a196b76d008f86ba12 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,878 | py | """
Template tags for easy WTForms access in Django templates.
"""
from __future__ import unicode_literals
import re
from django import template
from django.conf import settings
from django.template import Variable
from ....compat import iteritems
register = template.Library()
class FormFieldNode(template.Node):
... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
6d306b1850726a9a38b7a78a8b1bdffe4758ef5c | b6dd7ffc68957f381ae27b9e2a324f555793f238 | /part-1-basics/ch_10/write_message.py | ac1958c6899a46aaa6a517519f733af594560396 | [] | no_license | lopezjronald/Python-Crash-Course | 0a1100a1888238053f4865f8987cbc023d159d38 | b6add3fc70b0d09b4b5dab9b06a02be2ae94b9da | refs/heads/master | 2022-12-26T21:31:37.286430 | 2020-09-30T04:12:22 | 2020-09-30T04:12:22 | 298,722,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | filename = 'guest.txt'
# with open(filename, 'w') as file_object:
# file_object.write("Guest List\n")
# with open(filename, 'a') as file_object:
# response = True
# while response:
# file_object.write(input("Please enter the name of your guest: "))
# file_object.write('\n')
# conti... | [
"lopez.j.ronald@gmail.com"
] | lopez.j.ronald@gmail.com |
87baa53650db2e62d3ac7b05f529fe8fc7792281 | ec8fef96af2a6b6610d298637f05bcdfe67cba2b | /long_range_compare/multicut_solvers.py | 74311cc71aac426c617f2c912f4507dab3e459ec | [] | no_license | abailoni/longRangeAgglo | 8b98aca75b17d177cb5e408460f95ff20f411aeb | 260b452e106125722ae3824755584ce7bfd5b81c | refs/heads/master | 2021-06-25T14:14:57.150233 | 2020-11-06T11:14:52 | 2020-11-06T11:14:52 | 150,707,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | import time
import numpy as np
import sys
# -------------------
# MULTICUT SOLVERS:
# -------------------
def solve_multicut(graph, edge_costs, p=None, solver_type="exact_solver",
proposal_generator_type='WS',
fusion_moves_kwargs=None,
proposal_gener_WS_kwargs=N... | [
"bailoni.alberto@gmail.com"
] | bailoni.alberto@gmail.com |
d07b700b026672f3fe65d2438f6c08a22556f2df | 34474048ec5c4850623cf0fea993b43de76fada4 | /Tests/unittest/code_gen/tac_o1/local_chars.tac | e00797894280d102fd4d8b3938dc5cdb5c77ad11 | [] | no_license | imsure/C-- | 69a80e152936e31b14319ab16c2317d2cacc9165 | 9991e7135d6ebc8f6f08f46f37b82bfe353ec17f | refs/heads/master | 2021-01-13T02:04:07.295401 | 2015-05-01T01:26:07 | 2015-05-01T01:26:07 | 30,732,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | tac | main:
Enter main 16
x = 'A'
y = 'B'
z = 'C'
Param x
Call print_int 1
_tstr0 = "\n"
Param _tstr0
Call print_string 1
Param y
Call print_int 1
_tstr1 = "\n"
Param _tstr1
Call print_string 1
Param z
Call print_int 1
_tstr2 = "\n"
Param _tstr2
Call print_string 1
Return
| [
"imsure95@gmail.com"
] | imsure95@gmail.com |
1f9a65ac787ca5726e2ee5f3e366eecd9624af55 | 3eb22fd5a85676d928cd8b3cfbd69f9c9f70429a | /torch/fx/experimental/accelerator_partitioner.py | c16ba8c097957043b65e57185fdee04c86c3bd01 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | SanBingYouYong/pytorch | b7f03e3c8dbb5e66b6a7218f7d81d893f5cfa8f6 | 469f0e42d6e2b3cd8c78b224b97d45be2dc7d0ee | refs/heads/master | 2023-05-30T20:53:59.389479 | 2021-06-16T01:18:33 | 2021-06-16T01:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,635 | py | import operator
from typing import Dict, List, Set, NamedTuple, Tuple
import torch
from torch.fx.experimental.graph_manipulation import get_size_of_all_nodes
from torch.fx.experimental.partitioner_utils import (
Partition,
Device,
PartitionerConfig,
get_partition_to_latency_mapping,
get_latency_of_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7f91b5fa338e5d6f010bd2a91a2b4428dc2e61f6 | c3db4c42360c47471635a97568bfc9c21bc14c06 | /pdfmerge/migrations/0002_auto_20190616_1800.py | 8708c2ce97d9ded4162bf6eb11e98c10d8063689 | [
"MIT"
] | permissive | rupin/pdfmerger | 3ede9aa9f1f374eba9b1ea2c33b6920403a8f4ad | fee19523e88362d215f1a29cdab0d140f4c9385c | refs/heads/master | 2020-04-07T20:37:56.821730 | 2019-07-18T16:58:01 | 2019-07-18T16:58:01 | 158,696,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Generated by Django 2.1.3 on 2019-06-16 12:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pdfmerge', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"rupin.chheda@gmail.com"
] | rupin.chheda@gmail.com |
3d6e519d8173a542b6493ac848758d22a09e11a6 | c513008cacf5592e645e7da3652d90d12a11a988 | /program/niuke-python/Sprial_2.py | 3a59db5855032d2ff2e365c91cdbded357e65f20 | [] | no_license | PiKaChu-R/code-learn | f17cb5ad95d4e8b698320d23e472eb1687576bdc | b94814ac3c72da4c840758569005b7ac6589586a | refs/heads/master | 2020-07-01T02:42:40.235753 | 2019-09-17T13:06:50 | 2019-09-17T13:06:50 | 201,021,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : Sprial_2.py
@Time : 2019/04/22 17:09:47
@Author : R.
@Version : 2.0
@Contact : 827710637@qq.com
@Desc : None
'''
'''
Sprial.py:可实现方法
'''
# here put the import lib
import itertools
def spiral(init):
stat... | [
"827710637@qq.com"
] | 827710637@qq.com |
672a44ccb8cf352f213782f10b1bd23f6a7814e5 | c2e1b17001357f2c13f6b8287e2b6ee0956c955b | /sweetpea/metrics.py | 18f7356dec88fa61c916c2db35377da7329030b3 | [
"MIT"
] | permissive | musslick/sweetpea-py | e0c9fec35c571fbf846808cbdeec58f68c405d4c | b0d9769025022936d57d71a501c9ab5f51b4a4ef | refs/heads/master | 2023-03-21T01:50:51.045650 | 2021-03-24T19:37:18 | 2021-03-24T19:37:18 | 293,494,087 | 1 | 0 | null | 2020-09-07T10:20:12 | 2020-09-07T10:20:12 | null | UTF-8 | Python | false | false | 1,005 | py | import operator as op
from functools import reduce
from math import factorial
from typing import Dict
from sweetpea.blocks import Block
from sweetpea.constraints import ExactlyKInARow, AtMostKInARow
from sweetpea import __generate_cnf
"""
Given a block, this function will collect various metrics pertaining to the b... | [
"drautb@gmail.com"
] | drautb@gmail.com |
61e3b909ab1ca70f4077a1f193cd2795edb13b58 | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/pandas/tests/indexing/multiindex/test_slice.py | 4bb71a3f58da28d68cb9bb93aa526aeaf087d7eb | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,866 | py | import numpy as np
import pandas as pd
import pandas._testing as tm
import pytest
from pandas import DataFrame, Index, MultiIndex, Series, Timestamp
from pandas.core.indexing import _non_reducing_slice
from pandas.errors import UnsortedIndexError
from pandas.tests.indexing.common import _mklbl
class TestMultiIndexSli... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
1ec71b82893c3f64ed495e2bf6673385d2f01c5a | c7d91529db199322e39e54fe4051a75704ea843e | /chaper01_list/t1.12.py | 52c5131518690d49becba7d34818301aad263a2f | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | #-*- coding=utf-8 -*-
'''
给定一个有序链表,其中每个节点也表示一个有序链表,
实现flatten()函数,该函数将联保扁平化成一个单链表,扁平化后也是有序的链表
'''
class LNode:
def __init__(self,x,right=None,down=None):
self._data=x
self.right=right
self.down=down
class LList:
def __init__(self,data=[]):
self.head=None
if data:
... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
97b3a57cfd6020fc40c236296004864bb838d3b5 | a00f703ac6561ac99066c7220075dd4a420bb3ff | /goiteens/models/post_manager.py | 34947ba95b09a3a68bd37065db233d762cdb45c5 | [] | no_license | volodymyrhusak/goiteens_docker | 9c3e56091218f3e7633dc5d94816959254f5c8ca | 618722fce82e85fe13f8c60ee76216fbf13338a7 | refs/heads/master | 2022-12-22T02:01:43.589833 | 2018-03-14T20:55:26 | 2018-03-14T20:55:26 | 125,272,517 | 0 | 0 | null | 2022-11-04T19:17:52 | 2018-03-14T20:55:58 | Python | UTF-8 | Python | false | false | 1,172 | py | from models.model import PostModel ,UserModel ,CommentsModel
from models.base_manager import SNBaseManager
from models.user_manager import UserManager
class PostManager(SNBaseManager):
def __init__(self):
class_model = PostModel
super(PostManager, self).__init__(class_model)
def get_posts(... | [
"vovatrap@gmail.com"
] | vovatrap@gmail.com |
b6cf62297f6f5a18d8098fd663d50ceed6d2fb6a | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/mnurolcay/2009/network/chat/gyachi/actions.py | 27982a32850ab05a787bda82f499cce34b776942 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
32de413aeb5cf0e0c6a5e8ba621fb4d62f92ef03 | e872e1136887cd6753ae292939e4656130c8f7d9 | /api/urls.py | f68962bb645e1c84bfe889e90658576f6e1b915b | [
"MIT"
] | permissive | florimondmanca/personal-api | 92e9d3ba8e3b16466ba54f5e9ea0493030e9cf95 | 6300f965d3f51d1bf5f10cf1eb15d673bd627631 | refs/heads/master | 2020-03-22T14:48:06.087822 | 2019-11-16T15:31:05 | 2019-11-16T15:31:05 | 140,206,398 | 4 | 1 | MIT | 2019-10-21T19:24:44 | 2018-07-08T22:16:47 | Python | UTF-8 | Python | false | false | 423 | py | """API URLs."""
from django.urls import path
from rest_framework.routers import DefaultRouter
import blog.views
from .views import obtain_auth_token
# Enable view names as 'api:...'
app_name = "api"
router = DefaultRouter()
# Blog endpoints
router.register("posts", blog.views.PostViewSet)
router.register("popular-... | [
"florimond.manca@gmail.com"
] | florimond.manca@gmail.com |
641cf3b122ff8250505462e1748406e61cd668ae | cd052f960846ea33e22abdded3106fb492f16c31 | /爬虫项目/spider/spiders/pdd_scroll_activity_v1.py | d403d0e6762fc4b10a4003e7d587fa88ba3abacb | [] | no_license | byst4nder/his_spider | 2d96457b70894c36506e8061d8a3201ac337a5d0 | a51e31acff41292e568ac22b0e213e6cb48218fa | refs/heads/master | 2020-07-21T12:06:28.952083 | 2019-09-06T14:25:58 | 2019-09-06T14:25:58 | 206,857,595 | 1 | 0 | null | 2019-09-06T19:04:02 | 2019-09-06T19:04:02 | null | UTF-8 | Python | false | false | 13,470 | py | # -*- coding: utf-8 -*-
# 首页滚动栏活动信息
import logging
import os
import scrapy
import json, time, sys, random, urllib, pyssdb, re
from spider.items import CategoryItem
from urllib import parse as urlparse
##import mq.mq as mq
##import ssdb.ssdbapi
class PddScrollActivityNewSpider(scrapy.Spider):
name... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
0071f6d25357b403c468cee9f14e317f1172b23f | a0488ed86f297f5f18864bf3f317dbed48b3b00d | /setup.py | 1dafa036d3e90c0bcceec24674af2c2720c35ab2 | [
"MIT"
] | permissive | DamianArado/moya-techblog | 7aefeea5bb74fa410e7cf896a83c0af0f4b0d25c | 4f7d606b22773db40850b742945e83e328c63bb7 | refs/heads/master | 2021-12-22T02:53:40.535675 | 2017-10-09T14:07:59 | 2017-10-09T14:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from setuptools import setuptools
VERSION = "0.1.0"
setup(
name='techblog',
version=VERSION,
description="Blog for Coders and Photographers",
zip_safe=False,
license="MIT",
author="Will McGugan",
author_email="willmcgugan@gmail.com",
url="https://github.com/moyaproject/moya-techblog",
... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
01fa6bacbb73a2d447e30cf4b8e4920c7f051557 | 50a6f90c46ee83e667de08be9c74acbaa792dbc5 | /python/timeseries.py | 70d73e0ca869e4e62d52871ce0b2a56e246504b9 | [
"MIT"
] | permissive | cpausmit/Kraken | e8f51a46e5d181e855bb9d2276b66c67e5842888 | e79a19f6a4570e10ae52e543a5af9b2a3414c965 | refs/heads/master | 2023-08-16T21:36:54.426014 | 2023-08-15T14:11:08 | 2023-08-15T14:11:08 | 75,231,636 | 0 | 2 | MIT | 2018-02-08T14:25:53 | 2016-11-30T22:09:47 | Python | UTF-8 | Python | false | false | 9,050 | py | import os
import datetime,time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mlp
from optparse import OptionParser
import jsum
BASE = "%s/moni"%(os.getenv('KRAKEN_WORK'))
EXT = "moni"
NOW = datetime.datetime.now().strftime("%m/%d/%y, %H:%M")
class Timeseries:
"Time series of job summari... | [
"paus@mit.edu"
] | paus@mit.edu |
1161c88b6f97450eb92ecddc96a9913d4b4cdca6 | 6609c26b4ed72c156104ce282c3cf88c6aac59f6 | /chapter09/example02.py | 65652c91aa68ad1a2e42702ecbcabdda16ed64fc | [
"MIT"
] | permissive | yordanivh/intro_to_cs_w_python | 4ab9dbbc2963b285b22cacb6648d1300fded18ce | eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a | refs/heads/master | 2020-09-06T12:25:23.362118 | 2020-02-14T14:07:07 | 2020-02-14T14:07:07 | 220,423,698 | 0 | 0 | MIT | 2020-02-14T14:07:08 | 2019-11-08T08:41:25 | Python | UTF-8 | Python | false | false | 179 | py | #variable holding the last value of the loop
speed = 2
velocities = [0.0, 9.81, 19.62, 29.43]
for speed in velocities:
print('Metric',speed, 'm/sec')
print('Final:', speed)
| [
"yordan@hashicorp.com"
] | yordan@hashicorp.com |
8d506e901341ca9f597b8e0d69a411d5cffd3adc | fdb950317e348baa10975a4b0fff55e4e39eb040 | /htdocs/plotting/auto/scripts100/p125.py | a7b5022c90e03c56ab1ff9b6ce200b8bfb8a8e1a | [
"MIT"
] | permissive | MediaPlex/iem | 5d4938f14d0c1b5c1ea4f46f8e05c84a88727fed | b6bcb1c0cedc8a75740b78f830742a765e21ab8b | refs/heads/main | 2023-04-26T10:40:50.786980 | 2021-05-30T11:43:28 | 2021-05-30T11:43:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,361 | py | """Maps of averages"""
import calendar
from collections import OrderedDict
import datetime
import numpy as np
from pandas.io.sql import read_sql
from pyiem.plot import MapPlot, get_cmap
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.exceptions import NoDataFound
import cartopy.crs as ccrs
PDICT = ... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
a193ad9d8cf0b7edb6fea29bdc621f469c12e0ba | 9653d2c933c95f6a7e956751814a38a935fabf14 | /source/code/menu_addFontGuideline.py | c211b008a1cac518efa7bbec3cc9d5b7c1ee2e90 | [
"MIT"
] | permissive | benkiel/guidetool | f98863c72920bbddc9fb355852a42c1e441f02ea | ee6f4fce8f472622ab20a3b09bf4594f5631be25 | refs/heads/main | 2023-06-18T21:39:24.269399 | 2021-07-15T00:41:33 | 2021-07-15T00:41:33 | 387,886,590 | 0 | 0 | MIT | 2021-07-20T18:54:21 | 2021-07-20T18:54:20 | null | UTF-8 | Python | false | false | 690 | py | import AppKit
from fontParts.world import CurrentGlyph
from mojo.UI import getDefault, CurrentGlyphWindow
from guideTool.guess import guessPositionAndAngleFromSelectedPoints
from guideTool.editor import GuidelineEditorController
def run():
glyph = CurrentGlyph()
if glyph is None:
return
font = glyp... | [
"tal@typesupply.com"
] | tal@typesupply.com |
55975b35d008f8b4dddbc1c5c47ae99ff5a4998d | 04e1c60ac7864a0bdcdd41026a2336b1ff699613 | /model/ll.py | f5098ecc5ce3319e31d675292eb699f307ed938b | [] | no_license | jianzhnie/RetinaNet_Pytorch | 00ec318d2e57c6b646f193e4d3a066f9891762b3 | 03679766847757f28bb9410c31ddaf99adf524c8 | refs/heads/master | 2020-09-22T00:09:18.617565 | 2019-11-30T08:27:36 | 2019-11-30T08:27:36 | 224,981,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py |
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class FocalLoss(nn.Module):
def __init__(self, num_classes):
super(FocalLoss, self).__init__()
self.num_classes = num_classes
def _one_hot_embeding(sel... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
f0ff4f0567586c4dc9dd54b5497b4819f77b2378 | 855416c669f765e4cd0f5a749e82c112641a9e11 | /Interest.blog-1.1/utils/public.py | 9cdb4342017ac3c51968c900609d649d1726535b | [
"MIT"
] | permissive | chenzhenpin/my_flask | a2f63422921d4b73c25a8e093ad09e6a48f8b568 | 0c101b7a1aa01283a0b8e3ef9b7555750ea03ecb | refs/heads/master | 2022-11-28T20:16:35.854225 | 2018-11-27T16:04:29 | 2018-11-27T16:04:29 | 159,362,205 | 0 | 0 | null | 2022-11-22T01:37:36 | 2018-11-27T16:02:52 | CSS | UTF-8 | Python | false | false | 5,254 | py | # -*- coding:utf8 -*-
import requests
import hashlib
import datetime
import random
import upyun
from uuid import uuid4
from log import Syslog
from config import SSO, MYSQL, PLUGINS
from torndb import Connection
from flask import g
#Something public variable
md5 = lambda pwd:hashlib.md5(pwd).hexdigest()
tod... | [
"1595347682@qq.com"
] | 1595347682@qq.com |
2a7d09228483b3b7c912600fea60bd9f300653f9 | 6b10d7a745b70d3b8533ea91b7bf1052e43b7d70 | /Week 4/Admin_page/main/migrations/0002_auto_20180930_2229.py | 9e5cf7c3c18d3c670ba02c13dfc5ff2f2fa3db2a | [] | no_license | Ablay09/BFDjango | 9701f6b1d36d54e6a2b511c57374e47ac0048d0e | c41423f5e86bad107769f518eeca2bfefd524919 | refs/heads/master | 2020-03-27T21:33:55.433951 | 2018-10-12T20:14:12 | 2018-10-12T20:14:12 | 147,101,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Generated by Django 2.1.1 on 2018-09-30 16:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='task',
name='created_date',
... | [
"ablay.yedilbayev@gmail.com"
] | ablay.yedilbayev@gmail.com |
1ba7ed3f3e6972ac5d2d780b49ba2a2b641a4ba6 | d89290fd2ecc166287e065784ae290a516ca2cef | /archives/convert_framerates.py | 83c83ead40072e2feef33d6b123b8c9ad4acad3f | [
"MIT"
] | permissive | rec/bbcprc | adc85ca3fd7a7b303c83323c2bdf63d44654112f | d4f4fee5f5c0beaf9c23af6e1655dbb49f3912e3 | refs/heads/main | 2023-02-08T20:18:38.763943 | 2023-01-30T12:47:21 | 2023-01-30T12:51:38 | 130,397,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from . import audio_io
from . import constants
from . import files
from scipy import signal
import json
import numpy as np
import os
ERROR = 'fp.getframerate() != constants.FRAME_RATE: 48000'
def get_framerate_error_files():
for f in sorted(files.with_suffix(constants.METADATA_DIR, '.json')):
if json.loa... | [
"tom@swirly.com"
] | tom@swirly.com |
c07b75d16c6a9d140e590d268b51632f6b7f93bc | c8e44c50bcc77c6ad5d95516dcec8dada7c284bd | /gidgethub/abc.py | 444cf02043c0df46f44a1acc14c6f691ffc35f44 | [
"Apache-2.0"
] | permissive | Lukasa/gidgethub | 495510e276cd34f7b9c37431f3b3b011d02b0795 | 6b3dc032f1fcdf0fbf23dfb061f11588798c1e7e | refs/heads/master | 2021-01-18T16:04:54.012847 | 2017-03-08T00:51:29 | 2017-03-08T00:51:29 | 84,348,121 | 0 | 0 | null | 2017-03-08T17:31:09 | 2017-03-08T17:31:09 | null | UTF-8 | Python | false | false | 4,473 | py | """Provide an abstract base class for easier requests."""
import abc
import datetime
import json
from typing import Any, AsyncIterable, Dict, Mapping, Optional, Tuple
from . import sansio
class GitHubAPI(abc.ABC):
"""Provide an idiomatic API for making calls to GitHub's API."""
def __init__(self, requester... | [
"brett@python.org"
] | brett@python.org |
56b4116fe0ba8840df5f463b6306c8fd733d774a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02804/s286662068.py | 0f0965086da8245027d2dedeb3044d4203c93284 | [] | 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 | 622 | py |
n, k = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
# prepare combs upto 10000
mod = 10**9 + 7
facts = [1] * 100001
for i in range(0, 100000):
facts[i+1] = facts[i] * (i + 1) % mod
ifacts = [1] * 100001
ifacts[100000] = pow(facts[100000], mod - 2, mod)
for i in range(100000, 0, -1):
ifac... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
63508df4d0df451b9d0818de91691ffcd18a74bb | f5a53f0f2770e4d7b3fdace83486452ddcc996e1 | /env3/lib/python3.6/site-packages/django_rq/workers.py | b6f23d91a3623ea4116dcd4691f19e56d13e2a11 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | fireman0865/PingBox | 35e8fc9966b51320d571b63967e352a134022128 | 0f00eaf88b88e9441fffd5173a1501e56c13db03 | refs/heads/master | 2023-01-20T07:55:59.433046 | 2020-03-15T13:36:31 | 2020-03-15T13:36:31 | 247,466,832 | 1 | 0 | Apache-2.0 | 2022-12-26T21:30:32 | 2020-03-15T12:59:16 | Python | UTF-8 | Python | false | false | 1,796 | py | from rq import Worker
from rq.utils import import_attribute
from django.conf import settings
from .jobs import get_job_class
from .queues import get_queues
def get_exception_handlers():
"""
Custom exception handlers could be defined in settings.py:
RQ = {
'EXCEPTION_HANDLERS': ['path.to.handler'... | [
"fireman0865@gmail.com"
] | fireman0865@gmail.com |
67790833485b01272a5d8f7ba10d549f6bc187e6 | b7b8cac59c24c28efb3002f639865121d3b1f3e1 | /hyperion/grid/yt3_wrappers.py | fe04e9f80b875a00a54282dfaeb5b72899b325bd | [
"BSD-2-Clause"
] | permissive | koepferl/hyperion | 51a461f3cde30faa6dc82f63803b659a831273d1 | d43e1d06889e8b649038b85ef6721c64dd269a4e | refs/heads/master | 2020-04-01T19:11:18.373471 | 2015-01-14T13:31:36 | 2015-03-30T15:38:08 | 34,328,089 | 0 | 0 | null | 2015-04-21T13:17:41 | 2015-04-21T13:17:40 | null | UTF-8 | Python | false | false | 6,366 | py | from __future__ import print_function, division
import numpy as np
def almost_equal(a, b):
return a / b < 1. + 1.e-4 and b / a < 1. + 1.e-4
def amr_grid_to_yt_stream(levels, dust_id=0):
# Try and guess the refinement ratio - if it is not constant, then
# we can't use yt
if len(levels) == 0 or len... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
67bd82c6736e3ac0503aaf31946a87f83b6a9bac | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnschedul.py | 2bda54c807c76dff011ebad9091ac3f000811ebe | [] | 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 | 219 | py | ii = [('CoolWHM2.py', 1), ('GodwWSL2.py', 1), ('AubePRP2.py', 1), ('PeckJNG.py', 2), ('LyttELD.py', 1), ('WadeJEB.py', 3), ('BachARE.py', 4), ('MereHHB3.py', 3), ('MereHHB.py', 2), ('ThomGLG.py', 1), ('MereHHB2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
5db77f5c0ccc08e6f16c479642688f934e405b8b | 6757339759559cc741178ed4236b449ff27df221 | /chrZ_make_seq_for_ldhelmet.py | 5833cc08ecd26ce0740ee512fb400e2178dbabf0 | [] | no_license | anandksrao/postdoc | 18095f675cc5d67bc6e6a1b70bdc7dca29ac880d | a09e2d810bc4b562dc0e6de2999c063f5bd59cf8 | refs/heads/master | 2020-04-22T23:28:03.482966 | 2015-09-08T16:40:24 | 2015-09-08T16:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,695 | py | import re
import glob
import sys
import subprocess
import os
import copy
import argparse
import gzip
import time
def get_vcf_var(vcf_file, min_allele):
site_freq = {}
vcf_f = gzip.open(vcf_file, 'r')
for l in vcf_f:
if not re.search('^#', l):
d =... | [
"sonal.singhal1@gmail.com"
] | sonal.singhal1@gmail.com |
40bfd6b2d53f43ebd7039a79a1d0df64f193dd3e | f96636810509786bd7afdfb1580fd276b930ade1 | /client/sendDiagPopup.py | cbc672534de873b006ab10258fe7a3a4006185e6 | [] | no_license | Bharathkumar-nb/SCSI-simulation | 0b0d47fa2bce028e6214bf3e348c4be28cfaa118 | c94041043793deaa1ac4a1298eca9685952ff1eb | refs/heads/master | 2021-01-20T10:29:15.966464 | 2013-05-03T07:39:38 | 2013-05-03T07:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'send_diagnostic.ui'
#
# Created: Sat Apr 27 09:51:24 2013
# by: PyQt4 UI code generator 4.9.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except... | [
"bharathkmr.nb@gmail.com"
] | bharathkmr.nb@gmail.com |
3a23b26701ccfc73af6fef97637eab76dab9b738 | 0a43afbcba776ed8ada0fef5425b1507aa4d51c1 | /smartbook/smartbook/web/migrations/0016_auto__del_ownercompanyname__add_ownercompany.py | b443dac4b4ee2cee94af23d6f41f3b7c34b366fb | [] | no_license | geethusuresh/inventory-systems | c76d6d10429f483499594df8c8f34d780531f18c | fd4211d29042776fa47da92162cbbbe8220090cd | refs/heads/master | 2021-01-02T08:51:31.278578 | 2014-09-28T07:35:54 | 2014-09-28T07:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,583 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'OwnerCompanyName'
db.delete_table(u'web_ownercompanyname')
# Adding model 'OwnerC... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
8b92d801b14bce7463cefb8954677a9b0694325a | 415920616d5efccee4667126c4bb29f91f1d5321 | /blood/donor/urls.py | f4eb33826ecb67e2f4cedf717f45045d210213b2 | [] | no_license | ManogaranArumugam/blood | 6c779b3bfe308a95d52cb730be65b25cb2c3eda6 | bb6ef86bfeaf67ed70eafa97dcb6b6c1da0c9f4f | refs/heads/master | 2020-03-25T22:43:31.004539 | 2018-08-09T12:43:50 | 2018-08-09T12:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.conf.urls import url
from blood.donor.views import DonorRegistrationView
urlpatterns = [
url(r'^$', DonorRegistrationView.as_view(), name='home'),
] | [
"palashpatidar51@gmail.com"
] | palashpatidar51@gmail.com |
6c340cf04b054bb75cdfb63b9fbdf78c10395714 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/pal_statistics/catkin_generated/generate_cached_setup.py | 91044b831264767383d53fe4fda54ceccbaa6122 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
55565979bd9e9ceb8e3a4424587b82a4a4a0688a | b94ab99f9c1f8bbb99afd23e1bfcd2332060b4bd | /library/migrations/0012_auto_20170805_0851.py | 050383e317e1d09ac7e3c45f3c1ea4e50db4dfca | [] | no_license | georgecai904/bookshelf | e54ccae00d4ee48e91ca1564a425ba4586b52d93 | 0002207dc8ca586ce1127d3ea98bb53102d043df | refs/heads/master | 2021-01-02T22:52:26.046535 | 2017-08-05T15:32:13 | 2017-08-05T15:32:13 | 99,409,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-05 08:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('library', '0011_auto_20170805_0850'),
]
operations = [
migrations.AlterFiel... | [
"georgemail608@gmail.com"
] | georgemail608@gmail.com |
542650ec2698610417fd1074ecee715e3a7ecf4e | 55d6de252e61c4b60688ebd8b1f637807acc1e7c | /sale_report/wizard/aged_customer_list.py | 6bee3ea9ef1268815749ad4cfb0996f5175cc12b | [] | no_license | mosadiqit/eerna_erp_uslbd | b707a1d49a4fce7c1543b63e0120e8f9b77b26ce | 73e3994a9e32df7809d244eb6592513162ab7853 | refs/heads/main | 2023-06-30T14:53:04.837197 | 2021-08-04T11:30:46 | 2021-08-04T11:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,133 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DATE_FORMAT
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DATETIME_FORMAT, BytesIO, xlsxwriter, base64
class AgedCustomerReportWizard(models.TransientModel):
_name = 'aged.customer.r... | [
"ibrahimalazhar264@gmail.com"
] | ibrahimalazhar264@gmail.com |
4c0ac46f1d84771dc353dc57195fde968e23467e | 630fe47bb5aa5e49b45ab101d87c2dd2c53d180f | /Bubble_soft_json.py | 4670c4958ea3d09c64e4879c8e4c5913ea0222f9 | [] | no_license | shrivastava-himanshu/Leetcode_practice | 467497a58d82ff3ae2569d5e610dc6f27a1f31d6 | 4c59799947c2b17bfd22ca2a08707ef85e84a913 | refs/heads/main | 2023-06-12T13:14:45.381839 | 2021-07-05T04:09:05 | 2021-07-05T04:09:05 | 367,546,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | def bubble_sort_json(elements,key='name'):
size = len(elements)
for i in range(size-1):
swapped = False
for j in range(size-1-i):
a = elements[j][key]
b = elements[j+1][key]
if a > b:
tmp = elements[j]
elements[j] = elements[j+... | [
"Himanshu.Shrivastava@vce.com"
] | Himanshu.Shrivastava@vce.com |
5b52140b650b1eaf1fa06ca3369752b6bba03eb9 | ef786be9b7c7145d63797cb8c351780059996873 | /watchlist_app/migrations/0001_initial.py | 76d570588a7802ab729017622b43b470dcd0ec1d | [] | no_license | nileshnagarwal/djangorest_course_sarda | 31c27ab625139f632d1121296c981c108301de70 | 933d7b5330d7fda1b17c367d30cb903543eebb02 | refs/heads/main | 2023-07-17T11:49:43.562982 | 2021-08-27T07:19:57 | 2021-08-27T07:19:57 | 394,706,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # Generated by Django 3.2.6 on 2021-08-10 07:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.BigAutoField... | [
"eternalshenron@gmail.com"
] | eternalshenron@gmail.com |
8aa8349d9f1213a364dd5a5713676193303f913c | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_disease_action_a.py | 20a75b8ac4bc4329cb51b260ec5349043fb09d4a | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 463 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/chemistry/shared_medpack_disease_action_a.iff"
result.attr... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
efaeae158142d783d0c4d3c5f624d9fbd08615b8 | 6f151b64427d47571ff8d02a24a98c9cbd8c68a5 | /[leetcode-08]strings-to-integer-atoi.py | 17245f772a1bae021abee1832c545d882e0b4cb2 | [
"MIT"
] | permissive | Menah3m/leetcode-Python | 50c0a0e518274cfa9a5ce939c37c075ce226dd04 | 212cae16ae868e5f031d3aeb8f614c539c1a27f1 | refs/heads/master | 2021-04-02T03:24:35.855185 | 2020-12-15T09:39:03 | 2020-12-15T09:39:03 | 248,238,533 | 0 | 0 | null | 2020-12-15T09:39:05 | 2020-03-18T13:25:55 | Python | UTF-8 | Python | false | false | 2,470 | py | """
请你来实现一个 atoi 函数,使其能将字符串转换成整数。
首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。接下来的转化规则如下:
如果第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字字符组合起来,形成一个有符号整数。
假如第一个非空字符是数字,则直接将其与之后连续的数字字符组合起来,形成一个整数。
该字符串在有效的整数部分之后也可能会存在多余的字符,那么这些字符可以被忽略,它们对函数不应该造成影响。
注意:假如该字符串中的第一个非空格字符不是一个有效整数字符、字符串为空或字符串仅包含空白字符时,则你的函数不需要进行转换,即无法进行有效转换。
在任何情况下,若函数不能进... | [
"568200065@qq.com"
] | 568200065@qq.com |
d046514180a9e37274ac16c00eabafba5f77c479 | 9a9fb43d866dc8fd829211d2b47328ef1f5ed428 | /PI_ROS_WORKSPACES/ros_catkin_ws/build_isolated/rosboost_cfg/catkin_generated/pkg.develspace.context.pc.py | 72b73d066877678ca5a5c6ee1ed6b3c0bdd104c5 | [] | no_license | droter/auto_mow | 326df42a54676079cac61fe63c40d5d04beb049b | 3742cb2ef78bc06d2771ac4c679e5110909774f8 | refs/heads/master | 2022-05-19T20:18:33.409777 | 2020-04-29T00:42:24 | 2020-04-29T00:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosboost_cfg"
PROJECT_SPACE_DIR = "/h... | [
"joshuatygert@gmail.com"
] | joshuatygert@gmail.com |
26f1f046fbcc3e826fb8fa1f586db82a5eadc742 | aea02d626c10396c2220d5ee642cb9c279e5bc37 | /migrations/versions/34c8e6e836da_email_column.py | d039f076f6691862d68521cdf0df979072f894e7 | [
"MIT"
] | permissive | Derrick-Nyongesa/Blog | 5fb176575865a75a02658bc8622fed3b9e05c919 | aff6b97aac958e6f626c934c57fffba1bb1f845d | refs/heads/main | 2023-04-14T12:21:20.890964 | 2021-04-26T07:07:55 | 2021-04-26T07:07:55 | 360,806,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """email column
Revision ID: 34c8e6e836da
Revises: 4fb50df0a785
Create Date: 2021-04-23 14:54:17.658067
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '34c8e6e836da'
down_revision = '4fb50df0a785'
branch_labels = None
depends_on = None
def upgrade():
# #... | [
"nyongesaderrick@gmail.com"
] | nyongesaderrick@gmail.com |
bd3b3d45311a3acf29007751bcf7d26209d85391 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000492.py | 7a98b03c8016f65306e467ddfb470f008a62508e | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,532 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
2347536eb37a719bc87f0edc137313e5e7eacfe6 | 5b9f9b4ea1494943e6f7f842df55909599ed1304 | /python/onshape_client/oas/models/security_scheme.py | 90cf4db87b065dc49b92d77bf05e8d217d9c5b3c | [] | no_license | jenniferyoung02/onshape-clients | f50534f033428027515b7fc0b801b1caab4d0aec | 8ee31a17d7af32f105b851e45f69fd4a3006e1ba | refs/heads/master | 2020-09-07T06:44:37.682545 | 2019-10-08T18:52:06 | 2019-10-08T18:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,638 | py | # coding: utf-8
"""
Onshape REST API
The Onshape REST API consumed by all clients. # noqa: E501
The version of the OpenAPI document: 1.104
Contact: api-support@onshape.zendesk.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Securit... | [
"ekeller@onshape.com"
] | ekeller@onshape.com |
843d08c826f8a29b84e9e209cbd7cf14df5aad5d | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /acmicpc/solved/2448_Draw_Stars/solution.py | bd9a9474145925faf28b5b29de95d694d48808eb | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import math
base = [' * ', ' * * ', '*****']
n = input()
def get_k(n):
return int(math.log(n/3., 2))
def concat1(a, b):
return [x[0]+' '+x[1] for x in zip(a, b)]
def concat2(a, b):
return [x[0]+x[1] for x in zip(a, b)]
def nth(i):
if i == 0:
return base
else:
child = nth(... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
d12b330c8a86dae7b2e3ff874faa4a0c84278ccd | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /hm/oop/Tool.py | bc86e8847c84a48bbaf2b70702747c4f2cdd6d05 | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | class Tool(object):
count = 0
def __init__(self,name):
self.name = name
Tool.count += 1
# self.count += 1
tool1= Tool('futou')
tool2= Tool('maoie')
tool3= Tool('fuzi')
Tool.count = 99
print(Tool.count)
| [
"it_hjl@163.com"
] | it_hjl@163.com |
a6223c3a60b16697d235aa1eeeb4a1c5dda89b26 | 5c254373f6725107931b68704436c2dbcd39d877 | /data_utils/FS_utils/eval_map.py | ff3f00e38f9b4ccfb4a4a595343df50faa23d6c3 | [
"MIT"
] | permissive | JunLi-Galios/unsup_temp_embed_alternating | 22330346094720ecba2e5af305febe586566b92f | 1b054fd82aadcfe1aa219be17beb77c89efd974e | refs/heads/master | 2023-03-21T04:06:16.044321 | 2021-03-20T06:06:06 | 2021-03-20T06:06:06 | 322,737,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | #!/usr/bin/env python
"""Eval level activity
"""
__author__ = 'Anna Kukleva'
__date__ = 'January 2019'
import os
from ute.utils.arg_pars import opt
import data_utils.FS_utils.update_argpars as fs_utils
fs_utils.update()
actions = ['add_dressing',
'add_oil',
'add_pepper',
'cut',
... | [
"kuklevaanna@gmail.com"
] | kuklevaanna@gmail.com |
07b1dc0344a5647316639af1cc3e0d015e5e107f | 7a5c9962ee40996a9f24f5493c715d5553052cf7 | /jobs/apps.py | 659d18b194f99c3b388bbaea0e799ca23b237f8c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | dymaxionlabs/satlomas-back | da6355d1fc90a2e9d4a7795b4751e3ebe043ffa6 | f4568f6535755fd4a2432ecc661a264872206c6c | refs/heads/master | 2023-07-17T17:07:43.037314 | 2021-08-28T15:54:21 | 2021-08-28T15:54:21 | 262,424,687 | 0 | 0 | null | 2020-05-08T20:42:49 | 2020-05-08T20:42:48 | null | UTF-8 | Python | false | false | 132 | py | from django.apps import AppConfig
class JobsConfig(AppConfig):
name = 'jobs'
def ready(self):
import jobs.signals | [
"munshkr@gmail.com"
] | munshkr@gmail.com |
78befbcc094a1c019b67d6b56a7b35cf4e3d6b6b | a89c739589d0ee29ff6fff1a1508a426dfe4489a | /basics/assert.py | b7872ff4b51952a23919213ac3ad863af939f0fd | [] | no_license | macabdul9/python-learning | 107e3533998e3f373b804d6b59152fc41938604b | f0d5e0e37cbed3d846684be80f0f92e5cbb9ceb5 | refs/heads/master | 2020-04-27T04:31:47.907486 | 2020-03-05T16:48:53 | 2020-03-05T16:48:53 | 174,057,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
@author : macab (macab@debian)
@file : assert
@created : Sunday Mar 17, 2019 00:28:58 IST
"""
'''
Python provides the assert statement to check if a given logical expression is true or false. Program execution proceeds
only if the expression is true and raises the AssertionError when it is false. The ... | [
"abdulwaheed1513@gmail.com"
] | abdulwaheed1513@gmail.com |
7a6c254cbc7e0b5d94437a6f0cb3061191327052 | 5942e3e75ef7dc22a67b04fb1f12e14658a2093d | /documentation_files/platform.py | d83912b2d5f5be349492150ecc6894802fff344d | [] | no_license | the-factory/kdevelop-python | 9e94d2a4d4906a31a4d2a8a08300766e02d41a59 | 1e91f2cb4c94d9455a2ee22fef13df680aeed1ab | refs/heads/master | 2021-01-18T08:57:16.707711 | 2012-04-09T22:37:47 | 2012-04-09T22:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,818 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
""":synopsis: Retrieves as much platform identifying data as possible.
"""
def machine():
"""
Returns the machine type, e.g. ``'i386'``. An empty string is returned if the
value cannot be determined.
"""
pass
def node():
"""
Returns the computer's network na... | [
"svenbrauch@googlemail.com"
] | svenbrauch@googlemail.com |
428bd78c26371e93841a86cf15ea344b9b336399 | 50d39f7a91047c7498714fd68958156320efdf5f | /cwr/grammar/record/writer_territory.py | f2dcc1c3454b7d7ebcad3fc23a15bd1c95df4167 | [
"MIT"
] | permissive | toddrimes/CWR-DataApi | a82784ec198e35ab311bf5576d31eefb9269939c | 4d9f504d9032cf1aa1bd86db6efbe26042c6a6ae | refs/heads/master | 2021-01-24T23:00:57.383927 | 2015-03-13T10:04:29 | 2015-03-13T10:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # -*- coding: utf-8 -*-
from data.accessor import CWRConfiguration
from cwr.grammar.field import table as field_table
from cwr.grammar.field import special as field_special
from cwr.grammar.field import record as field_record
from cwr.grammar.field import society as field_society
from cwr.grammar.field import writer_t... | [
"programming@wandrell.com"
] | programming@wandrell.com |
b4528282c5d0f3c4f595fde399e3016578457b11 | b2ff5ac2ef633e41ecec6ff7baae4b89254bf151 | /Hello_World/src/mainapp/profiles/migrations/0005_auto_20201015_1938.py | aa9304e6331f9e2da41aa37edffbcfac7c8524bf | [] | no_license | r3bunker/Python-Projects | 2bda2be348bc4e0aa530cadbf8c26a7f163bcd3f | e8742a9c5ed92424b5aeee0041e6e2267f26ccc6 | refs/heads/master | 2023-01-04T20:30:50.250655 | 2020-10-29T17:41:14 | 2020-10-29T17:41:14 | 300,012,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Generated by Django 3.1.2 on 2020-10-16 01:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0004_auto_20201015_1913'),
]
operations = [
migrations.AlterField(
model_name='profiles',
name='prefix',... | [
"r3bunker@gmail.com"
] | r3bunker@gmail.com |
c0e8d2a4dd57f7f8365f36b333ff42431805e131 | 6300fcf67d4fcb5387a9f0f7370a8ffe8f4097d9 | /AutoParts/Tests/account_auth/views/sign_out_test.py | 958b55a8fb6505816eee2d92d73bf3c17334b56b | [] | no_license | Borislav-source/Final-Project | e34ac1cbb71e3a32ed490361d3583c2e1e8bfbc9 | 501b258d103c2e1b8947451f4bdf750709d040fd | refs/heads/master | 2023-07-17T15:03:19.390774 | 2021-09-01T14:06:09 | 2021-09-01T14:06:09 | 393,977,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from django.urls import reverse
from Tests.base.tests import AutoPartsTestCase
class SignOutTest(AutoPartsTestCase):
def test_sign_out__if_user_is_logged_out(self):
self.client.force_login(self.user)
self.assertTrue(self.user)
self.client.logout()
self.assertTrue(self.user)
| [
"tsv.borislav@gmail.com"
] | tsv.borislav@gmail.com |
11db259082bfba48cb8bd0c27e64e3d77bc28f6a | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.py | 9a1260048babd250a0448eb1540cbf3fbb04e197 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 1,499 | py | # coding: utf-8
"""
openapi 3.0.3 sample spec
sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by: https://openapi-generator.tech
"""
from datetime import date, datetime # noqa: F401
import deci... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
ae132c35f9378954b35796886aca3491386db3b5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/5804612/snippet.py | 365ec99e3c6e1802b17ec70aaac6ebe7524850f5 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 4,333 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import curses
from math import floor
from datetime import datetime as date
from subprocess import Popen as popen
# Globals:
screen = curses.initscr()
last_width = 0
last_height = 0
alarm_hour = 0
alarm_minute = 0
alarm_state = False
alarm = None
glyph = {
'0': ["... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
288c2466e40aa160e37a43870d3d002aa2fb3ecd | 6fb37fee016346120d4c14c4343516532304055a | /src/genie/libs/parser/iosxr/tests/test_show_lag.py | c6fd6cb76e151730fba4cb6d7f539f3f7ed993be | [
"Apache-2.0"
] | permissive | devbollinger/genieparser | 011526ebbd747c6dcd767535ce4bd33167e15536 | ad5ce7ba8f5153d1aeb9cffcfc4dde0871f3401c | refs/heads/master | 2020-12-20T11:36:00.750128 | 2020-01-24T18:45:40 | 2020-01-24T18:45:40 | 236,061,155 | 0 | 0 | Apache-2.0 | 2020-01-24T18:38:43 | 2020-01-24T18:38:42 | null | UTF-8 | Python | false | false | 35,946 | py | #!/bin/env python
import unittest
from unittest.mock import Mock
from ats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError, SchemaMissingKeyError
from genie.libs.parser.iosxr.show_lag import ShowLacpSystemId, ShowBundle, ShowLacp
############################################... | [
"karmoham@cisco.com"
] | karmoham@cisco.com |
d3ca685b9c2136a3c1c581a042146b3f9b4be186 | 4a0eb422dea8b3b911d56d4eae54137753cdefb0 | /python-52-weeks/Device_classes/train_netmiko.py | aa215f6fdeb69e540b32f016fa3a73ddec8598dc | [] | no_license | aramidetosin/python-netmon | a52c85bf124c051ec4ffe9a252501520d0f7bb39 | de6f935bfcb8134e769eb2be81c8ebc0abd3df1d | refs/heads/master | 2023-03-27T17:01:56.080756 | 2021-03-28T12:57:45 | 2021-03-28T12:57:45 | 332,056,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | import re
from netmiko import Netmiko
junos = {
"hostname": "192.168.1.229",
"username": "admin",
"password": "juniper1",
"device_type": "juniper",
}
connection = Netmiko(
host=junos["hostname"],
username=junos["username"],
password=junos["password"],
device_type=junos["device_type"],
... | [
"aoluwatosin10@gmail.com"
] | aoluwatosin10@gmail.com |
ccad155c93d1dc3713bc931ca59362dda019cbe3 | aaf306b4117027bd66dfdbac80f2147a9b48a455 | /Day66-75/code/example01.py | b1fee7aa04cbe05762d013ada68b220f217fb53c | [] | no_license | xiangsxuan/Python-100-Days | 309da160fc4c85aa9699a0c522525e2b01e0421d | e86dece224b0a77103f6d6b734fecd9eef7dca97 | refs/heads/master | 2020-03-18T19:56:59.744032 | 2018-05-28T15:21:07 | 2018-05-28T15:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | from urllib.error import URLError
from urllib.request import urlopen
import re
import pymysql
import ssl
from pymysql import Error
def decode_page(page_bytes, charsets=('utf-8', )):
page_html = None
for charset in charsets:
try:
page_html = page_bytes.decode(charset)
break
... | [
"jackfrued@126.com"
] | jackfrued@126.com |
2dde9d6b6d7882fd2f8221971f5affeee6735fa2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03072/s635930653.py | 041f13523a4cc93f92b5e54f56ee442444872570 | [] | 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 | 178 | py | n = int(input())
h = list(map(int, input().split()))
max = h[0]
count = 0
for i in h:
if max <= i:
count += 1
max = i
else:
continue
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
87dec6ef073bd02fe7709d0c6b011cbfd0f6b878 | 7861798672463b239a3102b8407ec56c593c2811 | /setup.py | 0130f5685229a7217c8d3b52ceae52cde7687776 | [] | no_license | nag92/strokeRehabSystem | 33b38cb41de4a357e1a9c99cb30b5608d97932b7 | f51752bd355c91e162f94c26b4078e7d7bcee744 | refs/heads/master | 2020-03-31T14:25:06.853916 | 2018-05-02T15:35:50 | 2018-05-02T15:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['strokeRehabSystem'],
package_dir={'': 'src'})
setup(**setup_args) | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
0224791ecdacf52585dc82bcf696f6feda3eb560 | b0c02d7ca86c1ef84af18a8c701702e8bb212b64 | /robotcar/robot_demo.py | d835d77755ccbeb16aa91e9b243d69dbd81e23e3 | [] | no_license | flashypepo/myMicropython-Examples | 24fa2f372e68742abe0f74913df000dfe64a9e55 | b2b63df865b5ad471b351ca5f279135025859f5d | refs/heads/master | 2021-09-24T18:52:18.083444 | 2018-10-13T11:59:19 | 2018-10-13T11:59:19 | 98,223,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import machine, motor, bot, time
print('creating i2c and motors ...')
i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4))
motors = motor.DCMotors(i2c) #creates motors object
LEFT=0 #M0 - left motor
RIGHT=3 #M4 - right motor
print('creating robot ...')
robot = bot.Robot(motors, LEFT, RIGHT) # creates robot
dt =... | [
"peter@pepo.nl"
] | peter@pepo.nl |
6fa666ea6d1840544f96f471b1e3fa431e6625ce | 2b468b1d22ecc5668529255676a1d43936829074 | /codes/personal_backend/support/test/api/account/test_account_staff_api.py | 77c65d5ee97fc600c4f0bfb8569cff2aaa68c41e | [] | no_license | MaseraTiGo/4U | 5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c | f572830aa996cfe619fc4dd8279972a2f567c94c | refs/heads/master | 2023-07-26T09:44:21.014294 | 2023-07-13T03:43:34 | 2023-07-13T03:43:34 | 149,217,706 | 0 | 0 | null | 2020-06-05T20:38:16 | 2018-09-18T02:34:29 | Python | UTF-8 | Python | false | false | 1,720 | py | # coding=UTF-8
import json
from support.common.testcase.api_test_case import APITestCase
'''
class Add(APITestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_account_staff_add(self):
"""test account staff to add"""
flag = "user"
api = "account.st... | [
"344627181@qq.com"
] | 344627181@qq.com |
87b3c9e11b14cb7d689ba36d1587e35e28f58976 | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/skimage/draw/draw_nd.py | 03c268fb11faaef98beb8414071d9f7ed38a343a | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c5e7f1c5ad5f275def9df43f330f4af4782e674274fb765bbb93af0c05902092
size 3841
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
86ce704f77b7c265463560e188583cbaa2aac01e | f29d69eea45f4383db37b1b6876be4bcfd286312 | /user_portrait_0320/user_portrait/cron/network/cron_network.py | ed9c43bd9b965c0a28d58ca37f802ddade6ad69a | [] | no_license | xuzhiq/user_portrait_ending2 | 5ac9952cf275923677d6e2f575289236df4dde9b | f2978135ff672f58090e202e588f7321ed121477 | refs/heads/master | 2021-05-31T05:15:21.316687 | 2016-05-11T11:56:38 | 2016-05-11T11:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,804 | py | # -*- coding:utf-8 -*-
import tempfile
import sys
import json
import time
import tempfile
reload(sys)
sys.path.append('../../')
from spam.pagerank_for_portrait import pagerank
from time_utils import ts2datetime, datetime2ts, ts2date
from keywords_utils import get_task_information, identify_task_exist,\
compute_... | [
"lijiahongasdf@163.com"
] | lijiahongasdf@163.com |
220d3da93147ba464b5fd1a2eeefdba19a37c65f | 26552adb0d8889affd40e009d3c311e41a873e43 | /Python_Solutions/9095.py | 6b8aaf7f8f39b7b0b8e579984c319a8acee871ab | [] | no_license | Isaac-Lee/BOJ-Algorithm | 3b9b64aba9ab3b48d15133cbf5ad122822e441d0 | 27f0339195c48f416e672390758e85305203b71a | refs/heads/main | 2022-06-29T21:36:11.500158 | 2022-06-25T06:35:05 | 2022-06-25T06:35:05 | 203,349,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import sys
def make123(n):
if memo[n] > 0:
return memo[n]
if n == 1 or n == 0:
memo[n] = 1
return memo[n]
memo[n] += make123(n-1)
if n-3 >= 0:
memo[n] += make123(n-3)
if n-2 >= 0:
memo[n] += make123(n-2)
return memo[n]
if __name__ == "__main__":
... | [
"yy0221ss@gmail.com"
] | yy0221ss@gmail.com |
c015abc83aad9d4d4eb62342b203ad222667c74b | 24684138f7a74672e084511e2f0202680b318112 | /lib/nmdc_metaassembly/nmdc_metaassemblyImpl.py | e0e0904a89147ec217adef5203a3d73a74881dd3 | [
"MIT"
] | permissive | microbiomedata/nmdc_kbase_metaassembly | 531abc003bace8ead6334966f90a8e925bd583ca | 2cb091007e556933e90c7c342a3e800d931e15ca | refs/heads/master | 2023-03-16T06:16:24.445768 | 2021-03-05T16:56:48 | 2021-03-05T16:56:48 | 341,439,883 | 0 | 2 | MIT | 2021-02-24T18:53:34 | 2021-02-23T05:31:18 | Python | UTF-8 | Python | false | false | 2,579 | py | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import logging
import os
from installed_clients.KBaseReportClient import KBaseReport
from nmdc_metaassembly.assemble import nmdc_mg_assembly
#END_HEADER
class nmdc_metaassembly:
'''
Module Name:
nmdc_metaassembly
Module Description:
A KBase module: nmdc_met... | [
"scanon@lbl.gov"
] | scanon@lbl.gov |
b07717ae965c5aa2e55fdbcbf027e893ba95b680 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client/gui/scaleform/daapi/view/battlegas_attack.py | c45a4342116a35a23080122c5c705cc4d96ee7d0 | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/gas_attack.py
from gui.Scaleform.locale.FALLOUT import FALLOUT
from gui.battle_control import g_sessionProvider
from gui.shared.utils.plugins import IPlugin
from gui import makeHtmlString
from helpers import i18n
class GasAttackPlugin(IPlugin):
... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
c0604ecc3e5fec3aa2883092810bbfee31e16a8e | f50368f3165c182a0adc914dec56f0cc03d9fb5a | /visual_mpc/envs/sawyer_robot/vanilla_sawyer_env.py | dc1c25c0a1aabdcacfee00d56d4d3d2dbb6b5243 | [
"MIT"
] | permissive | anestisdotpy/visual_foresight | 16ea71f938458a35892c1f557903ed885810dda3 | 957df706b4c7a11b7a0c9ba2de15853df62cd4ed | refs/heads/master | 2020-06-22T05:59:10.578361 | 2019-07-18T20:23:51 | 2019-07-18T20:23:51 | 197,651,312 | 0 | 0 | null | 2019-07-18T20:17:26 | 2019-07-18T20:17:26 | null | UTF-8 | Python | false | false | 487 | py | from .base_sawyer_env import BaseSawyerEnv
import copy
class VanillaSawyerEnv(BaseSawyerEnv):
def __init__(self, env_params, _=None):
self._hyper = copy.deepcopy(env_params)
BaseSawyerEnv.__init__(self, env_params)
self._adim, self._sdim = self._base_adim, self._base_sdim
def _next_qp... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.