blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bec6fd80e3ea2f7a84ac32ccb92ea92a81ec74c5 | 9efe6f966b23371edb6eaa5f91a7f4928094ce70 | /server/backend/machine/serializer.py | b5f2d74851e6c91fa85743b0daf879aac6004535 | [] | no_license | bmotevalli/condition-monitoring | 309c1a54ed80379ce5e26bc686ff63fd1ca45ea0 | 7816445546dcf9e81cceabb1acb654f65eb85cbf | refs/heads/master | 2023-08-15T19:52:15.112264 | 2020-08-10T11:58:47 | 2020-08-10T11:58:47 | 282,407,148 | 0 | 0 | null | 2021-09-22T19:37:25 | 2020-07-25T08:54:31 | JavaScript | UTF-8 | Python | false | false | 455 | py | from rest_framework import serializers
from machine.models import Machine, Sensor, TimeSeries
class MachineSerializer(serializers.ModelSerializer):
class Meta:
model=Machine
fields="__all__"
class SensorSerializer(serializers.ModelSerializer):
class Meta:
model=Sensor
field... | [
"n.taherifar@gmail.com"
] | n.taherifar@gmail.com |
a508b0946ef1eb6e66bea0da2040124e9cd0befb | d2b51283be8d71e9eab19124b9f8900d6724a0ef | /netmiko/linux/linux_ssh.py | 7527cd959551511159278f80cdbf05cbeff79bb0 | [
"MIT"
] | permissive | patel26jay/CONFIG | 0aa41467adb35ca59ffd637841630cad01ef1ae2 | 6cd139415f18df3e6e41f12fa0e38d239f14d6b8 | refs/heads/master | 2021-05-06T19:25:42.729045 | 2017-11-27T01:28:38 | 2017-11-27T01:28:38 | 112,130,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | from __future__ import unicode_literals
import re
import socket
import time
from netmiko.cisco_base_connection import CiscoSSHConnection
from netmiko.ssh_exception import NetMikoTimeoutException
class LinuxSSH(CiscoSSHConnection):
def session_preparation(self):
"""Prepare the session after the connecti... | [
"patel26jay@gmail.com"
] | patel26jay@gmail.com |
daaac2f7da0023e63824e4f3ecceb5eb722fa571 | 59a4ffb20a830aaa63c471a324cf660dbad13c1c | /DeepNodes/activations.py | b80e015b417986f151dd16955af92da6d4f64874 | [
"MIT"
] | permissive | kyuunin/DeepNodes | d5c678bbe54a548e8c529fa085ac1656434b5487 | 17747b20b8bb803d3472dc0e31ba6833d724bb35 | refs/heads/master | 2022-11-11T03:59:54.877205 | 2020-07-02T21:30:03 | 2020-07-02T21:30:03 | 276,690,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import torch.nn.functional as F
activations = {
"id": (lambda x: x),
"relu": F.relu_,
"hardtanh": F.hardtanh_,
"relu6": (lambda x:F.relu6_(x,inplace=True)),
"elu": F.elu_,
"selu": (lambda x:F.selu(x,inplace=True)),
"celu": (lambda x:F.celu(x,inplace=True)),
"leaky_relu": F.leaky_relu_,
... | [
"cneumann@students.uni-mainz.de"
] | cneumann@students.uni-mainz.de |
5909b8a429dde3c3db85365a4a2fcafe8504a73c | 6febd920ced70cbb19695801a163c437e7be44d4 | /leetcode_oj/string/strStr.py | b0bc9a66ec3e9adf67f316f37ee2da101b6c25ef | [] | no_license | AngryBird3/gotta_code | b0ab47e846b424107dbd3b03e0c0f3afbd239c60 | b9975fef5fa4843bf95d067bea6d064723484289 | refs/heads/master | 2021-01-20T16:47:35.098125 | 2018-03-24T21:31:01 | 2018-03-24T21:31:01 | 53,180,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | class Solution(object):
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
if not haystack and not needle:
return 0
for i in range(len(haystack) - len(needle) + 1):
match = True
for... | [
"dhaaraa.darji@gmail.com"
] | dhaaraa.darji@gmail.com |
6f7b66a092a1ba668bb12f1f51f409beabc05222 | 613789c1ed6425600194e0a98177a0a5a213d63b | /Utility.py | 42fcfe694419e1489a99ec7a942730579280ba58 | [] | no_license | hadeelayoub/Just_Flex_Copy | 0f10aac0453509f13e3665f68a8725a7c5b04ec7 | e0c6ae47280646172e166d55fbb0503c53172b0d | refs/heads/master | 2020-03-16T11:26:21.465678 | 2018-08-16T23:53:40 | 2018-08-16T23:53:40 | 132,648,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import math
class Utility:
"""Class of useful utility functions"""
def __init__(self):
return
@staticmethod
def euc(a, b):
"""Calculate Euclidean distance between two vectors
Parameters `a` and `b` should be of identical dimension.
:param a: First input vector
... | [
"edhill@daedalusai.com"
] | edhill@daedalusai.com |
a7e448139f2bd614be72df1a7ece9dde49e3be0f | 2a7e44adc8744c55a25e3cafcc2fa19a1607e697 | /settings_inspector/management/commands/inspect_settings.py | 6f7437af5ca147fdd91a75feddb2467cdbec5bf7 | [
"MIT"
] | permissive | fcurella/django-settings_inspector | 45529288dc8dde264383739c55abe6a9d2077ded | 69a6295de865f540d024e79aab4d211ce3c1d847 | refs/heads/master | 2020-06-04T01:57:17.216783 | 2012-01-05T19:05:12 | 2012-01-05T19:05:12 | 2,989,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from settings_inspector.parser import Setting
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
def handle(self, *args, **options):
root_setting = Setting('django.conf')
import ipdb; ipdb.set_trace()
| [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
c8e02b9b5c879e0b86c644cc5d67238be6fee662 | 176497ba1cea7233f249a5f439a65f7c472b267f | /06_blog_detail/01_fix_capturing_path_components/portfolio/urls.py | 4a04f504ac61f76660e661e918f5599fa68f8d02 | [] | no_license | CodingNomads/django-web-dev | 79a3a94707489ca0d5f0bf49193b7ffdf6270f4a | e03b8ed130f100afb0296c0d76a84206fbbf789d | refs/heads/master | 2023-05-02T05:12:21.427462 | 2022-11-06T17:56:14 | 2022-11-06T17:56:14 | 235,174,521 | 1 | 7 | null | 2023-04-21T20:54:10 | 2020-01-20T18:53:31 | Python | UTF-8 | Python | false | false | 809 | py | """portfolio 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-bas... | [
"breuss.martin@gmail.com"
] | breuss.martin@gmail.com |
a04179ec631fa9ee2c77775b4b950d00ead1cff3 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/machinelearning/azure-mgmt-machinelearningservices/generated_samples/registry/code_container/get.py | c8b1ce0c2a7ca85de612a46ed698cd5daf7180dc | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,674 | 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 ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
7e4bc63ff0c99cb0211fe28f6037acca5e125649 | 4383ca5e60ce9786aa6db8c4f9063740d38f65ed | /replaceClass.py | 011ce1ccc3853e9243b9b0f2bdbb3358d3227670 | [] | no_license | sahajamatya/replace-classes | f10cb4289b179e4dd4443452ee987903e0fe50c5 | aaa3c0459d50117ebea53b4dcb75a869c7d5755b | refs/heads/main | 2023-08-18T17:29:50.139440 | 2021-09-29T16:23:29 | 2021-09-29T16:23:29 | 411,743,259 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | # Sahaj Amatya, 1001661825
import sys
# listifyLines() returns the file line as a list
def listifyLines(line):
arr = line.split(" ")
while("" in arr):
arr.remove("")
arr[len(arr) - 1] = arr[len(arr) - 1].replace('\n', '')
return arr
# getFileData() returns the file data as a 2D list
def ge... | [
"sahajamatya1@gmail.com"
] | sahajamatya1@gmail.com |
0abaa1f067fce6941cc52d9f663902655fa72690 | 59976302a73b91a4e539428ec09cc6e419fb77ec | /TP_9_Matrices/TP3_EJ2A.py | 40ea87c97f77ae07122469acb617ce74c2d90d9a | [] | no_license | aguscoppe/ejercicios-python | 5f8e839cb4cb7d789555c30e1de37da7308f01b5 | cc001b520225e623a577ea6fce63c49eeee4803b | refs/heads/master | 2023-01-13T07:08:16.203962 | 2020-11-16T21:42:21 | 2020-11-16T21:42:21 | 302,476,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | def imprimirMatriz(matriz):
filas = len(matriz)
columnas = len(matriz[0])
for f in range(filas):
for c in range(columnas):
print("%3d" %matriz[f][c], end="")
print()
def rellenarMatriz(matriz):
filas = len(matriz)
columnas = len(matriz[0])
n = 1
for f... | [
"noreply@github.com"
] | aguscoppe.noreply@github.com |
bb144a2611bdf1bcc08cdf8a0c080015a129f699 | 02569e805e7191d21212631d8e6818cb396702d5 | /scripts/DimRed.py | 4842f5d3db4519a6cfbbba064506e3f2a80828ce | [] | no_license | asstergi/Big-Data-and-Business-Analytics-Thesis-AUEB | f390a17f6dcf377b494d8da4c1c89538981986d2 | a6504c4b1c940bb1f4b9a0caa93f0212241f575a | refs/heads/master | 2020-12-24T14:00:39.085196 | 2018-04-07T14:45:42 | 2018-04-07T14:45:42 | 27,644,214 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,889 | py | #!/usr/bin/env python
from __future__ import division
import re
import numpy as np
import pandas as pd
from scipy.sparse import vstack, csr_matrix
from sklearn import metrics
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from sklearn.preprocessing import LabelEncoder
from sklearn.feature... | [
"a.stergioudis@gmail.com"
] | a.stergioudis@gmail.com |
88b8a76d8eea00920d813fef2ae4105f8208a9db | 14bbbb474765cfa43f73d52e68ce66b4b9f04f7e | /lab02/lab02example01/scripts/subscriber_node.py | 918f029842c6bb8fbc85fc5af45327f81293b04f | [] | no_license | ucabwl2/robotics_system_hw | 267a6d209cb9df37f68261092d0c4f41c4b3e40e | 5da51ce01498ba1f4693522ac51467858e268cae | refs/heads/main | 2023-01-31T18:44:16.006437 | 2020-12-08T19:33:21 | 2020-12-08T19:33:21 | 319,704,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float64MultiArray
def callback(msg):
print 'Incoming message: ', msg.data
def listener():
rospy.init_node('listener', anonymous=True)
sub = rospy.Subscriber("chatter", Float64MultiArray, callback)
rospy.spin()
if __name__ == '__main__':... | [
"krittin.pachtrachai.13@ucl.ac.uk"
] | krittin.pachtrachai.13@ucl.ac.uk |
6c0e4ea1a74613b04f657d103905ed557e74cd28 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test002/数据类型_20201205183212.py | 0498acedcb8af7250b1f43f9d0736323a1f60b37 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | # fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
# print(fruits.count("apple"))
# a = fruits.index("banana",4)
# print(a)
# fruits.reverse()
# print(fruits)
# fruits.append("daka")
# print(fruits)
# print(fruits.sort)
# a = fruits.pop(0)
# print(a)
# print(fruits)
# number = [1,2,45,3... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
35a79b4fdf4e0ea3e84ae6fc05370aca40fda015 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/eventarc/v1/eventarc-v1-py/google/cloud/eventarc_v1/services/eventarc/transports/grpc.py | f6847c60fe490f76ea1ee075399c4f7fea0ff76a | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,587 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
c1d6cc614de179239cd85b1aff00551fe5a70de7 | 9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0 | /venv/lib/python3.8/site-packages/numpy/lib/tests/test_function_base.py | 26214a10c602d958990ec1631e13077862370069 | [] | no_license | baruwaa12/Projects | 6ca92561fb440c63eb48c9d1114b3fc8fa43f593 | 0d9a7b833f24729095308332b28c1cde63e9414d | refs/heads/main | 2022-10-21T14:13:47.551218 | 2022-10-09T11:03:49 | 2022-10-09T11:03:49 | 160,078,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/da/24/8d/ec9cb0de3f3cfb086257743551eecf0a43e5ea4e63881af9e8d6632865 | [
"45532744+baruwaa12@users.noreply.github.com"
] | 45532744+baruwaa12@users.noreply.github.com |
9a2de85db36568de7db8a1ae872a1bf8e2e28c9e | 4470e03f1e2843f67a36c89c9c92b4b98b903d30 | /Artificial Intelligence/multiagent/try/multiAgents2.py | 10225b7a5977de44f5ca549c6d102270cb3f4f3f | [] | no_license | pkgishere/Academic-Projects | 2a7a3120179af4709a95b4445f7ae33e1ba14dea | c5aeb81190bab6f1be1e0da0fe2beb33f903af97 | refs/heads/master | 2021-08-16T05:03:10.932407 | 2017-11-19T01:02:08 | 2017-11-19T01:02:08 | 110,476,914 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,218 | py | # multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.e... | [
"pkgishere@gmail.com"
] | pkgishere@gmail.com |
601405d16c40a5be1781f422a484d84140e8ee3e | 17f842c91b005ec5f04873863e83c3cbe2cc0808 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/config.gypi | c3a0a323c3949ecf80aa088aa8889b5a2926fcd3 | [
"MIT"
] | permissive | JeffKGabriel/Chatts | e04085d73dd1ffd9e991d4d16bfe25a499a3c4d5 | bcea9576f646dec1fa776601df6903d94bfd02c1 | refs/heads/master | 2016-09-05T11:55:50.436788 | 2013-04-05T19:32:51 | 2013-04-05T19:32:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 42,
"host_arch": "x64",
"node_install_npm": ... | [
"jeffreygabriel@Jeffrey-Gabriels-MacBook-Pro.local"
] | jeffreygabriel@Jeffrey-Gabriels-MacBook-Pro.local |
8c73a626279a8279f58605d57986fed262257c4e | a2d231ebc1ca11f974613870aef66cb615ce7120 | /Lista2/subset.py | 70f203cbfea6431338bd023c9e4e778c3dd284a3 | [] | no_license | CristianoSouza/Doutorado-PAA | ab3eb19bdf54b4a397a9ce134c03662154a615ff | 9208002cf91f057a537717623c228254e3cdd97c | refs/heads/master | 2020-03-15T23:37:01.361800 | 2018-06-26T04:38:54 | 2018-06-26T04:38:54 | 132,397,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import numpy as n
import Queue as q
import numpy as np
class Subset:
numero = None
pai = None
rank = 0
| [
"cristianoantonio.souza10@gmail.com"
] | cristianoantonio.souza10@gmail.com |
91067497b8fa73992688003dd7a5316582a8352d | 6c6719d07123034f3f18e3dd87a3e7acb1a7c374 | /UniqueOrder.py | 398251a7686ba39f744823d90c975292f56d4cd1 | [] | no_license | HighlySupreme/CodeWars | bd7266c1b23f0bc38c453efa89933754ae090db8 | b61c567268ab63f3fed6b2b4d5eb6ff7789e8f9f | refs/heads/master | 2023-06-08T10:57:07.900201 | 2021-06-22T09:09:26 | 2021-06-22T09:09:26 | 375,947,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # Implement the function unique_in_order which takes as argument a sequence and returns a list of items without any elements with the same value next to each other and preserving the original order of elements.
# For example:
# unique_in_order('AAAABBBCCDAABBB') == ['A', 'B', 'C', 'D', 'A', 'B']
# unique_in_order('AB... | [
"gal.1999k@gmail.com"
] | gal.1999k@gmail.com |
6f87d67a78dea8a63ec6ae22d12f0f19ea1f3156 | d72e96389c479f67033931a010c954905d61b31d | /python/crashcourse/chap2/name_practice.py | 079baeac6efe22bb7e25c3568b4fb48b79192f6e | [] | no_license | kalima32/hello-world | 256c3aa9e996a7fb750aeaeaa2cf09591712a0ae | 214be215ab50602b694725fca882f95728ff03a8 | refs/heads/master | 2021-07-20T00:53:14.287219 | 2020-04-26T01:03:06 | 2020-04-26T01:03:06 | 140,461,871 | 0 | 0 | null | 2018-07-10T17:15:44 | 2018-07-10T16:45:32 | null | UTF-8 | Python | false | false | 739 | py | first_name = "bob"
last_name = "johnson"
whole_name = first_name.title() + " " + last_name.title()
famous_first_name = "groucho"
famous_last_name = "marx"
famous_whole_name = famous_first_name.title() + " " + famous_last_name.title()
print(f"This is practice with names!")
print(first_name.title() + " " + last_name.tit... | [
"josh@osx-jcasto.local"
] | josh@osx-jcasto.local |
e371120a4587f7edeed803eaedf3fa2de529f2e3 | 26ac73a3295abcd41d6124e05a62a775dc4111e9 | /src/ccl_malaria/logregs_fit.py | 047bdf03f160b3523ea921a3ac68ca6a19e38dc2 | [] | no_license | sdvillal/ccl-malaria | 78ed74740076981a51a301c2b6f2747eb18526dd | a28f7ef8f172c1374f5c079fdab8366333b2d56b | refs/heads/master | 2021-01-13T01:55:22.486971 | 2018-02-05T18:10:42 | 2018-02-05T18:10:42 | 17,605,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,959 | py | # coding=utf-8
"""Experiments with Morgan fingerprints and logistic regression (sklearn and vowpal wabbit)."""
from __future__ import print_function, division
from collections import OrderedDict
from copy import copy
import hashlib
from itertools import product
import os.path as op
import json
from time import time
im... | [
"sdvillal@gmail.com"
] | sdvillal@gmail.com |
da080bc3ffe0ad4f0d4461acf3bf439970b3713b | d706f83450d32256e568ea2e279649b9d85ddb94 | /accounts/views.py | 8cd59810b95abf689b8f6bdf3151729484d2fb7d | [] | no_license | celord/advacneddjango | 146d3d4ae351803b37e8599225b38b948e42a8b7 | 044d172fb10556cdeede6888dcec5f466097754d | refs/heads/main | 2023-08-18T19:26:07.230821 | 2021-09-26T17:58:45 | 2021-09-26T17:58:45 | 406,921,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # accounts/views.py
from django.urls import reverse_lazy
from django.views import generic
from .forms import CustomUserCreationForm
class SignupPageView(generic.CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy('login')
template_name = 'registration/signup.html'
| [
"celord@gmail.com"
] | celord@gmail.com |
db62acc5b5c6704db566b47448faeaed2132e6ba | bb64d7194d9f7e8ef6fc2dbfdbc0569713d1079c | /FocalLoss.py | 74a05c5aa62338c5c30e91a1981482671095182f | [] | no_license | scott-mao/Top-Related-Meta-Learning-Method-for-Few-Shot-Detection | 471e7d6e71255333d9b4c929023d7e43ef19fdd2 | 49bfd702f41deaec60fa95314436f69b4e217e6f | refs/heads/main | 2023-04-11T13:00:13.358560 | 2021-04-27T02:24:23 | 2021-04-27T02:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,767 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# --------------------------------------------------------
# Licensed under The MIT License [see LICENSE for details]
# Written by Chao CHEN (chaochancs@gmail.com)
# Created On: 2017-08-11
# --------------------------------------------------------
import torch
import torch.... | [
"noreply@github.com"
] | scott-mao.noreply@github.com |
135a875898921530dc0d9ed13b5bd02d13a96cbc | ee2af8c0fdc65f44ed9a4295806d75fb09257b58 | /saif/google_api_integreation/__manifest__.py | db20488330aedd7f71c7ecfb68f2ce9990548508 | [] | no_license | sc4you/odoo-project | 02b81ff4920a69d3e79c5dcc605a794779c5a77c | 2ef439ef54f1165c3569a1047cd5cb6a0b50572e | refs/heads/master | 2020-03-21T13:34:52.555402 | 2018-03-19T12:26:39 | 2018-03-19T12:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
{
'name': 'Google Docs Integration',
'category': 'Extra Tools',
'summary': 'Spreadsheet, Document, Presentation',
'description': 'Google Docs Integration: This Module lets you to develop,'\
'read and modify Spreadsheet, Document, Presentation',
'author': 'Muhammad Awais',
'depends':['base... | [
"ta.awaisajaz@gmail.com"
] | ta.awaisajaz@gmail.com |
db9830c43f9f8310d1aa07d4442177ea58f86be6 | a6a211fb59f01a81f39ea9a8b3b2758eb27b54ee | /scientific_computing/boilerplate-polygon-area-calculator/shape_calculator.py | 35562df082d8582a2c3cc46a80a71c0a79308f32 | [
"MIT"
] | permissive | gantro/FreeCodeCampPython | a77985ce1ae280fffd3fe1c451cc9f575a148866 | e1a0d215051a302368953c97e9e7210bc35c98e8 | refs/heads/main | 2023-01-21T10:14:09.275656 | 2020-12-06T16:40:14 | 2020-12-06T16:40:14 | 318,668,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def __repr__(self):
return ('Rectangle(width=%d, height=%d)' % (self.width, self.height))
def set_width(self, val):
self.width = val
def set_height(self, val):
self.height = val
def get_area(se... | [
"noreply@github.com"
] | gantro.noreply@github.com |
766945fca1dafdff946a66682bf3cdc66afaa281 | fa774cfc17462e469aaa977f2b8841cc542e5c31 | /interview-prep/trees&graphs/excs12/pathsWithSum.py | 6d548c455c966ca862eaee6fe9f0abe778d88e04 | [] | no_license | kristopherrollert/daily-coding | dc5319da272d1de3350bc862a6539e9214a3c28a | b1e500722919cc9571f7b2edf81bcee1a8dc32e3 | refs/heads/master | 2020-09-01T22:27:50.968008 | 2020-01-02T19:27:47 | 2020-01-02T19:27:47 | 219,074,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # Paths with Sum: You are given a binary tree in which each node contains an
# integer value (which might be positive or negative). Design an algorithm to
# count the number of paths that sum to a given value. The path does not need to
# start or end at the root or leaf, but it must go downwards (traveling only
# from ... | [
"krollert@ucsc.edu"
] | krollert@ucsc.edu |
6114b62911bc8b004342e18dd2ca4b7eaed01aaa | 8bba06939a8cce6b5ecce25d15f9f9062b8206d8 | /pyrelacs/NixIterators.py | 31b3b33958cc313e684a0b3aa724840915e1bf49 | [] | no_license | jpresern/pyrelacs | e72c82d999e5d97eaecde2eed1bee94041fe46f3 | 62eefec7541406eeb30d932b8a844ea5abef2fd6 | refs/heads/master | 2021-01-18T02:30:25.237867 | 2016-03-11T14:47:20 | 2016-03-11T14:47:20 | 27,421,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | from IPython import embed
import nix
import numpy as np
def trial_iterator(multi_tag):
traces = {r.name:np.asarray(r.data) for r in multi_tag.references if r.dimensions[0].dimension_type.name == 'Set'}
sample_interv = {r.name:r.dimensions[0].sampling_interval for r in multi_tag.references if r.dimensions[0].d... | [
"fabian.sinz@uni-tuebingen.de"
] | fabian.sinz@uni-tuebingen.de |
e6b1231d380c090b085d6fbd5dd39d9f6f7f2b19 | 63db68b84ce01c38ab5ebe902f1c29cae6a97c79 | /crawler/test03.py | c2ff873ad378be2321918b460d14a0d5a91c4c0e | [] | no_license | f1ybird/spider-test | d590870c441222f1a9ea230808644e2ed6cd226b | 7176e92fe1de8f6e8420a076d32f1b7ae800e915 | refs/heads/master | 2020-03-31T05:43:37.155179 | 2018-10-14T13:02:22 | 2018-10-14T13:02:22 | 151,956,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | # !/usr/bin/python
# -*- coding:UTF-8 -*-
import requests
from lxml import etree
'''
Python爬取大量数据时,如何防止IP被封
以下是爬取猪八戒的被封IP的代码
'''
def getUrl():
for i in range(70):
url = 'http://task.zbj.com/t-ppsj/page{}.html'.format(i + 1)
spiderPage(url)
def spiderPage(url):
if url is None:
... | [
"kevin_love_it@163.com"
] | kevin_love_it@163.com |
07149dd3258d1a4bcf5c06dd29bf4920a2913ff3 | 62fba3c7fe99d29985f12d2915853c4269f5d2fc | /test/functional/feature_nulldummy.py | 8c6f5d9e4d7eea4da36d75a1008353a7fd11920f | [
"MIT"
] | permissive | cnccdev/wes_coind | fe88222d5f5ac9f0b91b54d2b97e34700175c912 | a15d64caa24dec050f997fe2031d518ee1d76836 | refs/heads/master | 2020-05-22T23:49:06.733413 | 2019-05-22T01:53:20 | 2019-05-22T01:53:20 | 186,550,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,442 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test NULLDUMMY softfork.
Connect to a single node.
Generate 2 blocks (save the coinbases for later).
G... | [
"cncc.dev@gmail.com"
] | cncc.dev@gmail.com |
d1e235f90fe632da6056a1699aa45cd1791dfaf4 | f607b81e445c3e38f74ad635f97314c036c9f1d8 | /newjarvis.py | a1c9db184a35b3f502c44f02221baec26ade3351 | [] | no_license | Shivansh1200/Python_world | 655d3bf327dd0d9ebaf86c9907098273f689fe3c | 19fc07bdf3d73055f4d1d4fc4eacc4b678e1fc1d | refs/heads/master | 2023-07-06T12:56:43.680624 | 2021-08-02T19:36:59 | 2021-08-02T19:36:59 | 259,650,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,429 | py | import pyttsx3
import datetime
import speech_recognition as sr
import wikipedia
import webbrowser
import os
import smtplib
import random
import time
import requests
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)
def speak(audio):
# ... | [
"noreply@github.com"
] | Shivansh1200.noreply@github.com |
1b8bf4767e7e81816c259accadb336a80b752300 | 1a13cf55de87bf9fd7cd5911ab7bd9d9c1f88241 | /tests/programscache.py | 2382802032fded66be7aa14c186b0adc155ddd14 | [
"Apache-2.0"
] | permissive | jeperez/winreg-kb | c59ead2d593b4ec375b77d7a9c49fbec35b9f156 | a50fcfc89e3fac282f276b12fb67807ddb56ef10 | refs/heads/master | 2021-01-19T11:34:33.293074 | 2017-04-03T06:28:00 | 2017-04-03T06:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the Programs Cache information collector."""
import unittest
from dfwinreg import registry as dfwinreg_registry
from winregrc import collector
from winregrc import output_writer
from winregrc import programscache
from tests import test_lib as shared_test_lib
... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
9c5ff2715749470a7b98c0feea06a408bf368b99 | a7261331ed7e8b80e035c037979d0eb32b1c43ae | /tests/terraform_ci/test_strip_backend.py | e2e27fd2e15d335d757ccbbd9ecb489811859177 | [] | no_license | tamaskozak/terraform-ci | d03baee25c54e7a3f391fa9041ede97209dbcb02 | bc5aec0b8a5caf90e559431dbdb5e21a4032b47a | refs/heads/master | 2020-08-01T08:35:00.400627 | 2020-04-20T04:03:54 | 2020-04-20T04:03:54 | 210,934,296 | 0 | 0 | null | 2019-09-25T20:26:31 | 2019-09-25T20:26:31 | null | UTF-8 | Python | false | false | 439 | py | """Tests for strip_backend() function."""
from os import path as osp
from terraform_ci import strip_backend
def test_strip_backend(tmpdir):
"""Check that main.tf is copied."""
original_tf_dir = tmpdir.mkdir("original")
tf_file = original_tf_dir.join("main.tf")
tf_file.write("")
with strip_backend... | [
"noreply@github.com"
] | tamaskozak.noreply@github.com |
2fc9220228c1f7be5a72a6931698bff8c43fa069 | f43d1ed4a7a0a89f011e21a380974f7aa94caad2 | /src/vgg19net.py | e935644faa019cadb09d034a59bae8c36f3b9866 | [
"MIT"
] | permissive | nirmorgo/vae-photo-masher | 60b62f60cef832381eb9d353a56ed85612e5f63e | 251d87d65d23ebca8a6fd4a0cc0249c310974540 | refs/heads/master | 2020-03-30T14:15:43.866076 | 2018-11-04T21:03:28 | 2018-11-04T21:03:28 | 151,309,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,336 | py | import numpy as np
import scipy.misc
import scipy.io
import tensorflow as tf
VGG_MODEL = 'saved_models/VGG19/imagenet-vgg-verydeep-19.mat'
# The mean to subtract from the input to the VGG model. This is the mean that
# when the VGG was used to train. Minor changes to this will make a lot of
# difference to the perform... | [
"nirmorgo@gmail.com"
] | nirmorgo@gmail.com |
972b653377c522b689ef5122c760bb3750ffce76 | 6578b86952bdfc50a1d13ac8ae271d43695d02ed | /setup.py | 85513e416a83639ce1d9950eeb55eb8d263452da | [
"MIT"
] | permissive | BotDevGroup/grammar_plugin | caa9dcfebaf78d153d1520cd27e282b39de8e63a | 9da7b50164912cb955dda25e71da6e6551e933e0 | refs/heads/master | 2020-03-20T20:05:10.170906 | 2018-06-17T17:55:04 | 2018-06-17T17:55:04 | 137,669,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'marvinbot'
# TODO: put package requirements here
]
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='gra... | [
"ricardo.arturo.cabral@gmail.com"
] | ricardo.arturo.cabral@gmail.com |
58bf54ea5b49b65fb07e0ed13be7583dec589531 | 8575196670d2bb1b5fb6ef41ca165614165441c5 | /app/user/tests/test_user_api.py | 7b0cb57a41198dcfae30e2cd5b5caf048ea93114 | [
"MIT"
] | permissive | pandey-mohan/recipe-app-api | f6a9dce807cfb0161fb62a9977139a1cba268a77 | 154a4289bbeeace4b84e863c5adcea57e66dbab9 | refs/heads/master | 2023-08-22T06:08:43.401723 | 2020-07-12T15:28:52 | 2020-07-12T15:28:52 | 272,213,292 | 0 | 0 | MIT | 2021-09-22T19:14:38 | 2020-06-14T14:00:38 | Python | UTF-8 | Python | false | false | 5,012 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
CREATE_USER_URL = reverse('user:create')
TOKEN_URL = reverse('user:token')
ME_URL = reverse('user:me')
def create_user(**params... | [
"mohan.pandey@telekom-digital.com"
] | mohan.pandey@telekom-digital.com |
fa05b68b68103da6eba41cb3eace31abf9f4ba74 | 4a5a39858bab54d9fe06364ecfe8edc2747b87f6 | /Code Jam 2018/Round 1C/ant-stack.py | ddc1e8535674f7ccbaa880e66e31d6b637f53b28 | [] | no_license | gsakkas/code-jam | d85a63c11d13ba405b9df4be1e6739ef5c5394ae | 8e81a4d9b2ea11d9bbb9b3e206951a2261798458 | refs/heads/master | 2021-01-22T19:54:24.732574 | 2018-05-17T12:14:06 | 2018-05-17T12:14:06 | 85,257,349 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | def read_int():
return int(raw_input())
def read_many_ints():
return map(int, raw_input().split())
def solve(n):
ws = read_many_ints()
large = 10 ** 100
sums = [[large] * min(139, n) for _ in xrange(n)]
for i in xrange(n):
sums[i][0] = ws[i]
# sums = {}
# sums[0] = ws[0]
... | [
"george.p.sakkas@gmail.com"
] | george.p.sakkas@gmail.com |
1794efdeb3c983dd7ab79c42f207bfedf837745d | adb1cab5223ecfe8643f40b846c270b072ff9912 | /tests/components/isy994/test_config_flow.py | bf08e6526ba10874ec7c574d39df66d53a54b675 | [
"Apache-2.0"
] | permissive | Chris-V/home-assistant | ec7e139595d0412323acad267800673d0b1545a8 | 7224012016b8f0965081edd546fa200902432f71 | refs/heads/dev | 2023-03-11T01:43:00.458758 | 2021-05-13T09:15:02 | 2021-05-13T09:15:02 | 72,964,787 | 0 | 0 | Apache-2.0 | 2023-02-22T06:15:14 | 2016-11-06T02:08:03 | Python | UTF-8 | Python | false | false | 13,770 | py | """Test the Universal Devices ISY994 config flow."""
from unittest.mock import patch
from homeassistant import config_entries, data_entry_flow, setup
from homeassistant.components import dhcp, ssdp
from homeassistant.components.isy994.config_flow import CannotConnect
from homeassistant.components.isy994.const import ... | [
"noreply@github.com"
] | Chris-V.noreply@github.com |
af7343241d25adfa0239fc48d6b1c29e0fd2cfcf | 360ae1188ad79e71ccc72da0b9ae709bda678f91 | /ryu/services/protocols/__init__.py | 340a42305b81a40727ffe472e0a96ccaa638aed4 | [
"Apache-2.0"
] | permissive | faucetsdn/ryu | 47b3523e7ccb381f3bdf2877a3f9f01cb1876054 | d6cda4f427ff8de82b94c58aa826824a106014c2 | refs/heads/master | 2023-09-05T06:37:21.991029 | 2022-06-09T23:09:40 | 2022-06-09T23:09:40 | 2,945,007 | 385 | 215 | Apache-2.0 | 2022-11-13T10:50:25 | 2011-12-09T03:43:50 | Python | UTF-8 | Python | false | false | 682 | py | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 Isaku Yamahata <yamahata at private email ne jp>
#
# 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
#
# h... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
8ed747a448740c96f0fa5303b1fcd8b932cbf842 | ad1c5d99e808418f4a61e9a066767f39e18eecfa | /Main.py | c4cc3603ac3e35b6edcfbf8b0b3af9cbda941c00 | [] | no_license | chowshovisu/research_paper_classification | 8c84f8c67ab0471ad2d5c0305a77d89071ac2569 | e02b94a43799ac5fc5221dc245db2a2567787139 | refs/heads/main | 2023-08-30T01:17:34.333500 | 2021-10-30T02:06:46 | 2021-10-30T02:06:46 | 422,752,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | import Read_Data
import Pre_Processing
import SVM_Classification
from sklearn.model_selection import train_test_split
def check_for_new_test(classifier):
while 1:
new_str = str(input('Give a sample input string to Test:'))
if new_str == '\n':
break
tokenized_input = Pre_Proce... | [
"chowshov@isu.edu"
] | chowshov@isu.edu |
c2708ee7ab95a79f4a154cf48f91ac0a4fc2e003 | 9a00a586da1f78e2136e8576fe68a83664313f68 | /food/users/routes.py | 7c174cf83c7df5551550547ba47061a002a778b9 | [] | no_license | moinmir/Food-for-Thought | b76648c2053bd21a6221c87bd562c6664d198016 | 1da536449dbcf91296898f2a29cba34d619d2e88 | refs/heads/main | 2022-12-26T02:13:35.591555 | 2020-10-10T18:16:10 | 2020-10-10T18:16:10 | 300,952,958 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,010 | py | from flask import render_template, url_for, flash, redirect, request, Blueprint
from flask_login import login_user, current_user, logout_user, login_required
from food import db, bcrypt
from food.models import User, Campaign
from food.users.forms import (
RegistrationForm,
LoginForm,
UpdateAccountForm,
... | [
"moin@princeton.edu"
] | moin@princeton.edu |
ade057decffd38ff7aa4e2488f4d46cdce9592c0 | 1d7b91472a193718bd569b23d607b5fbc55efce9 | /chapter-3.py | b1b03937da905d6c15b7dc526ccb7b2f36a00a91 | [
"MIT"
] | permissive | PrateekshaRebecca/opencv-computerVision | b990f5cdd79f3adf0798535ee8015f979e63fd8d | b2446c7c99e9a7c8d06c9cfaf096140203408f4b | refs/heads/master | 2023-03-20T04:52:01.434711 | 2020-07-03T16:47:18 | 2020-07-03T16:47:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,826 | py |
#Accessing the webcam
'''
import cv2
cap = cv2.VideoCapture(0)
# Check if the webcam is opened correctly
if not cap.isOpened():
raise IOError("Cannot open webcam")
while True:
ret, frame = cap.read()
frame = cv2.resize(frame, None, fx=0.5, fy=0.5,interpolation=cv2.INTER_AREA)
cv2.imshow('Input',... | [
"noreply@github.com"
] | PrateekshaRebecca.noreply@github.com |
c7cc1d54cf51603fe23648a534d153efafdaa73b | fa351318b655b98c62b10a5f6fa675c878b4dbaa | /ck101.py | 34f12b736b963b38c2e7253ee80182a6b4a202cf | [
"Apache-2.0"
] | permissive | nsdown/DriveIt | e236acdec25e6d7d82e268875a5e64b98aeb9d08 | 1f001c8f54bd8a864070182aec6532519b874ce4 | refs/heads/master | 2021-01-17T23:10:32.755938 | 2016-01-29T14:35:05 | 2016-01-29T14:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | from base import SharedBase
import re
class Ck101(SharedBase):
def __init__(self, url):
self.flyleaf_url = url
self.flyleaf_data = self.get_data(self.flyleaf_url).decode('utf-8')
def get_name(self):
name = re.findall(r'<li><h1\sitemprop="name">(.+?)<\/h1><\/li>', self.flyleaf_data)[0]... | [
"admin@niconiconi.rocks"
] | admin@niconiconi.rocks |
fc1bfcd8f32729a560c5de4916cce98dd96143b0 | bded5c00b2d7239cc4cbc4908c125bb759ff7de4 | /keras_frcnn/squeezenet.py | 4987d2b28bb539ae2ca2ff8bb6f5635f6bb6179f | [] | no_license | Shiro-LK/keras_frcnn | 08167039ab665cc80be2f2ed655e49acacb5b15c | 4f5a75f3b0161cff4504c2f0113b3f9983ee1324 | refs/heads/master | 2020-03-17T09:28:52.785653 | 2018-07-06T19:04:11 | 2018-07-06T19:04:11 | 133,476,851 | 1 | 0 | null | 2018-05-15T07:26:57 | 2018-05-15T07:26:57 | null | UTF-8 | Python | false | false | 9,774 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 25 15:30:03 2018
@author: shiro
"""
from __future__ import print_function
from __future__ import absolute_import
import keras.backend as K
import warnings
from keras.applications.mobilenet import MobileNet
from keras.models import Model
from keras.layers import Flatten,... | [
"kunludovic@europe.essilor.group"
] | kunludovic@europe.essilor.group |
b96de974ca34505ea68a7002e1eaca1fdf7e1661 | 076e0ebd618ed406808e9009a70d886e8bdb1bbf | /grafeas/grafeas_v1/__init__.py | 98e1ad1c8c28a4c25705f3c56a2ad03ad7d539b0 | [
"Apache-2.0"
] | permissive | isabella232/python-grafeas | 8edb1c3b79e51292f1612489775b51a96033049c | a806330d0f344eb0b97e351d7e5ba34b8ae9b740 | refs/heads/master | 2022-12-15T09:53:51.979968 | 2020-09-22T22:15:19 | 2020-09-22T22:15:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,916 | 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... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
6592fd4e7614f3aa792b9305227977f7af952754 | 6994917b9d22e9e15e578a0e5c75dcf4ce3cb022 | /perfil/migrations/0025_auto_20200724_2157.py | e5dd79e636927224e5bd7b39a7907b3d99b39094 | [] | no_license | linikerunk/rh-ticket | 59ad6411a3d08c90c2704b37ba9bba67ea7f7754 | bd8edd3eb1ea6cfe04fee03a4f41049a84c1e14a | refs/heads/master | 2023-01-06T21:25:06.851369 | 2020-10-29T20:32:53 | 2020-10-29T20:32:53 | 250,346,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # Generated by Django 2.2.9 on 2020-07-25 00:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('perfil', '0024_auto_20200724_2049'),
]
operations = [
migrations.AlterField(
model_name='funcio... | [
"linikerenem@gmail.com"
] | linikerenem@gmail.com |
58a033ee28badd70d250749748d034a404e2e97b | f1f2c5333585c650f8a5e08b3bac16e5449b1948 | /puzzle/puzzle.py | b8f912847fd8628853d9a3fc072aabf2e97d8a0c | [] | no_license | AMIRmh/AI_search | 7f3e8c6eb1c36807ac106e2195778ffd556eaf33 | 0eee90352fbe347f309ad44616aa7ead21d1da19 | refs/heads/master | 2021-08-20T05:24:09.203453 | 2017-11-28T07:49:06 | 2017-11-28T07:49:06 | 112,302,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | class state:
def __init__(self):
self.path = []
self.val = [[] for i in range(3)]
self.heuristic = 0
self.paid = 0
def full_paid(self):
return self.heuristic + self.paid
def __lt__(self, other):
return self.full_paid() < other.full_paid()
def __eq__(sel... | [
"amir.haghollahi@gmail.com"
] | amir.haghollahi@gmail.com |
3aa830318348cdd53f43460df111b7d29145f640 | 283eb1c6c7ddbb19a0f99715ac8f4c29930de3da | /setup.py | ac5c9c4928bf978cf89b6852cf1cc9667a4b1454 | [
"MIT"
] | permissive | seekingalpha/aws-roleshell | b15db53f5e0e45098c7ea11ba294f14ff6e28bff | d3c8ecbecc9019767eec4c823a2f650b229d30b4 | refs/heads/master | 2020-04-05T23:31:53.396744 | 2016-09-06T09:33:13 | 2016-10-09T12:08:33 | 52,449,900 | 1 | 0 | null | 2016-02-24T14:49:21 | 2016-02-24T14:49:20 | null | UTF-8 | Python | false | false | 201 | py | from setuptools import setup
setup(name='aws-roleshell',
version='0.0.1',
author="Josh Snyder",
py_modules=['aws_roleshell'],
author_email="hashbrowncipher@gmail.com",
)
| [
"josh@code406.com"
] | josh@code406.com |
263884e8abf41927260ccc9371f5b38ee469439b | cf8b3b4c1cf1325c757424a8ea54c6ee53519648 | /Python/3、Tree/pre_in_Tree.py | 68b92268a066f41f25fcadb58f6d64a813ddc423 | [] | no_license | YeQiang1075736553/DataStructureAndAlgorithm | df7dea036dcaed6ef1ea94e7402b3f5a17cc2d8e | 1d6651e49b56980c7ef44e2c679c81038db5a3f8 | refs/heads/master | 2020-03-26T23:43:22.890795 | 2018-08-21T23:18:44 | 2018-08-21T23:18:44 | 145,562,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | # -*- coding:UTF-8 -*-
'''
前序序列和中序序列构造二叉树
思路:
参见
编程环境:
Python3.5.2
作者:
CSDN博客:https://my.csdn.net/yeqiang19910412
Github:https://github.com/YeQiang1075736553
日期:
2018.8.13
'''
class Node():
"""节点类"""
def __init__(self,data=None,lchild=None,rchild=None):
self.data = data # 表示数据域
self.lchil... | [
"1075736553@qq.com"
] | 1075736553@qq.com |
cff296cda398e409006e98b2fad275b35328f553 | bad8f98c907afe26bb4e57597f8d1f91489f8bf3 | /main.py | 207b9df2fe66635f6e4b5135a77446b7bd745708 | [] | no_license | Splagoon/ScreenCloud-Uguu | cdb103ccd1e12de6b2c8d50b88799e9ec7bf3d65 | 3be560eaaecb31f646d37b188c2a0187cd367529 | refs/heads/master | 2021-06-11T06:53:22.929986 | 2017-02-06T22:07:08 | 2017-02-06T22:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | import ScreenCloud
from PythonQt.QtCore import QFile, QSettings, QStandardPaths
from PythonQt.QtGui import QMessageBox
from PythonQt.QtUiTools import QUiLoader
import time, requests
class UguuUploader():
def __init__(self):
self.uil = QUiLoader()
self.loadSettings()
def isConfigured(self):
... | [
"rob@kelle.tt"
] | rob@kelle.tt |
a123b05a0d90ab5de3dad6be2814c36888231339 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uzi.py | aa6e8089d0fcbff6ad8c6136fb49730dbf1ce425 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
457b3c5c3ef7b6c87f2a2cb3e30e182a396b8713 | 7eadfc1711278719d4f02cb506f1d1df88cc66af | /model/supervised/cnn.py | 4110058df864f680190dd1ee7dbbb410a1114a2a | [] | no_license | fagan2888/Trading_by_Imitation_Learning | 33a88060e45e38d83b9b0972072cc1bcddcf0bdc | 0f6820609c64dd0a1e697ec2ac4566b60478025d | refs/heads/master | 2020-11-30T23:06:21.280800 | 2019-05-16T06:27:01 | 2019-05-16T06:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | """
Train a supervised CNN model using optimal stock as label
"""
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D
from keras.models import load_model
from keras.optimizers import Adam
from ..base_model import BaseModel
from utils.data impor... | [
"noreply@github.com"
] | fagan2888.noreply@github.com |
a21dda371ce4e2c2fd2dd233af514f872d8204cd | 0f2b7f4117d03a101ffb5b3646bfd7094c19907b | /Model/PyTorch/Predict Winner Model/Predict_Model.py | a2cb6b3a6e611666510e6b7c2f72f33f4df10a43 | [] | no_license | antoniojkim/Ultimate-Tic-Tac-Toe-Zero | f046b82cfd6c22c59380d98f8008c5c8f5173d91 | 66548ae61347a9726bd888da817a22c3f5f50ba1 | refs/heads/master | 2021-06-09T08:43:21.700796 | 2021-02-06T21:07:26 | 2021-02-06T21:07:26 | 110,311,636 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,690 | py |
import platform
import sys
if platform.platform() == "Windows":
sys.path.append("..\\..\\..\\")
else:
sys.path.append("../../../")
import torch
import torch.nn.functional as F
import numpy as np
from numba import jit
import random
from UTTT import *
'''
Policy Idea:
Simple Artificial Neural Network with th... | [
"antoniok9130@gmail.com"
] | antoniok9130@gmail.com |
bfca5740597c9e3e15c4023c95ef63b75418ae47 | 43950752bd0559ca04676c164e08cf398d0f28a6 | /passengers/views.py | f7eb5bf0b1645e8489ef3415d38b7f5ca907ffdd | [] | no_license | Asceryx/Covoiturage | 68ce7dbf10a9eed829cd81e0c9331c8d1a7cb35c | 770503f5a38ab38a579fd84ef919703a2820056a | refs/heads/master | 2020-12-10T00:17:19.199660 | 2020-04-13T14:43:53 | 2020-04-13T14:43:53 | 233,455,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
@login_required()
def passenger(request):
return HttpResponse("Main interface for passenger")
| [
"jhayrault@gmail.com"
] | jhayrault@gmail.com |
890b7cd1fdb1476cebafe5b3f330f5fda0a0a879 | 35498bf65ff403e05c6ffcd06c0fd980b81cc921 | /web_app/app.py | 2ed35dfc0613e71b2a162dfd0384d429edb8fc4d | [] | no_license | teguhteja/flask01 | 6cd297a054071e2dd7c8f9ece18d0a874fe20e3d | 6b589001cf15217ccf9e48958a5f5924aac14a46 | refs/heads/master | 2020-12-15T19:02:00.135111 | 2017-12-15T06:42:38 | 2017-12-15T06:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | from flask import Flask, render_template
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from models import db, Page, Menu
from views import PageModelView
def create_app():
app = Flask(__name__)
app.config.from_pyfile('settings.py')
db.init_app(app)
admin = Admin(app, n... | [
"eko@monetizemore.com"
] | eko@monetizemore.com |
f728396dde2da2e70035d43cde8fbfc230b9f0e2 | 1c5d8e6d1fa23ee899862d1f8d5bae58897902bc | /docs/conf.py | e399d1d2f9a27c4e8a70e5d99bf696e317b344b7 | [
"MIT"
] | permissive | mbe9a/EndpointPlotter | 9aa4ffcd8eb64a8864caa97562c5183a8b258a56 | 037cf1b71c75b659b0fde48fca0c4b0eb8395fa7 | refs/heads/master | 2020-12-08T04:42:05.070206 | 2020-08-21T16:02:08 | 2020-08-21T16:02:08 | 232,888,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
... | [
"mbe9a@virginia.edu"
] | mbe9a@virginia.edu |
15261973dd39d79408de00f20eb9f216067056de | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_hyperflex_st_platform_cluster_resiliency_info_ref.py | b4d5a1014524481f5a6bfa8835557ef078252d03 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 2,123 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
b2e93044857996da4f7864f49e1ad69a6546cb0b | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/__init__.py | 154a90083e55b0b0e6ba806098e8782f6d24a683 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 865 | 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 ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
526bb90dae918179636a5a32825b05ab796d9e57 | f9629630eaa5367f6943aa35def2e4f3fd9aaeb2 | /server/home_network.py | 86e4ce0630ce15b04aae61ba921b4f3178cd68fb | [] | no_license | maxtkl/marioKart | 723b5f7a4c7dccda88fd687939963bc0d25fdd84 | 3e55c2ad2d61228676d97637edb506f7412f2046 | refs/heads/master | 2020-04-16T12:12:33.680895 | 2019-01-14T00:15:58 | 2019-01-14T00:15:58 | 165,568,911 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from struct import pack
from struct import unpack
from struct import calcsize as sizeof
from struct import error
CONNECT_TO_CAR = 1
MOVE_CAR = 2
GET_MALUS = 3
SEND_MALUS = 4
FORWARD = 10
BACKWARD = 11
LEFT = 12
RIGHT = 13
def create_packet(op_code, data):
return pack("!I{}s".format(len(data)), op_code, data.enc... | [
"noreply@github.com"
] | maxtkl.noreply@github.com |
8e962c66a9d91dae37bddea35a9bff26c992c521 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /1101-1200/1110-Delete Nodes And Return Forest/1110-Delete Nodes And Return Forest.py | 3219a3ad56f0c557fe3ebbf9025c4afa1c801801 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 803 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def delNodes(self, root: TreeNode, to_delete: List[int]) -> List[TreeNode]:
td = set(to_delete)
result = []
def dfs(root, p... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
d1b54684da8c3cac3eb4b8f014adcc67f8fb93cd | 7025e8602cd7fa4632339b9716c2d7a67d03d906 | /nextpage.py | 78fc2bb0773debb065475dedfcb012564abaf61c | [] | no_license | Likho1969/tkinter-login | b2688de16b1dde4227b1bd19f4f130ee379b8f89 | 59b24a98f8276be078ba3d994832ac899391c7cb | refs/heads/main | 2023-04-30T23:31:52.514144 | 2021-05-24T14:59:28 | 2021-05-24T14:59:28 | 370,390,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py |
from tkinter import * # importing everything in the tkinter module
from tkinter import messagebox # import the messagebox from the tkinter module
root = Tk() # create window
root.title("NextPage") # name the window
root.geometry("600x600") # setting the window size
root.config(bg="dark slate gray") ... | [
"likhokapesi04@gmail.com"
] | likhokapesi04@gmail.com |
a467cc78728963d989a66e2ae338212b606e652f | 037d5d18b9b81205305e158d7d9fdad131d318cb | /tests/test_custom_version_base_class.py | cc5e981dbda96d06ba8914b794c8350a37b1e0a2 | [] | permissive | kvesteri/sqlalchemy-continuum | ee7acf2c961b27eab3dd8f61598d9159d801ee21 | a7a6bd7952185b1f82af985c0271834d886a617c | refs/heads/master | 2023-08-24T09:14:33.515416 | 2022-11-17T05:41:09 | 2023-07-24T23:37:12 | 10,312,759 | 479 | 134 | BSD-3-Clause | 2023-09-12T20:07:04 | 2013-05-27T10:30:55 | Python | UTF-8 | Python | false | false | 1,114 | py | import sqlalchemy as sa
from sqlalchemy_continuum import version_class
from tests import TestCase
class TestCommonBaseClass(TestCase):
def create_models(self):
class TextItem(self.Model):
__tablename__ = 'text_item'
__versioned__ = {}
id = sa.Column(sa.Integer, autoinc... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
5e14ac1175f45b85ceb256c7a8522a73237bc1f4 | 2aa84f9553a0593593afff720f7dfd8c6df3adde | /tests/test_query_parser.py | 3c2d26f25e088261c212386f85d9a8ce25602370 | [] | no_license | Pavel-Guseynov/sqlalchemy-searchable | c492f37e10e0e9054914af1f20cf799a58b9e8aa | 6baa13193f2f2a39ba96b231ee7f88843bdd6fd0 | refs/heads/master | 2021-07-25T14:02:07.876195 | 2017-11-06T16:17:05 | 2017-11-06T16:17:05 | 109,388,493 | 0 | 0 | null | 2017-11-03T11:35:01 | 2017-11-03T11:35:01 | null | UTF-8 | Python | false | false | 1,746 | py | # -*- coding: utf-8 -*-
from pyparsing import ParseException
from pytest import raises
from sqlalchemy_searchable.parser import SearchQueryParser
class TestSearchQueryParser(object):
def setup_method(self, method):
self.parser = SearchQueryParser()
def test_unicode(self):
assert self.parser.... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
4db824ca06fcb183b3cdd4afb8c1407541610ba5 | d8c1f119d1349dd8ad2e48619a8c258967cd9a31 | /Baekjun/Dijkstra/10282. 해킹.py | 57994f6df0e2f7d52580d8b02723c1259ebd1a75 | [] | no_license | Seonghyeony/DataStructure-Algorithm | c7c006ee705b68fc4d2d04dc6baaf0aeb80fc83e | 4121289cafd0050bda408934fcb14d88052c956f | refs/heads/master | 2023-04-12T16:30:17.039109 | 2021-05-08T10:31:05 | 2021-05-08T10:31:05 | 286,371,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | import heapq
def dijkstra(graph, n, start):
distances = [float('inf') for _ in range(n + 1)]
distances[start] = 0
queue = []
heapq.heappush(queue, [0, start])
while queue:
current_distance, current_node = heapq.heappop(queue)
if distances[current_node] < current_distance:
... | [
"sunghyun7949@naver.com"
] | sunghyun7949@naver.com |
ae0940b35e81f01bdb421943a6cebeb0d4228588 | 627c0492f21d5fc4a35469cf4297f53e5ef887ac | /webpersonal/webpersonal/settings.py | f955fed803bd05ff0fd117823e408d3d8160af1b | [] | no_license | rulomoscoso/django3Webs | 50a278a1ceb94b9f84ae80caf5d58add208b5049 | 04337c45e1cba20f7c81645ab0dbd00f3cc54b96 | refs/heads/main | 2023-02-20T23:43:05.261057 | 2021-01-20T14:59:50 | 2021-01-20T14:59:50 | 329,947,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for webpersonal project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import o... | [
"raul.moscoso84@gmail.com"
] | raul.moscoso84@gmail.com |
d28d63f6fdadbd9ee21a1e5ac93114fe39836063 | e8bf6c148196a5a9d85f02ca6e392dbc580c9caa | /servico/migrations/0004_auto_20190728_1156.py | 92fcdbcbbabbe4b29f7a152b4958fd41b1930a46 | [] | no_license | elisvaldol/servicos | 8cf34b4daf52f05c47286e3c4faf63418d689ca4 | a6e7d164cf9a5f3aaf6058760ac76d33738f075e | refs/heads/master | 2022-05-31T17:41:59.629090 | 2019-07-30T02:46:22 | 2019-07-30T02:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | # Generated by Django 2.2.3 on 2019-07-28 14:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('servico', '0003_auto_20190728_1121'),
]
operations = [
migrations.RenameField(
model_name='cliente',
old_name='cpf_c... | [
"elisvaldolj@gmail.com"
] | elisvaldolj@gmail.com |
20dc5890b9b93d045ce94089c746abe19eb71702 | 8a526c3f6d3eedfd309a17d1fbf185385e779472 | /字典和集合/字典/带计数的字典.py | bb80bfbea08e99481799da3ef0a8e77e8778a5f9 | [] | no_license | link9c/FluentPython | a8eda93a27f3dd4e0cdb7c6ac76a2a3eceb03d5a | 059c9dfeff0115a2361a6ff4bc4ea24ab9113a5f | refs/heads/master | 2020-11-28T05:19:35.959694 | 2019-12-26T13:51:41 | 2019-12-26T13:51:41 | 229,714,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | import collections
ct = collections.Counter('abcdeeaa')
print(ct)
ct.update('aaa')
print(ct)
print(ct.most_common(2))
| [
"chenyulei@MicroPort.local"
] | chenyulei@MicroPort.local |
e1fee3842a2ba41bf122a82af2236ea8f8fad717 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/v_sniper/sniper-master/cron.py | 39485faf71647c6676d5605dd32b483c4befdc2b | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,777 | py | #!/usr/bin/env python
""" This represents the cronjob that runs to check for course openings"""
from flaskext.mail import Message
import urllib
from models import db, Snipe
from soc import Soc
from app import mail, app
import datetime
from collections import namedtuple
soc = Soc()
EMAIL_SENDER = "Course Sniper <snip... | [
"659338505@qq.com"
] | 659338505@qq.com |
18376e8e4a3c1295d113d89e9a7f184fafa79207 | 48e3facc2aca286beae29d9f3fe8713c0a603064 | /insertSubcommentReaction.py | 083d2087bb05685f37391e3b7c0a7a1d6e2f8023 | [] | no_license | marie-elia/facebook-mongodb-database | 84011bece0a5b459d297ce88d5921376f019ad35 | fb804a10478e84144852c26a913def2a8e53b4be | refs/heads/master | 2020-07-28T13:39:47.188011 | 2019-09-19T00:24:29 | 2019-09-19T00:24:29 | 209,427,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import datetime
import pymongo
from pymongo import MongoClient
from bson.objectid import ObjectId
client = MongoClient()
client = MongoClient('localhost', 27017)
db = client.facebook.accounts
id = "firstpost"
number1 = {
"name" : "Marie Elia",
"pics.img_id": "firstimage"
}
number2 = {
"... | [
"noreply@github.com"
] | marie-elia.noreply@github.com |
f044e21b7decd864e43dd31f8936ab2b0969a9aa | 0ae22471220c5a2a0810d3034fea34aa8b033419 | /PE_Analysis.py | 8398f3dcc164f52911c1561183b1ab9bf7e791eb | [] | no_license | PepperYouth/PE_analysis | 136e89229bb18e1f3eabfa4f14f6f733429e61a9 | 8d2b6c219e1bf969a8edf75fdcd3550dada62491 | refs/heads/master | 2022-12-05T09:59:26.385609 | 2020-08-26T09:51:04 | 2020-08-26T09:51:04 | 132,348,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,539 | py | import sys
import collections
def PrintALL(dic):
print(dic['name']+':\n'+'_'*56)
n = 0
for i in dic['data']:
sys.stdout.write('%02X' % ord(i) + ' ')
if (n+1)%8 == 0:
sys.stdout.write(' ')
if (n+1)%16 == 0:
sys.stdout.write('\n')
n += 1
sys.stdout... | [
"591772502@qq.com"
] | 591772502@qq.com |
65cc4b40f81149e478236ca1e329f99ffc8fcb82 | e63c1e59b2d1bfb5c03d7bf9178cf3b8302ce551 | /uri/uri_python/ad_hoc/p2456.py | fd6b70e0c37682c826aa6690b0340d8b59f32ede | [] | no_license | GabrielEstevam/icpc_contest_training | b8d97184ace8a0e13e1c0bf442baa36c853a6837 | 012796c2ceb901cf7aa25d44a93614696a7d9c58 | refs/heads/master | 2020-04-24T06:15:16.826669 | 2019-10-08T23:13:15 | 2019-10-08T23:13:15 | 171,758,893 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | entry = input().split(" ")
a = int(entry[0])
b = int(entry[1])
c = int(entry[2])
d = int(entry[3])
e = int(entry[4])
if a < b and b < c and c < d and d < e:
print('C')
elif a > b and b > c and c > d and d > e:
print('D')
else:
print('N') | [
"gabrielestevam@hotmail.com"
] | gabrielestevam@hotmail.com |
56f367f795975a518e9c881a9cacb28fbc13c280 | 9d59088bb0fd2827aa3d4ecde4ed38184d74f25b | /basic_learn/hello.py | 936190aae461ee4f7be2f74409dc4247b949a488 | [] | no_license | mrwangsg/py_test | 1de1f9b141b1ccb3da18e19366455a2ec1e74de9 | 80674801da595e48549d72b1c35fdbfee480c9eb | refs/heads/master | 2022-11-10T11:22:55.176884 | 2018-01-21T14:13:02 | 2018-01-21T14:13:02 | 115,670,652 | 0 | 1 | null | 2022-10-25T08:58:50 | 2017-12-29T00:36:48 | Python | UTF-8 | Python | false | false | 25 | py | print("hello, 敏敏!") | [
"wangsg2@yonyou"
] | wangsg2@yonyou |
2555d67c9356f76316ca075fb7052e0bc3678ccc | 0c43ae8365998144ebc23156c12768711114e6f9 | /web_flask/4-number_route.py | 1aa7ec504db5b6beaf7e14f834086abdbf92165a | [] | no_license | Nesgomez9/AirBnB_clone_v2 | 74e343ade1c418b49c8ebaee79f6319f8e971ff6 | 055c4e92c819fd0e9dec369e687c1601f243f02c | refs/heads/master | 2021-05-19T12:50:35.656686 | 2020-04-23T03:33:41 | 2020-04-23T03:33:41 | 251,707,487 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | #!/usr/bin/python3
from flask import Flask
app = Flask(__name__)
@app.route("/", strict_slashes=False)
def hello_route():
return "Hello HBNB!"
@app.route("/hbnb", strict_slashes=False)
def hbnb_route():
return "HBNB"
@app.route("/c/<text>", strict_slashes=False)
def c_route(text):
text = text.replace(... | [
"nicolico99@hotmail.com"
] | nicolico99@hotmail.com |
8952aa9f1b61af489e11144d5f44fa1ef4518d3c | 962d42197c56346d348d334dd7435224d4aed99d | /Inventationery/apps/Inventory/migrations/0012_auto_20151227_1216.py | fbed11045d9ab2d771817012eb1c4368885e13e6 | [
"BSD-3-Clause"
] | permissive | huarmenta/Inventationery | e5750274c0b281208fa1f33590f0402349f7e8da | 1bf9ee2c56492ab66947886590b7ec17fa3a6195 | refs/heads/master | 2021-05-30T08:31:15.368712 | 2016-01-06T03:23:45 | 2016-01-06T03:23:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Vendor', '0001_initial'),
('Inventory', '0011_auto_20151226_2308'),
]
operations = [
migrations.CreateModel(
... | [
"h.alexarmenta@gmail.com"
] | h.alexarmenta@gmail.com |
35bf4c7a9b21ab23ef52b6c6f0f8175b0648633a | 61afd923551491846ae827821f55c4fb5fd04c98 | /packages/levylab_lib_levylab_instruments/levylab_lib_levylab_instruments-1.4.2.53.spec | 04f92bcc228f4e1c73706452894072f1ab9ff991 | [
"BSD-3-Clause"
] | permissive | laserengineer/levylabpitt.github.io | b74b711aff2a5eb1b46f880a1071ac0873f1a9ac | cdf9aeb6faaf136211291ce2232c239229d85bbe | refs/heads/master | 2023-04-29T02:36:48.736236 | 2021-05-14T19:20:40 | 2021-05-14T19:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,436 | spec | [Package]
Name="levylab_lib_levylab_instruments"
Version="1.4.2.53"
Release=""
ID=26edd37d85e86c8ffd7cf08a57fa4313
File Format="vip"
Format Version="2017"
Display Name="Instruments"
[Description]
Description="Abstract instrument.lvclass"
Summary=""
License="BSD-3"
Copyright="Copyright (c) 2020, Levylab"
Distribution=... | [
"p.irvin@levylab.org"
] | p.irvin@levylab.org |
db70f690f06a6f4c0580e1bdd538a5ad29836c6b | 8ea657e6fc53378038093cb5a3a914786fe98ad4 | /basicConcepts.py | beea7bff13d184f854653e63a284905e9c969d74 | [] | no_license | KianaAguilar/Concept_Python | 2319f91ed714fb8eb9c39c1bfa8d026c6308c12d | 8386e1fc092e38dfd5ef98cd088da8880508b00e | refs/heads/main | 2023-02-22T00:05:49.103672 | 2021-01-25T01:53:35 | 2021-01-25T01:53:35 | 332,602,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py |
# como hacer comentarios? con un numeral! #
print(3+2)
# operadores matematicos como +,-,/,*,resto, cociente
print((3+3)-5)
print((6*5)/2)
#operador exponenciales
print(2**5)
#operador de cociente
print(20//4)
#operador resto
print(20 % 6)
#Booleanos , variable de dos estados
isSwitchActivated = False;
| [
"58793146+KianaAguilar@users.noreply.github.com"
] | 58793146+KianaAguilar@users.noreply.github.com |
e4f5036c71ab319072332f4c65c6f40154c2c1c7 | 54d408d9be3a99f2d2f02c48fd092e96eb267e6f | /src/Libraries.py | 62ceb49d25e199b77158fa871e05513295e22d23 | [] | no_license | liipeandre/pacman | b2a73eb1c25076c9c69f3b388059f4d8f9b8b907 | aba31e90195902abd56db5fc5b72f959398b56b1 | refs/heads/master | 2023-04-01T14:19:51.693538 | 2021-04-08T21:13:06 | 2021-04-08T21:13:06 | 151,121,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | # blbliotecas utilizadas
from pygame import *
from random import shuffle, choice
from os import system, environ
from typing import *
from threading import Thread
from numpy import * | [
"andrefelipepereira@hotmail.com"
] | andrefelipepereira@hotmail.com |
683dad2c7f40652de53cc3bd61a9377094975e2a | 4f856a87be2ca95330416d8a1d461a03b8590674 | /django_rs/rs/migrations/0004_session_number_users.py | 29846dd78db4d11d0bbabcfc64273dd6f5e7cd10 | [] | no_license | oscarcorreag/PhD-code | ea71f3b7cdbd0e42f9f0a141790f73b1bfdd13bb | 2a1a9bb22f5cd0332f6cf8491be9fa801966e89a | refs/heads/master | 2021-06-26T12:47:20.497517 | 2020-11-04T12:03:56 | 2020-11-04T12:03:56 | 143,695,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-10-19 00:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rs', '0003_sessionuser_vehicle'),
]
operations = [
migrations.AddField(
... | [
"oscarcorreag@gmail.com"
] | oscarcorreag@gmail.com |
645ad372e31431d01fda2367f9d0be99efc010dd | 4a65275fcf23a4b881aa730ece5495956fa596ed | /venv/Scripts/easy_install-3.8-script.py | 491617aed90a381b0c120e01f6785df40e3a4a71 | [] | no_license | Abhijit-ops/WebApp | 57f8cc5a0c48a590ac02e66da4438d2e00d1b1e1 | 0d9d9edaa0077a08dffbeacfa54e2380b269c025 | refs/heads/master | 2022-12-28T03:15:56.547527 | 2020-09-17T21:00:12 | 2020-09-17T21:00:12 | 296,429,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!C:\Users\Abhijit\PycharmProjects\WebApp\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.py... | [
"abhijitkalita1984@gmail.com"
] | abhijitkalita1984@gmail.com |
782877b0172ab41578299f3423b6a6d8d69965e9 | fccffc0de27d30fc508201bcac5ecb189c109075 | /portfolio/admin.py | 014c4d41db0297d16a868e5804aec42da57d2b82 | [
"MIT"
] | permissive | robalford/ahi_django | 7fa847a73fc5fa0f5d822c751b19992dc049d1dd | 3e32be3a90140774c34f29f9f907e8217afe788b | refs/heads/master | 2021-06-13T10:22:18.496744 | 2017-02-12T23:14:58 | 2017-02-12T23:14:58 | 80,779,352 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | from django.contrib import admin
from imagekit.admin import AdminThumbnail
from .models import LandingPage, AboutPage, Project, Photo, Press
class LandingPageAdmin(admin.ModelAdmin):
admin_thumbnail = AdminThumbnail(image_field='thumbnail')
list_display = ('__str__', 'admin_thumbnail')
readonly_fields =... | [
"robertsalford@gmail.com"
] | robertsalford@gmail.com |
8563f1c564497428eb080f5585823d7eef26080c | fbda8e738aa75dd0bb3a6b0f323f7279ff231c32 | /base/web_driver_factory.py | 0a7d4196c9ef25849cd814877039a5b15c79591f | [] | no_license | prtv23/Psmi | ccc40c95796d1fcac037baf5701f70ef44ba491b | cdd59484210ecee3a69ff830ec9ac09495799301 | refs/heads/master | 2021-02-07T10:08:30.380803 | 2020-05-08T15:24:18 | 2020-05-08T15:24:18 | 244,012,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from selenium import webdriver
import os
class WebDriverFactory:
def __init__(self, browser):
self.browser = browser
def get_driver_instance(self):
# choose the baseURL
base_url = "http://50.108.46.90:6080/"
# browser driver path Firefox & Chrome
cur_work_dir = os.g... | [
"prithlak@gmail.com"
] | prithlak@gmail.com |
f10137f2cd422b97ed7dcd9b1260ef629779f649 | 5638b76686262e5c9f1a8540de83dcd7a17d61f3 | /api/urls.py | e37f1ce62c302e9860ffd98a53313287600b2c99 | [] | no_license | whitehat0917/test-rest-api | 0802e66611018073ac3bfd1f5c8849fbaa4f5281 | e3a4d3f158c3e282246eea5a6ddd4a95a76f99a1 | refs/heads/main | 2023-03-29T06:26:09.320138 | 2021-03-29T15:35:40 | 2021-03-29T15:35:40 | 352,693,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'users', views.users, name='index'),
] | [
"whitehat0917@gmail.com"
] | whitehat0917@gmail.com |
042595c5cf1ec0ffd2c74728f0032e11e1534636 | 778092d2415fb6e812790c45e9e02f7572ef78e7 | /data-node.py | d861638e98c5f70eb542e929767de001bc9a71df | [] | no_license | JpGallegos/simple_dfs | 0ea0302ab2edb393eee2bd3f5fa0e712dcf7a9f9 | 8e7066bf8799d3c359f3b6a0cc6c7556ff29a76b | refs/heads/master | 2016-09-11T06:14:35.071906 | 2014-12-12T17:55:10 | 2014-12-12T17:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | ###############################################################################
#
# Filename: data-node.py
# Author: Jose R. Ortiz and ... (hopefully some students contribution)
#
# Description:
# data node server for the DFS
#
from Packet import *
import sys
import socket
import SocketServer
import uuid
import os
i... | [
"jp.gallegos.diaz@gmail.com"
] | jp.gallegos.diaz@gmail.com |
58aff4c1de4e599bea863f9887eb8a58999e695c | 62dc209888fef3c5c4f822bb0846df536d5b1949 | /octoprint_anywhere/utils.py | bc051ad25cb1272812c0af0d194f48c39f89e332 | [
"MIT"
] | permissive | luttapy/OctoPrint-Anywhere | c2bbb8675c397ff59b31259fb9f3bca34b92562c | 05c8b6b92a600fc28ac4206efe63fc67c7aae2c5 | refs/heads/master | 2020-03-31T22:24:35.991077 | 2018-10-04T00:00:54 | 2018-10-04T00:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # coding=utf-8
from __future__ import absolute_import
def ip_addr():
ip_addresses = []
try:
from subprocess import check_output
ip_addresses = check_output(['hostname', '--all-ip-addresses']).split()
except:
pass
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_D... | [
"kenneth.jiang@gmail.com"
] | kenneth.jiang@gmail.com |
2c8dac7180c8c32bed7b659ef471e00ce7431b22 | 7daadc7fe1c7276fd4b2cf253d04f18b51baab13 | /src/emotion.py | ad7b3fcbc14482b028c35b36d09a96973b109f21 | [] | no_license | Pbatch/FacebookEmotions | bb21a286115909f67eb48034db83e254d3ba2af2 | f54edb929de8f1efc9d356385ef244ccfe48ece8 | refs/heads/main | 2023-02-25T13:14:45.608964 | 2021-02-04T18:13:45 | 2021-02-04T18:13:45 | 336,028,787 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from transformers import BertTokenizer
from model import BertForMultiLabelClassification
from multilabel_pipeline import MultiLabelPipeline
from tqdm import tqdm
class Emotion:
def __init__(self, threshold=0.8, batch_size=5):
self.threshold = threshold
self.batch_size = batch_size
self.mod... | [
"peter_batchelor1@hotmail.com"
] | peter_batchelor1@hotmail.com |
3119ea6af239d63712279b5d9972ab77083b0507 | d906b38849fcb8eb26dc584dfb03d9ed5a133abb | /pendulum.py | cdc8f0dcaa2b2591c1eb4e512b073da368453a54 | [] | no_license | basicmachines/sim-dynamics | dd5213f10b7a8bbc325e492b41714ceee45e0c1c | 3430651a5b684ecca4a0ceb282213070f379c2fd | refs/heads/master | 2020-03-08T14:11:40.689788 | 2018-04-10T05:53:21 | 2018-04-10T05:53:21 | 128,178,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | #!/usr/bin/env python
"""Dynamic simulation of a pendulum.
"""
from pygame.locals import K_z, K_x, K_c, K_b, K_n, K_m
from simulator import Simulator
# Import the model you want to simulate
from models import Pendulum
# Import the controller(s) you want to simulate
from controllers import PIDController, KeyboardInp... | [
"bill.tubbs@me.com"
] | bill.tubbs@me.com |
16eb4f0e51d45f39b17d70bcf2a407765c928ad8 | 5bd4893a793ed739127f15becd9558cacf461540 | /scripts/hit_endpoint.py | b86fbea7d7419186ef9c482e8f1b00b6d7f17c8a | [] | no_license | hauensteina/ahn-repo | d3aa665eeef846e426b866d587e8649c8283e74c | 93bd7c54548a083f39510fc562c9e7540c4f672a | refs/heads/master | 2023-07-24T05:34:51.289699 | 2023-07-13T16:10:25 | 2023-07-13T16:10:25 | 99,860,476 | 0 | 1 | null | 2023-07-15T01:33:35 | 2017-08-09T23:20:28 | Python | UTF-8 | Python | false | false | 739 | py | #!/usr/bin/env python
# Python 3 script hitting a REST endpoint
# AHN, Jun 2019
import requests
from pdb import set_trace as BP
URL = 'https://ahaux.com/leela_server/select-move/leela_gtp_bot?tt=1234'
ARGS = {'board_size':19,'moves':[],'config':{'randomness':0.5,'request_id':'0.6834311059880898'}}
#-------------
de... | [
"hauensteina@gmail.com"
] | hauensteina@gmail.com |
d742b93351c54cfb4adc14548d05f3ad528ce73b | f13e28c12c3bc56b44b952d80b67cc5579cfb50a | /source/validation.py | de230416f125ad9a138d9e8308da5e01f4f9761e | [
"MIT"
] | permissive | Julia-chan/ml_engineering_example | e805298a729f1a17235b50ad4831c1c89acba3c8 | 29d05b7046e74b2848816e4c71de942d9497139a | refs/heads/main | 2023-04-26T01:10:07.594564 | 2021-05-27T12:21:46 | 2021-05-27T12:21:46 | 370,355,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def month_hardcode_split(pandas_df, month_column='month_n'):
max_month = pandas_df[month_column].max()
pandas_df_copy = pandas_df.copy()
train = pandas_df_copy[pandas_df_copy[month_column] < max_month]
test = pandas_df_copy[pandas_df_copy[month_column] == max_month]
return train, test | [
"yaantok1@mts.ru"
] | yaantok1@mts.ru |
2c1f894ce32d930a564aa1411b74807e59aa783e | 4803130273c8eaf06485fb8db309c15732037104 | /3rdday/mysite/mysite/settings.py | 82f5a169df7fec921807c5066b7bd362dd84680e | [] | no_license | imimran/django-practice | b385650495c11880cf202d300caefe5172e7682c | 7307855ca0906e05f4710323175f6fb8a13d074c | refs/heads/master | 2021-09-12T17:59:01.846483 | 2018-04-19T14:30:47 | 2018-04-19T14:30:47 | 113,576,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bu... | [
"engr.aih@gmail.com"
] | engr.aih@gmail.com |
45c47b7c35fa0ce608bf392a516ea7c7190e9edc | ea0d8c98f2edadac853d7b42de8e243c2ee9ed1e | /minesweep/layout.py | 4563db0a1a8bac7c32f16d9e4ad0491fe45a853c | [] | no_license | fxs123456/Artificial_Intelligence | e790fda357c4ee6c804c74946cb6932f06052dc7 | 3cd746120a0da69d939da9f2484e7c3a6487cca9 | refs/heads/master | 2020-04-03T19:39:47.169315 | 2020-03-06T14:38:59 | 2020-03-06T14:38:59 | 155,530,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | from tkinter import *
from tkinter.messagebox import *
import minesweep
class Layout:
def __init__(self):
self.MAP_WIDTH = 10
self.BOMBS_NUM = 10
self.frame = Tk()
self.frame.minsize(300, 200)
self.frame.title('layout')
self.createWights()
self.frame.mainloo... | [
"913239973@qq.com"
] | 913239973@qq.com |
073d927bf2d53a5643dc50ffb5497163554adf63 | 28bf56eb5f37414d034e2744a12fe7be1c34b6b7 | /Zadania Programowanie/4. Miejsca zerowe trójmianu.py | 52305a8b71b55ed4335e33545f552c17c967e275 | [] | no_license | lucjaesterastaniek/Zaliczenie---programowanie- | 9c25f770e43e4a9b290c0bc0ca5005c3476a3be4 | a5feffb18b6b64686ffa74fc5a5cd93e020c31c6 | refs/heads/master | 2020-12-22T14:27:18.336510 | 2020-01-28T20:17:19 | 2020-01-28T20:17:19 | 236,822,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | print ("Ten program znajduje miejsca zerowe trójmianu kwadratowego.")
print ("Jeśli twój trójmian zapisany jest w postaci: a * x^2 + bx + c = 0")
print ("Podaj a:")
a=int(input())
print ("Podaj b:")
b=int(input())
print ("Podaj c:")
c=int(input())
delta = (b**2) - 4*a*c
if (delta > 0):
x1 = (-b + ... | [
"noreply@github.com"
] | lucjaesterastaniek.noreply@github.com |
32ff723e88cc0136c0d4eff75b81dc9ae0a3acb7 | 91100e58fb55b1a0f17f4e0bf4d1be2430f910ef | /numpy_exercises.py | 0b5d8df1d8fc2e6524349fe95337334d0a76875b | [] | no_license | mdalton87/numpy-pandas-visualization-exercises | 54c0b964477d7e1dde2c59710160b5c6dfd53923 | 429794f30bbd755d35c3bebc48adae9236acb98d | refs/heads/main | 2023-04-25T22:20:57.307144 | 2021-05-02T12:31:58 | 2021-05-02T12:31:58 | 331,115,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,371 | py | import numpy as np
a = np.array([4, 10, 12, 23, -2, -1, 0, 0, 0, -6, 3, -7])
# 1. How many negative numbers are there?
len(a[a < 0])
# 2. How many positive numbers are there?
len(a[a > 0])
# 3. How many even positive numbers are there?
a_pos = a[a > 0]
len(a_pos[a_pos % 2 == 0])
# 4. If you were to add 3 to ea... | [
"matthew.w.dalton@gmail.com"
] | matthew.w.dalton@gmail.com |
ec75d5d8759e948bbae77fefe5d6d84140b13b9d | 066c0043afd9f8f2a0178f1864dc5169e1930d05 | /house/migrations/0027_house_favorite.py | b5b71cb8af083c9b1a7057a9a7a832b7747f8478 | [] | no_license | okcenmmustafa/DjangoProject | 1941cfda4fd8c7a8e8ac60b7ac6b6a4876da25b7 | b6a210417021a03b8884ece337b7c74919579db0 | refs/heads/master | 2022-09-02T20:47:31.281567 | 2020-05-26T13:44:45 | 2020-05-26T13:44:45 | 251,619,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # Generated by Django 3.0.4 on 2020-05-25 00:02
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('house', '0026_auto_20200525_0009'),
]
operations... | [
"mustafaokcen@gmail.com"
] | mustafaokcen@gmail.com |
9cb7715468af782c612db7ce54ca692ec0455255 | dc1a3796c97438a9e62325ab928e81eea052aca0 | /spam_classifier/runMLModels.py | 4424df6b0b8040e8da57d509729e5655b277265e | [] | no_license | Prajakta16/Spam-email-classifier | e3ae6b9c43357b8f8809a2efb327c979a376548c | 9c37f63d30064c85b76493a77b2526fc6934f0a6 | refs/heads/master | 2022-12-13T20:07:41.446703 | 2020-09-17T22:57:37 | 2020-09-17T22:57:37 | 296,344,168 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | from pandas import np
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import roc_auc_score
from sklearn.tree import DecisionTreeClassifier
from sklearn.naive_bayes import MultinomialNB
from getTrainTestData import prepareTrainingDataPart1, read_data_from_ES
from getTrainTestData import prepare... | [
"prajakta@Prajaktas-MacBook-Pro.local"
] | prajakta@Prajaktas-MacBook-Pro.local |
74642e8877743f8591bc0e8ec061ab3c92d67f5a | 6a803f0be359651a68107ccc2452be58e178d54b | /test/test_tojson.py | ba97f228529b58dca993c52a07690caadab47f87 | [
"MIT"
] | permissive | pombredanne/javaproperties-cli | 14c8a067ec8a4af6bb8ac25e64117fafb7e0238e | 192f96a9ffa504ed3c0fd9636f7a321b65f8cad4 | refs/heads/master | 2020-12-25T18:42:39.656917 | 2017-05-17T13:10:48 | 2017-05-17T13:10:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | from click.testing import CliRunner
from javaproperties_cli.tojson import properties2json
def test_properties2json_empty():
r = CliRunner().invoke(properties2json, input=b'')
assert r.exit_code == 0
assert r.output_bytes == b'{}\n'
def test_properties2json_comment_only():
r = CliRunner... | [
"git@varonathe.org"
] | git@varonathe.org |
ba8d9cd4e406de9132641c870ee69edbd84913a0 | cdc2a429197daab83d64072a5132d30b4ff273d0 | /gridworld.py | 5180492981bb77e57720b978d5f64a0d4034da00 | [] | no_license | gopeshh/Deep-Reinforcement-Learning | a4daf6959d94b423499203a1b90d71587a02e917 | f9a68e6120a27c455fd37352d11e05b1206f0da7 | refs/heads/master | 2020-08-30T07:37:40.631184 | 2019-10-29T14:36:19 | 2019-10-29T14:36:19 | 218,307,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py |
from __future__ import print_function
import numpy as np
import time
start_time = time.time()
WORLD_SIZE = 20
REWARD = -1.0
ACTION_PROB = 0.25
world = np.zeros((WORLD_SIZE, WORLD_SIZE))
# left, up, right, down
actions = ['L', 'U', 'R', 'D']
nextState = []
for i in range(0, WORLD_SIZE):
nextState.append([])
... | [
"noreply@github.com"
] | gopeshh.noreply@github.com |
003b68e7579fb96c1792d86a0205dfe552beed1d | 2db79faca4bd9b1753b6d7091abb4821c0c59c77 | /Code Snippets/Windows7PrefetchHash.py | 2a4812fbfc33cbeede47e12cf13b284c8a0bd901 | [] | no_license | bufukejo/anti-for-troj-def | 24467b90c89d0f58ca74598760522f0eefb2029f | 0df22100d1c09cda07a7ed69395c3bd47ea2bb68 | refs/heads/master | 2021-01-01T05:23:12.617020 | 2016-04-12T02:15:20 | 2016-04-12T02:15:20 | 56,022,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | def hashw7(filepath):
#Convert filepath to unicode + uppercase
path=""
for character in filepath:
path += character.upper() + '\x00'
#Windows' algorithm begins here
hash=314159
numof8 = int(len(path)/8)
#For th... | [
"brett@jerry"
] | brett@jerry |
ec7fa1f86c2a000110ed3e35ad2f81201ff443b7 | cb062c48280311134fe22573a41f9c4d6631b795 | /src/xm/core/txs/multisig/MultiSigVote.py | a05b6202d10dcb74e58f0c5ec2605ebb1c0396e9 | [
"MIT"
] | permissive | xm-blockchain/xm-core | da1e6bb4ceb8ab642e5d507796e2cc630ed23e0f | 2282b435a02f061424d656155756d8f50238bcfd | refs/heads/main | 2023-01-15T19:08:31.399219 | 2020-11-19T03:54:19 | 2020-11-19T03:54:19 | 314,127,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,528 | py | from pyxmlib.pyxmlib import bin2hstr
from xm.core.State import State
from xm.core.StateContainer import StateContainer
from xm.core.misc import logger
from xm.core.txs.Transaction import Transaction
from xm.crypto.misc import sha256
class MultiSigVote(Transaction):
"""
MultiSigSpend for the transaction of xm... | [
"74695206+xm-blockchain@users.noreply.github.com"
] | 74695206+xm-blockchain@users.noreply.github.com |
57719b6c5d96224d88bb804591da97a639e2342e | e0a243c3302bad31a31d18aac7e77290fc94f1ff | /MySpider/MySpider/items.py | f9bf3b8869ad9645d1aa279e63eb37a949d5a944 | [] | no_license | SibasisDash/Webscrape-Build-API | f36d57dcb1f9e5357c1b1564336e3f5dc547db74 | 9fb03c0b2f2330e9ede6a5587b2756fedaea28cf | refs/heads/master | 2022-12-14T23:27:08.363468 | 2020-09-23T13:16:17 | 2020-09-23T13:16:17 | 297,968,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class RedditItem(scrapy.Item):
'''
Defining the storage containers for the data we
plan to scrape
'''
date = scrapy.Field()
da... | [
"sibasis@LAPTOP-7GC8JEUG.localdomain"
] | sibasis@LAPTOP-7GC8JEUG.localdomain |
552ac5116d0dbc29272076004d4a9b916cb2a96e | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/field/q59000_tuto.py | 5925ba6e70b43edd7737755c40baf93619dad4ae | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 1,222 | py | # Arboren : Stump Town
if not sm.hasQuest(59000): # The Town Prankster
if not sm.hasQuestCompleted(59000): # The Town Prankster
sm.removeEscapeButton()
if sm.sendAskYesNo("Would you like to skip the tutorial cutscenes?"):
#todo add after skipping tutorial
sm.dispose()
... | [
"thijsenellen@outlook.com"
] | thijsenellen@outlook.com |
70a5a2a8d97d47e4470a414ce3590f34bca83b74 | 22e076588057d200c7119f87d330678e7ed7d168 | /posts/forms.py | 8094a686d31545ae191391fd805ca09373a1291f | [] | no_license | DylanMsK/Insta_clone_project | 16088926bda8f66fe412016f1764076dd46a7629 | 7921bef90aad1128021bd4e2bb60f96fd0efab01 | refs/heads/master | 2020-05-05T13:03:29.896332 | 2019-04-18T09:01:33 | 2019-04-18T09:01:33 | 180,057,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from django import forms
from .models import Post, Comment
class PostModelForm(forms.ModelForm):
content = forms.CharField(
label='content',
widget=forms.Textarea(
attrs={
'class': '',
'rows': 5,
'cols': 50,
'placeholder': '지금 뭘 하고 계신가요?'... | [
"kms920612@gmail.com"
] | kms920612@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.