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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7dabec6de2d4f60dcf9654c19e7e0e0e4e835097 | 45467e07e77131f631d0865046dcc4d18f483601 | /src/Codeforces/adhoc_300/queue_at_school.py | c5d52b25667cc4cdb25c00ec8d58215683199cc5 | [] | no_license | bvsbrk/Algos | 98374e094bd3811579276d25a82bbf2c0f046d96 | cbb18bce92054d57c0e825069ef7f2120a9cc622 | refs/heads/master | 2021-09-25T10:01:59.323857 | 2018-10-20T16:07:07 | 2018-10-20T16:07:07 | 98,708,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | if __name__ == '__main__':
n, t = [int(__) for __ in input().strip().split()]
arr = list(input().strip())
while t > 0:
i = 0
while i < len(arr) - 1:
if arr[i] == 'B' and arr[i + 1] == 'G':
arr[i] = 'G'
arr[i + 1] = 'B'
i += 1
... | [
"v.ramakoteswararao2015@vit.ac.in"
] | v.ramakoteswararao2015@vit.ac.in |
154a41b96fd151a080ff1fb62a38a0023579645d | aa3c8051df97dde4fabdc2282cbcd7a651723d7a | /Program/presentation/layouts/ItemLayout.py | 078f0a935e963d7ce950297e6a98b328473e1914 | [] | no_license | Wilson194/DeskChar | fdac6b3c9066f989fea02bc7629657d56bd9f913 | 40b088e061042599cbb30373ac229d37dddc01e6 | refs/heads/master | 2020-06-02T14:25:20.240420 | 2017-06-08T16:06:08 | 2017-06-08T16:06:08 | 191,186,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,526 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtWidgets, QtGui, QtCore
from business.managers.ItemManager import ItemManager
from structure.items.Item import Item
from presentation.layouts.Layout import Layout
from structure.tree.NodeObject import NodeObject
class ItemLayout(Layout):
"""
Layout for editing spell ... | [
"horacj10@fit.cvut.cz"
] | horacj10@fit.cvut.cz |
1b24dffb3b31ad7f0386d0c6835adf17018082fb | 98d34935bfa9b709c07df539267daa6f3a6db880 | /kikar_hamedina/kikartags/utils.py | 320986c92a9bf6d24d999d856506ab7cf5ad6abf | [] | no_license | hasadna/kikar-hamedina | c4a0e939fdafb1f8d187db1be35aba5fde2350be | d08e9231fd4c91c4024ced26b760b87f93bb8607 | refs/heads/dev | 2020-12-25T18:04:22.817008 | 2019-03-30T15:27:13 | 2019-03-30T15:27:13 | 18,186,117 | 12 | 36 | null | 2019-03-30T15:28:06 | 2014-03-27T18:11:01 | Python | UTF-8 | Python | false | false | 171 | py |
def build_classifier_format(status):
return {'id': status.id, 'text': status.content,
'tags': [str(tag.tag.id) for tag in status.tagged_items.all()]}
| [
"yotammanor@gmail.com"
] | yotammanor@gmail.com |
48852b5651ea72a624105857199adbb6de6691d8 | 7dcc2ad34bd2c4c5c76d7e6c811cf811c9ae3932 | /Server/Server/settings.py | 08058f30795f3c3dd6a09467f773838d9b2664e4 | [] | no_license | Victor-Alexandru/Mobile-Programming | d20cc4bac044b39450871409b1b3cc00247ec0db | 326f44c2e37c24dceaa79d56ea68a33cdb9951bb | refs/heads/master | 2020-08-12T18:48:46.952703 | 2020-01-22T22:50:11 | 2020-01-22T22:50:11 | 214,821,501 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for Server project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"victor21cuciureanu@gmail.com"
] | victor21cuciureanu@gmail.com |
fff3b072ff1c3d408dd5066d22dbf23a905a9690 | 0a43afbcba776ed8ada0fef5425b1507aa4d51c1 | /smartbook/old/smartbook/sales/views.py | 9e679bf3200f9e8a1584e3854c10709bd74b82f1 | [] | no_license | geethusuresh/inventory-systems | c76d6d10429f483499594df8c8f34d780531f18c | fd4211d29042776fa47da92162cbbbe8220090cd | refs/heads/master | 2021-01-02T08:51:31.278578 | 2014-09-28T07:35:54 | 2014-09-28T07:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,124 | py | # Create your views here.
import sys
import ast
import simplejson
import datetime as dt
from datetime import datetime
from django.db import IntegrityError
from django.db.models import Max
from django.contrib.auth.views import password_reset
from django.shortcuts import get_object_or_404, render
from django.views.gener... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
705f5c6317c63bf0a4e8cd8ef3851ce627e954f4 | f4e90a45d53131ef2627b35067817d445fca08a5 | /track_expense/expense/migrations/0006_auto_20180712_2258.py | f83e1e5ba606c80a10326f8b21917e237125a778 | [] | no_license | chandanmanjunath/Expense-Tracker-App | 5ee14d6172a82dbc521a183fbaac48e27605f8f2 | 53302281a0180f8dae52b0bb1f2dbceaf0e9cb4a | refs/heads/master | 2020-03-23T03:39:39.611605 | 2018-10-28T14:29:58 | 2018-10-28T14:29:58 | 141,042,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('expense', '0005_auto_20180712_2241'),
]
operations = [
migrations.AlterField(
m... | [
"mchandanhegde@gmail.com"
] | mchandanhegde@gmail.com |
c276117657e792c80006359bc9c2a88ec9e14618 | 7e91b12a371bf17da711b6c22aa4c9cc4183c6d2 | /models/modelBuilder3D.py | 673626ce18609db9d11b37c1d0affe952cef1793 | [
"MIT"
] | permissive | olmozavala/ai_common | e166689e7a864f39b47cc6f6a84cca0aa4e7fd9f | 2a56efe841f914616e7990011b157865833edd75 | refs/heads/main | 2023-07-22T17:20:49.748638 | 2023-07-07T19:12:38 | 2023-07-07T19:12:38 | 478,581,365 | 0 | 0 | MIT | 2023-07-07T19:12:39 | 2022-04-06T13:52:02 | Python | UTF-8 | Python | false | false | 13,005 | py | from tensorflow.keras.layers import *
from tensorflow.keras.models import Model
def single_conv_lay_3d(input, num_filters, filter_size, batch_norm=False, dropout=False, activation='relu'):
""" Adds a single convolutional layer with the specifiec parameters. It can add batch normalization and dropout
:param... | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
83111015f00eaf205b124f6c74bfc6ffab80fc9b | 13b803636ea92b634a9d6afc2b17bd7df2de8fc5 | /arch_and_linux/pythonrc.py | 52125204e7aff41c46e5bc54d890c9d679733a2d | [] | no_license | atupal/snippet | 0e00d9fadf8ae50797ddddc4c6ee09941f25c695 | bda9e154aa0acd9a5c23706bf740db6542479ed9 | refs/heads/master | 2022-06-22T09:39:15.729319 | 2022-06-06T07:06:57 | 2022-06-06T07:06:57 | 10,927,197 | 23 | 13 | null | null | null | null | UTF-8 | Python | false | false | 90 | py |
try:
import json
except:
pass
try:
import requests
except:
pass
import os, sys
| [
"atupalykl@gmail.com"
] | atupalykl@gmail.com |
0dea66946b8c2f5ee8e03540b9742a8c2d29c94e | f5f4019735e22d38ed2ff280addf07abc373069a | /Python/Generator/FS.py | 94551ea152dba5628a71a6225204c5a841997270 | [] | no_license | MCasari-PMEL/FolderStruct | 014d20c7c4c1393835b54f516caab0efb6dcf5d9 | eb9295cd0f1c39b41319beef7ce76fec3c7c8e53 | refs/heads/master | 2021-01-19T11:59:03.505229 | 2016-10-05T21:57:40 | 2016-10-05T21:57:40 | 69,694,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,431 | py | from tkinter import *
from FS_classes import *
class Grid:
def __init__(self):
self.val = 0
def add(self,num=0):
self.val += (1+num)
return self.val
def current(self):
return self.val
#Main File Structure
class FileStructure:
def __init__(self):
self.grid = G... | [
"matthew.casari@noaa.gov"
] | matthew.casari@noaa.gov |
10815d96aa5439ac4839620f0119f9eda8030efb | 105c0ac9752ce52a92bad49a606fc1d9af2e7ef7 | /gopup/life/university.py | 8b3f75761ce06fd026a8e4fef5f5e3147209e345 | [] | no_license | justinzm/gopup | be12d6b4dca72cc5ce3b36e4dc31558aed51d2ae | b41a0d89d208d0eb8940f4f96d754415675a63b6 | refs/heads/master | 2023-08-03T17:12:21.280315 | 2022-12-02T04:34:41 | 2022-12-02T04:34:41 | 248,739,733 | 2,554 | 375 | null | 2023-07-25T15:47:39 | 2020-03-20T11:33:00 | Python | UTF-8 | Python | false | false | 1,782 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/10/28 0028
# @Author : justin.郑 3907721@qq.com
# @File : university.py
# @Desc : 高校数据
import json
import pandas as pd
import requests
def university():
"""
获取全国普通高等学校名单
:return:
DataFrame
序号
学校名称
... | [
"3907721@qq.com"
] | 3907721@qq.com |
a0e2de88e58ebeb3990e70318a23968ebb8a1cd3 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /porter/trunk/tests/framework.py | fc8d44b8251522765963686b49ad854f021147f4 | [] | no_license | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | """Alter sys.path to pick up the bin/porter.py script as a module.
"""
import os
import sys
pkg = os.path.realpath('../bin')
if pkg not in sys.path:
sys.path.append(pkg)
| [
"chad@zetaweb.com"
] | chad@zetaweb.com |
7835227dce23c98cbb77d42dd0f02275033747df | 9194d09e291df225d4092829e47117b81cc0238f | /LAB-6/2018A7PS0224P/plot.py | 39472bcc3aa75d1a6231e9cf515f7b2acd48a535 | [] | no_license | Gateway2745/CS-F211 | 8ee47e15b2615d0cfe501dbf659efaee95bb1786 | 2a7ad44345c92fd61ef8cd863e20ef5eb18d3243 | refs/heads/master | 2022-04-04T19:46:46.590713 | 2020-02-23T09:24:32 | 2020-02-23T09:24:32 | 240,870,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
r_df = pd.read_csv('recursive.csv')
r_size = r_df.iloc[:,0:1].values.flatten()
r_times = r_df.iloc[:,1:2].values.flatten()
r_mem = r_df.iloc[:,2:3].values.flatten() /1024
i_df = pd.read_csv('iterative.csv')
i_size = i_df.iloc[:,0:1].values.flatt... | [
"you@example.com"
] | you@example.com |
6efe89e12a343b795bc1eecf5b84f962b24e4cb0 | 95d33d6a6dc70c0c3a0bfb1f1bd521c50997130c | /moneymatch_18304/settings.py | 49ffaba5b940c1c8b210e412f0d8be8ccaa60c09 | [] | no_license | crowdbotics-apps/moneymatch-18304 | 3cb49623e69421044613b171cd2f6f65696e97ec | 8cea92a69c2d841891c83fbb6bb015566186981d | refs/heads/master | 2022-10-24T00:43:30.894359 | 2020-06-21T18:18:51 | 2020-06-21T18:18:51 | 273,957,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,484 | py | """
Django settings for moneymatch_18304 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0f6119858f44ce4ea060103fa1a15f5d13d8502b | 581c041a0a32f051508f3b0a167656cb6169c2fe | /project_management/non_project_task/createMenuTaskViews.py | 0e2e944457f73dcb89714f2575ee52252e813716 | [] | no_license | raveena17/ILASM | da38258b6739e823b973c2bede2a21dd04e0941e | 7a337e0e3a20180b9564de68ab22620dc9aa1a36 | refs/heads/master | 2022-12-05T14:34:45.929663 | 2019-06-25T14:18:47 | 2019-06-25T14:18:47 | 193,101,540 | 0 | 0 | null | 2022-12-03T15:11:35 | 2019-06-21T13:20:47 | JavaScript | UTF-8 | Python | false | false | 8,767 | py | from datetime import datetime
from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.utils.translation import ugettext as _
from project_management.non_project_task.views import __saveNonProjectTask__, \
__getLoginData__, __privilegeCheck__
#from project_management.proj... | [
"raveena@5gindia.net"
] | raveena@5gindia.net |
5fecb43a44ce3ce9a5ae52c7a362be94965dd807 | 414ccb2439d56aac0616244f5cc501375ee7021d | /fias/management/utils/weights.py | 5bcd2820726f67a53667487852ac9d9319e2d715 | [] | no_license | oZeDo/django-fias | 8d16e697d0f0da37a6d8eaf63dd99ad756ca924c | 71d5310c7840946df848f7678427a3a00663c8d5 | refs/heads/master | 2021-09-10T18:01:27.682917 | 2018-03-30T14:04:45 | 2018-03-30T14:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | #coding: utf-8
from __future__ import unicode_literals, absolute_import
from fias.config import weights
from fias.models import SocrBase
def rewrite_weights():
SocrBase.objects.all().update(item_weight=64)
for name, value in weights.items():
SocrBase.objects.filter(scname=name).update(item_weight=va... | [
"root@proscript.ru"
] | root@proscript.ru |
dfabe6db674df2f21cccc772e6ff82a5f2f6b27d | b692bd183fe7c683bcf23549707599c3d6740919 | /hivemind/p2p/p2p_daemon_bindings/p2pclient.py | ea28267ba66ebfa2b86e9db6e29fda697cd36390 | [
"MIT"
] | permissive | TrendingTechnology/hivemind | 199ba46e598b6b8d4f6b1563536fcc69b288fb7c | 1f54faf82f6c2ae55a7a1449a9decd94e413c857 | refs/heads/master | 2023-07-18T14:29:18.515252 | 2021-09-02T00:23:48 | 2021-09-02T00:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | """
Originally taken from: https://github.com/mhchia/py-libp2p-daemon-bindings
Licence: MIT
Author: Kevin Mai-Husan Chia
"""
import asyncio
from contextlib import asynccontextmanager
from typing import AsyncIterator, Iterable, Sequence, Tuple
from multiaddr import Multiaddr
from hivemind.p2p.p2p_daemon_bindings.cont... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
94fbf26221ac862207fc0072ad98af1f185c2258 | 382034646e9d3e32c8e63e8d83d2dd7da5be4ef3 | /workery/tenant_api/views/order_operation/transfer_work.py | 6694f782e272a1d506e5c5f6e76f5ff6c4f5a590 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wahello/workery-django | 80c88ecb7968951719af6857711891ec3787cf46 | 289318b0333d830c089f4492716c38d409c365ed | refs/heads/master | 2020-03-30T04:21:48.642659 | 2018-09-28T01:30:22 | 2018-09-28T01:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | # -*- coding: utf-8 -*-
from ipware import get_client_ip
from django_filters.rest_framework import DjangoFilterBackend
from starterkit.drf.permissions import IsAuthenticatedAndIsActivePermission
from django.conf.urls import url, include
from django.shortcuts import get_list_or_404, get_object_or_404
from rest_framework... | [
"bart@mikasoftware.com"
] | bart@mikasoftware.com |
5fae185ce2015235e73f817819f27eba1e638a67 | 317f9468b52e68ca517e5c36164f94919ef291da | /apptodo/serializers.py | 41f3772d5d32a0a488cf6cbcbf06dbc9a1de5466 | [] | no_license | Rubensrvsc/todo | 4c414c61654cd1d4000421948f2819db5ea1ef79 | 0d4874e670df77d2afa3682836024737d8777107 | refs/heads/main | 2023-06-17T11:47:42.566900 | 2021-07-18T22:46:27 | 2021-07-18T22:46:27 | 366,703,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | from rest_framework import serializers
from .models import *
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from django.db.models import Q
class TaskSerializerCreate(serializers.ModelSerializer):
class Meta:
model = Task
fields = ['name','description'... | [
"Rubensspfc100@gmail.com"
] | Rubensspfc100@gmail.com |
fc043365b75de960805396080e95f36e6856a1ad | 39de3097fb024c67a00c8d0e57c937d91f8b2cc9 | /Dynamic Programming/DP V/Evaluate Expression To True.py | 1bed69d26cebbde0905311252acd14363a9c07b6 | [] | no_license | srajsonu/InterviewBit-Solution-Python | 4f41da54c18b47db19c3c0ad0e5efa165bfd0cd0 | 6099a7b02ad0d71e08f936b7ac35fe035738c26f | refs/heads/master | 2023-03-07T05:49:15.597928 | 2021-02-24T18:20:07 | 2021-02-24T18:20:07 | 249,359,666 | 0 | 2 | null | 2020-10-06T10:54:07 | 2020-03-23T07:09:53 | Python | UTF-8 | Python | false | false | 1,353 | py | class Solution:
def dp(self, s, i, j, isTrue, dp):
if i > j: return False
if i == j:
return s[i] == 'T' if isTrue else s[i] == 'F'
key = str(i) + str(j) + str(isTrue)
if key in dp:
return dp[key]
ans = 0
for k in range(i + 1, j, 2):
... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
a4411717c7888708a41b3b4b94d2e1c4205b4ee8 | 232af3ca54ebcb885b0fbd251279a5c77caf8a96 | /test/python3/stream/test_utils.py | 3332bc35b5e177b1ba9a30433e5658ea39360cc9 | [
"MIT"
] | permissive | rxtender/rxt-backend-base | 1b09652835d171868be2cc379a7358c30e3bc084 | 3149cb5aa7d5b9b2a102e94e46c51fe7c5586474 | refs/heads/master | 2021-01-01T20:21:35.883967 | 2017-10-18T20:51:59 | 2017-10-18T20:51:59 | 98,823,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py |
class TestTransport(object):
def __init__(self):
self.buffer = None
def write(self, data):
self.buffer = data
| [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
6950665c18ab206f8a7c2268d7dbd685df50527a | d3a6097f9981d3a9de1fc6a4444132e8d0753822 | /homework2/q4.py | c868c9cdb942e43f783f9a394c555f527da92381 | [] | no_license | SunnerLi/U4240 | a90e2fa31c67eda1c142484c5861d2f2362e6613 | c243b7da08fbf77a6568ffebbf9c2e5a20fabf96 | refs/heads/master | 2021-01-20T02:53:58.784874 | 2017-06-17T14:50:52 | 2017-06-17T14:50:52 | 68,385,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | from Parrondo import *
from Devroye import *
import math
N = 1000.0
dvc = 50.0
sigma = 0.05
def mH(x):
return pow(x, dvc-1)
def VCBound():
lnInside = 4 * mH(N) / sigma
rootInside = (8 / N * math.log(lnInside))
return pow(rootInside, 0.5)
def Rademacher():
# Calculate the first item
lnInside ... | [
"a6214123@gmail.com"
] | a6214123@gmail.com |
8fb1dd991c0a845147bc137426c1bd749eddac33 | aded991820cb4b1e8b146434f0403e7673f6013b | /votes.py | 23508d01ab06ffb660f14b2cd32803cba29311b2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | protolambda/eth2-py-scripts | d78093b00cdddd5d62ef80e15f1818a932837a8f | f3babdcc13e1e56956b9be50af848fe1f77f0de0 | refs/heads/master | 2023-01-27T18:47:08.411818 | 2020-12-08T17:59:33 | 2020-12-08T17:59:33 | 278,091,826 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | # Get a state JSON file, may take a while (pulls data of all 100k validators)
#
# standard API spec: https://ethereum.github.io/eth2.0-APIs/#/Config/getSpec
# curl -s http://localhost:4000/eth/v1/debug/beacon/states/2832 > my_state_response.json
#
# Prysm API spec: https://api.prylabs.net/
# Warning: have to increase ... | [
"proto@protolambda.com"
] | proto@protolambda.com |
faca2cb33258079b4480bab38946408d33fb1d92 | 0e53fcf02b5fbae32a8d77c4fe11eaa0b50cb755 | /app/application/photostore/api.py | 6bc6c5e32f9d337e50abf6c06b78bebecf1f9999 | [] | no_license | ybenitezf/redaccion | 2ba96ef6728b888ba6d60efc9ef2148ed9de81b1 | b1212263292ae5b6ffaa4d81e1280dfe445a8e31 | refs/heads/master | 2023-02-26T22:44:24.347952 | 2021-01-23T21:03:12 | 2021-01-23T21:03:12 | 329,991,246 | 0 | 0 | null | 2021-01-23T21:03:13 | 2021-01-15T18:25:25 | Python | UTF-8 | Python | false | false | 4,490 | py | from application.photostore.utiles import StorageController
from application import db, ma
from application.photostore.schemas import PhotoCoverageSchema
from application.photostore.models import Photo, PhotoCoverage
from apifairy import arguments, body, response, other_responses
from flask_login import login_required,... | [
"ybenitezf@gmail.com"
] | ybenitezf@gmail.com |
17dca6672c5cfc44105aec2f3e8d61881bd73478 | 139a7747c1154cf25c53685f970f4d7d7e1c9fae | /dangdang/pipelines.py | 86de3b8f540a6700d87b5c488d1b09df062be7a5 | [] | no_license | IamBusy/dangdang-spider | 7d956763af82bcd36a3669604ad67322ab2d869d | 60c861928b7920790714fce3e4a64b3416bb3ea0 | refs/heads/master | 2021-01-21T14:24:30.143925 | 2017-06-24T15:52:52 | 2017-06-24T15:52:52 | 95,278,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
#from db.product import save_product
class DangdangPipeline(object):
def open_spider(self, spider):
self.file = open('prod... | [
"1342247033@qq.com"
] | 1342247033@qq.com |
a540284e7e17c75eef5937e91c7b570b2c9330c4 | b997a4ae506a5fe22b783714e5123e93d5343510 | /litex_boards/targets/kcu105.py | 964853f9af712461ada4c624827aa14d8389b5f9 | [] | no_license | david-sawatzke/litex-boards | 7a91e554cfa44e11df999234eec9b5314a10f3a8 | a80737e8b4569e33eaac323f39e3b16d91b95aae | refs/heads/master | 2021-08-10T03:19:05.451486 | 2020-04-08T07:59:58 | 2020-04-08T07:59:58 | 254,257,678 | 0 | 0 | null | 2020-04-09T03:02:50 | 2020-04-09T03:02:50 | null | UTF-8 | Python | false | false | 4,547 | py | #!/usr/bin/env python3
# This file is Copyright (c) 2018-2019 Florent Kermarrec <florent@enjoy-digital.fr>
# License: BSD
import argparse
from migen import *
from litex_boards.platforms import kcu105
from litex.soc.cores.clock import *
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdr... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
c25a641c323e08001818bb64c3e9a792ae039a45 | 07fbdae51275b4bab2074524fc4c1ae58ac53d08 | /Exam Preparation/Mid_Exam/02. Shopping List_02. Shopping List/02. Shopping List.py | b3cdddffb069f06f1d0d57f2715e88a07e7b66a4 | [] | no_license | rimisarK-blue/Python-Fundamental-knowledge | 85c2afa4401f848c9919f672c7fa3d54a43e761f | a182fb1c7c3ce11f9e26ce0afefe5c2069d70e8d | refs/heads/main | 2023-03-09T02:08:34.411768 | 2021-02-15T20:19:52 | 2021-02-15T20:19:52 | 326,009,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py |
items = input().split('!')
def check_if_exists(item_list, item_searched):
return True if item_searched in item_list else False
command = input()
while not command == "Go Shopping!":
command_type = command.split()[0]
item = command.split()[1]
if command_type == "Urgent":
if not check_if_ex... | [
"rimisark92@gmail.com"
] | rimisark92@gmail.com |
7e36cd9aaf1309ad21796645826cdda128c1252d | 5b9f9b4ea1494943e6f7f842df55909599ed1304 | /python/onshape_client/oas/models/btapi_partner_params.py | 87201b545b63820cb3052b36578b9cee0d9f5d40 | [] | no_license | jenniferyoung02/onshape-clients | f50534f033428027515b7fc0b801b1caab4d0aec | 8ee31a17d7af32f105b851e45f69fd4a3006e1ba | refs/heads/master | 2020-09-07T06:44:37.682545 | 2019-10-08T18:52:06 | 2019-10-08T18:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,009 | py | # coding: utf-8
"""
Onshape REST API
The Onshape REST API consumed by all clients. # noqa: E501
The version of the OpenAPI document: 1.104
Contact: api-support@onshape.zendesk.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class BTAPIPa... | [
"ekeller@onshape.com"
] | ekeller@onshape.com |
c740474a9c1722de371d37ab2d6c9ee52815e6c3 | 6ff2a44be083550c5c96aa4637c338cad672b8fd | /05_알고리즘/190828/5099. [파이썬 SW 문제해결 기본] 6일차 - 피자 굽기.py | 18eb3e5bad13d72d5b8c40984dd479dfa4ea9988 | [] | no_license | hyunhee418/TIL | 447ed9735b3cf8f8c68a985248aefb80ee415f5c | cac85a9207ae03cb7f4b060b5d0b79e55ca78c19 | refs/heads/master | 2023-01-10T15:20:49.841630 | 2021-01-05T10:41:05 | 2021-01-05T10:41:05 | 195,916,255 | 0 | 0 | null | 2023-01-05T05:00:18 | 2019-07-09T02:17:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,455 | py | import sys
sys.stdin = open('sample_input_5099.txt', 'r')
q = [0]*200
rear, front = -1, -1
li = []
i = 0
def cycle(j):
for i in range(len(q), 0, -1):
q[(i+1) % len(q)] = q[i]
li[i] = i
for i in range(len(q)):
if i % len(q) == 0
if q[i] == 0:
li[i + j] == i
... | [
"hyunhee18@gmail.com"
] | hyunhee18@gmail.com |
8343c148e070d51a20b1d88b53ffcf51756b280c | de7cae42ec760bae3b532259b399a8c6df0394c9 | /wxPython/samples/wxPIA_book/Chapter-05/goodExample.py | b65160709909c82c1271f71fc273a74e32fb0a20 | [] | no_license | nvaccess/wxPython | b70f91bd682b86e20434d0c69ac497dfbf875838 | 13cceab2a1891ab443e62078be729dc1e1e2e283 | refs/heads/master | 2020-05-31T00:11:36.079007 | 2016-07-12T09:25:04 | 2016-07-12T09:25:04 | 63,135,776 | 1 | 2 | null | 2016-07-18T02:43:08 | 2016-07-12T07:18:57 | C++ | UTF-8 | Python | false | false | 3,296 | py | #!/usr/bin/env python
import wx
class RefactorExample(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'Refactor Example',
size=(340, 200))
panel = wx.Panel(self, -1)
panel.SetBackgroundColour("White")
self.Bind(wx.EVT_CLOSE, self.OnCl... | [
"robin@alldunn.com"
] | robin@alldunn.com |
b2fe9ef4082f0d8ec6980b86931152f8a936dd7b | 5b8832554f6cb3e7e29ecd7f11dcb599c0c8bf41 | /env/jeux/adzazd.py | bc9f736f1fece57d7353869ba3b3b7fa2d4a9cf4 | [] | no_license | pastrouveedespeudo/projet-8 | 55814217c87fea47addd9c6a406e53fed7680718 | 27b01056bba532944e5d25fdb9690d4aafc137ae | refs/heads/master | 2022-12-11T20:38:07.504020 | 2019-06-25T00:30:39 | 2019-06-25T00:30:39 | 178,712,759 | 0 | 0 | null | 2022-12-08T03:02:02 | 2019-03-31T16:23:34 | Python | UTF-8 | Python | false | false | 439 | py | import psycopg2
from config import *
def choix_aliment_niveau_2():
conn = psycopg2.connect(database=DATABASE,
user=USER,
host=HOST,
password=PASSWORD)
cur = conn.cursor()
c... | [
"noreply@github.com"
] | pastrouveedespeudo.noreply@github.com |
b249808c565bdbcb95ae0ca328ec99aa0e632c6b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_10/112.py | c27ecf93db30415e8789d65d3646ad29f7cdd4af | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | #!/opt/local/bin/python
import sys, string
import psyco
psyco.full()
def find_max(v):
max = -9000000
ind = -1
for j in range(0, len(v.list)):
if int(v.list[j]) > max:
max = int(v.list[j])
ind = j
return (max, ind)
def find_min(v):
min = 9000000
ind = -1
for j in range(0, len(v.list)):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
939772358b1382fa126c0c611dd13f107f9b0516 | 391d648132c1a05e7da575205eef89a7208a892a | /scripts/playground/pastevcf.py | c1ed61e87179002a8088a3f00337a5cdecae409b | [] | no_license | michaelbateman/DemographicInference | c3ceaf69f8b554f3973473607d6b5201cca423f9 | b1e2529b1ce0710f82d2867d08588ae4a6c72bb2 | refs/heads/master | 2021-01-10T06:28:43.698581 | 2015-10-06T18:25:45 | 2015-10-06T18:25:45 | 43,770,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import subprocess
in_file = 'ag1000g.phase1.AR2.3L.PASS.vcf.gz'
region_size = 1000000
num_regions = 50e6 / region_size
print num_regions
print int(num_regions)
list_string = ''
for i in range(0,10):
left = i * region_size
right = (i+1) * region_size
window = str(left) + '-' + str(right)
phased_n... | [
"bbeeefcake@gmail.com"
] | bbeeefcake@gmail.com |
63193aec32d811f0a509cb9f1866060cec04c5f6 | 83277e8b959de61b655f614b7e072394a99d77ae | /venv/lib/python3.7/site-packages/graphene/types/tests/test_schema.py | d4f2e33e38fdc680672d1151b417a04b2320ec95 | [
"MIT"
] | permissive | hskang9/scalable-django | b3ed144670c3d5b244168fdd38f33e1f596253c0 | 162e0f4a3d49f164af1d33298fa9a47b66508cbf | refs/heads/master | 2023-04-29T05:33:23.460640 | 2020-03-27T00:55:28 | 2020-03-27T00:55:28 | 247,036,359 | 2 | 1 | MIT | 2023-04-21T20:53:08 | 2020-03-13T09:40:37 | Python | UTF-8 | Python | false | false | 1,014 | py | import pytest
from ..field import Field
from ..objecttype import ObjectType
from ..scalars import String
from ..schema import Schema
class MyOtherType(ObjectType):
field = String()
class Query(ObjectType):
inner = Field(MyOtherType)
def test_schema():
schema = Schema(Query)
assert schema.get_quer... | [
"hyungsukkang@Hyungsuks-Mac-mini.local"
] | hyungsukkang@Hyungsuks-Mac-mini.local |
a609292b00182e32b64b9b72e092cb3edebc3aa8 | 27bb46fc1bf929ec49e19fbc87772d9fde4840ad | /olympus/models/segmentation.py | dc7c9c48ddc8dccae5925ba50e45ae78e80098b8 | [
"BSD-3-Clause"
] | permissive | Delaunay/mlbaselines | 5a64d623628b4e9ca33b8243f44f3d8bd0c4cf5f | b5b7a2b1fec68bf50362a7175796199f1ee91410 | refs/heads/master | 2023-06-22T10:37:05.071573 | 2021-12-07T17:27:03 | 2021-12-07T17:27:03 | 199,131,441 | 2 | 1 | BSD-3-Clause | 2023-06-12T21:28:27 | 2019-07-27T07:22:27 | Python | UTF-8 | Python | false | false | 1,753 | py | import torchvision
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision.models._utils import IntermediateLayerGetter
class Model(nn.Module):
def __init__(self):
super(Model, self).__init__()
self.backbone = torchvision.models.resnet18(pretrained=True)
self.b... | [
"noreply@github.com"
] | Delaunay.noreply@github.com |
16a8294b261d1d035aea805d401664342575a92d | bca3d1e208a5d0e3365a8a1766a0bfd09932367b | /polyfile/kaitai/parsers/python_pickle.py | 5c96328db5164bbd846777e4497deb40abb15e97 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | trailofbits/polyfile | 998f57d9ca015248019ec55c37f43fa743df8d6c | a116740e4baa5765699ca6b5049e9c41d262c325 | refs/heads/master | 2023-09-02T07:33:10.380904 | 2023-05-24T23:48:39 | 2023-05-24T23:48:39 | 193,975,534 | 303 | 18 | Apache-2.0 | 2023-09-05T08:27:51 | 2019-06-26T20:48:20 | Python | UTF-8 | Python | false | false | 30,299 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
from enum import Enum
import collections
if parse_version(kaitaistruct.__version__) < parse_versi... | [
"evan.sultanik@trailofbits.com"
] | evan.sultanik@trailofbits.com |
db99d2390f1376022ebe50f088c0e6f5c407418b | 55171ff5e34f9f90f8e6a13bce885a2261ed14a8 | /bigml/modelhandler.py | c318e98b4ee2addc2bcb4176339a02a25caa4770 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | devesh-95/python | 4121e160bd68b0091ec38382b5631cbca39086ce | 1fc8da125eb0899c03155eafa5382d20c448edc2 | refs/heads/master | 2022-11-09T18:23:24.940486 | 2020-06-15T15:50:29 | 2020-06-15T15:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,490 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2014-2020 BigML
#
# 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 requi... | [
"merce@bigml.com"
] | merce@bigml.com |
cd1eefcd956c69cffec1976578fee58c52756366 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/AngeloMonti/homework05/program02.py | dabc89bb8c08ad77fa1c1a9df6481442959bc346 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,027 | py | '''
Obiettivo dell'esercizio e' sviluppare la strategia di gioco di una macchinetta che gira su una pista di formula 1.
Il gioco consiste in un percorso di gara, rappresentato da una griglia di caratteri (' '=vuoto, '#' = ostacolo,
'A....Z' = auto, '|' = traguardo)
nella quale si trova la macchina del giocatore (un c... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
4e619bb890b8999d1afc30b962f3b6314ded5a33 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/copp/arpallow1year.py | 67a7e3b0fed690ca157dfba4f424c7834f3704ba | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 34,917 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
6a625266593010b2cebbbccc954ee85a7f87bf2d | 5b16b66eb5268fa596dfefd6556c46b89966a08a | /cmake_build.py | a8a5a80d89e79e9700f9efaf3ba79367f20ee42c | [] | no_license | iffiX/scratchpad | 57bc724cd58056508afd1bcd2a3b68039bb3229e | b85fe7a02d659de229cdda867d3082c4e9165763 | refs/heads/master | 2022-12-04T05:13:25.512728 | 2020-08-24T04:06:26 | 2020-08-24T04:06:26 | 287,674,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,317 | py | # Code from https://github.com/raydouglass/cmake_setuptools
# combined with improvements in https://github.com/raydouglass/cmake_setuptools/issues
# and https://www.benjack.io/2017/06/12/python-cpp-tests.html
import os
import re
import subprocess
import shutil
import sys
import zipfile
from shlex import split
from ha... | [
"hanhanmumuqq@163.com"
] | hanhanmumuqq@163.com |
1db1aa7e23943537c33fc9121b1c2203dadc9f59 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/3100.py | 48736ae7362b039b6f87163a6ba1a8056a1d8276 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | def getTimeToGoal(fc, fi, x):
c = 0
f = 0.0
t = 0
def i(f, fi):
return 2.0 + f * fi
t += fc / i(f, fi)
c += i(f, fi) * t
while (x - c + fc) / (i(f, fi) + fi) < (x - c) / i(f, fi):
c -= fc
f += 1
delta = fc / i(f, fi)
t += delta
c += i(f, fi) * delta
t += (x - c) / i(f, fi)
return t
input = ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
072d72b154b849daed7a8b5e8fa9e6ec8477ebe6 | 1a82a96e860d69d4f1ce862c1fa86919f356a7a8 | /finalcif/tools/space_groups.py | 0f785738cbacbc1ebd6fe03b496c4ac6957216d0 | [
"Beerware"
] | permissive | dkratzert/FinalCif | f9d27aaf4a5da2620c000e75cf7a59c78646c2dc | f97ccec1e8be9ce4034784fa52bbc5257d9a9e7d | refs/heads/master | 2023-08-31T10:24:08.258193 | 2023-08-31T10:22:20 | 2023-08-31T10:22:20 | 191,889,707 | 21 | 1 | NOASSERTION | 2023-05-21T15:07:51 | 2019-06-14T06:41:16 | Python | UTF-8 | Python | false | false | 9,596 | py | # ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# Daniel Kratzert <dkratzert@gmx.de> wrote this file. As long as you retain
# this notice you can do whatever you want with this stuff. If we meet some day,
# and you think this stuff is wo... | [
"dkratzert@gmx.de"
] | dkratzert@gmx.de |
e389354428824d0333f0a7e01a2b584dc74bb03f | 37d1c50ebcce09723c5056ab28b5fb3229fcc372 | /Deployment/__init__.py | 780064f66c3fa6e0a57d40600af51353f87c0809 | [] | no_license | sande2jm/workflow_project | c102a6cafd38f540ae189f5e800303f5c0f1af49 | e613b1db0e8934561dcddfa6a3832caefd676150 | refs/heads/master | 2020-03-27T00:21:28.171628 | 2018-08-22T18:21:50 | 2018-08-22T18:21:50 | 145,615,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from .DockerImageCreator import DockerImageCreator
from .CreateUserServiceDockerImageCreator import CreateUserServiceDockerImageCreator
| [
"sande2jm@gmail.com"
] | sande2jm@gmail.com |
0c45df707e21a5cf63129e7f728d8155694b9943 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1735.py | 8dcf7a4ad57c2bad8a3a5a8adec837c494a2123a | [
"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 | 4,632 | py | # qubit number=5
# total number=63
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
c1aa5d829cd8fcbb217672e4ce5f6d40bda66c6f | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2020_11_01_preview/_app_platform_management_client.py | e401566fb47ed0673c6658d5d3fa34452301f782 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 5,278 | 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 ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
f6fe7ea21b94d4019beb6659c68ca6d71ecd18fd | 1849cbd1e115622ec6bc7fbcfb1c065b49981dfb | /DVA/CODE/src/trc_to_stdev.py | d9af1b2664db178e1e4ec8c141c5c2d33b52beb7 | [] | no_license | MelvinYin/Queensland_Rail | c31ca35480e5aa0ab156510beba1ceba5b8469fc | d1a5436bdc8029116c99b9c6804a2563a6470101 | refs/heads/master | 2022-11-16T19:11:32.412797 | 2020-07-13T21:56:57 | 2020-07-13T21:56:57 | 279,420,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,461 | py | from collections import defaultdict
import math
import os
import numpy as np
import pandas as pd
import pickle
from utils import paths
STDEV_LENGTH = 5
def convert(input_pkl):
with open(input_pkl, 'rb') as file:
merged_df = pickle.load(file)
new_dfs = []
for date_i, (date, df) in enumerate(merge... | [
"melvin_yin@hotmail.com"
] | melvin_yin@hotmail.com |
eaeeab8c1336f0094affeea2e2891e348bd9c83d | aff98325082a912c84471b7a505ab565175b0289 | /kopf/structs/diffs.py | cf311aaa08f648b669114c4dc49498a9df094ee4 | [
"MIT"
] | permissive | dbazhal/kopf | a10dde232095eaf7104f1623a1f6bfc33cb80363 | ac772f2d7ce1272f47f10ebff784f54a6ec8dcfa | refs/heads/master | 2020-06-15T03:51:57.055815 | 2020-01-13T14:23:29 | 2020-01-13T14:23:29 | 195,031,097 | 0 | 0 | MIT | 2019-07-03T10:21:51 | 2019-07-03T10:21:50 | null | UTF-8 | Python | false | false | 2,181 | py | """
All the functions to calculate the diffs of the dicts.
"""
import collections.abc
from typing import Any, Tuple, NewType, Generator, Sequence
DiffOp = NewType('DiffOp', str)
DiffPath = Tuple[str, ...]
DiffItem = Tuple[DiffOp, DiffPath, Any, Any]
Diff = Sequence[DiffItem]
def reduce_iter(d: Diff, path: DiffPath)... | [
"sergey.vasilyev@zalando.de"
] | sergey.vasilyev@zalando.de |
65e9fa5195cf665f261b809f41af9035997d9bd2 | a708f1d36586d2b01c99f2cb44aa4612b10192f6 | /周赛/200/4.py | 38ca90b7ea4940ff90c560aea1cc8046bd510270 | [] | no_license | LeopoldACC/Algorithm | 2477e8a371e9cdc5a47b582ca2a454539b96071e | fc1b0bec0e28d31e9a6ff722b3a66eacb0278148 | refs/heads/master | 2023-01-25T02:28:14.422447 | 2020-12-03T15:01:10 | 2020-12-03T15:01:10 | 197,297,197 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | class Solution:
def maxSum(self, nums1: List[int], nums2: List[int]) -> int:
i,j = 0,0
m,n = len(nums1),len(nums2)
s1,s2=0,0
while i<m and j<n:
if nums1[i]<nums2[j]:#直到nums[i]==nums[j]
s1+=nums1[i]
i+=1
elif nums1[i]>nums2[j]:
... | [
"zhenggong9831@gmail.com"
] | zhenggong9831@gmail.com |
4bf6b14190d96f7ca689271312cbe7e28ba752bd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2660/60648/319237.py | 3fdeb65751a93d72b1cd1e02f4180529ec58fc8c | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | n=int(input())
s=''
for i in range(n):
s+=input()
if s=='T aT bT cT dU 1Q 3T cQ 3':
print('c')
print('c')
elif s=='T aT bT cT dQ 1Q 2Q 3Q 4T cQ 5':
print('a')
print('b')
print('c')
print('d')
print('c')
elif s=='T aT bT cU 1Q 1T cQ 3':
print('a')
print('c')
elif s=='T aT ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
39b53f2c8e738159719e22962a14807b22e2e550 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2972/60797/295280.py | 22a08f48e4655c2d4249cc98df5b0157971aa40c | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | class Solution:
def find(self, s, t):
i = 0
j = 0
count = 0
while i < len(s):
if j == len(t):
break
if s[i] == t[j]:
j += 1
i+=1
continue
else:
while s[i] != t[j]:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a7dc646bd34072618886e420ae1f7d6a75cdd8d9 | 122306a7e284774ac80c6fc381e4db2f26ea0c30 | /emission/net/usercache/formatters/ios/demographic_survey.py | 478d507ebff8caa89d723e5a6b03465f987450f0 | [
"BSD-3-Clause"
] | permissive | e-mission/e-mission-server | 4da028e34eaac32c0d27ec929f68b23905e6ca1e | 94e7478e627fa8c171323662f951c611c0993031 | refs/heads/master | 2023-09-01T06:53:33.926971 | 2023-08-15T23:39:00 | 2023-08-15T23:39:00 | 26,307,245 | 26 | 131 | BSD-3-Clause | 2023-09-14T05:08:59 | 2014-11-07T06:39:02 | Jupyter Notebook | UTF-8 | Python | false | false | 379 | py | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
import logging
import emission.net.usercache.formatters.generic.one_time_surv... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
e068d4e76628f3b472307ef99273bb594727fcaa | 647e6df81c43ee515f2ed3f0a496214c89617d70 | /backend/manage.py | ca6450b2919412257594e3d39ceda4e4e30f8c1d | [] | no_license | crowdbotics-apps/bc-repair-25642 | 5a4a20712ed3c4e35754aecca58119b49ae0f187 | 51bb8e2ba1df686c7811046be508108b19e20502 | refs/heads/master | 2023-04-03T21:33:38.083804 | 2021-04-12T07:21:36 | 2021-04-12T07:21:36 | 357,094,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bc_repair_25642.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
845068ee7296f7cb4c1ab5a080aeae1c0f2af9df | dda862418770f3885256d96e9bdb13d0759c5f43 | /leetcode/tree/symmetric-tree.py | 30f4cfafda0ea7aaefd1b1fe7992f50dc4282543 | [
"MIT"
] | permissive | bellatrixdatacommunity/data-structure-and-algorithms | d56ec485ebe7a5117d4922caeb0cd44c5dddc96f | d24c4001a797c12347973263a0f4f98939e86900 | refs/heads/master | 2022-12-03T00:51:07.944915 | 2020-08-13T20:30:51 | 2020-08-13T20:30:51 | 270,268,375 | 4 | 0 | MIT | 2020-08-13T20:30:53 | 2020-06-07T10:19:36 | Python | UTF-8 | Python | false | false | 1,351 | py | """
[101. Symmetric Tree](https://leetcode.com/problems/symmetric-tree/)
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree [1,2,2,3,4,4,3] is symmetric:
1
/ \
2 2
/ \ / \
3 4 4 3
But the following [1,2,2,null,3,null,3] is not:
... | [
"adityaraman96@gmail.com"
] | adityaraman96@gmail.com |
77a50d1f9106545b973c27f124063d4b181a40a2 | fac538219f4000ffae37fbf28126c34036934b82 | /Day6____20-June-2019/1.Import.py | 6eff420200e489914d6afa29d7e5ed3a09084df2 | [] | no_license | poonam5248/MachineLearning | 3f8edcfbd5b38cb5c1ed7e5501c9d501f258b7b6 | 8decb7451e785f21d89db464835f8e78966b43f9 | refs/heads/master | 2021-10-29T05:24:59.366026 | 2021-10-09T18:54:37 | 2021-10-09T18:54:37 | 192,483,443 | 1 | 0 | null | 2021-10-09T18:54:37 | 2019-06-18T06:55:48 | Python | UTF-8 | Python | false | false | 1,146 | py | # Import
# 1.
import math
print(dir(math))
# 2.
print("\n\nThe Result is: ",math.sin(math.pi/2))
# 3.
import math as m
print("\n\nResult is",m.sin(m.pi/2))
# 4.
from math import pi, sin
print("\n\n",sin(pi/2))
#5.
from math import *
print("\n\n",sin(pi/2))
# 6.
a=int(input("\n\nEnter Input:"))
print(sqrt(a))... | [
"kaurpoonam5248@gmail.com"
] | kaurpoonam5248@gmail.com |
93d701f53ee94e6cefda185626f3a1b6e81ef3b0 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-4376.py | b47a1e05e58a8f13a6f6cacd1c63f8fc3dff573a | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b83f13c688d7195984d94159d07e2e9d9d6a36ca | 55815c281f6746bb64fc2ba46d074ca5af966441 | /medium/1218.py | de9a5b6c81a913183289fefd3f5d4e2996e6aed9 | [] | no_license | brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from typing import List
class Solution:
def longestSubsequence(self, arr: List[int], difference: int) -> int:
cache = {}
res = 1
for val in arr:
prev = cache.get(val - difference, 0)
cache[val] = prev + 1
res = max(res, cache[val])
retur... | [
"brandoneng000@gmail.com"
] | brandoneng000@gmail.com |
05b394f966e5ea3e029dbfc19d6942e8a7965408 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/copy_checkpoint_response.py | ea3505deb301d45f302f8a85a646f53bd0629b75 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CopyCheckpointResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1922fd422f5a40d3a373251ab84d443421cd44a3 | f7a48634de139b7f5585c2bf3d3014605130428c | /ebedke/plugins/szatyor.py | 132598a3a7ddd098b9f544f9aaa74b2a81789679 | [
"Apache-2.0",
"MIT"
] | permissive | ijanos/ebedke | b72dcdef63c575eb4090661bab2e2c7a7864ab76 | 9a0f91cc6536a78d7da9aca1fab22924a56d38e2 | refs/heads/master | 2023-04-20T19:36:03.928669 | 2021-01-24T11:35:15 | 2021-01-24T11:35:15 | 99,848,492 | 35 | 11 | Apache-2.0 | 2023-03-27T22:36:27 | 2017-08-09T20:08:13 | Python | UTF-8 | Python | false | false | 863 | py | from datetime import datetime, timedelta
from ebedke.utils.date import on_workdays
from ebedke.utils import facebook
from ebedke.pluginmanager import EbedkePlugin
FB_PAGE = "https://www.facebook.com/szatyorbar/posts"
FB_ID = "140232679345332"
@on_workdays
def get_menu(today):
is_today = lambda date: datetime.str... | [
"ijanos@gmail.com"
] | ijanos@gmail.com |
a451191b00352fd28af42437b816fe51854a6be8 | 350d6b7246d6ef8161bdfccfb565b8671cc4d701 | /Combination Sum.py | 7ba1407c51411af504c14f611f78a5170196700f | [] | no_license | YihaoGuo2018/leetcode_python_2 | 145d5fbe7711c51752b2ab47a057b37071d2fbf7 | 2065355198fd882ab90bac6041c1d92d1aff5c65 | refs/heads/main | 2023-02-14T14:25:58.457991 | 2021-01-14T15:57:10 | 2021-01-14T15:57:10 | 329,661,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | class Solution(object):
def combinationSum(self, candidates, target):
res = []
candidates.sort()
self.dfs(candidates, target, 0, [], res)
return res
def dfs(self, nums, target, index, path, res):
if target < 0:
return # backtracking
if target == 0:
... | [
"yihao_guo@gwmail.gwu.edu"
] | yihao_guo@gwmail.gwu.edu |
f141cb176b859d80c5e0e63da45040316e47f07a | 201b42947d38be70cd0985fb3fc46bd6068ca2f8 | /fantastico/deployment/tests/itest_config_nginx.py | bb63059e0a9fb6cc5a0b0f05bdfc33c373f2cf35 | [
"MIT"
] | permissive | rcosnita/fantastico | d4fade25a10231f50b62fff6b41d814815dd4b62 | 81c8590556baa9e1148071b7835d74b1efada561 | refs/heads/master | 2021-03-12T21:55:03.260192 | 2020-07-28T07:16:39 | 2020-07-28T07:16:39 | 9,280,607 | 3 | 1 | MIT | 2020-07-28T07:16:40 | 2013-04-07T17:52:51 | Python | UTF-8 | Python | false | false | 2,888 | py | '''
Copyright 2013 Cosnita Radu Viorel
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, distribute... | [
"radu.cosnita@gmail.com"
] | radu.cosnita@gmail.com |
88cb24c9ecf556aad9ee55e4356511cd8e4e213c | 4e17a79e14a14e8d1ff53a80b305cc2574578ce9 | /tests/test_reproduce.py | b5a9911da2a11f4d3db720e425c2e9cf182d601e | [
"BSD-3-Clause"
] | permissive | realfastvla/rfpipe | 2d26db26898420d5179fde3d4bf2d25dbe89ce79 | 27d3d15f4808ac08b3d1f538035c76aa7e1cac72 | refs/heads/main | 2022-11-15T00:19:01.375192 | 2022-10-31T21:33:12 | 2022-10-31T21:33:12 | 63,450,755 | 9 | 5 | BSD-3-Clause | 2020-12-10T15:03:49 | 2016-07-15T21:01:44 | Python | UTF-8 | Python | false | false | 2,106 | py | from __future__ import print_function, division, absolute_import, unicode_literals
from builtins import bytes, dict, object, range, map, input, str
from future.utils import itervalues, viewitems, iteritems, listvalues, listitems
from io import open
import rfpipe
import pytest
from astropy import time
import numpy as n... | [
"caseyjlaw@gmail.com"
] | caseyjlaw@gmail.com |
5039c9326b545757d562da93904c9d95beab68b5 | 464047991c33c1b1cd4eb4708371db2afd2846fa | /Code_History_Jake/exp0001.py | 3c2bb868148a6fb96ea48c880a4a36a6414b0571 | [] | no_license | eddie0329/Kiwoom_OpenAPI | f048a08239f8dce4c2d8c84eb057a2632935b670 | a4624bd87ed6b88dfa9c3686e302120a63fcc0bb | refs/heads/master | 2020-04-13T00:58:42.919751 | 2018-12-29T15:20:57 | 2018-12-29T15:20:57 | 162,860,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,596 | py | from PyQt5.QAxContainer import *
from PyQt5.QtCore import *
import pandas as pd
import time
class Stock(QAxWidget):
def __init__(self):
super().__init__()
self._create_kiwoom_instance()
self._set_signal_slots()
# COM을 사용하기 위한 메서드
def _create_kiwoom_instance(self):
self.se... | [
"demikaiser13@gmail.com"
] | demikaiser13@gmail.com |
ad07295a0e1d784173c8a9513699c4fbc9f66936 | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/test/test_vdisk_stimg_set_retention_time.py | 0ddfd8ded41356ed9dae7359129d35ce1fa23c57 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolu... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
6890d64756ac2e5c4f38f2986583d9a8e1835467 | a364f53dda3a96c59b2b54799907f7d5cde57214 | /easy/941-Valid Mountain Array.py | cbf8b97746f30ae353b0cbbab1e81ccfdb9c1f2d | [
"Apache-2.0"
] | permissive | Davidxswang/leetcode | 641cc5c10d2a97d5eb0396be0cfc818f371aff52 | d554b7f5228f14c646f726ddb91014a612673e06 | refs/heads/master | 2022-12-24T11:31:48.930229 | 2020-10-08T06:02:57 | 2020-10-08T06:02:57 | 260,053,912 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | """
https://leetcode.com/problems/valid-mountain-array/
Given an array A of integers, return true if and only if it is a valid mountain array.
Recall that A is a mountain array if and only if:
A.length >= 3
There exists some i with 0 < i < A.length - 1 such that:
A[0] < A[1] < ... A[i-1] < A[i]
A[i] > A[i+1] > ... > ... | [
"wxs199327@hotmail.com"
] | wxs199327@hotmail.com |
305a6fdd6948bcbf0387aea03772a961be22c304 | bfaf64c553eb43684970fb3916eedaafbecf0506 | /Hunter/set10/w2.py | cb29431dc27225b9ff4cb3ad4eb9c8e6688fff71 | [] | no_license | santhoshbabu4546/GUVI-9 | 879e65df0df6fafcc07166b2eaecf676ba9807a2 | b9bfa4b0fa768e70c8d3f40b11dd1bcc23692a49 | refs/heads/master | 2022-01-24T15:22:34.457564 | 2019-07-21T14:20:35 | 2019-07-21T14:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | s1=input()
n=1
if len(s1)==1:
print("yes")
else:
for j in s1:
if s1.count(j)==len(s1):
print("no")
n=0
break
if n==1:
print("yes")
| [
"noreply@github.com"
] | santhoshbabu4546.noreply@github.com |
4db47ad1956c7747da17f39183db1eae49fb16e6 | cad396ca2df76e4521f6a4b5c059ba3931e72f11 | /pabi_asset_management/models/asset_adjust.py | 50b2681ec10a39e0489b53a18c5da8e1ad6eda5f | [] | no_license | mulaudzicalvin/pb2_addons | 1ee835bd0e5d6f215603aa5d3f1099df40a3d14c | 57e0cb59e83853248dda37e2205722ab9bce1852 | refs/heads/master | 2020-03-26T11:47:48.470437 | 2018-08-15T12:16:25 | 2018-08-15T12:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,246 | py | # -*- coding: utf-8 -*-
import ast
from openerp import models, fields, api, _
from openerp.addons.account_budget_activity_rpt.models.account_activity \
import ActivityCommon
from openerp.addons.pabi_chartfield_merged.models.chartfield \
import MergedChartField
from openerp.addons.pabi_chartfield.models.chartfie... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
7e457c5fc9ca7e46535635c561ac7310d2547f80 | 76c66e921dec156f4f6516e94db46109cb1f1056 | /python_scripts/Datenbank/conflog2.py | bcdb756b219837c50e244f4497417d1e12a82b5b | [] | no_license | aronterzeta123/diplomarbeit | de9f9fbaa35694344563f9752e59cfb9c380eb12 | 5c29b7ea49182a46ae338a8f871c02f6d40b8b0e | refs/heads/master | 2020-08-02T06:50:00.972239 | 2020-05-25T12:05:45 | 2020-05-25T12:05:45 | 211,267,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | #!/usr/bin/python3
import MySQLdb
def drop_tables(curs):
curs.execute('DROP TABLE IF EXISTS logImage')
def create_tables(curs):
curs.execute("""CREATE TABLE logImage(
idLM int auto_increment,
user varchar(50),
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
2f8702246a9bb7a40bcd3e2532ce890ebabece8e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2484.py | 89cbb1902caf26ecc3f3ef5708be55e118320a27 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import sys
f = open(sys.argv[1])
testcasecount = int(f.readline())
for testcase in range(testcasecount):
answer1 = int(f.readline())
cards1 = []
for line in range(4):
cards1.append(f.readline()[:-1].split(" "))
answer2 = int(f.readline())
cards2 = []
for line in range(4):
card... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ed0d0e737bc6564242f62ba1002bac22111648de | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /reliability/scripts/rankers/Run_All_Glavas.py | 24ad41f6ebcb2739d3baca1b7d334e418894a4ac | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import os
generators = os.listdir('../../substitutions/')
generators = ['glavas']
best_map = {}
f = open('../evaluators/best_ss.txt')
for line in f:
data = line.strip().split('\t')
gen = data[0].strip()
sel = data[1].strip()
file = data[2].strip()
if gen not in best_map:
... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
2d25286e00893aea48fde61a837a6f7e27a0d2c6 | d9e8b7d5c468b38cdf18cece9dff12ad1188a71b | /CRUD_form/Emp_registration-formsmodel/Employee_registration/Firstapp/views.py | a67e3719dd784a3bb08b150da06162566698f1b7 | [] | no_license | Ruchika-Munde/Django_Task | f14e0497a4f8045a68dbe58bbd772abf606369d3 | 7fa549842a544527b9f78cbfcf52c26dde31463c | refs/heads/master | 2022-12-16T17:53:12.577323 | 2020-09-09T07:34:43 | 2020-09-09T07:34:43 | 294,036,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from django.shortcuts import render,HttpResponseRedirect
from .models import Employee
from .forms import Empreg
# Create your views here.
# view for to insert/ add data with forms.html
def view(request):
if request.method=='POST':
e=Empreg(request.POST)
if e.is_valid():
e.save()
... | [
"ruchamunde@gmail.com"
] | ruchamunde@gmail.com |
f00d664f2739fc2601502e0fc2a19385558aa6a2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_hormonal.py | 8b7bf4380e047a3960f4013a58b19c7775324ff2 | [
"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 | 508 | py |
#calss header
class _HORMONAL():
def __init__(self,):
self.name = "HORMONAL"
self.definitions = [u'relating to hormones: ', u'feeling the effect of hormones, especially when this makes your emotions stronger or more likely to change than usual: ']
self.parents = []
self.childen = []
self.properties = []
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
45f5873e11b84bf1c4c7ad7e22e3960ccd2be006 | 59c55725576bbf0e2f6617507ba2f1db639abb3f | /stock_invoice_account/model/stock.py | 88bfd88ce59b49b1214a3107327469a8a43a7af1 | [] | no_license | bmya/eficent-odoo-addons | e3426ebaf1f59e52726253fc1dd36a09d9363059 | 5d8ddfa384ab4417f42bda103b71d926848035f6 | refs/heads/7.0 | 2021-01-21T16:48:55.312452 | 2015-11-04T14:11:19 | 2015-11-04T14:11:19 | 45,649,141 | 1 | 3 | null | 2015-11-06T00:35:17 | 2015-11-06T00:35:17 | null | UTF-8 | Python | false | false | 5,224 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Eficent (<http://www.eficent.com/>)
# <contact@eficent.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero ... | [
"jordi.ballester@eficent.com"
] | jordi.ballester@eficent.com |
b1352e5d9392cda58c70c24a10393507b21e165a | aa9a0acc85a7328969a81527f3ed7c155a245727 | /chapter_9/our_dogs.py | 42ba3eff04c60131e102b94f7867bb32d75420bc | [] | no_license | mwnickerson/python-crash-course | 7035e21e1ee60c05d1d475ebcf04bd6a93c5967a | 18784c7e3abfb74f85f8c96cb0f8e606cab6dccc | refs/heads/main | 2023-08-03T20:14:49.883626 | 2021-09-25T05:31:12 | 2021-09-25T05:31:12 | 400,644,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # Our Dogs
# chapter 8
# Creating multiple instances
class Dog:
"""A simple attempt to model a dog"""
def __init__(self, name, age):
"""initialize name and age attributes"""
self.name = name
self.age = age
def sit(self):
"""Simulate a dog sitting in response to a command"""
... | [
"82531659+mwnickerson@users.noreply.github.com"
] | 82531659+mwnickerson@users.noreply.github.com |
dd5a59f791ebe0b6728acb0e3f805f2f14733c82 | c7602e190a87b80d0ce213c7ccde12b084583005 | /cantera/context.py | 7ac166e6b663ae704ee86d6c962daea174ff3b5c | [
"MIT"
] | permissive | YarlingB/cantera | 13007f488ad1774ab3080a7da08155e937451a8b | 2eb33ddb443f12ab0b5112cff34b34d636238719 | refs/heads/master | 2020-05-07T15:47:05.385496 | 2019-07-30T16:07:24 | 2019-07-30T16:07:24 | 180,652,632 | 0 | 0 | null | 2019-04-10T19:45:42 | 2019-04-10T19:45:42 | null | UTF-8 | Python | false | false | 1,634 | py | from configuracion.models import *
from actualidad.forms import *
def imagenes(request):
foto_eventos = SiteConfiguration.objects.values_list('foto_eventos',flat=True)
foto_actualidad = SiteConfiguration.objects.values_list('foto_actualidad',flat=True)
foto_galerias_videos = SiteConfiguration.objects.values_list('f... | [
"erickmurillo22@gmail.com"
] | erickmurillo22@gmail.com |
3c445def91a5b727bf6f9625216a5322f3189828 | 466d73b3e4cc53997918d7f4eae422e7f37d48d8 | /python/stempy/ntnu.py | d78290ff32a83c2a60a3f57ed66a1ce3800e9e2c | [
"BSD-2-Clause"
] | permissive | JohnReid/STEME | 0869659d6b8bbbacd9af7ec9c72680fd5eebb1de | 08472c9440df9cc26a5e02c7a20671960be7539d | refs/heads/master | 2021-01-17T15:07:06.432555 | 2018-12-11T10:45:42 | 2018-12-11T10:45:42 | 13,090,334 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,227 | py | #
# Copyright John Reid 2009, 2010
#
"""
Package to handle NTNU benchmark data/test sets.
U{http://tare.medisin.ntnu.no/pages/tools.php}
"""
import os
import glob
import sys
import tempfile
import tarfile
import shutil
from itertools import imap
from stempy import _read_fasta
_data_dir = '/home/john/Data/NTNU-TF-se... | [
"johnbaronreid@netscape.net"
] | johnbaronreid@netscape.net |
372d37fa7346c921d31f7f40fa71cb4a1b678b65 | 11ab3ef01059d9f27f204fa5cc491b0da2f82934 | /Project3/code/breast_cancer/breast_EM_kmeans.py | 6759ff890e21ae12cc19576fde6b7ec9d7b0ef26 | [] | no_license | melisandezonta/ML_CS7641 | c2b5c8e84144277f0544a70bc4fcac87d156b5bb | 54cffb53b70e6f814e32f17377cdb54b00448735 | refs/heads/master | 2020-04-03T13:19:37.830775 | 2019-06-19T06:26:48 | 2019-06-19T06:26:48 | 155,281,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# username : mzr3
"""
Created on Thu Mar 30 22:32:46 2017
@author: melisandezonta
"""
from sklearn import datasets, metrics
import EM as em
import KMeansTestCluster as kmtc
import pandas as pd
import matplotlib.pyplot as plt
breast_cancer = pd.read_csv('./breast-cance... | [
"melisande.zonta-roudes@gatech.edu"
] | melisande.zonta-roudes@gatech.edu |
fcf0c7a5bbfaab06a9b13337712dc9423d5e74b1 | 9b2e1979150facf8968c494551029ae79e09c9b6 | /gui.py | b6ffeb0a0bb84e5aa9c6e90c583217e7cbec7b31 | [
"MIT"
] | permissive | ThomasTusche/youtube-downloader | 91634f42686f28f578968492316bfbdd0ae6a34d | 25f26c5ff4a20b7747c6a1415c890fe5aa7030c1 | refs/heads/master | 2022-11-29T15:37:45.828301 | 2020-08-01T12:56:14 | 2020-08-01T12:56:14 | 281,628,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | import tkinter as tk
from tkinter import ttk
from tkinter import filedialog
from pytube import YouTube
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.create_widgets()
def create_widgets(self):
... | [
"me@me.com"
] | me@me.com |
499d643d207827492812f5edfc8f4b2ce3ac9908 | f12770add2dd48d2262612fcb1aaecc4a714b4fb | /django/localomd/localomddata/apps.py | 1c783c5ab9d841bf2f26f8e2b658cc3d00437c01 | [] | no_license | github188/vending | 3558666b57b37e843e72d194d80f6a8ef5dbc7a4 | ce3e2f1fcbb4d132f7b01a99400d917d7ca174a6 | refs/heads/master | 2021-06-16T09:54:09.214694 | 2017-01-28T01:31:30 | 2017-01-28T01:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.apps import AppConfig
class LocalomddataConfig(AppConfig):
name = 'localomddata'
| [
"jeson.peng@gmail.com"
] | jeson.peng@gmail.com |
f38de6a3bcfcdef93549e2e6b5df00f21cb49f02 | 17f527d6936397270183a35d7097e0a99de16cb5 | /AtCoder/ABC/caddi_d.py | d01f5adba8f3a9d9939c53211bfe2a90b751caca | [] | no_license | ryosuke071111/algorithms | e942f043d08c7c7e2c926ed332ee2b8c44bdf0c5 | 867764450cc0f2a709fa2f743d9a0d95001e9296 | refs/heads/master | 2020-05-14T17:14:39.314064 | 2019-04-17T12:58:12 | 2019-04-17T12:58:12 | 181,888,623 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | n=int(input())
A=[int(input()) for i in range(n)]
for i in A:
if i%2==1:
print('first')
exit()
print('second')
| [
"ryosuke0711993@gmail.com"
] | ryosuke0711993@gmail.com |
bd5ecf5819a81b25fa80495475cec977d1524326 | a7ded5d3d19a98e61a44189cffe3703f7938e0db | /xero_python/project/models/project_create_or_update.py | 22b8a7c37740aa98ee09fac6235d30eda3ed0e49 | [
"MIT"
] | permissive | liseekeralbert/xero-python | dfd1076344f763d74f81f701e32600cf88bcc7b2 | d27ab1894ecd84d2a9af0ca91583593756b21ab3 | refs/heads/master | 2022-12-16T07:41:14.331308 | 2020-09-18T17:12:35 | 2020-09-18T17:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,448 | py | # coding: utf-8
"""
Xero Projects API
This is the Xero Projects API # noqa: E501
OpenAPI spec version: 2.3.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class ProjectCreateOrUpdate(BaseModel):
""... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
2920d52eb08717b10f6e816a9eb94327578be880 | 31747dd8c61085421d7bd4166f7bd4f9429cf914 | /tests/test_visitors/test_ast/test_keywords/test_consistency_returning/test_consistency_return.py | 59f069290cac0bb09bd567235cec9959aed8fca5 | [
"MIT"
] | permissive | edytagarbarz/wemake-python-styleguide | 0e9ed4080a13a6727b8e80785e113b8407409352 | 74b86156d73c2a4fe9c755138f6953fec41fab3b | refs/heads/master | 2021-03-03T19:21:54.807089 | 2020-03-07T23:35:15 | 2020-03-07T23:35:15 | 245,981,718 | 1 | 1 | MIT | 2020-03-09T08:31:55 | 2020-03-09T08:31:54 | null | UTF-8 | Python | false | false | 3,141 | py | import pytest
from wemake_python_styleguide.violations.consistency import (
InconsistentReturnViolation,
)
from wemake_python_styleguide.visitors.ast.keywords import (
ConsistentReturningVisitor,
)
# Correct:
correct_example1 = """
def function():
...
"""
correct_example2 = """
def function():
retur... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
cf7d7f7c345374a82ba92db8e5742176f9d62809 | 17fb6b997c2ab707651fe719f1456dfae3aae052 | /hackerrank/Frequency Queries.py | b1136cf5c4a25ecbe2015bbc5f848b62dc4443e7 | [] | no_license | dmitry-pechersky/algorithms | 40b6184400bcf818c2590b9413ce1bf510b3b355 | 74f13f6e256c2e0c1503ec4bafa6b3e0f227fe2c | refs/heads/master | 2023-05-31T14:20:51.882551 | 2023-05-11T06:59:53 | 2023-05-11T06:59:53 | 122,305,451 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import sys
if __name__ == '__main__':
max_queries = 1000000
dic, frequencies = {}, [0] * (max_queries + 1)
sys.stdin.readline()
for line in sys.stdin.readlines():
query, value = (int(i) for i in line.split())
if query == 1:
cnt = dic.get(value, 0)
dic[value] = c... | [
"none@none.com"
] | none@none.com |
ce6f75908067ef7234774e17ac659d378acbe924 | 4754101b5de5faeecd3de858f49ef504b6f838d2 | /test/test_eigen.py | 4ab2d045e2c90e560c1011b33f94e8099c02c0d5 | [
"BSD-3-Clause"
] | permissive | th-reb/disba | 0cb5b1c43fc685da594a062757262c031f50152f | b364a40ebe511f8b8d1db75557f9467fa6f12490 | refs/heads/master | 2022-11-14T18:13:01.341885 | 2020-06-23T16:02:13 | 2020-07-01T12:14:21 | 274,450,026 | 0 | 0 | BSD-3-Clause | 2020-06-23T16:03:20 | 2020-06-23T16:03:19 | null | UTF-8 | Python | false | false | 696 | py | import numpy
import pytest
import disba
import helpers
@pytest.mark.parametrize(
"wave, water_layer, eref",
[
("rayleigh", False, {"ur": 1.352, "uz": 4.702, "tz": -2.372, "tr": 2.038}),
("rayleigh", True, {"ur": 1.155, "uz": 4.965, "tz": -2.260, "tr": 1.638}),
("love", False, {"uu": 2... | [
"keurfonluu@outlook.com"
] | keurfonluu@outlook.com |
de5fd73b34cd4d1951f79340bca13dc8c534f369 | 0fa2cb199a567f1ed81faa9a592c9d8a959f69b9 | /adventofcode/utils/strings.py | 46cb44fdc78b9423f591a4d42656451585da3425 | [
"MIT"
] | permissive | hacktoolkit/code_challenges | ee5d407b3cfd8e27e1ec1254e3db129ce7a8db7d | fa35a3cf8afd18b4c32170f64d5364e90dedd5a6 | refs/heads/master | 2023-06-21T17:09:42.342328 | 2022-12-25T06:18:26 | 2022-12-25T06:18:26 | 30,107,170 | 12 | 6 | null | 2022-12-29T13:58:31 | 2015-01-31T08:37:24 | CSS | UTF-8 | Python | false | false | 114 | py | def base_anagram(word):
letters = [c for c in word]
anagram = ''.join(sorted(letters))
return anagram
| [
"hello@jontsai.com"
] | hello@jontsai.com |
4b4298f9ba1d04a01da016904ba68baaf58ed912 | ab464f019ed1669fa4f0fbf2a7f25e662d996948 | /proj1/Python-Test1/morsels_filelooper.py | fa3bb63f49bd62e76181323ab4da8a00f734a50a | [] | no_license | maniraja1/Python | fed2aa746c690560d7744b1378259af1cdfa9bb0 | c9e6e12836fed47cdba495a07f43d7599265bea1 | refs/heads/master | 2021-06-03T19:17:16.591303 | 2021-01-04T16:06:25 | 2021-01-04T16:06:25 | 89,430,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py |
class file_looper:
def __init__(self, filesnames, mode='r',return_exceptions=True):
self.filenames = filesnames
self.mode = mode
self.return_exceptions=return_exceptions
self._prevfilename = None
def __iter__(self):
try:
for x in self.filenames:
... | [
"mrajagopal@mrajagopal-ltm.internal.salesforce.com"
] | mrajagopal@mrajagopal-ltm.internal.salesforce.com |
05ad02f5b79d7ef0881049460d3e750e4d4ea86d | e835dcfe819cbeabde7d11489f0c11d551c2c93e | /StudyWithMentor/assignment_003_feedback/src/mysite/urls.py | 79359eea3a98d9a9e6c0a49542b0b888714e9a78 | [] | no_license | jangjichang/Today-I-Learn | 4ca387f6fa0f0e4f175d938c1baee67ba17a7778 | 8a6d3f90d1904625d62a8dc3d24a6c56373b1d83 | refs/heads/master | 2021-06-19T13:13:14.675054 | 2020-01-29T15:16:55 | 2020-01-29T15:16:55 | 164,423,854 | 0 | 1 | null | 2021-06-10T21:25:35 | 2019-01-07T11:38:43 | Tcl | UTF-8 | Python | false | false | 1,240 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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 ... | [
"wlckd90@gmail.com"
] | wlckd90@gmail.com |
beb13fca404a603b25205e1d95f0cb182d410515 | 48b7c5c6d4576c06f157abb317ced99dae64f5c5 | /Applied Course/2.Data Structure/4.Stack/2.Using Linked List/stack_using_linked_list.py | c51e68aaeacfc9276eadf12faf9effcb151b5c47 | [] | no_license | satyam-seth-learnings/ds_algo_learning | 38cc5e6545ec8a5fbabefc797aee486c98cfb314 | 761cba2cd2dd7d7cdaf5a3c41503fdfc6dfe73ad | refs/heads/master | 2023-08-31T00:48:30.707533 | 2021-10-16T09:37:45 | 2021-10-16T09:37:45 | 415,274,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | import sys
class node:
def __init__(self, info):
self.info = info
self.next = None
class Stack:
def __init__(self):
self.top = None
def isEmpty(self):
if self.top is None:
return True
return False
def push(self,data):
... | [
"satyam1998.1998@gmail.com"
] | satyam1998.1998@gmail.com |
7ad4a65d25a14b0ff18ee169e96c1014029d6521 | ef11cb7a2ee550e4fb95be46cd4d67d6cc230787 | /python/Monthly/Sep2020/stringdifference.py | a03a36a0d4d5dc283a12eec61480de4fa1c3a3b3 | [] | no_license | Hilldrupca/LeetCode | 44b32161743ba982ea5e3fe593ff8a27c96e9350 | c6d600bc74afd14e00d4f0ffed40696192b229c3 | refs/heads/master | 2023-03-31T22:21:17.967663 | 2021-04-07T16:18:17 | 2021-04-07T16:18:17 | 288,544,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from collections import Counter
class Solution:
'''
LeetCode Monthly Challenge problem for September 24th, 2020.
'''
def findTheDifference(self, s: str, t: str) -> str:
'''
Returns the one letter difference between s and t. String t is a
shuffled version of s with an extra lette... | [
"hilldrupca@gmail.com"
] | hilldrupca@gmail.com |
58d82522d6a134971079259713390c4bc5e4f9cd | a3c86385115ea1831974624ac0d293f97ea40e48 | /320/ga.py | 1f3ba9d336142d60a9a97e64d5dfa9e881a776b5 | [] | no_license | yaolizheng/leetcode | 7adba764d2d913eb7b07bdb62e74460dea755e66 | bb2a657fa4e2894b3dcb1e3cc57a17b53787d0f6 | refs/heads/master | 2021-07-08T22:21:31.991385 | 2019-01-25T18:52:59 | 2019-01-25T18:52:59 | 128,838,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | def ga(word):
res = []
for i in range(len(word) ** 2):
count = 0
out = ""
for j in range(len(word)):
if i & 1 == 1:
count += 1
if j == len(word) - 1:
out += str(count)
else:
if count != 0:
... | [
"zhengyaoli1988@gmail.com"
] | zhengyaoli1988@gmail.com |
0e857f3a87cc481f6d437984f5621c5dbb343085 | 77e63ec062ca1902842b58b2024a033e72b44a98 | /categories/service.py | bf1c3eace784677cde7bef243579fee3983fc4dd | [] | no_license | aziz2719/Book_house | e0daef94ceb9d1067abebca527f7ab7fa79b6868 | ff3a59d53ad46f5c2ab8d2f5815255181bf0aca5 | refs/heads/master | 2023-04-13T19:00:14.665825 | 2021-04-15T14:03:10 | 2021-04-15T14:03:10 | 358,277,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | from django_filters import rest_framework as filters
from .models import Category
class CharFilterInFilter(filters.BaseInFilter, filters.CharFilter):
pass
class CategoryFilter(filters.FilterSet):
category = CharFilterInFilter(field_name='category', lookup_expr='in')
year = filters.RangeFilter()
class... | [
"davletovaziz511@gmail.com"
] | davletovaziz511@gmail.com |
463080b1bccd5bbaede511720237ffa827a84262 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/setselectionvertexcolor.py | f6fbd2dd0ba47de765fbfb9016bd433eeecf7f3d | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | # Set Selection Vertex Color v.01
# by Diego F. Goberna (@feiss) http://feiss.be
# Adds operator "Set Selection Vertex Color".
# Run it with "Blender Render" active, so vertex colors are displayed on viewport
bl_info = {
"name": "Set Selection Vertex Color",
"author": "Diego F. Goberna",
"version": (1, 0),
"blen... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fcb20109fea9b65053073cc83ba1aedc9ab1296c | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20190701/virtual_network_gateway_connection.py | 7830ade5390be77e21c4aafbdd2e3ff52a9fc7ee | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,464 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
faff6f8fa90206fcc65239264febbf90ded9aca0 | 4721fe6f2eda9cb314ea3c7b615dd50a81007019 | /Home/Tests/xTest_001_A320_MontDeMarsan_Leipzip.py | 56598d86d3d23e81afcb2b61c38ae68d18354bdd | [] | no_license | RobertPastor/AircraftTrajectoryPredictionNG | 741018f2409ac054efcd6f250d4c81a3b88a6e50 | 089cf679a911152c9da6f3f268baf5f30bcf9c18 | refs/heads/master | 2022-08-06T12:28:18.285097 | 2022-07-16T07:37:46 | 2022-07-16T07:37:46 | 332,881,458 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | '''
Created on 6 janvier 2015
@author: PASTOR Robert
'''
import time
from Home.Guidance.FlightPathFile import FlightPath
Meter2Feet = 3.2808 # one meter equals 3.28 feet
Meter2NauticalMiles = 0.000539956803 # One Meter = 0.0005 nautical miles
NauticalMiles2Meter = 1852
#================================... | [
"robert.pastor0691@orange.fr"
] | robert.pastor0691@orange.fr |
5dbd2c5023505e71e21c99ac010d1c620cb84ea5 | 6f844abf7c436a4ae3444744c523f5f1fe6367a4 | /Homes/Bookings/migrations/0009_bookingfacility_remark.py | 0f08a5330e7ee02bd2a277fe0e58a4935c5f079a | [] | no_license | deepakbhamla/Halanx_Backend_Task | 1dd02a1061eb4d4f6072a3276735cb606dfec752 | acda98c6b79690689317585dd06cf0c1cfc65192 | refs/heads/master | 2022-04-12T10:02:29.740781 | 2020-03-12T12:17:22 | 2020-03-12T12:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-11-05 05:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Bookings', '0008_auto_20181022_2320'),
]
operations = [
migrations.AddField... | [
"patel.ayush08@gmail.com"
] | patel.ayush08@gmail.com |
79121475b340e8b2b5a2c2d1a1de66242b113fe7 | d6a7f5bdfc53bd5557158fb852aef4423db0468e | /setup.py | 1cceb2812a74a0caec897edff02450a909417674 | [
"MIT"
] | permissive | felipesotero/tapioca-wrapper | c8c727b162e39ea26a6f91774e31124e1a9ec9d1 | a75e466cdd8349444c9ce1a0f58a86c94b4be2a2 | refs/heads/master | 2020-12-25T03:21:15.660093 | 2015-08-02T20:23:23 | 2015-08-03T23:24:28 | 40,087,625 | 0 | 0 | null | 2015-08-02T17:48:57 | 2015-08-02T17:48:57 | null | UTF-8 | Python | false | false | 1,835 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
import os
import sys
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, RuntimeError):
readme = ''
packa... | [
"filipeximenes@gmail.com"
] | filipeximenes@gmail.com |
ba8de3f3ace5a28f7078a04b7f514c8fff199eb0 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /abc174/e.py | 5cfd08ecb84fc4c0f6cce09365417db69bfc38ff | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import math
n, k = map(int, input().split())
aa = tuple(map(int, input().split()))
amax = max(aa)
al = 1
ar = amax
def f(x):
global aa
y = 0
for a in aa:
y += math.ceil(a / x) - 1
return y
while ar - al > 1:
a = (al + ar) // 2
b = f(a)
if b <= k:
ar = a
else:
... | [
"silphire@gmail.com"
] | silphire@gmail.com |
b4bfa26fb12a81b89217899020c1759c59c4e11e | d491c11dc87a955c95a4e14a2feea19fe1fa859e | /python/Arcade/Core/C48WeakNumbers.py | 2e494b6386662bc960fbb5395a0bfa783b597d9b | [] | no_license | Vagacoder/Codesignal | 0f6ea791b25716cad7c46ab7df73679fb18a9882 | 87eaf44555603dd5b8cf221fbcbae5421ae20727 | refs/heads/master | 2023-07-16T04:18:44.780821 | 2021-08-15T18:41:16 | 2021-08-15T18:41:16 | 294,745,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | #
# * Core 489, Weak Numbers
# * Easy
# * We define the weakness of number x as the number of positive integers smaller
# * than x that have more divisors than x.
# It follows that the weaker the number, the greater overall weakness it has. For
# the given integer n, you need to answer two questions:
# what is... | [
"qiruihu@gmail.com"
] | qiruihu@gmail.com |
000aa609ff0158efd0a934d04f09638fe1b2d956 | baf3996414315ffb60470c40c7ad797bf4e6897f | /17_boilerplates/dashing-master/examples/todo_app.py | 878daeccb09623ed371d4e73cb84aba270d69ec4 | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 2,678 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State, MATCH, ALL
app = dash.Dash(__name__)
app.layout = html.Div(
[
html.Div('Dash To-Do list'),
dcc.Input(id="new-item"),
html.Button("Add", id="add"),
... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
17f3d282350cd501df2b2afbadd831b968357d1d | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0148_make_keywords_in_general_information_question_mandatory.py | 69a34a0e605629c8a59062166ff48ef732d40246 | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 814 | py | # Generated by Django 3.0.10 on 2020-12-03 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_core', '0147_add_field_to_enable_disable_keywords_question_general_information'),
]
operations = [
migrations.AlterField(
... | [
"carles@pina.cat"
] | carles@pina.cat |
0375d1731580f4c21cda3b9da115ceb27a58560e | 3e7a772a74dca544c241c2a4bf34790b7cb13b50 | /vvt/libvvtest/testcase.py | 7e7e673bddcf2c8d562e91d64334d49bfa394ae1 | [] | no_license | rrdrake/vvtools | 2af490f2dff6462320c14caa8b78463c640a51f6 | 2d07558737127077f97e9347d84e6ca46885b0bc | refs/heads/master | 2022-10-29T11:14:30.640460 | 2020-06-13T12:25:06 | 2020-06-13T12:25:06 | 109,034,639 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | #!/usr/bin/env python
import os, sys
from . import depend
from .teststatus import TestStatus
class TestCase:
def __init__(self, testspec, testexec=None):
""
self.tspec = testspec
self.texec = testexec
self.tstat = TestStatus( testspec )
self.deps = []
self.depd... | [
"rrdrake@sandia.gov"
] | rrdrake@sandia.gov |
6ca28efed16e16aa7430ede059236bd68db6c10c | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/autograph/impl/conversion_test.py | d2b2f111729ef8efe6677b474da99a8ccfbe1e5a | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 4,103 | py | # Copyright 2017 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.