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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d675945d9dcc0f99396a02cefb496fc58d518c2b | edb906c10790abc1eba4047bca557aa173616f10 | /business/serializer.py | 9c6d69a222cb016743cecfb85d7e3c1b365aab12 | [] | no_license | Wakarende/neighbourhood | 743d26ee76a79018865a15c523f390c35812b73c | 29003acc8f760046a33f1b3313b5a016a007890d | refs/heads/master | 2023-05-13T12:43:53.257053 | 2021-06-08T06:59:09 | 2021-06-08T06:59:09 | 373,812,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from rest_framework import serializers
from .models import BusinessModel
from django.db import models
class BusinessSerializer(serializers.ModelSerializer):
class Meta:
model=BusinessModel
fields='__all__'
| [
"joykirii@gmail.com"
] | joykirii@gmail.com |
a8cacab94132932232ab8809d2cae3e6a22d1030 | 8d2e122add59cb8b9c0ea7e05b4b6b17afb6bf36 | /ds/stack/problems/balanced_or_not.py | c91cfe140fb9b746ffd999d27001088b41806117 | [] | no_license | thilakarajk/Algorithms-Data-Structures | 1ce1fcc8d69a033e32422736cd3d2cad57079d35 | 51682f015836302c3795b5206e936ae7e42c9787 | refs/heads/master | 2023-01-23T03:43:21.881439 | 2020-12-12T06:10:44 | 2020-12-12T06:10:44 | 317,902,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from ds.stack.implementation import Stack
TOKENS = ['<','>']
def is_open_tag(char):
return TOKENS[0] == char
def is_matching(open_tag, close_tag):
return TOKENS[0] == open_tag and TOKENS[1] == close_tag
def compare(expression, replacement):
stack = Stack()
for char in list(expression):
if is... | [
"thilakaraj.kamaraj@astrazeneca.com"
] | thilakaraj.kamaraj@astrazeneca.com |
316dfa1bedfcab2282dcbf533be4bdaa3d68e8b2 | 43cd95bcdef9d06bde0bc2e5e318bada6ae587fc | /basic/range_function.py | 3424c943384bc3e10f997866f421496d7171784b | [] | no_license | suchana172/My_python_beginner_level_all_code | 00eddb7aac87e559812dcb6781257e4e83dbbdce | 94a312b2da39017d8f93ba185562f82da77c9b55 | refs/heads/master | 2022-12-31T15:06:00.448433 | 2020-10-19T17:18:30 | 2020-10-19T17:18:30 | 305,456,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | for value in range(1,10) :
print(value)
| [
"khairunnahar.suchana@northsouth.edu"
] | khairunnahar.suchana@northsouth.edu |
a4ad96d39cbd7bc79a58e3f487cf55a97f4253f2 | 9590e9b1f60fdfa573049699d10f1939929d2598 | /p2_D4PG_agent.py | 6ee87dcbbc4de92b12f69c23f5ec3c29c9d531fe | [] | no_license | kelvin84hk/DRLND_P2_Continuous_Control | 463d783b6a05c53fdd116e0d87bf1022e5f5ef66 | d1fd28b321c3d0ad4dbcb2364f9d48f6a63807c3 | refs/heads/master | 2020-04-05T14:45:59.346382 | 2018-11-23T17:43:48 | 2018-11-23T17:43:48 | 156,939,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,359 | py | import numpy as np
import random
import copy
from collections import namedtuple, deque
from p2_model import Actor,CriticD4PG,Critic
from prioritized_memory import Memory
import torch
import torch.nn.functional as F
import torch.optim as optim
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
Vma... | [
"kelvin84hk@gmail.com"
] | kelvin84hk@gmail.com |
54916cd6aef8b96949a3900348ef5e689648aa2c | 1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5 | /Repo/venv/Lib/site-packages/torch/utils/file_baton.py | d474bfb4a810ea042d978407b1239dea9dd3f8b9 | [] | no_license | donhatkha/CS2225.CH1501 | eebc854864dc6fe72a3650f640787de11d4e82b7 | 19d4dd3b11f8c9560d0d0a93882298637cacdc80 | refs/heads/master | 2023-07-19T13:27:17.862158 | 2021-02-08T07:19:05 | 2021-02-08T07:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | import os
import sys
import time
if sys.version < '3.3':
# Note(jiayq): in Python 2, FileExistsError is not defined and the
# error manifests it as OSError.
FileExistsError = OSError
class FileBaton:
'''A primitive, file-based synchronization utility.'''
def __init__(self, lock_file... | [
"59596379+khado2359@users.noreply.github.com"
] | 59596379+khado2359@users.noreply.github.com |
25d1fac9d7159f6e7e778967782d95636279a25c | 3863bea43fbc7ce2c7845cd2bad8ae50b67359b2 | /Tempermonkey-vue3-tfjs/torch/nmt_example/infer.py | dfb59886301d75382e707fd62c7156bddf4b07cd | [
"MIT"
] | permissive | flashlin/Samples | 3aea6a2dadf3051394f1535d00de9baeb7c904cb | c360e81624296c9243fd662dea618042164e0aa7 | refs/heads/master | 2023-09-03T06:32:53.857040 | 2023-09-02T15:55:51 | 2023-09-02T15:55:51 | 182,355,099 | 3 | 0 | MIT | 2023-03-03T00:03:37 | 2019-04-20T03:28:25 | C# | UTF-8 | Python | false | false | 6,462 | py | from nltk.translate import bleu_score
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import utils
import torch
import os
from nmt_model import NMTModel
from nmt_dataset import NMTDataset
import nmt_dataset
chencherry = bleu_score.SmoothingFunction()
args = utils.get_args()
class NMTSampler:... | [
"flash.lin@gmail.com"
] | flash.lin@gmail.com |
eec538cfdf617e4159ea9589da4655975097b6f0 | 24f21e7d62fc6c02cabf5f442effafd4bf712b93 | /ast_edits.py | bc6fe08eaab52b460b1aec7ad39e5fb454137fa4 | [
"MIT"
] | permissive | robur66/MLDogBreedClass | d44f0a8cf0ba9dc8b38df32870b468e8b4d864f8 | 97e44e6ca1e67a48140648beb2fcb207333e57ad | refs/heads/master | 2021-08-24T06:54:34.314579 | 2017-12-08T13:56:58 | 2017-12-08T13:56:58 | 113,493,513 | 0 | 0 | null | 2017-12-07T20:05:56 | 2017-12-07T20:05:56 | null | UTF-8 | Python | false | false | 18,962 | py | # Copyright 2016 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... | [
"gapp1@localhost"
] | gapp1@localhost |
6ee7436f2894be4f9a4be7048a46db2c4143bcab | fde7b32ee0296b32efa1da20c19755319e12c3c0 | /func.py | 01487189af838a03899edc4ee7d3ded29037b7dd | [] | no_license | rajila/courserapython | 78728ff6ade601f23cfb39d7c0fbcbe4adc8bf99 | a739b79a8b8a1a46d90c00deb52c383e42e5b87a | refs/heads/main | 2023-04-13T08:06:57.203332 | 2021-04-27T18:32:49 | 2021-04-27T18:32:49 | 308,402,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | name = 'Ronald'
def thing():
print("Hello", name, apellido)
def surname():
apellido = 'NA'
print(name, apellido)
def pmensaje():
global mensaje
mensaje = 'Cambio desde pmensaje()'
print(mensaje)
apellido = 'Ajila'
thing() # Hello Ronald Ajila
surname()
print(apellido)
mensaje = 'Hola desde ex... | [
"rdajila@gmail.com"
] | rdajila@gmail.com |
60b4dec8fdb07501aa7c4bef54bac369e4012a14 | e7a2f530e4440a330c1b15ab6c3c3b65cdd88829 | /alloy_site/alloy_site/views.py | 6d1c4e50cf8520152cc80b477d2df767aa1a6208 | [] | no_license | veyorokon/AlloyCoinWebsite | e7038bf75c8f1cb898d7f226cf12ecd369620db3 | b695f83575a7d08b183d950081824ae766161ef1 | refs/heads/master | 2023-03-20T12:03:16.072149 | 2017-06-15T23:42:48 | 2017-06-15T23:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
def index(request):
template = loader.get_template('alloy_site/index.html')
context = {} # doing nothing dynamic now
return HttpResponse(template.render(context, request))
| [
"dustin.td@gmail.com"
] | dustin.td@gmail.com |
894489a6d159e040d5ca697e4bb1fadf471b887c | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/_pytest/recwarn.py | 753bfd18742651b338e79169aab68ed417785218 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 7,173 | py | """ recording warnings during test function execution. """
import inspect
import py
import sys
import warnings
import pytest
@pytest.yield_fixture
def recwarn(request):
"""Return a WarningsRecorder instance that provides these methods:
* ``pop(category=None)``: return last warning matching the ... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
656a0129b1473860ace3f1d7cc53e6e32919808c | 904acd1ae84bdd11f34dc33683cc4de6ce21df5b | /algorithm/test/test_random_forest_gini_sample_smote400.py | cee089925308291a2972e00bfff2cd7ff4b3faf6 | [] | no_license | imxtyler/MachineLearning | 5840cd7f2db2bfadc3c64e5478441e00fbcaece0 | 2562815472bcf0568c8b157d28db59285527835d | refs/heads/master | 2021-09-15T21:47:02.943104 | 2018-06-11T13:43:50 | 2018-06-11T13:43:50 | 91,756,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,424 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import random
import pandas
import numpy
import multiprocessing
import matplotlib.pyplot as plt
from pandas import DataFrame,Series
from preprocessing import DataPreprocessing
from gini_index import GiniIndex
from sklearn import metrics
from sklearn import model_selection
fr... | [
"liuxiaobing_09@126.com"
] | liuxiaobing_09@126.com |
7d8446981ac589f181e469108253fd61652a8b5a | cc117dd17f6cb0d69745dc85473396b4af5ce237 | /library/urls.py | 2b15a60fbfdfceb9810c2704f46ad1361a08b9c6 | [] | no_license | ewelinabuturla/library | d7cea875a050b1778307cfef96d98ca8643d04f7 | 1cf21a654276a69207a3be123924a5761e578f4a | refs/heads/master | 2023-01-07T01:25:58.048606 | 2020-11-04T09:12:24 | 2020-11-04T09:23:19 | 309,950,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | """library URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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... | [
"ewelina.buturla@monterail.com"
] | ewelina.buturla@monterail.com |
175217a2e8693dc6abc2fb06bf86ba8bf7c9fb06 | 8f807e00570227aff15cadb9fb9cfbd46d5c5ab1 | /uninas/tasks/abstract.py | 45d13cc9cf1959a227e08f67a526d0632340edd4 | [
"MIT"
] | permissive | MLDL/uninas | cbe704e6e992af9f1c683f36cdbeab5919289c9b | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | refs/heads/main | 2023-04-19T06:49:23.213220 | 2021-04-26T12:20:04 | 2021-04-26T12:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,040 | py | import os
import shutil
import logging
import random
from typing import Union, List
import numpy as np
import torch
from uninas.utils.args import ArgsInterface, Argument, MetaArgument, Namespace, sanitize, save_as_json
from uninas.utils.misc import split
from uninas.utils.loggers.python import LoggerManager, log_headli... | [
"kevin.laube@uni-tuebingen.de"
] | kevin.laube@uni-tuebingen.de |
b891c1b843660a251c2fc198054adab99dfba8ab | 289bc4207b1c3efe3b99ac637d1ddfb88e28a5be | /Section05/debug_example.py | cdd21ee0a121d1d8cc04721135fa4e495be7ebd1 | [
"MIT"
] | permissive | PacktPublishing/-Hands-on-Reinforcement-Learning-with-TensorFlow | f5e41ed9e218f721b179e0b1d9aaa3c27957d38a | 6de9980db2bfc761524c27606e6495c093ddf516 | refs/heads/master | 2021-06-20T19:31:45.442884 | 2021-01-15T08:59:53 | 2021-01-15T08:59:53 | 145,985,316 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | import numpy as np
import tensorflow as tf
from tensorflow.python import debug as tf_debug
learning_rate = 0.01
num_epochs = 1000
train_X = np.asarray(
[3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779, 6.182, 7.59, 2.167,
7.042, 10.791, 5.313, 7.997, 5.654, 9.27, 3.1])
train_Y = np.asarray(
[1.7, 2.76, 2.09, 3.... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
0d17243da1091d61acb70238bbf2523aab2d4797 | 0a99c6f4c1336aec02e8a63789ddf2a37f18912a | /movement.py | 9001a3577b6dac19932c25cb400a7a80ea7aae97 | [] | no_license | timothyheyer/micropython-tutorials | ac5e5ddb6295ab6bdd1d7061f020c618aa5093a8 | 21b2043b160dbce6608a5c9c6d74d1c4448fdfe7 | refs/heads/master | 2020-04-26T21:07:57.326967 | 2019-03-08T23:30:10 | 2019-03-08T23:30:10 | 173,832,911 | 0 | 0 | null | 2019-03-04T22:40:18 | 2019-03-04T22:40:17 | null | UTF-8 | Python | false | false | 333 | py | from microbit import *
while True:
reading = accelerometer.get_x()
tilt = accelerometer.get_y()
if reading > 20:
display.show("R")
elif reading < -20:
display.show("L")
elif tilt > 500:
display.show("UP")
elif tilt < 5:
display.show("DOWN")
else:
disp... | [
"theyer1@msudenver.edu"
] | theyer1@msudenver.edu |
d7f1386462f4acaaa3180b34123f6c040074cdc6 | 2770d7e78b88cc08291abd3381a2b578bbb566f0 | /www/migrations/0007_order_confirmation_no.py | e8baa4af9ee808ad4c9b1c4e760f5bad82a2f666 | [] | no_license | rileonard15/grabdeals | 8bb6d58ac7ba9265a57eebdcde15c4f8cf01235c | e13d8bd1a0b4e7b4ccca7ae91556af256c3456b1 | refs/heads/master | 2021-01-01T05:54:22.469007 | 2017-07-16T02:03:05 | 2017-07-16T02:03:05 | 97,300,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-15 08:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('www', '0006_order_transaction_id'),
]
operations = [
migrations.AddField(
... | [
"ldimayuga@phixer.net"
] | ldimayuga@phixer.net |
cfc1119d27d112c18ef8a4cf62a55b777689fd7e | 57775b4c245723078fd43abc35320cb16f0d4cb6 | /Leetcode/hash-table/find-words-that-can-be-formed-by-characters.py | 5d7dfafa4509bc65009744a92a838b98562774db | [] | no_license | farhapartex/code-ninja | 1757a7292ac4cdcf1386fe31235d315a4895f072 | 168fdc915a4e3d3e4d6f051c798dee6ee64ea290 | refs/heads/master | 2020-07-31T16:10:43.329468 | 2020-06-18T07:00:34 | 2020-06-18T07:00:34 | 210,668,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | class Solution:
def countCharacters(self, words: List[str], chars: str) -> int:
n = 0
for word in words:
y = chars
flag = False
for w in word:
if w in y:
y = y.replace(w,"",1)
else:
flag = Tru... | [
"farhapartex@gmail.com"
] | farhapartex@gmail.com |
fe83eb6dfc9ba7a814faffa49e7c4d90c5063bb2 | b5cc154ecff7f8cf4c0d221a45f54839049ed755 | /upload_all_new.py | 85b3522d95aa92eaf0a8b88b933197d408105bb3 | [] | no_license | RobinL/daily | ba60bfda2135bad2138f21902b506e9041266eec | 99ac4dc47887f9b1c43cb0346c2c01b0a249ba18 | refs/heads/master | 2021-01-16T18:29:48.837206 | 2015-09-01T19:47:21 | 2015-09-01T19:47:21 | 41,631,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | import os
import sys
import logging
logger = logging.getLogger(__name__)
from azure.storage import BlobService
def upload_all_new_azure(local_folder, azure_container, account_name, account_key):
blob_service = BlobService(account_name=os.getenv('ACC_NAME'), account_key=os.getenv('ACCESS_KEY'))
blob_list... | [
"robinlinacre@hotmail.com"
] | robinlinacre@hotmail.com |
755a2aaad8acce2a42387f5c5739b2381f4c4253 | 8fe6a6790013eed7ca470414c398ea4848e798c4 | /src/datasets.py | c9a59f9a12256e6e0655c82d503fc40b155f989a | [
"MIT"
] | permissive | sovit-123/SSD300-VGG11-on-Pascal-VOC-2005-Data | d7aef30277076561c46d5f8a3d07985e09b9f13c | cb21c4c3e762a0184611b1a1659e7e730ef31932 | refs/heads/master | 2022-12-02T11:51:59.256715 | 2020-08-06T16:08:24 | 2020-08-06T16:08:24 | 284,756,098 | 3 | 0 | null | 2020-08-06T05:40:31 | 2020-08-03T16:53:09 | Python | UTF-8 | Python | false | false | 2,345 | py | import torch
import json
import os
from torch.utils.data import Dataset, DataLoader
from PIL import Image
from utils import transform
class PascalVOCDataset(Dataset):
"""
Custom dataset to load PascalVOC data as batches
"""
def __init__(self, data_folder, split):
"""
:param data_folder... | [
"sovitrath5@gmail.com"
] | sovitrath5@gmail.com |
f0343c7a7e630a11740b9a725c504c151176edf9 | a0decbed06d9e3fc7c6d0e93cf481eb25d79e6e7 | /list.py | b0870146f3dcc17bca4a32d249c7e1ebdaddaae9 | [] | no_license | TriCodeIT/Review-DataCamp-learnpython-Exercise | ab48e4c099cbeaf3cfceb58b4e2f7b11d937b076 | 4d6532377a31204db8218761ef45a651b773408e | refs/heads/master | 2022-12-15T03:27:55.474623 | 2020-09-17T02:39:37 | 2020-09-17T02:39:37 | 295,577,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | numbers = []
strings = []
names = ["John", "Eric", "Jessica"]
numbers.append(7)
numbers.append(8)
numbers.append(9)
strings.append('That is')
strings.append('easy')
# write your code here
second_name = names[2]
# this code should write out the filled arrays and the second name in the names list (Eric).
print(numb... | [
"bayu165kusuma@gmail.com"
] | bayu165kusuma@gmail.com |
9acaba0b3609be4738ffb29eb198c1ce973a908b | 90033f709a8ea7fb1a0d8c7883ce79fd118fa188 | /proyecto_jmfc.py | 781a2b27a5612d1aa7e8843196782928044fe62a | [] | no_license | josemfc/recopilador_noticias | 73835ae7f46a99369ff878e127870caa4d1e6fbd | 8993780b97db01fae205fbf343b2aace99f994d7 | refs/heads/master | 2021-01-10T09:20:51.821190 | 2015-10-24T11:17:20 | 2015-10-24T11:17:20 | 44,862,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,826 | py | # -*- coding: utf-8 -*-
######
# Programa realizado en ubuntu con python 2.7.6
# Autor: José María Fernández Campos
######
import MySQLdb
from gi.repository import Gtk
import os
import time
# Establecemos la conexión a la Base de datos (variables globales)
Conexion = MySQLdb.connect(host='localhost', user='conan', p... | [
"josemaria_f_c@hotmail.com"
] | josemaria_f_c@hotmail.com |
704f23f3ef1050e2aa4ca2a458d509acd2dd6475 | 2887be7e41fd0f5c619e320152c2eb6e4d8e03e1 | /plotcounts/src/d1state/system_state.py | 8255fff10ac99c19922046584b5b3ffd3fa5ee29 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_environment_status | b586e077674a782aa84230304bd1a51dd72638ec | 65368e21e649d060e085df2e844964f74ac0f985 | refs/heads/master | 2021-01-10T18:01:36.013081 | 2016-01-29T15:48:14 | 2016-01-29T15:48:14 | 50,665,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,995 | py | '''
Created on Feb 27, 2014
@author: vieglais
Generates a JSON object that provides a high level description of the state of
a DataONE environment at the time.
The resulting JSON can be processed with Javascript and HTML to provide a
state view, or can be loaded back into the Python structure for additional
proces... | [
"dave.vieglais@gmail.com"
] | dave.vieglais@gmail.com |
3c54d18e1ddff0980eaddc81064f2886f30343da | 80052e0cbfe0214e4878d28eb52009ff3054fe58 | /e2yun_addons/extra-addons/merp_picking_wave/wizard/message_wizard.py | 0e5a598da22cd2017115952c6a2839e8fa5675d9 | [] | no_license | xAlphaOmega/filelib | b022c86f9035106c24ba806e6ece5ea6e14f0e3a | af4d4b079041f279a74e786c1540ea8df2d6b2ac | refs/heads/master | 2021-01-26T06:40:06.218774 | 2020-02-26T14:25:11 | 2020-02-26T14:25:11 | 243,349,887 | 0 | 2 | null | 2020-02-26T19:39:32 | 2020-02-26T19:39:31 | null | UTF-8 | Python | false | false | 977 | py | # Copyright 2019 VentorTech OU
# Part of Ventor modules. See LICENSE file for full copyright and licensing details.
from odoo import models, fields as oe_fields, api, _
class MessageWizard(models.TransientModel):
_name = 'message.wizard'
message = oe_fields.Text()
@api.model
def default_get(self, ... | [
"joytao.zhu@icloud.com"
] | joytao.zhu@icloud.com |
181c8c1bc9b19a8196b4811b28f403b224160e94 | 608a3139f45e0aa073680223277d7d8116c144dc | /Tactics/equipment.py | bebb134171e72949b66b1dfc66ad1abe03bfd883 | [] | no_license | orez-/Orez-Summer-2012 | 540e7ff167dc54973a960acdf4589ab29ca761bd | eea27473515a7c1d45ad2752d7653f72c83f7ba9 | refs/heads/master | 2016-09-06T07:05:01.771267 | 2012-12-30T16:56:48 | 2012-12-30T16:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | import unittest
class EquipmentItem:
""" Currently just an example. """
def __init__(self, slot="head", itype="hat", name="Stylish Beret"):
self.equip_slot = slot
self.item_type = itype
self.name = name
class EquipmentSet:
def __init__(self):
self.equipment = {
... | [
"bshaginaw120@gmail.com"
] | bshaginaw120@gmail.com |
2d73f2c0101f0e46503190c763079eb50774cdfb | ad56f922a9ce352d4761a220e2fa0d3b7c934d58 | /scripts/watch_v2.py | 065034b01218fdde24c15faa5216a6fe5bc5503e | [
"MIT"
] | permissive | isajediknight/Sleep-Is-Overrated | 19118e8c503d59c6576ff9866326720ff7b6b6d0 | 0a9e364a5d1507199f9674cf67ff18a8c22cdad7 | refs/heads/main | 2023-03-14T13:04:12.511973 | 2021-03-05T07:12:54 | 2021-03-05T07:12:54 | 334,002,303 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,971 | py | import datetime,time,os,sys
if(sys.platform.lower().startswith('linux')):
OS_TYPE = 'linux'
elif(sys.platform.lower().startswith('mac')):
OS_TYPE = 'macintosh'
elif(sys.platform.lower().startswith('win')):
OS_TYPE = 'windows'
else:
OS_TYPE = 'invalid'
# Get our current directory
OUTPUT_FILE_DIRECTORY ... | [
"luke@isajediknight.com"
] | luke@isajediknight.com |
6de769645c56f7e2a167c942a0f3aee7d46c27ef | 0cff6b75ed2f951c7f4ec40141ea0e9d0b7791de | /assignment1/cs231n/classifiers/linear_svm.py | 67f39adf6f7db99689532d4ca7c4cbe5abefaedf | [] | no_license | Raiszo/cs231n | 825e9e3c3dc20aa252bfad284bc09ef33910fa55 | 46fdd99649156285106279420a2392c09b371e02 | refs/heads/master | 2021-05-08T14:04:54.504987 | 2018-04-07T00:11:20 | 2018-04-07T00:11:20 | 120,059,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,352 | py | import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of sh... | [
"E05.sek@gmail.com"
] | E05.sek@gmail.com |
8f53dfcc7f2f3305bc737e1491065fa5815c5aa6 | 660328cb139ce1f90da70dbe640df62bf79bcc61 | /infra/src/stages/train_stage_base.py | 05241ecd3f6f9cd28a02c5b6c310f1a38a27c433 | [
"MIT-0"
] | permissive | cyrilhamidechi/amazon-frauddetector-mlops-multiaccount-cdk | 0801f4b844bd9b8e80776748c1056db83c9023fb | 379def0a571452b7920a9aaa56bccc2bfb39c523 | refs/heads/main | 2023-04-23T13:49:37.413348 | 2021-05-10T18:37:41 | 2021-05-10T18:37:41 | 366,139,181 | 0 | 0 | NOASSERTION | 2021-05-10T18:25:59 | 2021-05-10T18:25:58 | null | UTF-8 | Python | false | false | 2,432 | py | # ***************************************************************************************
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
# *
# Permission is hereby granted, free of charge, to... | [
"aeg@amazon.com"
] | aeg@amazon.com |
4ec79ec6e331c470cdf1d2a503b1e4f5f4ede85d | 4b2bd13df43345924417311987f4b49b461b9062 | /Strings/Length_of_Last_Word.py | 3d9e1818a601df315fa6ce5ebfa26386986d3912 | [] | no_license | EladAssia/InterviewBit | 89ced6c3b555ef6d9886f00686b9ad989509e4e5 | c4099c60aead54204bac8919ab9ffd2268977c0b | refs/heads/master | 2020-05-26T13:44:27.059301 | 2019-06-01T09:30:51 | 2019-06-01T09:30:51 | 188,251,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
# If the last word does not exist, return 0.
# Note: A word is defined as a character sequence consists of non-space characters only.
# Example:
# Given s = "Hello World",
# retur... | [
"noreply@github.com"
] | EladAssia.noreply@github.com |
da8f8da092d23de7bbd0a3f08e2882be55ad0909 | ae6d415523bbcebec3c77a5622b3d4028dcbccb8 | /config/config.py | 554bafbc997f254e7703f51db37d710c6d2450d3 | [] | no_license | manzub/newzz.com | c017347b10e729fa9079d1dfb501bbd6d65c7410 | 22eefad9ffad7cab6d47864dbab10989420c95e1 | refs/heads/main | 2022-12-19T14:55:21.942580 | 2020-10-06T14:44:13 | 2020-10-06T14:44:13 | 301,212,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class DevelopmentConfigs(object):
SECRET_KEY = 'mybuzzbreakapp'
SQLALCHEMY_DATABASE_URI = "postgres://postgres:Jeddac401@127.0.0.1:5432/buzzbreak"
SQLALCHEMY_TRACK_MODIFICATIONS = False
pool_size = 32
max_overflow = 64
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
... | [
"41767916+manzub@users.noreply.github.com"
] | 41767916+manzub@users.noreply.github.com |
2622e858d939ef2b19c0df7e2dd80c6ce51c5ae5 | 635a80be150a936392b91f6208c3077b71dceec6 | /src/train21y.py | 66228acb7b06ede61443b23996605ef013edb574 | [] | no_license | alegorov/recommendation-system | 005695547ffe47c108ce45a2edd96fcd02da2495 | 4925e800234cb7c08cde696651c3ff37d724a94e | refs/heads/master | 2022-11-23T15:47:14.620162 | 2020-07-30T19:52:42 | 2020-07-30T19:52:42 | 283,861,633 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,985 | py | import os
import pickle
from utils import *
from catboost import CatBoostClassifier, Pool
SRC_DIR = 'data0'
ITERATION_COUNT = 2721
FEATURE_COUNT = 100
# TREE_DEPTH = 1
# BORDER_COUNT = 256
# RANDOM_STRENGTH = 1060.
ETA = 0.1
ALG_NAME = str(os.path.splitext(os.path.basename(__file__))[0].split('-')[0])
OUT_DIR = SR... | [
"alegorov@mail.ru"
] | alegorov@mail.ru |
bf09d40eff5348178b19c86dd584dfa48920972e | fc640c89f22ea1768c2617c7099695246efa4733 | /ImportDashboard_ifactory_1.0.2/ImportDashboard_1_2_0.spec | 42590faaa5073da3a734c511b29b2e6848f52abf | [] | no_license | Atm999/metalwork_install | edc1c8e97aebd72a30c25807455ea0218e435353 | 232348d32033933e2bf9aa6da821106620cbe796 | refs/heads/master | 2022-11-25T12:29:16.596222 | 2020-07-31T02:20:59 | 2020-07-31T02:20:59 | 283,922,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['ImportDashboard_1_2_0.py'],
pathex=['C:\\Users\\jimcj.lin\\Desktop\\ImportDashboard\\ImportDashboard'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
... | [
"904552105@qq.com"
] | 904552105@qq.com |
428358c36899815231cc8dc187e189a856eab801 | faa83048d2bb62c27f030942f3f038f87637c293 | /indico/migrations/versions/20200331_1251_3c5462aef0b7_review_conditions_editable_types.py | 310ac5a8b664dcc1d5e0151b411446e0f3dfcefa | [
"MIT"
] | permissive | janschill/indico | f79536db43afaf631449fef5119069af2938e76d | 068a947446eb624308d6264e34a4061807e6ff12 | refs/heads/master | 2023-06-08T07:32:33.007683 | 2021-06-18T12:42:03 | 2021-06-18T12:42:03 | 339,700,154 | 0 | 0 | MIT | 2021-06-18T12:42:04 | 2021-02-17T11:22:48 | Python | UTF-8 | Python | false | false | 845 | py | """Associate review-conditions with editable types
Revision ID: 3c5462aef0b7
Revises: 6444c893a21f
Create Date: 2020-03-31 12:51:40.822239
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = '3c5462aef0b7'
down_revision = '6444c893a21f'
branch_labels = None
depends_on = None
def upgrade... | [
"lea.tschiersch@cern.ch"
] | lea.tschiersch@cern.ch |
fce9296bd1f4ccff5f24c822acf2e8a54e17c148 | e9ddef73bdd204b0bcd39061c7e74292596db53f | /kindle/spiders/rv2.py | 2edf018b935d9be3d414c79c9227151e6fef116c | [] | no_license | tsavko/amazon_reviews_sa | 10553d68d2b871a0758609f16a662a5a61d1e346 | 244677a89e99d524abc4ac687cd15b34daeba7fe | refs/heads/master | 2021-01-19T03:45:24.806450 | 2016-07-12T09:11:09 | 2016-07-12T09:11:09 | 62,804,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.contrib.linkextractors.lxmlhtml import LxmlLinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from bs4 import BeautifulSoup
from kindle.items import KindleItem
import string
class Rv2Spider(CrawlSpider):
"""
... | [
"tsavko@malkosua.com"
] | tsavko@malkosua.com |
3b7bc05b6cd8113f61a51701e14268638b535a1c | da958642910dc99cadb49a8e48319b7d871679fc | /command.py | 70b3b70e25978b9f131db141f116d721d81043fb | [
"MIT"
] | permissive | llou/jmvolume | 9e5b84910e334ddfd4753e2ea69e5058167f09c3 | ccaa165e65c09c1aa1ff514a29b0a071188bcab4 | refs/heads/master | 2022-06-01T08:57:15.983293 | 2020-05-01T11:05:24 | 2020-05-01T11:05:24 | 237,469,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #! /usr/bin/env python
import sys
if len(sys.argv) > 1:
code = int(sys.argv[1])
else:
code = 0
text = sys.stdin.read()
sys.stdout.write(text)
sys.stderr.write(text)
sys.exit(code)
| [
"yo@llou.net"
] | yo@llou.net |
418a1731b4494372d8177bdc9e701a72264b73da | 17d39b5f72ebc6339ad72ba3395c619dfa469c05 | /profiles_api/permissions.py | c3d3444daaaea28b8c6242043642af05cf11bafb | [
"MIT"
] | permissive | Princeshaw/userprofiles-rest-api | ca512f9378a2d8a18f979bd90f049f89d1760cc7 | cea40e5b77f0131350d963ddb0a9dc13f2c720d5 | refs/heads/master | 2022-12-03T18:46:09.387880 | 2020-08-16T16:44:57 | 2020-08-16T16:44:57 | 287,275,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from rest_framework import permissions
class UpdateOwnProfile(permissions.BasePermission):
"""Allow user to edit their own profile"""
def has_object_permission(self,request,view,obj):
"""Check user is trying to edit their own profile"""
if request.method in permissions.SAFE_METHODS:
... | [
"prince54shaw@gmail.com"
] | prince54shaw@gmail.com |
cab5927ad3771cc324b6ece7a42f131306e8212f | c0029a349e70ccb3fd8cfa43d27d7ec8585d4620 | /Python/tests/test_Parser.py | 7a1595ec229a03a781156c4677908569e5da651c | [] | no_license | AshFromNowOn/Hansard_sentiment | 3dda7911fa730bec52d56f52262823d8e9778a1a | e055414c397bc189c6c29998a827bcfb6e72ef2b | refs/heads/master | 2022-06-05T12:09:30.294803 | 2018-05-04T12:52:46 | 2018-05-04T12:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | import unittest
import Speech_Parser_BS
import os
from lxml.doctestcompare import LXMLOutputChecker
import lxml
from doctest import Example
class SpeechParserTest(unittest.TestCase):
def setUp(self):
self.Parser = Speech_Parser_BS.SpeechParser("./tests/Test Data/Source Data/Test File")
self.Parse... | [
"adn2@aber.ac.uk"
] | adn2@aber.ac.uk |
d65784b7ec0cdad3d8e2ac0b3c31ebe3e21c263e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_embassy.py | 8c0f88ca692520c38a075b1fcc908e831280b60a | [
"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 | 397 | py |
#calss header
class _EMBASSY():
def __init__(self,):
self.name = "EMBASSY"
self.definitions = [u'the group of people who represent their country in a foreign country: ', u'the building that these people work in: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.spe... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
57b68e4a74604876334affc613d1d972667cfbe0 | c6431cdf572dd10f0f4d45839e6081124b246f90 | /code/lc3.py | 2ec290d3bc538c94abd8a7e80c92e02c5ff01e14 | [] | no_license | bendanwwww/myleetcode | 1ec0285ea19a213bc629e0e12fb8748146e26d3d | 427846d2ad1578135ef92fd6549235f104f68998 | refs/heads/master | 2021-09-27T19:36:40.111456 | 2021-09-24T03:11:32 | 2021-09-24T03:11:32 | 232,493,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | """
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。
示例 1:
输入: "abcabcbb"
输出: 3
解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。
示例 2:
输入: "bbbbb"
输出: 1
解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。
示例 3:
输入: "pwwkew"
输出: 3
解释: 因为无重复字符的最长子串是 "wke",所以其长度为 3。
请注意,你的答案必须是 子串 的长度,"pwke" 是一个子序列,不是子串。
"""
class Solution(object):
def lengthOfLongestSubstri... | [
"461806307@qq.com"
] | 461806307@qq.com |
903a77f4a02718a688e108e05b286348b1c99a65 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/worker_master_20210128031009.py | 16168c2cf8a83eb1dfb82220fd383d845e05ab9a | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import redis
red = redis.StrictRedis(host='localhost',port=6379,db=0)
queue = list()
def str_to_bool(str):
if str == b'False':
return False
if str == b'True':
return True
return None
while True:
# check supplier product status
is_new = str_to_bool(red.get("new_product_worker1"))... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
a582db00f0dd2b56511ec2be5cc34a6afe61582a | 03b2e2b6e28545a738e2cf2bd396e5d8518eef1d | /BalancingHelper/migrations/0010_auto_20190712_1605.py | 9558603dc8475fe926646b59da90dd914c8b6929 | [] | no_license | ChasingCarrots/GoodCompanyGamedesignDB | a1ffe4ae6138d921630ff68603b200a878748140 | 4663c394a56e64bcb2e0629bfa09c5070267e666 | refs/heads/master | 2022-05-06T05:40:48.307200 | 2022-03-24T11:59:34 | 2022-03-24T11:59:34 | 132,142,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-07-12 14:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Production', '0043_auto_20190709_1321'),
('BalancingHelper', '0009_auto_20190712_140... | [
"marc@chasing-carrots.com"
] | marc@chasing-carrots.com |
465a1a5a3d2c313b84710d1d8fab3bf3f7245d39 | f33d315a8d4cf5e0c62795e48917384bf6542bf7 | /Market/models.py | cfab823031a255bae6a8fd4c864cc4380e052f49 | [] | no_license | Heexi/demo | 858ea81051600154f53f3ac77b129009db39bec7 | 50209fa8bfdffa55b6b9e990861e29aaca93d198 | refs/heads/master | 2020-03-17T10:00:15.215098 | 2018-05-15T09:31:51 | 2018-05-15T09:31:51 | 133,496,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.db import models
# Create your models here.
class Producet(models.Model):
pass
| [
"canhuayin@gmail.com"
] | canhuayin@gmail.com |
01d1c1b4d4b921bf5423193b3bfd373e832d9242 | 9df4063297cfe437bf51d7789b2169820a328c45 | /REQUEST/tycloudrds/request/ModifySQLCollectorPolicyRequest.py | 580bc18945aec15467d91da6c2e6c2ae1c50cef9 | [] | no_license | jiangchengzi/DBRDS | 4b869a32910ca78d4e88530c62f646308e3e2173 | 385287a2caca9a3eaab35b2c138214a6cee82c99 | refs/heads/master | 2021-01-11T12:02:54.878532 | 2017-03-06T02:44:52 | 2017-03-06T02:44:52 | 76,580,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | 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... | [
"1025416045@qq.com"
] | 1025416045@qq.com |
1491d9df3950a219fbb0c85065a746b7a79d485b | ecf89f03148a8661d5235d65660820116fab76dc | /src/record.py | f389fe20d355e109bddcd0f423e328fbe15f80f6 | [] | no_license | hvvka/weather-ztd | 7f2d67a61bc5cc11cbc369402601d0f5febe40f8 | 7c1b29f1dceea8428a47cb28c48716d1925cef73 | refs/heads/master | 2020-03-12T10:51:13.005172 | 2018-11-03T19:12:26 | 2018-11-03T19:12:26 | 130,582,673 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import math
class Record:
def __init__(self, date, time, station_id, pressure_marker, lat, lon, x_coord, y_coord, aerial_height, wrf_height,
temperature, humidity_relative, pressure):
self.date = date
self.time = time
self.station_id = station_id
self.pressure_mar... | [
"hania.grodzicka@gmail.com"
] | hania.grodzicka@gmail.com |
2fd547723d832790323016a9974bfa1bfc32a049 | 0edf3192cffd37fb4fdbef735d1557b023ac9d8c | /src/collective/recipe/htpasswd/__init__.py | 06bd92693d0d74e734d9459dab39fb65b4e088ea | [] | no_license | nueces/collective.recipe.htpasswd | 4027da5b0274f6c65bc977e990871f3123c92e60 | af48f049557e2c7c411fd77eb5dbd5b0f69de6b8 | refs/heads/master | 2021-01-01T06:54:54.285805 | 2013-01-30T07:45:45 | 2013-01-30T07:45:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | # -*- coding: utf-8 -*-
""" collective.recipe.htpasswd
"""
import crypt
import logging
import os
import random
import string
import zc.buildout
class Recipe(object):
""" This recipe should not be used to update an existing htpasswd file
because it overwritte the htpasswd file in every update.
"""
... | [
"juan@linux.org.ar"
] | juan@linux.org.ar |
c84d0e45b5c85963ecda682b917c1efbf1ab79c8 | e3b2451c7693b4cf7d9511094272c3d4f47dedc7 | /BBMS_WEBSITE/Blood_bank/urls.py | 129963318736152c16ed13fa8ae54a76d78b3e0a | [] | no_license | iamyoshita/blood-bank-management-system | 31f25690371ab1a2817a362ce5b8ae68e23dedea | 36b01a3fa26ac7331895a8bfa8eae259bf7dc027 | refs/heads/master | 2020-04-17T13:37:01.889330 | 2019-01-20T04:29:32 | 2019-01-20T04:29:32 | 166,622,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from django.conf.urls import url
from .import views
urlpatterns = [
#/music/
url(r'^donor/',views.all_donors,name='index'),
url(r'^receiver/',views.all_receivers,name='ind'),
#music/74/
#url(r'^(?P<album_id>[0-9]+)/$',views.detail,name='detail'),
] | [
"noreply@github.com"
] | iamyoshita.noreply@github.com |
dff696a42a1813155fc8fb54de635c1f8f93b539 | 774616d654af798cefdfba85662c98b79d938474 | /Rekog/venv/bin/rst2s5.py | a81547e9cb92f492dcb595235195231532dceb3f | [] | no_license | GreCar05/python | c3a1585940f5d6c8af11172441e7be3b73d19332 | cd5ee27421aff8659f5f02d4c0cce382d3cdb4b5 | refs/heads/main | 2023-03-03T09:47:11.031012 | 2021-02-16T12:12:13 | 2021-02-16T12:12:13 | 339,151,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/home/oficina/PycharmProjects/Rekog/venv/bin/python
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the S5 template system.
""... | [
"gregoricar05@gmail.com"
] | gregoricar05@gmail.com |
7430485eeff81f0ac00f6ea969fd08c817c9590f | 7c4b911a93e00f5e86f2ad077948a2bb0d7230e2 | /newShravan.py | e79e65944f044676fdf99fdf7058dc8ff23b77de | [] | no_license | ShravanKumar-Technology/personalPython | adfe781803cc3571e9f02921bcbce45ce9ef74ce | db48a11ae18b63865af74ad33b8f7c8a7ffad671 | refs/heads/master | 2021-06-30T15:28:14.633003 | 2017-09-20T17:22:59 | 2017-09-20T17:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #!/usr/bin/python3
import random
for i in range(0,100):
print(str(i)+"."+str(random.randint(0,10000)))
print("shravan")
for i in range(0,100):
print(str(i))
new = 44
old = 55
print(str(new))
print(str(old))
new,old = old,new
print(str(new))
print(str(old))
| [
"shravan.theobserver@gmail.com"
] | shravan.theobserver@gmail.com |
a7722afc93933b786c47f0b3f10cfced51515f8b | 13bc12cadea3f2b34e9710e773f77fcc6cf96927 | /password_generator/settings.py | fe470eb8f0fc34eba3ed766f754ca41d7ec5256f | [] | no_license | henryyeh802/django-password-generator | 161e45c6d1c0271918fc81f3acfb7b3dd991f78e | 6399e98342c329769002dcd14e23d6065a73d4ba | refs/heads/master | 2022-04-23T23:17:20.793177 | 2020-04-29T19:51:40 | 2020-04-29T19:51:40 | 260,029,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for password_generator project.
Generated by 'django-admin startproject' using Django 3.0.5.
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/
"""
i... | [
"henryyeh802@gmail.com"
] | henryyeh802@gmail.com |
1dedcdb0e23a3b98af243d75c56342783d85e41a | c187465dcc0004e2931de90764cf8ea4657d4355 | /build/ros_controllers/imu_sensor_controller/catkin_generated/pkg.develspace.context.pc.py | 414c3e3e2472fe78aa7e3ab09310110069a6f4e8 | [
"MIT"
] | permissive | team-auto-z/IGVC2019 | 4550e4a6c31dd6f4f7877618ae2fedc3daac9ea7 | 047e3eea7a2bd70f2505844ccc72ae1a2aaa6f2d | refs/heads/master | 2020-04-22T05:13:59.939647 | 2019-08-29T16:40:41 | 2019-08-29T16:40:41 | 170,152,781 | 1 | 3 | MIT | 2019-09-26T17:20:22 | 2019-02-11T15:30:16 | Makefile | UTF-8 | Python | false | false | 660 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ajinkya/catkin_ws/src/ros_controllers/imu_sensor_controller/include".split(';') if "/home/ajinkya/catkin_ws/src/ros_controllers/imu_sensor_controller/include" != "" else []
PROJECT_CATKIN_DEPENDS... | [
"ajinkyaprabhu97@gmail.com"
] | ajinkyaprabhu97@gmail.com |
509601af0ae5337e7f8b9fc2f49be25dda28dc54 | 4acc08d2c165b5d88119df6bb4081bcfaca684f7 | /PythonPrograms/python_program/multiple_matrix.py | c88486026ddb4fe56be352d8cd4c3a355b0923f6 | [] | no_license | xiaotuzixuedaima/PythonProgramDucat | 9059648f070db7304f9aaa45657c8d3df75f3cc2 | 90c6947e6dfa8ebb6c8758735960379a81d88ae3 | refs/heads/master | 2022-01-16T04:13:17.849130 | 2019-02-22T15:43:18 | 2019-02-22T15:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Python Program to Multiply Two Matrices ????
l = [[1,2,3],
[2,3,4],
[3,4,5]]
m = [[3,4,5],
[5,6,7],
[6,7,8]]
for i in range(3):
for j in range(len(l)):
sum = 0
for k in range(len(m)):
sum=sum + l[i][k] * m[k][j]
print(sum,end=" ")
print()
'''
output ==
l = [[1,2... | [
"ss7838094755@gmail.com"
] | ss7838094755@gmail.com |
05075495165fc4ee51bdc62ea55beb4c40e7ae87 | d69e59155c7eb8b692feb927bf12d13260d50ebb | /Admin_app/models.py | d6a0f3b2b7e70f67a2faebc42d4ecd1e3cfafd5e | [] | no_license | susmitha009/Admin-Panel | 8ee905150c84c6a197d77c0ddb03d3c7c81c3de4 | 4eddcfe60f95c07e79d57be7de2fb1ae2f155cc3 | refs/heads/master | 2023-06-22T01:16:14.085588 | 2021-07-17T10:42:54 | 2021-07-17T10:42:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | from django.db import models
from django.utils import timezone
from datetime import datetime,date
# Create your models here.
class rider(models.Model):
first_name = models.CharField(max_length=128)
last_name = models.CharField(max_length=128)
email = models.EmailField(max_length=254,unique=True)
created... | [
"gurramsusmitha09@gmail.com"
] | gurramsusmitha09@gmail.com |
83503bae694f4bdf6c82b15e366f28e0066e3537 | 93e9bbcdd981a6ec08644e76ee914e42709579af | /depth-first-search/323_Number_of_Connected_Components_in_an_Undirected_Graph.py | 4009e47f32f8f461cc7dbd9fe5c9d094309c835b | [] | no_license | vsdrun/lc_public | 57aa418a8349629494782f1a009c1a8751ffe81d | 6350568d16b0f8c49a020f055bb6d72e2705ea56 | refs/heads/master | 2020-05-31T11:23:28.448602 | 2019-10-02T21:00:57 | 2019-10-02T21:00:57 | 190,259,739 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/description/
Given n nodes labeled from 0 to n - 1 and a list of undirected edges
(each edge is a pair of nodes)
write a function to find the number of
connected components in an und... | [
"vsdmars@gmail.com"
] | vsdmars@gmail.com |
bf7758fdfb1ae881bf670bfce99ebcafd8b320d2 | 04f4b5c2e6b283d9ef7198425c3bf926623554d2 | /Heliocentric/heliocentric.py | 8ecd6f948d455061e7e2096966d986b5dbbded88 | [] | no_license | gabisala/Kattis | a00e96aab4dbe8033e0e110f5224170b8ad473a3 | 686817fb90b39e0126b4c8b0280f8a1f10c294ee | refs/heads/master | 2021-07-07T11:53:30.931347 | 2017-10-03T15:40:07 | 2017-10-03T15:40:07 | 105,471,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py |
# -*- coding:utf-8 -*-
import sys
# Read data
data = []
for line in sys.stdin:
data.append(map(int, line.split()))
def simultanously(earth, mars):
"""
Count how long it will take until both planets are on day 0 of their orbits simultanously.
:param earth: int, day earth orbit
:param mars: int,... | [
"noreply@github.com"
] | gabisala.noreply@github.com |
b6734e8581b07bdd28ff0446fc0acb52c83c0fa7 | e103af3b6d42ef6782ed34526bdeffa36d56776b | /solver.py | 1ff78419b5dc07b7fc35220dc54c48740277f928 | [] | no_license | Alva-2020/mipae | b9b294f1cf91583f7645c80e5d72db0f103fbdc3 | b0dd410305ab1162193f2e80a3c7d77665080e5d | refs/heads/master | 2022-12-30T06:41:28.803783 | 2020-10-15T13:40:21 | 2020-10-15T13:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,461 | py | import os
import glob
import math
import sys
import itertools
import random
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.distributions as dist
from torch.utils.data import DataLoader
from torch.utils.tensorboard import SummaryWriter
import numpy as np
import ... | [
"paditya.sreekar@research.iiit.ac.in"
] | paditya.sreekar@research.iiit.ac.in |
3b147decd179451541596ab1434b617eb835b122 | 263b1997190f39b4547530ce05e889699a77a922 | /Problems/Birdbox/main.py | 79f91f52053873c2da34409ca1f7e26616faf1b0 | [] | no_license | IgnatIvanov/To-Do_List_JetBrainsAcademy | fa593a29143bf388f085d4ba95713540cd89eeca | 2bc4ed360c41ece09634e72e705dbc257e686958 | refs/heads/master | 2023-03-08T08:25:11.022569 | 2021-02-20T19:28:47 | 2021-02-20T19:28:47 | 339,089,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # create you classes here
class Animal:
def __init__(self, name):
self.name = name
class Bird(Animal):
pass
class Pigeon(Bird):
pass
class Sparrow(Bird):
pass
| [
"ignativanov1996@mail.ru"
] | ignativanov1996@mail.ru |
4b6649d161b7f8d7d13610000ae29e0eb231be22 | 13d3ee90ee7ae4cb0e2e7bb3787d448c2ab8335e | /secondPython.py | cd1d06864596390d6010ce72ed051cdab3d1a29f | [] | no_license | kevf92/Test_Repository | ffe3f77fed76ffd4c4af97621c3efc4783c5419e | c61d2cc34ab798e887a2a5bb35fb6448dfe7fd71 | refs/heads/master | 2022-12-02T17:32:13.211413 | 2020-08-20T19:39:17 | 2020-08-20T19:39:17 | 289,077,315 | 0 | 0 | null | 2020-08-20T18:27:42 | 2020-08-20T18:14:57 | Python | UTF-8 | Python | false | false | 22 | py | print("Child Python")
| [
"noreply@github.com"
] | kevf92.noreply@github.com |
9da728a81b1289dd5b1b883deefb81f5cce0ee88 | f1932b5fb8f629015b4deeb4dd76255ef3ffc609 | /Scheme Interpreter/TestCases.py | b692923b4fcec15a5abd5a5ddfb5453ab8cd8733 | [
"MIT"
] | permissive | VladiMio/VladiMio_Toys | a54754319866693f99b0c0df0e5a06c477cf5592 | 8c383f6ccd2628c109ca884a51e74a348d565cc8 | refs/heads/master | 2021-01-24T00:02:34.793213 | 2018-02-28T13:40:40 | 2018-02-28T13:40:40 | 122,745,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import Scheme
cases = {
"(+ 1 2 3 4 5)": 1 + 2 + 3 + 4 + 5,
"(- 1 2 3 4 5)": 1 - 2 - 3 - 4 - 5,
"(* 1 2 3 4 5)": 1 * 2 * 3 * 4 * 5,
"(/ 1 2 3 4 5)": 1 / 2 / 3 / 4 / 5,
"(define mkact (lambda (balance) (lambda (amt) (begin (set! balance (+ balance amt)) balance))))": None,
"(define act1 (mkact 1... | [
"jasper1992ws@hotmail.com"
] | jasper1992ws@hotmail.com |
2b3e3404a0d221b47e9e46a5d715af0f6a0449be | 25b6a0a9d5e9c17fcf9164444bfbde411a313e8e | /pendu.py | 4eeffcb8616257a5b6ae90ea2b0ad55272a89dde | [] | no_license | kamelh1972/Pendu.Kamel | 95dacbd147b538c352deff352a722247112bfc80 | e608e3c9eddac8fadbe4548eff3002a5ada3da57 | refs/heads/master | 2020-09-16T13:18:07.934177 | 2019-12-10T14:02:41 | 2019-12-10T14:02:41 | 223,782,121 | 0 | 0 | null | 2019-12-10T14:02:43 | 2019-11-24T17:23:37 | null | UTF-8 | Python | false | false | 710 | py | from fonction import *
import donnee
nom = input("Entrez votre nom:\n")
global gamePlayer
global gameScore
gamePlayer = nom
gameScore = 0
win = False
check_players(nom)
word = choose_word()
hidden_word = hide_word(word)
tentative = donnee.chance;
while tentative > 0 :
show_hidden_word(hidden_word)
lettre =... | [
"kamelhammiche44@gmail.com"
] | kamelhammiche44@gmail.com |
20afedb1b001619332e9d7e143861e7ec13ba57a | 45e97bd0c32042504052342bc1ae4e66a30d4d9a | /corepy/chapter13/demo5-trackInstance.py | 34e5d0f1d27f10ca12c701e54330defcbeef7adc | [] | no_license | vonzhou/py-learn | acf20c5183bff9788fcae9e36abdcd6f9bc553da | f0794164105dddbdffe082dfc90520f8778cbec3 | refs/heads/master | 2016-09-10T01:29:30.551541 | 2015-12-08T08:53:46 | 2015-12-08T08:53:46 | 27,669,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py |
''' P343'''
class InsCnt(object):
count = 0 #count是一个类属性
def __init__(self):
InsCnt.count += 1
def __del__(self):
InsCnt.count -= 1
def howMany(self):
return InsCnt.count
c1 = InsCnt()
print c1.howMany()
c2 = c1
print c2.howMany()
c3 = InsCnt()
print howMany()
del c1
del c2
print howMany()
del c3
... | [
"vonzhou@163.com"
] | vonzhou@163.com |
3b3b3bf3b3597fb177e2f34793128b23a711841e | 25210643406339fcd3383ecc355ed6c05fb0ad93 | /python/sparktestingbase/test/helloworld_test.py | 8d0b014ea20fa9b2dc2874eaaf41021813e58a24 | [
"Apache-2.0"
] | permissive | juanrh/spark-testing-base | f685e8beb3626f39459457de95ff295ac3348615 | afaf6fe11f22b7af9492a202dbfd2d62208f1995 | refs/heads/master | 2021-04-26T07:46:03.614212 | 2015-06-23T13:51:32 | 2015-06-23T13:51:32 | 31,416,073 | 0 | 0 | null | 2015-02-27T11:17:53 | 2015-02-27T11:17:52 | null | UTF-8 | Python | false | false | 1,132 | 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 us... | [
"holden@pigscanfly.ca"
] | holden@pigscanfly.ca |
943dcb14ae7fae3a2b249ac14791e8426eeb8f08 | 3fde00076201d4c0ca3e31681b050a9de053bb5c | /2016/task_1/process_zips.py | 1f494a68a967ba8cf8d172da316906d8248f48a8 | [] | no_license | atuchak/interviews | 93e8b7b1786b4c13c222d3984bf85ef7e4c6fdd5 | 31f52d3e5b7ef9f6e2e3dd9b804ded58665f3598 | refs/heads/master | 2020-05-25T17:14:40.219658 | 2018-10-05T15:55:13 | 2018-10-05T15:55:13 | 84,949,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | import csv
import os
import logging
import multiprocessing
import queue
from multiprocessing import Lock, Value
from lxml import etree
from multiprocessing import Queue
from multiprocessing import Process
from zipfile import ZipFile
OUTPUT_DIR = '/tmp/ngenix'
CONCURRENCY = multiprocessing.cpu_count()
logging.bas... | [
"anton.tuchak@gmail.com"
] | anton.tuchak@gmail.com |
8eb17eeafb990dd19724e7110b8af45955b7f221 | aa37b7aec635fd62707c90a7b536926e20cddaef | /test/functional/test_runner.py | 59b3e989a6b2fc8b11611cac66ce1fcd22c7d4aa | [
"MIT"
] | permissive | planbcoin/planbcoin | d85b9345998c9a2221ea0b44ed0dec86c7d3dc1e | 7d132eebdce94f34ca2e74278b5ca09dc012d164 | refs/heads/master | 2020-12-02T20:58:31.167685 | 2017-08-06T17:57:51 | 2017-08-06T17:57:51 | 96,237,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,194 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The PlanBcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
forw... | [
"ysoheil@gmail.com"
] | ysoheil@gmail.com |
4f2721593ab30e86c52f68296de1168474b86e3c | 767b70f3e9ba11751a459b31547b1c6e5a50081f | /authenticationSystem/migrations/0008_auto_20210518_2324.py | 38246bb0eb9c834f0d6f70c287dc47555f1f3a77 | [] | no_license | RidwanShihab/marketms | 7dd226e29a05c8363d2dbb772567707ba4f3e01a | 83949018bfa01509416dbd41a3b37e8769401f71 | refs/heads/master | 2023-04-26T09:39:20.539793 | 2021-05-18T19:03:18 | 2021-05-18T19:03:18 | 358,003,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 3.1.7 on 2021-05-18 17:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('authenticationSystem', '... | [
"ridwanshihab14466@gmail.com"
] | ridwanshihab14466@gmail.com |
c67609483dcf9c2fa41c88e4b9d12dd853df14eb | 00aa9875275ac00f978b388fa32bf241aee4b458 | /samples/vsphere/contentlibrary/contentupdate/content_update.py | d65ee6ec054e2e8481823eab6b00f26463c91225 | [
"MIT"
] | permissive | Onebooming/vsphere-automation-sdk-python | 3898404cc10b5bec284933d2beda9e18052346fc | 7576b3abb76cc03947eb1e13c6015b35574a704f | refs/heads/master | 2020-09-21T09:15:50.511280 | 2019-11-25T09:56:05 | 2019-11-25T09:56:05 | 224,751,817 | 1 | 0 | MIT | 2019-11-29T01:01:25 | 2019-11-29T01:01:25 | null | UTF-8 | Python | false | false | 8,086 | py | #!/usr/bin/env python
"""
* *******************************************************
* Copyright VMware, Inc. 2016. All Rights Reserved.
* SPDX-License-Identifier: MIT
* *******************************************************
*
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
* WARRANTIES OR CONDITIONS OF ... | [
"het@vmware.com"
] | het@vmware.com |
0e587c315617d75d7578f397cb8112c8653d43bd | 4f7e258073b2688a2dd067d9f6d0947f0b5330f9 | /Project5/Python/get.py | 6b248c0c82135ba8c2d3d494e336ad2051661434 | [] | no_license | ajcletus500/College-Projects | 5ebc1c7f409dc2e757c7f4ca7fe20537681191ef | de7a73e13b203bc0cf93845f2b39d6be8ff5eac0 | refs/heads/master | 2021-01-01T16:40:57.565566 | 2017-07-21T01:40:25 | 2017-07-21T01:40:25 | 97,882,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | import sys
import os
import glob
import re
a=1
dir_path = "/mnt/c/Users/hp/OneDrive/GMU_Notes/Sem4/611/Project/two_core/Results/"
file_list = glob.glob(dir_path+'*') #use standard *NIX wildcards to get your file names, in this case, all the files with a .txt extension
file_list.sort()
#print(file_list)
b=1
#c=filenam... | [
"ajcletus500@gmail.com"
] | ajcletus500@gmail.com |
fb0b82ee3ca997fabc248162d255f49ad5f9061c | 34294f487c203fcbc730b27567ed76f85d7b26d1 | /public_html/betterchecks_app/migrations/0006_auto_20201102_1644.py | 2955e8921bb89b3077cc0acbdc5ecf7083326d3a | [] | no_license | KeitaForCode/betachecks | 917293cbbf42b168a994233dc3b9abb4ef87e3a5 | f626ac5050718b591ade5008c35f3fbf33fa05fe | refs/heads/main | 2023-02-06T10:31:24.441075 | 2020-12-29T22:13:52 | 2020-12-29T22:13:52 | 325,387,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Generated by Django 3.0.3 on 2020-11-02 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('betterchecks_app', '0005_auto_20201101_2134'),
]
operations = [
migrations.AlterField(
model_name='contacts',
name='... | [
"betachecksafrica@gmail.com"
] | betachecksafrica@gmail.com |
a9d04750663a66935108a98236d9113d6c7fc08d | fcf225fba6352a7492acc416718c3f1baad923d7 | /BeerGraphsForAllData.py | 6a9829ace70b4ff43b9185d4bc320d0cf0a08285 | [] | no_license | sleavor/Beer-Project | 45797123bcacc7d48de64f7037da9c78612e2329 | 512297a3870b14734ecca099e5e351e83d1eab0d | refs/heads/master | 2022-07-04T17:17:58.401598 | 2020-05-09T23:31:17 | 2020-05-09T23:31:17 | 262,675,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 24 22:48:26 2020
@author: Shawn Leavor
"""
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
df = pd.read_csv('Project\Beer\data.csv', na_values=['','0'])
df = df.dropna(how='any',axis=0)
df = df[df.abv.str.contains("%")]
for num in range(1,25):
... | [
"sleavor@yahoo.com"
] | sleavor@yahoo.com |
6cf12299dfeaefae34ec2dbc281245a61fb76952 | 099f8b113bdf2a6f657e9b800aa657bb29bb94fa | /Python_Foundation/regularexp2.py | d114107672043e18c89e9face44d4c0602a13e97 | [] | no_license | MayurKasture/Mayur_Python_Foundation_Cource | a02d1442aa5120f6ae3f840f74b394cd4864cf58 | 9ff42a4406456897d3a0c9671e28a2d5fd441213 | refs/heads/master | 2020-09-26T16:31:42.789450 | 2019-12-06T09:28:43 | 2019-12-06T09:28:43 | 226,291,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import re
str="5349 124 8494 8 823"
#1 get list of nnumbers
lst=re.findall("\d+",str)
print(lst)
lst=re.split("\s+",str)
print(lst)
#2 get list of all 3 digit numbers
lst= re.findall(r"\b\d{3}\b",str)
print(lst)
# 3. remove single digit from list
lst= re.sub(r"\b\d{1}\b","",str)
print(... | [
"noreply@github.com"
] | MayurKasture.noreply@github.com |
8497d01d1f5416935e74935fb46785eb6e1d41b2 | 572efedf46f32fd65802433e9464f18713a8c06b | /AutoComplete/wsgi.py | c404762a04b1adeffdabdf90afbd2d0afbed34a5 | [] | no_license | kumarshubham77/AutoComplete | e17dca3346f9a668570931e7e48f54cf6afb3355 | 884ed4cdcd996cee3f3564b734811e36e91896c7 | refs/heads/master | 2020-05-02T19:19:09.959715 | 2019-03-28T14:09:15 | 2019-03-28T14:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for AutoComplete 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"noreply@github.com"
] | kumarshubham77.noreply@github.com |
3f9d6d3b36322800bf1fdd90291314003b1c58f4 | af42c50f185478d59fbb66ff84dddbbaab449c39 | /tests/visualize/test_show.py | d623d28d8210a84846cac139f0068504ffe31ce1 | [
"MIT"
] | permissive | keisuke-umezawa/chutil | 04eac71610d4c7711da75dabf670e93790e9f4df | df60440983c38a6dbbe4710019bcec5e83331904 | refs/heads/master | 2020-04-05T17:23:24.342601 | 2018-11-11T14:54:49 | 2018-11-11T14:54:49 | 157,058,035 | 1 | 0 | MIT | 2018-11-11T13:44:22 | 2018-11-11T07:41:29 | Python | UTF-8 | Python | false | false | 163 | py | import chutil.visualize.show as module
def test_show_test_peformance():
pass
def test_show_graph():
pass
def test_show_loss_and_accuracy():
pass
| [
"noreply@github.com"
] | keisuke-umezawa.noreply@github.com |
441133699c06db56ac4b763ddf70f219012d95bb | ba88e2c659b3ca58deb97e78c69b1c0c1cb73bb6 | /example_jks/generate_examples.py | 047447acff5afb46d5238b664118b2662b061589 | [
"LicenseRef-scancode-mit-old-style",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | floyd-fuh/JKS-private-key-cracker-hashcat | 349ff59954c608dbaa24555efc9cab421bd8f103 | 6b2b557ec81745d0b43f8466f1619ef4f2c7019d | refs/heads/master | 2021-04-12T10:53:00.449891 | 2020-08-10T12:48:13 | 2020-08-10T12:48:13 | 94,535,141 | 189 | 22 | null | 2020-09-21T12:32:56 | 2017-06-16T10:50:29 | Java | UTF-8 | Python | false | false | 2,031 | py | #!/usr/bin/env pypy
#By floyd https://www.floyd.ch @floyd_ch
#modzero AG https://www.modzero.ch @mod0
import os
def executeInShell(command):
import subprocess
process = subprocess.Popen(command, shell=True)
process.wait()
for passw in ["123456", "1234567", "12345678", "123456789", "1234567890"]:
# RS... | [
"tobias@modzero.ch"
] | tobias@modzero.ch |
05cd410ea1feb9e5ce69d50837df1634de6f31ed | d9031bfff990457e53470d8e578314980024cfe8 | /fluent_python_eg/2、数据结构/2.2.1列表推导.py | 616a616d2ccf9968eb7f7347d69d328069632f6b | [] | no_license | L316645200/_Python | f2d69772b2769b73061d3c5c8e957214a4ad9dfd | ca08b86da4e97df8e0f6e704c287f4fdb22f8675 | refs/heads/master | 2023-06-25T07:34:07.629789 | 2021-06-30T03:28:02 | 2021-06-30T03:28:02 | 249,311,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | symbols = '$¢£¥€¤'
codes = [ord(_) for _ in symbols]
print(codes)
codes = [ord(_) for _ in symbols if ord(_) > 127]
print(codes)
beyond_ascii = list(filter(lambda c: c > 127, map(ord, symbols)))
print(beyond_ascii)
x = 'ABC'
dummy = [ord(x) for x in 'ABC']
print(x)
storage_type = (('10', '容量型本地盘'),
... | [
"linjq@kaopuyun.com"
] | linjq@kaopuyun.com |
2c6c3a09d95945c7a9f020b9df2ee127ebe4414a | 00e29479dc7c45a9e019f96c90a69a49af618ccf | /src/api-engine/src/api/routes/user/views.py | 42300c55ed400a24f4c2f80abe33262434251b0a | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | yunchaozou/cello | 8dd081db2ce5d9b8975d553d4491d329790588ef | 68158f572c688f1710813c4df47fad28c3d4276c | refs/heads/master | 2020-04-22T08:40:53.157301 | 2019-02-08T22:35:35 | 2019-02-08T22:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | #
# SPDX-License-Identifier: Apache-2.0
#
import logging
from rest_framework import viewsets, status
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from drf_yasg.utils import swagger_auto_schema
from api.routes.network.se... | [
"hightall@me.com"
] | hightall@me.com |
0fac751aa2481ed3243e8b4ecef04a4bc1c5f709 | 1d0c89ecaa7598e5cb6a26a20a1bdd5f51d60123 | /apps/venta/views.py | 4d70ba59937d3b4dd2807cc2520c3a70b605026b | [] | no_license | chrisstianandres/american_audio | a1fee70e798a151fcbfd492ed75878a8524c783b | ee31f01af4212cc2484188003900648064811fcb | refs/heads/master | 2023-02-01T02:36:59.824789 | 2020-12-09T23:17:45 | 2020-12-09T23:17:45 | 307,203,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,972 | py | import json
from datetime import datetime
from django.db import transaction
from django.db.models import Sum, Count
from django.db.models.functions import Coalesce
from django.http import JsonResponse, HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse_lazy
from djan... | [
"Chrisstianandres@gmail.com"
] | Chrisstianandres@gmail.com |
63231052babc52cc55eefc689d6deb696b58d106 | c9fd6ede5e3f8626f0e581aed9db1729ed2466ad | /browserHistory.py | 981120d322062f94c02bd0733c8c82b44b4a8673 | [] | no_license | jcgaza/leekcodes | 6de2657cc58c5680661d2495b4d996f9d6e89428 | 27fa50185adc347c6b2fe56bec7c81db13265dbc | refs/heads/main | 2023-05-03T07:54:10.573245 | 2021-05-25T12:48:20 | 2021-05-25T12:48:20 | 363,787,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | class BrowserHistory:
def __init__(self, homepage: str):
self.currentIndex = 0
self.urls = [homepage]
def visit(self, url: str) -> None:
self.urls = self.urls[:self.currentIndex+1]
self.urls.append(url)
self.currentIndex = len(self.urls)-1
def back(self, steps: int) -> str:
... | [
"jcgaza@up.edu.ph"
] | jcgaza@up.edu.ph |
6da3f1090aaf84be9df93d0303e20872eb003fb0 | be2f1b5a43379d70e800e0aa2f25c70bbfeca86b | /dosirak/migrations/0014_auto_20160504_0430.py | dab458b4dd732fa493f831230ca91cd9ffff47e5 | [] | no_license | drexly/tongin | 2aab20d49d84662a82e7f9023194490af6b5b06e | d2dcb571c2100e260d93294710997fea3c73ecb3 | refs/heads/master | 2021-06-28T21:23:21.056502 | 2017-01-17T03:00:57 | 2017-01-17T03:00:57 | 58,129,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-05-04 04:30
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('dosira... | [
"KimJuhyeon@gimjuhyeon-ui-Mac-Pro.local"
] | KimJuhyeon@gimjuhyeon-ui-Mac-Pro.local |
ac605461478c38b29888febfb314e4ce4df02cb0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2223/60595/241841.py | 6076414ea5c1392865c888fc83043dbdc578bc50 | [] | 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 | 121 | py | num=input()
if(num=="1,2,4,7"):
print("[0, -4]")
elif(num=="1,2,2,4"):
print("[2, 3]")
else:
print("[2, 1]")
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
e71590e32c9544d472276f2fc59eddcc0e2ba366 | c06912c147874c0c0c79412cfa11ba42fb1bbf39 | /python_scripts/check_HIT_submissions.py | 56ab55e990f01fd1e9dbf261d015f3bdf5c4ded3 | [] | no_license | tongliuTL/active_learning_crowds | defa1ca490fcc8f714f67426459312d5233191c7 | 3dc9abda731be65fde7bae35724f09dacae3fba4 | refs/heads/master | 2021-10-12T04:21:10.007342 | 2019-02-01T20:13:19 | 2019-02-01T20:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py | import sys
from create_compensation_hit import get_client
from helper_functions import get_timestamp, get_log_directory
from pymongo import MongoClient
from collections import defaultdict, OrderedDict
MAX_ASSIGNMENTS = 5
SETS_OF_LABELS = 12
def read_HITs_log(file_name):
hit_id_list = list()
with open(get_log... | [
"tongliu0314@gmail.com"
] | tongliu0314@gmail.com |
0f638cb37c3cfe9526b6699975d791d2e7f0eaff | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_yesdongil_main_big.py | 207b07db4c346d26f784da03b2499dd769587875 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,846 | py | import os
import sys
import math
import itertools
def xrange(start, stop):
i = start
while i < stop:
yield i
i += 1
def is_prime(value) :
ret = 0
if (value % 2) == 0 :
ret = 2
elif (value % 3) == 0 :
ret = 3
else :
limit = int(math.sqrt(value))
index_limi... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
277b796133b417f3f03e8d037d77c96b7187c638 | 5d451964cdab06369ae86e1b9594ebc6bfec789e | /Exercise/concat.py | 05af00724625624bf169a27b3e3a5bdee35b4605 | [] | no_license | Donishal/My-Project | 308d5e07a9285530a12244c66a75b89b8a01912d | 9ee4f1d354efc79f785e40b8b9652ecb01cc4694 | refs/heads/master | 2020-09-03T12:32:48.931940 | 2019-11-04T09:31:31 | 2019-11-04T09:31:31 | 219,463,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | dic1={1:10, 2:20}
dic2={3:30, 4:40}
dic3={5:50, 6:60}
dic1.update(dic2)
dic1.update(dic3)
print(dic1)
| [
"doniisabel7@gmail.com"
] | doniisabel7@gmail.com |
a22053a94d32942f8b2f31f59b1e33414a43912f | bdaff7d03ad5278bdb57c4894cf2678e4db7082d | /arquivos.py | e61677c903fdd66e5c540720fe9535b06c9d1f53 | [] | no_license | Dsblima/python_e_mysql | aff68d8b401135fd28cbf3be676982fc9dc312fd | 83b0d6436f469d39da6166295e2277dd7f6e331b | refs/heads/master | 2020-06-30T06:21:59.317363 | 2019-08-24T22:23:59 | 2019-08-24T22:23:59 | 200,754,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | """
- PARA ABRIR UM ARQUIVO arquivo = open(nomedoarquivo.txt,modo)
- O MODO PODE SER (r,a,w,a+,w+,r+)
- PARA LER O CONTEÚDO DE UM ARQUIVO PODEMOS USAR AS FUNÇÕES:
read() - lê o arquivo inteiro
readline() - lê uma linha do arquivo
readlines() - lê o conteúdo inteiro arquivo e retorna em um array de strings
"""
meuArquiv... | [
"dsbl@ecomp.poli.br"
] | dsbl@ecomp.poli.br |
9265912218e15a8cb1439ef7f525286b3276040d | c532eea91e84f58f4ba57c27c6c24046498bde22 | /HelloPython/day02/Myfunc04.py | 2b34c220385a7c4d1454354f91fe57294038825a | [] | no_license | seaweedy/python | b9010f3277da09311a6d128d7f992874137c7c82 | 3f966223e19011318ed45308e89afe7d217e6ea4 | refs/heads/master | 2023-01-01T17:53:58.845336 | 2020-10-21T08:10:30 | 2020-10-21T08:10:30 | 301,929,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | def increase(a):
a +=1
def increaseRef(a):
a[0] +=1
a = 1
b = [3]
print(a)
print(b[0])
increase(a)
increaseRef(b)
print(a)
print(b[0])
| [
"ismh5279@gmail.com"
] | ismh5279@gmail.com |
e778973800b1393a64cfbffed12451da655f8b6e | be0046a5476db35e21325b1d7a009b95c13b2c34 | /analysis/museumstation/usage_stats/usage_stats/get_usage_short.py | 03ec8d28ba5b99f669294a736ccee4af090a1d65 | [] | no_license | brialorelle/kiddraw | 089605e1a20aa38521dcbd411f4781f62f738618 | 78db57e46d8d4eafe49a8edec5a86499abdcb332 | refs/heads/master | 2022-10-03T10:56:26.842485 | 2022-09-09T17:23:42 | 2022-09-09T17:23:42 | 106,886,186 | 18 | 7 | null | 2018-09-04T23:28:09 | 2017-10-14T00:47:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,270 | py |
## libraries
import pandas as pd
import time
import pymongo as pm
import os
# set input parameters
iterationName = 'cdm_run_v8'
num_hours = 40000
# set up connections
auth = pd.read_csv('../../auth.txt', header = None) # this auth.txt file contains the password for the sketchloop user
pswd = auth.values[0][0]
conn ... | [
"brialorelle@gmail.com"
] | brialorelle@gmail.com |
89105cb6a33047fafb65b3d7700b868a31019e2f | 782e1a5cf60fd39482d14fb1a3861ab9eeeb6ebf | /src/model/split.py | ffa577b6a3d721a93eb97efe4c0e49f398e8b6fc | [] | no_license | andfanilo/ieee-fraud-detection | f88976e9c0937ead230775c336cb437693272b31 | 672cc784d55c6649e464c7c114bb86431b43085a | refs/heads/master | 2020-06-20T15:32:38.315054 | 2019-09-29T08:28:02 | 2019-09-29T08:28:02 | 197,164,393 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,475 | py | import datetime
import logging
from typing import Optional
import numpy as np
import pandas as pd
from sklearn.model_selection import PredefinedSplit
from sklearn.model_selection._split import _BaseKFold
from sklearn.utils import indexable
from sklearn.utils.validation import _num_samples
LOGGER = logging.getLogger(_... | [
"fanilo.andrianasolo@worldline.com"
] | fanilo.andrianasolo@worldline.com |
bd7bff855a8e80aaf2827d004bd3fd6132dde759 | 0d3f7956ccbb273ca4fa8afcd55a789fa22e6ba5 | /preprocessing.py | 27f746c260e188dee2b66c28b16a26d1f224f396 | [
"MIT"
] | permissive | cltl-students/hamersma-agression-causes | 9017fea1fb77e3ca278cd3752c2c74f9a2f25925 | 11cbfd94031a0a3c84a27afa20d8a539acdab609 | refs/heads/master | 2023-04-15T07:46:58.447952 | 2021-05-03T15:27:35 | 2021-05-03T15:27:35 | 351,095,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,259 | py | import pandas as pd
import spacy
import nltk
import re
import pickle
import numpy as np
from transformers import BertTokenizer, BertModel
from utils.bert_embeddings import get_BERT_embedding
from collections import defaultdict
import torch
from collections import Counter
import os
dirname = os.path.dirnam... | [
"noreply@github.com"
] | cltl-students.noreply@github.com |
45f836742cb5dd1b301e9cf7ce5f7cb6f97a3458 | 444f09701504a8c09127aafb7a5bcc71ec40aa38 | /zhihu_browser.py | 2f2d40d932849265b72458996d5e59a06b340543 | [] | no_license | NanrayJack/Python-Spider | 2ea478aa2e726eaa8f3ab725d656f2adf6b2e6f8 | cc0fdb517991f923ec900b64d45a1abcf1049446 | refs/heads/master | 2022-02-17T21:28:10.864080 | 2019-09-03T16:28:17 | 2019-09-03T16:28:17 | 205,997,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | import time
from time import sleep
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
import secret
import platform
import os
from utils import log
def add_chrome_webdriver():
log(platform.system())
... | [
"noreply@github.com"
] | NanrayJack.noreply@github.com |
59c085b313e80a35b2b866517725e5e2b2ab268d | 2c5b7aa3ada684688a5a1556cf6c7934217b7dcd | /movie_analysis/__init__.py | 56f610126ef8054383c7532f5556c19f78520717 | [
"MIT"
] | permissive | rlfranz/movie-gender-sentiment-analysis | 385aafacd8d2f0f964d3f2467cf40a8fd74b6914 | ff8dd6393a4b6224c95e388cfc70a428a001bd41 | refs/heads/master | 2020-04-10T17:06:41.234053 | 2018-12-10T11:30:13 | 2018-12-10T11:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from .version import __version__ # noqa
from .movie_analysis import * # noqa
from .get_sentiment_score import * # noqa
from .analyze_comments_tblob import * # noqa
| [
"rchlfranz@gmail.com"
] | rchlfranz@gmail.com |
edeee6602b190ca18e61ad5f160a964b27d00952 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch34_2020_04_23_17_53_27_919517.py | ee3644d60592c2aae2ec473d6ba51ecadb41d2fe | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | def eh_primo(n):
if n == 0 or n == 1:
return False
elif n == 2:
return True
for i in range(3, n, 2):
if n%2==0:
return False
elif n%i==0:
return False
else:
return True
def maior_primo_menor_que(n):
p = -1
while n>0:
i... | [
"you@example.com"
] | you@example.com |
c8c314c5d709f0fa4bdd77ab501e68a1e22ad86a | f05908fcf4236df817fe04fecff8dce670c28c57 | /Classification/Extra/rmse_class_sigm.py | 1af3ca6ad5adf3999db1212cc862046c6e75d211 | [] | no_license | visionion/Neural-Networks | 5db843232c7889cc9593c0097bf8ed93d5016e03 | d60d486399b458ad6ad0cf0dce188591ddbedd68 | refs/heads/master | 2020-04-09T11:55:01.028022 | 2017-01-02T07:34:52 | 2017-01-02T07:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py |
def featureNormalize(X):
X_norm = np.divide((X-np.mean(X,axis=0)), np.std(X,axis=0))
return X_norm
def activation(a):
#here it is sigmoid function
return np.divide(float(1),1+np.exp(-a))
def feed_forward(xtrain,weights1,bias1,weights2,bias2):
a1= np.dot(xtrain,np.transpose(weights1))+bias1
... | [
"vaibhav290797@gmail.com"
] | vaibhav290797@gmail.com |
d0d5a0a378ff8e2e830f3b70dd51e7701ecdd2f4 | b243ce8a8e4ed5eb299adaa6e95ef8f268ea1744 | /advent/solver/day_6/task_1/__init__.py | 0c777935f4c9de1d73992dc3aa250a1470b5f750 | [] | no_license | LukaszSac/AdventOfCode | b62d26ab62c303abaab26f6b83f591fe9c4beca4 | d8c0438a9a7a47febabb04133800e0abcea35a5f | refs/heads/master | 2023-01-30T00:15:17.206813 | 2020-12-09T21:25:03 | 2020-12-09T21:25:03 | 318,300,208 | 0 | 0 | null | 2020-12-08T19:08:33 | 2020-12-03T19:37:59 | Python | UTF-8 | Python | false | false | 39 | py | from .solver import DaySixTaskOneSolver | [
"sacewiczlukasz@gmail.com"
] | sacewiczlukasz@gmail.com |
1c5a217e9f5c3d0bfa5d81fb7f4e52d6dccae8dc | 746e0dc66893cd287a0a1f94fa7f5fad168d38f9 | /main/migrations/0030_auto_20141012_0029.py | a91a9d3b23b969865ecbf8e5a88cc017fa64e136 | [] | no_license | alpotapov/foodplan | eeeb04bf5a12fac1c67a31443ab34643b59a9ccd | 0dd26a2446da9d7129c259532dcd0f19b87038d6 | refs/heads/master | 2021-01-16T21:17:44.670107 | 2014-11-15T17:22:50 | 2014-11-15T17:22:50 | 26,687,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('main', '0029_auto_20141012_0024'),
]
operations = [
migrations.AlterField(
model_name='scheduled... | [
"al.potapov@hotmail.com"
] | al.potapov@hotmail.com |
b0c32aca6bcee164439fb7eba0c7676a3bb2499c | 8928f04f1867358430df456bdef5086b88b43ccd | /snagging_parking.py | 683fb7950cc374355322f68e65a4e697c08c6ae7 | [] | no_license | MMSaiPrakash/parking_slots_assistant | 83d8f76638f2f64e8fe3bf91d4abb3b0be86b5a2 | 944b775d955a65e041dda7960800b3bf887b9013 | refs/heads/main | 2023-05-06T22:18:03.437711 | 2021-05-22T06:48:27 | 2021-05-22T06:48:27 | 369,736,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,901 | py | import urllib
import cv2
import numpy as np
import time
from firebase import firebase
firebase = firebase.FirebaseApplication('https://snaggingparking-default-rtdb.firebaseio.com/')
#Change the firebase url to yours and use this code.
url = 'http://192.168.0.109:8080/shot.jpg' #Change this IP with your Camera... | [
"noreply@github.com"
] | MMSaiPrakash.noreply@github.com |
9add89bb31c6cf98448a3a7a6624b32dfcda9b13 | 825616ad2c01a37c155579facb3ff2b9553cfb9f | /tests/test_ignore.py | 404a2ef2692d265babf632faeee6549b41f4a45e | [
"MIT"
] | permissive | paolodina/namedtupled | f909b0303387b0ef8c73fe31e4b227f586410254 | cca5396dd806dae2039a7099cce3bfc7e568fec2 | refs/heads/master | 2021-04-30T04:40:22.830873 | 2018-02-14T18:57:19 | 2018-02-14T18:57:19 | 121,540,307 | 0 | 0 | null | 2018-02-14T17:34:35 | 2018-02-14T17:34:34 | null | UTF-8 | Python | false | false | 632 | py | import namedtupled
import pytest
mapping = {
'foo': 'bar',
'baz': {'qux': 'quux'},
'tito': {
'tata': 'tutu',
'totoro': 'tots',
'frobnicator': ['this', 'is', 'not', 'a', 'mapping']},
'alist': [{'one': '1', 'a': 'A'}, {'two': '2', 'b': 'B'}]
}
mapping_array = [mapping, mapping]
... | [
"brennv@users.noreply.github.com"
] | brennv@users.noreply.github.com |
fa4a0b305407775dbe2e6907373318daf7bef42b | 7e2351db6ee3d9bf1edaf728855c7a5934e8b7dc | /examples/tutorials/lighting_tutorial.py | d2d0052338def553a03dbae1ec4a11415c4fcff2 | [
"MIT"
] | permissive | alstar8/habitat-sim | b8fd764fb57b8cb678c7ac03ec1f95f4b3012d01 | fc3261f89732c4712ca1db00b24487a983641d62 | refs/heads/main | 2023-08-14T11:15:50.555848 | 2021-10-03T11:39:03 | 2021-10-03T11:39:03 | 413,045,671 | 0 | 0 | MIT | 2021-10-03T10:31:02 | 2021-10-03T10:31:02 | null | UTF-8 | Python | false | false | 7,095 | py | # [setup]
import math
import os
import magnum as mn
import numpy as np
from matplotlib import pyplot as plt
import habitat_sim
from habitat_sim.gfx import LightInfo, LightPositionModel
from habitat_sim.utils.common import quat_from_angle_axis
dir_path = os.path.dirname(os.path.realpath(__file__))
data_path = os.path... | [
"noreply@github.com"
] | alstar8.noreply@github.com |
fafe549264abbc0749503ca3d08dbbc62fe4299b | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /lambda_write_f/function-event-invoke-config_delete.py | 15016e42d8d9604bacece336bdaec2f86610b9a1 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
a68861444e000bbcdbbae9937a8b09291c122dad | ceb23942414751fb5a14b46c6f1d90e40e41cb81 | /Householder Method/QR_decomposition.py | c5dc0bf6d0326de5fe915c9b822a39446c269299 | [
"MIT"
] | permissive | Kshitiz-Jain/Algorithms-1 | fc06cb35b3621ab0efdef6c020109926fe2264eb | 3039428ba48da4872777bc3b15f75447854a9642 | refs/heads/master | 2020-08-04T22:43:31.264046 | 2019-10-02T14:52:09 | 2019-10-02T14:52:09 | 212,302,229 | 0 | 0 | MIT | 2019-10-02T09:36:14 | 2019-10-02T09:36:14 | null | UTF-8 | Python | false | false | 1,466 | py | #Roll no.- Name
#201651007 - Aman Yadav
#201651029 - Mayank Pathela
#201651060 - Anshuman Verma
# Importing needful libraries
import numpy as np
# A function to evaluate Q & R for a given array
def qr(A):
m, n = A.shape
Q = np.eye(m)
for i in range(n - (m == n)):
H = np.eye(m)
# Computing ... | [
"mp.pathela@gmail.com"
] | mp.pathela@gmail.com |
b8b2d228ddc37132400ffc22205e20ffee445333 | c9cf408754c54743b3ac2e4cb963726f5204dce5 | /src/nc_service/constant_rate_server.py | 235c3d850c4c157b87b5c69b6d71761ee2dd2810 | [] | no_license | bocattelan/python-snc-mgf-Bruno | 29066777bedb54ddbe12f1863807890067f70ddf | 7009ecf46e6a68b206c252477fb76a70fe713b11 | refs/heads/master | 2020-04-13T02:27:36.597327 | 2018-12-18T20:06:43 | 2018-12-18T20:06:43 | 162,903,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """Implemented service classes for different distributions"""
from nc_service.service import Service
from utils.exceptions import ParameterOutOfBounds
class ConstantRate(Service):
"""Constant rate service"""
def __init__(self, rate: float) -> None:
self.rate = rate
def sigma(self, theta=0.0) ->... | [
"nikolaus@cs.uni-kl.de"
] | nikolaus@cs.uni-kl.de |
fc9f01838570e13f69a2601763e4edf059156fb3 | f5a92dfca6e4428992f539ef2819f797c1ddf324 | /flask329/run.py | 7890a0a49e6f65cb675d7b64aab282fabd8a81f4 | [
"MIT"
] | permissive | ZJUguquan/CRF_for_entity_identify | c553013ce3c3cf630adb82a37aa7ad9106946b2f | 416e7c96854265a5873ce2aa23a8cfbe19358576 | refs/heads/master | 2021-06-16T10:48:01.825782 | 2017-05-17T08:34:01 | 2017-05-17T08:34:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,241 | py | #coding:utf-8
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from flask_wtf import FlaskForm
from wtforms import TextAreaField, SubmitField
from wtforms.validators import Required
import numpy as np
from numpy import *
import pandas as pd
import json
impo... | [
"guquan291410772@126.com"
] | guquan291410772@126.com |
d1a3470fcaf15ed7dc2b2213d66baa0ad7186f38 | 0102b98c118cdc43dee4c849083bbbe6926512e2 | /lemon/settings.py | 24e03b9667b1bd2e1452344577c762d95ddfc86b | [] | no_license | solen0id/lemon | a201ea8c5822d47ae338bb41fd2d559e4e555c64 | 1bfa241a5ac318bae8e13351b5050d7366fe5241 | refs/heads/master | 2023-04-07T14:45:51.831355 | 2021-04-19T06:42:20 | 2021-04-19T08:35:37 | 359,386,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | """
Django settings for lemon project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"max.patzelt@legislayer.com"
] | max.patzelt@legislayer.com |
4766e7836e32da1470704406f4da46c5ba8fe537 | 1fabc88dcd905494baa9ef6797c9b0b512c95011 | /Q12.py | df33329ecc3ca606977a358249dc1ec2e78e6e2b | [] | no_license | LYW-91118/python | f5847bef2c28f9f3daadf24f2decfc9aad7c3598 | 3798924f708752607242686398087dc3208b22fc | refs/heads/main | 2023-04-16T22:50:49.669657 | 2021-04-28T06:53:13 | 2021-04-28T06:53:13 | 362,366,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | num = input("輸入一整數序列:")
s = num.split()
sum = len(s)
a = 0
for i in range(sum):
if(s.count(s[i]) >= (sum/2)):
print("過半元素為:%s" %(s[i]))
a = 1
break
if(a == 0 ):
print("no") | [
"yoyo0928101611@gmail.com"
] | yoyo0928101611@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.