blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3565db12c8b480aa89ccde8a920b235468f5b8bd | a76401f82ed1c9ac47ddaff27681b90f37627426 | /.history/student_olx/main/views_20210918220710.py | 00898ea1a70e8e5709999b326bcaf4ccf228a65b | [] | no_license | RiteshK555/itw-project | e90e1dd13517ee8b07d72cc3bd5a42af367ab587 | a2e4c8682c2030ff77da9ade5ae4677bd475f87a | refs/heads/master | 2023-08-30T03:48:58.904979 | 2021-11-10T09:50:59 | 2021-11-10T09:50:59 | 410,032,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | from django.http.response import HttpResponseRedirect
from django.shortcuts import render,redirect
from .models import ToDoList
# Create your views here.
from django.http import HttpResponse
from .forms import CreateNewProduct
def index(response,id):
lis=ToDoList.objects.get(id=id)
return render(response,"main... | [
""
] | |
e2ab0a6b5f834da36da9c43a403a5cbf2d0cdc65 | 760fc9cf9aabafba3f9f3cd7f5c234a6609b5ebc | /DATA-STRUCTURES/Stack/PostfixEvaluation.py | 8a459fac9c5b28824758c1dd759f94032c475b65 | [] | no_license | disha2sinha/Data-Structures-and-Algorithms | a7db12dbbdc9491efa0800d4e464481623fc7f3c | 8b58d06abf5244b6932561377290bdbd5ea146d7 | refs/heads/master | 2022-06-03T21:54:13.422645 | 2022-05-10T16:31:34 | 2022-05-10T16:31:34 | 201,489,081 | 6 | 5 | null | 2020-10-02T07:52:35 | 2019-08-09T15:01:05 | C++ | UTF-8 | Python | false | false | 835 | py | def operation(op1, op2, operator):
if operator == "+":
return op1+op2
if operator == "-":
return op1-op2
if operator == "*":
return op1*op2
if operator == "/":
return op1/op2
if operator == "^":
return op1^op2
def evaluate(exp_list):
stack ... | [
"noreply@github.com"
] | disha2sinha.noreply@github.com |
4d387f41ec94b1fdbd8c41be171e0c42b85c313d | 4b28a599d495779d60f0013a11bc7954251139fa | /priorCourseGradeTF_inner.py | fa01230f5554e0fda56a579159933aa71a6b3267 | [] | no_license | JasonLC506/nittany_ai | 18653a18c3b47a55045b2e595bfccff6951706da | 1e004bf042e2939b8eefac172fa5ec45ae1c9da9 | refs/heads/master | 2020-06-17T00:14:33.076238 | 2019-07-09T15:01:35 | 2019-07-09T15:01:35 | 195,740,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | import tensorflow as tf
import _pickle as cPickle
import numpy as np
import time
from tqdm import tqdm
from priorCourseGradeTF import (
data_loader,
PriorCourseGrade as PCG,
)
MAX_ITER = 10
class PriorCourseGrade(PCG):
def setup_network(self):
with tf.name_scope("embedding"):
self.e... | [
"jpz5181@ist.psu.edu"
] | jpz5181@ist.psu.edu |
59885a78501ecb843e715b9bd5e038d150ba4db8 | cccc5d20b81ec58f2941765d3b88b3fbfe2cedc9 | /app/request.py | 8318de4e13f1493675425f0c72fdac1cca63e131 | [
"MIT"
] | permissive | adosamjeshi/News-highlight | 78d87a56cc7bb1902ccb5ace995be9d6d4327938 | c1e469c8a4b493e5fad07b264da100e537717018 | refs/heads/master | 2022-07-04T10:06:23.083289 | 2020-05-12T14:27:19 | 2020-05-12T14:27:19 | 263,355,411 | 0 | 0 | MIT | 2020-05-12T22:21:39 | 2020-05-12T14:08:43 | Python | UTF-8 | Python | false | false | 3,312 | py | import urllib.request
import json
from .models import News, Sources
# getting api key
api_key = None
# getting the news base url
base_url = None
def configure_request(app):
global api_key, base_url
api_key = app.config["NEWS_API_KEY"]
base_url = app.config["NEWS_API_BASE_URL"]
def get_news(category)... | [
"noreply@github.com"
] | adosamjeshi.noreply@github.com |
8a431fd0e791b2f697b2f302884856a63fedaacd | cb6e6e9c310f3bc8ea7fa0b07c955b0b99693f80 | /nadb/urls.py | a6c37398c650db7ab0fe01db2e94f067f3829ec5 | [] | no_license | MechanisM/django-nadb | b9404926540473900b354b2d27e1cda75cdfc3c6 | b97ada6fedff7c9ba7994d6742a17979a939da71 | refs/heads/master | 2020-12-25T04:46:35.152055 | 2012-03-27T01:39:39 | 2012-03-27T01:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | """
URL patterns for django-nadb.
Simply use a line like this in your root URLConf to set up the default
URLs for django-nadb:
(r'^blog/', include('nadb.urls')),
Including these URLs (via the ``include()`` directive) will set up the
following patterns based on whatever URL prefix they are included
under:
* Post... | [
"earonne@gmail.com"
] | earonne@gmail.com |
7bf65e7392da61782875463474e98ff06ebb0f75 | 15d049c1d3c427a4e5324f4b1d085a150f955f1a | /app_users/views.py | 022fe473ba9ff5d950afd5efa3900135393040c8 | [] | no_license | isaacnewtonfx/contacts-cicd | 2c597393667e1b678237b39713c538431fa17db1 | af94767ec3ae9e54b131a0932ba00beaa0ac5b8b | refs/heads/master | 2022-05-07T20:43:45.814974 | 2020-01-25T23:09:33 | 2020-01-25T23:09:33 | 233,688,058 | 1 | 0 | null | 2022-04-22T22:57:42 | 2020-01-13T20:34:44 | JavaScript | UTF-8 | Python | false | false | 8,117 | py | import datetime,os,shutil
import pdb,pprint
from django.http import HttpResponse,HttpResponseRedirect,Http404
from django.contrib.auth.decorators import login_required,user_passes_test
from django.contrib.auth import authenticate, login,logout
from django.views.decorators.csrf import csrf_protect
from django.shortcuts... | [
"isaacnewtonfx@gmail.com"
] | isaacnewtonfx@gmail.com |
4a8839c76e364ce097ae40ad6f248bb84cc4d8ef | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/base/models/dimensions/dimension_client.py | 666ebe39af5dc08ced900d20257b4276f2e8c9ce | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 1,358 | py | from django.db import models
from django_extensions.db.fields import UUIDField
from apps.base.models.dimensions.dimension import select_or_insert
from apps.flags.checks.client import client
class DimensionClient(models.Model):
"""
DimensionClient
Dim to filter down on clients within the reported data fac... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
d9116447940183782d77eb606f0d77ce6d21e8e3 | 7dc7b55c9fa6d7f5c6fba416fdd67367e7648beb | /tools/answer_authenticator.py | 6384256e962ebfeb90ca809699c00d375cfaa1f7 | [] | no_license | kunihik0/eye-pass | 7c39a35a28bf060fa2c2c11ea5bf86a94afb9f0d | 33bf3cd03ef2143c440b4ca7a428ed5f03a3245f | refs/heads/master | 2023-03-08T06:24:13.332006 | 2021-02-21T08:52:33 | 2021-02-21T08:52:33 | 271,292,524 | 0 | 0 | null | 2021-02-21T08:52:34 | 2020-06-10T14:02:11 | Python | UTF-8 | Python | false | false | 715 | py | import math
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
sys.path.append("../")
sys.path.append("../tools/")
sys.path.append("../answer_data/")
import numpy as np
import pandas as pd
from tools.evaluator import Evaluator
class Answer_Authenticator(object):
def __init__(s... | [
"tokuko2yuu.nikkorishiyou@gmail.com"
] | tokuko2yuu.nikkorishiyou@gmail.com |
0d1cd79ce9a39c39200082549e43260515a74acf | 4e1614393d049b5e07a7fb2204ea47b6ecd341d1 | /pyqt-5 options/scripts/color_picker.py | 653845c090e456278f40908714803e27bc507b68 | [] | no_license | fzerman/pyqt5-options | cee81ae8519a14086f03ce10a906088676b162ba | 47cd649137ab02f951a44c23fdef00ca21e91c99 | refs/heads/main | 2023-04-12T13:47:39.248208 | 2021-05-12T11:15:08 | 2021-05-12T11:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from PyQt5.QtWidgets import QColorDialog, QPushButton
from PyQt5.QtGui import QColor
class ColorPicker(QPushButton):
def __init__(self,value = [255,255,255,255]):
super().__init__('Open color dialog')
self.rgb = value
self.setToolTip('Opens color dialog')
self.move(10,10)
... | [
"noreply@github.com"
] | fzerman.noreply@github.com |
879f74a6b1320396aec7eeac890e80d9bc6010d2 | f474d500b7da4f4069e24fddcde97783a4f3664b | /vagrantEnv/lib/python3.5/encodings/shift_jis_2004.py | 0e58f25e4692aec46d75fe5c0684e974b5d6ebb5 | [
"Apache-2.0"
] | permissive | Thanh-Lai/chat-bot | 220a0fd6383181f0cdaf732b5c02f645bd960a28 | e3007fa6e034d3cccff4615a7eccf0e75bbc1708 | refs/heads/master | 2020-04-23T09:39:04.509356 | 2019-02-18T04:56:25 | 2019-02-18T04:56:25 | 171,075,880 | 0 | 0 | Apache-2.0 | 2019-02-18T04:56:26 | 2019-02-17T03:00:39 | Python | UTF-8 | Python | false | false | 46 | py | /usr/lib/python3.5/encodings/shift_jis_2004.py | [
"tlai1122@gmail.com"
] | tlai1122@gmail.com |
94b3299de331c59da66c1a70f41ba734bbafbf4c | 83e96abe109d65a922679df75cf3108d9130f88b | /python_20.py | d83b399b76a025b6545e1925b780a1c6685d7d3b | [] | no_license | AStudentCoder/ICS3Uredo | 6c2934154ae4d86f62916e21d4a0987283809709 | dbfd5348fdfb929a6c119aab8c87a801bf4c87b4 | refs/heads/master | 2020-01-23T21:42:47.994742 | 2016-11-24T15:46:59 | 2016-11-24T15:46:59 | 74,686,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | '''Represent a small bilingual lexicon as a Python dictionary in the following fashion {"merry":"god", "christmas":"jul", "and":"och", "happy":"gott", "new":"nytt", "year":"år"} and use it to translate your Christmas cards from English into Swedish. That is, write a function translate() that takes a list of English wor... | [
"noreply@github.com"
] | AStudentCoder.noreply@github.com |
4c6b37c4b6d003a5c694b4bdd7795f7854e6f430 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/managedidentities/v1beta1/managedidentities-v1beta1-py/noxfile.py | 34dc58b5f6e2c0eefe1b194e280ee2a1542d9b95 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7df42e2ac65b41410913aeea15f66a7ecc66569b | 772d1ab6a1814e4b6a408ee39865c664563541a6 | /lms_app/lms_dto/QuestionDto.py | 8b8efd36df53eb095889030e90c1f10efc0d854d | [] | no_license | omitogunjesufemi/lms | 7deed8bf54799034d6af2b379a0c56801f5645cc | 9c8bb88556a3f5598cf555623ef016a74ae3f5c7 | refs/heads/master | 2023-05-04T12:52:13.862572 | 2021-05-25T13:48:26 | 2021-05-25T13:48:26 | 330,643,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | class SetQuestionDto:
question_title: str
question_content: str
choice1: str
choice2: str
choice3: str
choice4: str
answer: str
assigned_mark: int
assessment_id: int
id: int
class UpdateQuestionDto:
question_title: str
question_content: str
choice1: str
choice2:... | [
"omitogunopeyemi@gmail.com"
] | omitogunopeyemi@gmail.com |
d8ea407d41b9cb81401a2718e854ebdd703c93a0 | d51bed0d1f7917e05dc62e867f64035bfe875c04 | /virt_env/bin/flask | 880af2eab7944e502bab708436a16787f5f08e68 | [] | no_license | JQuelen/cse312-project | 0aae924fc4eca0dc38e79da74b406fa9ff9592be | e5268352b5593438f54a816fcad1b51704c8cec6 | refs/heads/main | 2023-04-15T02:41:33.066088 | 2021-05-08T02:06:11 | 2021-05-08T02:06:11 | 341,030,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/ren/school/312/cse312-project/virt_env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"cantopra@buffalo.edu"
] | cantopra@buffalo.edu | |
497873aaf13583eda297f97fa3f2d5ce489102fd | 2d7a6c084e55e52ca11378211b2cdea06a7fefa8 | /ex021.py | 9d6f73e75441d8561470e1ff80efad0e8dde34f0 | [] | no_license | 21lucasmessias/CursoEmVideo-Python | 2e0203aae33c1360c833e7c8f9c0b4cf861098ae | c05145e60a06ab959dbd0490239b12523ecd1c2a | refs/heads/master | 2020-07-04T19:46:24.783471 | 2019-08-14T17:16:02 | 2019-08-14T17:16:02 | 202,394,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from pygame import mixer
mixer.init()
mixer.music.load('ex021.mp3')
mixer.music.play()
input('Listening')
| [
"noreply@github.com"
] | 21lucasmessias.noreply@github.com |
dfeae749b48534bb374a945d0bfda2df5bebe3d4 | 9ddfd30620c39fb73ac57e79eae0a001c45db45f | /addons/prt_mail_messages_draft/models/prt_mail_draft.py | 4e5815554dc290a8168928d341b09e81ec8f574e | [] | no_license | zamzamintl/silver | a89bacc1ba6a7a59de1a92e3f7c149df0468e185 | 8628e4419c4ee77928c04c1591311707acd2465e | refs/heads/master | 2023-01-06T20:29:25.372314 | 2020-10-29T21:02:41 | 2020-10-29T21:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,658 | py | from odoo import models, fields, api, _, tools
# import logging
# _logger = logging.getLogger(__name__)
# -- Select draft
def _select_draft(draft):
if draft:
return {
'name': _("New message"),
"views": [[False, "form"]],
'res_model': 'mail.compose.message',
... | [
"mohamed.abdelrahman@businessborderlines.com"
] | mohamed.abdelrahman@businessborderlines.com |
2d47233cae6785171b2a36fbf2d434ff58c079fb | 5f95ea2d1f2d847121b94631c4e92266de507fb1 | /src/modeling.py | 0e8297662b522287f0f2fa05a3bc777a33cd5549 | [
"MIT"
] | permissive | katsu1110/numeraizer | bedcbfcfa5ad1ca24fb7f2bd183bccd534862bfa | 49f788a7e53605263351516171ba4d6d6e7cb8df | refs/heads/main | 2023-08-07T12:50:04.851786 | 2021-09-16T14:32:06 | 2021-09-16T14:32:06 | 291,437,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,593 | py | # libraries
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import gc
from tqdm.auto import tqdm
import joblib
import pathlib
import glob
import json
import scipy
from scipy.stats import skew, kurtosis
from sklearn import decomposition, preprocessing, linear_mo... | [
"katsuhisa@KatsuhisanoMacBook-Pro.local"
] | katsuhisa@KatsuhisanoMacBook-Pro.local |
5b4c0437db6470f56799c36a888f998b93d784ab | f28bb4392681912679b41b7e2d1994404e68f772 | /blogpy_articles/migrations/0001_initial.py | 06f1ab5a22fd1e720c396dfc7a2916eaa90fb772 | [] | no_license | erfanmorsali/my_blogpy | 7385f3c15f02ff1c4fcfce11792b29b643d7df6f | 15bb670fe866612ee86dbe2968c708263a24a69e | refs/heads/master | 2023-02-22T08:06:24.704781 | 2021-01-30T09:08:45 | 2021-01-30T09:08:45 | 307,731,993 | 0 | 2 | null | 2020-11-03T15:50:10 | 2020-10-27T14:45:59 | Python | UTF-8 | Python | false | false | 1,118 | py | # Generated by Django 3.1.2 on 2020-10-27 19:43
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),
]
ope... | [
"erfanmorsalidev@gmail.com"
] | erfanmorsalidev@gmail.com |
747b7dc02723dca66a8f5383174530e1e272eb83 | 6a6a272013dae1faba8cd31058a7b0bbd6c2b048 | /book_dongbinna_with_python/chapter09최단거리/미래도시.py | 88388602793b32891bcd0768b3ba782130c197ed | [] | no_license | daegu-algo-party-210824/hojin_algo | b21addae1d5d6a827877f99c20f9498bd328e877 | 1841f0ab9be8a9b4407d8cb9f9fc348373e78f8a | refs/heads/main | 2023-08-17T19:19:51.621761 | 2021-10-17T21:08:39 | 2021-10-17T21:08:39 | 399,362,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | INF = int(1e9)
# 노드의 개수 및 간선의 개수를 입력받기
n, m = map(int, input().split())
# 2차원 리스트를 만들고, 모든 값을 무한으로 초기화
graph = [[INF] * (n + 1) for _ in range(n + 1)]
# 자기 자신에서 자기 자신으로 가는 비용은 0으로 초기화
for a in range(1, n + 1):
for b in range(1, n + 1):
if a == b:
graph[a][b] = 0
# 각 간선에 대한 정보를 입력받아, 그 값으로 초기... | [
"hojin9car@gmail.com"
] | hojin9car@gmail.com |
eeb2122248c6cdc5753e2161399497081b0a4a1c | c32c0bf9c24138a039203087877d8ecd1da81beb | /lib/clients/metaApi/metatraderDemoAccount_client_test.py | 42b10b01e8b2ec1d1382b8ffc6673ce2ccc62598 | [] | no_license | marceluphd/metaapi-python-sdk | c469d4ecd89e6427d86beb613304e1404a2f5b9d | a90760a52f7ecc06e12dfa0d12fc1bc9e6178af5 | refs/heads/master | 2023-01-06T00:25:56.450951 | 2020-11-08T12:01:23 | 2020-11-08T12:01:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | import responses
import pytest
from ..httpClient import HttpClient
from .metatraderDemoAccount_client import MetatraderDemoAccountClient
PROVISIONING_API_URL = 'https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai'
http_client = HttpClient()
demo_account_client = MetatraderDemoAccountClient(http_client, 'header.... | [
"roman.k.as@agiliumlabs.com"
] | roman.k.as@agiliumlabs.com |
51283136a72108723224d37013bae216201001d6 | 1847d6dadc256623b2b838c2013245bb76aa2f66 | /sds/sds/wsgi.py | 200b5143612745741637fb6699d896a708f57113 | [] | no_license | tuckj3569/sds | 9e244c9d12f56015e43b66e0f49a3fe185b87cbd | e37521019f720bed55148dd174d564b64cc7a461 | refs/heads/master | 2022-05-26T10:54:11.006060 | 2018-11-20T00:36:31 | 2018-11-20T00:36:31 | 157,311,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for sds 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"38771207+tuckj3569@users.noreply.github.com"
] | 38771207+tuckj3569@users.noreply.github.com |
de48afc07698b7b700b7091b68a3e1aee205870d | 9de245acdb1a5a102e6e70d850817aaee6ef861b | /exercises/zAlgorithm.py | c5403887f406639ea1e968f5f769f0b5be392499 | [
"Apache-2.0"
] | permissive | narendraparigi1987/python | 09aac262fc5f9285b105a2bef4a4648a2a1c0d1d | b3e235e7653583c0a1149b75e1527d44c0834de7 | refs/heads/master | 2021-04-03T01:08:13.567406 | 2018-03-09T23:43:12 | 2018-03-09T23:43:12 | 124,603,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | #!/usr/bin/py
# Head ends here
def zAlgorithm(s):
z = {}
l = 0
r = 0
n = len(s)
for k in range(1,n):
if k > r:
l = r = k
while r < n and s[r] == s[r-l]:
r+=1
z[k] = r -l
r-=1
else:
k1 = k-l
if z[k... | [
"naren.parigi@gmail.com"
] | naren.parigi@gmail.com |
2d5c82c21a0762d88be5c748f3c0444cf149e6ba | e61467cee2ace448cd138cfe3891865d149e18aa | /freelancer/settings.py | 7c1b74b623f180adfcb49a58e06f760c01365f68 | [] | no_license | leonardo1909/freelancer | 159958c035717682a8b9a7487194d54748f32347 | 171615c957c9d9fcf25a2a5a37d0986b06c6608b | refs/heads/master | 2022-12-05T03:53:41.037631 | 2020-08-23T21:50:31 | 2020-08-23T21:50:31 | 289,768,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | """
Django settings for freelancer project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"leonardo.jose94@outlook.com"
] | leonardo.jose94@outlook.com |
01b799d7efe96a6343a26b4a2232186869dfae4d | ea00ed279283b2635529ecc03a10b755bb46b525 | /GiveAwayApp/scripts.py | 7c68bd000638cd1843eab2a3fd0c50c82691b7bb | [] | no_license | soboniek/give-away-app | 327772c635aea759798ec43b4b70228a07afe6b1 | eefa16cf28cb509bf5caf9d745ac7ca6edd373f9 | refs/heads/main | 2023-01-24T00:16:28.771216 | 2020-11-23T14:28:17 | 2020-11-23T14:28:17 | 307,805,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | import datetime
from random import randint
from django.contrib.auth.models import User
from GiveAwayApp.models import Category, Donation, Institution
def create_users():
User.objects.create_user('aaa', email='aaa@aaa.pl', password='aaa')
User.objects.create_user('bbb', email='bbb@bbb.pl', password='bbb')
... | [
"olga.lepecka@gmail.com"
] | olga.lepecka@gmail.com |
33c9ea501c3e9f897d843332978df996557de4fc | 905a2ac66149377da7832c7457201af66da4d846 | /order/tests.py | 3f1ae1045eb4c8558a88cb3219794371ee1ad788 | [] | no_license | no0xgold/one-page-ecommerce-web-app | d185ad0ba2369c56e9482471328f1432a90a65e2 | ab56f63e59e68365753b4b5c4f3a0faf95a21a8e | refs/heads/main | 2023-04-17T20:39:20.845733 | 2021-04-30T13:21:35 | 2021-04-30T13:21:35 | 342,781,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py |
from django.conf import settings
from django.contrib.auth import get_user_model
from django.test import TestCase
User=get_user_model()
# Create your tests here.
class OrderTestCase(TestCase):
def setUp(self):
user_a_pass ='amira12234'
self.user_a_pass=user_a_pass
user_a = User(username='a... | [
"noxraktor@gmail.com"
] | noxraktor@gmail.com |
689cfdb0bc848c8a3eae966b31ec04fd9e24f7f6 | 0bb27c2d2e1f7e44537515ae31f8e1713ece8407 | /5-6. 라이브러리/05-6-06.py | 697e30a7580686b3e8efcaa896a5ab8948a98951 | [] | no_license | calmahn/jump_to_python | f00d5aa11d1e2abe82f3698a403a288ed03acdb8 | 164ea4ef72f9a1ed4bc62f8580404d833ba4e442 | refs/heads/master | 2023-04-14T08:00:00.552291 | 2021-04-27T11:48:03 | 2021-04-27T11:48:03 | 345,359,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import tempfile
filename = tempfile.mkstemp()
print(filename)
f = tempfile.TemporaryFile()
f.close() | [
"acy824@naver.com"
] | acy824@naver.com |
7312d5425046c75f8b0c000b41197500ca3427cf | cbfaff10128807a84a91dfb52b720781bc07c29b | /airflow/dags/polygonetl_airflow/build_parse_dag.py | 4eb599cffa79ff6e4a4d8d3715a5496109d1fc11 | [
"MIT"
] | permissive | hansolavhilsen/polygon-etl | 7128516029bac7e112fe79c54e0508c086fa0f47 | ba45f5996a336f39864f6d29fbb8d7d7b40e76bb | refs/heads/main | 2023-07-03T11:25:39.039512 | 2021-08-09T11:21:47 | 2021-08-09T11:21:47 | 393,390,827 | 0 | 0 | MIT | 2021-08-06T13:48:54 | 2021-08-06T13:48:53 | null | UTF-8 | Python | false | false | 8,860 | py | from __future__ import print_function
import collections
import logging
import os
from datetime import datetime, timedelta
from glob import glob
from airflow import models
from airflow.operators.bash_operator import BashOperator
from airflow.operators.email_operator import EmailOperator
from airflow.operators.python_... | [
"araa@connect.ust.hk"
] | araa@connect.ust.hk |
edfb5453073a6d9575cdaf11a8e4117f7ae0ec0d | 5e05c6ec892d9a6bc33c0c0a9b6ce4c7135a83f4 | /cristianoronaldoyopmailcom_299/settings.py | d5a0c910720d8dd82153b4b4433f70e3d17e090e | [] | no_license | payush/cristianoronaldoyopmailcom-299 | 54eb5118840ea7ea68f077ffd7032a62a79880f3 | 52e5bb6ad599605b8cdf1088f9d7cdcf7c1a0265 | refs/heads/master | 2020-03-23T14:23:17.476546 | 2018-07-20T06:30:07 | 2018-07-20T06:30:07 | 141,672,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | """
Django settings for cristianoronaldoyopmailcom_299 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/s... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
6a1f1091be991369d46e65e58cffcef7aa13c248 | 2d80f83b1687a890c0016c677e5941472a618ba8 | /hanbitco/__init__.py | 022ef4c5e728a5d8b3cd5e4968ed8af39c9d06ab | [
"MIT"
] | permissive | plutusds/hanbitco-api-python | d1ac616b853093069b1a99d1cf168b018e8c9ac7 | 0783d5f9be0668b42eba295a736cea08191806b3 | refs/heads/main | 2023-04-03T12:48:09.629754 | 2021-03-24T03:22:28 | 2021-03-24T03:22:28 | 348,755,381 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from hanbitco.constants import OrderType, OrderSide, OrderStatus
from hanbitco.utils import create_order_payload
from hanbitco.api import HanbitcoAPI
| [
"kevink1103@gmail.com"
] | kevink1103@gmail.com |
7175e51e0ffb40cc2db8f90702cd73f0d831deeb | 415a614a54eae170e926154593bab34aac4695fb | /python-dictionary/small1.py | 9b530d8d8c1ce6e84a971309d11e75a936d06b27 | [] | no_license | DasomAnH/python | 434f8d16ad5a437c80efc62c0ae16ea6437a299b | 14b248f71bc0784f433e5e8e38703f97c5d98cb5 | refs/heads/master | 2022-12-12T22:35:56.726214 | 2020-08-31T16:32:13 | 2020-08-31T16:32:13 | 289,390,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | phonebook_dict = {
'Alice': '703-493-1834',
'Bob': '857-384-1234',
'Elizabeth': '484-584-2923'
}
# retrieve value
person = phonebook_dict['Elizabeth']
print(person)
# add a value
phonebook_dict['kareem'] = '938-489-1234'
# delete
phonebook_dict['Alice'] = 'number hot found'
del phonebook_dict['Alice']
#... | [
"ektha116@gmail.com"
] | ektha116@gmail.com |
21905c5fbd4025d75f10237b226ebf37b75e9435 | f4d1492bf4e01dabcac68f2244f9fd540c21ca29 | /Card.py | 127c772f1389660dbb333434d7f7ac87d723f7df | [] | no_license | jordi2105/LabyrinthBot | 9c346e70e9f98f1d5d79509b907bfccf72b3a187 | 57124118b7ae2997b0f157c7fe75fec3caaf875d | refs/heads/master | 2022-12-03T20:55:56.944994 | 2020-09-02T10:56:29 | 2020-09-02T10:56:29 | 264,283,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import Objective
import pygame as p
import copy
class Card:
def __init__(self, objective: Objective=None, image_file_url: str=None):
self.objective = objective
if image_file_url is not None:
image = p.image.load(image_file_url)
self.image = p.transform.scale(image, (100, ... | [
"jordi.verheul@hotmail.com"
] | jordi.verheul@hotmail.com |
95c6dc627b9d0477a4aace75cad812e43a612748 | abc6015c3c4bc7b15de81d8bdc920674bfd63cd6 | /TGNDA_fog.py | 160e9f1c131c685fd17c41a5c7fffd3987c47d48 | [] | no_license | tnda-har/tda4fog | 2ff7c33efd8d557ad6a095e3b6b52e28c815724c | 3849757da45308cbb63b9bd5e4fbd80ea2d17f5a | refs/heads/main | 2023-07-17T08:15:41.513970 | 2021-09-03T07:08:12 | 2021-09-03T07:08:12 | 368,104,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,906 | py | # %load test.py
import math
import os
import random
import time
from numpy import interp
import pandas as pd
import numpy as np
from gtda.diagrams import Scaler, BettiCurve, PersistenceLandscape, Silhouette
from gtda.homology import VietorisRipsPersistence
from gtda.pipeline import make_pipeline
from gtda... | [
"noreply@github.com"
] | tnda-har.noreply@github.com |
77eaad8fff2a0f72251107e65f2fd3b4fb38914c | 4dc4edd6cb8a6e895cce46ac0c4ed7f9655cc0fd | /Array.py | 616ee4b264052741e83c7d02f25da045ce5e28e5 | [
"MIT"
] | permissive | KaloyanDragiev/Python_Jenkins_Splunk | 98380a68bb5002dd83c568ced18b371e6c1f77c7 | 8d0c6139fc4121baed0f0208f56ad6933a728db8 | refs/heads/main | 2023-04-10T16:49:15.387056 | 2021-04-27T12:44:49 | 2021-04-27T12:44:49 | 360,524,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | cars = ["Mercedes-Benz", "Audi", "BMW"]
for x in cars:
print(x)
| [
"noreply@github.com"
] | KaloyanDragiev.noreply@github.com |
f3d46fb64540cba1c12c46e08db3cba2eb1aa2f2 | f60f3ca2ea77cfaf2d12b949241252c42a0950c8 | /src/simulator/workflows/container.py | bceec745f29237b65de38323661bcadd15b7e136 | [] | no_license | belyakov-am/cloud-simulator | 39b1d84f4f0edba1098bd8d85f35d08106d4db04 | d2516adab27888a21e60651d536821c0a61092d8 | refs/heads/master | 2023-04-28T10:49:49.048826 | 2021-05-23T14:49:15 | 2021-05-23T14:49:15 | 344,893,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | class Container:
"""Representation of (Docker) container with required libraries for
workflow execution.
"""
def __init__(self, workflow_uuid: str, provision_time: int) -> None:
self.workflow_uuid = workflow_uuid
self.provision_time = provision_time
def __repr__(self) -> str:
... | [
"pochtaforfkn@gmail.com"
] | pochtaforfkn@gmail.com |
743cc0818768c373bc08f9acf81e567aacb3a69b | d528d21d32a2a7f299e8365d0a935b8718f9c07f | /cogs/utils/checks.py | 7f0962fe5b0e94c665e2849f9eb198a293c99c7d | [] | no_license | sizumita/Aegis | 53b3f3db4d88b8ffdbc0d44781f55251081a32fc | 2c9684695a32481583fd214fa63deaddea3d5ebc | refs/heads/master | 2020-09-11T00:05:48.629459 | 2020-06-23T14:04:41 | 2020-06-23T14:04:41 | 221,874,644 | 6 | 4 | null | 2019-12-10T10:58:34 | 2019-11-15T08:04:23 | Python | UTF-8 | Python | false | false | 2,758 | py | from .database import CommandPermission
from discord.ext.commands import check
import discord
async def check_command_permission(context):
"""
権限周りについて:
DMの場合確実に有効
CommandPermissionがなければそもそも有効化されていない
作成されていて、かつroles、users、permissionsが空であれば誰でも使える
:param context: commands.Context
... | [
"sumito@izumita.com"
] | sumito@izumita.com |
a5abed5427045f5e23f936aa700050d060c48ab1 | f5b340223a3dbde19889aaef01b9b18b6aab429a | /tasks_request.py | 3a2620d4c2131971893b8621a2e9e5b38cbf1eb0 | [] | no_license | jtpolo14/T0002 | a4b0399ce418d1607d2e4efa6e27f90eb12444bf | f099b62d92835bba600ce12d4a2a7d32a01156f6 | refs/heads/master | 2021-01-10T09:28:54.746517 | 2016-12-17T23:54:40 | 2016-12-17T23:54:40 | 53,239,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from celery import Celery
import time
from urllib.request import urlopen
import uuid
app = Celery('tasks', broker='redis://35.165.238.44', backend='redis://35.165.238.44')
@app.task
def check_input_file(file_path):
return file_path
@app.task
def move_input_file(file_path_start, file_path_end):
return (file_p... | [
"noreply@github.com"
] | jtpolo14.noreply@github.com |
ab2312766b10746a33edee87aae7a0185bc0508e | 70ce903a7b835e4e960abe405158513790d37426 | /django-bloggy/bloggy_project/blog/models.py | 6e45b65afb50888a69149b4da6bd875560586d7b | [] | no_license | lpatmo/book2-exercises | 29af718d74732a5bbe287ab60a67b0d84d4e0abd | 9524bc58997ff4eda10177abf70805f3691e247c | refs/heads/master | 2020-12-25T22:29:09.391501 | 2014-10-26T03:15:35 | 2014-10-26T03:15:35 | 25,755,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.db import models
from uuslug import uuslug
class Post(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
title = models.CharField(max_length=100)
content = models.TextField()
tag = models.CharField(max_length=20, blank=True, null=True)
image = models.ImageField(upload... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
4334d50846ce9d51cd46cd5202f5b2cccab0c0b3 | 64806194523cf79e3d948f2e3e4bf28d1002f6d3 | /mkb/evaluation/evaluation.py | b6c655ad1573d8f4bb6183232e9ee1bbe7d415a8 | [
"MIT"
] | permissive | EmanuelaBoros/mkb | 6cfef3797db9d19d5e93c0694f6c344dc9a6899d | 3a75f10a5cf86fb74bb349530982130b6e35740a | refs/heads/master | 2023-06-27T12:46:50.041189 | 2021-08-06T17:23:05 | 2021-08-06T17:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,019 | py | from creme import stats
import pandas as pd
from torch.utils import data
import torch
import collections
from ..datasets import base
from ..utils import Bar
__all__ = ['Evaluation']
class Evaluation:
"""Evaluate model on selected dataset.
Evaluate metrics Hits@1, Hits@3, Hits@10, MRR, MR on entities, re... | [
"raphael.sourty@gmail.com"
] | raphael.sourty@gmail.com |
0f56d4ad2504d3fc8c7bc698669c0f95e8b2b0c0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02701/s368667639.py | 8111538afd640004a5f4d8e54edf3e76da2a6571 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | print(len(set(open(0).read().split())) - 1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1ab588834c32ac5271741da9e08ff13e07c2fdcf | 0c4b4c8c13f6ef1e26e20172e36cabd33851a17a | /radius_input_peri&cone.py | 5e428611e6005056ec0bc15b4ba985796f4c300e | [] | no_license | masankar666/Day1_26052021_pub | c1540c0660fd700daa190c8943b1e86af2de82ee | 312dc8206aefdb88172ff01cd860c766a6b1859f | refs/heads/main | 2023-06-04T10:32:43.362485 | 2021-06-26T14:28:23 | 2021-06-26T14:28:23 | 371,361,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | '''
#Task 2
radius = 20
calculate perimeter of circle : 2 pi radius
'''
#dynamic radius input from user
r = float(input("Enter your radius as input:"))
h = float(input("Enter your height:"))
pi = 3.14
peri = 2 * pi * r
area = 1/3 * pi * (r ** 2) * h
print("Task 2 pgm 1 :")
print("radius = ",... | [
"noreply@github.com"
] | masankar666.noreply@github.com |
5361f7d7c94132ad1719f0f21b8ce0657580b815 | f8bdc85e59cc703ec3fa771ea2abac9950b9ea83 | /server/pathgenerator.py | 6cc53fa91731d2f4d19e2b1b4c6ff76ba1053b8c | [] | no_license | subash-a/protosketch | 7b31fec37fa2246a5cccb4a17a8febb094b4c7a6 | f4d933e7e609bc6a1296cead8fd0c30e1aa0e22a | refs/heads/master | 2020-03-30T12:35:37.976140 | 2014-07-22T17:24:28 | 2014-07-22T17:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | import uuid
def getNewPrototypeId():
return str(uuid.uuid4())
| [
"s7subash@gmail.com"
] | s7subash@gmail.com |
bc9f514336676ddc97d1fc533448cc2a989f0a2d | 7dcbd6f01d33429925918afd3a7daff04e5b8346 | /rust_webrcon/oxide_commands.py | 6cb48c0a80a748d41c029cc7204d92a9602bad64 | [
"MIT"
] | permissive | thegreatstorm/rust_webrcon | 25514e92499672f462840c0711f11e7962bad1b0 | 2d0b670c57b30cceb5386334ed31e97e1a1f234e | refs/heads/master | 2022-11-30T01:42:26.948539 | 2020-08-13T23:05:14 | 2020-08-13T23:05:14 | 286,509,793 | 4 | 1 | null | 2020-08-10T23:30:22 | 2020-08-10T15:19:09 | Python | UTF-8 | Python | false | false | 2,951 | py | from rust_webrcon.utils.connection import connect_rust_rcon
def oxide_version(server_info):
command = 'oxide.version'
response = connect_rust_rcon(server_info, command)
return response
def oxide_plugin_list(server_info):
command = 'oxide.version'
response = connect_rust_rcon(server_info, command... | [
"djasso@splunk.com"
] | djasso@splunk.com |
42f319f1590604485a6f3d6007b2a3d6c014d924 | bfb5051ae8de82ec9ebfd329336e6aa6e7cea3d9 | /src/entities/difficulty.py | 4da58572326508ea2a53998c5c2206c083771a6d | [] | no_license | J-Uhero/ot-harjoitustyo | 400cadf132eaa78a5e106ab9ae409c804ef35745 | dc04dd58d910093ae4c9fb3ac581e3a99b72513b | refs/heads/master | 2023-04-29T07:55:47.081100 | 2021-05-19T23:39:33 | 2021-05-19T23:39:33 | 350,096,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | class Difficulty:
"""Luokka, joka kuvaa pelin vaikeustasoa ja sisältää vaikeustasoon
vaikuttavia muuttujia ja niiden parametreja.
"""
def __init__(self):
"""Konstruktori, joka alustaa vaikeustasoa ilmentävät muuttujat
asettaa oletusarvoisesti vaikeustason helpoksi.
"""
se... | [
"juho.herranen@gmail.com"
] | juho.herranen@gmail.com |
29dcc6918e6e732253f2ff0f81d976da35166127 | 744e72e6293c4cf93e1d97dc22c1d31851348056 | /resizePDF.py | a26bd81a5ec08659f044cac572a1f888ef3618db | [] | no_license | blueskycorner/resizePDF | b89fc58c380e4d795cf8dfa9ece4bf73220d38c4 | ddd479ad5e732141fe816a4ce1e188cb75e3dc42 | refs/heads/master | 2022-12-15T22:09:26.808343 | 2019-03-18T13:20:08 | 2019-03-18T13:20:08 | 173,715,753 | 0 | 0 | null | 2022-11-22T03:27:38 | 2019-03-04T09:36:43 | Dockerfile | UTF-8 | Python | false | false | 5,505 | py | import json
import os
import boto3
from fpdf import FPDF
from email.mime.text import MIMEText
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from botocore.exceptions import ClientError
bucketNameParamName = "bucketName"
tmpPathParamName = "tmpPath"
bucketName = os.get... | [
"ec2-user@ip-172-31-1-156.ec2.internal"
] | ec2-user@ip-172-31-1-156.ec2.internal |
77bf35076a85c2afd353540ed90cac6cc4258fa7 | f1ab02aa2593867c695d290bd06153c14cf0f098 | /npf/core/xmin/util/admin.py | d37563c3504757c9badc8a1b05e42f3aa296c801 | [] | no_license | 1npf/EDISSON-FAZA-1 | 0d3fa9c4836ae0bd4b405de646f3220687506cc5 | 81d78a8a0df4ba88cb4a32c6d4a616ca9a9e6ae1 | refs/heads/master | 2016-09-01T16:23:59.131240 | 2015-12-24T12:16:55 | 2015-12-24T12:16:55 | 48,541,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,065 | py | from django.contrib import admin
from django.core.urlresolvers import reverse, NoReverseMatch
from django.db import models
from django.http import Http404
from django.utils.html import escape
from django.contrib.contenttypes.models import ContentType
from npf.core.printform.models import Template
try:
... | [
"maxim.sorokin@gmail.com"
] | maxim.sorokin@gmail.com |
808afd2c166dd88286794b21c33a75891fcad75a | eb0bb5267035c0222da0c072c5dcd85b46099904 | /test/bug.986.t | 7d7e22538d6c69ad56a124722cd5c465bf5b6fda | [
"MIT"
] | permissive | bjornreppen/task | 6d96f578eec7b9cceeb4d728caeda87e7a446949 | a9eac8bb715ac8f51073c080ac439bf5c09493e8 | refs/heads/master | 2021-05-30T07:48:39.263967 | 2015-10-21T20:50:42 | 2015-10-21T20:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | t | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentatio... | [
"paul@beckingham.net"
] | paul@beckingham.net |
c835bb059b3de560e44f8f5470abdf3e721dc9fe | 3d8c0fddfa020c3c29fc244bba5c89aa9e8d5f15 | /lab_5/naive_bayes_model.py | 51cab803438b30b81db702bd6c8c6e32c4aa88d1 | [] | no_license | Max-1892/machine_learning | 43c24ea03ccc26d67ef015447b7e5525401cc0bd | ec363911fc913e8271e629657ffb0a2377c9571f | refs/heads/master | 2020-01-27T10:04:41.455509 | 2019-07-07T18:49:13 | 2019-07-07T18:49:13 | 67,073,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | import numpy as np
class NaiveBayes:
"""
This class encapsulates the naive Bayes algorithm.
Note: if a probability of 0 comes up during the prediction stage
a very small number is used for the calculation in it's place.
"""
def __init__(self):
self.class_priors = {0: 0, 1: 0... | [
"somethingfunny14@gmail.com"
] | somethingfunny14@gmail.com |
25d08dc751e8d64a9112ba62276617681a6e5d78 | 42e0305c8cc9e20fee14d359ec3d466fb4608607 | /进程和线程/信号量.py | 96d8b44d2b620d8c9a64ba0f291d7ef73961073b | [] | no_license | wuxvsuizhong/Li_pro | 976159583927823464d4576efb59aaf86ef65e13 | 7facd87e67f767412917d9b8668746f1d87ec28f | refs/heads/master | 2023-08-08T23:13:08.226873 | 2023-07-22T10:09:25 | 2023-07-22T10:09:25 | 107,368,788 | 0 | 0 | null | 2017-10-18T06:50:33 | 2017-10-18T06:42:18 | null | UTF-8 | Python | false | false | 551 | py | import random
import time
from threading import Thread,Semaphore
# 信号量用于控制访问特定资源的线程数量,通常用于某些资源有明确访问数量限制额场景,简单说就是用于限流
# 停车场
# 设置车位资源数为5
sp = Semaphore(5)
def task(name):
sp.acquire()
print(f"{name}抢到了车位")
time.sleep(random.randint(3,5))
sp.release()
print(f"{name}开走了")
if "__main__" == __name__:... | [
"devuser01@123.com"
] | devuser01@123.com |
787ab026083a3a4bd73e4ea8f22df850b46410bd | b7e72138d624d21fbeb877d0dd5613389fb70503 | /rifaqui/core/migrations/0009_raffle_draw_date.py | c5592c5f1dc6a7f21ce2c8dda2c8a003361de9e7 | [] | no_license | ConTTudOweb/RifaquiProject | f4f2667e7185df517b8919013f505ccd68d8d901 | 301b4d881a1e820774f9a74359dcbd7eff3d7e45 | refs/heads/master | 2020-03-15T06:33:34.094190 | 2018-06-22T03:25:43 | 2018-06-22T03:25:43 | 132,010,143 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 2.0.4 on 2018-05-02 21:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20180502_2122'),
]
operations = [
migrations.AddField(
model_name='raffle',
name='draw_date',
... | [
"alessandro@kminformatica.com.br"
] | alessandro@kminformatica.com.br |
0d838535c8dd3ab286128f9df2c55d083a319f7d | cec8af4a2e2459d92db3b217ef729dcf0779c2dd | /website/urls.py | 0f382aa400a3d7654b0ac42e77a7c55ce7b38087 | [] | no_license | aashishnepal/pi-project | 1ee5db0345b42718ea172f2e6bd26f102b951c81 | dc76136d2bec2468537b75409fed121e3e10905a | refs/heads/master | 2020-11-25T18:32:36.785369 | 2019-12-27T08:49:52 | 2019-12-27T08:49:52 | 228,794,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.LoginPageView.as_view(), name='login'),
path('home/', views.HomePageView.as_view(), name='home'),
path('about/', views.AboutPageView.as_view(), name='about'),
]
| [
"aashishnepal008@gmail.com"
] | aashishnepal008@gmail.com |
3d12d6287b41ff9445a633794470f5b2b34fd4ee | c45306676df2fe733007ff12acd88a8b7d700c42 | /DrawLossCurve.py | 3f600ae3be6c244da132e775e4fcbcf478a1c218 | [] | no_license | huanhsu/Caffe_Tool | 83863ea351da4d3006f2ad4961b91e5b0c758239 | bc9d7205f26ed3e071b1f2d3fac4ab14d64b82e4 | refs/heads/master | 2021-01-16T17:55:23.472297 | 2017-08-16T07:20:59 | 2017-08-16T07:20:59 | 100,025,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,751 | py | import numpy as np
import re
import matplotlib.patches as mpatches
from argparse import ArgumentParser
from matplotlib import pylab as plt
import pdb
#Draw loss curves with many output in a file
#This example has 3 loss curves
#an example on log
#I0728 11:05:30.162691 1057 solver.cpp:219] Iteration 20 (0.0501322 ite... | [
"noreply@github.com"
] | huanhsu.noreply@github.com |
752a144606ef7beeca941dda8a76f1980182e009 | 3a6fb0ef104d07491cbb56d95f7a6140dff29eaa | /2b.py | a97428ac04428c13b7ffa2cfada1e457d2e9693e | [] | no_license | audiodude/advent2019 | 5903e38f87d095c8b2bd30be7a7a18bbc8b25310 | 4c725a732c5691df60f99d4eda562b0cf81020fc | refs/heads/master | 2020-12-01T02:03:07.433484 | 2019-12-30T18:55:22 | 2019-12-30T18:55:22 | 230,537,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | # First attempt: reverse the program and find the combination of initial values
# that produce the output. Unfortunately, we of course end up with output like this:
# (+ (+ -2 (+ 4 (+ 2 (+ 1 (+ (+ 3 (* (+ 5 (+ (+ 2 (* (+ (+ 3 (* 5 (+ 2 (* (+ 2
# (+ (* 2 (* (* (+ (* (+ 1 (* 4 (+ (+ 1 (* (+ 2 (* 4 -1)) 2)) 3))) 4) 2) ... | [
"audiodude@gmail.com"
] | audiodude@gmail.com |
89c371ab6dc5ad908b6e19a063cb752e11d707e5 | fe8f10e3333954a09d135e159efbf161365033df | /myAssembler | d9cf64bbc2b2d6cc17ce8d5d18b1e2f1d4c29440 | [] | no_license | akachigerry/gerry-repo | b02973d3030cfbbe1f7144c6a6ddfa3b1b136095 | 91b9963c61b7aa97a4aa21f5186390e273e6cfe9 | refs/heads/master | 2021-01-15T14:50:09.511895 | 2018-08-12T05:34:52 | 2018-08-12T05:34:52 | 99,695,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,063 | #!/usr/bin/python
import sys, getopt
import itertools
from itertools import imap, starmap, izip
from multiprocessing import Pool
from multiprocessing import Process, Queue, cpu_count, sharedctypes, Manager
from multiprocessing.dummy import Pool as ThreadPool
import inspect
import random
import counter
import re
import... | [
"noreply@github.com"
] | akachigerry.noreply@github.com | |
15203c190344a87445df55a4a7f5f3c15e73d4b5 | 03da0660db7c833e476dd4cba44ba2c300d3fb58 | /.PyCharmCE2017.3/system/python_stubs/-762174762/_hashlib.py | eb91b77cf05268f82a8144bddd9ef684816d9226 | [] | no_license | Shreyaskulkarni98/MQTTBroker-Beta | c9717d3e9d559f9f7d6eb46738dac68f8c4f346c | 22a15cac4755adf522d76e15129c0ef4b2da797d | refs/heads/master | 2022-11-01T20:58:40.690542 | 2019-01-20T08:51:26 | 2019-01-20T08:51:26 | 161,118,749 | 0 | 1 | null | 2022-10-22T14:32:03 | 2018-12-10T04:53:34 | Python | UTF-8 | Python | false | false | 1,710 | py | # encoding: utf-8
# module _hashlib
# from (pre-generated)
# by generator 1.145
# no doc
# no imports
# functions
def new(*args, **kwargs): # real signature unknown
"""
Return a new hash object using the named algorithm.
An optional string argument may be provided and will be
automatically hashed.
... | [
"Shreyasrameshkulkarni@gmail.com"
] | Shreyasrameshkulkarni@gmail.com |
1f9f53be7d85b393f7c0638c796d8ddc9f14b72f | 77090c3eaf15342505edc228ea19769ab219e0f7 | /CNVbenchmarkeR/output/manta3-datasetall/results17316/runWorkflow.py | 8ecfbc9ac2eb16a453983e3a063bca3a9ffd2a6b | [
"MIT"
] | permissive | robinwijngaard/TFM_code | 046c983a8eee7630de50753cff1b15ca3f7b1bd5 | d18b3e0b100cfb5bdd9c47c91b01718cc9e96232 | refs/heads/main | 2023-06-20T02:55:52.071899 | 2021-07-13T13:18:09 | 2021-07-13T13:18:09 | 345,280,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,090 | py | #!/usr/bin/env python2
# Workflow run script auto-generated by command: '/home/robin/Documents/Project/manta/Install/bin/configManta.py --bam=/home/robin/Documents/Project/Samples/bam/all/17316.bam --referenceFasta=/home/robin/Documents/Project/Samples/hg38/hg38.fa --config=/home/robin/Documents/Project/TFM_code/CNVben... | [
"robinwijngaard@gmail.com"
] | robinwijngaard@gmail.com |
f837b00ff86d2477efe671f6b6412d0ad0150621 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/d1.py | 02a7c272c8bcf2a81b93b768bcfc238aa6155369 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
ae2eade74f9f078d1840f1f5df750227c8959659 | ce6e91fb9a5a9049d817d020ca0018b7f4008b9b | /runtests.py | ef35cd877b6d81a7ad6d506365c6d7dfbe0e8cb7 | [] | no_license | ccnmtl/django-pagetimer | b98536273b38c64f10d6832b7b74833099e68436 | 2844b3c702df2952deffdf6cd75c9e47e6f35284 | refs/heads/master | 2021-01-09T20:53:18.627185 | 2017-08-30T19:32:23 | 2017-08-30T19:32:23 | 58,394,973 | 0 | 0 | null | 2017-08-30T19:32:23 | 2016-05-09T17:25:37 | Python | UTF-8 | Python | false | false | 2,149 | py | """ run tests for pagetimer
$ virtualenv ve
$ ./ve/bin/pip install Django==1.8
$ ./ve/bin/pip install .
$ ./ve/bin/python runtests.py
"""
import django
from django.conf import settings
from django.core.management import call_command
def main():
# Dynamically configure the Django settings with the minimum neces... | [
"anders@columbia.edu"
] | anders@columbia.edu |
8c8a9ad367a45afbe6c7fd1fd503d6ef9dc05db6 | 901562de637c44a0f0c43aeebe56f5ebd949571e | /analysis/repo-statistics/project_counters_jarsize_tab.py | 79e19b8a948f5b16eeae9fe84647de8d5cf8bf77 | [] | no_license | istlab/evol_security_publication_2012 | f41608dd7d054aa890fa6d011dd3a44407b3a598 | daa64b60641a82fb5ed9a5b4e8f08c75f700138c | refs/heads/master | 2020-12-11T09:31:03.511279 | 2013-11-10T23:02:44 | 2013-11-10T23:02:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # Extracts the bug counters data from the JSON representation
# and outputs them in CSV format so that it can be read by R.
import ijson
import json
import sys
import csv
bug_types = [
'SECURITY_HIGH',
'SECURITY_LOW',
'STYLE',
'CORRECTNESS',
'BAD_PRACTICE',
'MT_CORRECTNESS',
'I18N',
'P... | [
"louridas@aueb.gr"
] | louridas@aueb.gr |
8a20be67dc8ff938517418a5e77c313ae3bb79ea | 318289d6d338b5aa7d87df18095839fa679ec588 | /ksusta/apps.py | 75b5219e7f210a93577efe0f443c56064e3e132d | [
"MIT"
] | permissive | ayubaezekiel/eExams | b491f36649d24ad6d87bc30017d09117c52ad926 | 5c9920cf55b9cb258c7c732bffceb10e5e9188b5 | refs/heads/main | 2023-09-05T14:05:11.134918 | 2021-11-08T11:41:17 | 2021-11-08T11:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.apps import AppConfig
class KsustaConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'ksusta'
| [
"ezekielayoba@yahoo.com"
] | ezekielayoba@yahoo.com |
4d19c858d848ed41fa60d015b55f3e9820b42186 | 926ec284a08a72964fb81a68e342d09f33fa6d3f | /omaha_server/omaha/parser.py | f2a84365bee435000ca942451c8a13819cc0f089 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | yukels/omaha-server | a2395431978e17174fe76513b6cada99cf5317eb | 48406bef1e77e393031e410454a6ee10e8c47925 | refs/heads/master | 2021-01-17T23:53:03.781282 | 2016-07-25T14:00:55 | 2016-07-25T14:00:55 | 55,139,490 | 0 | 0 | null | 2016-03-31T09:53:58 | 2016-03-31T09:53:58 | null | UTF-8 | Python | false | false | 3,031 | py | # coding: utf8
"""
This software is licensed under the Apache 2 license, quoted below.
Copyright 2014 Crystalnix Limited
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/... | [
"yurtaev.egor@gmail.com"
] | yurtaev.egor@gmail.com |
07ebc735e3d7c3b9475a58511601718c8e2eb1b3 | 3cd0623135f5005eeec232f508f7f3f523e156f3 | /fiddles/_08/test_fiddle.py | 5cfdac2ab8ec333514e8bcb737073bb706cd94ec | [] | no_license | tompascall/adventofcode2019 | 4f287ec7cbe0f97caed68fb88ed54c552766f56c | 8b2eebf902e833029aecd508343b3d8b3a086460 | refs/heads/master | 2020-09-28T08:25:37.828312 | 2020-03-22T09:19:15 | 2020-03-22T09:19:15 | 226,733,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import unittest
from fiddles._08.fiddle import (
get_layers,
count_digit_in_layer,
merge_layers,
)
class TestFiddle(unittest.TestCase):
def test_get_layers(self):
digits = '123456789012'
layers = get_layers(digits, width=3, height=2)
self.assertEqual(
layers,
... | [
"tamas.gulacsy.toth@lensa.com"
] | tamas.gulacsy.toth@lensa.com |
880bc21c593bf7e8364d6d0ac67964c6954c756b | 754a22e0156af095d224075cfa2a1a460014756f | /mysite/settings.py | 70dd40e6c9fc7427dc6d17bc4823dd416a4d8cf6 | [] | no_license | LucieGal/my-own-blog | 3a7fa4a7bcaf80db489777325bb36df2cee5bfd8 | f0f07f24e118e6e9e8c97474526c8ea5eb843f60 | refs/heads/master | 2023-06-15T00:52:30.462831 | 2021-07-10T14:03:59 | 2021-07-10T14:03:59 | 379,363,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.24.
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/
"""
import os
#... | [
"galea.lucie@gmail.com"
] | galea.lucie@gmail.com |
94ec5975940892096bc5b805de5af3e9c66312a3 | 6b8960551ee4be37c46f6c5f28257845fcb871ed | /task1.py | 2105ae960977b9acf3bde10337df6d46c5ad633f | [] | no_license | htrueman/db2_limited_test | 10e9e574fe52b2346c33f4485f8b1dec00c30ac8 | 489379a952ad5c1ecb5123e9e3d41ec28206dc01 | refs/heads/master | 2022-12-09T06:32:27.709446 | 2017-06-12T01:40:08 | 2017-06-12T01:40:08 | 93,772,542 | 0 | 0 | null | 2022-11-22T01:46:27 | 2017-06-08T16:56:17 | Python | UTF-8 | Python | false | false | 649 | py | test_num1 = 1
test_num2 = 10
test_num3 = 2
def handle_numbers(number1, number2, number3):
count_div_numbers = 0
div_numbers_list = []
for number in range(number1, number2 + 1):
if number % number3 == 0:
count_div_numbers += 1
div_numbers_list.append(str(number))
if div... | [
"vege1wgw@gmail.com"
] | vege1wgw@gmail.com |
daf9960e7287238bf5dffe7767564296ba29dcd1 | f46fee7ac51bc459f6309d5dafed1a277cc52772 | /demo16.py | 2990ce342a9f5eda4c54f8c5d24ecbf8d9ebe394 | [] | no_license | wu840407/PYKT-Python-for-Keras-and-TensorFlow | d7e0637640b669246bc7f94e32ee32af1a23d375 | 90c5305f7167def16202626c99242978a829d2e0 | refs/heads/master | 2023-05-01T05:47:47.772704 | 2021-05-14T09:02:17 | 2021-05-14T09:02:17 | 366,560,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import matplotlib.pyplot as plt
from sklearn import datasets
iris = datasets.load_iris()
print(dir(iris))
labels = iris.feature_names
print(labels)
X = iris.data
species = iris.target
counter = 1
for i in range(0, 4):
for j in range(i + 1, 4):
plt.figure(counter, figsize=(12, 9))
counter += 1
... | [
"wu@uuu.com.tw"
] | wu@uuu.com.tw |
9dab3cde69c85a1c6fe735d132871bf0bf28607e | c9f0975de0e1bfe9043ef04d43df00e6c7fcbe56 | /src/bandits/__init__.py | b318a2379fd7830e1500ce648db25ce5d8531d14 | [] | no_license | kbantoec/bandits | dbaf89d4c29a14a97e2d39539410874d3ff582bc | 4585d0c1b60c19cb2511cabfb1ce211499e72ebe | refs/heads/master | 2023-01-19T04:41:32.855694 | 2020-11-10T18:11:25 | 2020-11-10T18:11:25 | 306,442,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from .agent import Bandit
from .one_armed_bandit import OneArmedBandit, Experiment | [
"y.banto@outlook.com"
] | y.banto@outlook.com |
fe01b307a0814fd473a553ad5bfd3a7ad7f22547 | 245a3f8cea6f232bf3142706c11188b51eb21774 | /python/hetu/onnx/onnx_opset/Where.py | 6da3b659d9f9858f398695ae791903a6f8c2c8b5 | [
"Apache-2.0"
] | permissive | initzhang/Hetu | 5bfcb07e62962fbc83def14148f8367fab02625a | 447111a358e4dc6df5db9c216bdb3590fff05f84 | refs/heads/main | 2023-06-20T18:37:21.760083 | 2021-07-27T04:37:48 | 2021-07-27T04:37:48 | 389,848,768 | 0 | 0 | Apache-2.0 | 2021-07-27T04:32:57 | 2021-07-27T04:32:57 | null | UTF-8 | Python | false | false | 610 | py | from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
from onnx import onnx_pb
from hetu.onnx import constants, util, graph
from hetu.onnx.handler import hetu_op
from hetu.onnx.onnx_opset import general
@hetu_op(["WhereOp"], onnx_op=["Where"... | [
"swordonline@foxmail.com"
] | swordonline@foxmail.com |
9f350befb965c94227bb57cfedbbedd959044200 | 6567a6d0b648300cc5c3fa264a925602f61ab8c4 | /guvi5.py | e5e6aefb6421834b1423ab36aa25c4ca25a15943 | [] | no_license | AnanthiD/codekata | 6ee948ca2aea9a052a1b4604e4fc28fb91b18cda | 533e2d0b9b3ca14c37eac936a927d9933eb35374 | refs/heads/master | 2020-05-23T01:05:28.676110 | 2019-07-20T09:45:59 | 2019-07-20T09:45:59 | 186,580,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | a=input()
if(a.isalpha()):
print("Alphabet")
else:
print("no") | [
"noreply@github.com"
] | AnanthiD.noreply@github.com |
0c124ba03429697b2bab6c819eb50dc44460c5dc | 84846fa2c35819f386a7b6f55f32227ff9d34838 | /work/random_likes.py | bd17d65524fbfdc4cba7a3c7253f6c373a27d032 | [
"Apache-2.0"
] | permissive | deniskolokol/universalrec | 43efcfc0c3b9d44e5e4a16bd27b9710228fa1085 | 55169f718777bb557d90c709c9a505a0a36f5478 | refs/heads/master | 2023-01-12T12:32:44.590950 | 2016-03-07T10:19:36 | 2016-03-07T10:19:36 | 51,755,830 | 0 | 0 | null | 2022-12-26T20:01:17 | 2016-02-15T13:03:23 | Scala | UTF-8 | Python | false | false | 791 | py | # run this first in flickthru virtualenv!
import os
import random
from core.models import Like
from django.db.models import Count
filename = 'likes.csv'
fobj = open(filename, 'w+')
fobj.write('entity_id,event,target_entity_id,event_time\n')
img_index = range(499) # indexes of images to pick from
registered = {}
fo... | [
"dkolokol@gmail.com"
] | dkolokol@gmail.com |
f254c37980b3283334624c8365ad413025cf7c98 | 3cafdf8967c5e1c331a312684e550353cf10fffd | /Older_versions/NCBI.py | 5d0dea2e726821c3cf8f724948ef928a8cd3cbc4 | [] | no_license | TiagoS16/SARS-CoV-2-e-genes | 27a516a48dd84f4b0b5cf28a7f5ed417c92da2a2 | f301595abcc1258639d9ecf85df778d6f9cb7bee | refs/heads/master | 2023-07-19T21:41:53.431125 | 2021-08-25T15:59:29 | 2021-08-25T15:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from Bio import Entrez
from Bio import SeqIO
word = 'FGB[Gene]'
res= 1
email= 'pg42877@alunos.uminho.pt'
Entrez.email= email
handle = Entrez.esearch(db = 'nucleotide', term=word, retmax= res)
record = Entrez.read(handle)
gi_list = record['IdList']
print(gi_list)
for a in gi_list:
a = 'NG_008833.1'
handle = En... | [
"74024284+MiguelBarros99@users.noreply.github.com"
] | 74024284+MiguelBarros99@users.noreply.github.com |
2ca77983524514c47a936a1f296297e5ba1c4456 | 7b1b4ed8bd4c887362b367625a833c28aa919dd8 | /wpaudit/providers/aliyun/resources/ram/policies.py | 09ac9427cfcba323da87129ef7e60ece906a9935 | [] | no_license | wperic/wpaudit | 6bbd557c803ce9bceb764c1451daeb5e440a3d9c | ed69c1eabcf85e80ed8fe5397d2d369fd3ff35d8 | refs/heads/main | 2023-07-16T21:36:57.528548 | 2021-09-03T10:35:43 | 2021-09-03T10:35:43 | 402,716,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | from wpaudit.providers.aliyun.resources.base import AliyunResources
from wpaudit.providers.aliyun.facade.base import AliyunFacade
import json
class Policies(AliyunResources):
def __init__(self, facade: AliyunFacade):
super().__init__(facade)
async def fetch_all(self):
for raw_policy in await ... | [
"90035639+wperic@users.noreply.github.com"
] | 90035639+wperic@users.noreply.github.com |
04d46f70d2543594d36fc9d340ad9c2da9f9cd7b | 7eb8bf846dc7021751019debf91925139203bed2 | /Django_Clases/tercer_proyecto/populate_modelos_aplicacion.py | 348b1e00929e50d9b01698e636df06708a4c9001 | [] | no_license | rpparada/python-and-django-full-stack-web-developer-bootcamp | 5c384dc1c19557097c893cf6149c1831984b1946 | 7b91f16cfb49d7de71901857b4e4c8f447db5e6f | refs/heads/master | 2021-09-08T22:40:44.737431 | 2018-03-12T15:12:06 | 2018-03-12T15:12:06 | 116,153,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','tercer_proyecto.settings')
import django
django.setup()
import random
from modelos_aplicacion.models import Usuarios
from faker import Faker
generaFake = Faker()
def popular(N=10):
for entrada in range(N):
nombre_falso = generaFake.first_name()
... | [
"rpparada@gmail.com"
] | rpparada@gmail.com |
a92e09e86e4b6a1367be78bdfb2c56bb263cd6dc | ed702ade0903ae74709da52fca3b3279c45877c7 | /Processors/translation.py | 113548142dae0d1829316206661dc96f7a83fbc6 | [] | no_license | aaskorohodov/pythonProject3 | 1611f0846a4f9af3ee12a5b7b62b56beb5d22791 | 5257c41770a61d0351b65bfe25bca0a2c52ac3c6 | refs/heads/master | 2023-07-30T22:51:45.839766 | 2021-08-27T20:52:49 | 2021-08-27T20:55:01 | 393,996,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | import requests
def ru_eng(message):
word = message.text
URL_AUTH = 'https://developers.lingvolive.com/api/v1.1/authenticate'
URL_TRANSLATE = 'https://developers.lingvolive.com/api/v1/Minicard'
KEY = 'ODRlNGU0NDctOWU2ZS00ZTcxLTk5ZWYtNjI2ZTA0MzYwOGU3OmQwN2E5YjVhMDg2MjQwYTI5ZDU3NjA1Y2NiODI3ZjRj'
h... | [
"aaskorohodov@gmail.com"
] | aaskorohodov@gmail.com |
6bbe246fd9bd6d0eb23ccd5e2f43f5280487874c | d29c2dea4afbb21de0b1e508e501ee6711805451 | /__main__.py | e084aa8b11fab88e422d61a1e430451cb2602f83 | [
"MIT"
] | permissive | cdeitrick/workflows | ef69003cbd6030bc828815b7c898128327da129a | 8edd2a08078144a2445af3903eb13b71abb96538 | refs/heads/master | 2020-03-18T07:04:20.554986 | 2019-12-18T21:16:39 | 2019-12-18T21:16:39 | 134,430,686 | 0 | 0 | MIT | 2019-07-11T03:29:48 | 2018-05-22T14:50:28 | Python | UTF-8 | Python | false | false | 333 | py | from pipelines import main
import argparse
def create_parser()->argparse.Namespace:
parser = argparse.ArgumentParser()
parser.add_argument(
"which",
help = "assembly or variants.",
type = str,
choices = ['assembly', 'variants']
)
args = parser.parse_args()
return args
if __name__ == "__main__":
main.... | [
"cld100@pitt.edu"
] | cld100@pitt.edu |
6479a595ec5e5e6a86e7178104d6df7763bfa983 | 5f58a50d7c44d0cf612b9076df40da89302b5ba6 | /geeadd/batch_copy.py | ff05da1fea9836b073de8a843dc1faa2c53b45c2 | [
"Apache-2.0"
] | permissive | jkrizan/gee_asset_manager_addon | 386a2a5b96e31bdb5e40a08ad12545e11a376764 | 884793185ef5641f0b53349feb5f4c3be272fd28 | refs/heads/master | 2020-05-19T12:58:15.830923 | 2019-01-01T16:46:16 | 2019-01-01T16:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from __future__ import print_function
import ee
import os
ee.Initialize()
def copy(collection_path,final_path):
assets_list = ee.data.getList(params={'id': collection_path})
assets_names = [os.path.basename(asset['id']) for asset in assets_list]
print('Copying a total of '+str(len(assets_names))+'.....')
... | [
"samapriya.roy@gmail.com"
] | samapriya.roy@gmail.com |
9cd9d566ee77d3702c5658462da130d13dcc8e87 | 2789c64d06b08722528c4ee22169020dc7c22c4d | /karalamalar_src_idi/ilkmodul.py | d56052a0ccf400f71faa2c896129d55074e74a1d | [] | no_license | kadirkoyici/pythonkursu | d209f992a50c650cc6c79132a9ec41f0e4bd8f81 | f425a908353749791480624cbb26e1a409e805bb | refs/heads/master | 2021-01-19T10:10:58.906420 | 2015-03-09T06:50:32 | 2015-03-09T06:50:32 | 28,480,514 | 0 | 1 | null | 2015-01-06T08:44:51 | 2014-12-25T11:57:39 | Python | UTF-8 | Python | false | false | 179 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
program = "Python"
surum = "2.x"
def faktoriyel(sayi):
fak = 1
for i in range(sayi):
fak= fak * (i+1)
return fak | [
"kadirkoyici@hotmail.com"
] | kadirkoyici@hotmail.com |
b6979f9099ddfa64a87e7398c649f7d22aafcedc | 603954bafbe9331e5f07b447b1147887ed8c9c39 | /polls/serializers.py | bb29f2e597cdcad26f56d70e2a169702e5c71bac | [] | no_license | tanmayawasekar/python-practice | 8bc8990e03805a532bed9939edbf4d65cbd106de | 19ed39a23f4fff64a53c66a0580791e0bebf894e | refs/heads/master | 2021-04-26T23:57:07.090753 | 2018-03-29T06:46:56 | 2018-03-29T06:46:56 | 123,884,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from .models import Choice
from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Choice
fields = ('choice_text', 'integer_field', 'votes')
| [
"tanmay.awasekar@coverfoxmail.com"
] | tanmay.awasekar@coverfoxmail.com |
e55b057232bdc2f6da6ef749bc1f2f138a2fdb19 | d3e7b50efb9ddfa329eab0411d0f4cf058d4aabe | /tasks/task_c.py | 22a377b7e2147a94a834d1b3c7c12399925dbe2f | [] | no_license | joelbispo/luigi-demo-blackrock | 1a6f774930d71dd9554e453dfc8cc9ab03f656f8 | fdb55df581e79044aced601a96de6edfe0c86382 | refs/heads/master | 2022-11-16T06:49:31.967588 | 2020-07-16T08:38:26 | 2020-07-16T08:38:26 | 280,096,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import luigi
from util.cronometro import cronometro
class TarefaC(luigi.Task):
def run(self):
cronometro(5)
with self.output().open('w') as log:
log.write('Oi, Arena, eu terminei')
def output(self):
return luigi.LocalTarget(f'C:\\temp-luigi\\{self.__class__.__name__}.txt... | [
"joelbisponeto@gmail.com"
] | joelbisponeto@gmail.com |
7f43ad6eb669411e466e915a50d1333fea97f289 | dd2f95416ec8107680fe72dc997eaff55fb79698 | /PixelDBTools/test/SiPixelLorentzAngleDBLoader_cfg.py | 61b6392c97fa0aedacc997546de0db95a1cb6505 | [] | no_license | odysei/DPGAnalysis-SiPixelTools | f433e75a642aea9dbc5574e86a8359826e83e556 | ac4fdc9fa3ad8a865acb64dc3bbefe66b1bdd45a | refs/heads/master | 2021-01-18T05:55:15.102609 | 2015-09-15T13:10:41 | 2015-09-15T13:10:41 | 42,519,902 | 0 | 0 | null | 2015-09-15T13:07:20 | 2015-09-15T13:07:19 | null | UTF-8 | Python | false | false | 9,799 | py | #
import FWCore.ParameterSet.Config as cms
process = cms.Process("SiPixelLorentzAngleLoader")
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
#process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
process.load("CalibTracker.Configura... | [
"danek.kotlinski@psi.ch"
] | danek.kotlinski@psi.ch |
0f49a3e164a082564a9962af1e266ec0ba9b7b33 | 83b7dddc0ff247aae41e332c6c41a5b3dbbcf529 | /src/brewv/bottle.py | 28c0a9ee2d66d00691a21779dd5176affda6b47b | [
"MIT"
] | permissive | lime-green/brew-versions | a453e2891a5b787a0f331e2264020497f78f94dc | 502f4efe56b516df9646533ead745e44bc509ac5 | refs/heads/main | 2023-04-05T14:19:59.854486 | 2021-04-20T16:00:35 | 2021-04-20T16:00:35 | 350,513,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | import os
import platform
from requests.exceptions import HTTPError
from .constants import BOTTLE_FILE_SUFFIX, IS_MAC_OS, MAC_VER_TO_CODENAME, SYSTEM
from .util import (
check_output,
download_file,
is_supported_mac_ver,
logger,
mac_ver,
make_request,
)
class BottleNotFound(Exception):
d... | [
"josh.doncastermarsiglio@tophatmonocle.com"
] | josh.doncastermarsiglio@tophatmonocle.com |
82d31d3429aec8f65ca302385483553480dfd265 | a57fa788fc8d4ace67c42c4d4ea7083bf139493a | /test/win_test_disk_drive.py | d4d6fa43f1088c427bc714d9087f573a0a740c29 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | venanciofire/py_win_unc | 9a221b175f0f4e0ba66e2f9f632bee8aaf5ff6b6 | e46256560cb6acfdbfbe8992d454e7ea492cb6ba | refs/heads/master | 2023-03-22T07:09:04.640066 | 2013-09-30T15:58:23 | 2013-09-30T15:58:23 | 588,721,538 | 1 | 0 | MIT | 2023-01-13T20:34:25 | 2023-01-13T20:34:25 | null | UTF-8 | Python | false | false | 354 | py | from unittest import TestCase
from win_unc.errors import NoDrivesAvailableError
from win_unc.disk_drive import get_available_disk_drive
class TestAvailableDiskDrive(TestCase):
def test_get_available_disk_drive(self):
try:
self.assertIsNotNone(get_available_disk_drive())
except NoDrive... | [
"elliot@3noch.com"
] | elliot@3noch.com |
99d16f620ac24b74834e13c63e09b6196c038fb0 | 7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0 | /src/igem/neutronics/air/bare/borosilicate-glass-backfill/0wt/plot_all.in.one_cask.thickness_dose.rate_t4045_plug.py | c763b91a79e02074300d90606bbccfa7b9fb3d2b | [] | no_license | TheDoctorRAB/plot | dd3b5134c91c8fa7032fcc077c5427b26a80e49d | ed6746d511222c03e79f93548fe3ecd4286bf7b1 | refs/heads/master | 2021-07-11T10:21:19.347531 | 2020-07-16T17:13:15 | 2020-07-16T17:13:15 | 20,462,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,119 | py | ########################################################################
# R.A.Borrelli
# @TheDoctorRAB
# rev.11.March.2015
########################################################################
#
# Plot routine
# All in one file, with no separate control input, lib files
# Plot data is contained in a separate data f... | [
"borrelli@localhost.localdomain"
] | borrelli@localhost.localdomain |
8b54cfc2b902f28ab710f11c95b3372f1a69a143 | bbd6af23c1c56bf090ddaa46ae639d128f91c5eb | /ourproj/ourproj/spiders/ourspider.py | 9965ea9c65a6dfbd60a27ecba67c4e360d3d92d2 | [
"BSD-3-Clause"
] | permissive | nichgaun/scrapy | 8f75bdfc713ec845e6f7d5666f28f4756fa1f819 | 493918742d8359583bdba950ad1aad43123fc394 | refs/heads/master | 2020-03-09T07:13:56.572918 | 2018-04-16T22:37:38 | 2018-04-16T22:37:38 | 128,659,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.lxmlhtml import LxmlLinkExtractor
class OurspiderSpider(CrawlSpider):
name = 'ourspider'
allowed_domains = ['https://en.wikipedia.org']
start_urls = ['https://en.wikipedia.org/wiki... | [
"paulctroost@gmail.com"
] | paulctroost@gmail.com |
83e185e53ee41e521bdd311be71ebf8b7318349e | 05b8143f004c6531a1d24a66888e2b02a41616cf | /mainApp/apis/cinemas_api.py | 905d41498de23e6efa289decd85035190b6c01d9 | [] | no_license | cangmingssir/flask_tpp | 1b0d8f40fd3298789beffca877874dd45d734987 | e6903a47aa2658a105f79c37a30ef5f44a4d1fab | refs/heads/master | 2020-03-19T12:04:37.056215 | 2018-06-17T08:07:48 | 2018-06-17T08:07:48 | 136,493,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | # coding:utf-8
from flask import request, session
from flask_restful import Resource, reqparse, fields, marshal_with
from mainApp import dao
from mainApp.models import Cinemas, User, Qx
from mainApp.settings import QX
def check_login(qx):
def check(fn):
def wrapper(*args,**kwargs):
token = re... | [
"mu_tongwu@163.com"
] | mu_tongwu@163.com |
9c7e3a54253670e920ac976c5c6efa681e7cb585 | 37f19a6a4369b5527253ffe350b9e8263f151f1e | /cDCheck/cDCheck.py | 6c7e01372209eecbe43ba5f234de7c671abf15e8 | [
"MIT"
] | permissive | csm10495/cDCheck | a63897a5665605e5da7622e6ec9d96d31059cdc6 | 5e19c938ad78a79dfad6f4a78fdff8c557dc49ce | refs/heads/master | 2021-01-23T06:54:20.623379 | 2015-05-03T20:13:37 | 2015-05-03T20:13:37 | 34,648,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,304 | py | #cDCheck: A Python script to check for, and delete duplicate files in a directory
#(C) Charles Machalow - MIT License
import os #for directory access
import sys #for args
import threading #for threading
import re #for regex matching
#processes the files in range
def processRange(r1, r2, file_dict... | [
"csm10495@gmail.com"
] | csm10495@gmail.com |
eef17bf33c968687f21b8f25b314038cbe056676 | c9923e7aef1ee6df8684a0604114033d0cef6d78 | /cnn3d/training/cutmix.py | 0eb91e5a83c6b1075e0f0c42e984706c39149d1e | [
"MIT"
] | permissive | poissonyzr/DFDC | 4ca1fb936829ddfa411e8d92e36dac3c27f3d75b | b08c31781406e303394642c2af1ab59222115683 | refs/heads/master | 2023-05-13T15:37:58.927522 | 2021-06-01T06:55:00 | 2021-06-01T06:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def rand_bbox_2d(size, lam):
# lam is a vector
B = size[0]
assert B == lam.shape[0]
W = size[2]
H = size[3]
cut_rat = np.sqrt(1. - lam)
cut_w = (W * cut_rat).astype(np.int)
cut_h = (H * cut_rat).astyp... | [
"github@jph.am"
] | github@jph.am |
5147440f426f86123ef2afa942129888aa4c2655 | 50ee312e98af4531330b66d396013cafefae87e7 | /softlearning/environments/gym/mujoco/walker2d_env.py | 3ed2d86cc402c67b34f62fd22a2c1f2eec171a56 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | richardrl/softlearning | 5f38fd136f7bcb95797818ae5261d4058bcfbb13 | 125ee6ee137145947703018e9980d064c94b1666 | refs/heads/master | 2020-04-21T06:27:46.778091 | 2019-02-02T20:36:38 | 2019-02-02T20:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,899 | py | import numpy as np
from gym.envs.mujoco import mujoco_env
from gym import utils
DEFAULT_CAMERA_CONFIG = {
'trackbodyid': 2,
'distance': 4.0,
'lookat': (None, None, 1.15),
'elevation': -20.0,
}
class Walker2dEnv(mujoco_env.MujocoEnv, utils.EzPickle):
def __init__(self,
forward_re... | [
"hartikainen@berkeley.edu"
] | hartikainen@berkeley.edu |
ab69c6dd82887d2be098cbc3924977fc48cae5df | b367245af0a5e4284afab9f7177c5b136b41283c | /swa-paddle/models/vgg.py | a6858c389dafae27dc7b8100769bfad2f5e111f5 | [
"BSD-2-Clause"
] | permissive | ncpaddle/SWA-paddle | 0544c38a1eb50c9bcf0db460b91a4f0c7beec48c | 48c2642294062e2cf6f0d21c5a1cd30e1002b1f1 | refs/heads/master | 2023-08-24T02:09:06.385258 | 2021-11-03T02:05:35 | 2021-11-03T02:05:35 | 419,941,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | """
VGG model definition
ported from https://github.com/pytorch/vision/blob/master/torchvision/models/vgg.py
"""
import math
import paddle
import paddle.nn as nn
from paddle.vision import transforms
__all__ = ['VGG16', 'VGG16BN', 'VGG19', 'VGG19BN']
def make_layers(cfg, batch_norm=False):
layers = list(... | [
"845749146@qq.com"
] | 845749146@qq.com |
977e71a983cd038695cbd3ea08c4705d1f871367 | 9671c2b41ff71727d72fd7f43006a2a968561200 | /local/neuralNetworks/classifiers/lstm.py | f3108e7903c37548e9740b50908d34460233f2ab | [] | no_license | didadida-r/tf-cnn | 4adb6ceefad6d828e8e847bfe3680bc8095e17b1 | 8cc39bdace55630a999607c19091dce2342281a9 | refs/heads/master | 2023-01-10T22:51:51.771840 | 2017-06-03T04:11:55 | 2017-06-03T04:11:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,147 | py | '''@file lstm.py
The LSTM neural network classifier'''
import seq_convertors
import tensorflow as tf
from classifier import Classifier
from layer import FFLayer
from activation import TfActivation
import inspect
class LSTM(Classifier):
'''This class is a graph for lstm neural nets.'''
def __init__(self, outp... | [
"605467297@qq.com"
] | 605467297@qq.com |
140384afde407034a54ba2db872c23687b2803b5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /exeY2wDuEW4rFeYvL_18.py | df232bc3446da8ba44e538db19a12468c1434bda | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """
Create an ordered 2D list (matrix). A matrix is ordered if its (0, 0) element
is 1, its (0, 1) element is 2, and so on. Your function needs to create an a ×
b matrix. `a` is the first argument and `b` is the second.
### Examples
ordered_matrix(5, 5) ➞ [
[1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5e5ce0df1b1faf85f26ec4a9c54d6ac980b61e5a | 542f898adea1b36d627d4bf437731022f242d2dd | /projects/TridentNet/tridentnet/trident_backbone.py | 7789bd219b01d452e876ad2ad7f811502719465c | [
"Apache-2.0"
] | permissive | facebookresearch/detectron2 | 24bf508e374a98a5e5d1bd4cc96556d5914215f4 | 80307d2d5e06f06a8a677cc2653f23a4c56402ac | refs/heads/main | 2023-08-30T17:00:01.293772 | 2023-08-25T22:10:24 | 2023-08-25T22:10:24 | 206,660,580 | 27,469 | 8,047 | Apache-2.0 | 2023-09-13T09:25:57 | 2019-09-05T21:30:20 | Python | UTF-8 | Python | false | false | 7,846 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import fvcore.nn.weight_init as weight_init
import torch
import torch.nn.functional as F
from detectron2.layers import Conv2d, FrozenBatchNorm2d, get_norm
from detectron2.modeling import BACKBONE_REGISTRY, ResNet, ResNetBlockBase
from detectron2.modeling.backbone.resn... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
55fbd18c40598e0709acb94e5d35fafdbae90167 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ggH_SF/Full2017_v7/DYMVA_SYS/samples_recoil.py | dff83e4862c9124922705ab5e015b0c636e3c2f2 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 16,488 | py | import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # DYMVA_SYS
configurations = os.path.dirname(configurations) # Full2017_v7
configurations = os.path.dirname(configurations) # ggH_SF
configurations = os.path.dirname(c... | [
"calderon@cern.ch"
] | calderon@cern.ch |
9114ad8bbda5e123afc7de169cc2028aa55c0ce6 | 9ee5c351e72afafbcb2e85ab2180151789b27624 | /pwa_store_backend/pwas/signals.py | 6c3c4c6a1fcfa90b35f2395406864f245833ce99 | [
"MIT"
] | permissive | nathanhfoster/pwa-store-backend | 7d331343c2a6e5d53bf790569c4718a0961459f7 | 93a4bb1d347a9076b40600a2ec2fac92cada03cf | refs/heads/master | 2023-09-01T06:02:09.885737 | 2021-10-17T19:11:05 | 2021-10-17T19:11:05 | 391,519,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from django.db.models.signals import post_save
from pwa_store_backend.pwas.models import Pwa, PwaAnalytics
def pwa_post_save_handler(sender, **kwargs):
''' created an instance of PWA Analytics when a new PWA is created '''
instance = kwargs.get('instance')
created = kwargs.get('created', False)
if crea... | [
"nabinbhusal80@gmail.com"
] | nabinbhusal80@gmail.com |
6918cee393ce45548af443bf75a05328fc982ad2 | 96c3ca6ad097a024c6d7eabb79d715aca0d1ab66 | /Auth/migrations/0003_auto_20210626_1422.py | 1027129046e4682023e1972313d566602b210a8c | [] | no_license | aimperatori/RFID-API2 | 937cd4e29787688da962f21d95bae67fcad9ca07 | addf00fd1c9efcbea62910a4126e678e00d4cbdd | refs/heads/main | 2023-06-04T15:54:53.661517 | 2021-06-26T16:59:16 | 2021-06-26T16:59:16 | 380,553,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # Generated by Django 3.2.4 on 2021-06-26 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Auth', '0002_alter_auth_created_datetime'),
]
operations = [
migrations.RemoveField(
model_name='auth',
name='id',
... | [
"aimperatori@ucs.br"
] | aimperatori@ucs.br |
64e20e5645269edc49ca0d18451cd287e6d86f65 | 7ff9de453f53b658d13896bb0c376d67489145a7 | /logics/exercise.py | 2a82386f9fc82b4d34d67b3a2bfb7ac928f3b22d | [
"MIT"
] | permissive | danielkpodo/python-zero-to-mastery | aa4851fd0bfe1f0bfa4191fa141fa9551fd7c7a9 | d39468f48211bc82e4e2613745d9107d433e05af | refs/heads/master | 2022-11-21T10:55:54.776490 | 2020-07-19T15:07:35 | 2020-07-19T15:07:35 | 275,909,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # sum up the total of this list using looping
from functools import reduce
items = [1, 3, 4, 5, 6, 7, 7, 5, 7, 6, 6, 3]
total = 0
for num in items:
total += num
print(total)
print(sum(items))
# Higher order functions
def summer(accumulator, initial):
return accumulator + initial
result = reduce(summer, ... | [
"kpododanielnarh@gmail.com"
] | kpododanielnarh@gmail.com |
b001375d4646517af6ed057a18134e3829056b8a | ffbf665d491cafdfd88e10cea3628375ac7e7dbe | /mysite/env/bin/easy_install | 4651492f793dc04ad5c5479b0c61d850ad7c5a19 | [] | no_license | mnbqwe10/blackmores | fc885a6813ff6a3ba75da64e799612923e182669 | c3430727c9586a169e19179b430f75e4bd870e9b | refs/heads/master | 2021-04-06T00:15:27.314049 | 2018-04-11T14:21:06 | 2018-04-11T14:21:06 | 124,758,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/qqlivewell/mysite/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"qulong627@gmail.com"
] | qulong627@gmail.com | |
25b944adffbb62adf37669bd50cacc9ad4b63b47 | c6c61add7e33535e16bc2d6c53cc482ecf11262e | /manage.py | b7a8e3f0aadadd79d752e4aa271f02f5fabce82c | [] | no_license | dfreidin/DjangoGameNight | 300e95eb849f3588a72e415837fffa5091ca8ba3 | 2880c09f3d45a74089823d1abde1401ffa775781 | refs/heads/master | 2020-03-07T03:09:36.094097 | 2018-04-14T21:28:44 | 2018-04-14T21:28:44 | 127,227,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "GameNight.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"36039896+dfreidin@users.noreply.github.com"
] | 36039896+dfreidin@users.noreply.github.com |
2bc90326c40d23b700ea9c755c27c0b0e2ed9867 | 138909a17b9f4b82ec91a209443864fbd18c1248 | /ExtraLongFactorial.py | f91e86d87985bb9d190fbd2252dde385422c8a42 | [] | no_license | surbhilakhani/Hackerrank | 70fc0a7bf85e73dbc6bd1f4695e148f7080a0c59 | f6cea99c5787c10ea5817bb9c4f3be8da1f6a73c | refs/heads/master | 2021-01-19T03:03:05.435417 | 2016-07-01T13:45:19 | 2016-07-01T13:45:19 | 62,326,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import sys
import math
n = int(raw_input().strip())
print math.factorial(n)
| [
"noreply@github.com"
] | surbhilakhani.noreply@github.com |
72b950570c7fa0784332ef7fa8b80fda93f2945a | 104d097ee850d8643b97d6bc17722e322400c358 | /desafio6.py | 16e05c478f7c8d95ac97577e322d925cc1717659 | [] | no_license | rodolfocr92/desafio | 8ba1b031b1f8b3e266af62a7d0b2678ffa0dda14 | 65cc9570797e33b885dc0d21252ecfd674774428 | refs/heads/master | 2022-11-17T22:24:48.713745 | 2020-07-12T19:01:08 | 2020-07-12T19:01:08 | 277,664,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py |
io = float(input("Insira sua idade atual: "))
ia = float(input("Insira a idade que deseja sacar o investimento: "))
vf = float(input("Insira o montante final do investimento: "))
i = float(input("Insira a taxa de juros mensais em número decimal: "))
meses = (ia - io)*12
dep = (vf*i)/((1+i)**meses - 1)
depr ... | [
"noreply@github.com"
] | rodolfocr92.noreply@github.com |
ea2c22d2bcc968840f2546a7797fd481f4baee63 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-polardb/aliyunsdkpolardb/request/v20170801/ModifyAccountPasswordRequest.py | f043c7559542a8e3d3c3580f0a4b31e7c654201e | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
4539fad165238fc206bb83ea657ad5f85e84cb86 | 642911284dff300708f9a777c9792eae2bd4c256 | /orgCodes/test.py | 9e5bab8c012a36aa0276473a0a3457f3b0981563 | [] | no_license | keyman9848/bncgit | 3b6aea4bb3bd229e0ae96d15becb9170be134b41 | 915972fe2012024b6e87aaa48a5350dfe815e6e3 | refs/heads/master | 2021-01-25T16:53:45.188797 | 2017-08-24T08:23:54 | 2017-08-24T08:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | #-*_coding:utf8-*-
from multiprocessing.dummy import Pool as ThreadPool
import re,requests
import urllib.request
class spider(object):
def get_source(self,url):
hds={
'Connection': 'Keep-Alive',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
... | [
"1938036263@qq.com"
] | 1938036263@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.