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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0824054c10489720b958cd6a83b6a2955e54eb35 | 55c64c7a78c5f78f35f84ae1fce60d387ba11040 | /bc4py/user/network/directcmd.py | 8ce37119ab2d25ebe8b5068e3da62ccdd5e4e8ee | [
"MIT"
] | permissive | kmn/bc4py | df580de46456fed860e7fc0a812f5b46e04483c3 | 8f9ee09ed1325faad8c361a9b6c1b5abbc93cbc1 | refs/heads/master | 2020-04-13T06:04:32.273534 | 2018-12-18T02:48:41 | 2018-12-18T02:48:41 | 163,010,903 | 0 | 0 | null | 2018-12-24T17:16:21 | 2018-12-24T17:16:21 | null | UTF-8 | Python | false | false | 4,166 | py | from bc4py.config import V, P, BlockChainError
from bc4py.database.builder import builder, tx_builder
from binascii import hexlify
def _best_info():
if builder.best_block:
txs = [{'tx': tx.b, 'sign': tx.signature} for tx in builder.best_block.txs]
return {
'hash': builder.best_block.ha... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
190f8ed9909aa7c8f08ec9993a0f3622d9e7b015 | 864285315c3a154639355f14ab1ff14633576405 | /mapclientplugins/segmentationstep/widgets/zincwidget.py | 7d96aafc86fc5e619fd5910021308e331f525cc0 | [] | no_license | hsorby/segmentationstep | 774dc537967c9643bd0094dc4e64eefa472588b0 | 321505374f9434ac0ae832b0b00398c2d4ac1fbe | refs/heads/main | 2021-09-28T09:06:07.197158 | 2015-08-14T07:59:55 | 2015-08-14T07:59:55 | 21,375,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,529 | py | '''
MAP Client, a program to generate detailed musculoskeletal models for OpenSim.
Copyright (C) 2012 University of Auckland
This file is part of MAP Client. (http://launchpad.net/mapclient)
MAP Client is free software: you can redistribute it and/or modify
it under the terms of the GNU General Publi... | [
"h.sorby@auckland.ac.nz"
] | h.sorby@auckland.ac.nz |
b338487eb46ba9e4138d46e449fa38c61e9cb9e2 | 7c16a9f999f966060c064ae5bd4bddaf8f4e1dd0 | /jumpcloud_2.py | adf2ab5b1f6a855f030f62aa839d8daae41c6fe1 | [] | no_license | sbd2309/Adv.Python | fd5ed698b14c75484903006da7753a155cf11b47 | f7ef906cd78114643ffaaaaca6d4cb0ccfb34f62 | refs/heads/master | 2021-10-25T01:48:29.420102 | 2021-10-17T06:20:11 | 2021-10-17T06:20:11 | 232,631,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | def jumplcloud2(l, y):
energy = 100
for i in range(0, len(l), y):
if l[i] == 1:
energy -= 3
print(f"Value of Energy is {energy}")
else:
energy -= 1
print(f"Value of Energy is {energy}")
print(energy)
x, y = [int(i) for i in input().strip().sp... | [
"noreply@github.com"
] | sbd2309.noreply@github.com |
36a8545732be3dbfeccb902ad7b7dbdc003cf1d3 | cfeb96d00a07cf3a5743a44fcef546aceeae3d3a | /398-RandomPickIndex.py | ceebc631cc3da2f6affacd9c3687f0258e04e6c3 | [] | no_license | minseoch/algorithm | d5218b6187129e68aa355ce6cc89a3496e0f654c | 4c0cfe857f5d78a44c1a3bfb2571d72da4911d97 | refs/heads/master | 2023-03-04T02:10:02.344708 | 2021-01-30T04:44:28 | 2021-01-30T04:44:28 | 296,403,602 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py |
# 398. Random Pick Index
# https://www.youtube.com/watch?v=A1iwzSew5QY
# Reservoir Sampling
# https://leetcode.com/problems/random-pick-index/discuss/88072/Simple-Reservoir-Sampling-solution
import random
class Solution2:
def __init__(self, nums):
self.nums = nums
print(f"self.nums={self.nums}")
... | [
"minseo@Minseos-iMac.local"
] | minseo@Minseos-iMac.local |
a705e2b2103b4db7529e0e38bf3f81a06173cd97 | c007dd8ff275b5fc07fba3f0e56b1fde9b9e82df | /blog-api/devBlog/profiles/serializers.py | 4b4e122c4b18ef6b75d95017c1fc1370e369fbe6 | [] | no_license | ahrav/Edumacation | c7a074f9ebecfcac0b07977d388b3064c565c669 | 7481991128afccb56e409f14c93df175926433c7 | refs/heads/master | 2022-12-03T21:09:00.429047 | 2019-07-16T13:06:15 | 2019-07-16T13:06:15 | 192,711,106 | 0 | 0 | null | 2022-11-22T04:08:32 | 2019-06-19T10:29:47 | Python | UTF-8 | Python | false | false | 1,624 | py | from rest_framework import serializers
from .models import Profile
class ProfileSerializer(serializers.ModelSerializer):
"""Serializer for the Profile model"""
username = serializers.CharField(source="user.username")
bio = serializers.CharField(allow_blank=True, required=False)
image = serializers.C... | [
"ahravdutta02@gmail.com"
] | ahravdutta02@gmail.com |
42421fbcd066dedd967b267581e9fc3cb7f21b0c | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529110724.py | 8d62cf1e4b76000d7a91951d0cd20edcc8bc1e35 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,073 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
f7ab3d6f2c0582c21abcd03f175ce0339fc96614 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetCode/908 Smallest Range I.py | b5446b4da05d11b71c1a819ea670f40b16bc8e3b | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 778 | py | #!/usr/bin/python3
"""
Given an array A of integers, for each integer A[i] we may choose any x with
-K <= x <= K, and add x to A[i].
After this process, we have some array B.
Return the smallest possible difference between the maximum value of B and the
minimum value of B.
Example 1:
Input: A = [1], K = 0
Output: 0... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
4c0409ee4203d18f7ab02b3af93a669ba14a6a11 | 14be3567f1e95306e0f617bfa84f8ce697807d7f | /pyconsg2/proposals_pyconsg/forms.py | 94fec53ef99bb49da3837acd2feaa7439158a73b | [] | no_license | pythonsingapore/pyconsg2 | 68b5a48504e4e63b8d27409d3d41d8f60d081605 | b6fd05de9a66af5636f09ea614ced26080e818db | refs/heads/master | 2021-01-21T04:32:39.040738 | 2018-01-28T04:53:27 | 2018-01-28T04:53:27 | 13,821,910 | 3 | 2 | null | 2014-06-02T00:39:09 | 2013-10-24T03:47:55 | CSS | UTF-8 | Python | false | false | 1,461 | py | from django import forms
from django.utils.translation import ugettext_lazy as _
from markitup.widgets import MarkItUpWidget
from . import models
class ProposalForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(ProposalForm, self).__init__(*args, **kwargs)
self.fields['additional... | [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
c3dadcc8f435c8d2e4399efd3ebdc5b467bc6ff0 | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /array/1450.number_of_students_doing_homework_at_a_given_time.py | f8a9442f6fc5d382edc8af3e7ded12dbf349f884 | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | """
Given two integer arrays startTime and endTime and given an integer queryTime.
The ith student started doing their homework at the time startTime[i] and finished it at time endTime[i].
Return the number of students doing their homework at time queryTime. More formally, return the number of students where queryTime ... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
61a8aaaae01e28afb95f37a35792efb7f57f3522 | 036c51c1a159e686eff1811288ec8679aae78d3b | /roscam/shared/vision_api.py | 21d9e48ea14869ac13ad00cd7498fa808711f8ac | [] | no_license | lwneal/ros-fun | 6419bf1d4c4c06b72f350917332928886ce934c8 | 21aea84fa9b1ab36581e61b01c7f78d1aef9d2af | refs/heads/master | 2021-05-03T20:14:54.548139 | 2017-03-05T20:45:51 | 2017-03-05T20:45:51 | 67,166,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import sys
import zlib
import os
import pickle
import math
import sys
import struct
import socket
from StringIO import StringIO
import capnp
import numpy as np
from PIL import Image
from shared import util
from frametalk_capnp import FrameMsg, VisionRequestType
DEFAULT_ADDR = ('localhost', 1237)
def vision_reques... | [
"nealla@lwneal.com"
] | nealla@lwneal.com |
c6ca25b6544c9beaa826084f0af3f2b3aeba74d5 | ad715f9713dc5c6c570a5ac51a18b11932edf548 | /tensorflow/lite/testing/op_tests/reshape.py | 35107c5ef57bf589b2f0fc302b8773d3f8c3da99 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | rockzhuang/tensorflow | f1f31bc8edfa402b748c500efb97473c001bac95 | cb40c060b36c6a75edfefbc4e5fc7ee720273e13 | refs/heads/master | 2022-11-08T20:41:36.735747 | 2022-10-21T01:45:52 | 2022-10-21T01:45:52 | 161,580,587 | 27 | 11 | Apache-2.0 | 2019-01-23T11:00:44 | 2018-12-13T03:47:28 | C++ | UTF-8 | Python | false | false | 3,457 | py | # Copyright 2019 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 |
efe64bbb6a14e2a52f1a22d1d0c78c02d8fb58bf | f52566c8cdfc3d472c7f585c72417c9a9dd5edc5 | /Python/pythonProjects/progress_plot.py | e3f87450612ed50e53252656f6764835827651bd | [] | no_license | ccc013/CodingPractise | ab16799712e3ed3952d0eaaed6e3143c8f48ea52 | bf94e9c10a3ce1f909a29c5a75bc219f6c5bae10 | refs/heads/master | 2021-01-10T20:31:47.198146 | 2019-05-08T14:28:33 | 2019-05-08T14:28:33 | 40,797,904 | 13 | 15 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py |
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
import math
import pylab
import sys
import argparse
import re
from pylab import figure, show, legend, ylabel
from mpl_toolkits.axes_grid1 import host_subplot
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='makes a pl... | [
"429546420@qq.com"
] | 429546420@qq.com |
18ea951b3d4416c4b03e25f3cb50f91d33f44a00 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/hmldhr001/question3.py | f7ae261f95f9dadb0d44311b65280007da89e9ff | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | m=input("Enter a message:\n")
if m=="HELLO WORLD":
print("Encrypted message:")
print("HELLO WORLD")
elif m=="the quick brown fox jumps over the lazy dog.":
print("Encrypted message:")
print("uif rvjdl cspxo gpy kvnqt pwfs uif mbaz eph.")
elif m=="hello world":
print("Encrypted ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
88dfffc6eb0b778eea5bb884815693fca88b87fc | b84f9ebfb2bcbfc9d51a11dcfaa83aacb6b2bb93 | /basenet/lr.py | 84d47e8484a2c5be63d83fc9fc6b9894dd64e9f7 | [] | no_license | MeRajat/basenet | 0826d6d63d77ca8ceff00fe9121fdd81a206d0ec | 15ce63ce4981e09f188b5a85630623eaaf12c056 | refs/heads/master | 2020-03-13T03:58:24.361697 | 2018-04-10T03:43:29 | 2018-04-10T03:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,213 | py | #!/usr/bin/env python
"""
lr.py
learning rate scheduler
"""
from __future__ import print_function, division
import sys
import copy
import numpy as np
from tqdm import tqdm
import torch
from torch import nn
from torch.nn import functional as F
from torch.autograd import Variable
# --
# Helpers
def pow... | [
"bkj.322@gmail.com"
] | bkj.322@gmail.com |
887df4059c0b702bf79a5d302869ea4665e49597 | a85168b6afb6597972a873bc3282a1e05f076a04 | /networks/__init__.py | a6b0944372865a7540533cd458f4db72fcb8e8a0 | [
"MIT"
] | permissive | 9622034/break_captcha | b82112f6d1e8e8beb8f90062d6b6b7833e198fd1 | 9ab16d1d7737630786039d07caec308bdb8a26d9 | refs/heads/master | 2023-03-25T14:41:12.828742 | 2019-09-25T06:39:11 | 2019-09-25T06:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from .cnn5 import CNN5
from .resnet50 import ResNet50
from .densenet import (
DenseNet121, DenseNet169, DenseNet201
)
from .rnn import (
BiGRU, BiLSTM
)
| [
"1251680944@qq.com"
] | 1251680944@qq.com |
f161bf4f832e70bab14b2a3b7d15875b36c04697 | 1626e16760c9c5b5dc9bd7c345871c716d5ffd99 | /Problems/0500_0599/0539_Minimum_Time_Difference/Project_Python3/Minimum_Time_Difference.py | 4a1c6119d5b5b67280d5beb56363e76d7abefd06 | [] | no_license | NobuyukiInoue/LeetCode | 94ddb19e63cb8d0775cdc13f311fe90c87a1d718 | 3f0ffd519404165fd1a735441b212c801fd1ad1e | refs/heads/master | 2023-09-01T07:38:50.939942 | 2023-08-23T09:51:17 | 2023-08-23T09:51:17 | 158,100,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | import os
import sys
import time
from typing import List, Dict, Tuple
class Solution:
def findMinDifference(self, timePoints: List[str]) -> int:
# 64ms
timePointsInt = [int(t[:2])*60 + int(t[-2:]) for t in timePoints]
sortedTime = sorted(timePointsInt)
minimum = 1440
for i i... | [
"spring555@gmail.com"
] | spring555@gmail.com |
18795c28b3e0d9e3705936c5d496ef0c7fa394c8 | 59d0cfc76bb202b799b204355650a1a07811d5be | /newsletters/models.py | cb90471c04f9e630e3dd2849925429c595bd8dbd | [] | no_license | nabirhossain/newspaper | c4c91ae37e486adf47263562505c578f38431c8e | 25f534f472daa2930ddf52616c34e3fea7f094fc | refs/heads/master | 2022-08-30T10:43:31.199591 | 2019-02-10T16:00:55 | 2019-02-10T16:00:55 | 170,000,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from django.db import models
# Create your models here.
class NewsLetterUsers(models.Model):
"""Email for subscribing confirmation"""
email = models.EmailField()
date_added = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ['-id']
verbose_name_plural = 'NewsLetter User... | [
"nabirhossain13@gmail.com"
] | nabirhossain13@gmail.com |
94b0fa5629e5fb830755b145872a9e84033587c5 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/simclr/src/lr_generator.py | ee443f0e85ea75b3061d37fb213f43fdae0cb7e1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 6,943 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
33fd50f3ebc54c948faff41a5d25565a35b310d9 | 71e15712c6583d7c1ae1b24e42dbd8ddb5872e66 | /models/cvae_denoiser.py | b60c86e765ef5c046b007af28b84e6d798396bea | [
"MIT"
] | permissive | yigitozgumus/IACV_Project | 4968fc1e4a95b5f05dcf164fb5b2749326095343 | 0e012139a33c76ca88505c28270f1250181ec701 | refs/heads/master | 2020-04-15T20:57:43.285117 | 2019-06-23T13:23:15 | 2019-06-23T13:23:15 | 165,015,589 | 0 | 0 | MIT | 2019-06-21T19:34:02 | 2019-01-10T07:53:04 | Python | UTF-8 | Python | false | false | 19,660 | py | from base.base_model import BaseModel
import tensorflow as tf
from utils.utils import get_getter
import numpy as np
class CVAEDenoiser(BaseModel):
def __init__(self, config):
super(CVAEDenoiser, self).__init__(config)
self.build_model()
self.init_saver()
def build_model(self):
... | [
"yigitozgumus1@gmail.com"
] | yigitozgumus1@gmail.com |
eefb52d9e1509caa07dc920559b462f72241bcb0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/ms_rcnn/ms_rcnn_r101_caffe_fpn_2x_coco.py | 4c10406b8ae69451a884c8c17eac8eb66255c278 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 742 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# 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... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
6cda5f71648c91a4fc509b3433891e119939185c | 0f0530b06a59fe6cfaa74b0030d892256e33c666 | /tests/test_net_web_asgi.py | d9c2acdad33edcbe3c6ec13c819155b68ac2a93d | [
"Apache-2.0"
] | permissive | nicoddemus/aioworkers | c269b470be5be0c2a59fb2a91d3a285f54125735 | 4ab85064844dc28141833d1348989d8c891f3d7d | refs/heads/master | 2022-12-06T21:22:29.976784 | 2020-08-22T11:42:53 | 2020-08-22T11:43:24 | 291,555,920 | 0 | 0 | Apache-2.0 | 2020-08-30T21:37:29 | 2020-08-30T21:37:28 | null | UTF-8 | Python | false | false | 908 | py | from asyncio import Queue
from aioworkers.core.context import Context
from aioworkers.net.web.asgi import AsgiMiddleware
async def app(scope, receive, send):
assert scope['type'] == 'http'
await send({
"type": "http.response.start",
"status": 404,
})
async def test_lifespan():
q = Q... | [
"yttrium@somedev.ru"
] | yttrium@somedev.ru |
957cf21de21fefe9bdc13a498f264c19abce8e30 | fc77fc08e983385521f7073e160cf05b8484dc9d | /BookSearchApp/env/app.py | b1faad1f847dee89bccc7efc9cfc422fad835798 | [] | no_license | Icode4passion/Apps | e561a179147ab0f9bd074998f2b3e3a9bfedc539 | 51e5f2c9026a7f6a6efef33f4f54c9d7573a3070 | refs/heads/master | 2020-05-04T15:22:59.139023 | 2019-04-03T07:57:58 | 2019-04-03T07:57:58 | 179,238,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///mybook.db"
app.secret_key = "Rock Flask"
db = SQLAlchemy(app) | [
"yogeerama@gmail.com"
] | yogeerama@gmail.com |
afb6b58c8a265fa587ebb77bf8d65a2b7a9cd48e | 55c6f50de6cfdfca5a75dd9901937894ab128f90 | /openturns/1.16/theory/data_analysis/spearman_coefficient-3.py | a48d0e3f448ddb582a92c087a00c68f149708c0d | [] | no_license | openturns/openturns.github.io | 01f66a4f269278b7aae3d813fc26b70eb4cd8713 | 6bb6c7de3a43649c1fcf1eaac2b03f79c5d1ac3b | refs/heads/master | 2023-08-04T09:19:44.238372 | 2023-07-20T05:44:35 | 2023-07-20T05:44:35 | 40,717,161 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import openturns as ot
from openturns.viewer import View
N = 20
ot.RandomGenerator.SetSeed(10)
x = ot.Uniform(0.0, 10.0).getSample(N)
f = ot.SymbolicFunction(['x'], ['5'])
y = ot.Uniform(0.0, 10.0).getSample(N)
graph = f.draw(0.0, 10.0)
graph.setTitle('nSpearman\'s coefficient estimate is close to zero\nbecause U and ... | [
"sayhi@circleci.com"
] | sayhi@circleci.com |
4b4dc1aa8a474140a1915a983d2c252d4c1b8a37 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/77_15.py | bf5ddebae8e2f5227c0519808941ef6da385fe5b | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | Python – Test Record existence in Dictionary
Sometimes while working with pool of records, we can have problem in which we
need to check the presence of particular value of a key for existence. This
can have application in many domains such as day-day programming or web
development. Lets discuss certain ways ... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
1d66d6b8572e967523cbe06b14855c4658e77bd8 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2449486_1/Python/pali6/b.py | fe17f0097208c8187a0ad0bbd2dc2db80c58304d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | n = int(input())
def check_rows(lawn):
for row in lawn:
maximum = max(row)[0]
for tile in row:
if tile[0] == maximum:
tile[1] = True
def do_case():
height, width = map(int, input().split())
lawn = [] #[y][x]
for y in range(height):
lawn.append([[int(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
56a2dab6493e19601e84078754409b647c2a4e89 | a81984a197944169935f005f95a0e69e8c64143b | /artifacts/default/CentOS_7/get-sdk-2018.06.13-CentOS_7.py | 6659b93dbe42606417441256b52a19f871ee140a | [] | no_license | pulp-platform/pulp-sdk-release | d6531bfb2f55335d02103a63fc5af90877333af3 | a3ad33b4bd5bcf704580857b9a1adcba3ed2a7ff | refs/heads/master | 2021-06-05T02:10:59.317545 | 2020-01-09T09:12:05 | 2020-01-09T09:12:05 | 132,143,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,712 | py | #!/usr/bin/env python3
# This file has been auto-generated and can be used for downloading the SDK it has
# been generated for.
import os
import tarfile
import os.path
import argparse
src="59b44701b6ac8390a97936cbd049256fc2917212"
artefacts=[
["https://iis-artifactory.ee.ethz.ch/artifactory/release/CentOS_7/pulp... | [
"germain.haugou@iis.ee.ethz.ch"
] | germain.haugou@iis.ee.ethz.ch |
bfca37e1ec2c5125a66f305593ee40212fdcb12b | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/l3ext/lnodepdef.py | f58be21a9a851aea55c2741a565a99c563441856 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,056 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5c3f771df5abad14df0b41844ac313bb7d32d769 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/202/usersdata/273/96707/submittedfiles/desvpad.py | ab360e0aab329516801eade107e9a53d39e7535d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # -*- coding: utf-8 -*-
import math
#comece abaixo
list=[]
n=int(input('digite a quantidade de valores: '))
i=0
soma=0
for i in range (i,n,1):
numero=int(input('digite um numero: '))
list.append(numero)
soma=soma+numero
media=soma/n
somatorio=0
for i in range(i,n-1,1):
somatorio=somatorio+((i-media)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a3362b3f44927c6c565e63c0df9f62e85f469079 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Vulkan/PresentModeKHR.py | 5b882378be2cddf46c48c99bea8a222bf00374d1 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,199 | py | # encoding: utf-8
# module gi.repository.Vulkan
# from /usr/lib64/girepository-1.0/Vulkan-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of th... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
1ef5fc71ea4a7812a05c31c39707f6995de315b6 | 60fb7142f180df3de24d66bfc32f35e64a56cacd | /src/users/urls.py | 07b97cb47146278eec8b1713de870da3f66fb386 | [] | no_license | a-samir97/lms-project | 5ca45ae64736c92b514d2b02b441686f310048d0 | 22a3a23df4ef96d45236512bbaf43654c37c79d8 | refs/heads/master | 2021-07-14T15:04:34.223879 | 2020-09-07T19:29:48 | 2020-09-07T19:29:48 | 200,075,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from django.urls import path,include
from . import views
app_name = 'users'
urlpatterns = [
path('create/',views.create_user_role,name='create-role'),
path('delete/',views.delete_user,name='delete-user'),
path('admin/',views.admin_page,name='admin-page'),
path('instructor/',views.instructor_page,name='... | [
"a.samir9710@gmail.com"
] | a.samir9710@gmail.com |
08723ebc022eb29a12d3f25e532b931660a49142 | d0aa628399195b7e9aba42bbd7d1f0e24f1b046e | /merge.py | 5b64835a3d3e0a94c433145664272f9cd6697f0a | [] | no_license | sarureddi/string | 7752fc7ed34ddd642bf901ec88c828856070c7a4 | a89b0c0aef426c8ea98b9d8f4a13f4c8282ea003 | refs/heads/master | 2020-06-01T06:57:42.174967 | 2019-06-07T04:39:47 | 2019-06-07T04:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | def mergeSort(alist):
print("Splitting ",alist)
if len(alist)>1:
mid = len(alist)//2
lefthalf = alist[:mid]
righthalf = alist[mid:]
mergeSort(lefthalf)
mergeSort(righthalf)
i=0
j=0
k=0
while i < len(lefthalf) and j < len(righthalf):
... | [
"noreply@github.com"
] | sarureddi.noreply@github.com |
054a52eac46a5a6f65c74f902b2d59f2f2b75d06 | 891aba394df57d7894900e99e5881ad5817a84bd | /s24/24.2_crear_tabla.py | 3b5b791b1c0fab7f552353a2c03e71b94f1a4c16 | [] | no_license | feliperojas/mision_tic_G11 | 42d87e698eb8c9ace896805f5fc5436a0035ec3b | cfc41e873a4138f3f4f2ad63143042eb606c0f45 | refs/heads/master | 2023-05-28T09:29:40.247531 | 2021-06-09T16:43:45 | 2021-06-09T16:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import sqlite3
conexion = sqlite3.connect("db/datos1.db")
print("Conectado exitosamente")
cursor = conexion.cursor()
cursor.execute("CREATE TABLE empleados(id integer PRIMARY KEY, nombre text, salario real)")
conexion.commit() # Guardo los cambios en la base datos | [
"camohe90@gmail.com"
] | camohe90@gmail.com |
76b3f939cfbc075de412b8920d6eb583f6655e83 | 747f759311d404af31c0f80029e88098193f6269 | /addons/internetdomain/company.py | fc5a66e4f796bac9697d5181dc7bcb487df307cf | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | /home/openerp/production/extra-addons/internetdomain/company.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
b9fe530d25d58978603162cfb268133af574789e | 70bc8d939f77f330cc394fdd65676ce8c4cf3d5a | /agents/natural/natural.py | 93e001b6fd78968c71847eeea17205e222e63cda | [] | no_license | kryptoss/zoe-startup-kit | 2fcc575ca9af7b770fdfe4ba24945fe157b6c657 | 1b62ceafb55291a964de4eb4a0726da1e4ca60ab | refs/heads/master | 2021-01-11T01:20:23.718013 | 2014-05-27T13:56:02 | 2014-05-27T13:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,008 | py | # -*- coding: utf-8 -*-
#
# This file is part of Zoe Assistant - https://github.com/guluc3m/gul-zoe
#
# Copyright (c) 2013 David Muñoz Díaz <david@gul.es>
#
# This file is distributed under the MIT LICENSE
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associat... | [
"david@gul.es"
] | david@gul.es |
2e86b0fdd59c5752f0d177c4253ed13f49884264 | e1c14c3b3ed552f1af97f427c342be70d8e3b27f | /src/5.2Graphs/bridge-in-a-graph.py | 505d1910c83c51ade8065179b15bbc185e9d1f48 | [
"MIT"
] | permissive | mohitsaroha03/The-Py-Algorithms | 4ab7285b6ea2ce0a008203b425ec3f459995664b | b5ba58602c0ef02c7664ea0be8bf272a8bd5239c | refs/heads/master | 2023-01-28T09:25:33.317439 | 2020-12-05T06:17:00 | 2020-12-05T06:17:00 | 280,189,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | py | # Link: https://www.geeksforgeeks.org/bridge-in-a-graph/
# IsDone: 0
# Python program to find bridges in a given undirected graph
#Complexity : O(V+E)
from collections import defaultdict
#This class represents an undirected graph using adjacency list representation
class Graph:
def __init__(self,vertices):
... | [
"MohitSaroha@Etechaces.com"
] | MohitSaroha@Etechaces.com |
4152c1978690244fbc25f325288996ee09ceb84c | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/tutorial/gui/scaleform/meta/TutorialBattleNoResultsMeta.py | 3bde88849cd7b326db4a89b7fa7d01951caa6d6c | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 413 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/tutorial/gui/Scaleform/meta/TutorialBattleNoResultsMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class TutorialBattleNoResultsMeta(AbstractWindowView):
def as_setDataS(self... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
50aab54fbbd29ab4a8003f504c45aca195cb845b | b17844b85f54eca6a3f5f9bcbef051a3814f6ecc | /some_experiments/get_keyword_from_paragraphs.py | 86e49bf351f93c33164ab9b8f4ad58363d2faf5a | [] | no_license | czt616/trec_news | 544bc706973935e99c01699e31f10d930e22cdd7 | f912fee1cf37ba14a1de5a735786dbf682135d52 | refs/heads/master | 2020-03-21T13:55:14.243675 | 2018-06-08T15:42:22 | 2018-06-08T15:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,954 | py | """
get keyword queries for each paragraphs
"""
import os
import json
import sys
import re
import argparse
import codecs
import subprocess
from string import Template
import redis
import math
from myUtility.indri import IndriQueryFactory
from collections import OrderedDict
sys.path.append("/infolab/node4/lukuang/trec... | [
"lukuang1989@gmail.com"
] | lukuang1989@gmail.com |
2a40a3307e6b5e1013caa1ddea4b9022bf2f74a8 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_0806+682/sdB_PG_0806+682_coadd.py | 5bffaca91383ddd94ca34edcf5413d095e23c73e | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[122.984208,68.061967], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_PG_0806+682/sdB_PG_0806+682_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
3f70f27abe05dd9e9692e809e9950742376f0406 | d0f5f4497d8a5edaef64f391b7d5fa84a251bf64 | /0x04-python-more_data_structures/0-square_matrix_simple.py | 30a8409f7fc77dc3fdd974b3e917a5050f778f57 | [
"MIT"
] | permissive | darkares23/holbertonschool-higher_level_programming | 34117bdb6df4adf2eb6f566dc91b41720f41c78e | 931b1b701d8a1d990b7cd931486496c0b5502e21 | refs/heads/master | 2020-09-29T03:03:41.603798 | 2020-06-27T18:40:23 | 2020-06-27T18:40:23 | 226,934,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/python3
def square_matrix_simple(matrix=[]):
def pow2(x):
return x ** 2
i = 0
new = matrix.copy()
for row in matrix:
new[i] = list(map(pow2, row))
i += 1
return new
| [
"desarrollojuseca@gmail.com"
] | desarrollojuseca@gmail.com |
09eb4a7b3155a09a3a9d3e1fc1bb9ea1119dc2e9 | 548c26cc8e68c3116cecaf7e5cd9aadca7608318 | /catalog/migrations/0026_auto__del_field_sellerratechart_status.py | c75b210143fe4446b0574f18b60d5b8e3c13d9ce | [] | no_license | Morphnus-IT-Solutions/riba | b69ecebf110b91b699947b904873e9870385e481 | 90ff42dfe9c693265998d3182b0d672667de5123 | refs/heads/master | 2021-01-13T02:18:42.248642 | 2012-09-06T18:20:26 | 2012-09-06T18:20:26 | 4,067,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,101 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'SellerRateChart.status'
db.delete_column('catalog_sellerratechart', 'status')
def ... | [
"dalal.saumil@gmail.com"
] | dalal.saumil@gmail.com |
35ec35a482eb64aee68580bd0e09f80a1d7f58da | 5c4d4a2c44eebf8fd9dd790da2a9ba4ededcfb70 | /django_kala/projects/tests/factories.py | 12ce7d94e2fe10e858bebdcc7cd843a2d5bf34a0 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | brahimmade/kala-app | bc2602c6034203f83ced448ba54db7606a1234fe | 6ac816e7c2711568cd7bcb1d996ba74c09513b3f | refs/heads/master | 2023-03-21T05:15:52.436228 | 2020-03-10T15:50:29 | 2020-03-10T15:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import factory
from projects.models import Project
class ProjectFactory(factory.django.DjangoModelFactory):
class Meta:
model = Project
django_get_or_create = ('name', )
name = factory.Faker('text')
description = factory.Faker('text')
| [
"bgroff@hawaii.edu"
] | bgroff@hawaii.edu |
214575b4ceed192abdcab598ac1b15c57813fd1c | a7ed4da896faab105ff08259a82ae822548d1c2c | /6/space.py | 69206dafc8a28a818b4cd80402e1e28591854ddc | [] | no_license | nemesmarci/Advent-of-Code-2019 | e8e59d89be8ed43ce046fd7854b1c9b779a8930e | 251dc4dc62777a7c0daf7a74d832c0be3d75140e | refs/heads/master | 2021-12-31T10:53:35.924253 | 2019-12-27T17:17:06 | 2021-12-29T19:17:13 | 225,252,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | class Object:
def __init__(self, name):
self.name = name
self.orbiters = set()
self.parent = None
def read_data():
objects = dict()
with open('input.txt') as data:
for line in data:
center, orbiter = line.strip().split(')')
for p in center, orbiter:
... | [
"nemes@sch.bme.hu"
] | nemes@sch.bme.hu |
0540d6deaf0a605af2d8685c41a80607042a9182 | 89a6ebe5364fc618231ca03ec1863bbf864ee535 | /unweaver/graphs/digraphgpkg/inner_adjlists/inner_predecessors_view.py | 682fa6ba8200587a6113b3dfb36d73fcbb9ca630 | [
"Apache-2.0"
] | permissive | nbolten/unweaver | 0058cfb638e7ce22d44fcb1668d5f700dbcf3e8f | 66352c181582d08a032a2af12dc14fd2415a7294 | refs/heads/main | 2023-02-21T23:25:44.648492 | 2022-11-02T00:57:43 | 2022-11-02T00:57:43 | 171,992,700 | 7 | 4 | NOASSERTION | 2023-02-16T06:51:31 | 2019-02-22T04:08:46 | Python | UTF-8 | Python | false | false | 280 | py | """GeoPackage adapter for immutable networkx predecessor mapping."""
from .inner_adjlist_view import InnerAdjlistView
class InnerPredecessorsView(InnerAdjlistView):
id_iterator_str = "predecessor_nodes"
iterator_str = "predecessors"
size_str = "unique_predecessors"
| [
"nbolten@gmail.com"
] | nbolten@gmail.com |
8e685989b2018d7bcd1d32fe5cf537411b368c00 | 59d1fd18d9f13c70e3e069619add5a57f8ba3304 | /color_histogram/np/norm.py | a2fe42a9de180c6efa1999e3322d4f7200243916 | [
"MIT"
] | permissive | laserwave/ColorHistogram | 59501d00b075bd375321bf5dce65951a780c9b65 | b2fad52ba8e68130eaca503ac2a78c7a69852dd2 | refs/heads/master | 2020-08-08T19:29:08.845214 | 2019-10-10T02:55:58 | 2019-10-10T02:55:58 | 213,899,835 | 0 | 0 | MIT | 2019-10-09T11:27:05 | 2019-10-09T11:27:04 | null | UTF-8 | Python | false | false | 966 | py | # -*- coding: utf-8 -*-
## @package color_histogram.np.norm
#
# Norm functions.
# @author tody
# @date 2015/07/18
import numpy as np
## True if x is a vector.
def isVector(x):
return x.size == x.shape[0]
## True if x is a matrix.
def isMatrix(x):
return not isVector(x)
## Normalize vector.... | [
"tody411@gmail.com"
] | tody411@gmail.com |
4f7a1483876fe0a56f801e903980267db346014e | c71a77b8ed41a7a86d6c29dfafded62223257766 | /Parser/CheckPoint/yaccTest.py | e3bb04675624a078c8b7c0fffdb09aee4b06ce6a | [] | no_license | dexion/springbok | 9793d93f6fea34b7623dc8e71f66c1b9b4986e32 | 20b58530d7b5c7f049baa16db79f6827d2959345 | refs/heads/master | 2020-04-07T13:08:42.521139 | 2018-03-12T07:56:57 | 2018-03-12T07:56:57 | 124,214,084 | 0 | 0 | null | 2018-03-07T09:46:10 | 2018-03-07T09:46:09 | null | UTF-8 | Python | false | false | 1,728 | py | __author__ = 'maurice'
#/usr/bin/python
# -*- coding: utf-8 -*-
from ply import yacc as yacc
from lexTest import tokens
from lexTest import lexer
object_dict = {}
p_info = {}
def p_lines(p):
'''lines : line
| line lines'''
if len(p) == 2:
p[0] = p[1]
def p_line(p):
'''li... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a7fe33ee85f9ac631c48785db1c880bc79e47f15 | 581e619a23bd0e6642f991f7f3ee5bf20c628baf | /networking_bgpvpn/policies/port_association.py | 7689b0a5a41125217d4f2872a2236ad64ed1e2f7 | [
"Apache-2.0"
] | permissive | joker-at-work/networking-bgpvpn | 95546ff29d9cab6f092f70c477c0092b32ce3966 | 2722d5a0ad8e921064b875b00c5108afd2937676 | refs/heads/master | 2023-01-11T11:46:30.120399 | 2020-11-16T07:44:21 | 2020-11-16T07:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | # 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 to in writing, software
# distributed u... | [
"amotoki@gmail.com"
] | amotoki@gmail.com |
c096a3c1ec6dbdabd5506a677cb1b16dc4b161d5 | 27317b3adb1ccd99afa86cb931d2d14e23b9b175 | /bcs-app/backend/utils/renderers.py | 104692c70388689c7d7d57ebb95a3a0b85e18e9f | [
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"ICU",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0",
"Zlib",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ISC",
"NTP",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT"
] | permissive | freyzheng/bk-bcs-saas | cf5a6c4ab1c20959bda1362bc31de7884451acd7 | 96373cda9d87038aceb0b4858ce89e7873c8e149 | refs/heads/master | 2021-07-05T04:11:08.555930 | 2020-09-22T12:26:37 | 2020-09-22T12:26:37 | 201,279,048 | 0 | 1 | NOASSERTION | 2020-09-16T03:07:16 | 2019-08-08T14:48:27 | Python | UTF-8 | Python | false | false | 1,787 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may not use this file except i... | [
"gejun.coolfriend@gmail.com"
] | gejun.coolfriend@gmail.com |
78abf98d35916961fd8bcc55c4c25d7124732aac | 56abd8f94a511ae0d163161cb2f5e0a91d4b8bed | /datahub/dataset/company_list/test/test_views.py | 937b92b26ac6bc414f0b972505089b5c8809dcdd | [
"MIT"
] | permissive | cgsunkel/data-hub-api | 994c58bd975d902bf2bc44b415a5892919ff4539 | a92faabf73fb93b5bfd94fd465eafc3e29aa6d8e | refs/heads/develop | 2023-05-31T22:35:56.344904 | 2021-06-30T11:23:06 | 2021-06-30T11:23:06 | 303,947,456 | 0 | 0 | MIT | 2021-06-30T10:34:50 | 2020-10-14T08:14:46 | Python | UTF-8 | Python | false | false | 3,125 | py | import pytest
from django.urls import reverse
from freezegun import freeze_time
from rest_framework import status
from datahub.company.test.factories import ContactFactory
from datahub.core.test_utils import format_date_or_datetime, get_attr_or_none
from datahub.dataset.core.test import BaseDatasetViewTest
from datahu... | [
"nick.ir.ross@gmail.com"
] | nick.ir.ross@gmail.com |
ee8bb2585eef449cd14d067cbc4b14eb6e1d9fa5 | 3515c2d0e746ba0aba09950a733912d4bd586fd1 | /tests/test_matches.py | 39a94ff98bf627b112490c6c5ff75b71d1fa2736 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | soccermetrics/marcotti-light | 350a6cf27d829f3b6a3b8cd51a3ff87b58f8a82b | e287aec5e82690e36f0306b3029ade7925e99423 | refs/heads/master | 2021-01-10T04:13:43.940621 | 2016-01-07T07:17:24 | 2016-01-07T07:17:24 | 46,227,836 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,442 | py | # coding=utf-8
from datetime import date
import pytest
from sqlalchemy.exc import IntegrityError, DataError
from light.common.models import Competitions, Seasons, Years, GroupRounds, KnockoutRounds
from light.common.models import (Matches, FriendlyMatches, LeagueMatches,
GroupMatches,... | [
"hhamilton@soccermetrics.net"
] | hhamilton@soccermetrics.net |
c912c809d4934f93f551548bc0159f24c96e6a85 | 955ee13f0ed39a3d0b997636207884f887eae4e1 | /Preview/cgi-bin/peoplecgi.py | 10015d72d4fde31d08e6d53e6a18ddcd5779b132 | [] | no_license | sguberman/PP4E | 1d4ca7c3dced798dcab7cfd746e061f8c8ef23d9 | ea4f713daf94f6663314bfad0a7de1e8809f0248 | refs/heads/master | 2020-07-17T00:28:12.555340 | 2017-01-17T15:26:48 | 2017-01-17T15:26:48 | 73,938,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | """
Implement a web-based interface for viewing and updating class instances
stored in a shelve; the shelve lives on server (same machine if localhost)
"""
import cgi, html, shelve, sys, os
shelvename = 'class-shelve'
fieldnames = ('name', 'age', 'job', 'pay')
form = cgi.FieldStorage()
print('Content-type: text/htm... | [
"sguberman@gmail.com"
] | sguberman@gmail.com |
2e18f196bb3ee39e5cffb4636388d6c75b53559a | 720981991ce1d020febfa2153a20791b521daf7e | /INCORRECT_Shield_GAN_add_noise_later.py | 8e85c4a6559e22ff18a962447864425e7e134271 | [] | no_license | alexmarshallbristol/Style-transfer-SHiP-Muon-Shield | 664c0a549a7983e11bfa4960dacfc57a08fe3534 | df8d8372a7e62987429c06b62449dc565fc17b30 | refs/heads/master | 2020-04-04T20:27:58.682603 | 2018-11-21T15:47:11 | 2018-11-21T15:47:11 | 156,247,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,094 | py | import numpy as np
from keras.layers import Input, Flatten, Dense, Reshape, Dropout, BatchNormalization, concatenate
from keras.layers.advanced_activations import LeakyReLU
from keras.optimizers import Adam
from keras.models import load_model, Model
from keras import backend as K
import math
import matplotlib as mpl... | [
"alex.marshall@bristol.ac.uk"
] | alex.marshall@bristol.ac.uk |
2ef9112e71bc7325e11d4c700cd01cc4d0b873c8 | daf7d0b635ce87db410843b8a4b3b5445f89bced | /venv/bin/sqlformat | df6b65146b6383d4531eadf65e4bfdc2117f795d | [
"MIT"
] | permissive | brayomumo/Neighbourhood | 73aa7ea1be3bc879934cdb4727707d0bdd36c1f1 | dc0bb44601bf9204066b39526eac3827e5c181fb | refs/heads/master | 2021-09-09T11:43:08.918547 | 2019-09-16T06:42:01 | 2019-09-16T06:42:01 | 208,220,418 | 0 | 1 | MIT | 2021-06-10T21:56:40 | 2019-09-13T07:55:35 | Python | UTF-8 | Python | false | false | 263 | #!/home/smoucha/Desktop/projects/neighbourhood/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"brayomumo5@gmail.com"
] | brayomumo5@gmail.com | |
e72f94dc552a90dd96860bdcec3507d3c07da30b | 1322ae1334af76643e108e78495e05538b0d7834 | /models/ner/train_model.py | dcef8fd3ac1a78145cd11e5cdcd6da6d75730e15 | [] | no_license | kimsoosoo0928/chatbot02 | 47d34d6e6ac75b86930b1840337d17f4e487df26 | 222e75023391f1d4cd486680d8abaa1300a72453 | refs/heads/main | 2023-06-08T02:22:25.862407 | 2021-07-04T00:28:02 | 2021-07-04T00:28:02 | 381,740,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | # 예제8-10 챗봇 엔진 NER 모델
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow.keras import preprocessing
from sklearn.model_selection import train_test_split
import numpy as np
from utils.Preprocess import Preprocess
# 학습 파일 불러오기
def read_file(file_name):
sents = []
with open(file_name, 'r', ... | [
"kimsoosoo0928@gmail.com"
] | kimsoosoo0928@gmail.com |
0f15da3c9cd7f4a36922c46e2abc4fa95e43c44c | b7ae1533857ac0ae432d70168a8fdc447906831b | /chap-3_Stacks_and_Queues/3.6.py | 75bda6b68d3aad4d874f0827be55c10abdf36bbc | [] | no_license | Gio1609/Python_Basic | 197ed35109b96f88ebd12331b2e28cf1a40367ec | 256001090204e3b795d901740b23e81531861109 | refs/heads/master | 2020-07-20T21:06:47.547630 | 2019-09-06T03:58:25 | 2019-09-06T03:58:25 | 206,709,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py | # An animal shelter holds only dogs and cats, and operates on a strictly "first in, first out"
# basis. People must adopt either the "oldest" (based on arrival time) of all animals at the
# shelter, or they can select whether they would prefer a dog or a cat (and will receive the
# oldest animal of that type). They can... | [
"phonglh1609@gmail.com"
] | phonglh1609@gmail.com |
55723af37fd62033802b1e7fd23703df110dcc17 | b02670f94c38d4f224bb8dd024b6b65b1a2af670 | /Instruction/EtabtoJJ/GENSIM-2016/crab_BPH_EtabtoJJ_2016.py | df44aad66d1337927ae85069c5019be7463bb0c5 | [] | no_license | fdzyffff/DiJpsi-MC | fe9e64960c766144e4ccad9cebf255c51168c6c8 | 0ab3ada85239fb6489e4a376e192a0260b4573e8 | refs/heads/master | 2023-01-19T00:59:40.401772 | 2020-11-30T02:07:51 | 2020-11-30T02:07:51 | 317,085,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from CRABClient.UserUtilities import config
config = config()
config.General.requestName = 'EtabtoJJ_GENSIM'
config.General.transferOutputs = True
config.General.transferLogs = True
config.JobType.pluginName = 'PrivateMC'
config.JobType.psetName = 'BPH_EtabtoJJ_2016.py'
config.JobType.allowUndistributedCMSSW = True
... | [
"1069379433@qq.com"
] | 1069379433@qq.com |
7f5d5901a76338bd5d4563b27811e3a2e7accf2a | f25d477be296a63aac156c8dd907397dc156024c | /vse/env.py | e5f298f5a9b0a674f7c1e329a87c340543abb9da | [] | no_license | cbaxter1988/validation_scripting_engine | f4e0a834632b5499c4d7a13b18d9208b27296325 | 86a8bd5061016f838747ea045bf3e32c0dd98e94 | refs/heads/master | 2022-11-23T05:23:05.343104 | 2020-07-22T06:55:47 | 2020-07-22T06:55:47 | 275,946,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import os
DEPLOY_MODE = os.getenv("DEPLOY_MODE", "dev")
CONNECTOR_HOST = os.getenv("CONNECTOR_HOST", "192.168.1.104")
SSH_ENDPOINT = os.getenv("SSH_ENDPOINT", "http://192.168.1.104:5001/v1/ssh")
CONNECTOR_URL = os.getenv("CONNECTOR_URL", f"http://{CONNECTOR_HOST}/connector")
MAX_FAIL_LIMIT = os.getenv("MAX_FAIL_LIMI... | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
150d523f015aad8e5003990adf308158897ce1f9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/128/usersdata/231/44270/submittedfiles/al6.py | 19dd97bbebc6bb5e9db0c744113d414be7d8b74a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | # -*- coding: utf-8 -*-
n=int(input('digite valor de n :'))
cont=0
for i in range(2,n,1):
if n%i==0:
cont=cont+1
if cont==0:
print('primo')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ecbd3c6b413d051c19d36809359ace04d9378bb7 | 1316cd6763e784811c769c1de577235c921af0de | /Apps/MomentumApp/camera_test_v2.py | 701c3aaf2bc0c6991ec7d3b00a3653ec48064386 | [] | no_license | VELA-CLARA-software/Software | a6fb6b848584e5893fd6939a447d23134ce636cc | 2e2a88ac0b2b03a495c868d2e11e6481e05097c3 | refs/heads/master | 2023-02-05T07:40:58.260798 | 2023-01-27T09:39:09 | 2023-01-27T09:39:09 | 69,860,536 | 7 | 3 | null | 2021-04-07T14:17:07 | 2016-10-03T10:20:46 | Mathematica | UTF-8 | Python | false | false | 2,271 | py | #import os, sys
import pyqtgraph as pg
import numpy as np
import VELA_CLARA_Camera_Control as cam
import time
import sys
sys.path.append('\\\\apclara1\\ControlRoomApps\\Controllers\\bin\\Release\\')
# initialise etc.
camInit = cam.init()
cameras = camInit.physical_CLARA_Camera_Controller()
# get list of camera names
n... | [
"david.dunning@stfc.ac.uk"
] | david.dunning@stfc.ac.uk |
2a4b36c215d1e63280fd3cfb087876fb72b708ca | e1ba0eb26a14be38c1b2fdf0902417d2552be913 | /REM/Tool/IDA 7.3/python/ida_xref.py | 0105242a9de39a4f5e35b93b4ac9542e692f6613 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | dodieboy/Np_class | db7fb9d4f4eb0fe4d5bb38dc05e69a9cbd485cf0 | 5c6e517599a20658ee23bdbdd76f197f2f4a1b63 | refs/heads/master | 2022-11-15T10:29:30.587639 | 2022-06-24T12:25:45 | 2022-06-24T12:25:45 | 181,395,891 | 0 | 2 | MIT | 2020-05-30T06:22:17 | 2019-04-15T02:07:40 | C# | UTF-8 | Python | false | false | 20,219 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
"""
IDA Plugin SDK API wrapper: xref
"""
from sys import version_info
if version_info >= (2,6,0):
def swig_... | [
"dodieboy@users.noreply.github.com"
] | dodieboy@users.noreply.github.com |
af9ff4efde4d63f2a8c1dd71eb5a82327b0f86c8 | f700ccde798c82ba2c8982c990e592bca984ce25 | /unlucky_ticket.py | 9b3bdd53b2ecaa99a83ec755738fc960641b6170 | [] | no_license | davidozhang/codeforces | 94d791f3efc7d38a326efc08845975888eb3a811 | fad0aa12b14cb3facd2aeac35298e7906f5884c4 | refs/heads/master | 2021-01-22T05:15:23.328306 | 2015-03-08T23:04:41 | 2015-03-29T20:20:02 | 30,389,624 | 2 | 0 | null | 2015-03-09T00:56:04 | 2015-02-06T02:01:15 | Python | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/python
'''
Problem 160B: http://codeforces.com/problemset/problem/160/B
Solved on: 2015-02-22
Result: Accepted 124 ms 4 KB
'''
def main():
n, ticket=int(raw_input()), raw_input()
first, second=sorted(ticket[:n]), sorted(ticket[n:])
less=True if first[0]<second[0] else False
for a, b in zip(first, secon... | [
"davzee@hotmail.com"
] | davzee@hotmail.com |
1c841a619cef71dd836eb6dd00eabea50cf7b0ee | 11264216ba391738e87696c2d4c2c7c4600aa056 | /lecture6/lecture6/templateexample/views.py | d97f20835c9cb6821e5dc50d97e2f446195d96a4 | [
"MIT"
] | permissive | CSUChico-CINS465/CINS465-Fall2016-Lecture-Examples | 2775e84e4152a402ce1602fea9dffe363a7028d7 | 332df2821aef74c6522c53278e28ceb27cbe2fe6 | refs/heads/master | 2020-06-30T00:57:58.322717 | 2016-11-08T01:19:40 | 2016-11-08T01:19:40 | 66,382,719 | 0 | 3 | null | 2016-10-06T16:34:13 | 2016-08-23T16:10:32 | Python | UTF-8 | Python | false | false | 195 | py | from django.shortcuts import render
# Create your views here.
def index(request):
context = { 'page_name':"List Site", "list":[1,2,3,4,5,6,7]}
return render(request,'list.html',context)
| [
"javawolfpack@gmail.com"
] | javawolfpack@gmail.com |
597a53218279ac4ef95f5f4142c679743a717523 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03745/s828172112.py | 177eae81411bceeaff0cf2750acc0d891a16c202 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | n = int(input())
l = list(map(int,input().split()))
sw='n'
ans=0
for i in range(1,n):
if sw=='u':
if l[i-1]-l[i]<=0:
continue
else:
ans+=1
sw='n'
elif sw=='d':
if l[i-1]-l[i]>=0:
continue
else:
ans+=1
sw='n'... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0c23aec8d46d0b61153a3ca8602b9b0781bcbb82 | 660e35c822423685aea19d038daa8356722dc744 | /account_invoice/setup.py | 23e8dcd2407dc061a50ca67790c9fbdf428b91b1 | [] | no_license | saifkazi/tryton_modules | a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb | 94bd3a4e3fd86556725cdff33b314274dcb20afd | refs/heads/main | 2023-05-05T12:20:02.059236 | 2021-05-19T10:46:37 | 2021-05-19T10:46:37 | 368,768,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,227 | py | #!/usr/bin/env python3
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import io
import os
import re
from configparser import ConfigParser
from setuptools import setup, find_packages
def read(fname):
return io.open(
... | [
"saif.kazi76@gmail.com"
] | saif.kazi76@gmail.com |
964cf668c442745c779ab5a95e74d32d25ba561d | 661c765dbab325ec04fb1d28c7f0171c1c561c9a | /tests/tools/segment_sinkhorn_test.py | 111af8aae510470bfa013c2606426889b9ba8302 | [
"Apache-2.0"
] | permissive | standardgalactic/ott | 0b13529f081a1ce5d5fe663a61d97cfe52c2ded9 | f55eb8ea2c8120e02d6cdfd63e8c0a32614776b9 | refs/heads/main | 2023-07-05T08:12:25.810811 | 2023-07-04T15:43:17 | 2023-07-04T15:43:17 | 389,823,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,777 | py | # Copyright OTT-JAX
#
# 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 to in writing, software
# ... | [
"noreply@github.com"
] | standardgalactic.noreply@github.com |
59d60b1776418daabd171fff7fa716e15d7a7621 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_SpiceNovak_counting_sheep.py | a09ef397320e9d80c9193901932e25e0cfac052e | [] | 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 | 623 | py | import sys
if len(sys.argv) > 1:
filename = sys.argv[1]
else:
filename = 'A-large.in'
# open the file for reading
f = open(filename, 'r')
T = int(f.readline()) # number of test cases
f_out = open('output.out', 'w')
for idx in range(1,T+1):
digits_seen = set()
N = int(f.readline())
if N == 0:
res = 'Case #{}:... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
9dcd297028b5809a19b78b408c432f60b9802413 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/feature/vt/gui/actions/AddToVersionTrackingSessionAction.pyi | 5c3de8c4d4f7f55958a4d7d4dae9457409d79112 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,412 | pyi | import docking
import docking.action
import ghidra.util
import java.beans
import java.lang
import java.util
import java.util.function
import javax.swing
class AddToVersionTrackingSessionAction(docking.action.DockingAction):
def __init__(self, __a0: ghidra.feature.vt.gui.plugin.VTController): ...
def ac... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
64261ea0087ff4d3910bab7cc8fdd6432ec03005 | e3f6a54f9d57a6533fdf0c02a0fcc69bd9001ce4 | /apps/equipes/migrations/0006_equipe_campeonato.py | 14dd2af3eef52fa90451905c5ffe8da82b8b4d81 | [] | no_license | Eduardo-Lucas/football_project | b612309b6e057dc31075e054a2466b3dd7bc75b9 | 2c33584e1fd573c87b285cb8c6b5b8454cdebfbf | refs/heads/master | 2020-07-01T07:25:22.881898 | 2019-08-19T17:54:58 | 2019-08-19T17:54:58 | 201,089,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | # Generated by Django 2.2.4 on 2019-08-16 18:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('campeonatos', '0002_auto_20190816_1435'),
('equipes', '0005_auto_20190816_1151'),
]
operations = [
migrations.AddField(
... | [
"eduardolucas40@gmail.com"
] | eduardolucas40@gmail.com |
9a95d349e773c7b8b03e4e8e79409ee20557ddc3 | 1fd8e5db25f8ebc7cc4506cbb07ba98f717b667e | /virt/Lib/site-packages/darkdetect/_linux_detect.py | 3110ae88cb5f6754c90e6944b40ec30f0170f8f4 | [] | no_license | flatplanet/Intro-To-TKinter-Youtube-Course | 6103410435fc3b977fb44a4b08d045950ba10380 | cf988099fc358e52ed773273cb2e7ddb9d37d995 | refs/heads/master | 2022-10-06T10:02:38.689302 | 2022-07-18T18:11:12 | 2022-07-18T18:11:12 | 174,183,345 | 524 | 426 | null | 2021-10-10T16:16:44 | 2019-03-06T16:44:03 | Python | UTF-8 | Python | false | false | 860 | py | #-----------------------------------------------------------------------------
# Copyright (C) 2019 Alberto Sottile, Eric Larson
#
# Distributed under the terms of the 3-clause BSD License.
#-----------------------------------------------------------------------------
import subprocess
def theme():
# Here we j... | [
"johne4196@gmail.com"
] | johne4196@gmail.com |
70dcec3bcfeeed742b9fb1088557ec18f9bd2465 | 124c74d1b96c95d5fd1be27f846be5425e55bbbe | /Python/f1.py | a1cbaf6f572bac54df6364252ea04cdde3bf0595 | [] | no_license | seddon-software/bridge | 2db52044c00e62dedec9ce5bac395fa8a2b016ec | fdfafba3af15888eba5c604dcffeb5cf333d53dd | refs/heads/master | 2020-07-02T13:02:41.705581 | 2019-08-14T15:13:02 | 2019-08-14T15:13:02 | 201,526,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | import pandas as pd
import sys, os
import re
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
def splitIt(s, n):
s = re.split(r'[()]', s)
return s[n]
def readExcelFile(excelFile, sheet):
table = pd.read_excel(excelFile, sheet)
t... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
dc39b3bc426649d5c841b52baa9ab399f7ded711 | 42ad602451a725f3fa487a1544c0c51988f15e5b | /post/models.py | 0cc3e40d7d4b1860396f3837a911daa067f4df5f | [] | no_license | allandereal/360MedNet | bdc0d2c1b7dee0a93d5373ff6f89b6ea560a4a24 | edbedf3fe6294b99ac7eed6737a94e351dd14028 | refs/heads/master | 2022-12-12T13:47:42.431421 | 2017-08-29T13:10:52 | 2017-08-29T13:10:52 | 90,020,420 | 0 | 0 | null | 2017-06-03T16:37:22 | 2017-05-02T10:24:12 | Python | UTF-8 | Python | false | false | 2,007 | py | import datetime
from django.db import models
from django.urls import reverse
from userprofile.models import Doctor
from django.contrib.auth.models import User
class Post(models.Model):
title = models.CharField(max_length=200)
post_content = models.TextField()
created_at = models.DateTimeField(auto_now=Fa... | [
"faithnassiwa@gmail.com"
] | faithnassiwa@gmail.com |
b98894e53544278d28fa16d6664bb24ed6e7652a | 54dcb1d4b1a859012721460eb47325057d737b6f | /app/middleware/body_parser.py | c84346fe0795bc4121c2cc2349e4e901538f8afc | [
"MIT"
] | permissive | projectweekend/Falcon-PostgreSQL-API-Seed | 0ed20fae0f0856aa677d981bbe2102c2ab9890d1 | d898636c6f3feb5a9f802d55ccae704acc5a060e | refs/heads/master | 2021-01-19T14:33:08.689478 | 2015-12-21T16:56:31 | 2015-12-21T16:56:31 | 33,319,685 | 18 | 3 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | import json
import falcon
class JSONBodyParser(object):
def process_request(self, req, res):
if req.content_type == 'application/json':
body = req.stream.read().decode('utf-8')
try:
req.context['data'] = json.loads(body)
except ValueError:
... | [
"brian@projectweekend.net"
] | brian@projectweekend.net |
51af6d66beee4e3d9722a85e8605edc3776718de | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncontradistinguish.py | a0d901b2d36e4ffde5722fada1b026e5ae8d8bc6 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 104 | py | ii = [('LyelCPG.py', 1), ('MereHHB3.py', 7), ('MereHHB.py', 17), ('StorJCC.py', 7), ('MereHHB2.py', 20)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
0d59052f34a023d60eed33ee61df46351007a18d | 8fd55e7a0f8764b3fe894d927c39173507f03855 | /sms/signals.py | 48c0a6b8bef87fa7c935c57bc37035be8d6a4e9f | [] | no_license | bogdal/django-sms | 2ed97cbafd7c2a9b4b1521c766e89b2514b63e75 | fa0ed8369228b2b3160e8b577b6377587ce1fe5a | refs/heads/master | 2020-04-05T08:22:29.864245 | 2013-04-24T09:28:34 | 2013-04-24T09:28:34 | 3,496,819 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | import django.dispatch
post_send_sms = django.dispatch.Signal(providing_args=['sms']) | [
"adam@bogdal.pl"
] | adam@bogdal.pl |
09e03dfc42963646df9877d73e41d8e6ee408e39 | 45b159e64114d8759c0e2987bd0a6f02f60daf4d | /Python/wordBreaking.py | 7396bd11360b91cf2098f766fe3e2369ebf69abb | [] | no_license | afcarl/Coding_Interview_Problems | 45b24b849a90581db5327811c5ab78237f4d5ac0 | 1256d4394d506aec875e9e19300404a9b32a4eb1 | refs/heads/master | 2020-03-16T20:16:54.706152 | 2015-02-11T05:51:56 | 2015-02-11T05:51:56 | 132,953,286 | 1 | 0 | null | 2018-05-10T20:54:14 | 2018-05-10T20:54:14 | null | UTF-8 | Python | false | false | 1,461 | py | '''
Created on Oct 14, 2014
@author: Ben Athiwaratkun (pa338)
'''
#from __future__ import division
#import numpy as np
def wordBreaking(s, dictionary):
X = [False]*(len(s)+1)
X[-1] = True
for m in range(0,len(s)):
# calculate X[m]
for k in range(-1,m):
#print "Break point is a... | [
"ben.athiwaratkun@gmail.com"
] | ben.athiwaratkun@gmail.com |
653e8f62569bb20cd7b9a97107ce9995c1eff8a9 | 9a9fb43d866dc8fd829211d2b47328ef1f5ed428 | /PI_ROS_WORKSPACES/test/build_isolated/ackermann_msgs/catkin_generated/generate_cached_setup.py | 029b2cd3979fc0ffad2fcc6aa514ef01ac64f6c0 | [] | no_license | droter/auto_mow | 326df42a54676079cac61fe63c40d5d04beb049b | 3742cb2ef78bc06d2771ac4c679e5110909774f8 | refs/heads/master | 2022-05-19T20:18:33.409777 | 2020-04-29T00:42:24 | 2020-04-29T00:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/home/pi/test/src/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.... | [
"joshuatygert@gmail.com"
] | joshuatygert@gmail.com |
e6f399d9faa194ee592c19814159bc85f90664e4 | 5c2e0fe391f7c720d0a6c117a64f4c8e89fece93 | /research/object_detection/dataset_tools/create_pet_tf_record.py | 614c0b534d1e6c188d826a22283cf67c9d48d288 | [
"Apache-2.0"
] | permissive | lyltencent/tf_models_v15 | e3bed9dfee42685118b0f3d21bb9de37d58cf500 | 0081dbe36831342051c09a2f94ef9ffa95da0e79 | refs/heads/master | 2022-10-20T20:00:26.594259 | 2020-09-19T05:37:22 | 2020-09-19T05:37:22 | 161,750,047 | 0 | 1 | Apache-2.0 | 2021-03-31T21:04:01 | 2018-12-14T07:47:33 | Python | UTF-8 | Python | false | false | 10,980 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"yxl7245@eng-4150-nix03.main.ad.rit.edu"
] | yxl7245@eng-4150-nix03.main.ad.rit.edu |
11ea290462ab55cd0b9cc5be95e63e6ee2785180 | e423a076e055f1f6f614e212d5e41269cd98b487 | /learning_logs/migrations/0002_entry.py | 3d7455e541415f824ad037d094e68e6089b7f188 | [] | no_license | kotano-snippets/learning_log | 83c283e0c92b1a6d6598cd2022578316ed81590f | 84f0aba52a966da89c143de4fb7d65e287c7cf06 | refs/heads/master | 2022-12-10T06:07:42.429924 | 2020-08-28T12:59:46 | 2020-08-28T12:59:46 | 291,243,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # Generated by Django 3.0.3 on 2020-08-19 22:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('learning_logs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Entry',
... | [
"kot4no@gmail.com"
] | kot4no@gmail.com |
017e0f67c4a12fb02504c2242672a5a935f63ef6 | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /pyneng/examples/18_ssh_telnet/1_pexpect_more.py | fb8e064f519b4628747219ee0f53f1b91d301bea | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 1,282 | py | import re
import pexpect
def send_show_command(ip, username, password, enable, command, prompt="#"):
with pexpect.spawn(f"ssh {username}@{ip}", timeout=10, encoding="utf-8") as ssh:
ssh.expect("[Pp]assword")
ssh.sendline(password)
enable_status = ssh.expect([">", "#"])
if enable_s... | [
"i.matyukin@gmail.com"
] | i.matyukin@gmail.com |
c167d924382481d969a67bae2f98a7aa8701ea5d | acec0a3d2220bbd0531ab44159e20bf28a9dd71b | /src/moviesapp/migrations/0025_alter_list_key_name.py | 39807cb87009a12a33c29fb728510295a9f7df7f | [] | no_license | desecho/movies | ad48c262f836a65902e7135fe7d3e3dde9e5c69c | 04141e4cfc885ba6c53328e1222980b85d9828ef | refs/heads/master | 2023-06-22T23:06:53.114491 | 2023-06-10T14:20:55 | 2023-06-10T14:21:35 | 8,838,721 | 14 | 4 | null | 2022-10-01T15:00:05 | 2013-03-17T18:00:49 | Python | UTF-8 | Python | false | false | 440 | py | # Generated by Django 4.0.4 on 2022-05-20 00:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('moviesapp', '0024_alter_actionrecord_rating_alter_movie_tmdb_id_and_more'),
]
operations = [
migrations.AlterField(
model_name='... | [
"desecho@gmail.com"
] | desecho@gmail.com |
3c8b506474ed0f4e338b62ce5a939bc589e9a7c2 | 3db5e39d9bbe1c86229a26e7d19e3ceb37f902e3 | /study/Day2/nogada.py | 72b0ca4dd188cfdc212ae0346e74ac11cb55d416 | [] | no_license | sweetrain096/rain-s_python | 5ca2fe5e7f97a681b6e75e64264687a723be1976 | eb285eb50eeebfaa2b4a4d7816314e2073faab00 | refs/heads/master | 2021-07-19T16:06:01.389283 | 2020-05-29T14:56:16 | 2020-05-29T14:56:16 | 162,240,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import os
os.chdir('C:/Users/student/Desktop/DBs_python/SSAFY')
files = os.listdir()
print(type(os.listdir()))
for file in files :
#os.rename(file, "samsung"+file)
os.rename(file, file.replace("SSAFY","samsung"))
| [
"gpfhddl09@gmail.com"
] | gpfhddl09@gmail.com |
5970443e919a31ef41000341db5939f6d4b32bf2 | 0f074e5adef64fa16e88dc2499e76f08b4c33c02 | /pyqt/file_QTextStreamExamples/36.py | 97c8a8295f0fe7e3996fd34c09f6ad4639a22f40 | [] | no_license | guozhenjiang/Python | 0ac39adaf72df0bfee51795fabcfd959a69b1862 | 44b07bd767f3f2a947331111ab920200ac2412c6 | refs/heads/master | 2021-05-19T16:54:40.725132 | 2020-11-19T16:26:26 | 2020-11-19T16:27:11 | 252,035,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | def __init__(self, _id,_viewer_id, *argv):
super(QtSingleApplication, self).__init__(*argv)
self._id = _id
self._viewer_id = _viewer_id
self._activationWindow = None
self._activateOnMessage = False
# Is there another instance running?
self._outSocket = QLoca... | [
"guo_zhen_jiang@163.com"
] | guo_zhen_jiang@163.com |
20c935026a7feb1c276f9a0c9b666025ee063bf4 | 19f05c91b991f38eca19275bfcb8a2a27000bb45 | /makahiki/apps/pages/view_energy/tests.py | 2da030a8bb60f371475c0c5bab90b65dd1ab142f | [] | no_license | keokilee/makahiki | 9c40576c73fef2bf11dc22194dbabf98f5e67e64 | 783db33ed0b38fb4dccc371c426265f7028a2d13 | refs/heads/master | 2020-04-30T03:44:52.309826 | 2012-03-17T01:36:19 | 2012-03-17T01:36:19 | 543,870 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | from django.test import TestCase
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from components.floors.models import Floor
from components.energy_goals.models import FloorEnergyGoal
class EnergyFunctionalTestCase(TestCase):
fixtures = ["base_floors.json"]
def setUp(sel... | [
"keoki.lee@gmail.com"
] | keoki.lee@gmail.com |
24c78e7b9ed8bea08360771ff9c50bc975d59540 | 4c5608f20fa2580774d734d94198dd10648e4339 | /src/vpp-api/python/vpp_papi/vpp_stats.py | 3638892135f3c1b47c9e2245a2a074ea2ad1b47c | [
"Apache-2.0"
] | permissive | mojtaba-eshghie/VPP-In-Situ-IOAM | 3d1c3d01752a7934d2f060326674280e0bd93413 | efebd91195eb1b0d98a4a1f5efd962ae79c77be6 | refs/heads/master | 2022-12-10T13:37:04.644952 | 2020-05-29T11:42:36 | 2020-05-29T11:42:36 | 194,249,816 | 2 | 0 | Apache-2.0 | 2022-12-08T05:17:31 | 2019-06-28T09:50:05 | C | UTF-8 | Python | false | false | 9,216 | py | #!/usr/bin/env python
from __future__ import print_function
from cffi import FFI
import time
ffi = FFI()
ffi.cdef("""
typedef uint64_t counter_t;
typedef struct {
counter_t packets;
counter_t bytes;
} vlib_counter_t;
typedef enum {
STAT_DIR_TYPE_ILLEGAL = 0,
STAT_DIR_TYPE_SCALAR_INDEX,
STAT_DIR_TYPE_COUNTE... | [
"mojtaba.eshghi@ut.ac.ir"
] | mojtaba.eshghi@ut.ac.ir |
e9433e601251e779c8cb6d7ba10c0e5bb355599e | 5d09a567371f01944640825e5376e9b2ba61e414 | /bruges/_version.py | 0295ee8bd3a78cfff23ea1046bc3b54dceab61ea | [
"Apache-2.0"
] | permissive | JaHerbas/bruges | e4123227211b784a7198f50ae16d3f75e6deaf87 | 600ac12542b1f3a821c765c84103056b483f9592 | refs/heads/master | 2022-11-19T16:51:14.100596 | 2020-06-29T16:48:04 | 2020-06-29T16:48:04 | 287,057,123 | 1 | 0 | Apache-2.0 | 2020-08-12T16:01:02 | 2020-08-12T16:01:01 | null | UTF-8 | Python | false | false | 134 | py | # -*- coding: utf-8 -*-
"""
Version.
Doing it this way provides for access in setup.py and via __version__
"""
__version__ = "0.3.4"
| [
"matt@agilegeoscience.com"
] | matt@agilegeoscience.com |
619abc16cc87fd381d0c71cd295c90289ae0c105 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/tests/unit/cloudfront/test_signed_urls.py | c1a90452596f88979b442f4950bf1fe22ccf8388 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 16,806 | py | import tempfile
import unittest
from boto.compat import StringIO, six, json
from textwrap import dedent
from boto.cloudfront.distribution import Distribution
class CloudfrontSignedUrlsTest(unittest.TestCase):
cloudfront = True
notdefault = True
def setUp(self):
self.pk_str = dedent("""
... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
e939912f2249caa15a9a2e2a44441d3c51295a3e | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/models_20200405014904.py | 84680e0f9fcf0a3157a23d742b53d39543436889 | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from django.db import models
class CardBrand(models.Model):
name = models.CharField(max_length=128)
class CarModel(models.Model):
name = models.CharField(max_length=128)
brand = models.ForeignKey(CardBrand, on_delete = models.CASCADE)
class CarTrim(models.Model):
name = models.CharField(max_l... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
0cb0ad8cc003f75c22d01e9d9ea9392b696af8a1 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_configurations_operations.py | b32bcd3c3c179df22f85dedeb08a741b36b42496 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 39,887 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
81f2666603fc8db3deee26648203312efa4e3ec4 | 38c606ed14564591c1aa6e65c7dab255aebf76f9 | /0x05-python-exceptions/0-safe_print_list.py | 1456e72e85f884e8832fd10af490d9d2ca48830f | [] | no_license | camilooob/holbertonschool-higher_level_programming | d7cee708b308bed86fcc384d7451de26fa9cafaa | db9b6760e7e4998c5f00a4f2cfeb17ec14e44cab | refs/heads/master | 2020-09-29T00:19:25.736344 | 2020-05-15T01:34:32 | 2020-05-15T01:34:32 | 226,900,553 | 1 | 8 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/python3
def safe_print_list(my_list=[], x=0):
try:
num = 0
for i in my_list:
if num < x:
print("{}".format(i), end='')
num += 1
print('')
return num
except SyntaxError:
print("Error Syntax")
| [
"camilobaq@hotmail.com"
] | camilobaq@hotmail.com |
4272b080852529f52d0d405f602c0ee99176a6c4 | b50404a323b753d0afa3697839b8b1db623e1533 | /apps/trade/views.py | c5d9101f8815f364b39f4bff9462aff7e4ec1793 | [] | no_license | pigliangliang/shopping_drf | 5e355c321aa1ce535ff0a78c54060dc2e6835167 | 7a169187acb3d64cb072e9aaf9b018f8b8559c23 | refs/heads/master | 2020-04-09T04:50:48.220319 | 2018-12-02T11:17:47 | 2018-12-02T11:17:47 | 160,039,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.viewsets import ModelViewSet
from .serializers import ShoopingCardSerializers
from .models import ShoppingCard
from rest_framework import permissions
from utils.permissions import IsOwnerOrReadOnly
class ShoppingCardViewsets(ModelView... | [
"836904717@qq.com"
] | 836904717@qq.com |
43bcea41ef2531e5ca66b20fb8b8dc9afd8c7f0f | 45be4ca6db49cfeeee722f94a21481634898c851 | /deepneuro/outputs/radiomics.py | 54c1934c818e526a00179f6e9af90f83aa36f5d9 | [
"MIT"
] | permissive | QTIM-Lab/DeepNeuro | 30de49d7cf5d15411591988bca5e284b4fe52ff5 | 8a55a958660227859439df003ac39b98ce3da1b0 | refs/heads/master | 2021-07-13T01:05:19.374945 | 2020-06-24T13:00:14 | 2020-06-24T13:00:14 | 93,092,834 | 122 | 40 | MIT | 2019-12-12T09:30:31 | 2017-06-01T19:36:34 | Jupyter Notebook | UTF-8 | Python | false | false | 37 | py |
if __name__ == '__main__':
pass | [
"andrew_beers@alumni.brown.edu"
] | andrew_beers@alumni.brown.edu |
7169c5ded84f3ef63c5252fab96172ffbb89d597 | 68750ca817b137ca1175a548954dd4d33580f307 | /2021/day10/part1.py | bab8350c5cdf0a5b91317ea9e63a8ac4b71ba73a | [] | no_license | RustyBower/AdventOfCode | 3a0e205cd040ac1d699d6fa82789f39a91942ad1 | 057309a054d5b6d6817bd8c627e8c9c67d084e6a | refs/heads/master | 2022-12-23T01:14:15.443652 | 2022-12-16T03:51:14 | 2022-12-16T03:51:14 | 160,075,420 | 1 | 1 | null | 2018-12-03T18:31:34 | 2018-12-02T18:09:17 | Python | UTF-8 | Python | false | false | 1,214 | py | #!/usr/bin/env python
from collections import Counter, deque
with open('input') as f:
data = f.read().splitlines()
counter = Counter()
for row in data:
d = deque()
for character in row:
if character in ['(', '[', '{', '<']:
d.append(character)
else:
c = d.pop()
... | [
"rusty@rustybower.com"
] | rusty@rustybower.com |
9ba65a810fe8155cf36dfac083ba1a87049ecf33 | 13ad53bd54e0fea96a8718a12486e6bca2cde5e3 | /Python/6kyu/TakeATenMinuteWalk.py | 2929a6567259480d814218977c7653c7a4c605c2 | [] | no_license | WinrichSy/Codewars_Solutions | 5cb354b15998167010416bba0b09855e717019b2 | 6904719eb05cf804694f26dbbb11277b90296d97 | refs/heads/master | 2023-02-02T22:09:08.453192 | 2020-12-23T19:51:30 | 2020-12-23T19:51:30 | 256,636,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | #Take a Ten Minute Walk
#https://www.codewars.com/kata/54da539698b8a2ad76000228
def isValidWalk(walk):
start_x = 0
start_y = 0
current_x = 0
current_y = 0
for i in walk:
if i == 'e':
current_x += 1
elif i == 'w':
current_x -= 1
elif i == 'n':
... | [
"winrichsy@gmail.com"
] | winrichsy@gmail.com |
515672fad70aee604234a45ab9d9f64acd11f0a5 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/Vue.js/juejin_2772.py | d3a9723916bc966fac7ca9e410aab48408e13a0b | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72,033 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6971008618326196238", "article_info": {"article_id": "6971008618326196238", "user_id": "2445776676459773", "category_id": "6809637767543259144", "tag_ids": [6809640369764958215, 6809640407484334093], "visible_level": 0, "link_url": "", "cover_image": "", "is_... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
6578dc418a8515078f333cefae529d1a21651dae | 04c21e01c7dd002d0d66f26f17294bbe25ab30c1 | /src/core/models/ticket/hash_tags.py | 7b88d3b89db0e6a87c5777732eb6d62081cb77ca | [] | no_license | unbrokenguy/Q-n-A-rest-api | 29d1a7614d761bf68f38bbbbbd731c3692afccf7 | dd483993e304d6660c8c8f7518bf7414efd8ec28 | refs/heads/master | 2023-06-03T20:19:52.606677 | 2021-06-18T09:35:27 | 2021-06-18T09:35:27 | 376,749,787 | 0 | 0 | null | 2021-06-18T09:35:27 | 2021-06-14T08:08:44 | Python | UTF-8 | Python | false | false | 448 | py | from django.db import models
class HashTag(models.Model):
"""
HashTag Django ORM model
HashTag is needed to divide tickets into categories
To make it easier to sort similar questions
Attributes:
name: String - Name of HashTag category.
description: String - Description of HashTag.
... | [
"khazievbulatphanzilovich@gmail.com"
] | khazievbulatphanzilovich@gmail.com |
d03c477901cb769906e77c7f4f609094aefce5d7 | aa5adcb0082a718f60373df1102a904d3432f75b | /tests/test_utils.py | c7b96c0a352f3c53b875eae3d0dfe6609aa6705d | [
"Apache-2.0"
] | permissive | charleswhchan/dwave-cloud-client | 77354d6807e22ce3756909c2c493de9a16b5de6d | da029c18c5c0956f8ec6c2bd4456c396749d3b8c | refs/heads/master | 2020-03-07T16:10:37.444498 | 2018-03-28T15:48:08 | 2018-03-28T15:48:08 | 127,575,188 | 0 | 0 | Apache-2.0 | 2018-03-31T22:09:16 | 2018-03-31T22:09:15 | null | UTF-8 | Python | false | false | 1,251 | py | import unittest
from collections import OrderedDict
try:
import unittest.mock as mock
except ImportError:
import mock
from dwave.cloud.utils import readline_input, uniform_iterator, uniform_get
class TestUtils(unittest.TestCase):
def test_uniform_iterator(self):
items = [('a', 1), ('b', 2)]
... | [
"radomir@dwavesys.com"
] | radomir@dwavesys.com |
90a03c2986d5e87b1b93d2d6117aae5929592838 | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Autumn18/ZJetsToNuNu_HT-600To800_13TeV-madgraph_cff.py | f3e237d8cafb49a0310a0c9b2a8abfaee346780a | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 39,051 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIIAutumn18Mi... | [
"Alexx.Perloff@Colorado.edu"
] | Alexx.Perloff@Colorado.edu |
34b4a30d6754447312fd94302cdfa14472a34020 | ab40571d5051ad53c0f205fa797ba36eac516d06 | /language/compgen/csl/cky/cfg_parser.py | 92a7d72c02d52b9260e21db3a10006d9b59083d4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | google-research/language | e941b1a92ab46d40d8d03bb0c314905cb6902ce2 | ac9447064195e06de48cc91ff642f7fffa28ffe8 | refs/heads/master | 2023-08-24T23:10:13.207294 | 2023-05-25T20:47:18 | 2023-05-25T22:29:27 | 153,201,352 | 1,567 | 371 | Apache-2.0 | 2023-07-06T23:03:15 | 2018-10-16T00:58:14 | Python | UTF-8 | Python | false | false | 11,196 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
8c889c5ac97d14410f82f755a4a08f21724d7b0f | bccfab4d853f7417401a084be95de293e66ccd2a | /mySpider/spiders/Collection89.py | 74576890f0372a7d4710ca0c107984a19f241433 | [] | no_license | CS1803-SE/The-First-Subsystem | a8af03ce04a9de72a6b78ece6411bac4c02ae170 | 4829ffd6a83133479c385d6afc3101339d279ed6 | refs/heads/main | 2023-05-06T02:32:08.751139 | 2021-05-24T06:09:37 | 2021-05-24T06:09:37 | 363,400,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | from ..items import *
from ..str_filter import *
class Collection89(scrapy.Spider):
name = "Collection89"
allowed_domains = ['gthyjng.com']
start_urls = ['http://www.gthyjng.com/gcww/wwjs/jfzzsq/']
custom_settings = {
'ITEM_PIPELINES': {
'mySpider.pipelines.CollectionPipeLine': 301... | [
"1300978939@qq.com"
] | 1300978939@qq.com |
4884147a83b4f78a774cd708ce0b772bc35e3e2e | 56169cc42c21baeb0773a11f9dc2d14bc873e094 | /konkursy/09_2010/bukiet.py | b54d26ec7f38a1af499b614ce8e194788218eb06 | [] | no_license | PROGRAMMINinGPYTHON/minilogia | cc1842bb1e5a388c6d7c71bb7b8412776c1ed26b | 346b97671a72046d45e1736b11ba360a92f32c6f | refs/heads/master | 2021-07-09T00:47:11.406056 | 2021-03-28T11:19:13 | 2021-03-28T11:19:13 | 234,959,810 | 0 | 0 | null | 2020-03-21T19:07:48 | 2020-01-19T20:19:22 | Python | UTF-8 | Python | false | false | 350 | py | from turtle import *
def BUKIET(ile,d):
for j in range(ile):
setheading((360/ile)*j)
kwiatek(d)
pu()
setpos(0,0)
pd()
def kwiatek(d):
fd(200)
rt(60)
for i in range(60):
a = 80-(d*i)
if a<10:
break
fd(a)
rt(60)
... | [
"59664343+PROGRAMMINinGPYTHON@users.noreply.github.com"
] | 59664343+PROGRAMMINinGPYTHON@users.noreply.github.com |
3c705e668973460f9154584d5db041c0b76762ae | 2eed59d26ae85b5b7c88d4e79e83bcf47d4e4580 | /platforms/windows/remote/4027.py | a995ffdc923612c7ffd05e375a4c77ffbf3a7243 | [] | no_license | m0n0ph1/exploit-database | 160942d705d6ddbf2f1998bf7307919173105fe7 | 60e5c6c2a0962277a186d3c734127aa1f4e6f805 | refs/heads/master | 2020-04-05T23:43:00.969242 | 2014-10-13T04:45:24 | 2014-10-13T04:45:24 | 25,157,394 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,001 | py | #!/usr/bin/python
#
# IBM Tivoli Provisioning Manager PRE AUTH Remote Exploit
# http://dvlabs.tippingpoint.com/advisory/TPTI-07-05
# Tested on windows 2003 server SP0.
# Coded by Mati Aharoni
# muts@offensive-security.com
# http://www.offensive-security.com/0day/ibm-ti-pro.py
# Notes:
# * Egghunter can take upto 5 min... | [
"info@exploit-db.com"
] | info@exploit-db.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.