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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c9414ff0b1ae2690ac0081b6f6d763c45fc86c7 | 9c5959525e2ed50ac4967a67eff92742e3d6e130 | /src/logpipe/tests/unit/test_producer.py | b661fd147c028dec3e35b18c1354d39b7967ddf1 | [
"ISC"
] | permissive | thelabnyc/django-logpipe | 3fd5802fd2ea213f54cf275407ef203cc2cbe7e5 | 6249ee310b7497ba6987533628b94eae1f13d62f | refs/heads/master | 2023-06-08T13:08:46.959986 | 2023-06-07T19:32:30 | 2023-06-07T19:32:30 | 81,469,477 | 41 | 22 | ISC | 2023-02-23T19:17:09 | 2017-02-09T16:19:14 | Python | UTF-8 | Python | false | false | 2,911 | py | from django.test import TestCase
from rest_framework import serializers
from logpipe import Producer
from logpipe.tests.common import StateSerializer, StateModel, TOPIC_STATES
from unittest import mock
class CustomStateSerializer(StateSerializer):
my_ser_method_field = serializers.SerializerMethodField()
def... | [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
a532b2b37b902b4e0574208865d5d46e7bc60ac9 | 7fae887c73cc6df8de886897114eb07c28674fa7 | /cs101/unit17/17_3.py | d9f6636807f0353a4d6c8bb8cbf2ce02e4a319d8 | [] | no_license | thinkreed/pyf | 24960e3523be3c2e1661608f60f866a5cd7e747f | 04f5e7f46aa95719f848bb64a512458895147da3 | refs/heads/master | 2022-12-10T17:43:49.709946 | 2019-06-13T01:13:00 | 2019-06-13T01:13:00 | 109,550,040 | 2 | 0 | null | 2022-12-08T05:14:52 | 2017-11-05T03:53:51 | Python | UTF-8 | Python | false | false | 637 | py | def convert_seconds(seconds):
result = ''
hour = int(seconds / 3600)
if hour == 1:
result = result + '1 hour, '
else:
result = result + str(hour) + ' hours, '
minute = int((seconds - hour * 3600) / 60)
if minute == 1:
result = result + '1 minute, '
else:
resul... | [
"thinkreed2017@outlook.com"
] | thinkreed2017@outlook.com |
c0467f1e891559d92bb28f7faef75f532c481d5a | e96e03300af5aeb41b9ced0febefa4fb4a12cd28 | /to_nwb/Losonczy/sebi2NWB.py | d2880f6b2b292b29a4fdec384af322b674e57ace | [
"BSD-3-Clause"
] | permissive | deeptimittal12/to_nwb | 4db72499e1696a8d73739aede365b6a4ea878dd7 | 9876a1baf4faf56ba54fe8ff7359129450e2aca0 | refs/heads/master | 2021-05-19T13:12:45.463079 | 2019-06-19T22:09:02 | 2019-06-19T22:09:02 | 251,717,287 | 1 | 0 | BSD-3-Clause | 2020-03-31T20:00:22 | 2020-03-31T20:00:22 | null | UTF-8 | Python | false | false | 12,559 | py | # coding: utf-8
# Note: Use conda env py2
import os
import sys
from dateutil.parser import parse
from pytz import timezone
from tqdm import tqdm
from glob import glob
from hdmf.data_utils import DataChunkIterator
from hdmf.backends.hdf5.h5_utils import H5DataIO
import h5py
import numpy as np
from pynwb import NWB... | [
"ben.dichter@gmail.com"
] | ben.dichter@gmail.com |
6c670702eefa0b61dce50b7f3d3c2a48332cfbcd | 8f0c110f2237ae79e74adc92d8b5e3d509cab0b7 | /docs/conf.py | 6f60fd2f8b73010bec976ec91b98d021bb280c3f | [
"MIT"
] | permissive | roadsideseb/geldmaschine | 9cced46eed5b9c27015c8f7c595a0ada8a9958d1 | 138fc9c7780aba81df1ca1651f913841d8f4162f | refs/heads/master | 2022-10-10T03:29:02.280921 | 2013-11-24T02:49:09 | 2013-11-24T02:49:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,422 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# au... | [
"sebastian@roadside-developer.com"
] | sebastian@roadside-developer.com |
1fb09e66e2057c2752af493ba60cbab5af34b6bd | 76e9afdf16eabcc9e1a3facd308e56362112efc4 | /sub/csv_pic.py | 06a87e537ded1cff154cb7f7a395edb22a336962 | [] | no_license | rerejii/pwb_work_2021 | c65c5e787ad98b7d847cb63ebadc24a02f001e90 | 8ecfb2a98d9d396ed505ecc939e384cf6400412d | refs/heads/main | 2023-03-30T10:43:18.115386 | 2021-03-24T05:38:41 | 2021-03-24T05:38:41 | 350,954,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,388 | py | import os
import glob
import csv
import sys
import numpy as np
import pandas as pd
from natsort import natsorted
import matplotlib.pyplot as plt
# csv_path = [
# 'unet_cw4-1-5_fin-none_logit-true_thr-d0/unet_cw4-1-5_fin-none_logit-true_thr-d0-A/CsvDatas/step_accuracy.csv',
# 'unet_cw4-1-10_fin-none_logit-true_... | [
"hayakawa.shinya.kochi@gmail.com"
] | hayakawa.shinya.kochi@gmail.com |
b7a2586b27817f4d347c45148706729e6db0737d | 4dc0fdf4484fde4b0c659e4a2b17aba1cea89d10 | /cgen.py | d803b26598cb1fd7d46722523025df30bcc0cde4 | [] | no_license | rubcuadra/compilador_artesanal_c- | fcff5d8db0bdfe497e2c7207d14b81eef023837d | aee2c409dbc6d92888a32476f851373d5222dce8 | refs/heads/master | 2020-03-27T12:26:58.633438 | 2018-11-22T02:51:15 | 2018-11-22T02:51:15 | 146,547,078 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,437 | py | from semantica import tabla
WORD_SIZE = 4 #Bytes
class CodeGenerator(object):
"""docstring for CodeGenerator"""
def __init__(self, filePath):
super(CodeGenerator, self).__init__()
self.filePath = filePath
def __enter__(self):
self.openFile()
return self
def __e... | [
"rubcuadra@gmail.com"
] | rubcuadra@gmail.com |
fcaea24bc1d108bc1f68cf3ef1e5861d7f21a59b | 4fa0d9d733112ca859db075711cd88353c099730 | /jedi/evaluate/gradual/conversion.py | ac0382a5495cb6feca5ec85a36ea61161d4995ed | [
"MIT"
] | permissive | lqhSniper/jedi | 3779bc603fbd7f4523da85351a8ec85af000bf2d | 097b073d20d4527edf477c654268be4915c7436f | refs/heads/master | 2020-06-03T12:43:39.310582 | 2019-06-12T08:00:45 | 2019-06-12T08:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,447 | py | from jedi import debug
from jedi.evaluate.base_context import ContextSet, \
NO_CONTEXTS
from jedi.evaluate.utils import to_list
from jedi.evaluate.gradual.stub_context import StubModuleContext
def _stub_to_python_context_set(stub_context, ignore_compiled=False):
stub_module = stub_context.get_root_context()
... | [
"davidhalter88@gmail.com"
] | davidhalter88@gmail.com |
c755120d639ddfe893555bf5e44b83bb28152f18 | c07232b901a49fb1a7cacc5aa87bb52f5bb9c362 | /ex4.py | 16c33d5d1bc94dcac9cbb40ac624d291b6429546 | [] | no_license | zhanlu-wm/LPTHW-Exercises | 099b57a5a377d511317928a05efadd27c9c42b33 | 580ddd629fb87975b75cf8d6b81ea96a67c5e268 | refs/heads/master | 2021-06-27T06:53:13.851670 | 2017-09-18T15:11:57 | 2017-09-18T15:11:57 | 103,128,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #--coding: utf-8--
# 汽车总数
cars = 100
# 每个汽车的座位数
space_in_a_car = 4.0
# 司机数量
drivers = 30
# 乘客数量
passengers = 90
# 计算缺少司机的汽车数量
cars_not_driven = cars - drivers
# 可以被驾驶的汽车数量
cars_driven = drivers
# 计算可以提供的总的座位数
carpool_capacity = cars_driven * space_in_a_car
# 计算每辆车中的平均乘客数量
average_passengers_per_car = passengers / cars... | [
"ncu09wangming@163.com"
] | ncu09wangming@163.com |
a016ee77a459b06182b22531f0a464bd7e9c5af0 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/48b999244616204b800161dd3b775b9bf2a26081-<associate_ip_address>-fix.py | 54d5a4eeb5decbb3be79e5125e18d13026c75251 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | def associate_ip_address(self, ip_address):
self.result['changed'] = True
args = {
'account': self.get_account(key='name'),
'domainid': self.get_domain(key='id'),
'projectid': self.get_project(key='id'),
'networkid': self.get_network(key='id'),
'zoneid': self.get_zone(key... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
418c7b4cbd5412ffd4b586b83854c4878c1e629f | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /122.py | 0c17bc2c69972e96999bc45be075f641628f26f2 | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) == 0:
return 0
return sum(max(prices[i + 1] - prices[i], 0)
for i in xrange(len(prices) - 1))
| [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
ef8b00677149c3174a3fdbec838c284f02f0619a | 474600eedd033617358b545d9bfb44a4c50d5a8c | /examples/0D_sizing/create_figures_for_poster.py | a31ecc27e05fcf2d2fb758d7ef842c721edd06b4 | [
"MIT"
] | permissive | EnergyModels/estorage | d910a902e2d6e02b8fc11b38aefecee53cd8d039 | 0f84c87632dba1ff0564ffb68f59ece314f67022 | refs/heads/master | 2020-04-16T16:07:54.482250 | 2019-03-05T18:38:12 | 2019-03-05T18:38:12 | 165,726,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set_style('white')
#================================
#================================
#
# %%=============================================================================#
# Figure Monte Carlo Simulation
results_filename = "results_m... | [
"jab6ft@virginia.edu"
] | jab6ft@virginia.edu |
538d72cc60b8c501273909a2461d6536876f426d | a7587f813492163433202e244df2237c9993a1a1 | /accounts/models.py | 0d40f44c7747b8e5dc6695f2552c04512d6f3e93 | [] | no_license | kamran1231/E-COM-WEBSITE-2021 | 3a10bc0059f4d29fc52ee029e4919d4f965174c6 | 32214468cf716cc312a63f6346b8c844f720abda | refs/heads/master | 2023-06-01T03:18:03.137405 | 2021-07-04T14:20:16 | 2021-07-04T14:20:16 | 381,634,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser,BaseUserManager
# Create your models here.
class MyAccountManager(BaseUserManager):
def create_user(self,username,first_name,last_name,email,password=None):
if not email:
raise ValueError('User must have an ema... | [
"khanbrother805@gmail.com"
] | khanbrother805@gmail.com |
3bbdefe819a26547f8864dc42f4c168bd02d304f | 8065409913cc84af9cab97703e9928700a7d6ee9 | /rr/unverified/call.py | 85bf3187eadf17c5053ed517d3d5dcef3a562ccb | [] | no_license | 2xR/legacy | 678b6d77a11fe9705e6156589e67504e710d42de | 56099d07bdbc6feb7ebc848a37d5940cbd5f5552 | refs/heads/master | 2021-01-16T22:13:34.380662 | 2016-07-07T17:47:14 | 2016-07-07T17:47:14 | 62,826,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,164 | py | from types import MethodType
from functools import wraps
from collections import Iterable
from utils.multidict import merge
from utils.prettyrepr import prettify_class
def curry(func, *args, **keywords):
"""This function does the same as functools.partial, but this actually creates a function
object. This ha... | [
"rui.jorge.rei@googlemail.com"
] | rui.jorge.rei@googlemail.com |
b3ce3fc8cde11a5b45713da77878db1ff493e64d | 62b8ad2d98e2b8ba9eb9d3f6d6c28e8066af1bf6 | /pypykatz/alsadecryptor/__init__.py | 0b2b9cd47bb86bbba25ca5cce6845dd10ac4ab01 | [
"MIT"
] | permissive | s1ntaxe770r/pypykatz | 560698425ddeda2906c54f100e11bf5613c62e61 | 15f4cde7c9ac41a56202147d16d5bff3581649ae | refs/heads/master | 2023-03-22T16:29:11.538561 | 2021-03-14T23:55:19 | 2021-03-14T23:55:19 | 347,998,355 | 1 | 0 | MIT | 2021-03-15T14:19:12 | 2021-03-15T14:19:11 | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/env python3
#
# Author:
# Tamas Jos (@skelsec)
#
from .lsa_templates import *
from .lsa_decryptor import *
from .packages import * | [
"info@skelsec.com"
] | info@skelsec.com |
43d890a6297136a8755b2dcc3ffd443c9f464fdc | 07f79f86cdfb85af0b3b9cb57d33c8016338ce30 | /OOP/song.py | 0a9f5a7ca13dc08b15e971dfa890fdc855bc453b | [] | no_license | ralex1975/Python_learning_curve | 57ba0b7da7cc427a540b87f5ba621cafb5dabf1e | 76860db6c27057d31537b931557b724daf60f8aa | refs/heads/master | 2022-11-13T22:45:05.789366 | 2020-07-11T11:09:26 | 2020-07-11T11:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,900 | py | class Song:
'''Class to represent a song
Attributes:
title(str): The title of the song
artist (str): Name of the song's creator
duration (int): The duration of the song in seconds'''
def __init__(self, title, artist, duration=0):
self.title = title
self.artist =... | [
"kbsawant1005@gmail.com"
] | kbsawant1005@gmail.com |
cbe80adf13a19f331b5af748c497eadf900defc5 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/coghq/FoodBeltBase.py | 5637e6eede8f751d1eaee9ee187c68fcd402e572 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class FoodBeltBase:
"""Hold methods and constants shared in client and AI versions."""
NumFoodNodes = 4 # number of platters on the up side of the belt
| [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
c1a29e5a8ffb5dc18760bccef9aecc8adf841b71 | 0b69a011c9ffee099841c140be95ed93c704fb07 | /problemsets/Codeforces/Python/B1099.py | 6fbb485ddb0d0096c311a76668a863772bdbc531 | [
"Apache-2.0"
] | permissive | juarezpaulino/coderemite | 4bd03f4f2780eb6013f07c396ba16aa7dbbceea8 | a4649d3f3a89d234457032d14a6646b3af339ac1 | refs/heads/main | 2023-01-31T11:35:19.779668 | 2020-12-18T01:33:46 | 2020-12-18T01:33:46 | 320,931,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | """
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
n=int(input())
a=int(n**.5)
print(a+0--n//a) | [
"juarez.paulino@gmail.com"
] | juarez.paulino@gmail.com |
75e583eb77ee69ccb3c676f21f76b43d01f06f91 | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /django/django_submissions/django_assignment_004/django_assignment_004/urls.py | 24647df26fa39d0da50121d04de430d6aef009e1 | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """django_assignment_004 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
b5b0659496ad0bdc04107bf8bb836adfb8a371af | aa0270b351402e421631ebc8b51e528448302fab | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/operations/_managed_clusters_operations.py | 53f1ae474501a7dce68f3cc224d91c04fb95c03d | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 116,576 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
119a80f64936bc78528d417fb9babd1045249e99 | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/AndroidUnlockPatterns.py | 10c9e8bec81b76a4961af259c0e41488b877d624 | [
"Apache-2.0"
] | permissive | JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | Python | UTF-8 | Python | false | false | 12,349 | py | __source__ = 'https://leetcode.com/problems/android-unlock-patterns/#/description'
# https://github.com/kamyu104/LeetCode/blob/master/Python/android-unlock-patterns.py
# Time: O(9^2 * 2^9)
# Space: O(9 * 2^9)
#
# Description: Leetcode # 351. Android Unlock Patterns
#
# Given an Android 3x3 key lock screen and two inte... | [
"b92701105@gmail.com"
] | b92701105@gmail.com |
82518894174b1d751b12bd3d885a48b24f364b6a | 9fd4f11f22288653c36326dd9a70afa19735b73a | /scripts/train_cnn.py | b142576d1b4ffd225018c1f938348d7003ed391c | [
"MIT"
] | permissive | hwpang/learn134k | 2d5fc296795b697296930d76a5073a700ce01763 | 7f6558cdf49782f231faeba32ae34a59408a021b | refs/heads/master | 2021-09-15T23:44:44.591505 | 2018-06-12T23:05:26 | 2018-06-12T23:05:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,655 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import argparse
import logging
import os
import random
import shutil
import sys
from l134k.tensors import structs_to_tensors
from l134k.predictor import Predictor
from l134k.settings import tensor_settings, model_settings, train_settings
from l134k.util import pickle_load
... | [
"cgrambow@mit.edu"
] | cgrambow@mit.edu |
294e49dbe9458ced3e84b532bd041bc7a47f25dc | 0556d594c99411655cb7ef56e01d015b288156aa | /apps/activity/migrations/0001_initial.py | 098d17716c5d260c52feed7ac282b5dd2b1eed04 | [] | no_license | areaconnect/socialnetwork | 2680cf6ede3db6c11d95669bb3d2c72c933db1e7 | c173188b75efd00916ac312b14c5cb3b4260b696 | refs/heads/master | 2022-12-07T09:07:11.269346 | 2019-12-10T21:27:55 | 2019-12-10T21:27:55 | 227,139,484 | 0 | 0 | null | 2022-11-22T02:58:30 | 2019-12-10T14:22:31 | JavaScript | UTF-8 | Python | false | false | 1,231 | py | # Generated by Django 2.1.10 on 2019-11-29 08:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('con... | [
"kraft.developer@gmail.com"
] | kraft.developer@gmail.com |
66a866c368dd0025f7c87f164d54aa677cc05fa8 | af259acdd0acd341370c9d5386c444da6a7a28a6 | /Machine-Learning-with-Tree-Based-Models-in-Python/01-Classification-and-Regression-Trees/02-Evaluate-the-classification-tree.py | f9d294ab3bd046cdaf42613dfa2e69bced1c83c0 | [] | no_license | pace-noge/datacamp | fcd544f6478040660f7149b1a37bfd957eef9747 | eeffb8af233e7304c0f122a48e6b4f78ee7c650e | refs/heads/master | 2020-07-04T12:41:29.635167 | 2019-09-17T10:11:39 | 2019-09-17T10:11:39 | 202,289,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """
Evaluate the classification tree
Now that you've fit your first classification tree, it's time to evaluate its performance on the test set. You'll do so using the accuracy metric which corresponds to the fraction of correct predictions made on the test set.
The trained model dt from the previous exercise is loaded... | [
"noreply@github.com"
] | pace-noge.noreply@github.com |
ed2e5de0d98ec26b4b5fe31da02154def408a0f9 | 661935096424e1713234fc2774f29fd62340f9ca | /chat/utils.py | 6a35e20daf02a1723a142b68f5ad1be4eb341a5e | [
"Apache-2.0"
] | permissive | claudiobat/uniTicket | 6fd16751222bf5de9cc30811bddef10038a60d4b | a5f9e6d218e7e16397c0683d87119c4ad756e969 | refs/heads/master | 2023-06-06T08:07:09.372944 | 2021-04-09T21:12:21 | 2021-04-09T21:12:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from django.apps import apps
from organizational_area.models import OrganizationalStructure
from uni_ticket.utils import user_is_operator #, user_is_in_default_office
def chat_operator(user, structure_slug):
if not structure_slug: return False
if not user: return False
structure = OrganizationalStructure... | [
"francesco.filicetti@unical.it"
] | francesco.filicetti@unical.it |
aa5b3cf31e1079486800abd7cd12758018b1fde6 | 50f57af6bc95c755597074138ebef2200c0e0022 | /0410考试/考试内容讲解思路/字符串单词反转.py | fbfd82209e817ea6d9ba05a66a74cb4fd84434af | [] | no_license | qiaoy9377/python-base | f18666c1851f5d5f214b72723e04298471e55d63 | 6c7e4acf96d3582b85464efb8f9d5a6d6d8c2271 | refs/heads/main | 2023-04-05T05:42:40.021651 | 2021-04-20T12:53:10 | 2021-04-20T12:53:10 | 359,812,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | str1 = 'welocme to super&Test'
#将字符串用空格切割
list1 = str1.split(' ')
#定义一个空列表,用来存储转换后的字符串
list3 = []
#循环遍历列表元素
for str2 in list1:
#将字符串转换为列表
list2 = list(str2)
#获取字符串的长度
l = len(str2)
for i in range(l//2):
#将字符串的位置进行互换
list2[i],list2[l-1-i] = list2[l-1-i],list2[i]
#将列表内容拼接为字符串
s... | [
"18335909377@163.com"
] | 18335909377@163.com |
c45fdcea75cf1a88e4de22b4848f278abb89c6fb | 2cfcc435d82455e5273c2643092cda8f641e1f50 | /portfolio/migrations/0018_auto_20190711_1623.py | bc1ab6f81f77e756fc7e3a60190a34cf00789f7a | [] | no_license | iAnafem/My_website | bdc8804bfe099e095faa96233d138278d9a8f11b | 6cb1498809ef2027b419960544c8101649cb5c89 | refs/heads/master | 2022-12-09T15:23:32.717676 | 2019-08-22T20:03:45 | 2019-08-22T20:03:45 | 187,834,896 | 0 | 0 | null | 2022-12-08T05:51:02 | 2019-05-21T12:41:47 | Python | UTF-8 | Python | false | false | 1,093 | py | # Generated by Django 2.2.3 on 2019-07-11 13:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('portfolio', '0017_auto_2... | [
"DPronkin@mostro.ru"
] | DPronkin@mostro.ru |
8657dbd428159ba5cfb1134ccd612237a961af8f | 8f68af7b8854d8c5000f8ecbe3a3c4330b4d6a7c | /docs/interviewPrep/designPatterns/Structural_patterns/Composite/python/MobilePhone.py | a784c5c643595f2a33b956b4a264e8fe4a50f55b | [] | no_license | reshinto/reshinto.github.io | 7590d0fb26cbf239b2545fd3b745416ab31aa7aa | 71e5b82d49a11d9a9171a38bcb3ac23dd07ee62f | refs/heads/dev | 2022-12-05T13:45:53.578262 | 2022-12-01T15:34:59 | 2022-12-01T15:34:59 | 211,689,735 | 6 | 0 | null | 2022-08-07T22:07:36 | 2019-09-29T16:11:25 | TypeScript | UTF-8 | Python | false | false | 298 | py | from Item import Item
class MobilePhone(Item):
def __init__(self, name, color, cost):
super().__init__(name, "Mobile Phone")
self.color = color
self.cost = cost
def getDetails(self):
print(f"{self.getName()} :: {self.color} color, priced at {self.cost}")
| [
"terencekong2002@gmail.com"
] | terencekong2002@gmail.com |
da5d6e364f55968c5306c666b6a3bab683eddcc6 | 1645547100c972ae916ce17ccacd71dad73ae50f | /pysot/core/config.py | 978566933807782b7045a43c3d55fcb45de1792b | [
"Apache-2.0"
] | permissive | tsingqguo/AttackTracker | 967c18272d77ce5f56ccc8b90b3e5c50d130288f | 054268d5afa0044675c7acf1ac13e621f1c9549e | refs/heads/main | 2023-01-12T22:34:25.644747 | 2020-11-25T16:10:45 | 2020-11-25T16:10:45 | 315,926,436 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,323 | py | # Copyright (c) SenseTime. All Rights Reserved.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from yacs.config import CfgNode as CN
__C = CN()
cfg = __C
__C.META_ARC = "siamrpn_r50_l234_dwxcorr"
__C.CUDA = True
... | [
"tsingqguo@tju.edu.cn"
] | tsingqguo@tju.edu.cn |
79cddf3c54ffb8da2d15198a1adb292c0553ce0b | 7103e8c2f689d0d23254d98b6cce65606fbd474a | /solutions/278.py | 5e01f625a361a1747e7596900831c6cd078c32f1 | [] | no_license | DanqiChang/leetcode-notes | 18bb10f329d214b805568d4c7270042ab97e3c1f | b81dd2bc5839e60dfa5efa712ed00e0876ca173e | refs/heads/master | 2020-03-28T20:25:10.612938 | 2018-09-17T04:32:42 | 2018-09-17T04:32:42 | 149,068,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | """
{
"difficulty": "easy",
"link": "https://leetcode.com/problems/first-bad-version/description/",
"category": ["binary-search"],
"tags": [],
"questions": []
}
"""
# The isBadVersion API is already defined for you.
# @param version, an integer
# @return a bool
# def isBadVersion(version):
class S... | [
"huangyc96@gmail.com"
] | huangyc96@gmail.com |
520c2b497e694834df5813a58fe83d82c7f8ec13 | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNoticeSpiders/HuayinjingzhiInvest.py | 581422e1b6d31bac9da7f2d5b174dcf02d7d25d7 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from urllib.parse import urljoin
from scrapy.utils.response import get_base_url
from FundNoticeSpiders import GGFundNoticeItem
from FundNoticeSpiders import GGFundNoticeSpider
class HuayinjingzhiInvestSpider(GGFundNoticeSpider):
name = 'FundNotice_Huayinjingz... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
cd1626817833ed185ae7c49479c25dc0a6da75d3 | f937ebb7738aebe507a2ded451ebdb547d262b01 | /setup.py | 7aa2e846c7772c6434fa25f552d25ab6238df692 | [] | no_license | miracle2k/gevent-erlang-mode | 4226563734585e8b8d9a7450f98df00908332131 | ec3dc18236fb13cc43fdf555de9abbe8ebfeb05e | refs/heads/master | 2020-05-05T02:49:09.397175 | 2012-04-14T13:55:31 | 2012-04-14T13:55:31 | 3,824,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='gevent-erlangmode',
url='https://github.com/miracle2k/gevent-erlang-mode',
license='BSD',
version='0.0.1',
packages=find_packages(),
zip_safe=False,
classifiers=[
'Development Status :: 4 -... | [
"michael@elsdoerfer.com"
] | michael@elsdoerfer.com |
4e226e0d2d94eedcb7c64de96a8595be804f18b9 | b162de01d1ca9a8a2a720e877961a3c85c9a1c1c | /893.groups-of-special-equivalent-strings.0.python3.py | 91c9589fbb15d771896d6f3b6195abea9f79ddf4 | [] | no_license | richnakasato/lc | 91d5ff40a1a3970856c76c1a53d7b21d88a3429c | f55a2decefcf075914ead4d9649d514209d17a34 | refs/heads/master | 2023-01-19T09:55:08.040324 | 2020-11-19T03:13:51 | 2020-11-19T03:13:51 | 114,937,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | #
# [929] Groups of Special-Equivalent Strings
#
# https://leetcode.com/problems/groups-of-special-equivalent-strings/description/
#
# algorithms
# Easy (60.51%)
# Total Accepted: 7.4K
# Total Submissions: 12.2K
# Testcase Example: '["a","b","c","a","c","c"]'
#
# You are given an array A of strings.
#
# Two strings... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
802fd6d56a90433fbcffa5978fd3deb18576e6aa | c0cbcf1d1b42495fdb70ad62d3bb954be2b0c322 | /learn/healthyprogrammer.py | f48c948b08ab532b981232eedaf7edd930d302d7 | [] | no_license | pranjalparmar/Learn-Python | 98ec11e9cab3d29d5e1e176e4b9ec3f4e232e78e | c377f8c0eca791b43ae55fae797e4f3fb6a3bcfc | refs/heads/main | 2023-02-28T17:42:53.271860 | 2021-02-06T11:18:45 | 2021-02-06T11:18:45 | 336,462,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | from pygame import mixer
# Starting the mixer
mixer.init()
# Loading the song
mixer.music.load("F:\Kahani Ansuni\Background Music\y2mate.com - Best of Sad Cinematic Background Music Emotional Dramatic Music Instrumental - by AShamaluevMusic_uIFFF8p11Hk.mp3")
# Setting the volume
mixer.music.set_volume(1... | [
"noreply@github.com"
] | pranjalparmar.noreply@github.com |
d94b73a67e21fcc927547b7df84e50cfb2033cf6 | 0d2e8b7f26dc4ddd3029b6a70e82491bd859144a | /open_alchemy/schemas/validation/helpers/value.py | d8fde58875f120e6750b94478ddb35e0b4974974 | [
"Apache-2.0"
] | permissive | ali1rathore/OpenAlchemy | c88fba08667fc6a83c929995d7c35467a4a16d62 | e5456af583a248e5f6e6e9e6dbc6273594241b1d | refs/heads/master | 2023-02-08T17:55:34.061575 | 2020-12-28T07:54:08 | 2020-12-28T07:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | """Validate the full schema (property, source and referenced)."""
import typing
from .... import helpers as oa_helpers
from .... import types as oa_types
def check_matches(
*,
func: oa_helpers.peek.PeekValue,
reference_schema: oa_types.Schema,
check_schema: oa_types.Schema,
schemas: oa_types.Sch... | [
"anderssonpublic@gmail.com"
] | anderssonpublic@gmail.com |
be9564a341da6e7046c0dcbf6a054325f0b6853c | bd1b1fda138e6687dadc57317c3e312bc8872600 | /mycode/hackerrank/array.py | d2d12c335a290d54da8534699aa155e3860d626e | [] | no_license | dundunmao/lint_leet | fc185038f57e0c5cbb82a74cebd4fe00422416cb | 5788bd7b154649d2f787bbc4feb717ff2f4b4c59 | refs/heads/master | 2020-11-30T04:56:25.553327 | 2017-10-22T07:11:01 | 2017-10-22T07:11:01 | 96,705,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | #!/bin/python
import sys
n = int(raw_input().strip())
arr = map(int,raw_input().strip().split(' '))
print arr.reverse() | [
"dundunmao@gmail.com"
] | dundunmao@gmail.com |
e6a72c91fb0f4d46cb6c2dbc207116f9c67ba18f | 7848ded2f7b1cf5cc33380d739e0ceee5718ffec | /imrunicorn/deer_harvest_logbook/migrations/0009_auto_20210326_1713.py | 03e7819d385c15670d573984772119b70067a603 | [] | no_license | benspelledabc/djangosite | cbed1a7da3eb6ba6eee05897ec928b350831fc6b | fa8004b20f790f56fc69e9d158128a867be700f3 | refs/heads/master | 2023-04-17T19:24:48.908640 | 2021-05-02T19:05:38 | 2021-05-02T19:05:38 | 294,891,690 | 1 | 1 | null | 2021-05-02T19:05:38 | 2020-09-12T07:16:11 | Python | UTF-8 | Python | false | false | 1,313 | py | # Generated by Django 3.0.7 on 2021-03-26 21:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('deer_harvest_logbook', '0008_harvests_yards_ran'),
]
operations = [
migrations.CreateModel(
nam... | [
"admin@benspelledabc.me"
] | admin@benspelledabc.me |
00ec11eccbf89ad47bbab5e7f8a8c22594894750 | f43e32eead19339407cae5744fbf856bef53d203 | /versioneer.py | 90bf8fbc5ebddfd9db9b66d6ed7f0bbcf82be574 | [
"MIT"
] | permissive | alexmitchell/terrainbento | 81f669c43067e87c2c5dd079287a01678e0ed71c | b8f6dd7fd9c96d3a40e0d1f8cd41b1dfe8d0b5da | refs/heads/master | 2023-03-10T12:28:12.848497 | 2020-05-07T20:52:18 | 2020-05-07T20:52:18 | 319,110,743 | 0 | 0 | MIT | 2020-12-06T19:11:21 | 2020-12-06T19:11:21 | null | UTF-8 | Python | false | false | 68,756 | py |
# Version: 0.18
"""The Versioneer - like a rocketeer, but for versions.
The Versioneer
==============
* like a rocketeer, but for versions!
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy
* [![Latest Version]
... | [
"katy.barnhart@gmail.com"
] | katy.barnhart@gmail.com |
e6b4c18a81f6efd1ebd9d2b5d45c7e0c465fcf0c | 9aa488e813b6986d463b35a394a997727a2b26e2 | /ArrayPartitionI2.py | 3b07617da39d6428da503fcd0500ac333ee22144 | [] | no_license | s781825175/learnpython | 5fb2304e3183acb0faa068470b416620115c07dc | 458c84693d8a27e13dab5cb0dc649f894dbba621 | refs/heads/master | 2020-12-30T10:49:13.531546 | 2017-12-14T10:01:32 | 2017-12-14T10:01:32 | 98,855,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | num=[1,4,3,8,44,7,6,9]
answer=sum(sorted(num)[::2])
print(answer)
| [
"781825175@qq.com"
] | 781825175@qq.com |
dd367b1e95c9daf598b0ca14a67aeff389e9c8ef | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/naic_seg/gseg_torch/third/segmentation_models_pytorch/__init__.py | ba1830c6f2cd75fbdec8d9ae635f781e6606c413 | [
"MIT"
] | permissive | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from .segmentation_models_pytorch import * | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
d513b7ad7f669da37f4dd80fea231adf76b7801b | 184310f55b58e854dc3b6c58599ef99bc4c95739 | /hujian_api/API_service/feedback/feedback_list.py | 9c43fb1c8abc8d8aa5e13785597c4d9f67aca0df | [] | no_license | tanjijun1/Python_API | c8585821a627c399fea1ab31bb024be6b82dd3ab | 3c4771875870ffe425d2d39fc28a50449b1752f2 | refs/heads/master | 2023-01-07T23:30:30.284433 | 2020-11-11T08:43:10 | 2020-11-11T08:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import pytest
import allure
import requests
import json
import time
from Common import Post
from Common import Get
from Common import Assert
from Common import Consts
class Feedback_list:
def off_list(self):
sessionX = requests.session()
get_req = Get.Get()
ass = Assert.Assertions()
... | [
"1065913054@qq.com"
] | 1065913054@qq.com |
0e3158044dc1490024d83c3825277c4c78629604 | 30fc3079729cdd390ed02db494f85569d2562808 | /webapp/LemmaTokenizer.py | 58e568dc43c4b31e82a3cf867ac43889512786f2 | [] | no_license | ericdmorrow/beige_sofa | a453d980f6e7c57fe33ec270795f12f6c113254f | 542cde7ab2dc81eb8c127f73ba35697391afbb06 | refs/heads/master | 2021-10-12T01:45:27.560614 | 2019-03-09T22:45:02 | 2019-03-09T22:45:02 | 148,914,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from nltk import word_tokenize, wordpunct_tokenize
from nltk.stem import WordNetLemmatizer
class LemmaTokenizer(object):
def __init__(self):
self.wnl = WordNetLemmatizer()
def __call__(self, doc):
return [self.wnl.lemmatize(t) for t in wordpunct_tokenize(doc)] | [
"="
] | = |
6c2fa3ef46900edd9c4fdd62d82935cd2c38f8aa | f16cd6942c74f2a90b20c8e31f15b96c2a59f14b | /learn/python3/day05/csv_test.py | 74a5b839e09f4e116c7096453a5c6ef575585159 | [] | no_license | pipoted/spider2 | b4160be0c4f2174a00ed12b3a11273d3dd180276 | 6cdc2462fc6c775329520451a1090301c44f5b69 | refs/heads/master | 2020-04-25T23:34:06.529190 | 2019-02-28T16:42:49 | 2019-02-28T16:42:49 | 173,150,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # encoding='utf-8'
import csv
def read_csv_demo1():
with open('test.csv', 'r') as fp:
# reader 是迭代器
reader = csv.reader(fp)
titles = next(reader)
for x in reader:
print(x)
def read_csv_demo2():
with open('test.csv', 'r') as fp:
# 使用dictreader创建的reader对象, ... | [
"32660879+pipoted@users.noreply.github.com"
] | 32660879+pipoted@users.noreply.github.com |
fcfddff97a0af1077083d7d34486361db3ae6dd6 | b37fdefb01d7b93a4f56a7c7cc60f9f78549de4c | /DI_Bootcamp/Week_9/Day_1/Exercise_XP/film_project_root/film_project/wsgi.py | b631da6552d65fa9c95ea492752e61120569aba1 | [] | no_license | AchimGoral/DI_Bootcamp | e7b13d7397ab5c9e5ad8041430c8bfbafec13c88 | 9345731503e2bb298bd3a579ffad590350f13df5 | refs/heads/main | 2023-04-18T20:06:45.631067 | 2021-05-01T08:08:45 | 2021-05-01T08:08:45 | 328,769,128 | 0 | 1 | null | 2021-01-27T14:30:09 | 2021-01-11T19:24:48 | HTML | UTF-8 | Python | false | false | 401 | py | """
WSGI config for film_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"achimgoral.il@gmail.com"
] | achimgoral.il@gmail.com |
f79125ff56b194d6806ae85fd2e82312b9317b48 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_talent.py | 61588f06878ad00bded0b43570542f236816c4c8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py |
#calss header
class _TALENT():
def __init__(self,):
self.name = "TALENT"
self.definitions = [u'(someone who has) a natural ability to be good at something, especially without being taught: ', u'people who are sexually attractive: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
464a06e2f38d657ffbb6cb37e3935f237399437e | 52a61caff0aeb434c32e5657e38762643e9f57dd | /DataStructuresAndAlgorithms/DataStructures/StacksQueuesDequesListsRings/postfix_record.py | 92ea6955face4b5692db6910f092b9e94febe06f | [] | no_license | AndrewErmakov/PythonTrainingBasics | 1480a6378d1ec59884760e2b3014ccc3d28f058f | 639e15bbfc54da762cb9e366497754cfece30691 | refs/heads/master | 2021-06-10T15:57:58.682335 | 2021-03-25T13:37:30 | 2021-03-25T13:37:30 | 153,678,760 | 0 | 0 | null | 2018-10-30T13:52:51 | 2018-10-18T19:45:47 | Python | UTF-8 | Python | false | false | 2,087 | py | # Задача №52. Постфиксная запись
# https://informatics.mccme.ru/mod/statements/view3.php?id=206&chapterid=52#1
class UnlimitedStack:
def __init__(self):
self.list_elements = [None] * 10
self.start_position = self.end_position = 0
def push(self, element):
self.stack_overflow_check()
... | [
"andrew.67@list.ru"
] | andrew.67@list.ru |
d63914ba2b698435ef3f04a21f7ad048bf659cff | e65a428ca7ee11d2f62d702842d4afbd493f08a4 | /dictionaries_07_21/bakery.py | ef15de4f4e11f731f64cbcfdf5479629ceb1fa7c | [] | no_license | NikiDimov/SoftUni-Python-Fundamentals | d8ba24a06c4366e76bdc69f1c5225dca29fe955e | 5bb1bf5928e40f2bac867d33566c8b9dac13f566 | refs/heads/main | 2023-07-15T05:57:57.085880 | 2021-08-19T10:27:45 | 2021-08-19T10:27:45 | 323,631,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | bakery = input().split()
values = bakery[1::2]
keys = bakery[::2]
bakery_dict = {}
for i in range(len(keys)):
bakery_dict[keys[i]]=int(values[i])
print(bakery_dict)
| [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
749abf0e7fe645a2ce810fedbe8b473daf8865d4 | ece60fe85a552c055a88bb35e798deedde8ac254 | /base.py | 4b92bdb89aa72b4c4ff95c6135b38be146de81fc | [] | no_license | theassyrian/gopay-payment-gateway | f8510925737c963b22debb8872595fb980600d9e | 1e1b302a8513a9fad0537c9de917d1d262c5ce46 | refs/heads/master | 2020-12-20T17:39:13.414371 | 2019-03-10T13:58:08 | 2019-03-10T13:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | import requests
import json
class Request:
"""Base request object to simplify gojek requests"""
def __init__(
self,
version="3.4.1",
secret="83415d06-ec4e-11e6-a41b-6c40088ab51e",
location="-6.953946,107.677765",
token="",
uid="9774d56d682e549c",
):
... | [
"gabrielbentararaphael@gmail.com"
] | gabrielbentararaphael@gmail.com |
f392ee1bbaa020832d622e821db65bb76dff3c2e | f48f9798819b12669a8428f1dc0639e589fb1113 | /desktop/lxde/base/pcmanfm/actions.py | e8dc03b16ca3ed85229241be0d37df3e2e1521e1 | [] | no_license | vdemir/PiSiPackages-pardus-2011-devel | 781aac6caea2af4f9255770e5d9301e499299e28 | 7e1867a7f00ee9033c70cc92dc6700a50025430f | refs/heads/master | 2020-12-30T18:58:18.590419 | 2012-03-12T03:16:34 | 2012-03-12T03:16:34 | 51,609,831 | 1 | 0 | null | 2016-02-12T19:05:41 | 2016-02-12T19:05:40 | null | UTF-8 | Python | false | false | 451 | 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 pisitools
WorkDir = "pcmanfm-0.9.8"
def setup():
autotools.configure()
def ... | [
"kaptan@pisipackages.org"
] | kaptan@pisipackages.org |
22fc8a1ae9ba79542d56e80f86965e786a459119 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_debrief.py | 360a852d1baf4e4c6516c6bc4d4d558bd4792f22 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py |
#calss header
class _DEBRIEF():
def __init__(self,):
self.name = "DEBRIEF"
self.definitions = [u'to question someone in detail about work they have done for you: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
35b10e237b95b11619c93d94eeea2e7701879b8f | 4822d191ee56b990d6c0f4870ce266c3f1dd8ab9 | /letters/forms.py | 330101665fb06a729ec3520b30d5a00eb4d7e3ef | [
"BSD-3-Clause"
] | permissive | Sachingulz/gu | 4442dbf519aad96d12c0422bf325ba080c2c1a3b | 42867d82d3cce2c4239a6525a118fc8133d24f00 | refs/heads/master | 2020-03-10T16:33:01.488496 | 2018-04-13T22:41:25 | 2018-04-13T22:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | from django import forms
from django.core.validators import MaxLengthValidator, MinLengthValidator
from django.forms import ModelForm
from .models import Letter
from time import time
from django.core.exceptions import ValidationError
def get_time():
return str(time())
def check_submission_time(timestamp):
e... | [
"nathangeffen@gmail.com"
] | nathangeffen@gmail.com |
20b04bdecc90067beb1f77551f464474b10dc640 | 9d88a6b9305b09ccd19c309753d350867d507cb8 | /utils/datautils.py | 677987c37e3a0a45f54bf8cc1b7aea6a3709f306 | [
"MIT"
] | permissive | Adam1679/FET | a8b56ca3a8c6fa154a4b4184fe0c5c5546f00cfe | a7fc83ae22c7f15d84a80b9ebde9e67bf74ea988 | refs/heads/main | 2023-02-28T14:41:45.608561 | 2021-01-29T05:38:01 | 2021-01-29T05:38:01 | 330,485,781 | 1 | 0 | MIT | 2021-01-29T05:38:02 | 2021-01-17T21:00:33 | Python | UTF-8 | Python | false | false | 2,593 | py | import pickle
import json
import pandas as pd
def parse_typed_mention_file_line(line):
parts = line.strip().split('\t')
wid = int(parts[0])
mention_str = parts[1]
sent_id = int(parts[2])
pos_beg, pos_end = int(parts[3]), int(parts[4])
target_wid = int(parts[5])
type_ids = [int(t) for t in ... | [
"hldai@outlook.com"
] | hldai@outlook.com |
3eca2d015b9990cdece01e894ef9bdac64c6ea26 | 4ae3b27a1d782ae43bc786c841cafb3ace212d55 | /Py_op/Logging/otherMod2.py | 1195ca738093b8a59ad9c06f27f430888d4f8d71 | [] | no_license | bopopescu/Py_projects | c9084efa5aa02fd9ff6ed8ac5c7872fedcf53e32 | a2fe4f198e3ca4026cf2e3e429ac09707d5a19de | refs/heads/master | 2022-09-29T20:50:57.354678 | 2020-04-28T05:23:14 | 2020-04-28T05:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | import logging
module_logger = logging.getLogger("exampleApp.otherMod2")
# ----------------------------------------------------------------------
def add(x, y):
""""""
logger = logging.getLogger("exampleApp.otherMod2.add")
logger.info("added %s and %s to get %s" % (x, y, x + y))
return x + y
print ... | [
"sunusd@yahoo.com"
] | sunusd@yahoo.com |
0942c27af419357e61dfc71168fae2995d3e70cd | 68283b9266ca2a9e189a87442e63a222495d7d86 | /src/htsql/tweak/resource/wsgi.py | 0ef2f22e0073365369be37f2354859245c9903f3 | [
"Apache-2.0"
] | permissive | sirex/htsql | 1fe49bd773cd9154e90e96d6a580305e5bbe5185 | 52275f6a584b412c109822d2ed2a5e69ac522cdf | refs/heads/master | 2021-01-03T23:08:58.699172 | 2020-01-31T18:43:51 | 2020-01-31T18:43:51 | 240,275,730 | 0 | 0 | Apache-2.0 | 2020-02-13T14:10:06 | 2020-02-13T14:10:05 | null | UTF-8 | Python | false | false | 1,901 | py | #
# Copyright (c) 2006-2013, Prometheus Research, LLC
#
from ...core.context import context
from ...core.adapter import rank
from ...core.wsgi import WSGI
from .locate import locate
class ResourceWSGI(WSGI):
rank(100.0)
def __call__(self):
path = self.environ.get('PATH_INFO')
indicator = c... | [
"xi@resolvent.net"
] | xi@resolvent.net |
5cc22167de25c6d4e9d41b5eb44ba9efaebddb50 | 9212691b6c8fe84c58d816aa264b5c27b15fef91 | /Old/runner.py | a92f96dad853aa988627e76d6429394ca2adeea3 | [] | no_license | grimley517/A-Fun-Problem | 80470175d7a3fe9204f72dcd6752d9b822e8eed7 | 8e9dc10099144763929d12aca2dd27791dab3ab1 | refs/heads/master | 2023-05-25T22:52:16.051021 | 2014-10-01T04:49:34 | 2014-10-01T04:49:34 | 24,487,096 | 0 | 0 | null | 2023-05-19T06:47:13 | 2014-09-26T05:11:13 | Python | UTF-8 | Python | false | false | 597 | py | import subprocess
class perlRunner():
def __init__ (self, args = [], script = "script.pl"):
self.script = script.lower() #to be commercial this would need some input checking.
self.args = args
self.cmd = ["perl {0}".format(self.script), ' '.join(self.args)]
def call(self):
'''... | [
"ba.jones@me.com"
] | ba.jones@me.com |
9127c2d9f8e2ffeae9379a74744011a4e8c561bf | dadd56b5831e903e9d64e16227dc3c3830ba9279 | /python/ccxt/probit.py | db9569c1b16cc1ba9519229f0f48620ddf10a779 | [
"MIT"
] | permissive | boost-entropy-repos-org/ccxt | 1db0918827d78690b9234d9380ec8ab3dc2b067f | bb89a53d49217033d24891fc02d59c09aca6bf3e | refs/heads/master | 2023-04-11T04:00:42.678662 | 2021-03-25T03:53:42 | 2021-03-25T03:53:42 | 315,709,353 | 0 | 0 | MIT | 2021-04-22T20:03:47 | 2020-11-24T17:44:12 | JavaScript | UTF-8 | Python | false | false | 48,285 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationE... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
bccf2259a3e8dbb51fbd609d5da419cabf18ac24 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_im_time2.py | 07410969d99e9b07dafe96a4fa3574d5c16effce | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._mao2 import _mao2
class _im_time2(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Memory_cut = None
self.Memory_info = None
self.Mao = None
self.Group_size_3c = None
self.Group_size_... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5035bc5f8a2d7ee2b9e3d6eb9ae53807dfc40204 | d960af39cd0edd5b67576b6c192f12401026661d | /compute_ratio_players_vs_reviews.py | fc5dd8b3ca0c7fbd10af1f386b0d49f70b22c86c | [
"MIT"
] | permissive | woctezuma/players-vs-reviews | 8c677a592db9705419045e99ae8de2ed165fa06f | bc4782d1f7a05d0cd8cbd90febe2cf8dcc756f20 | refs/heads/master | 2023-02-12T06:13:55.981249 | 2023-02-06T14:41:15 | 2023-02-06T14:41:56 | 126,817,435 | 0 | 0 | MIT | 2023-09-05T02:37:37 | 2018-03-26T11:17:09 | Python | UTF-8 | Python | false | false | 6,326 | py | from pathlib import Path
import steamspypi
def get_mid_of_interval(interval_as_str):
# Code copied from get_mid_of_interval() in create_dict_using_json.py in hidden-gems repository.
interval_as_str_formatted = [
s.replace(',', '') for s in interval_as_str.split('..')
]
lower_bound = float(int... | [
"woctezuma@users.noreply.github.com"
] | woctezuma@users.noreply.github.com |
97716023b0197c80e8e9fbc8b96ab88dd5606b63 | 3f121e79244d85178f79197c2be91e3cba57fc56 | /pyro/planning/discretizer.py | 379b5afb0a9777eac92b21f813b9b8fb97ecb05e | [
"MIT"
] | permissive | cabg2101/GRO640 | ea019583cc80dd70ee90dcd62d4ab2196cc9671f | a3107d7b676a0fe1afb89a18a5a63d08fe9f0998 | refs/heads/master | 2023-05-18T13:16:09.480563 | 2021-05-31T19:13:06 | 2021-05-31T19:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,208 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 12 10:02:12 2017
@author: alxgr
"""
import numpy as np
'''
################################################################################
'''
class GridDynamicSystem:
""" Create a discrete gird state-action space for a 2D continous dynamic system, one continuous... | [
"alx87grd@gmail.com"
] | alx87grd@gmail.com |
db6998941ede6d2c38512970a3b42105787e57c3 | da1dbb0e1c8c323bbf7ba0eac43b5815ce075282 | /python/ccxt/nova.py | 48eab4ede6040ce9b26f7e80635b020719db1208 | [
"MIT"
] | permissive | alexander-dev-hub/ccxt | d339662d527bdf0d99380c61ccce233c4475d1a1 | eba5dbe98cf106361c45cec9debda3d2722ea878 | refs/heads/master | 2022-07-10T05:03:35.809978 | 2019-09-02T19:10:10 | 2019-09-02T19:10:10 | 205,919,117 | 1 | 1 | MIT | 2022-06-22T15:56:21 | 2019-09-02T19:00:14 | JavaScript | UTF-8 | Python | false | false | 18,964 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import hashlib
from ccxt.base.errors import ExchangeError
class nova (Exchange):
def describ... | [
"wangming19871126@gmail.com"
] | wangming19871126@gmail.com |
63a949a8970537925b0e02fbb626fd0a5b3e6b9d | a5b66100762c0ca7076de26645ef1b732e0ee2d8 | /python_toolbox/locking/original_read_write_lock.py | 39a27be93ed3f22082179e9be9ddff841825db6d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | cool-RR/python_toolbox | 63400bbc004c63b32fe421b668a64bede4928e90 | cb9ef64b48f1d03275484d707dc5079b6701ad0c | refs/heads/master | 2022-01-26T14:41:29.194288 | 2021-12-25T06:49:40 | 2021-12-25T06:49:40 | 3,066,283 | 130 | 15 | NOASSERTION | 2021-12-25T06:49:41 | 2011-12-29T01:39:51 | Python | UTF-8 | Python | false | false | 10,117 | py | # -*- coding: iso-8859-15 -*-
'''locks.py - Read-Write lock thread lock implementation
See the class documentation for more info.
Copyright (C) 2007, Heiko Wundram.
Released under the BSD-license.
'''
# Imports
# -------
from threading import Condition, Lock, currentThread
from time import time
# Read write lock
... | [
"ram@rachum.com"
] | ram@rachum.com |
7118954c81fcb75bca4dee5e31f07b65b401af06 | f09e7fe78c06bd9d1a7a4ad1928bdccbe3c7a036 | /basic/auto_examples_python/core/run_topics_and_transformations.py | 7c9b878ba71f2a45cf34e08f13e483c2002263e1 | [] | no_license | WallaceLiu/word2vec_learn | c9af0887b4b444bada6931c4302de73a760edd72 | 76d39560d54da322595cc3be06e302ccebb61a3f | refs/heads/master | 2021-08-18T01:47:56.562773 | 2020-12-08T16:01:18 | 2020-12-08T16:01:18 | 231,896,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,912 | py | r"""
Topics and Transformations
===========================
Introduces transformations and demonstrates their use on a toy corpus.
"""
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
###########################################################################... | [
"liuning11@jd.com"
] | liuning11@jd.com |
6e3e13797deb50ab849edc4afcec93a651a2ee62 | be5ea20226c37d81f1ccb2f704d8825d36e88765 | /01. Defining classes/Exercise/09_todo_list/section.py | 4667819c2839135a80562a0e0cdbc80d05f234d0 | [] | no_license | dimDamyanov/PythonOOP | 3845e450e5a48fef4f70a186664e07c0cd60e09b | 723204f5b7e953874fac9314e48eb1d1628d6ff5 | refs/heads/main | 2023-04-07T18:00:36.735248 | 2021-04-19T20:57:14 | 2021-04-19T20:57:14 | 341,329,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | from .task import Task
class Section:
def __init__(self, name: str):
self.name = name
self.tasks = []
def add_task(self, new_task: Task):
if new_task not in self.tasks:
self.tasks.append(new_task)
return f'Task {new_task.details()} is added to the section'
... | [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
406d8f0aaa3de6081674035cdcce2dc6cb57ac2c | d449847e592354e3c3ee9e286908e9977788b63f | /Manage_checkResult_UI.py | f03a55a1b8211ea371cb38ac122d00afbbe03c1d | [] | no_license | Hennessy-zhao/PyQt_Management_User | bc6f4a01905e2fed4b48e80b22635e097ac1eee6 | afefd0756c994d78d4e30f84aef176c214165c4b | refs/heads/master | 2020-04-08T10:05:10.323930 | 2018-12-10T11:02:32 | 2018-12-10T11:02:32 | 159,253,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # -*- coding:UTF-8 -*-
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5 import QtWidgets
import sys
class Manage_checkResult_UI(QObject):
def setup_checkResult_UI(self):
self.body_biologyMsg = QWidget()
self.right_widget.addWidget(self.body_biologyMsg)
... | [
"834819108@qq.com"
] | 834819108@qq.com |
42848be21ecc85630caf5ff42974a56e5f55908a | 62974b03a14008f950db0c68d5962311a3401d3b | /medium/arrayandstring/test_636_Exclusive_Time_of_Functions.py | f168aad4072f889b6d1d75f96b779d2338fa8013 | [] | no_license | wuxu1019/leetcode_sophia | 818f39e8324aaf2b588150b1f7edbc2897f64935 | 0e99f9a5226507706b3ee66fd04bae813755ef40 | refs/heads/master | 2018-10-13T13:58:29.762836 | 2018-07-24T04:20:23 | 2018-07-24T04:20:23 | 111,624,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,335 | py | """
Given the running logs of n functions that are executed in a nonpreemptive single threaded CPU, find the exclusive time of these functions.
Each function has a unique id, start from 0 to n-1. A function may be called recursively or by another function.
A log is a string has this format : function_id:start_or_end:... | [
"wuxu1019@hotmail.com"
] | wuxu1019@hotmail.com |
86ba0cbf2309263159d3616831dce257d49b5be6 | 4db3eede5082795af783c93b6c410a226aa21547 | /utils/photo.py | 96fbcbe3d8896dab86eaa544104aabd60ae4f2f8 | [] | no_license | pol9111/Tornado-Picture | 36d93f846405735b5d8bd84b622cde68b08950e8 | a12658d259a6f63ecc1861aebac52e78399d87f8 | refs/heads/master | 2020-03-25T00:02:55.450099 | 2018-08-03T13:42:11 | 2018-08-03T13:42:11 | 143,166,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import glob
import os
from PIL import Image
def get_images(path):
"""
获取目录里的图片
"""
images = []
for file in glob.glob(path+'/*.jpg'):
images.append(file)
return images
def make_thumb(path):
"""
把传入的图片压缩成缩略图
"""
dirname = os.path.dirname(path)
file, ext = os.path.spli... | [
"biscuit36@163.com"
] | biscuit36@163.com |
54b06077531d74eb035d6706a045def0b7737af9 | 8c699adc72ed1765ec4fdd1a4ea7ef77d12e870a | /pytext/models/ensembles/ensemble.py | 82fabf930a337e4a5bdb8aa095e3583da50457dd | [
"BSD-3-Clause"
] | permissive | haowu666/pytext | d7c592a85e437e3e4bd67de7b8ca083f0cce89ce | 8455458c101683602478b93bc8d016bd49d04323 | refs/heads/master | 2020-06-11T13:39:31.431606 | 2019-06-26T21:20:28 | 2019-06-26T21:24:24 | 193,984,662 | 0 | 0 | NOASSERTION | 2019-06-26T22:16:36 | 2019-06-26T22:16:35 | null | UTF-8 | Python | false | false | 4,995 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from copy import deepcopy
from typing import Any, Dict, List
import torch.nn as nn
from pytext.config import ConfigBase
from pytext.config.component import create_model
from pytext.config.field_config import FeatureConfig
fro... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0b1c94c1a556008b8f369859cde5649edf76c017 | 372edad1cd6399cadba82818e9fb9682c3bac1b4 | /packages/python/plotly/plotly/validators/_bar.py | 42b2db184761779e8993307236973d51c92e3d47 | [
"MIT"
] | permissive | OGVGdev/plotly.py | 78bfa9e25e92c367f0da30af7885cdd163ba612b | 96a9101c79aa588023f56153bf274d0d570ffcf6 | refs/heads/master | 2022-11-10T16:44:06.732450 | 2020-06-26T13:07:06 | 2020-06-26T13:07:06 | 275,173,321 | 1 | 0 | MIT | 2020-06-26T14:19:41 | 2020-06-26T14:19:40 | null | UTF-8 | Python | false | false | 16,318 | py | import _plotly_utils.basevalidators
class BarValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="bar", parent_name="", **kwargs):
super(BarValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_str=... | [
"noreply@github.com"
] | OGVGdev.noreply@github.com |
c820802cce8d0781f349eb9c31087caf26fab107 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/90/usersdata/222/60137/submittedfiles/matriz2.py | 624d63a8f366331287c5388e315634d90c9927cb | [] | 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 | 752 | py | # -*- coding: utf-8 -*-
def verifica(a):
aux=()
for i in range(len(a)):
soma=0
soma2=0
for j in range(len(a[i])):
soma=soma+a[i][j]
soma2=soma2+a[j][i]
aux.append(soma)
aux.append(soma2)
soma=0
soma2=0
c=1
for i in range(len(a)):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
41b0e51e3601a8b2c99ae9b7bff261b5df4ccae2 | 2dc11314770aec1f9f1bee7e99fec1130dc2535d | /pytglib/api/functions/add_log_message.py | 40fea489572e588c2d3fbb998d7debbecfccd369 | [
"MIT"
] | permissive | grx7/pytglib | db0c14e7f24512b7200cfc61a2879f35adb753eb | 1bdb304b853fa6f26e1be5ff95213853a34d004e | refs/heads/master | 2020-09-24T15:07:11.698803 | 2019-08-31T22:23:02 | 2019-08-31T22:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py |
from ..utils import Object
class AddLogMessage(Object):
"""
Adds a message to TDLib internal log. This is an offline method. Can be called before authorization. Can be called synchronously
Attributes:
ID (:obj:`str`): ``AddLogMessage``
Args:
verbosity_level (:obj:`int`):
... | [
"me@amirh.co"
] | me@amirh.co |
64466ae31f82ebf5fc4dfdceb0970110ccaeebeb | 0eeed46e9b836bfe2fd2075e657af473da270514 | /bin/quests/651_RunawayYouth/__init__.py | 5e23225797a8f30d53296d73e088317bbf4fddc2 | [] | no_license | RafaelRauber/DataPackL2 | 4e329c30bfc19f44e8832a86584f2c9914a28077 | 7bace9dad9ac5b0151d26e6e49d14c42d75eb642 | refs/heads/master | 2021-05-19T00:22:49.340415 | 2020-04-10T18:36:27 | 2020-04-10T18:36:27 | 251,491,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,036 | py | # Made by Polo & DrLecter
import sys
from com.guardian.gameserver.model.quest import State
from com.guardian.gameserver.model.quest import QuestState
from com.guardian.gameserver.model.quest.jython import QuestJython as JQuest
from com.guardian.gameserver.network.serverpackets import MagicSkillUser
qn = "651_RunawayYo... | [
"rrafaelfr2@gmail.com"
] | rrafaelfr2@gmail.com |
de7f6ef0a2e539e8947a600570bece09b7ec85bb | 5c4e6a4e6910709e026b95749500d03f2315e60b | /stereoimg/stereoCamera.py | 888b6a03ac6f7b94e77831f279f68e9ed06b7082 | [] | no_license | enjalot/pys3d | d384745925eb7ff473dcd641759c7313ad641230 | 5b5a5eff680321186d39d29cae896a051e0ec14b | refs/heads/master | 2020-07-04T03:21:42.329051 | 2010-02-24T00:32:49 | 2010-02-24T00:32:49 | 482,764 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,123 | py | # helper class for stereo visualisation using OpenGL
# The underlying equations and their implementation are by courtesy of
# Paul Bourke, http://local.wasp.uwa.edu.au/~pbourke/projection/stereorender/
#
# Copyright (C) 2007 "Peter Roesch" <Peter.Roesch@fh-augsburg.de>
#
# This code is licensed under the PyOpe... | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
d1319469470167c7a5d6b727c699a864303979f5 | 613fdf39f444cfd62a60adbea8e493e7bae85ec4 | /baekjoon/algo_2631.py | dff8694a9de785fbb0f56aa82b972c1d241f95c9 | [] | no_license | Parkhyunseo/PS | bf854ff01ecbdf7ee866faf4178f988cf2ddf1ca | e2c4839c9ce6f217baafd204efbe3d9ea8ad1330 | refs/heads/master | 2020-04-04T01:46:57.907655 | 2019-06-21T08:36:25 | 2019-06-21T08:36:25 | 155,677,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import sys
N = int(sys.stdin.readline())
children = []
dp = [ 0 for _ in range(N)]
dp[0] = 1
for i in range(N):
children.append(int(input()))
for i in range(1, N):
dp[i] = 1
for j in range(i):
if children[j] < children[i] and dp[j] +1 > dp[i]:
dp[i] = dp[j] + 1
#print(dp)... | [
"hyeonseo9669@hanmail.net"
] | hyeonseo9669@hanmail.net |
bd2e978a6ab86d77fc3f4bc94e8f1740558fbd21 | fe64eac1959693702ce8c4b9a59c7f76693dda15 | /01/tweet.py | 7c4fd2350d346c476a07a985af7c9b6c301036a6 | [] | no_license | MunSeoHee/research | 44684818f39d8228bb1bddca8c519f33a9c0a790 | 0c598b7cf8bbe69536e83fc0d91115ab79ae8452 | refs/heads/master | 2020-06-10T09:17:54.550597 | 2019-06-26T07:52:39 | 2019-06-26T07:52:39 | 193,628,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | import tweepy
from math import log10
def idf(t, D):
# D is documents == document list
numerator = len(D)
denominator = 1 + len([ True for d in D if t in d])
return log10(numerator/denominator)
def tfidf(t, d, D):
return tf(t,d)*idf(t, D)
#문서 단어 빈도
def f(t, d):
return d.count(t)
def tf(t, d)... | [
"nansh9815@naver.com"
] | nansh9815@naver.com |
e2a896b68a2200499285e21126497ab5d61220c4 | 2403283b86933982ae36fc2964aa251a1219ae2b | /pop_kernels/__init__.py | 9fc78da44b9c4d4f15065ea1ca1dea49283947f9 | [] | no_license | hodgestar/qiskit-pop-kernels | 183b85177de47558843d7367ab218a529a2c047e | 1b2db7d77cfd954ca3b09379450920dab597572b | refs/heads/master | 2020-10-01T15:49:31.478502 | 2019-12-16T12:53:06 | 2019-12-16T12:53:06 | 227,569,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | # -*- coding: utf-8 -*-
__all__ = ["SklearnIQDiscriminator"]
from .iq_discriminator import SklearnIQDiscriminator
| [
"hodgestar@gmail.com"
] | hodgestar@gmail.com |
1e95ac4ffdc3e1196c8ddede113d616dd8135157 | 1b8e4c51ac6f3914e3191295ab13aceb87df68c7 | /arithmetic.py | db0f45828b05fbb37b80fe0e118f1a1de5e47a5a | [] | no_license | kellyxann/calculator-2 | eee002885e6e348abf8d64840eae46dac3a5ef06 | 7549ae7628bc3db54e88850d267e8a673c75dc22 | refs/heads/master | 2021-05-31T00:47:43.934378 | 2016-04-07T20:03:46 | 2016-04-07T20:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | def add(num1, num2):
return num1 + num2
def subtract(num1, num2):
return num1 - num2
def multiply(num1, num2):
return num1 * num2
def divide(num1, num2):
# Need to turn at least argument to float for division to
# not be integer division
return float(num1) / float(num2)
def square(n... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
eb48d303106aa30cac5257053a6080784a8c3969 | 9acaf23ecff542c1f16071178404e540a499dd7b | /classes/class3.py | 8f1a3ac6e3504174650a6d71ead5580f848b50d3 | [] | no_license | manankshastri/pyt | 7201dca14a417b6c2534fa953b018f2ad5ff6cc9 | 94d2d3954a7a4bb5f5a2641f68384c448c0461cd | refs/heads/master | 2020-06-11T11:18:18.797722 | 2019-07-10T04:10:58 | 2019-07-10T04:10:58 | 193,945,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | class Animal:
def __init__(self, **kwargs):
self._type = kwargs['type'] if 'type' in kwargs else 'dog'
self._name = kwargs['name'] if 'name' in kwargs else 'tom'
self._sound = kwargs['sound'] if 'sound' in kwargs else 'bark'
def type(self, t=None):
if t:
self._type ... | [
"manank.shastri@gmail.com"
] | manank.shastri@gmail.com |
cf4e27a02c5962eb45ea63f79ea6c749ff318348 | fd1df150e118948c7c457ff761987c5dba461c0d | /GzUser/migrations/0001_initial.py | 9f6ec068e5f304b9f7003f148b9b8a13c93c730c | [] | no_license | ShuoDu/GzSpaceBackGround | 858d7ae5ba3b98c5e40994c82bd99d5f1481e14c | 7d958793754ed3fa902835c12d5270b87be8decf | refs/heads/master | 2021-05-11T18:36:51.583028 | 2018-01-24T09:48:38 | 2018-01-24T09:48:38 | 117,832,342 | 0 | 0 | null | 2018-01-22T08:51:43 | 2018-01-17T12:20:42 | Python | UTF-8 | Python | false | false | 1,475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-01-24 15:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | [
"shuo.du@edaibu.net"
] | shuo.du@edaibu.net |
43f6979ac63373087697a56f78bf698bf4d4ebff | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_forbade.py | b84392df9a89a1072838d8a0ec841e267044759b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.verbs._forbid import _FORBID
#calss header
class _FORBADE(_FORBID, ):
def __init__(self,):
_FORBID.__init__(self)
self.name = "FORBADE"
self.specie = 'verbs'
self.basic = "forbid"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a77545c0cdd9f10e36904df04a7d363ca5bbce6f | 54da94dce244ab659c8036cafcdc1b326fbfe490 | /datoteke-s-predavanj/2015-16/09-datoteke/financniki/branje_pisanje.py | d5356bcf3f43b4cd6e52e7269c07ad3a326f2e37 | [] | no_license | jakamrak/uvod-v-programiranje | 640b2738164e2026308d7e60f1478659df79cc40 | 3c05290f4f23b384ad9063880fffe208c08fc599 | refs/heads/master | 2022-07-17T16:50:18.563453 | 2020-05-18T13:54:13 | 2020-05-18T13:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | with open('hlapec-jernej.txt') as f:
urejene_vrstice = sorted(f)
with open('urejeni-hlapec-jernej.txt', 'w') as f:
for vrstica in urejene_vrstice:
f.write(vrstica)
| [
"matija@pretnar.info"
] | matija@pretnar.info |
6586e812c79785a44dd241c860f5f9a0086a4708 | bb0b833bc5ef8c263c692c5a300326d77f5d1cd4 | /src/Products/DWCPReports/PBOutcome.py | 3524040d9d782ee7d5e2ecf68c32479ff68c461d | [] | no_license | ploneUN/Products.DWCPReports | c00be0334c9b165960692e2bba57891168875639 | 0681119d3eba58f1ad7696525a4d6511baa3e90a | refs/heads/master | 2020-03-29T15:00:32.163163 | 2014-01-24T09:11:18 | 2014-01-24T09:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | # -*- coding: utf-8 -*-
#
# File: PBOutcome.py
#
# Copyright (c) 2009 by []
# Generator: ArchGenXML Version 2.4.1
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
__author__ = """unknown <unknown>"""
__docformat__ = 'plaintext'
from AccessControl import ClassSecurityInfo
from P... | [
"khairil.yusof@gmail.com"
] | khairil.yusof@gmail.com |
57a059a58c6470ceff5db45d1699c993d4ac3cdf | ef84f06e845d5c42aae2faee84c263f9eb42d92d | /keen/settings/test.py | 26d343a6436b0937e033e3ebb25868db8c8786a4 | [] | no_license | beforebeta/keensmb | 0921473df4e92e366695cc03c9fdef96a3be4075 | 5408a42a16c83558229f62c88eec011231a0a797 | refs/heads/master | 2016-09-16T00:37:08.907191 | 2014-03-24T15:31:11 | 2014-03-24T15:31:11 | 14,530,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """
This is an example settings/test.py file.
Use this settings file when running tests.
These settings overrides what's in settings/base.py
"""
from .base import *
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
"USER": "",
"PASSWORD": "",
... | [
"a.kulakov@mail.ru"
] | a.kulakov@mail.ru |
7713b67e0a7bd5fa4c04b3c5844701e2ee47aefc | 39c78f1a30e97faf176541c3b9376814cee3d341 | /setup.py | b04dc08d2dc610fc737b647a2eed8dd61453ffee | [] | no_license | levan92/clip-search | f14bc77c666a8222243c02be540fafd2772e76a7 | 9187890af74d16b1a6045e774add620d15b76cbc | refs/heads/main | 2023-08-29T12:16:34.022297 | 2021-11-02T10:55:14 | 2021-11-02T10:55:14 | 416,695,275 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="clip-search",
version="0.1",
author="levan92",
author_email="lingevan0208@gmail.com",
description="CLIP for forensic search",
long_description=long_des... | [
"lingevan0208@gmail.com"
] | lingevan0208@gmail.com |
fb9298626fb50f1d9139407d5fd6b41ba923efb6 | b8bf3169e29b570554273cc9f2a96300c1722670 | /report/bot_log_parser.py | 6707b6de09503f30e9a55dd5395bd3704a769520 | [] | no_license | stuppie/wikidata-report | 83a4aafdc7bd0d26c4a8e97af39a3f1802d71455 | 955a93fc73620dce9249e32e80b9ace8414f4699 | refs/heads/master | 2020-07-27T21:47:55.473951 | 2016-11-12T01:10:05 | 2016-11-12T01:10:05 | 73,423,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,875 | py | import glob
import json
import os
import sys
import pandas as pd
from dateutil.parser import parse as dateutil_parse
"""
if "DJANGO_SETTINGS_MODULE" not in os.environ:
os.environ["DJANGO_SETTINGS_MODULE"] = "wikidata.settings"
import django
django.setup()
"""
from report.models import Person, TaskRun, Task, Tag... | [
"gstupp@scripps.edu"
] | gstupp@scripps.edu |
8041432ba6732aa03b314d01a5a49ca4124c0aad | 518c0669f9c46b20c80384f0ad0e7b0cd4020771 | /practice/max_prod_subarray.py | 96e263b12666495ab883e55a8db53b70a2b8e9dd | [] | no_license | pujanm/competitive_programing | e07e15a343b1b2855a193c5a586b82d0f0bf2ad5 | 0b98bb138b8b1f3c1f508245ddd5120e14243cf5 | refs/heads/master | 2020-05-01T08:35:27.236631 | 2019-06-30T07:49:42 | 2019-06-30T07:49:42 | 177,382,339 | 1 | 1 | null | 2019-10-31T05:33:31 | 2019-03-24T07:13:00 | Java | UTF-8 | Python | false | false | 231 | py | # Kadane's algorithm
a = list(map(int, str(input()).split()))
count = 1
maximum = -9999999999
for i in a:
count *= i
if count > maximum:
maximum = count
# if count < 0:
# count = 1
print(maximum) | [
"pujanrmehta@gmail.com"
] | pujanrmehta@gmail.com |
9605625d2e918dee13a1e37617088a2db769bf4a | 792ab47254c7dd4a6186fb0932007eb65bed8133 | /DSA/sde_sheet/day 4/2sum.py | 5ab6aeab79f86a73c9f7417298a9930c13df1eb7 | [] | no_license | kaydee0502/Data-Structure-and-Algorithms-using-Python | d400e34a64f9a8fc0ef6932e3c0781c01a9f9cd1 | 2d87d22bd2072d92ce9976ce19be79d6c57398cd | refs/heads/master | 2023-07-19T05:48:48.357995 | 2021-09-11T13:32:43 | 2021-09-11T13:32:43 | 282,596,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | '''
1. Two Sum
Easy
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
Example 1:
Input: nums... | [
"kshitijdhama513@gmail.com"
] | kshitijdhama513@gmail.com |
c9890e3acb5081c7ec9ba11faab5625f0df7163b | 3aa8222bb2edc93c9202ccbcf6f331cdf73cd5a2 | /Sebi/sebi_portfolio/sebi_portfolio/spiders/pf_monthly_report.py | 9362871f8c93a6deea89842d8de3145c4df11919 | [] | no_license | pavithra-ft/ft-automation | a977809823e587efd596b02e3a8286f887d12116 | 946e1c35b785bfc3ea31d5903e021d4bc99fe302 | refs/heads/main | 2023-04-24T19:54:28.478577 | 2021-05-11T17:53:08 | 2021-05-11T17:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,337 | py | # import scrapy
# from ..items import DiscretionaryItem, NonDiscretionaryItem, DiscParticularsItem, NonDiscParticularsItem
#
#
# class MonthlyreportSpider(scrapy.Spider):
# name = "monthly_report"
# allowed_domains = ['https://www.sebi.gov.in']
# formURL = "https://www.sebi.gov.in/sebiweb/other/OtherAction.... | [
"64137264+pavithra-ft@users.noreply.github.com"
] | 64137264+pavithra-ft@users.noreply.github.com |
df7d9d5ce199128b8a558c4f37995f85523c5124 | 1112a39ba09f03ee1297a8a33af8ae4de23b1ec5 | /Codeforces/Python/Remove Smallest.py | d5b89502a5563ab43a3e35debad202e263c1c8a3 | [] | no_license | a541k/Online-judge-problems | 9df6d901e0fc3467b916f8811651ab3a5302c0bd | ba4360ae40835827130d76f1ec548dd20a81fd0c | refs/heads/main | 2023-06-26T08:16:03.007560 | 2021-07-27T14:42:05 | 2021-07-27T14:42:05 | 390,000,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | def check():
f = 0
for i in range(n-1):
if a[i+1] - a[i]>1: f = 1; break
return f
for _ in range(int(input())):
n=int(input()); a = sorted(map(int, input().split()))
print('NO' if check() else 'YES') | [
"noreply@github.com"
] | a541k.noreply@github.com |
ff8db0c066f327dcc37e35590f40cf9ed742ba03 | 051d6dfc9586d97f5a4d03bac2a5404e3bf704bb | /das_decennial/das_framework/__init__.py | 3128e7054ecc666d2415ca12e0e8284561b7de08 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | p-b-j/uscb-das-container-public | 93c88cb3608abbeb8d73ae2e8f847e531c2a8550 | 7f7ba44055da15d13b191180249e656e1bd398c6 | refs/heads/main | 2023-08-28T20:34:55.291277 | 2021-10-29T15:40:48 | 2021-10-29T15:40:48 | 421,209,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | # das_framework.__init__.py
#
__version__="1.2.0"
| [
"pbjones@cs.washington.edu"
] | pbjones@cs.washington.edu |
57be95fb24a7579207540bf7067630da2be64740 | 362b34720354b2bc39a7473b80b5ca488b57d313 | /src/mreorg/curator/backend_sim/__init__.py | d84b1f105a620040c42e89d3cff28a6a2ca355e3 | [] | no_license | mikehulluk/mreorg | 15770de6d8dda52a7ce54b96ff8b14d135c32b31 | 50d3cceef316bc5292663e327a0fd4ee35fbd5d6 | refs/heads/master | 2016-09-06T12:18:28.376848 | 2014-07-22T22:45:01 | 2014-07-22T22:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are ... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
389747f94d0a6f0b8c1c48cea236908f16581ba7 | 9b32771b7d1513ee37bc62dd347675abcfc1bfc9 | /example_snippets/multimenus_snippets/NewSnippets/NumPy/Vectorized (universal) functions/Float functions/copysign Change the sign of $x_1$ to that of $x_2$, element-wise.py | 336ba27e284aec2634fe6b1fafb96ce9105ca5ee | [
"BSD-3-Clause"
] | permissive | listar0810/jupyterlab-snippets-multimenus | 44087ef1aeb030a3074862a337508b57d50072c6 | 477f51cfdbad7409eab45abe53cf774cd70f380c | refs/heads/master | 2022-12-12T18:19:25.221083 | 2020-09-08T01:11:01 | 2020-09-08T01:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | np.copysign(x1, x2) | [
"kptan86@gmail.com"
] | kptan86@gmail.com |
7ca78f235ca5aa9858b1fad88a4ea0174a2781fc | 6c21cdd6b8d22ab408c02733c8826bcedffb30e6 | /emf/base/__init__.py | 6fedb53cf433681bdc0e789694276e39ec7f6cac | [
"BSD-3-Clause"
] | permissive | PauloMoreira97/emfPAULO | 11a681f8df757346dba5d151f3116a2fe6ab78ee | cbbda17c9c365f09e4470ea8836c22cd1b0b7dcf | refs/heads/master | 2023-07-25T10:32:07.033493 | 2019-05-01T04:58:04 | 2019-05-01T04:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """
=================================
Base Components (:mod:`emf.base`)
=================================
This module contains base components used by other modules.
Constants
=========
.. autosummary::
:toctree: generated/
get_magnetic_perm
get_electric_perm
Base Classes
============
.. autosummary::
... | [
"mattpewsey@gmail.com"
] | mattpewsey@gmail.com |
606c9e67f77e0fda48448aca95febbcb94a3db87 | cc27f5f6a0fabb4032e0171c73a7cfccdcb7da9d | /BodaKaoz/LunaMiel/utils.py | 95bf490881991d5d03763343c7117a3bb40d15d8 | [
"MIT"
] | permissive | SeekingAura/ingesoft3Boda | 5ebf2ed0e8d26ae538bffb3ae68873b91142ce89 | da80e8b2633bc7f46136ead3433abe9b1eafae36 | refs/heads/master | 2021-03-30T18:05:34.010759 | 2018-05-24T12:59:53 | 2018-05-24T12:59:53 | 120,932,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from Domain.models import Boda
from Fiesta.models import FiestaEvento
from Pareja.models import Enamorado
from Ceremonia.models import CeremoniaEvento
from .models import LunaMielEvento
from Fiesta.utils import getPriceFormat;
def baseContext(request):
# borrowed from pareja
user = request.user
enamorad... | [
"carlox216@utp.edu.co"
] | carlox216@utp.edu.co |
3bc42f7a6eae9fd33ce71124098e2daa8ee37fba | 2f9eddc071b87698e27a3fd5c6066a0db99f6f92 | /alortihms-before-interview/sort/4_quick_sort/_quick_select.py | 247c9030b1c96ac140df3e9d88a4d472961a7ab1 | [] | no_license | Lancher/coding-challenge | d8c5ec528ef802fef9817e64be94fc246d95e84f | 4c8f833a6e3375c6cbb31ff487ad766c53a74755 | refs/heads/master | 2022-01-20T03:19:11.452412 | 2022-01-10T05:23:47 | 2022-01-10T05:23:47 | 137,972,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | """
1. unsorted array select index k element, time complexity average O(n)
2. Partition:
i,j hi i j hi
[19, 3, 2, 37, 5, 8] => [19, 3, 2, 37, 5, 8]
i,j hi i j hi
=> [3, 19, 2, 37, 5, 8] => [3, 19, 2, 37, 5, 8]
***here we swap i and ... | [
"steve.liushihao@gmail.com"
] | steve.liushihao@gmail.com |
a16f1011b50315649b35ee55f996ad2ef3e50267 | d9e6be975abcca43f3d236d12fc3bd6ac84e3a31 | /tests/integration/goldens/redis/samples/generated_samples/redis_generated_redis_v1_cloud_redis_create_instance_sync.py | 16f1ed86af295348c19aa726634382b7ce17c7cf | [
"Apache-2.0"
] | permissive | yihjenku/gapic-generator-python | 1415313a5c97c46f7aed88db20cdf6c376e6d2bd | 55e3ef1ac128dd8f22cb72c28b76a23a1c988f8c | refs/heads/master | 2023-07-18T02:42:47.711496 | 2021-08-20T23:31:09 | 2021-08-20T23:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | 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 or... | [
"noreply@github.com"
] | yihjenku.noreply@github.com |
208b4709c1bd71b7da3aec73e700d55528f6df63 | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py | d3b132eb93a71dbaaa5471ccb18b50e782a86d49 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 1,495 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
7093e7d1e7495b5c919af78ae8c4ac9d67fae132 | 4d72466e81278485adbad52f34891d39e582d14c | /extra_apps/DUEditor/views.py | aab50f774bc16d0b639d690210c8f0eccaf16293 | [
"MIT"
] | permissive | LauZyHou/MxShop_Back | 15096c976a26cc9591af66b9273bea5ec5c1d23e | 4e1be205ec88960b26262a51440fd91d952db37d | refs/heads/master | 2020-04-16T12:37:18.181249 | 2019-01-20T12:51:16 | 2019-01-20T12:51:16 | 165,588,362 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,959 | py | #coding:utf-8
'''
@author: Hayden
'''
from importlib import import_module
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, JsonResponse
import DUEditor.settings as USettings
import os
import json
from django.views.decorators.csrf import csrf_exempt
import datetime,random
... | [
"java233@foxmail.com"
] | java233@foxmail.com |
385bf68170cae571015394011afcea2beb6aee2b | eea8c7343b4c1f3083dfd066aa2d3df155ff3713 | /bioframe/__init__.py | 35cf9e05b8b4714952b33cd2885ff01c5a75f35f | [
"MIT"
] | permissive | agalitsyna/bioframe | 090dbbd5a88d3673fd5472361468d0c0e7cac149 | 2bcfcb52de21cd6f31e2e2f69d39427908ea841b | refs/heads/master | 2020-06-01T03:14:42.770344 | 2019-06-11T19:46:24 | 2019-06-11T19:46:24 | 190,611,916 | 0 | 0 | MIT | 2019-06-06T16:12:13 | 2019-06-06T16:12:12 | null | UTF-8 | Python | false | false | 245 | py | #-*- coding: utf-8 -*-
from __future__ import division, print_function
from ._version import __version__
from . import io
from . import tools
from .io.formats import *
from .io.resources import *
from .core import *
from .schemas import SCHEMAS
| [
"nabdennur@gmail.com"
] | nabdennur@gmail.com |
2deb7295649d98173baafafc4ea545310e9b7e14 | 615005db54ffc474b2bd128ce30a5ef81e7bef82 | /setup.py | f71b7479b64c2d8b72ca87fde6bef26a78fd4576 | [] | no_license | gridl/data_algebra | 12c008d7215f66cb37219f8d760d63950b7180ac | 9968434633aa4638c6b526041fac73a8ba724695 | refs/heads/master | 2020-07-12T19:48:43.942948 | 2019-08-28T05:40:21 | 2019-08-28T05:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | # setup.py
import setuptools
DESCRIPTION = """
data_algebra ( https://github.com/WinVector/data_algebra ) is a piped data wrangling system
based on Codd's relational algebra and experience working with dplyr at scale. The primary
purpose of the package is to support an easy to compose and maintain grammar of data pr... | [
"jmount@win-vector.com"
] | jmount@win-vector.com |
0a11f8abe46d76127c9db183e3074b9ae4d70bcb | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /tests/sentry/eventstore/test_base.py | 70c7db4d092a515ae6eac5116fda5c0403f04ac1 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 3,955 | py | import logging
from unittest import mock
import pytest
from sentry import eventstore
from sentry.eventstore.base import EventStorage
from sentry.eventstore.models import Event
from sentry.snuba.dataset import Dataset
from sentry.testutils import SnubaTestCase, TestCase
from sentry.testutils.helpers.datetime import be... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
1e49ef78a228086e78bd56b7d1a87594a91a6231 | aa886213880c981dd00dbb5bb872813765985b90 | /analysisgpu.py | 5a08230159a8c17759769b142d6bdeb7f586be06 | [] | no_license | alefisico/hepaccelerate | a79d6ba25860db8f14d063c18779c408fc7836d3 | 59a0647077b5971c8932bc6652e89f7052215cd4 | refs/heads/master | 2021-06-23T02:26:22.132587 | 2019-03-28T23:19:28 | 2019-03-28T23:19:28 | 191,920,433 | 0 | 0 | null | 2019-06-14T10:00:52 | 2019-06-14T10:00:52 | null | UTF-8 | Python | false | false | 9,722 | py | #need to set these explicitly
import os
os.environ["NUMBAPRO_NVVM"] = "/usr/local/cuda-9.2/nvvm/lib64/libnvvm.so"
os.environ["NUMBAPRO_LIBDEVICE"] = "/usr/local/cuda-9.2/nvvm/libdevice/"
from numba import cuda
import cupy
import math
import numpy as np
import hepaccelerate
@cuda.jit(device=True)
def searchsorted_devfu... | [
"joosep.pata@gmail.com"
] | joosep.pata@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.