blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9604e8f126ae08fdc64684c915add3f5ada2de65 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/talent/v4/talent-v4-py/google/cloud/talent_v4/services/tenant_service/transports/grpc_asyncio.py | 679d8036af1cc02a78da15e9f02c1aada348562c | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,005 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
9e3ebe137d8dc63b0049a29971d16d7814e8f820 | 33d3e7df4c3dedcdd17a5ca3ba27bdddb5556f8e | /Problems/Complex numbers 2.0/main.py | 78fea251725c01b5551f89747075c423b7ad07ea | [] | no_license | Hemie143/Regex_Engine | cf2526d6b47fab180a830373cbd4515646992034 | 0a37129e98a6e7fb7795c280476ab5ef9c4c001e | refs/heads/master | 2023-02-11T18:35:08.115285 | 2020-12-29T11:29:35 | 2020-12-29T11:29:35 | 325,268,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | class ComplexNumber:
def __init__(self, real_part, im_part):
self.real_part = real_part
self.im_part = im_part
def __add__(self, other):
real = self.real_part + other.real_part
imaginary = self.im_part + other.im_part
return ComplexNumber(real, imaginary)
def __mul_... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
b9203dcc129617e21f89ccd267b07d6f74831e37 | 16fcf452e6165a0de5bc540c57b6e6b82d822bb1 | /Learntek_code/10_july_18/class5.py | b8f0bcd08939a207a4fb16fd025ab0c8404bc436 | [] | no_license | mohitraj/mohitcs | e794e9ad2eb536e3b8e385fb8d222e8ade95c802 | d6399b2acf69f5667c74f69715a0b55060bf19d1 | refs/heads/master | 2021-09-09T00:21:23.099224 | 2021-09-07T16:39:07 | 2021-09-07T16:39:07 | 87,798,669 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | class Learntek( ):
inc_factor = 1.20
def __init__(self,name ,lname , pay):
self.name = name # instance variable
self.lname = lname
self.pay = pay
self.full_name =name +lname
print self.full_name
def make_email(self) : # Regular Method
self.email = self.name+self.lname+"@learntek.com" ... | [
"mohitraj.cs@gmail.com"
] | mohitraj.cs@gmail.com |
9c2836b28b9c43842f326d8f089bf8d9fff3c083 | 3d46409d076e3a9c2bd0a3004f3a8ab8286bd364 | /tools/visualize_loss_and_image.py | 87f71616cbb51c2309351ef99079ce99a32b30ac | [] | no_license | xiaodongdreams/UWEnhancement | de8b325bc2ed5b585213fbd3286eb1f8d134871f | efdb24281621ecb3ebe714e07bfefaa6e10ec494 | refs/heads/master | 2023-08-22T06:39:43.787027 | 2021-11-01T02:49:16 | 2021-11-01T02:49:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | import visdom
from UW.utils.Visualizer import Visualizer
import collections
import random
from PIL import Image
import numpy as np
# a demo for visdom
# visualize loss and image during training
# should enter "python -m visdom.server" in a terminal
vis = visdom.Visdom()
visualizer = Visualizer()
# visualize loss plo... | [
"yudongwang@tju.edu.cn"
] | yudongwang@tju.edu.cn |
0f5592e4a4def53609b17cb303a93026771f79b8 | b39f502995ee3376efb5e63d20b7274a17f660e1 | /app/snippets/views/user.py | 48d1f0dec58224e2251254b650c76a0074afe65f | [] | no_license | gambler1541/django-drf | 489b6274e1c52fbfaa9524f5c95329169c9de7d8 | 09ba46501e6f0c6185608c6c50e7a1569e25389f | refs/heads/master | 2020-04-15T02:21:58.532143 | 2019-01-14T14:06:39 | 2019-01-14T14:06:39 | 164,312,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from django.contrib.auth import get_user_model
from rest_framework import generics
from ..serializers import UserSerializer
User = get_user_model()
class UserListView(generics.ListAPIView):
queryset = User.objects.all()
serializer_class = UserSerializer
class UserDetailView(generics.RetrieveAPIView):
... | [
"gambler1541@gmail.com"
] | gambler1541@gmail.com |
7ec4bb8b3c0ae77bb8fd82a26e198d5c89e6853b | 4a766c8444c280e8c22dae71bba58218debc15b4 | /run_custom_train_loop.py | 22979afebfdec6a263b9bb027276d41cd8fd859a | [] | no_license | eggworld/dl_ts_prediction | c411633d592677213df1a57e168d7bf8748cb0dd | cb61d6aa1248dd75a58bf27b2f2affc3ed9a2301 | refs/heads/master | 2022-12-01T09:00:41.105811 | 2020-08-18T08:18:45 | 2020-08-18T08:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,603 | py | from run_model import make_model
from models import Model
from models.global_variables import keras, tf
import pandas as pd
class CustomModel(Model):
def train_nn(self, st=0, en=None, indices=None, **callbacks):
# Instantiate an optimizer.
optimizer = keras.optimizers.Adam(learning_rate=self.nn_c... | [
"ather_abbas786@yahoo.com"
] | ather_abbas786@yahoo.com |
4b2614fcf28cc9c8ef0d172f4fb96c9f794d442f | 568d7d17d09adeeffe54a1864cd896b13988960c | /month03.2/django/day08/mysite7/mysite7/urls.py | 3baa97a971cd5bb3d4aa05f148648f9de1d765bb | [
"Apache-2.0"
] | permissive | Amiao-miao/all-codes | e2d1971dfd4cecaaa291ddf710999f2fc4d8995f | ec50036d42d40086cac5fddf6baf4de18ac91e55 | refs/heads/main | 2023-02-24T10:36:27.414153 | 2021-02-01T10:51:55 | 2021-02-01T10:51:55 | 334,908,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """mysite7 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... | [
"895854566@qq.com"
] | 895854566@qq.com |
12dd300d134c5fa734fef29945750e4e6c7e4bda | b7851ffc689990a5c394697b1d016ba34307630c | /venv/lib/python3.8/site-packages/flake8/checker.py | 5d3b2d166a47a128bfbde4a4985b00189e30c6e5 | [] | no_license | denokenya/django-schooling-rest-api | f38fb5cc31a6f40462f9cb1dcc6c3fd36e1301c6 | 552b98d5494344049541df615f446713cb5da1fa | refs/heads/main | 2023-06-14T12:53:11.897887 | 2021-07-10T18:02:11 | 2021-07-10T18:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,512 | py | """Checker Manager and Checker classes."""
import collections
import errno
import itertools
import logging
import signal
import sys
import tokenize
from typing import Dict, List, Optional, Tuple
try:
import multiprocessing.pool
except ImportError:
multiprocessing = None # type: ignore
from flake8 import defa... | [
"lucasciccomy@gmail.com"
] | lucasciccomy@gmail.com |
a1d77d08e9b3dafcff7db175feacab8f840e01f6 | e3a33b61f32259e35bd7c4f9e6313876bfca7c1d | /data_acquisition/download_medium.py | 31384196aa0bf051ed56c2a9dd3fe9eb647179c9 | [] | no_license | wlifferth/msc | 8d0e533e1ee36a01cea440c56f059c3cab2b44ef | e0f77bd8893e27bd25a452d0610838769361e1cf | refs/heads/master | 2022-12-09T15:57:03.806406 | 2019-03-31T21:37:38 | 2019-03-31T21:37:38 | 170,628,398 | 0 | 0 | null | 2022-12-08T04:51:05 | 2019-02-14T04:43:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,062 | py | import pandas as pd
import requests
from bs4 import BeautifulSoup
from sys import argv
if (len(argv) < 2):
print('Usage: python {} filename'.format(argv[0]))
quit()
raw_df_medium = pd.read_csv('data/medium_urls.csv')
urls = raw_df_medium[['url']]
print(len(urls))
sample_num = int(argv[1])
urls = urls.sampl... | [
"wlifferth@icloud.com"
] | wlifferth@icloud.com |
5a4d83070ec87be4f7eb705c62b8266b4a54683c | 4725c086d4cc739f891183928ef2d5c5c0f72c60 | /migrations/versions/43f47b570e4d_.py | 4ec5641ffef95bf4f4f73bfde9b104daea024e11 | [
"MIT"
] | permissive | DBeath/push-tester | 18d78a68a39d8fb8c7b50036cb6742745c183480 | 1851e28f5bdadc4d0f94ab2f88b0d39660196e02 | refs/heads/master | 2021-01-10T19:31:09.569149 | 2015-09-23T01:57:40 | 2015-09-23T01:57:40 | 27,365,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | """empty message
Revision ID: 43f47b570e4d
Revises: 3b2fb7373c28
Create Date: 2015-01-06 22:19:36.418352
"""
# revision identifiers, used by Alembic.
revision = '43f47b570e4d'
down_revision = '3b2fb7373c28'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"davidgbeath@gmail.com"
] | davidgbeath@gmail.com |
0314cc443e969b7cbf75445a56ea887d1f9b0d07 | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/MemsIPE/server/openmtc-scl/src/openmtc_scl/plugins/lwm2m_dm_client/__init__.py | 0e3fa5d2a8833aeef430a3104d95db8fd0d6f15e | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 9,922 | py | from openmtc_server.Plugin import Plugin
from LocalClientCore import LocalClientCore
from M2M_Device_Gateway_DM_Adapter import M2M_Device_Gateway_DM_Adapter
from openmtc_gevent.GEventNetworkManager import GEventNetworkManager, Interface
from StoreAndForward import StoreAndForward
from copy import deepcopy
class lwm2m_... | [
"sro"
] | sro |
482459e6d7dc8b6b6609cd6d71b47142cbfe529a | aebc347ff9a8ad739111f13aa8d4cf9d48a1e4bd | /data/170821/170821_124146_test_trapguard/0029_test_trapguard_E5071C.py | 8d934ba0ee450e59229c35e61126e4b85f97446c | [] | no_license | geyang/170422_EonHe_M018V6 | f01a60d3b8a911ba815a0fcc0bf1b6e2aa8f5f17 | ce189e22f99942e46fce84a0dca714888e44bc69 | refs/heads/master | 2021-06-22T21:01:23.257239 | 2017-08-25T09:48:17 | 2017-08-25T09:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,316 | py | from data_cache import dataCacheProxy
from time import sleep, time, strftime
from setup_instruments import fridge, seekat, yoko1, nwa, filament
from resonance_fitting import fit_res_gerwin
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
import os
from shutil import copyfile
import quicktimetrac... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
172adfd2f392aee607d41fbc14566d89d1ea1181 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/cdn/models/WafCCProtectRuleModel.py | 702b7951047fd40b69c1bb1afd2f76068a1b18de | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 899 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
0bea1fcec132d83667828e57585421c5ea182e17 | fee63c131fe9398f5e934e1c261e2d59de6d02a2 | /vint/asset.py | df2e45d452e80c32716fd03c44e7cfaadfacb5a7 | [
"MIT"
] | permissive | tmsanrinsha/vint | 81fd110dfb9ba57dc3d3dd6b12b0d398de529f02 | 8c34196252b43d7361d0f58cb78cf2d3e4e4fbd0 | refs/heads/master | 2021-04-03T08:47:06.646878 | 2018-01-23T06:21:07 | 2018-01-23T06:21:07 | 124,716,157 | 0 | 0 | MIT | 2018-03-11T02:22:23 | 2018-03-11T02:22:23 | null | UTF-8 | Python | false | false | 184 | py | from pathlib import Path
def get_asset_path(file_path):
vint_pkg_root = Path(__file__).parent
asset_dir = Path(vint_pkg_root, 'asset')
return Path(asset_dir, file_path)
| [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
e0721f5b6bcd0520490743b0556f34c6c048dbb3 | 8cca95dbb22819c707147aac8e90325f99400100 | /izone_env/Scripts/django-admin.py | b758eadf64834a95692eafd5e5668e134574cb93 | [] | no_license | wang5-wang/izone | 4f0b10ccdbfdef2e2ea1a2952fbd6c6d39d4c8d8 | 9dd8598ed8b4eaec3b93fc9a6ebdb38212453081 | refs/heads/master | 2023-03-04T21:25:38.165414 | 2021-01-17T02:32:16 | 2021-01-17T02:32:16 | 339,963,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #!e:\vs\.vscode\izone\izone_env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"eric@example.com"
] | eric@example.com |
9e947b352f670d2491fc00afde375dff5f059c1c | 793664834780e3b86e9674d3f24d534202794257 | /tensorflow/python/ops/ragged/ragged_reduce_op_test.py | 890460221bf9fdebe134d6ced77b1fca2dbdffd5 | [
"Apache-2.0"
] | permissive | Alireza89/tensorflow | a940ee02b491dcd6d18fbd8f2a4434492c46984d | 1460fc88404b39550105d2d38478d34f146817a4 | refs/heads/master | 2020-04-10T08:32:11.506812 | 2019-01-10T07:19:06 | 2019-01-10T07:19:06 | 160,908,054 | 0 | 2 | Apache-2.0 | 2018-12-08T05:41:48 | 2018-12-08T05:41:48 | null | UTF-8 | Python | false | false | 13,256 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
ff5a5f8f62a15c9bd58f99adcffa8f2c89b80c43 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_cruciform.py | f6385cec2f4c5b67ba757f7f39acb8653d3c6b51 | [
"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 | 387 | py |
#calss header
class _CRUCIFORM():
def __init__(self,):
self.name = "CRUCIFORM"
self.definitions = [u'in the shape of a cross']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsond... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9eca0838af1458cb07749eaa568f45b1e07219f9 | c08f221d8d7e188e9af33d16ad1ec437db34f1b8 | /difficulty/learner.py | 5b2d1f2f966485c2c84b7a54837a571e789729ce | [
"Apache-2.0"
] | permissive | Lucine-423/easy_learner | 127f280f0362eaec6275220988723570fd00952e | 98d0b43fa454e848bf67d016ba17ae9ff3943784 | refs/heads/master | 2021-05-28T02:43:33.593093 | 2015-03-13T07:01:33 | 2015-03-13T07:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,310 | py | #!/usr/bin/python3
#coding: utf-8
'''
作用,训练并交叉验证,四类特征分别为 1.词(word);2.长度(length);3.结构(struct);4.主题(topic),主题可能后来会有较大变化,执行的时候-f word即可,全选是all
'''
from scipy import sparse
from data import load_train,load_lda
from nltk import word_tokenize as wt
from textblob import TextBlob
import numpy as np
from sklearn import cr... | [
"zhaoximo@hotmail.com"
] | zhaoximo@hotmail.com |
8d4348f938183a29c40c777a89684f8527fc9a0d | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/comments.py | 8452abdb725bd6c2ebef7ed753427e4673eb3a25 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 5,598 | py | ###############################################################################
#
# Comments - A class for writing the Excel XLSX Worksheet file.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright 2013-2022, John McNamara, jmcnamara@cpan.org
#
from . import xmlwriter
from .utility import preserve_whitespace
from .u... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
0b9188ca0ac87e76e55067f0c7a826ee4cef0ed3 | 791ce6452fb555f953ed3adb1966b59abc7c2dbb | /arxiv_net/dashboard/custom_dcc.py | f201c24a367a38ba26a638cb2eadb6e7e7fb0bb8 | [] | no_license | mirandrom/arxiv-net | d63b76006d7cde62a4ba4e623ffa3971436455f5 | 86bdc7a878c8d1d4a0135ddd2785cb59ca638937 | refs/heads/master | 2023-03-21T13:37:30.567726 | 2019-12-05T23:25:24 | 2019-12-05T23:25:24 | 222,019,331 | 2 | 0 | null | 2021-03-20T02:10:29 | 2019-11-15T23:26:34 | Python | UTF-8 | Python | false | false | 873 | py | import dash_core_components as dcc
import dash_html_components as html
def Card(children, **kwargs):
return html.Section(children, className="card-style")
def NamedRangeSlider(name, short, min, max, step, val, marks=None):
if marks:
step = None
else:
marks = {i: i for i in range(min, max... | [
"arialinvlad@gmail.com"
] | arialinvlad@gmail.com |
a3f1002fcc289913852f8cf254c45c8dcf4705de | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_12/ar_12/test_artificial_32_Anscombe_Lag1Trend_12_12_100.py | b05abac646b5c207354b79887db3ab9e7af896b5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
50ef5559f465f22098a3326690868c5b83b65d1b | c30de35e12ee7646218e1370c545c41f27487bf7 | /vnpy/event/eventType.py | 014d930b0ad223b16ae347a21d94610ed88ce36b | [
"MIT"
] | permissive | OceanMT-Team/vnpy | 4fe4457e65f78ce4545a6e785c1728ef9c586856 | eefbd4eba0dcf69417e8789d39cfb99caedd8a05 | refs/heads/master | 2021-08-24T05:34:26.045566 | 2017-12-08T07:27:45 | 2017-12-08T07:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | # encoding: UTF-8
'''
本文件仅用于存放对于事件类型常量的定义。
由于python中不存在真正的常量概念,因此选择使用全大写的变量名来代替常量。
这里设计的命名规则以EVENT_前缀开头。
常量的内容通常选择一个能够代表真实意义的字符串(便于理解)。
建议将所有的常量定义放在该文件中,便于检查是否存在重复的现象。
'''
EVENT_TIMER = 'eTimer' # 计时器事件,每隔1秒发送一次
#----------------------------------------------------------------------
def test():
... | [
"incenselee@hotmail.com"
] | incenselee@hotmail.com |
6cf0c835992253d4a5c324aad69f3a7446e69943 | 4f4dc1e6235b068f3346a0df66740e216fd3a993 | /haystack12/utils/decorators.py | 9f6db98bddf915cd6ab55dabe8b1756437337c0a | [] | no_license | intabeta/inta | 940dc94ecffde4b82dab87ffc5ca7bfcb1a391fa | 10d479630d8398dfbea34020584eeaaff14961fc | refs/heads/master | 2021-01-23T09:49:15.992045 | 2014-02-08T01:23:49 | 2014-02-08T01:23:49 | 9,431,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # Backport of Django 1.2's ``django.utils.decorators``.
try:
from functools import wraps, update_wrapper, WRAPPER_ASSIGNMENTS
except ImportError:
from django.utils.functional import wraps, update_wrapper, WRAPPER_ASSIGNMENTS # Python 2.4 fallback.
def method_decorator(decorator):
"""
Convert... | [
"delinikos@gmail.com"
] | delinikos@gmail.com |
c9c135cf0a3a0b8ddcee81f4eeb9d57792d26c2c | ed962cd83f09d9f14f4528c3b2e6ae55d48de5b3 | /wagtail-repository/wagtail/users/views/groups.py | 62be676a6b86b67b63ce8e64b1da64ff6729ccbb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | TobiasSkovgaardJepsen/wagtail-on-heroku | 9eefc4346a88191b8a2f5c902db4b2645fdbad67 | 17e4720f86023225e0704890688998a80bb87a17 | refs/heads/master | 2022-12-19T03:54:51.766911 | 2018-01-20T14:41:33 | 2018-01-20T14:41:33 | 117,421,808 | 0 | 1 | BSD-3-Clause | 2022-12-07T23:51:05 | 2018-01-14T10:46:23 | Python | UTF-8 | Python | false | false | 4,371 | py | from django.contrib.auth.models import Group
from django.utils.translation import ugettext as _
from wagtail.admin.views import generic, mixins
from wagtail.admin.viewsets.model import ModelViewSet
from wagtail.core import hooks
from wagtail.users.forms import GroupForm, GroupPagePermissionFormSet
_permission_panel_c... | [
"tsj@aau114974.mynet"
] | tsj@aau114974.mynet |
27d9a636d65aa2b708d746af00eab828ee932030 | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/safezone/DistributedBoatAI.py | c0dc370b1d05d9f6530448e6665c8fdff80320e0 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 2,802 | py | from otp.ai.AIBase import *
from toontown.toonbase.ToontownGlobals import *
from direct.distributed.ClockDelta import *
from direct.distributed import DistributedObjectAI
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from direct.task import Task
class DistributedBoatAI(DistributedObjectAI.Distr... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
20a75376494cfe54ea1c8f6324894a4f3a10bab9 | 8e5bf30dbe6cd80699970fbd698544669e919a2a | /04-graphs/02-code/10-graph.py | e5eb6847d8e4643aa266bbea61da08ca878960e4 | [] | no_license | NiteshMistry/Complex-Data-Structures-Codecademy | b34f01e4338a0ea97497e13e43af61e6cd10ea30 | eb416bad43df4b280411bca4a7a5c9930fab708e | refs/heads/master | 2022-10-25T03:20:50.947788 | 2020-06-19T04:15:43 | 2020-06-19T04:15:43 | 271,118,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | class Graph:
def __init__(self, directed = False):
self.graph_dict = {}
self.directed = directed
def add_vertex(self, vertex):
self.graph_dict[vertex.value] = vertex
def add_edge(self, from_vertex, to_vertex, weight = 0):
self.graph_dict[from_vertex.value].add_edge(to_vertex.value, weight)
i... | [
"9368802+NiteshMistry@users.noreply.github.com"
] | 9368802+NiteshMistry@users.noreply.github.com |
56248eb284a2e5bab5d9175a82e60c9929d7ee80 | 086e9d171147bcd86e8ea7cb23878c449f74ca9c | /manage.py | f5c4d06ad2d110a2ed3dc82fdbbe11b1041ebd50 | [] | no_license | fazer1929/pollon1 | 8938a04b06f825fd990c1f55d667c32f9b616d03 | 2dd78d597545a51ec3e5518338c2cde1badf5808 | refs/heads/main | 2023-08-22T01:11:24.621238 | 2021-10-05T21:08:41 | 2021-10-05T21:08:41 | 322,634,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pollon.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"abhishekagrawal8888@gmail.com"
] | abhishekagrawal8888@gmail.com |
3b8144766a5b562d772bf048eb1c7031b0fb8e86 | 888e79392cb660be5799cc5bd25d76bcfa9e2e2c | /doctorus/doctorus/doctype/expediente_tribunales/expediente_tribunales.py | 841f4c3b5b169550e5c7dee8b2c9ed637c927339 | [
"MIT"
] | permissive | Nirchains/doctorus | 269eadee5754612c521d1c6193d5fe7bbfdb3b8a | 38d39270742dfdae6597a06713952df01a2c3e9d | refs/heads/master | 2020-03-17T07:09:30.046005 | 2019-05-08T06:51:50 | 2019-05-08T06:51:50 | 133,386,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, HISPALIS DIGITAL and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class ExpedienteTribunales(Document):
pass
| [
"nirchains@gmail.com"
] | nirchains@gmail.com |
933ea2e4f61b2c7ae601ce4fc07bb97bb27d5c0b | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /113/113.path-sum-ii.233032790.Accepted.leetcode.py | df56f69289190f5c66177c2d415324b9249f3cc3 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | class Solution(object):
def pathSum(self, root, sum):
res = []
if root is None:
return res
if sum == root.val and root.left is None and root.right is None:
return [[root.val]]
left_res = self.pathSum(root.left, sum - root.val)
right_res = self.pathS... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
f9bff339954c6e8f629a01902839553e891425c1 | fd62b9e15e0c09e15fae874fb63f24eb2f684292 | /python_deep_learning_icp3/venv/lib/python3.6/site-packages/oslo_cache/backends/mongo.py | 1feebb7368f5ab7d13046b76bd8913aa18b32d8c | [] | no_license | sivabuddi/Python_Assign | 524bc9f324c6dcd084e70b1e944dcbba4d42c113 | fe2bb18606e9c258f0c578530c71ddce5e7ae992 | refs/heads/master | 2022-10-27T11:26:32.944982 | 2019-10-11T20:26:30 | 2019-10-11T20:26:30 | 210,632,025 | 1 | 1 | null | 2022-10-15T23:40:43 | 2019-09-24T15:07:41 | Python | UTF-8 | Python | false | false | 24,213 | py | # Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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 applicabl... | [
"sivakumar.umkc.fall2019@gmail.com"
] | sivakumar.umkc.fall2019@gmail.com |
e6c303f4050179c3006c0cc3d9747b4b9eadc3df | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /5pBHzWb8Psot9EQNk_15.py | 25706849326742ef52c27acffbc8c46e415efb98 | [] | 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 | 835 | py | """
Create a function that takes a string `str` and performs simple encoding as
per the following method:
* Replace all single occurrence characters with `[`
* Replace all characters with **two or more** occurrences with `]`
Return the final string after modification.
### Examples
simple_encoder("Mubashi... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
644fb648005afe8073f6194bed066d48bad5d11a | 79bc9a420df5c706b2ae06f4b75bf2bd2ba9646e | /bin/historical/migrations/Split_uuid_from_moves_db.py | 1453f4f71ddb33e50ec74fd41f6f963cae1fb622 | [
"BSD-3-Clause"
] | permissive | Andrew-Tan/e-mission-server | 7022786a13b4be87be62cfc2cc6d82543d063e5d | 91d59bee86e63d803e401f10f4b6a2502effedda | refs/heads/master | 2021-01-16T18:25:17.860723 | 2017-11-21T19:24:40 | 2017-11-21T19:24:40 | 100,073,534 | 0 | 0 | BSD-3-Clause | 2018-05-05T18:26:36 | 2017-08-11T22:13:44 | Jupyter Notebook | UTF-8 | Python | false | false | 817 | py | from pymongo import MongoClient
from get_database import get_uuid_db, get_moves_db, get_profile_db
from datetime import datetime
for entry in get_moves_db().find():
print "%s -> %s" % (entry['user'], entry['uuid'])
userEmail = entry['user']
userUUID = entry['uuid']
userUUIDEntry = \
{
'user_email': u... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
b8930713e07807c2f1461204c71de02d63fa1c6f | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/notes_beta/azext_notes_beta/vendored_sdks/notes/operations/_user_onenote_parent_notebook_section_page_operations.py | 69d77de148774347d64b04e14f184961ee017978 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,201 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
3f2372a161c8153f9d875092ba1c0198b45499d6 | 94bfd592bcbe134657ce8b2ed9b3fba73b9cc12d | /tests/fakes.py | d3ffd4d63bb42d90d090c5db4acd72cb822b91fa | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | arniwesth/mango-explorer | fc53109023f5d8cf2b80faa3341b671851771ae4 | 8257902003fa2f72cc89a20d1cebaa0c8cc2ad68 | refs/heads/main | 2023-08-25T15:19:17.012249 | 2021-10-08T17:15:40 | 2021-10-08T17:15:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,926 | py | import construct
import datetime
import mango
import mango.marketmaking
import typing
from decimal import Decimal
from pyserum.market import Market as PySerumMarket
from pyserum.market.state import MarketState as PySerumMarketState
from solana.account import Account
from solana.publickey import PublicKey
from solana.r... | [
"geoff@knife.opgeek.lan"
] | geoff@knife.opgeek.lan |
52757dd992c1a2e7c3a38dc40797f31da42ded5d | 0c191796f2e9c990a4a09111e83a599fdf4e18bc | /backend/msm_dgdjh_67_dev_14484/settings.py | 1882cab73eeb82db26e8742f6c1ec090606fb487 | [] | no_license | crowdbotics-apps/msm-dgdjh-67-dev-14484 | 8acb64db26a3e90c9376eda3fc327dedcc14b4f0 | 9cfd0d88857b25b77c1e8b65a09e9e9ca5d34c60 | refs/heads/master | 2023-01-07T07:07:28.103066 | 2020-11-03T07:27:21 | 2020-11-03T07:27:21 | 309,603,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,116 | py | """
Django settings for msm_dgdjh_67_dev_14484 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
""... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a373129a9bd015a1206b661fec8ea34bb89f931d | 71f23e55754c28e2f44a19aea0849b35f20d76f4 | /ultimate_gallery/apps.py | aadc20d582c15d9af61a08a27766845ccf6e70fb | [] | no_license | Robert-Moringa/Ultimate_Gallery | d376b6c5c5e1beee8106a597a37d30c2dd7ada9f | c4032f97a1a1db657850f071cca07145ec55e9af | refs/heads/master | 2023-07-18T09:19:08.182369 | 2021-09-08T21:39:22 | 2021-09-08T21:39:22 | 403,489,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.apps import AppConfig
class UltimateGalleryConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'ultimate_gallery'
| [
"robert.maina@student.moringaschool.com"
] | robert.maina@student.moringaschool.com |
cb628b282a34b80121b820a04d5504f46fae7556 | bdf3c98e33c6bc9c8e0332043cc5a3a3f5e8ea42 | /build/openslam_gmapping/catkin_generated/pkg.develspace.context.pc.py | 87321ab604952d383819d1eb64d7e69d509fb38f | [] | no_license | jstestsuite/ros-test | c33e244794287e2665cace847a9faf1b596ddf92 | b0bb5b06c1c18b804c0f0a4e2deb4d88be894d1f | refs/heads/master | 2020-04-11T16:54:41.401198 | 2019-02-13T00:44:14 | 2019-02-13T00:44:14 | 161,938,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "openslam_gmapping"
PROJECT_SPACE_DIR ... | [
"jsteele171@gmail.com"
] | jsteele171@gmail.com |
340879cac7943179c6e3476a08177a0874a9ca90 | bebba3fb1dfc13a2220f06997c4bc8da42ef8e87 | /smashlib/ipy3x/nbconvert/preprocessors/clearoutput.py | c2692d860229b3421335fe09d6240e9b7fe9c301 | [
"MIT"
] | permissive | mattvonrocketstein/smash | b48b93c3419637f615c7ac3386b04ae756e1fadc | 98acdc27ab72ca80d9a7f63a54c0d52f126a8009 | refs/heads/master | 2021-01-18T23:23:59.340206 | 2016-07-14T01:28:17 | 2016-07-14T01:28:17 | 2,813,958 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | """Module containing a preprocessor that removes the outputs from code cells"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from .base import Preprocessor
class ClearOutputPreprocessor(Preprocessor):
"""
Removes the output from all code cells in a no... | [
"matthewvonrocketstein@gmail-dot-com"
] | matthewvonrocketstein@gmail-dot-com |
66337abc964d703fc8a29e47aa9c790c91a0cc07 | 201681cf1b52e46e01be621f1817058c9394590b | /tests/conftest.py | 88926bae3b067f0a58212ccd79e531b2362f8f35 | [
"MIT"
] | permissive | skirwan27/spring2019-group-project-team_plant | aad829534f771991af0efc43d66c1c4572f2e97c | f9e92f948f18741bd5446239ba946738516e5157 | refs/heads/master | 2020-05-23T06:08:36.444645 | 2019-05-14T17:02:53 | 2019-05-14T17:02:53 | 186,661,428 | 0 | 1 | MIT | 2019-05-14T16:35:00 | 2019-05-14T16:34:59 | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Dummy conftest.py for myproject.
If you don't know what this is for, just leave it empty.
Read more about conftest.py under:
https://pytest.org/latest/plugins.html
"""
# import pytest
| [
"marskar@gmail.com"
] | marskar@gmail.com |
be55ddbccf4598007a5cc60c2fcc9e77e7941e13 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4073/codes/1706_3052.py | 2b59799bf2a4cac0c4f06584d6afb95ba5ef1f70 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | a=float(input("Qual o consumo?"))
if (a>= 0 and a<= 10):
valor=(a*3)+15
print(round(valor,2))
elif (a>= 10 and a<= 15):
valor=(a*3.5)+20
print(round(valor,2))
elif (a>= 15 and a<= 20):
valor=(a*4)+25
print(round(valor,2))
else:
valor=(a*4.5)+30
print(round(valor,2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
5ff10ecc342a2cd957a83db2b3c628cc20ab333a | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20210201/get_application_gateway_backend_health_on_demand.py | 6e884d35c44ba350082400776c981f1e0376bb5c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,309 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
4723c89142eb70bfdad938496d40df3d0de5eee5 | 7be7190aeceef43841274518d260bcd92e04e5a7 | /Mahouo-Analytics/sever/run.py | a0375a077590fc6af08e9d4f2bb42f21d5a90c6b | [] | no_license | weivis/Mahouo | 078c440b41a686d355a49e3fc29175bc225dff2c | 81fd6919a884b97cb53ac3e97f1e48d78ddd4e63 | refs/heads/master | 2020-04-20T16:56:44.813853 | 2019-02-03T18:47:11 | 2019-02-03T18:47:11 | 168,974,099 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | __author__ = 'Ran'
#!bin/python3.6
from app import app, blueprint
if __name__ == '__main__':
app.run(host='127.0.0.1', port=8104, debug=True, threaded=True) | [
"yvban@outlook.com"
] | yvban@outlook.com |
98b5aa3a08014142db531510ea416f881b0734f9 | b83bd284e640e13a70cbf63a0848f4e4b0217e51 | /Part 3 - Classification/Section 14 - Logistic Regression/classification_template.py | 2a3680c5ad24cb7a51501cd8baf37c82d13f1826 | [] | no_license | DenisOliveira1/course_machine_learning_A_Z | 723c360cd23b6e2dec2a9025de0e45b4aa0b3e57 | eb15e1a70125def8b7107ed5710bcbb0510bbdc9 | refs/heads/master | 2023-04-13T02:45:56.951046 | 2021-04-11T01:12:14 | 2021-04-11T01:12:14 | 222,036,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,870 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
#entre [] se por o index das colunas que você quer, é um outro modo
dataset = pd.read_csv("Social_Network_Ads.csv")
X = dataset.iloc[:, [2,3]].values
Y = dataset.iloc[:, -1].values
"""
# Encoding categorical data
from sklea... | [
"denisb.oliveira@live.com"
] | denisb.oliveira@live.com |
cd83a95ae492d286d233cd11086b0f13745f7084 | 8145472d8090e28f47b869dd0bcd9e2882e68e98 | /studentpage/students/emailutils.py | 44e07e3e142b7445e7b423cecd9ba662de59e19c | [] | no_license | virginiah894/online_certificate_system | ef4434b40960b8d5e3fce6ca478d75374fa53eae | 1b48b7f5f0c8712a35f62e3bbc107d1081dc6dd8 | refs/heads/master | 2023-06-21T22:01:44.758191 | 2021-07-15T17:49:46 | 2021-07-15T17:49:46 | 385,518,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,499 | py | import smtplib
from datetime import datetime as dt
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from socket import gaierror
filename = "certificate.pdf"
def email_change(filename):
time_p = dt.now()
mon =... | [
"virgyperry@gmail.com"
] | virgyperry@gmail.com |
0afb79a9d8af954bdcd2943d7b1bffbb9ccc227c | e2c18476fa2dfc07df18a216c0dbd7eb9664906d | /semana3/listas/lista.py | ad7a5c1cafb2ed6aee59cf0e1e322fc2ef850c0c | [] | no_license | 31MP4CT/CHP | 5b69322db6afc6f73740d977f85c45cd67816599 | 4b8a86e5c4158d64b44d3a20236f2473a77f4727 | refs/heads/master | 2020-03-20T22:47:57.926688 | 2018-06-26T10:08:58 | 2018-06-26T10:08:58 | 137,815,901 | 0 | 0 | null | 2018-06-26T10:08:59 | 2018-06-18T23:09:03 | Python | UTF-8 | Python | false | false | 2,941 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
import libros
from libros.comic import *
######################
# Clase Lista #
######################
"""
Esta clase está creada con la intención de instanciar una lista global para almacenar libros y comics,
se monta aparte del main, para hacerla privada y así pode... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
552bdf3a7713145a16b912703f6f5e4b29524eeb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2400/60747/306599.py | 96a38b5a41dbb0cf2eae8c5ec0c81af27496da6b | [] | 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 | 507 | py | s=input()
if s=="3 4 -1 5 -1 -1 6 9 -1 -1 -1":
print("Case 1:")
print("4 17 6")
print()
elif s=="2 4 5 -1 -1 7 -1 -1 6 -1 -1":
print("Case 1:")
print("5 4 9 6")
print()
elif s=="5 7 -1 6 -1 -1 3 -1 -1":
print("Case 1:")
print("7 11 3")
print()
elif s=="2 4 5 -1 -1 7 -1 -1 6 3 -1 -1 ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b036cb6bb424fd0984cde14f0b01d8060e241f17 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FJy63LnHHPH9dkEbA_11.py | a1cf8b5e1f3fc0cbcf767bbbe3250cd05586b414 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
import math
from decimal import Decimal
def how_close_to_c(rapidity):
a = Decimal(1/math.cosh(2*(rapidity)))
return "{:.2e}".format(a)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3f5a6582af9651bff11dfcff69bd0ef67f7ec117 | 3a7d20020cac861524f12e138050e8030fe33e16 | /Stats/Commandes/Jeux.py | efd02c88386377088597d55b1f3e193445e48481 | [] | no_license | OlborZ2/OlborTrack-Bot | 8f4a256bd14971a0b55f408fc8af5c1d48d8fb41 | 4b312d802176d56022509f9e8ca5603d8ff60941 | refs/heads/main | 2023-07-19T02:47:26.683781 | 2021-08-19T09:46:00 | 2021-08-19T09:46:00 | 383,921,269 | 0 | 0 | null | 2021-07-07T20:48:45 | 2021-07-07T20:48:45 | null | UTF-8 | Python | false | false | 4,157 | py | from time import strftime
from Stats.SQL.ConnectSQL import connectSQL
from Core.Fonctions.GetPeriod import getAnnee, getMois
from Stats.Commandes.FirstAnnee import statsFirst
from Core.Fonctions.setMaxPage import setMax, setPage
from Stats.Embeds.Central import statsEmbed
from Core.Fonctions.AuteurIcon import auteur
fr... | [
"lucas.triozon@orange.fr"
] | lucas.triozon@orange.fr |
2a0c9ad242a8f7b9218e70e99f6fbff55bb191cc | 2f92274606b4a8f91bf11e6383197f77d92fbd5e | /anima/env/resolve.py | f6580945561ac1f0703807540ac420ecb177619f | [
"BSD-2-Clause"
] | permissive | tws0002/anima | 1db50532ab50dcc034db7300a3cd106b30bc8e00 | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | refs/heads/master | 2020-12-24T12:05:53.385210 | 2019-07-19T07:41:43 | 2019-07-19T07:41:43 | 73,074,603 | 0 | 0 | BSD-2-Clause | 2019-08-06T04:00:17 | 2016-11-07T12:06:41 | Python | UTF-8 | Python | false | false | 5,459 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2018, Anima Istanbul
#
# This module is part of anima-tools and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
import re
class Avid2Resolve(object):
"""Converts AVID edl files to Resolve also replaces render outputs
"""
s... | [
"eoyilmaz@gmail.com"
] | eoyilmaz@gmail.com |
c650f1abdd52ab07bc629707fab437734f5e2fb0 | 20d8a89124008c96fa59225926ce39f113522daa | /GenevaProduction/GEN/crabStep1.py | 43d0a538c7dfe33d3cf44a339e4dfa7aa1cc8b7a | [] | no_license | MiT-HEP/MCProduction | 113a132a2ff440e13225be518ff8d52b0136e1eb | df019d7a15717a9eafd9502f2a310023dcd584f5 | refs/heads/master | 2022-05-06T20:25:34.372363 | 2022-04-12T11:55:15 | 2022-04-12T11:55:15 | 37,586,559 | 5 | 7 | null | 2015-08-24T11:13:58 | 2015-06-17T09:45:12 | Python | UTF-8 | Python | false | false | 1,183 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'DY_mumu_13TEV_PDF4LHCNNLO100_Mll_50_150_as118_GEN'
config.General.workArea = 'crab_GEN'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.pluginName = 'PrivateMC'
c... | [
"andrea.marini@cern.ch"
] | andrea.marini@cern.ch |
4a59b6473c4543013e7fdcde26cf67abb693b051 | 5776d42c54b7841d79ba3741fae960ba853f99ea | /collective/bookableEvent/utils/indexers.py | cee70e431770ade352072ba3012f46f089a7ffaf | [] | no_license | intk/collective.bookableEvent | a3727502234a299f555676ecda35450a0146802a | bce9a7530098634a1af10dc0fa435031d007f40c | refs/heads/master | 2021-01-10T09:46:07.027633 | 2017-01-04T10:38:34 | 2017-01-04T10:38:34 | 53,043,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from plone.indexer.decorator import indexer
| [
"andreslb1@gmail.com"
] | andreslb1@gmail.com |
d2997efff013d2966757ed37892e3251a7d8f99a | 6847b3a4f6d385a6265987396ee2796d61592a52 | /lesson197.py | 46fa64cc22f3815e605d976a19605cf4e2b4b22a | [] | no_license | ipcoo43/reactone | 09f551f7efc3951956eac783854a85e09ffd137c | 6ba063692790022f45e64c4de4ee008fa20f89fb | refs/heads/master | 2020-05-18T11:30:02.825443 | 2019-06-10T13:25:56 | 2019-06-10T13:25:56 | 184,380,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # Bubble Sort
numbers = [7, 3, 2, 9, 4]
def bubbleSort(arr):
for i in range(0,len(arr)-1):
for j in range(i+1,len(arr)):
if arr[i] > arr[j]:
arr[i],arr[j] = arr[j],arr[i]
return arr
print(bubbleSort(numbers)) | [
"ipcoo43@gamil.com"
] | ipcoo43@gamil.com |
179be8271b478949b91dccee531778b4e7cab704 | 25279384025751b3b400aea006f164d66c167104 | /Python/python_study/lianxi/Python实战/Model.py | 71483ac57e2125249b4242722d06087c5a940c13 | [] | no_license | linruohan/my_study | 6fda0b49f4c671919ec7a7fc6ba596b49ec66e59 | 7666f93259495b6928751d50eb1bab114e118038 | refs/heads/master | 2020-03-28T18:26:47.776943 | 2018-09-17T05:52:17 | 2018-09-17T05:52:17 | 148,882,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py |
class Model(dict,metaclass=ModelMetaclass):
def __init__(self, **kw):
super(Model, self).__init__(**kw)
def __getattr__(self,key):
try:
return self[key]
except KeyError:
raise AttributeError(r'"Model" object has no attribute %s.' key)
def __setattr__(self,... | [
"mjt1220@126.com"
] | mjt1220@126.com |
c36cf24a3c0d46866f8c0abc92ea1d1595df5107 | 91d90f8e026ae8e6594db37fdff3cda9ca65a2dd | /scripts_local/charge_extractor.py | 0379ae1b1fccb05cd246bdd7a134bb5fd7bd2334 | [] | no_license | MTS-Strathclyde/python-mm-scripts | 4567bc943a990b0df162d9f8dbc003d8698d4219 | 0235479c2a9f4e91ff5ffeeacfc56d604b62b551 | refs/heads/master | 2020-03-25T23:39:50.438744 | 2018-08-27T22:08:51 | 2018-08-27T22:08:51 | 144,286,211 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Fri May 16 09:39:47 2014
@author: max
"""
import sys
def is_float(number):
try:
float(number)
return True
except ValueError:
return False
def extract_charges(name):
"""Extracts lowrin charges from GAMESS output file.
... | [
"mishin1991@gmail.com"
] | mishin1991@gmail.com |
5ee61eb7b9225c1e959bb0f463962c8cd99e8b2c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_years.py | 3d337384e830fa3dd0b96f02a908a45f623d1928 | [
"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 | 214 | py |
#calss header
class _YEARS():
def __init__(self,):
self.name = "YEARS"
self.definitions = year
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['year']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9c80b492fe56ba9ec23f670b9e6ceecb28006361 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/compute/v20190301/get_gallery_image_version.py | 04ce0d877a8d30dc20794552be781c5672fb39a3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,618 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
5b107680be46dcc1063ceba007e5b500267b0edd | e1720ff3000f7ac3419b2c8662be6ba3cb745bba | /registration/forms.py | 8bdd16d7a6b937f9a7120988cbd91ba0d4ce1b64 | [] | no_license | ArmanKamal/AdvanceBlog | b870bc684bfd0702ab9db3761a8d844ed1c76a60 | 4e55a8e70ec51ddbc8da9d496c34239113db1e8e | refs/heads/master | 2023-01-10T14:49:07.922807 | 2020-11-11T02:36:31 | 2020-11-11T02:36:31 | 309,736,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm,UserChangeForm
from django.contrib.auth.models import User
from blog.models import UserProfile
class LoginForm(forms.Form):
username = forms.CharField(widget=forms.TextInput,max_length=120)
password = forms.CharField(widget=forms.... | [
"armankamal2421@gmail.com"
] | armankamal2421@gmail.com |
6e2ffeedba014edc0bb5943f519c2de1820189c0 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy3053.py | 5f0e7a8c3330b4538f210d7d26eb741742c6392b | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,360 | py | # qubit number=4
# total number=46
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
06fcaaff47f33e90efb66acc1063de36ed9b7409 | 65bf0113da75390c4cf3960b6a409aca15569a06 | /accounts/tasks.py | 6e4f960aa7aea97b2695d36b66c330f54900e4d0 | [] | no_license | wenpengfan/opsadmin | e7701538265253653adb1c8ce490e0ce71d3b4f6 | 3d997259353dc2734ad153c137a91f3530e0a8ec | refs/heads/master | 2023-03-29T11:50:10.756596 | 2020-11-16T02:41:18 | 2020-11-16T02:41:18 | 313,171,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from celery.task import periodic_task
from accounts.models import DelegateList
from appconf.models import AppOwner
from datetime import datetime
@periodic_task(run_every=300)
def delegate_start():
delegate = DelegateList.objects.filter(delegate_status=0)
if del... | [
"you@example.com"
] | you@example.com |
4908ad2fd2ff13a43383b28ae6d3ed0f06c42d4e | c9b29b8e3ed7c9a6c6e42436022e127930dfede7 | /extract.py | 773cea20e2d5d2802b814c60927cbdc2002ffc46 | [] | no_license | linhanxiao/vqa.pytorch | c9fc1372ebdf6684aec0e92e734052defda22194 | a726a2c34a0919bfe83967d22d0b5211f1d78ec4 | refs/heads/master | 2021-07-14T10:17:01.065888 | 2017-10-16T22:10:25 | 2017-10-16T22:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,978 | py | import argparse
import os
import time
import h5py
import numpy
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
from torch.autograd import Variable
import torchvision.transforms as transforms
import torchvision.datasets as datasets
import vqa.models.convnets as convnet... | [
"remi.cadene@icloud.com"
] | remi.cadene@icloud.com |
0ba4e12ddebe3dd019e70ce31f18bd2c29cc0f5b | c9a6330e97a46424ec5c8d10707663fb789d173e | /2017年旧代码/day05/抓娃娃.py | 926929e1f4b0de7a686f73466fd302577c47c421 | [] | no_license | 1tianjing/python- | 6b166f4fb26c13bb021061103d8fcef1b75be7c7 | a193687717c5fd0ba47302ded01ef7ff72e126b9 | refs/heads/master | 2021-05-12T05:51:22.801791 | 2018-01-16T02:18:49 | 2018-01-16T02:18:49 | 117,205,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | for i in range(0,5):
num = int(input('请输入你本次抓娃娃需要多少秒(1~60秒)'))
if num > 30:
print('时间到了,机器自动抓给你了')
else:
print('你本次用了5d秒抓了以下'%num)
| [
"tianjing2023@aliyun.com"
] | tianjing2023@aliyun.com |
99ac910dc34acf15041c79ff1a77b91877172727 | 035730cf12c43f59b76d9809e444b9070c3e5732 | /BOJ_1759.py | 1bdb15f0b00d6f0474126210e1dcadfc39bc0c5c | [] | no_license | kimhaggie/Coding_practice | e18153838425874b80a683094369a6dfb8836c93 | a4f2732e5d7a63adae990226073333b88324765a | refs/heads/master | 2023-08-01T11:33:54.071564 | 2021-09-07T14:40:56 | 2021-09-07T14:40:56 | 310,264,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | #1759
import sys
def func(a,start,mask,m,L):
if m == 0:
tmp = []
for idx in range(len(mask)):
if not mask[idx]:
tmp.append(a[idx])
if len(tmp)==L:
vowel = 0
if 'a' in tmp:
vowel += 1
if 'e' in tmp:
... | [
"kimhaggie@gmail.com"
] | kimhaggie@gmail.com |
fb23a909861802e08a076b1e92cb9476419a5b84 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/codeInsight/mlcompletion/argumentFeaturesThirdArg.py | e07a7eb864f482bf38c8f930e3185b01011b3170 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 122 | py | def foo(param1, param2, param3, param4):
pass
a = 23
b = "asdsa"
c = {}
d = [1, 2]
foo(a, param2=b, <caret>, param4=d) | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
3ad78d4e26dc9071a4a57c2b8d067fb4a48ecbb5 | 6de40caa30577bdf7cc8d788781fd2622588cf1d | /w3/examples/sketch/shapes.py | d65c5daf41b60f9ed4c0f3160aaf7b21dbab278f | [] | no_license | momentum-cohort-2019-02/kb | ca42d4ff61a4cf08efb89bf0502788bd0eb7b648 | ad8318712349600f6ab13c2a0a92a65b3ae04677 | refs/heads/master | 2020-04-21T13:05:52.246012 | 2019-04-17T14:17:39 | 2019-04-17T14:17:42 | 169,587,008 | 4 | 13 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import math
from PIL import Image, ImageDraw
class Shape:
def __init__(self, origin):
print("Shape.__init__")
self.origin = origin
def get_area(self):
raise NotImplementedError
class Circle(Shape):
def __init__(self, center, radius):
print("Circle.__init__")
su... | [
"clinton@dreisbach.us"
] | clinton@dreisbach.us |
4b83f1fa49a1b76940ee7adff94e31eb50a7e8f0 | 26fd77235f9d5c42da58df3bb2a6460049b0ca05 | /shut down.py | 12b34443159fbc5db36fbdf1f14c70f05dfdcc66 | [] | no_license | SimonGideon/My-Projects-21-01 | 56812baea3998cfe8d2aa38b20180c089b1db805 | 69ccfd4bd147cff61735e3b9cf42205cb9bd196c | refs/heads/master | 2023-06-28T12:36:10.241823 | 2021-07-28T23:16:36 | 2021-07-28T23:16:36 | 368,654,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | import os
shutdown = input("Do you want to shut down?(yes(1) or NO(0):")
if shutdown == ('No','0'):
exit()
else:
os.system("shutdown/s/t i") | [
"simongideon918@gmail.com"
] | simongideon918@gmail.com |
177e0d85470b7db76258266cabd26bf2f5a7c904 | 9f6ea967d84c37d04543d72edabce4dea0517a4f | /all_scraper/Models/Processor/Keywords/First/Es.py | de53081adce46a7e299f12b1c59359f09bd2a289 | [] | no_license | GongSong/All_Scraper | 8fae34851b8c4b31ab1ae47f39d511a0869c59ef | f2bacc8416ed2e611e5e8515d34ec12fd5f10018 | refs/heads/master | 2020-07-22T08:46:32.347936 | 2017-08-03T02:17:01 | 2017-08-03T02:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,608 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'javen'
__mtime__ = '17-4-14'
# code is far away from bugs with the god animal protecting
I love animals. They taste delicious.
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
... | [
"javen.xi@atommatrix.com"
] | javen.xi@atommatrix.com |
326a66d7b767999953b21cfb6b35175ea810b098 | f9e51db3cc0f292a579fe847b0fb80b25697328b | /grpclib/server.py | 1c4fe9d6aa0436e85b4b5681dd8ea136307e8bd3 | [
"BSD-3-Clause"
] | permissive | ghjan/grpclib | 77b660402917a58a22cbebda5d08484775881835 | c80d3d7b4c8755b9b4dee4f9da5c190be71e582b | refs/heads/master | 2022-01-19T21:34:04.072821 | 2019-07-20T04:42:56 | 2019-07-20T04:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,917 | py | import abc
import socket
import logging
import asyncio
from types import TracebackType
from typing import TYPE_CHECKING, Optional, Collection, Generic, Type, cast
from typing import List, Tuple, Dict, Any, Callable, ContextManager, Set
import h2.config
import h2.exceptions
from multidict import MultiDict
from .util... | [
"vladimir@magamedov.com"
] | vladimir@magamedov.com |
f1a1c294ecb15d80b586c9b38e1de8f059678ec9 | a1ef9fd19153b2b403e82dedabfef661cdc3a505 | /galpyMWZfo.py | 090b8b403fcbe5c1b45fe66ac67698fc014b0bda | [] | no_license | pathakdhruv/GalDynPsrScript_py3 | c89b181f3c8db0ee12ec937797976f306637942f | 6154eaac5ae37cc1d3c252f3dc50339226614087 | refs/heads/master | 2020-03-17T16:41:29.756189 | 2018-10-14T09:47:36 | 2018-10-14T09:47:36 | 133,759,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import math
from galpy.potential import MWPotential2014
from galpy.util import bovy_conversion
from astropy import units
from galpy.potential import evaluatezforces
import parameters as par
from Excesspl import Rpkpcfunc
def MWZfo(bdeg,ldeg,dkpc):
b = bdeg*par.degtorad
l = ldeg*par.degtorad
Rskpc = par.R... | [
"pathakdhruv9786@gmail.com"
] | pathakdhruv9786@gmail.com |
3e648935af6d5f46b1e0e57a8ad474a5dce02400 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/skia/gyp/freetype.gypi | b95fac0d29562cdf7d64fba8bcb407151ef145b5 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 3,614 | gypi | # Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'sources': [
# base components (required)
'../third_party/externals/freetype/src/base/ftsystem.c',
'../third_party/externals/freetype/src/base/ftinit.c',
'../third_par... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
274aef3218d78cb687bbfaaf1f5f88d0eb49f5aa | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/IPython/utils/io.py | 3eaa6806d18e1f90579a5e407a420fd59e64f82f | [
"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,717 | py | # encoding: utf-8
"""
IO related utilities.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
from __future__ import absolute_import
import atexit
import os
import sys
import tempfile
import warnings
from warnings import wa... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
3facdd1eb1f76aa430cd0fdde11afebbd689b5d0 | 0d6a0b3e761a8d54e76c4e1ca2459c1f7920704e | /python/dazl/pretty/render_python.py | 1b5751a14cdfc05d21b5782062c38ddc77dbc742 | [
"Apache-2.0"
] | permissive | lucianojoublanc-da/dazl-client | a5ad82d20bdad14d25522193d3ffd59604cb439b | c4e2d7453f014142f90d6d1881da750b9bc3b832 | refs/heads/master | 2020-07-12T17:22:20.851671 | 2019-09-06T10:06:38 | 2019-09-06T10:06:38 | 204,872,189 | 0 | 0 | null | 2019-08-28T09:20:50 | 2019-08-28T07:20:50 | null | UTF-8 | Python | false | false | 14,936 | py | # Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
from io import StringIO
from typing import Mapping, Optional, Sequence, Union
from ._render_base import PrettyPrintBase, pretty_print_syntax
from .util import maybe_parentheses, inde... | [
"davin.tanabe@digitalasset.com"
] | davin.tanabe@digitalasset.com |
f8bfd5aad0e0191e034db3e5fa77f4146235263b | a32393a297b8650cce94675ce5d4cb118eea9bc5 | /srt/src/tests/shop/lib/sale.py | d8c00b86a02d19397fafd4c54814d08739584ed8 | [] | no_license | denskif/remonline | 195fbb4cc0db4efbfd0572f3ae8077275d7e7da3 | d3fa89eb7b5e4c43c933cce9e5d681d0acac0699 | refs/heads/master | 2021-07-22T21:33:04.131944 | 2017-11-02T16:05:12 | 2017-11-02T16:05:12 | 109,287,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | # ~*~ coding: utf-8 ~*~
from src.lib.wait import wait_for_selector
from src.lib.dom import set_value, find_element_by_selector
from src.scaffolds.dialog import confirm_delete, open_additional_menu
from src.scaffolds.grid import add_to_stack
from src.scaffolds.dropdown import choose_cashbox
from src.scaffolds.dialog i... | [
"bohdan.korniyenko@gmail.com"
] | bohdan.korniyenko@gmail.com |
88477baaee49bb29fe21ff4902fab04f9fca089b | 60a673fb57208d4304166682f8241aedd4b02c3d | /backend/villagebox_23347/settings.py | 9d7578582a4b702ffc759e3dc889c2915c5fff97 | [] | no_license | crowdbotics-apps/villagebox-23347 | ba1342d017cd4f1ab3ec82fde1c391223c77f15e | 5900f062a31d05f2bf92316aecd7190113062ff9 | refs/heads/master | 2023-01-30T12:05:03.106920 | 2020-12-13T17:57:54 | 2020-12-13T17:57:54 | 321,125,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,058 | py | """
Django settings for villagebox_23347 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b8858b4533ec062ab521804ab9c18e00f4376b99 | ee424e793c9052b09843dbed22967d036947b2a1 | /Gram/settings.py | fda8f330d666d71655711bcba36f0e73d00535ec | [
"MIT"
] | permissive | donkimani/The_Gram_Master | c4aae306d8ae8bc167458cd1236db4e836de8371 | 10dfd8756d11f9e34793428d75c1d3e19a1a2dc0 | refs/heads/master | 2022-10-05T03:05:21.281733 | 2019-10-16T09:45:18 | 2019-10-16T09:45:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,290 | py | """
Django settings for Gram 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/settings/
"""
import os
im... | [
"wambukeren@gmail.com"
] | wambukeren@gmail.com |
9c5d64f9cf499e0167e118057837923733d6e675 | d8574d8ca5c571fd7ed3b67dac00c55df2ac6580 | /data/kitchen/data/cucumberSalad.py | 439f3a9532de5c6f85ca0aad70d4d49310fc9ed9 | [] | no_license | h2r/slu_core | 19de87e55e84dd4dada65b4d7b65857bdae740e8 | e30c0245177e8481397fd4987422e3d35d79ec08 | refs/heads/master | 2021-07-09T18:19:33.424551 | 2020-07-06T18:49:18 | 2020-07-06T18:49:18 | 143,929,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject
recipeName = "Cucumber Slices with Dill"
recipeSource = "http://allrecipes.com/Recipe/Cucumber-Slices-With-Dill/Detail.aspx"
#replace None with Physical Objects
ingredientsList = [("4 large cucumbers, sliced", kitchenState.... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
8fbf76ce4eecfa4f783769cbfc6bea7e0cc42908 | 260c06f4427e3bc18cbe9af12eba908429aca695 | /imagepy/menus/Plugins/Macros/recorder_wgt.py | 49b0d4283d91c58df93288928afaa987e9e46be7 | [
"BSD-2-Clause"
] | permissive | bygreencn/imagepy | ed701673d157143589e0c80d48be6eff399ad652 | 08a1799c6716885b8288de1f65470f6c23d0013c | refs/heads/master | 2021-04-06T19:33:50.993280 | 2018-03-06T10:18:42 | 2018-03-06T10:18:42 | 124,770,353 | 1 | 0 | null | 2018-03-11T15:28:22 | 2018-03-11T15:28:22 | null | UTF-8 | Python | false | false | 4,973 | py | import wx, weakref
from imagepy.core.engine import Macros
import os.path as osp
class Plugin ( wx.Panel ):
title = 'Macros Recorder'
def __init__( self, parent ):
wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 500,300 ), style = wx.TAB_TRAVERSAL )
bSizer1 = wx.BoxSiz... | [
"imagepy@sina.com"
] | imagepy@sina.com |
7459e62c40ca8efb052a013a2d467a66313978f7 | acd9b802a1ce4fa73209705169c1e3a059e1cbee | /robclient/route.py | 3e6bc05ea7159c851085a42a44e1c30ae5b1798f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | scailfin/rob-client | db001492486a6a4fbfa9c22363a8e86dfc26bc7b | 3af9e3de99e70f1ff627db921431d26018268d78 | refs/heads/master | 2021-06-23T22:23:06.367838 | 2021-01-20T19:10:30 | 2021-01-20T19:10:30 | 191,959,186 | 0 | 0 | NOASSERTION | 2020-07-30T20:37:36 | 2019-06-14T14:43:17 | Python | UTF-8 | Python | false | false | 11,170 | py | # This file is part of the Reproducible Open Benchmarks for Data Analysis
# Platform (ROB).
#
# Copyright (C) [2019-2020] NYU.
#
# ROB is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
"""Factory for Urls to access and manipulate API res... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
c1ece691c46463082604bd4669fb60c857b1726c | 69f83bcff8a2bd9c8ef082a2141a39a5322c4b2a | /pyenv/env/lib/python2.7/site-packages/piccata/core.py | 5e5293c9c12df67bd3bf02fb8b42cadc71312378 | [] | no_license | md848-cornell/NRF-ROKIX-sensor-mesh | ab12f6572a992ed5c468eb08b8c4586b52b411b2 | b244207af0fb0fce6e2722c384d3c6c25d5ac025 | refs/heads/master | 2020-05-21T10:56:15.013174 | 2019-05-16T16:12:11 | 2019-05-16T16:12:11 | 186,021,295 | 0 | 1 | null | 2020-03-07T21:39:41 | 2019-05-10T16:35:25 | C | UTF-8 | Python | false | false | 25,629 | py | """
Copyright (c) 2012 Maciej Wasilak <http://sixpinetrees.blogspot.com/>
2017 Nordic Semiconductor ASA
CoAP protocol implementation.
"""
import datetime
import logging
import os
import random
import sys
from threading import Timer
from ipaddress import ip_address
from constants import *
... | [
"Mike DiDomenico"
] | Mike DiDomenico |
eb2adc1bc0d678736a3508691323022c9ada67a7 | 26e4bea46942b9afa5a00b9cde9a84f2cc58e3c9 | /pygame/thepythongamebook/World.py | 3bebc6cb5200e4778412912177ac5fa282614e90 | [] | no_license | MeetLuck/works | 46da692138cb9741a913d84eff6822f107510dc7 | ab61175bb7e2ed5c5113bf150e0541ae18eb04c4 | refs/heads/master | 2020-04-12T05:40:25.143075 | 2017-08-21T17:01:06 | 2017-08-21T17:01:06 | 62,373,576 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | from Entity5
| [
"withpig1994@hanmail.net"
] | withpig1994@hanmail.net |
a09b6e1c1be7e01e063b4d9c93520aadb3a73c49 | 9cad8a28c335808beb542d6aece436a47d26dd56 | /wc_sim/future_multialgorithm_simulation.py | da85a81f1d1791d949bd86fea5e1b39183d3d850 | [
"MIT"
] | permissive | KarrLab/wc_sim | 9303b17edf1927962303948a57c557e2a9bbffb0 | 5b0ee03c3d19193fa67a3797d4258b753e6bc576 | refs/heads/master | 2021-07-12T03:01:56.832821 | 2021-06-02T22:29:05 | 2021-06-02T22:29:05 | 63,003,095 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,607 | py | """ Future improvements to wc_sim/multialgorithm_simulation.py; useful later
:Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu>
:Date: 2019-10-02
:Copyright: 2016-2019, Karr Lab
:License: MIT
"""
DEFAULT_VALUES = dict( # pragma: no cover
shared_species_store='SHARED_SPECIES_STORE'
)
# TODO(Arthur): not curren... | [
"artgoldberg@gmail.com"
] | artgoldberg@gmail.com |
767c8557d492f4b98ff2eaacbe9a890c747dbada | 0fccc31958f2604875d691344aa2b85ad921e2a0 | /util/generate_data.py | e8b53958206148693dfac3e854d7befb7863e00c | [] | no_license | invoker4zoo/coda | 7ccc31d1db81dde871f3936a5c40eb274d1f7039 | de3c2ff27584b124f7aa6b5ffee3798298960bcb | refs/heads/master | 2021-01-24T02:11:33.631606 | 2018-03-13T09:58:42 | 2018-03-13T09:58:42 | 122,838,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,588 | py | # coding=utf-8
"""
@ license: Apache Licence
@ github: invoker4zoo
@ author: invoker/cc
@ wechat: whatshowlove
@ software: PyCharm
@ file: generate_data
@ time: 18-3-1
"""
import json
import random
seed_list = [[0.4,0.5],[0.2,0.3],[0.15,0.18],[0.13,0.15],[0.15,0.18],[0.18,0.2],[0.2,0.3],[0.5,0.7],[0.8,0.9],[0.8,0.9],[0... | [
"412214410@qq.com"
] | 412214410@qq.com |
e69125aa577a1987c6c9bde117c812cbe9c25e37 | 2b91f1a6ef725bfda2629a248d4282cbb7bf5bbe | /tests/test_one_to_many_relations.py | feb81e15a893e81275d6aa3e73ae1ec207bb3044 | [] | no_license | bakharzy/sqlalchemy-continuum | 2251ecd2795f14854b88ec6a56d5a135f4447e45 | c8674c529c92869cd9d4c551af6635cd48be323a | refs/heads/master | 2021-01-18T02:43:48.386471 | 2014-02-27T19:41:16 | 2014-02-27T19:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | from six import PY3
from tests import TestCase, create_test_cases
class OneToManyRelationshipsTestCase(TestCase):
def test_single_insert(self):
article = self.Article()
article.name = u'Some article'
article.content = u'Some content'
article.tags.append(self.Tag(name=u'some tag'))
... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
2ec640090f0b62919ba9e2a3df2efbb613429472 | 797b7f014176f76e53a5a73e3551e845508ed1fa | /fit_1D_mcmc/fit_1D_spectrum.py | 6cd5d82a54cadb4cea31942991c08728f1cbf2b5 | [
"MIT"
] | permissive | Celadus1/PythonFitting | dd187c28a3519fc92761b181aa5394bebac4e81a | d3a245e7dd6e05420ab82381dda71ac3c0a8c057 | refs/heads/master | 2020-03-26T07:41:42.741534 | 2018-01-31T23:15:39 | 2018-01-31T23:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,440 | py | #!/usr/bin/env python
#=============================================================================#
# #
# NAME: mk_line_mcmc.py #
# ... | [
"cormac.r.purcell@gmail.com"
] | cormac.r.purcell@gmail.com |
9e8f58173057426c8bbda25fe9cde0d2055474a2 | 5b95f379a83f413e1cbc5b412d4e78d4cc0d0608 | /argocd_client/models/v1alpha1_application_source_jsonnet.py | 31dfecbc871609f3fa6a8803671e77e1cc526ddc | [] | no_license | zhoushuke/argocd-client | ff43f2c4fbe5e231ad7ef8f5c5a2454ed85911b2 | a6c4ff268a63ee6715f9f837b9225b798aa6bde2 | refs/heads/master | 2022-12-27T15:19:24.263169 | 2020-09-24T16:08:53 | 2020-09-24T16:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,891 | py | # coding: utf-8
"""
Consolidate Services
Description of all APIs # noqa: E501
The version of the OpenAPI document: version not set
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from argocd_client.configuration import Configuration
class V1alp... | [
"ribeiro.rodrigo1989@gmail.com"
] | ribeiro.rodrigo1989@gmail.com |
b6eae68c9567a3ea9c32f2c6f489e0651e3f824c | ba4836c5a84acfa18c7ad075fdc259c432baaaf5 | /customoth/models.py | 01b9cfe35bb9036d35a0253f9cb88d531d8b43e6 | [] | no_license | vishtdeepak/RestApi | b8f08c602b00d10c69215e6b6a516a8f37d40533 | e2b1d8afaa2e66dab8ddfa9b21911c8aa7ffd395 | refs/heads/master | 2023-04-20T22:54:59.002799 | 2021-05-16T12:06:30 | 2021-05-16T12:06:30 | 367,865,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
class UserManager(BaseUserManager):
def create_user(self, email ,password=None):
if not email:
raise ValueError("User must have an email address")
user = self.model(email=self.normali... | [
"you@example.com"
] | you@example.com |
3df0e29300a08b7159f8ed8f0303f288cdb1ef28 | a605685fe22d248d8dc819b350de1b2c2c389ad4 | /Conditions and Loops/printT.py | 3bd423aa2341e832538ed750a54a15ae6dd397ee | [] | no_license | nishantchaudhary12/w3resource_solutions_python | 3b795ff5fe0bca8b78d1051e5055d6cfce4ee603 | 6f5b54b065f185f262be5ec37f258d5e5d6a0efd | refs/heads/master | 2020-04-28T08:32:30.080815 | 2019-09-13T04:24:23 | 2019-09-13T04:24:23 | 175,131,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #Write a Python program to print alphabet pattern 'T'.
result_str = ''
for row in range(7):
for column in range(7):
if (column == 3 or (row == 0 and column > 0 and column <6)):
result_str = result_str + '*'
else:
result_str = result_str + " "
result_str = result_str + '... | [
"chaudharynishant025@gmail.com"
] | chaudharynishant025@gmail.com |
5ccb0ab18ab849518ca829cef41e9c7febf4cef2 | 81e6b06b63ab06bcef6a86a91f17aa4a91ceac0a | /capture/noworkflow/now/utils/data.py | e97ffafc7772fb90ebd5ba70ad46de9670147ea3 | [
"MIT"
] | permissive | gems-uff/noworkflow | 2abb27fb34d8634f79e025bab8b03ff4cc915111 | 32943ecbed699e9d4967ed17ff066ba005a7c24b | refs/heads/master | 2023-08-09T05:55:11.292961 | 2023-07-20T11:02:59 | 2023-07-20T11:02:59 | 12,629,378 | 119 | 34 | MIT | 2023-07-20T11:03:00 | 2013-09-05T21:28:10 | Jupyter Notebook | UTF-8 | Python | false | false | 2,184 | py | # Copyright (c) 2016 Universidade Federal Fluminense (UFF)
# Copyright (c) 2016 Polytechnic Institute of New York University.
# This file is part of noWorkflow.
# Please, consult the license terms in the LICENSE file.
"""Define data structures and data access functions"""
from __future__ import (absolute_import, print_... | [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
3b030fa1b36a4d16cb679aa079d676d15368075e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3828.py | bedebce300d6bd954098eea0ad82bdb725443fa8 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | #!/usr/bin/python
import sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
print ' Input File',sys.argv[1]
def writetofile(line):
filename="resA"
fi = open(filename, "a")
fi.write(line) # Write a string to a file
fi.close()
#open file
f = open("A-sma... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
76a4f2e46afdeabbfd54422ec192666a64c23ccb | e38a5777d417d0b4f57abc0877d2fc1be80e5959 | /blog/views.py | d95700e36f64a2d5fa2cd16cc111f74fbbeb9155 | [] | no_license | ejlnex5/portfolio-project | c8c993554fc55eac11df45d0a5ed1bc6296dd39e | 9ec7f2d003ff941462e106b63b6662264d8daba8 | refs/heads/master | 2023-04-27T09:47:05.850787 | 2019-09-06T03:35:47 | 2019-09-06T03:35:47 | 191,294,796 | 0 | 0 | null | 2023-04-21T20:32:51 | 2019-06-11T04:38:35 | Python | UTF-8 | Python | false | false | 375 | py | from django.shortcuts import render, get_object_or_404
from .models import Blog
# Create your views here.
def allblogs(request):
blogs = Blog.objects
return render(request, 'blog/allblogs.html', {'blogs': blogs})
def detail(request, blog_id):
blogdetail = get_object_or_404(Blog, pk=blog_id)
return re... | [
"you@example.com"
] | you@example.com |
930077d53c52f1ecf2fd32da94514bb45496281d | bc441bb06b8948288f110af63feda4e798f30225 | /ops_automation_sdk/model/state_workflow/stateWorkflow_pb2.py | 45ffe39bfb2a236bdbae3df401b5d8f18b8475cf | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 14,078 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stateWorkflow.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protob... | [
"service@easyops.cn"
] | service@easyops.cn |
2ae92dcbed4a7f4790d45e6d509ec54d7705c6cb | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/dataprotection/azext_dataprotection/aaz/latest/dataprotection/backup_instance/_create.py | 5eec77400a9bc6e4ac40508aad22d6579dea866b | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 27,174 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ff2e9bd5d3c172dbfe6706153f3168e0a84e9e75 | 8ee8b9c3385c4befc70f939cbeab1be0c3b40973 | /swoosh/views.py | b4796078affd59eccf0fdb8ad46abe006a3ccc7a | [] | no_license | laveesingh/AnotherSolution | ec86c8fbe1692f683d72e2447d5aeedfe971057f | 354308c0232d3abb16313f77bb51977c3875f9c6 | refs/heads/master | 2021-01-11T16:36:13.922168 | 2017-06-28T07:02:35 | 2017-06-28T07:02:35 | 80,120,588 | 1 | 1 | null | 2017-06-14T08:32:31 | 2017-01-26T14:17:19 | Python | UTF-8 | Python | false | false | 1,087 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.http import JsonResponse
from django.http import HttpResponseRedirect
from .forms import NameForm
from .generate_report import report
def index(request):
return render(request, 'swoosh/index.html')
json_data = None
def get_name... | [
"laveechaudharytheone@gmail.com"
] | laveechaudharytheone@gmail.com |
9ae3a07519605f7a09116ef6635ec8bdba5aa493 | 6443a587e16658a58b884a2e5c6dbbab1be50674 | /Leetcode/Remove Duplicates from Sorted Array.py | 4f0e470a7088d65e512ef4237b8c26e832cc3a6d | [] | no_license | xiaochenchen-PITT/CC150_Python | a6cbe213946851639a827068961934920b6c3e57 | e96394265d8a41a1b4558d5d2b34aa34af99662f | refs/heads/master | 2020-12-24T17:18:14.606804 | 2014-11-08T21:48:20 | 2014-11-08T21:48:20 | 25,654,100 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | class Solution:
# @param a list of integers
# @return an integer
def removeDuplicates(self, A):
i = 0
while i < len(A)-1:
if A[i] == A[i+1]:
A.pop(i)
continue
i += 1
return len(A)
def removeDuplicates2(self, A):
# i... | [
"cxc0520@hotmail.com"
] | cxc0520@hotmail.com |
6f7e2320b4f8ce58f9cc116c0cec4e13e923f0b9 | 83e18f5d4fcd7084defb32981337a8f9b646c4c7 | /python/1584.min-cost-to-connect-all-points.py | 080cd16cd3b943b5b6196ea09eb4fd0b57e7da0d | [
"MIT"
] | permissive | Zhenye-Na/leetcode | 709037a318e1be7e6ab92751f8695d888900591a | 18d91a6ba813f91531b04632563212dfde2cceb9 | refs/heads/master | 2023-04-10T07:06:06.502224 | 2023-04-01T00:18:44 | 2023-04-01T00:18:44 | 145,656,854 | 19 | 9 | MIT | 2022-05-16T03:14:02 | 2018-08-22T04:39:25 | Python | UTF-8 | Python | false | false | 2,061 | py | #
# @lc app=leetcode id=1584 lang=python3
#
# [1584] Min Cost to Connect All Points
#
# https://leetcode.com/problems/min-cost-to-connect-all-points/description/
#
# algorithms
# Medium (56.49%)
# Likes: 1548
# Dislikes: 51
# Total Accepted: 64.2K
# Total Submissions: 103.5K
# Testcase Example: '[[0,0],[2,2],[3,... | [
"32248549+Zhenye-Na@users.noreply.github.com"
] | 32248549+Zhenye-Na@users.noreply.github.com |
eaae86c9f72108d6984a4da57f2b409b13f698e3 | 08e052c0c2ee4ad0cd4980fbc8a692c407118659 | /Ex. do Paca/Aula 13/P_13.4.py | 6bf40e3a5db0be56dda1060da61fa8b845179bb4 | [] | no_license | miltonleal/MAC0110_Introduction_Computer_Science_IME_USP | 6fad182f7fbb3e83403080800074bf57456cb0b5 | b47936ce66e715dba79dff44779a750d795192a0 | refs/heads/master | 2023-03-04T11:06:48.092980 | 2021-02-17T14:47:46 | 2021-02-17T14:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Construa uma tabela para x = 0, 0.01, 0.02, ..., 0,10 com o valor de x1, x2, ..., x10.
import math
print ("Valores de X Valores de X elevado às potências de 1 a 10")
print ()
def main ():
for i in range (0,11):
i_aux = i/100
for j in range (0,11):
k= math.pow(i_aux, j)
... | [
"milton.leal@usp.br"
] | milton.leal@usp.br |
8ab0130726d878e33a1b770d8ff6a80d14ffc8de | 39ea026c441a05b8328afc3d5928f8d2ddb43a58 | /AutomateTheBoringStuff/FlowControl/elif.py | d32dac7d114cdfae694464f40f70e4962585b281 | [] | no_license | kamit17/Python | 576931b9152b434d8ca62abfea719b748d1ebef0 | 840963648dd22189d5ee7694789b2315901e4aed | refs/heads/master | 2022-06-19T21:01:13.881545 | 2022-05-26T14:40:53 | 2022-05-26T14:40:53 | 116,746,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | name = 'Bob'
age = 3000
if name == 'Alice':
print('Hi Alice')
elif age < 12:
print('You are not Alice')
elif age > 200:
print('You are not Alice')
| [
"kamit17@outlook.com"
] | kamit17@outlook.com |
8c8096501153a437142846815c6e6b482434f216 | 97c3ddb6d5647edd4233279cdd1b30bb7df27985 | /codecademy/car.py | 91e414a46709d0eff6c0691e7a3dfa6dad6241ca | [
"Unlicense"
] | permissive | kotalbert/learnpython | dfaf2e7e6b78570eddb60ea3f79fb8552a3f27ac | ff8ec96db1951d99797205d0bd491e542152a36f | refs/heads/master | 2021-05-29T17:44:03.891441 | 2015-04-21T19:11:48 | 2015-04-21T19:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from pyexpat import model
from msilib.schema import Condition
class Car(object):
condition = "new"
def __init__(self, model, color, mpg):
self.model = model
self.color = color
self.mpg = mpg
def display_car(self):
return "This is a %s %s with %g MPG." %(self.color,self.model... | [
"pawel@daniluk.waw.pl"
] | pawel@daniluk.waw.pl |
71a29dbcdd934420039a8457a0de5bba52550bad | b59e093876a78054bf58ae16fa245bace5d924a2 | /diStringMatch.py | 77a89f11fcab5fc0ff4e8e5dcd38dfe5e46b58d1 | [] | no_license | NeilWangziyu/Leetcode_py | 539551585413e1eebd6e6175ba3105c6bc17e943 | 4105e18050b15fc0409c75353ad31be17187dd34 | refs/heads/master | 2020-04-08T03:50:05.904466 | 2019-10-15T07:13:49 | 2019-10-15T07:13:49 | 158,991,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | class Solution:
def diStringMatch(self, S: str):
if not S:
return ""
tem = [0]
for each in S:
if each == 'I':
tem += [tem[-1] + 1]
else:
tem += [tem[-1] - 1]
print(tem)
res = [-1 for _ in range(len(S)+1)]
... | [
"noreply@github.com"
] | NeilWangziyu.noreply@github.com |
ade7f3caa3404f61153d2c156b60ad4bb37dcc72 | fce4071ba14d1c82763aa5cfd74025b17ad603f8 | /backend/users/migrations/0002_auto_20201002_0219.py | 8ca9680e396f88a614747665effcc7f07e1fb8c5 | [] | no_license | crowdbotics-apps/nugs-china-20962 | 7174929d16bb4d44d10aebfd4962aca5abdea515 | 0fb49bedc3e205406872187b55ff1dade21f8941 | refs/heads/master | 2022-12-25T10:02:36.754763 | 2020-10-02T02:36:09 | 2020-10-02T02:36:09 | 300,476,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Generated by Django 2.2.16 on 2020-10-02 02:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("course", "0001_initial"),
("users", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="user",
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
441c0c8a7d331ced8245de865bc89c049e5e7622 | 367d2670c75d385d122bca60b9f550ca5b3888c1 | /gem5/env/lib/python3.6/site-packages/gem5art/tasks/celery.py | 129c401f11040e9cf7b822a26d79583e3d5fdb7a | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | Anish-Saxena/aqua_rowhammer_mitigation | 4f060037d50fb17707338a6edcaa0ac33c39d559 | 3fef5b6aa80c006a4bd6ed4bedd726016142a81c | refs/heads/main | 2023-04-13T05:35:20.872581 | 2023-01-05T21:10:39 | 2023-01-05T21:10:39 | 519,395,072 | 4 | 3 | Unlicense | 2023-01-05T21:10:40 | 2022-07-30T02:03:02 | C++ | UTF-8 | Python | false | false | 1,947 | py | # Copyright (c) 2019 The Regents of the University of California
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this lis... | [
"asaxena317@krishna-srv4.ece.gatech.edu"
] | asaxena317@krishna-srv4.ece.gatech.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.