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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d33b2b4cab54b838414fd70c755f3bcd6fb1580f | 5d34d74965504c363dc294c1ba97a46393759995 | /channels/tech_weekly_radar/app.py | c5371872c92041105e68e3e47f6e22824e230e65 | [
"MIT"
] | permissive | Nalorokk/reddit2telegram | 7f898b7d17771e9de98c7f176a5a1d071f6d47d9 | 28bfc1271f40b219ee7a34e8338fa93f0d44cbd2 | refs/heads/master | 2020-03-18T08:29:33.946768 | 2018-05-23T04:25:52 | 2018-05-23T04:25:52 | 134,513,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | #encoding:utf-8
import csv
import importlib
import random
import datetime
import pymongo
import yaml
from utils import SupplyResult
subreddit = 'all'
t_channel = '@r_channels'
def get_active_period(r2t, channel_name):
min_cursor = r2t.stats.find({'channel' : channel_name.lower()}).sort([('ts', pymongo.ASCEND... | [
"git@fillll.ru"
] | git@fillll.ru |
71c30464092ca759bbb801e6282b2bc827f19be1 | ceb620c4be8b34f4aa08156226187db081fc3b55 | /loca_13/vat_retention/models/retention_vat.py | a78c159f4bcd7d8ea5616ae7b08ad7533a48d860 | [] | no_license | hjrhjr/entrenamiento_13_odoo_ref | f73e292b91d085473283f63a88ccd2363a03d9bf | 9a492c006d9c0aab68d0b095281dafda97ebdfda | refs/heads/main | 2023-08-25T06:46:39.075724 | 2021-10-19T14:51:27 | 2021-10-19T14:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,751 | py | # -*- coding: utf-8 -*-
import logging
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
from datetime import datetime
_logger = logging.getLogger('__name__')
class InvoiceLineInherit(models.Model):
_inherit = 'account.move.line'
retention_id = fields.Many2on... | [
"inmldrsolucionestecnologicas@gmail.com"
] | inmldrsolucionestecnologicas@gmail.com |
7c901dd586db3c2163b73b8f6fe6fb98eb5601eb | 10b3d1ce02eaa4908dc16ca378ddfb1955b2d625 | /MV3D_TF_release/lib/datasets/kitti_mv3d.py | 89c9798b9fcbd959dd7851e2ed8b0745a38e18fc | [
"MIT",
"BSD-3-Clause"
] | permissive | ZiningWang/Sparse_Pooling | 7281aa0d974849eac8c48faa5ba08519b091ef6e | f46882832d0e2fed5ab4a0af15cead44fd3c6faa | refs/heads/master | 2023-05-26T08:47:16.232822 | 2023-05-20T08:39:11 | 2023-05-20T08:39:11 | 141,640,800 | 56 | 21 | null | null | null | null | UTF-8 | Python | false | false | 40,261 | py | # WZN: Note here we unify all LIDAR points to camera frame!!!
__author__ = 'yuxiang' # derived from honda.py by fyang
import datasets
import datasets.kitti_mv3d
import os
import time
import PIL
import datasets.imdb
import numpy as np
from matplotlib import pyplot as plt
import scipy.sparse
from utils.cyt... | [
"kiwoo.shin@berkeley.edu"
] | kiwoo.shin@berkeley.edu |
5139804e41100a6589ddaa48f989cb0aab6176c5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_309/ch28_2020_03_24_22_36_16_011013.py | 793207e861aac9f5ffad8b0007ec0a9447743a06 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | exp = 0
soma = 1
while exp < 100:
conta = 1/2**exp
#soma += conta
exp += 1
print (soma)
| [
"you@example.com"
] | you@example.com |
7a0a3a277b02addb1e326d10fb728c20339483e7 | d9a11615b57624a47e4719222ffd346eedbbabc1 | /tests/test_flow.py | cbb43664378e920dfe878bdfd884a44676142e9b | [] | no_license | mattjegan/pyzerem | 79461659521bf98551d8b54e74861a0609db29e3 | d3fe9fb54454b14747cc1d238961a93b854aee46 | refs/heads/master | 2021-04-28T21:12:13.909647 | 2018-02-19T11:13:54 | 2018-02-19T11:13:54 | 121,944,907 | 0 | 0 | null | 2018-02-18T11:19:44 | 2018-02-18T11:19:44 | null | UTF-8 | Python | false | false | 1,568 | py |
from zerem import Flow, Slot, process
class TestFlow(object):
def test_slots_register(self):
"""
Tests that slot is added to the flows available slots
"""
class MyFlow(Flow):
slot = Slot()
m = MyFlow()
assert getattr(m, '__flow_available') == ... | [
"matthewj.egan@hotmail.com"
] | matthewj.egan@hotmail.com |
a7c8d7bddd7e6040690e8f4603b1523914061ddc | 113f8ae533a75e9f2fdc1728661af0f19c8460a6 | /template_advanced_demos/venv/bin/django-admin | d4b372e021a8bb698113792a0a8c99472edaa67e | [] | no_license | PeterM358/Python-web-2021 | cf08beaa3330495afc53e640f4a2aaf0429049e9 | a3b7e1d1be0cc85675aaff646917d4f5b7f97b00 | refs/heads/master | 2023-07-09T15:09:08.868548 | 2021-07-24T13:49:22 | 2021-07-24T13:49:22 | 382,328,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | #!/Users/petermihailov/django-test/template_advanced_demos/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"estestveno"
] | estestveno | |
d1d0508de70a0ada37a1c3e68468cb649846a73f | 9a423dfb84041a926970e10afad93f15619a34d8 | /backend/google_helpers/utils.py | cc3592f7ee47ae2ca715dbd7623e04aa1cc1fb21 | [] | no_license | Babalwa01/Tilde | 3c2d6295b3d5e8a0cce1331f657ad835688a4db5 | 8eaffeb2c6b78aec4f0d6b5f573106e0a705ae53 | refs/heads/master | 2023-05-28T23:06:49.205259 | 2021-05-18T08:41:14 | 2021-05-18T08:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | import logging
import pandas as pd
from functools import lru_cache
import re
from timezone_helpers import timestamp_str_to_tz_aware_datetime
from google_helpers.constants import TIMESTAMP_FORMAT, TIMEZONE_NAME
def timestamp_to_datetime(timestamp):
return timestamp_str_to_tz_aware_datetime(
timestamp=time... | [
"sheena.oconnell@gmail.com"
] | sheena.oconnell@gmail.com |
25f36707799253f370eeb2ff989176d7430e52ac | 0c84cc9a2c06594e01835a617a7d5866f9db68a4 | /importing-example/example_2/use_animals.py | a55375cf73a3a4e3806d644da20f0e1ba7b9f72f | [] | no_license | 01-Jacky/Python-Things | a508ac4161c0f836fb793bd07e8c69ff0f3d6e1d | 5153a27cdf9dc17ec3344c2774674c7f92156cf6 | refs/heads/master | 2021-03-19T16:59:50.000741 | 2018-04-04T23:48:46 | 2018-04-04T23:48:46 | 100,906,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # Import classes from your brand new package
from package.Animals import Mammals
from package.Animals import Birds
# Create an object of Mammals class & call a method of it
myMammal = Mammals()
myMammal.printMembers()
# Create an object of Birds class & call a method of it
myBird = Birds()
myBird.printMembers() | [
"hklee310@gmail.com"
] | hklee310@gmail.com |
ce370ccbf928822cc6b71d9384369bbb1ba2af0d | 5bdc4f88b0825593e5fd52477112fb8ff9cb9d6b | /sparse/util/util.py | aef978b3429068c0199c91b899a6bbef8493ba95 | [
"MIT"
] | permissive | ruiatelsevier/sparse-hyper | 5a59bf201dde74f3410d7371bc93e5b99b3c6425 | b38f537b149a9940b46bb90c82e0f8b1552c471e | refs/heads/master | 2020-07-30T23:38:45.476081 | 2019-09-23T12:28:57 | 2019-09-23T12:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,968 | py | import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.patches import Circle, Wedge, Polygon, Ellipse, Rectangle
from matplotlib.collections import PatchCollection
from matplotlib.axes import Axes
import os, errno, random, time, string, sys
import torch
from torch import nn
from torch ... | [
"git@peterbloem.nl"
] | git@peterbloem.nl |
043f39369ddb5869a0f589beb403b66748b3f3a0 | ceedf463269728f0257030671917f9fc979c720a | /popula.py | 8a2b370eed09596f677c02302927860324171dcd | [] | no_license | weltonvaz/Zumbis | 4a8bc213b2d7380b0ef4f3672c6a36b45f3f5c0a | da760e9f258c03660a2eae1439190ce36dee716d | refs/heads/master | 2021-01-19T08:33:58.430648 | 2015-04-17T11:59:11 | 2015-04-17T11:59:11 | 32,888,135 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Problema de crescimento populacional
# Desenvolvido por Evaldo Junior (InFog)
# http://evaldojunior.com.br/blog
popA, popB, anos = 80000, 200000, 0
cresA, cresB = 0.03, 0.015 # Crescimentos de 3% e 1,5% ao ano
while (popA < popB):
anos += 1
popA = popA + (popA * c... | [
"weltonvaz@gmail.com"
] | weltonvaz@gmail.com |
65a01fd1f09658838b02901d836cc99d3fe44dd1 | ed37a985a7411fb3b8f29282a81f1d823f8f4afc | /pascal_triangle/implementations/cython/base.py | 5289433918abcc9fb01106fd869644cc623a41fb | [] | no_license | dmugtasimov/pascal_triangle | 5b310451582f6fc2ddc74f316259c6ec9fc4ec4b | 875deac43300a42560f0433a92e5f1e0475bb754 | refs/heads/master | 2021-06-16T10:55:11.338999 | 2017-04-11T17:20:54 | 2017-04-11T17:20:54 | 35,548,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from pascal_triangle.implementations.base import PascalTriangleBase
class CyPascalTriangleBase(PascalTriangleBase):
language = 'Cython'
| [
"dmugtasimov@gmail.com"
] | dmugtasimov@gmail.com |
5aabfdaa690e6d5f51e29d29af16c5f7bbebe551 | f9c7969c8649c484f2460fb245a3d5bd6870fa5a | /ch07/exercises/exercise 50.py | 57914cc3e70dcbd399eceb03ac689bf9eefd314c | [] | no_license | Pshypher/tpocup | 78cf97d51259bfea944dc205b9644bb1ae4ab367 | b05b05728713637b1976a8203c2c97dbbfbb6a94 | refs/heads/master | 2022-05-18T13:11:31.417205 | 2020-01-07T13:50:06 | 2020-01-07T13:50:06 | 260,133,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | # Program written to transfer the elements of a list to another
# list whilst rearranging the order in which the elements appear
# Unless stated otherwise, variables are assumed to be of type int
def transform(list1, list2, r1, r2):
"""Removes items from list1 in the slice r1:r2, appends them onto list2
i... | [
"jimishote@gmail.com"
] | jimishote@gmail.com |
6a71ee61962bf5aaad4affa272e4d5ea139738fa | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY4JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_106/run_cfg.py | 9695dd7ce6e979864c86ead25607ebeee3e6d533 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY4JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
1a0e532b26b8e1f4e25a0bdf0c0d61114323d61c | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /String/test_q014_longest_common_prefix.py | 5c11b0ca85d14ca6dca237e3305afcd9f12663cf | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import unittest
from String.q014_longest_common_prefix import SolutionF
class TestLongestCommonPrefix(unittest.TestCase):
"""Test q014_longest_common_prefix.py"""
def test_longest_common_prefix(self):
s = SolutionF()
self.assertEqual('fl', s.longestCommonPrefix(["flower", "flow", "flight"])... | [
"429134862@qq.com"
] | 429134862@qq.com |
6ee5824a7f0a33926ee6524a24a32398e7a7a209 | e82a5480b960abc154025168a27742149ae74de3 | /Leetcode/Dynamic Programming/Medium/1043_partition_array_for_maximum_sum.py | ea7a058f3689100fc3140e54fb2a74d56b88cb62 | [] | no_license | harshsodi/DSA | 8e700f0284f5f3c5559a7e385b82e0a6c96d3363 | 18f82f9b17a287abe3f318118691b62607e61ff9 | refs/heads/master | 2021-07-07T23:42:50.750471 | 2020-09-11T03:16:41 | 2020-09-11T03:16:41 | 186,679,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # Runtime: 448 ms, faster than 41.60% of Python online submissions for Partition Array for Maximum Sum.
# Memory Usage: 11.8 MB, less than 100.00% of Python online submissions for Partition Array for Maximum Sum.
class Solution(object):
def maxSumAfterPartitioning(self, A, K):
"""
:type A: List[in... | [
"harshsodi@gmail.com"
] | harshsodi@gmail.com |
bcbe4e83dec0fe91a1870110287f8df495d3f9c4 | 737c0920b33fddb3fc7b6ff7287f06faaf9958bb | /models/temp/common_spec_2.py | e47cda732a65a69386b22619f5cf0ec7033e294e | [] | no_license | Willamjie/CCWH-ACB | aa51b412adccf0078bc2f575dd47e22cd2daa689 | e15176c9d74c1b9232d72d79114f0bf6aa0d315e | refs/heads/main | 2023-02-25T14:30:57.389888 | 2021-02-02T14:08:06 | 2021-02-02T14:08:06 | 335,209,023 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | # This file contains modules common to various models
from utils.utils import *
from models.DConv import DOConv2d
def autopad(k, p=None): # kernel, padding
# Pad to 'same'
if p is None:
p = k // 2 if isinstance(k, int) else [x // 2 for x in k] # auto-pad
return p
def DWConv(c1, c2, k=1, s=1, ac... | [
"you@example.com"
] | you@example.com |
2efc75247312dda6a4b3a75b13341709c8291fe0 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R4/benchmark/startPyquil304.py | bbb13e55f149de899519a4a930fcac157e7752b1 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # qubit number=4
# total number=13
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
95e1ea6aacd9e0b2bfe38b9c9de93cfd60182a95 | 51108a50ffb48ad154f587c230045bb783f22240 | /bfgame/factories/recipes/base.py | f4d2fbb68a4894ed9e44bdc747ab6a6932072734 | [
"MIT"
] | permissive | ChrisLR/BasicDungeonRL | c90bd0866c457557cccbad24e14689d5d6db7b00 | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | refs/heads/master | 2021-06-15T13:56:53.888646 | 2019-08-05T16:33:57 | 2019-08-05T16:33:57 | 104,269,987 | 3 | 0 | MIT | 2019-08-05T16:28:23 | 2017-09-20T21:35:19 | Python | UTF-8 | Python | false | false | 161 | py | class Recipe(object):
name = ""
base_object_type = None
depends_on = []
@staticmethod
def build_components(object_type, game):
pass
| [
"arzhul@gmail.com"
] | arzhul@gmail.com |
94912c9ed339cdf676610f0ca9397675dcf1e0ec | f9a8ee37334771f37edda863db08a7dcccc9522f | /AtCoder/Contest/ABC/ZONeエナジー プログラミングコンテスト/abc200E.py | dc144abd33d75de438010a0aa9fffe4eff052492 | [] | no_license | shimmee/competitive-programming | 25b008ee225858b7b208c3f3ca7681e33f6c0190 | 894f0b7d557d6997789af3fcf91fe65a33619080 | refs/heads/master | 2023-06-07T13:07:17.850769 | 2021-07-05T17:20:47 | 2021-07-05T17:20:47 | 331,076,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # ZONeエナジー プログラミングコンテスト E
# URL:
# Date:
# ---------- Ideas ----------
#
# ------------------- Solution --------------------
#
# ------------------- Answer --------------------
#code:python
# ------------------ Sample Input -------------------
# ----------------- Length of time ------------------
#
# ----------... | [
"shinmeikeita@gmail.com"
] | shinmeikeita@gmail.com |
c723f5fdff701d3e8e5da3916b313407906b7a1e | 377e3a552fb807febc18ce036af77edbce93ca19 | /searching algo/exponential_search.py | 776eff5ca5b6589ddfd1b7d6f43e0a9e8c67c45e | [] | no_license | souravs17031999/100dayscodingchallenge | 940eb9b6d6037be4fc0dd5605f9f808614085bd9 | d05966f3e6875a5ec5a8870b9d2627be570d18d9 | refs/heads/master | 2022-10-29T11:05:46.762554 | 2022-09-28T13:04:32 | 2022-09-28T13:04:32 | 215,993,823 | 44 | 12 | null | 2022-08-18T14:58:50 | 2019-10-18T09:55:03 | Python | UTF-8 | Python | false | false | 1,882 | py | # Program to search the element using exponential search algorithm
# IDEA: logic of the algorithm is to use the fact that if we are able to find the bounds of the answer where it may lie
# and then using binary search algorithm because that range is already ordered, and we just need to check our answer (if it actually ... | [
"souravs_1999@rediffmail.com"
] | souravs_1999@rediffmail.com |
ff4e0d6e7c0b10941ced2e6a74ccfc027bb1206b | b50f8de2f35858f866b8f7d54da2994e5b59a391 | /src/dataload/sources/entrez/entrez_genomic_pos.py | 839f8410cfc258609ad333cca65c85f34f67dca0 | [
"Apache-2.0"
] | permissive | SuLab/mygene.info | 455127c4e0bcae61eb36d76496dfc4139be0f584 | 506d7b1d2a7e4de55bdebba8671dc8a09fc303b2 | refs/heads/master | 2020-06-03T11:27:34.021692 | 2017-06-12T20:58:45 | 2017-06-12T20:58:45 | 54,933,630 | 20 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | '''
Populates MICROBE gene entries with genomic position data
Currently updates the 120 microbial taxids that are NCBI Reference Sequences
run get_ref_microbe_taxids function to get an updated file for TAXIDS_FILE
when it's necessary.
'''
import os.path
from biothings.utils.common import (dump, loadobj, get_timestamp)... | [
"slelong@scripps.edu"
] | slelong@scripps.edu |
0ae246e21eb23160ee3be8dc5060109d11903209 | 26f862c5f17fd97beb38be35b4b5937673929c9b | /swagger_client/models/system_object.py | f2f7c5ffd1642cfd9026a3adcb69acada10676a8 | [] | no_license | m-wendt/swagger-client | bf146841fa4e7eb6add01c09822eb01d89defa5e | 2db96983a900dbb1f5d32c5e66d190e5c0d9b3dc | refs/heads/master | 2020-11-25T22:06:23.487954 | 2019-12-18T15:56:21 | 2019-12-18T15:56:21 | 228,865,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | # coding: utf-8
"""
Save.TV API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
... | [
"martin_wendt@internet-mail.org"
] | martin_wendt@internet-mail.org |
cd1b616721d53514d80440788a48f49edc7432fc | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractMayomtlHomeBlog.py | b24bf15613f06fa3f5fec756e2f050bb98d368d9 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 938 | py | def extractMayomtlHomeBlog(item):
'''
Parser for 'mayomtl.home.blog'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('My Lover Was Stolen, And I Was Kicked Out Of The Hero’s Party, But I Awakened... | [
"something@fake-url.com"
] | something@fake-url.com |
ebf9e16d0dc1998f35d44ba5017f92cdab150035 | d77af24d09dc00a4b7d3e0bdc14b7d2727c96495 | /RouToolPa/Tools/AsseblyQC/PurgeDups.py | 68fc6d159a6e577e289bfe832a2558a7f6313423 | [] | no_license | mahajrod/RouToolPa | 14ee0f7fce78c53e8639e770caa6ffb0dfd82fce | 9b0cd0f0817a23cd3f37b3a55f83ce2d8abc71d8 | refs/heads/master | 2023-08-19T19:15:49.876175 | 2023-08-12T12:27:39 | 2023-08-12T12:27:39 | 181,844,151 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,532 | py | #!/usr/bin/env python
from pathlib import Path
import pandas as pd
import numpy as np
from RouToolPa.Routines import MathRoutines
from RouToolPa.Tools.Abstract import Tool
class PurgeDups(Tool):
def __init__(self, path="", max_threads=4):
Tool.__init__(self, "augustus", path=path, max_threads=max_threads... | [
"mahajrod@gmail.com"
] | mahajrod@gmail.com |
c387e022354c89f96838c5697b5b229da319c648 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/JAMSTACK-TEMPLATES/_EVENMOAR/USERS/GREGBER/argos/examples/with-django/screenshot/urls.py | 95701a96abd2542e4163a96a56675fda05ead35c | [
"MIT"
] | 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 | 108 | py | from django.conf.urls import url
from . import views
urlpatterns = [url(r"^$", views.index, name="index")]
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
44b27378b4ea4a56ee40c98ad8fa798406f849ae | 63b79c404d83e4980891c488f4d9592558ecda35 | /assets/src/ba_data/python/bastd/game/kingofthehill.py | 1e8b361031e049a49962e8a2f2e17f3990011e82 | [
"MIT"
] | permissive | kakekakeka/ballistica | 56e8879cd5b4b990e5e05da3dfd300d7cbb45446 | 3ffeff8ce401a00128363ff08b406471092adaa9 | refs/heads/master | 2022-11-14T08:11:57.160782 | 2020-07-01T05:43:13 | 2020-07-01T05:49:44 | 276,755,445 | 2 | 0 | MIT | 2020-07-02T22:18:37 | 2020-07-02T22:18:36 | null | UTF-8 | Python | false | false | 11,065 | py | # Copyright (c) 2011-2020 Eric Froemling
#
# 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, publish,... | [
"ericfroemling@gmail.com"
] | ericfroemling@gmail.com |
a31e0c49cbba5e45a39a6fef1c35198454eac3b3 | 44a7473404d37a3f5c73cbcdf88be55564e580bb | /121_word-ladder-ii/word-ladder-ii.py | 07104867d5e6cc1bf312c512b69bfb50106d1741 | [] | no_license | frankobe/lintcode | dbc10befc8055c55b2ca9716aa3dfa238b58aaa9 | db131f968944b8140f07a8e5765fea55c72da6ba | refs/heads/master | 2021-06-07T18:32:12.338879 | 2016-11-22T09:05:37 | 2016-11-22T09:05:37 | 20,018,761 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | # coding:utf-8
'''
@Copyright:LintCode
@Author: frankobe
@Problem: http://www.lintcode.com/problem/word-ladder-ii
@Language: Python
@Datetime: 15-09-10 00:37
'''
from string import ascii_lowercase
from collections import defaultdict
class Solution:
# @param start, a string
# @param end, a string
# @par... | [
"mua08p@gmail.com"
] | mua08p@gmail.com |
761f351aabe14cde3bd1b7c3d625b2c8bd592c4b | dba522d0d9f1677672af03c81a0118565158c659 | /Gen/ChannelService.py | 423c7570a96b50561420ca5f4321bcbb471f7c70 | [] | no_license | fossabot/LineAlpha-Full-Ver | c6fefbf0d1d69b744c2913e0e1fd51ade5f931d5 | cabe9ab158d358ddb92195855ff07c7d483c6c20 | refs/heads/master | 2022-12-18T07:44:02.743358 | 2020-09-14T12:31:57 | 2020-09-14T12:31:57 | 295,410,125 | 0 | 0 | null | 2020-09-14T12:31:45 | 2020-09-14T12:31:44 | null | UTF-8 | Python | false | true | 127,570 | py | #
# Autogenerated by Thrift Compiler (0.9.3)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
import logging
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.t... | [
"noreply@github.com"
] | fossabot.noreply@github.com |
3a867c97d04bc12c43529626104a44e5cde357d0 | 5982a9c9c9cb682ec9732f9eeb438b62c61f2e99 | /Problem_131/my_solution.py | 0957503ab542faeb851bc44ae52794dc24263800 | [] | no_license | chenshanghao/LeetCode_learning | 6fdf98473be8f2240dd86d5586bbd1bbb95d6b0c | acf2395f3b946054009d4543f2a13e83402323d3 | refs/heads/master | 2021-10-23T05:23:01.970535 | 2019-03-15T05:08:54 | 2019-03-15T05:08:54 | 114,688,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | class Solution(object):
def partition(self, s):
"""
:type s: str
:rtype: List[List[str]]
"""
self.result = []
if len(s) == 0: return self.result
self.backtrack([],0,s)
return self.result
def IsPalindrome(self, string):
i, j = 0, le... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
e97d900e1e7624fde472f0927a9acdd56581b60c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/216/26475/submittedfiles/testes.py | 54f602251a4e6970b2390dc096dbe706d12bd81d | [] | 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 | 154 | py | # -*- coding: utf-8 -*-
from __future__ import division
#COMECE AQUI ABAIXO
a= float(input('digite a'))
b= float(input('digite b'))
c=(a+b)/2
print (c) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ecdbc102e9f8ef980acd46a217b272a871a16550 | 1efeed0fa970b05801a29ccfdc90c52bb571dd02 | /venv/bin/pip3.7 | eb97d48a42293fd28c8d07856e8ff04e1a0b9bce | [] | no_license | williamwang0/MusicGen | 2e7fe5d9b2d35d1406b8951a86a5eac6d704571e | b6411505d1fd29e13ca93e3975f3de106ad4a7d0 | refs/heads/master | 2020-07-08T15:48:33.840412 | 2020-05-27T17:30:38 | 2020-05-27T17:30:38 | 203,717,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | 7 | #!/home/albertczhang/Desktop/Projects/Music-Gen/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"albertczhang@berkeley.edu"
] | albertczhang@berkeley.edu |
dc763b74c1dc61594084c2e1bd2444d4edaf96d4 | 9c0f691393abbeb5754e1624e0c48dfcdf857352 | /2017/Helpers/day_02.py | ce9e1ba0627d0318c61d59f26c208b83c5be9430 | [] | no_license | seligman/aoc | d0aac62eda3e6adc3c96229ca859bd2274398187 | 9de27ff2e13100770a3afa4595b15565d45bb6bc | refs/heads/master | 2023-04-02T16:45:19.032567 | 2023-03-22T15:05:33 | 2023-03-22T15:05:33 | 230,493,583 | 17 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | #!/usr/bin/env python3
import itertools
DAY_NUM = 2
DAY_DESC = 'Day 2: Corruption Checksum'
def calc(log, values):
values = [[int(y) for y in x.replace('\t', ' ').split(' ')] for x in values]
ret = 0
ret2 = 0
for row in values:
a, b = min(row), max(row)
ret += b - a
for a, b... | [
"scott.seligman@gmail.com"
] | scott.seligman@gmail.com |
6015c71d15294c4e5332fac46c344a18bee9eddd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/216/usersdata/354/113785/submittedfiles/av2_p3_civil.py | e7ed6d32a539f56ce9f534bf54484c4e125a9e91 | [] | 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 | 546 | py | # -*- coding: utf-8 -*-
import numpy as np
ordem=int(input('digite a dimensao n da matriz: '))
x=int(input('digite a linha do numero: '))
y=int(input('digite a coluna do numero: '))
matriz=np.zeros((ordem,ordem))
for i in range(0,ordem,1):
for j in range(0,ordem,1):
matriz[i,j]=int(input('digite os valore... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2bbc1196c0025f188016b75fc7993a434729f616 | 6af81c1e3853255f064ce58e848b34211decdd23 | /test/top/api/rest/HotelsSearchRequest.py | f79b816b5737e298bbab342a8a4f1a00cb4bc2be | [] | no_license | dacy413/TBAutoTool | d472445f54f0841f2cd461d48ec6181ae2182d92 | ca7da4638d38dd58e38c680ee03aaccf575bce7b | refs/heads/master | 2016-09-06T16:13:01.633177 | 2015-02-01T00:04:50 | 2015-02-01T00:04:50 | 29,625,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | '''
Created by auto_sdk on 2015-01-20 12:36:26
'''
from top.api.base import RestApi
class HotelsSearchRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.city = None
self.country = None
self.district = None
self.domestic = None
self.n... | [
"1656505353@qq.com"
] | 1656505353@qq.com |
70c76db1ec07449c468c62369074bb65be67d7f4 | 7920ac571217d627aad1ed8fa0b87ef1436cdb28 | /casepro/cases/migrations/0006_auto_20150508_0912.py | ba0c4ea6984a0959cd1e04d511e9dab37ee86a50 | [
"BSD-3-Clause"
] | permissive | rapidpro/casepro | 34777e5373822d41ff2e5f3995f86d009c2d1e7c | 66177c00b06b2bd6e6cad2b648feb8f28f592add | refs/heads/main | 2023-07-20T00:16:09.616516 | 2023-07-06T21:46:31 | 2023-07-06T21:46:31 | 32,147,348 | 23 | 30 | BSD-3-Clause | 2023-07-19T07:44:59 | 2015-03-13T09:31:47 | Python | UTF-8 | Python | false | false | 1,662 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("cases", "0005_auto_20150424_1427")]
operations = [
migrations.CreateModel(
name="CaseEvent",
fields=[
... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
05cd6f081aaaff3e3da677689d1dfab5b16c2bc3 | 114ad0c49ba0ca0f5d8b95151da45d54a7f05a04 | /zion/urls.py | 682b6af9853493bf4c7a20985f1b29cf2beb7d57 | [] | no_license | gray-adeyi/zion | b10cbd09588b1fdea86fff38be79c4dde1d5043c | c0d1ac64db978f8277932a82a15fa1f3f2b188f6 | refs/heads/master | 2023-01-10T00:50:17.121785 | 2020-11-11T19:24:37 | 2020-11-11T19:24:37 | 312,034,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | """zion URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"adeyigbenga005@gmail.com"
] | adeyigbenga005@gmail.com |
9364a7ea7ee0ec5d468df263e0c925c4f78ff3a7 | 9afbb6993450d1e0c3bae68e86844bd06d4419ee | /global_var/g11.py | 32a8a7f1014ea83d6ac59211fac7c41d0e675748 | [] | no_license | Jigar710/Python_Programs | 6f331caac30878655d4cca4ad97d4214c0262088 | 714a6306487eb6712f32ccb51b6a2407a81873fa | refs/heads/main | 2023-02-25T12:24:44.874199 | 2021-01-28T15:43:24 | 2021-01-28T15:43:24 | 332,869,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | def m1():
global a
a = 10
print(a)
m1()
print(a) | [
"jigar.shekhat.777@gmail.com"
] | jigar.shekhat.777@gmail.com |
61cbca6ae98bfe29817aceebbeaa860f7fd52ced | 3d02b79ce53a83fc0086decb2e933c767c3d55bc | /IPython/parallel/controller/scheduler.py | 00ba2f0560ea955ebb8b3f3da811083b6c61616d | [
"BSD-3-Clause"
] | permissive | minrk/ipython-py3k | 47f8a65ac9767599568c94f01540364b8593a35d | 094195eaf203e88c58f71e834bf0153842ac852c | refs/heads/master | 2023-06-08T10:51:37.423469 | 2011-07-02T01:57:42 | 2011-07-02T01:57:42 | 1,989,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,626 | py | """The Python scheduler for rich scheduling.
The Pure ZMQ scheduler does not allow routing schemes other than LRU,
nor does it check msg_id DAG dependencies. For those, a slightly slower
Python Scheduler exists.
Authors:
* Min RK
"""
#-----------------------------------------------------------------------------
# C... | [
"takowl@gmail.com"
] | takowl@gmail.com |
b453aed2c254c9389e6d16e6972bda279a7aa2b9 | cf3891c6122d21584bb6d7ad81c41e26755c1083 | /tests/gmprocess/subcommands/import_test.py | e189a580a0d4d0d4d0c4ed40a44128a0147e9ff5 | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | mmoschetti-usgs/groundmotion-processing | 5cb6412eebe258dd3d30e085d68affc20553d744 | 944667e90b5a0a01f7017a676f60e2958b1eb902 | refs/heads/master | 2022-11-03T04:32:00.353837 | 2022-10-19T17:57:16 | 2022-10-19T18:37:23 | 186,485,732 | 0 | 0 | NOASSERTION | 2019-05-13T19:51:34 | 2019-05-13T19:51:34 | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import shutil
import pathlib
from gmprocess.utils import constants
def test_import(script_runner):
try:
# Need to create profile first.
cdir = constants.CONFIG_PATH_TEST
ddir = constants.TEST_DATA_DIR / "demo"
idir = constan... | [
"emthompson@usgs.gov"
] | emthompson@usgs.gov |
89302cc74ca6ac2bdca46b282f61fee632281c3a | ad02587a87ec19658d6a53bcf2a2f5e92149e7f4 | /django-stubs/core/serializers/__init__.pyi | fcc124753a89fb1b8460527fcb732507dc4e7f9c | [
"BSD-3-Clause"
] | permissive | Naddiseo/django-stubs | 32a944617aea5b0e2dc3b8ad4dfd191b9ca6198b | cff5ab463c911283a9c43a26a38cb7bd4deebbd5 | refs/heads/master | 2020-04-18T05:01:40.832084 | 2019-01-22T17:13:31 | 2019-01-22T17:13:31 | 167,261,510 | 0 | 0 | BSD-3-Clause | 2019-01-23T22:06:15 | 2019-01-23T22:06:15 | null | UTF-8 | Python | false | false | 1,396 | pyi | from collections import OrderedDict
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, Union
from django.apps.config import AppConfig
from django.core.serializers.base import Serializer, Deserializer
from django.db.models.base import Model
from django.db.models.query import QuerySet
BUILTI... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
7442cc095982c595c26f2dc4f1297cb96e53d1b1 | c5f58af61e3577ded52acda210f4f664651b598c | /template/mmdetection/tools/inference.py | 1c3be13bc08f24a5ff7a2139b02780c446855c27 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hojihun5516/object-detection-level2-cv-02 | 0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac | bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109 | refs/heads/master | 2023-08-31T09:50:59.150971 | 2021-10-16T15:00:19 | 2021-10-16T15:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | import argparse
import os
import os.path as osp
import time
import warnings
import mmcv
import torch
from mmcv import Config, DictAction
from mmcv.cnn import fuse_conv_bn
from mmcv.parallel import MMDataParallel, MMDistributedDataParallel
from mmcv.runner import get_dist_info, init_dist, load_checkpoint, wrap_fp16_mod... | [
"hanbin@kakao.com"
] | hanbin@kakao.com |
0ffb1a2ee81207f529a86af9c5969f5b359151d8 | 92866897ac8b95067960f312aa92a4d02c7c81df | /environments/oc-p5/database.py | 93f99ef3da8506942db150a6ad42cd3bace69117 | [] | no_license | DenisLamalis/cours-python | 63fec725c038a50fd52f428152dbc1e0671dba53 | 1fc92b125969a2771633d6e8508138986163b6e7 | refs/heads/master | 2023-02-03T19:59:34.345181 | 2020-12-15T09:57:42 | 2020-12-15T09:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | import mysql.connector
from config import *
from mysql.connector import errorcode
from tables import Tables
class Database:
""" """
def __init__(self):
""" """
self.host = HOST
self.user = USER
self.password = PASSWORD
self.db_name = 'PureBeurre'
self.tables = ... | [
"erischon@gmail.com"
] | erischon@gmail.com |
dd121328da958577a0671baf5dbb8cbeb3a5c377 | 5c61990fc1a79f389111a3e449c1fadf65fc1b8c | /portnet_api/models/contract.py | 19c2fe0d6032fe1e126ae861a70ebe56c2177e77 | [] | no_license | brahim94/portnet | 3befb64009fd014b74e01151cc429a613d3d2f11 | f1120ce4806ba2fd7e26132ca918d1ce8b9ad32c | refs/heads/master | 2023-04-14T07:17:40.956207 | 2021-04-27T16:37:48 | 2021-04-27T16:37:48 | 356,211,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,894 | py | # -*- coding: utf-8 -*-
import json
import logging
import requests
import base64
import datetime
import time
from openerp import api, fields, models, _
from dateutil.relativedelta import relativedelta
from openerp.exceptions import ValidationError
_logger = logging.getLogger(__name__)
try:
import xmltodict
excep... | [
"brahim-ayad@hotmail.com"
] | brahim-ayad@hotmail.com |
5812623a6b231e2bf8b445f6ffa642fcb04887cc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_328/ch37_2020_03_25_19_56_06_004731.py | 24a51c11e2535e75fe75b9bbbcb27294953173b6 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | a = (input("Digite aqui sua senha: "))
while True:
if a != "desisto":
a= (input("Digite aqui sua senha: "))
else:
print ("Você acertou a senha!")
break | [
"you@example.com"
] | you@example.com |
165e7dc760f0dca474059f542342f73228ee2ee4 | 7aebfaec6957ad67523f1d8851856af88fb997a6 | /catkin_ws/build/robotiq/robotiq_modbus_rtu/catkin_generated/pkg.develspace.context.pc.py | 2fea7493bdaa8d6fad68cdd3e90a1c93c073d9a2 | [] | no_license | k-makihara/ROS | 918e79e521999085ab628b6bf27ec28a51a8ab87 | 45b60e0488a5ff1e3d8f1ca09bfd191dbf8c0508 | refs/heads/master | 2023-01-28T06:00:55.943392 | 2020-11-26T05:27:16 | 2020-11-26T05:27:16 | 316,127,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "robotiq_modbus_rtu"
PROJECT_SPAC... | [
"makihara@ms.esys.tsukuba.ac.jp"
] | makihara@ms.esys.tsukuba.ac.jp |
f3d1de23c937418d9d66cee322518ae815b1b97d | 942ee5e8d54e8ebe9c5c841fbfdd1da652946944 | /1001-1500/1354.Construct Target Array With Multiple Sums.2.py | 937d34cc801eb03e13440f0ce5a28b99a2374341 | [] | no_license | kaiwensun/leetcode | 0129c174457f32887fbca078fb448adce46dd89d | 6b607f4aae3a4603e61f2e2b7480fdfba1d9b947 | refs/heads/master | 2023-08-31T07:30:50.459062 | 2023-08-27T07:59:16 | 2023-08-27T07:59:16 | 57,526,914 | 69 | 9 | null | 2023-08-20T06:34:41 | 2016-05-01T05:37:29 | Python | UTF-8 | Python | false | false | 640 | py | import heapq
class Solution(object):
def isPossible(self, target):
s = sum(target)
max_heap = [-t for t in target]
heapq.heapify(max_heap)
while max_heap[0] != -1:
top = -heapq.heappop(max_heap)
snd = -max_heap[0] if max_heap else 0
restored = top ... | [
"noreply@github.com"
] | kaiwensun.noreply@github.com |
8acd7f0b84d63e7f93c370fddda0a52423c34f22 | 6a99547f767b942e2b51b79da0f23a990f3105d3 | /zyugyourobokon/build/navigation/catkin_generated/pkg.develspace.context.pc.py | 402bf6c8fe243528f6f26e4d058a75479241185b | [] | no_license | andokeisuke/NHK2020 | 588a1c0070bacaa98f10229252b40eb34c647345 | d6cb3f0c192141e9d87f4faaf7d1d4537ede4a3e | refs/heads/master | 2020-07-11T20:19:29.539799 | 2019-11-22T18:48:04 | 2019-11-22T18:48:04 | 204,635,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 375 | 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 = "navigation"
PROJECT_SPACE_DIR = "/hom... | [
"kakipi.moai@gmail.com"
] | kakipi.moai@gmail.com |
bcb2d3d5b2956afcdde5f3be634d6e0742748d87 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02233/s835389106.py | 94c01a979ff6a34046d86dab98703089af7bc21b | [] | 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 | 140 | py | fib = [0 for i in range(45)]
fib[0] = 1
fib[1] = 1
for i in range(2, 45):
fib[i] = fib[i - 1] + fib[i - 2]
n = int(input())
print(fib[n])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5b5eb5cda0fba8e8594dfdd2a26512967a17d5b7 | db861016e307fa7e1a57c1d07262b5d9c8051218 | /cookbook/ingredients/migrations/0001_initial.py | 91177488701b66d42e9147238624ca23682e9abb | [
"MIT"
] | permissive | mugagambi/cookbook-graphql-server | 794fedaf0d6c7fc5a7ffd21100d90c4f9ef16cba | d45044dc5e307d822e3338bcb3e4f8758c89a2f2 | refs/heads/master | 2021-01-25T14:33:55.992792 | 2018-03-03T17:18:52 | 2018-03-03T17:18:52 | 123,712,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | # Generated by Django 2.0.2 on 2018-03-03 13:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"mugagambi@gmail.com"
] | mugagambi@gmail.com |
89502b0cd5d0b335a4a18aeb229341a774ad9d71 | 44d5b0a1f411ce14181f1bc8b09e3acbc800e9e1 | /routes1.py | a1fbc536fb60722dd5222cad0edc061e93379366 | [] | no_license | mukosh123/Librarysysrtem | 5d74988af1aaec31a007f5aaddd9d8e3855a7662 | e74ed3328bc50336df28ec45fdf3775051407a27 | refs/heads/master | 2021-01-22T10:40:15.775179 | 2017-02-16T14:42:41 | 2017-02-16T14:42:41 | 82,023,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | from flask import *
import sqlite3
DATABASE = 'books.db'
app = Flask(__name__)
app.config.from_object(__name__)
def connect_db():
return sqlite3.connect(app.config['DATABASE'])
@app.route('/admin')
def admin():
g.db = connect_db()
cur = g.db.execute('select rep_title,category from reps')
books = [di... | [
"admin"
] | admin |
b46eb8ad515541f7d2dca44fc8545ec091fa2544 | 726a548766a9db586806ef540dcf8ea4d0a82a60 | /Python3/unit_testing/pytest/phonebook/phonebook.py | c9f4a4f2dcbac826ca6232de245f48fa455d4e4b | [] | no_license | ArseniD/learn_python | 6fd735a594ff83ea97888d6688e474e94182ea74 | d73fc790514f50a2f61c5cc198073299b0c71277 | refs/heads/master | 2022-05-28T04:53:54.603475 | 2019-08-27T10:15:29 | 2019-08-27T10:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import os
class Phonebook():
def __init__(self, cachedir):
self.entries = {}
self.filename = "phonebook.txt"
self.file_cache = open(os.path.join(str(cachedir), self.filename), "w")
def add(self, name, number):
self.entries[name] = number
def lookup(self, name):
r... | [
"arsenidudko@mail.ru"
] | arsenidudko@mail.ru |
d3ff1e8fd2b9310e9ac4b6e16b83c3b07946f17f | 349c4f37b6a003d10dd78d864395a0d596d24fe6 | /Learn_advanced/5201_container.py | 2c7ae775dfcca224e76bba0ef1aea78bf35bbcbc | [] | no_license | bwjubrother/Algorithms | 55c2980a4540a7e48cb3afd298cbd2e3d81c594e | 03daa2c778b1cc59ce1920363a27c88bec5ec289 | refs/heads/master | 2023-04-07T00:38:58.715786 | 2021-04-25T08:00:08 | 2021-04-25T08:00:08 | 279,016,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | import sys
sys.stdin = open('5201.txt', 'r')
T = int(input())
for tc in range(T):
n, m = map(int, input().split())
ns = list(map(int, input().split()))
ms = list(map(int, input().split()))
ans = 0
while ns and ms:
if max(ns) <= max(ms):
ans += max(ns)
ns.remove(max(... | [
"bwjubrother@gmail.com"
] | bwjubrother@gmail.com |
0b6a6e23efe28a1af8e2c40f4e5303ad9ea84029 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/r4.py | 221ab5ce6aa1a15e08da2cf1163ece2f4e587d08 | [] | 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 | 82 | py | ii = [('LeakWTI3.py', 1), ('BackGNE.py', 1), ('BachARE.py', 1), ('SomeMMH.py', 4)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
01b617e6e058ce0246a7c101cf43bf4e1c81a5c1 | 7b798a55cf7bd42ab5d2d423ab77814c2564bd44 | /Easy/Longest Harmonious Subsequence.py | 6c543dadc03fa60cf5efa587aed5009fc279b69a | [] | no_license | addherbs/LeetCode | d933839eb0a2eb53c192f76c42152c6f3a6ef3f2 | cadd48225d93aa69745a94a214e55e7751996e19 | refs/heads/master | 2021-04-15T05:12:26.855696 | 2021-02-27T05:53:42 | 2021-02-27T05:53:42 | 126,174,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import collections
class Solution:
def findLHS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
p = collections.Counter (nums)
ans = 0
for num in nums:
temp = 1
if (num + 1 in p):
ans = max (ans, p[num + 1] + p[... | [
"addherbs@gmail.com"
] | addherbs@gmail.com |
d781e56aa2a7dee0672b8024be04ffa77770c0c0 | b5c47c66fb48294460e72833e4f3c7ec0042ff0a | /tutorial/venv/lib/python3.9/site-packages/setuptools/_distutils/command/bdist_rpm.py | 9ce00ca35396d2e6d101f8bc3a258135e91566e5 | [] | no_license | MariaKireeva/projects | 19c3caae9ee5f6a92c69c8c61e152dbb8f5c704f | 8a1d030d1e8c094109b70c43216f8491df58a02d | refs/heads/main | 2023-08-27T21:26:11.517225 | 2021-09-22T17:39:46 | 2021-09-22T17:39:46 | 312,046,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,537 | py | """distutils.command.bdist_rpm
Implements the Distutils 'bdist_rpm' command (create RPM source and binary
distributions)."""
import subprocess, sys, os
from distutils.core import Command
from distutils.debug import DEBUG
from distutils.file_util import write_file
from distutils.errors import *
from distutils.sysconfi... | [
"mary5@list.ru"
] | mary5@list.ru |
ac79892ea7a04e438b9f617893c0aeddfc3de5db | 33daf4c69a8f46d7ad8d93eaa73fc60e36fd022d | /gestion/opos_2016/corregir_nombres.py | 74f44cc7b0761081bb11028fe73577b9f2112e9e | [] | no_license | OscarMaestre/estructurado | 81cfc9412b77d5015be1bebf66785c357746d8e2 | 7649747e48128cb9c17dee937574e9490fcc9087 | refs/heads/master | 2021-01-10T15:05:47.695362 | 2016-04-28T07:30:50 | 2016-04-28T07:30:50 | 53,923,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | #!/usr/bin/env python3
#coding=utf-8
from utilidades.ficheros.GestorFicheros import GestorFicheros
modificaciones=[
("La Torre de Esteban Hambran", "Torre de Esteban Hambran"),
("Cortijos de Arriba", "Cortijo de Arriba"),
("Villafranca de los Caballeros", "Villafranca de los"),
("Las Ventas con Peña Agu... | [
"profesor.oscar.gomez@gmail.com"
] | profesor.oscar.gomez@gmail.com |
95ec4bc862a5962847f4a2417b1f107854719b08 | 699c4c15667166788a4eaf9d9c1197cf3393986f | /backend/gatherspace/manage.py | e4bfc5db43a4bb74f93d01ea4c3060c182757b4a | [] | no_license | Merevoli-DatLuu/GatherSpace | 2fdd07f5b0a59d27ee9567de952880dc1242b54e | 4305f392fb8f810cfd193d9ba5b11ac94e3ea24d | refs/heads/master | 2023-08-31T18:09:31.645095 | 2021-09-22T05:05:04 | 2021-09-22T05:05:04 | 409,068,869 | 0 | 0 | null | 2021-09-28T08:51:43 | 2021-09-22T04:55:48 | Python | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gatherspace.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"47155364+Merevoli-DatLuu@users.noreply.github.com"
] | 47155364+Merevoli-DatLuu@users.noreply.github.com |
9951868b35d55b8b9969caede6c4916b987b0f5c | e2f0806ca1cdd887ea40d050a19fa2710427bd38 | /기본 문제/05주차_스택2/2167_2차원 배열의 합/강승훈.py | a590cd46cdd52cc0944208211c63cc1350c95b58 | [] | no_license | JY-Dev/AlgorithmStudy-1 | 001f94d80097c850c79eeb2bc86971a01aa5bd5d | 2ad1df0fd65c72a6f6d1feeba09f889000ff8c15 | refs/heads/main | 2023-08-21T18:38:18.235994 | 2021-09-28T07:07:11 | 2021-09-28T07:07:11 | 406,208,087 | 1 | 0 | null | 2021-09-14T03:14:32 | 2021-09-14T03:14:31 | null | UTF-8 | Python | false | false | 607 | py | from sys import stdin
# 입력.
n,m = map(int, stdin.readline().split(" "))
arr = list(list(map(int, stdin.readline().split())) for _ in range(n))
test_case = int(stdin.readline().strip())
for _ in range(test_case):
i1, j1, i2, j2 = map(int, stdin.readline().split(" ")) # 좌표 입력.
sub_sum = 0 # 결과 저장 할 변수.
for ... | [
"noreply@github.com"
] | JY-Dev.noreply@github.com |
979a71a39688b941580d1480aaa2802ebc8058a2 | 2af94f8a7609d47fdcea28a2132c4f8bacb103e3 | /src/services/service_manager.py | da578ee4f10fc46bdd44de29797f6e45099bc02f | [] | no_license | bernhara/DigiGateway4Raph | 685527723f0b306f387233c78d27fe9d78717c38 | f36ba29ef883d70f94b8609ff734b5dcde786c66 | refs/heads/master | 2020-07-05T19:56:27.027547 | 2019-08-19T06:10:46 | 2019-08-19T06:10:46 | 202,756,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | ############################################################################
# #
# Copyright (c)2008, 2009, Digi International (Digi). All Rights Reserved. #
# #
# Permis... | [
"ORBA6563@S-ORBA65630.rd.francetelecom.fr"
] | ORBA6563@S-ORBA65630.rd.francetelecom.fr |
39231c851e4390fefee972dc33794a199ac03564 | 589b5eedb71d83c15d44fedf60c8075542324370 | /project/stock_project/alpha_model/alpha_factor/GrossProfitYOY.py | 7132439c922d47498483410e22ffd1b56dbe32b9 | [] | no_license | rlcjj/quant | 4c2be8a8686679ceb675660cb37fad554230e0d4 | c07e8f0f6e1580ae29c78c1998a53774a15a67e1 | refs/heads/master | 2020-03-31T07:15:48.111511 | 2018-08-27T05:29:00 | 2018-08-27T05:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | import pandas as pd
import numpy as np
from quant.stock.stock import Stock
from quant.stock.date import Date
from quant.stock.stock_factor_operate import StockFactorOperate
def GrossProfitYOY(beg_date, end_date):
"""
因子说明: 当季毛利润的同比增长
披露日期 为 最近财报
"""
# param
##################################... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
51ceb3570f27107ac2da3e8147aab9eefffd42dc | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit_noisy42.py | a8bfb10ba754da62197c75c385a3e667cff3009b | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | # qubit number=3
# total number=7
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1393b6316d1e0a3f66c872c6f21c11da41fbb9e9 | ad715f9713dc5c6c570a5ac51a18b11932edf548 | /tensorflow/lite/testing/op_tests/ceil.py | 02d6ab3f76b56e09d806372a7e08eef7ec137d0a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | rockzhuang/tensorflow | f1f31bc8edfa402b748c500efb97473c001bac95 | cb40c060b36c6a75edfefbc4e5fc7ee720273e13 | refs/heads/master | 2022-11-08T20:41:36.735747 | 2022-10-21T01:45:52 | 2022-10-21T01:45:52 | 161,580,587 | 27 | 11 | Apache-2.0 | 2019-01-23T11:00:44 | 2018-12-13T03:47:28 | C++ | UTF-8 | Python | false | false | 1,835 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a1ff4766613a6a27fc4395c92e158607ac3292fc | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/vse-naloge-brez-testov/DN4-Z-225.py | 9583739c790cad2cec42909834833817e30398cc | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | # Tu pišite svoje funkcije:
from math import *
def koordinate(ime, kraji):
for kraj, x, y in kraji:
if kraj == ime:
return(x, y)
else:
return None
def razdalja_koordinat(x1, y1, x2, y2):
return sqrt((x1-x2) ** 2 + (y1-y2) ** 2)
def razdalja(ime1, ime2, kraji):
x1, y1 = koor... | [
"lenart.motnikar@gmail.com"
] | lenart.motnikar@gmail.com |
ce739380e97a96bf00fcdc9d4059e29f2e122645 | 099256b28df65fb7c90c077b060dca16b8655235 | /unsupervised_learning/0x03-hyperparameter_tuning/2-gp.py | 948f3c23d718cd4522f60f7ce711796142e5c0e1 | [] | no_license | Immaannn2222/holbertonschool-machine_learning | 1cebb9a889b363669bed7645d102dc56ab943c08 | 80bf8d3354702f7fb9f79bbb5ed7e00fc19f788d | refs/heads/master | 2023-08-01T05:35:00.180472 | 2021-09-22T20:28:17 | 2021-09-22T20:28:17 | 317,624,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | #!/usr/bin/env python3
"""HYPERPARAÙETER"""
import numpy as np
class GaussianProcess:
""" represents a noiseless 1D Gaussian process"""
def __init__(self, X_init, Y_init, l=1, sigma_f=1):
"""class constructor"""
self.X = X_init
self.Y = Y_init
self.l = l
self.sigma_f = ... | [
"imennaayari@gmail.com"
] | imennaayari@gmail.com |
7d1bcd8e386680914a0800493669b944fd4b31b4 | 04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4 | /Lib/objc/_BiomeFoundation.py | 46963683901ead01d0776eb2ce541ab36ad30317 | [
"MIT"
] | permissive | ColdGrub1384/Pyto | 64e2a593957fd640907f0e4698d430ea7754a73e | 7557485a733dd7e17ba0366b92794931bdb39975 | refs/heads/main | 2023-08-01T03:48:35.694832 | 2022-07-20T14:38:45 | 2022-07-20T14:38:45 | 148,944,721 | 884 | 157 | MIT | 2023-02-26T21:34:04 | 2018-09-15T22:29:07 | C | UTF-8 | Python | false | false | 324 | py | """
Classes from the 'BiomeFoundation' framework.
"""
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
BMCoreAnalyticsEvents = _Class("BMCoreAnalyticsEvent... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
1a113e39024e17830518e548d9edbf161cb4665c | 6caab8d886e8bd302d1994ff663cf5ccb5e11522 | /MyNotes_01/Step02/1-Data_Structure/day03/demo04_order_set.py | bea67a7c9c1c6c6023282873b66b421d9bb4c5d7 | [] | no_license | ZimingGuo/MyNotes01 | 7698941223c79ee754b17296b9984b731858b238 | 55e6681da1a9faf9c0ec618ed60f5da9ecc6beb6 | refs/heads/master | 2022-07-30T21:30:32.100042 | 2020-05-19T16:59:09 | 2020-05-19T16:59:09 | 265,254,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | # author: Ziming Guo
# time: 2020/3/14
'''
三种排序集合的汇总:冒泡;选择;插入
'''
# 冒泡排序:双层循环
def bubble(list_):
for m in range(0, len(list_) - 1):
for n in range(m + 1, len(list_)): # 注意这个地方一定是从 m 开始的
if list_[m] > list_[n]:
list_[m], list_[n] = list_[n], list_[m]
# 选择排序
def seq_ord(li... | [
"guoziming99999@icloud.com"
] | guoziming99999@icloud.com |
61b4cdb93612dde44672fc2ceda9f4c5e7e07d60 | ae7f4a70a0bdb2e98d13c996c75d274241c25278 | /basics/bubble_sort.py | ec8166badc0e61cd877a955c07c700c7d8f6268f | [
"MIT"
] | permissive | zi-NaN/algorithm_exercise | 5d17e1f6c3cae89ed3c7523b344e55c5a10e3e62 | 817916a62774145fe6387b715f76c5badbf99197 | refs/heads/master | 2020-03-30T12:00:46.694490 | 2019-06-23T11:04:34 | 2019-06-23T11:04:34 | 151,204,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | def bubble_sort(arr:'list'):
# inplace sort
for i in range(len(arr)-1):
for j in range(len(arr)-1, 0, -1):
if arr[j-1] > arr[j]:
arr[j-1], arr[j] = arr[j], arr[j-1]
return arr
# test
if __name__ == '__main__':
print(bubble_sort([1, 3, 2, 4])) | [
"zinanzhao2-c@my.cityu.edu.hk"
] | zinanzhao2-c@my.cityu.edu.hk |
f0854c67101d14e317c013d042d3a110dd01e05b | c20a7a651e63c1e7b1c5e6b5c65c8150898bbaf2 | /KG/BiLSTM+CRF.py | cd232b9f936518d33947a35a03e4efc752e6c09d | [] | no_license | Nobody0321/MyCodes | 08dbc878ae1badf82afaf0c9fc608b70dfce5cea | b60e2b7a8f2ad604c7d28b21498991da60066dc3 | refs/heads/master | 2023-08-19T14:34:23.169792 | 2023-08-15T15:50:24 | 2023-08-15T15:50:24 | 175,770,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,542 | py | import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.optim as optim
def to_scalar(var): #var是Variable,维度是1
# returns a python float
return var.view(-1).data.tolist()[0]
def argmax(vec):
# return the argmax as a python int
_, idx = torch.max(vec, 1)
return to_scalar(idx... | [
"cyk19951@gmail.com"
] | cyk19951@gmail.com |
244d50cea282092239e50d4c7fae5eae2ae5d443 | d2a564ee5ecc46ad55ba4a17504dd79b26f77d0f | /educa/courses/migrations/0002_content_file_image_text_video.py | 672f9544b897995f2adb898129ce06f0b7bb6096 | [] | no_license | Da1anna/Educa | ab5eead0337a2447b87271a6a06c2bcfc61f09a2 | 736fd9840c66221212275f2cfa7374cb521e79ff | refs/heads/master | 2022-12-30T12:31:36.014607 | 2020-10-15T03:52:49 | 2020-10-15T03:52:49 | 303,141,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | # Generated by Django 2.0.5 on 2020-09-18 14:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
migrations.swappable_de... | [
"1318176575@qq.com"
] | 1318176575@qq.com |
96c732b39274d27dba371d3ba780deafa53399a0 | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/api/autoscaling_v1_api.pyi | 483ed490e8ae7275b864b7af091f1df71f67ac70 | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 5,142 | pyi | import typing
import kubernetes.client
class AutoscalingV1Api:
def __init__(
self, api_client: typing.Optional[kubernetes.client.ApiClient] = ...
) -> None: ...
def get_api_resources(self) -> kubernetes.client.V1APIResourceList: ...
def list_horizontal_pod_autoscaler_for_all_namespaces(
... | [
"nikhil.benesch@gmail.com"
] | nikhil.benesch@gmail.com |
0cbd1c8aeac8d787abd3ecf791a38ec0389941b3 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /privateticketsplugin/branches/0.10/privatetickets/report.py | e36569c4591e109ecf3d68f4f5d34b955ec69b4a | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | from trac.core import *
from trac.web.api import IRequestFilter
from trac.ticket.report import ReportModule
from api import PrivateTicketsSystem
__all__ = ['PrivateTicketsReportFilter']
class PrivateTicketsReportFilter(Component):
"""Show only ticket the user is involved in in the reports."""
implements... | [
"coderanger@7322e99d-02ea-0310-aa39-e9a107903beb"
] | coderanger@7322e99d-02ea-0310-aa39-e9a107903beb |
f17d60f3ba2d4ccd6446efee607a59d13b9f6596 | b09db2bba8019b1d11720f1092304e5ce9948d91 | /lib/sqlalchemy/util/__init__.py | 273570357b09f600df0913bd840eed8f0a4f6efe | [
"MIT"
] | permissive | theosotr/sqlalchemy | 6da34f5e28859f4ae7479db4ca9963c8392d7ac8 | e1d4e59116bbf1a12bb6b3f57d33ddfc757d4567 | refs/heads/master | 2022-10-17T08:42:31.757925 | 2020-06-11T03:14:46 | 2020-06-11T03:14:46 | 271,558,840 | 0 | 0 | MIT | 2020-06-11T13:51:28 | 2020-06-11T13:51:28 | null | UTF-8 | Python | false | false | 6,629 | py | # util/__init__.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from collections import defaultdict # noqa
from contextlib import contextmanager ... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
72d39a6c4a2057758f588c718c98fe591544ee9e | 0cd64f3f67c6a3b130a788906da84ffc3d15396a | /Library/lib/python3.9/site-packages/sympy/stats/frv_types.py | 2baaa93e936929c304e4f1d3e880cd670228af8c | [
"MIT",
"BSD-3-Clause",
"0BSD",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-python-cwi",
"Python-2.0"
] | permissive | Ryorama/codeapp | 32ef44a3e8058da9858924df211bf82f5f5018f1 | cf7f5753c6c4c3431d8209cbaacf5208c3c664fa | refs/heads/main | 2023-06-26T09:24:13.724462 | 2021-07-27T17:54:25 | 2021-07-27T17:54:25 | 388,520,626 | 0 | 0 | MIT | 2021-07-22T16:01:32 | 2021-07-22T16:01:32 | null | UTF-8 | Python | false | false | 22,777 | py | """
Finite Discrete Random Variables - Prebuilt variable types
Contains
========
FiniteRV
DiscreteUniform
Die
Bernoulli
Coin
Binomial
BetaBinomial
Hypergeometric
Rademacher
IdealSoliton
RobustSoliton
"""
from sympy import (S, sympify, Rational, binomial, cacheit, Integer,
Dummy, Eq, Intersection, ... | [
"ken.chung@thebaselab.com"
] | ken.chung@thebaselab.com |
a4939c1fd486001c5569097c8d0b69969c4afcca | 06c54acbc3d93601182170eef1c8f69396644003 | /glTools-master/tools/mirrorDeformerWeights.py | fd416031993b524c6ae37273571ed212844d52a9 | [] | no_license | moChen0607/pubTool | bfb05b7ba763c325b871a60d1a690bd67d6ad888 | 16337badb6d1b4266f31008ceb17cfd70fec3623 | refs/heads/master | 2021-05-31T17:59:06.840382 | 2016-06-06T07:11:42 | 2016-06-06T07:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,666 | py | import maya.cmds as mc
import maya.OpenMaya as OpenMaya
import maya.OpenMayaAnim as OpenMayaAnim
import glTools.utils.mesh
import glTools.utils.deformer
import glTools.tools.symmetryTable
class UserInputError(Exception): pass
def mirrorWeights(mesh,deformer,axis='x',posToNeg=True,refMesh=''):
'''
Mirror deformer w... | [
"auqeyjf@163.com"
] | auqeyjf@163.com |
73b93a628abb566067c2eb92e65f7271a0f5927b | 3f309b1dd9774ca1eef2c7bb7626447e6c3dbe70 | /peripheral/can_u2003/config/can.py | 4ed9f1ab5079c421fc350bd305ee791c8a5fc871 | [
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"LicenseRef-scancode-public-domain"
] | permissive | Unitek-KL/csp | 30892ddf1375f5191173cafdfba5f098245a0ff7 | 2ac7ba59465f23959e51d2f16a5712b57b79ef5f | refs/heads/master | 2020-12-10T13:42:26.878408 | 2019-10-14T17:55:22 | 2019-10-14T17:56:20 | 233,609,402 | 0 | 0 | NOASSERTION | 2020-01-13T14:04:51 | 2020-01-13T14:04:51 | null | UTF-8 | Python | false | false | 38,515 | py | # coding: utf-8
"""*****************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* re... | [
"http://support.microchip.com"
] | http://support.microchip.com |
abc855529ce069a7208dd306d3988daf851774db | 2cfeb115b0ea14c52c3bf99abb53e935fa3d01b7 | /examples/vanilla/settings_quickstart.py | a8a2eec01f21006986c5b8f512f375b6eaf87a00 | [
"BSD-2-Clause"
] | permissive | aykut/django-oscar | 796fbc2f62d3dd7877833610f7bead2b006b9739 | ca3629e74ea1e0affc55d3de4e97f523e352d267 | refs/heads/master | 2021-01-22T07:27:59.359441 | 2011-06-30T19:36:01 | 2011-06-30T19:36:01 | 14,263,668 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,527 | py | import os
PROJECT_DIR = os.path.dirname(__file__)
location = lambda x: os.path.join(os.path.dirname(os.path.realpath(__file__)), x)
DEBUG = True
TEMPLATE_DEBUG = True
SQL_DEBUG = True
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
MANAGERS... | [
"david.winterbottom@gmail.com"
] | david.winterbottom@gmail.com |
4ca1a63aba6d81d8131ea2d1874236b45ee14bb9 | 283f85409e4aa92444fc865c802d2babd8629f88 | /app/errors/__init__.py | fab5ff4aceb9732c788992026b7de33c99e5c66b | [
"MIT"
] | permissive | tomwright01/EyeReport | df52a77b3cc6396ba51721421cc5616649286c8b | ab227190e7efe9af18125d175efd271ee11dbff4 | refs/heads/master | 2021-05-16T04:30:05.374448 | 2019-08-08T15:41:15 | 2019-08-08T15:41:15 | 106,033,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # -*- coding: utf-8 -*-
from flask import Blueprint
bp = Blueprint('errors', __name__,
template_folder='templates')
from app.errors import handlers | [
"tom@maladmin.com"
] | tom@maladmin.com |
81df5fb4cda7e31f1ab5cd5b884be42f24cade5e | 137ded4225a84d1f5f46099ef6e5545b26cc5fb2 | /Configuration/GenProduction/python/Pythia8_TuneCP5_5TeV_D0_PiK_prompt_pt1p2_y2p4_cfi.py | 6281438c1a2a5fb8c8501629827135ab0b1fc8e0 | [] | no_license | davidlw/2017FlowMCRequest | 8a27f04d5a70c3f34d003d6ea25888a691e73bb6 | c9cd086db18ec3a661482cc457a1fdb5949d3b88 | refs/heads/master | 2022-08-28T21:42:32.093605 | 2022-08-02T18:00:06 | 2022-08-02T18:00:06 | 148,789,077 | 0 | 2 | null | 2021-01-06T21:45:03 | 2018-09-14T13:01:38 | Python | UTF-8 | Python | false | false | 2,674 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from GeneratorInterface.EvtGenInterface.EvtGenSetting_cff import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaPylistVerbosit... | [
"liwei810812@gmail.com"
] | liwei810812@gmail.com |
b916f740e286b9f3ef5c7acddf84b90d8541aa80 | 452f3354c04f887103d0c7c8b4a07dd29a72eed7 | /A2/app/form.py | 3d2b4af3bc9bb7c09fc3646a81f113d6fb7cda66 | [] | no_license | wmuf/ECE1779_Cloud_Computing | 2d8b4420a26ea6169a5ad8ea13f8dd7997190f71 | 1e385a0a54d4bd8b0c3689ccb4e4064f02efb670 | refs/heads/master | 2023-07-24T16:40:45.875193 | 2021-04-20T02:41:54 | 2021-04-20T02:41:54 | 404,382,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from flask_wtf import FlaskForm
from wtforms import FloatField, IntegerField, SubmitField, validators
class AutoScalarForm(FlaskForm):
cpu_threshold_grow = IntegerField('Cpu_Threshold_Grow', [validators.optional(), validators.NumberRange(min=0, max=100, message="Please specify range from 0 to 100")], filters=[lam... | [
"david@Davids-MacBook-Pro.local"
] | david@Davids-MacBook-Pro.local |
279d8933e8c2057be7901387644e7ccbc5494a53 | a39ecd4dce4b14f5d17416233fa16c76d2d3f165 | /RepositoryBootstrap/Impl/Utilities.py | 305320a07ef4e303ff131cad0be6735155fe6662 | [
"BSL-1.0",
"Python-2.0",
"OpenSSL",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only"
] | permissive | davidbrownell/Common_Environment_v3 | 8e6bbed15004a38a4c6e6f337d78eb2339484d64 | 2981ad1566e6d3c00fd390a67dbc1277ef40aaba | refs/heads/master | 2022-09-03T19:04:57.270890 | 2022-06-28T01:33:31 | 2022-06-28T01:33:31 | 132,171,665 | 0 | 0 | BSL-1.0 | 2021-08-13T21:19:48 | 2018-05-04T17:47:30 | Python | UTF-8 | Python | false | false | 4,909 | py | # ----------------------------------------------------------------------
# |
# | Utilities.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2018-05-02 15:57:42
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2018-22.
# | Distributed un... | [
"db@DavidBrownell.com"
] | db@DavidBrownell.com |
6512eaa1731b6c91c774540047b19a5886180e3b | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /GIT-USERS/TOM2/CS32_Architecture_GP/day4/simple.py | b368bec2f1d9590d966617b2ce072a8e347ffd3e | [] | no_license | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,238 | py | # Let's build a data driven machine!
import sys
# What do we need to have our machine working?
"""
- Some sort of memory
- Some way of stopping operation
- Some way of keeping the CPU running
- Some sort of storage for local variables seperate from main RAM (memory) eg; Registers
- Some sort of operations that can be p... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
0dd564c9ec118b6ab6323eccabc8304d63041320 | 0f481498bba97a7bb9f38bc2b9a1dc5b9ebf50a5 | /Pacote-download/Exercicios/ex045.py | d818f1b6795a40fce1325086d8ba0bb24fd50a3f | [
"MIT"
] | permissive | agnaka/CEV-Python-Exercicios | d7e8efd6426d60d6920ba3cfddbd049a80e7d6da | a4299abd5da283b1b15ed2436965db162f42885f | refs/heads/master | 2022-10-23T11:45:56.298286 | 2020-06-10T21:13:15 | 2020-06-10T21:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from random import randint
print('-=' * 20)
print('\033[1;34mVAMOS A JOGAR JANKENPÔ!!!\033[m')
print('-=' * 20)
print('''SUAS OPÇÕES:
[1] Pedra
[2] Papel
[3] Tesoura''')
choice = int(input('Qual a sua escolha? '))
print('JAN')
print('KEN')
print('PO!!!')
itens = ('Pedra', 'Papel', 'Tesoura')
compu = randint(1, 3)
# pri... | [
"andresgnaka@gmail.com"
] | andresgnaka@gmail.com |
cf50250d8ef3adadc370a28b4e97588d22adf4a9 | 8898273f9811fab29eb5621734bafcdf204d8229 | /scipy-stubs/special/_precompute/expn_asy.pyi | 61ecaf6d73b6d529e4f36b9d6019a65c5721a799 | [] | no_license | tyrion/scipy-stubs | 628ad6321a7e1502683a2b55a759777508ab4b67 | bf49a91313523c4f635bc3e5d14444c1361caf64 | refs/heads/master | 2020-05-30T21:59:43.001510 | 2019-06-03T10:30:54 | 2019-06-03T10:30:54 | 189,984,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | pyi | # Stubs for scipy.special._precompute.expn_asy (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
x: Any
def generate_A(K: Any): ...
WARNING: str
def main() -> None: ...
| [
"germano.gabbianelli@contentwise.tv"
] | germano.gabbianelli@contentwise.tv |
7557b31d5f98ea2c2c7f9df591d067658163f0a1 | 3035e6a2b4e5b5662670c188785ed9fad0e1a315 | /Chapter07/example/python/permissions/can_get_all_acc_txs.py | 18c41042f78d6a276b339039ec7df00cbc8a5bdd | [
"MIT"
] | permissive | mahen92/Hyperledger-Cookbook | 52491da47ea7e4b3d988b1303ad4641d89bd3c0e | c2aaf9f9fd58757110a2a6b3ab7498da11fba254 | refs/heads/master | 2021-01-09T15:36:10.368893 | 2020-04-10T18:17:41 | 2020-04-10T18:17:41 | 242,358,174 | 0 | 0 | MIT | 2020-02-22T14:46:54 | 2020-02-22T14:46:53 | null | UTF-8 | Python | false | false | 1,308 | py | #
# Copyright Soramitsu Co., Ltd. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
import iroha
import commons
admin = commons.new_user('admin@first')
alice = commons.new_user('alice@second')
@commons.hex
def genesis_tx():
test_permissions = iroha.RolePermissionSet([iroha.Role_kGetAllAccTxs])
tx... | [
"packt.suwarnar@gmail.com"
] | packt.suwarnar@gmail.com |
ef464d2028beaa30b26f3bd7318554f2e18e9109 | 7142c3941481e661075154d714a29d5e283a3074 | /Decorator1.py | d4a71bacf012ffb8e07545dfa66863b19ccd5332 | [] | no_license | nirajan5/Demo | 5642a9669fedcca47b0304ac423c0b3e6333b8e2 | 2451875bf5698cd38af69baa117c14099951bc9f | refs/heads/master | 2023-07-27T17:04:03.689673 | 2021-09-15T11:14:25 | 2021-09-15T11:14:25 | 406,732,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def make_pretty(func):
def inner():
print("I got decorated")
func()
return inner
def simple():
print("I am simple")
simple()
# let's decorate this ordinary function
pretty = make_pretty(simple)
pretty()
| [
"jhanirajan5@gmail.com"
] | jhanirajan5@gmail.com |
f03d78865aa943a2184426a1b2b98fbe6b5b1c44 | 2d4545d2295ff88c425205af1ea593b85cf3b3c7 | /backend/manage.py | efb841ad080b09e4d08ac5b7802dcf086c4584af | [] | no_license | crowdbotics-apps/square-cloud-27361 | 202cf34b8d05497692ae16087a17dcd214526f36 | fb6441cbbf08d174c39e3d3969ce417fa44caf59 | refs/heads/master | 2023-05-04T12:43:40.597182 | 2021-05-24T23:24:56 | 2021-05-24T23:24:56 | 370,509,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'square_cloud_27361.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1f26110f249939ecb0f0260b32cca636fdea2aee | 0c534f461e9c1e8b9ef442c1bac1d7a1dea851b1 | /new_plotter.py | 0dab04a15268c6cbe758b8500943bf32a14cc5ad | [] | no_license | paulgowdy/nle | bb77e07a02e319775266091e34ad6f669d1034cd | 27c62f443b7ff6fcd3822596b86152ef2f320804 | refs/heads/main | 2023-08-03T16:44:00.607002 | 2021-09-03T04:33:12 | 2021-09-03T04:33:12 | 390,802,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | import matplotlib.pyplot as plt
import pandas as pd
runs = [
#'2021-08-05/09-53-24',
'2021-08-08/17-38-17',
'2021-08-09/17-54-30',
]
colors = ['navy','darkred','green','navy','navy','red','aqua','cyan','red','red','darkred']
prefix = "//wsl$/Ubuntu-20.04/home/paulgamble/neurips-2021-the-nethack-challeng... | [
"noreply@github.com"
] | paulgowdy.noreply@github.com |
64ff0b3da04db2adfecb58e8771034b3ad7b2520 | 859093a06bb7b8ff2c00f21d4d3052b9d6b3a580 | /schedule/widgets.py | b7aa89545511619cbebd2f923c9a003ca96d629d | [
"MIT"
] | permissive | fitahol/fitahol | bbf71b695fbacad2d3a1f99a034c041ea6069529 | ce84dc909aa98f2dc7594ef26568e015cbfe0e94 | refs/heads/master | 2021-01-19T20:18:11.677674 | 2017-02-20T14:05:39 | 2017-02-20T14:05:39 | 82,561,065 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | from __future__ import unicode_literals
from django.forms.widgets import TextInput
from django.utils.safestring import mark_safe
class SpectrumColorPicker(TextInput):
"""
Based on Brian Grinstead's Spectrum - http://bgrins.github.com/spectrum/
"""
class Media:
css = {'all': ("//cdnjs.cloudfla... | [
"lingnck@gmail.com"
] | lingnck@gmail.com |
2ddcf7148c7696de359ace2ede7a271758df3cfc | 2118f244be2e09508e3c89dee432d4a75343b430 | /Twitter Projects/twitter_sentiment_basic_with_function_RJ_Keys.py | 981ff629e356b9bde7b1e8186617e488aaf965f0 | [] | no_license | RamiJaloudi/Python-Scripts | 91d139093a95f9498a77b1df8ec2f790c4f4dd4c | 37e740a618ae543a02c38dc04a32ef95202ff613 | refs/heads/master | 2020-04-29T14:55:41.108332 | 2019-03-18T05:42:06 | 2019-03-18T05:42:06 | 176,212,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
#consumer key, consumer secret, access token, access secret.
ckey="r2I3FdcFB3WRKpKoxhpb9pkra"
csecret="Snt0LzxPyKIUQphTQmbsf0DKPALKPfCAy4Jjr3g9O3A93AGdHM"
atoken="18894514-JsJsbjRkWF4jgA7nrMyNYfLR3RccNSUlTzrYO5shJ"
a... | [
"rjaloudi@gmail.com"
] | rjaloudi@gmail.com |
65398257cd8f44323e9a0e99c7ed1824e8f632ba | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/_configuration.py | 38ab1c393bb97968a488f5f477a42303c3b73493 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 3,523 | 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"
] | gaoyp830.noreply@github.com |
3e9404e4d11e541baa608263d9150e061d42f754 | 7343ece3b82ac87a594865c4074623b45b0297b4 | /tests/push/test_bulk_push_rule_evaluator.py | 7c23b77e0a11be202bca81598c6613e73eb667d8 | [
"Apache-2.0"
] | permissive | matrix-org/synapse | a00111f83310783b78e2996557f8bbae4d9fb229 | d35bed8369514fe727b4fe1afb68f48cc8b2655a | refs/heads/develop | 2023-09-05T05:24:20.808942 | 2023-09-04T16:14:09 | 2023-09-04T16:14:09 | 22,844,864 | 12,215 | 2,869 | Apache-2.0 | 2023-09-14T15:20:48 | 2014-08-11T15:51:42 | Python | UTF-8 | Python | false | false | 16,762 | py | # Copyright 2022 The Matrix.org Foundation C.I.C.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | matrix-org.noreply@github.com |
248c9152bbb8623c6fc0909ddc639ffa604c646b | 99e4d9226e124215aaf66945cfaa5c42d18cc19f | /questionbot/matchableSentence.py | 08fc5ea5a19bf209ddf7989190890511301aaabe | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | mathieucaroff/oxowlbot | d826423a1a4cca8a38c90383d0a71dbb40052f35 | a10c12b7c94b3e7030cef2f57c567bbd3034c8c9 | refs/heads/master | 2022-04-18T14:06:29.049957 | 2020-04-22T14:44:57 | 2020-04-22T14:44:57 | 255,177,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | import logging
from typing import List
from .stanza.pword import PWord
symbolMap = {
-6: "<=-",
-5: "<-=",
-4: "<--",
-3: "<=",
-2: "<-",
-1: "<",
0: "==",
1: ">",
2: "->",
3: "=>",
4: "-->",
5: "=->",
6: "-=>",
}
def matchableSentence(wordList: List[PWord]) -> st... | [
"mathieu.caroff@free.fr"
] | mathieu.caroff@free.fr |
9e367421bb74b17511012b38e47f3fc511540a62 | f98347c036a98c32a0c72c49bf1e298588d48bab | /MyProjectRest/MyProjectRest/settings.py | bdbb19e0337188845c243b6cae3526de63938721 | [] | no_license | ikki2530/django_isfun | 2de26ceb1e3e2a76063dcd602f8c3afa627713cb | 91615c96b2297005ca3a21edc123466ca7d4ae18 | refs/heads/master | 2022-12-26T21:14:29.824341 | 2020-10-16T16:21:43 | 2020-10-16T16:21:43 | 288,185,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | """
Django settings for MyProjectRest project.
Generated by 'django-admin startproject' using Django 2.2.11.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"dagomez2530@gmail.com"
] | dagomez2530@gmail.com |
10f1a2beeb2f92dd6f7c12c073707ab12b23578b | 176497ba1cea7233f249a5f439a65f7c472b267f | /11_polls_part_4/02_refactor_using_django_form/feed/forms.py | b6e2d79cd5ed81d818be9a91bfe921cbf89f9fc8 | [] | no_license | CodingNomads/django-web-dev | 79a3a94707489ca0d5f0bf49193b7ffdf6270f4a | e03b8ed130f100afb0296c0d76a84206fbbf789d | refs/heads/master | 2023-05-02T05:12:21.427462 | 2022-11-06T17:56:14 | 2022-11-06T17:56:14 | 235,174,521 | 1 | 7 | null | 2023-04-21T20:54:10 | 2020-01-20T18:53:31 | Python | UTF-8 | Python | false | false | 489 | py | from django import forms
from django.utils.html import strip_tags
from .models import Post
class PostForm(forms.ModelForm):
body = forms.CharField(required=True,
widget=forms.widgets.Textarea(
attrs={
'placeholder': 'P... | [
"breuss.martin@gmail.com"
] | breuss.martin@gmail.com |
ed2b24be9e79cc47a29adef832946f1b9008a54f | 3a298c93b67386392d3dee243671f2c101decf01 | /hackerrank/interview-preparation-kit/string-manipulation/02_alternating_characters.py | 4ed83c47964e820fee050e52be5a67ab600cced2 | [] | no_license | Zahidsqldba07/coding-problems-2 | ffbc8408e4408fc846c828af2ec50a9d72e799bc | 020bffbd14ca9993f1e678181ee7df761f1533de | refs/heads/master | 2023-06-26T11:05:34.089697 | 2021-07-21T15:16:10 | 2021-07-21T15:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | def alternatingCharacters(s):
min_dels = 0
for i in range(1, len(s)):
if s[i] == s[i-1]:
i += 1
min_dels += 1
return min_dels | [
"alvee.akand@outlook.com"
] | alvee.akand@outlook.com |
06987b844ae674541272c3184dcb10864d851190 | 1498148e5d0af365cd7fd16197174174a7fa9800 | /t001125.py | fbab733d238bfb3ac8c2b42ba0affa9097b2b6e9 | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | def iToR(n):
c = [["","I","II","III","IV","V","VI","VII","VIII","IX"],
["","X","XX","XXX","XL","L","LX","LXX","LXXX","XC"],
["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM"],
["","M","MM","MMM"]]
s = ""
s += c[3][n // 1000 % 10]
s += c[2][n // 100 % 10]
s += c[1]... | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
16e2f39d93d44121207666aaed39b10a375cc842 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /bBExn57vLEsXgHC5m_18.py | 3f968eb28deda866f7bf09e4165adcac6ad9b42e | [] | 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 | 651 | py | """
Create a function that returns `True` if three points belong to the same line,
and `False` otherwise. Each point is represented by a list consisting of an x-
and y-coordinate.
### Examples
same_line([[0, 0], [1, 1], [3, 3]]) ➞ True
same_line([[-2, -1], [2, 1], [0, 0]]) ➞ True
same_line([[... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
77a7abbd67fc0f5d958444057b77e1fa3518e3fa | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/monitoring/dashboard/v1/monitoring-dashboard-v1-py/google/monitoring/dashboard_v1/types/xychart.py | d94061b1defd3543e734bee18c04bf35a39253da | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,725 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
a132f26dbd5f323274528482518a0db067ccaee7 | 24cce1ec7737f9ebb6df3e317a36c0a0329ec664 | /HZMX/amazon_api/wizard/__init__.py | ec88e0a602a1466bc35254ab81c4e14fb0155649 | [] | no_license | tate11/HangZhouMinXing | ab261cb347f317f9bc4a77a145797745e2531029 | 14b7d34af635db015bd3f2c139be1ae6562792f9 | refs/heads/master | 2021-04-12T04:23:20.165503 | 2018-03-14T05:02:05 | 2018-03-14T05:02:05 | 125,855,729 | 1 | 0 | null | 2018-03-19T12:42:07 | 2018-03-19T12:42:07 | null | UTF-8 | Python | false | false | 183 | py | # -*- coding: utf-8 -*-
from . import amazon_wizard
from . import shop_template_wizard
from . import sync_sale_order
from . import stock_adjust
from . import stock_immediate_transfer | [
"1121403085"
] | 1121403085 |
e9f2bec9246fd4ed09f7d97c23f46e5fcf455a55 | 7dd1738268b4ebb721592b02080626799f3c6eed | /tests/test_textparser.py | d32dae4bb5571e0834d0263cf72ec0b74ea70c68 | [
"MIT"
] | permissive | Afsaan/textparser | f721dad1aa8fd36d21274ea4cf5ec5722561fe8c | cc4a85f8b7e6d6be83f5072f45af4a7baf6c35df | refs/heads/master | 2022-04-06T03:27:03.962419 | 2020-01-02T14:51:05 | 2020-01-02T14:51:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,626 | py | import unittest
from collections import namedtuple
import textparser
from textparser import Grammar
from textparser import Sequence
from textparser import Choice
from textparser import choice
from textparser import ChoiceDict
from textparser import ZeroOrMore
from textparser import ZeroOrMoreDict
from textparser impor... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.