seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def __init__(self, name: str, tables: TableList):
self.name = name
self.tables = tables
def to_response(self, response: Response):
return self.tables.to_response(response)
def to_dict(self) -> dict:
d = self.tables.to_dict()
d['Name'] = self.name
return d
class InvalidDatabase(Responsable):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('gender', models.CharField(max_length=255)),
('company', models.CharField(max_length=255)),
('city', models.CharField(max_length=255)),
('title', models.CharField(max_length=255)),
('latitude', models.DecimalField(blank=True, decimal_places=4, max_digits=22, null=True)),
('longitude', models.DecimalField(blank=True, decimal_places=4, max_digits=22, null=True)),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n = '21'
n = '10'
n = '1'
n = '22'
n = '99'
n = '9'
print(sol.nearestPalindromic(n))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
struct SupplementaryContentController {
var contentControllerFactory: ApplicationModuleFactory
var presentationHandler: (UIViewController) -> Void
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param table_height: The table height with respect to base_frame
"""
self.camera_name = camera_name
self.base_frame = base_frame
self.table_height = table_height
self.image_queue = Queue.Queue()
self.pinhole_camera_model = PinholeCameraModel()
self.tf_listener = tf.TransformListener()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if student[i] in a and student[i] not in b or student[i] in b and student[i] not in a:
t2.append(student[i])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser = argparse_flags.ArgumentParser(
description='A subcommands example of argparse_flags.')
parser.add_argument('--argparse_echo',
help='The echo message from argparse_flags')
subparsers = parser.add_subparsers(help='The command to execute.')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
"data": <?php echo json_encode($Data2) ?>
}
}
);
chartObj.render();
});
</script>
@endpush
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if 0:
from gluon import db, Field, auth, IS_EMPTY_OR, IS_IN_DB, current, URL
response = current.response
response.files.insert(5, URL('static',
'plugin_ajaxselect/plugin_ajaxselect.js'))
#response.files.append(URL('static', 'plugin_ajaxselect/plugin_ajaxselect.css'))
response.files.append(URL('static', 'plugin_listandedit/plugin_listandedit.css'))
db.define_table('genres',
Field('genre', 'string'),
format='%(genre)s')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param path: url path of target service
:param params: content for wsgi.input of request
:param expect_errors: Boolean value; whether an error is expected based
on request
:param headers: a dictionary of headers to send along with the request
:param extra_environ: a dictionary of environ variables to send along
with the request
:param status: expected status code of response
"""
return self._request_json(path=path, params=params,
expect_errors=expect_errors,
headers=headers, extra_environ=extra_environ,
status=status, method="post")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* punycodeRegex().test("xn--tiq49xqyj")
* //=> true
* ```
*/
declare function punycodeRegex(): RegExp;
export = punycodeRegex;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sess.run(tf.global_variables_initializer())
sess.run(tf.local_variables_initializer()) # global_step counter etc.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sunless_web', '0059_auto_20181025_2303'),
]
operations = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[test]
fn register_available_name_and_query_works() {
let mut deps = mock_instance(WASM, &[]);
mock_init_no_price(&mut deps);
mock_alice_registers_name(&mut deps, &[]);
// querying for name resolves to correct address
assert_name_owner(&mut deps, "alice", "alice_key");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
static var myApiKey = "bcea494556c8601713e4a88fae8fe324"
}
struct Network {
static let loggingEnabled = false
static let apiBaseUrl = "http://api.openweathermap.org/data/2.5"
static let iconBaseUrl = "http://openweathermap.org/img/wn/"
}
struct Path {
static let Documents = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
static let Tmp = NSTemporaryDirectory()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import datetime
import os
import time
import tensorflow as tf
from datahelpers import data_helper_ml_mulmol6_OnTheFly as dh
from evaluators import eval_pan_archy as evaler
from networks.cnn_ml_archy import TextCNN
def init_data(embed_dimension, do_dev_split=False):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class BasicapiConfig(AppConfig):
name = 'basicapi'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def dbl():
return (
(a, a) for a in [])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def builddirs(parent):
if not os.path.exists(os.path.expanduser('~/linuxcnc')):
os.mkdir(os.path.expanduser('~/linuxcnc'))
parent.machinePTE.appendPlainText('Building LinuxCNC Directories')
if not os.path.exists(os.path.expanduser('~/linuxcnc/configs')):
os.mkdir(os.path.expanduser('~/linuxcnc/configs'))
if not os.path.exists(os.path.expanduser('~/linuxcnc/nc_files')):
os.mkdir(os.path.expanduser('~/linuxcnc/nc_files'))
if not os.path.exists(os.path.expanduser('~/linuxcnc/subroutines')):
os.mkdir(os.path.expanduser('~/linuxcnc/subroutines'))
def buildini(parent):
iniFile = os.path.join(parent.configPath, parent.configName + '.ini')
parent.machinePTE.appendPlainText(f'Building the ini file: {iniFile}')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const TrackedSet &ContextGhidra::getTrackedSet(const Address &addr) const
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Fuel" : fuel.CMMS,
"Crd Follower" : crd_follower.CMMS,
"Crd Poison" : crd_poison.CMMS,
# Connect the remaining keys to the appropriate tally
| ise-uiuc/Magicoder-OSS-Instruct-75K |
a : INTEGER;
a : REAL; {Duplicate identifier}
BEGIN
a := 5;
END.
"""
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .layers import *
from .network import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[System.Serializable]
public class PetButtonImage {
public Texture2D offImage;
public Texture2D onImage;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export interface UserContainerProps {
user: User;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with self.assertRaises(AttestationError):
response2.validate(
model_hash,
policy=policy,
)
response2 = deepcopy(response)
response2.attestation.enclave_held_data += b"a"
with self.assertRaises(AttestationError):
response2.validate(
model_hash,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
abre_poli.set(filedialog.askopenfilename(initialdir = "",title = "Selecione seu arquivo",filetypes = (("Arquivo de texto","*.txt"),("Todos os arquivos","*.*"))))
if abre_poli.get():
text.insert(END, "\nCarregado com sucesso.\n")
text.see(END)
except Exception as e:
messagebox.showinfo(e)
return None
button_abre_poli = Button(top, text = "Carregar equações", command = abre_polinomio)
button_abre_poli.grid(row=6, column=7)
button_abre_poli.configure(activebackground='#000000', activeforeground='#FFFFFF')
def pega_coef():
if not n_texto.get():
messagebox.showinfo("Aviso!", "Por favor, informe o número de entradas.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# for item in ["mash","john","sera"]:
# print(item)
# for item in range(5,10,2):
# print(item)
# for x in range(4):
# for y in range(3):
# print(f"({x}, {y})")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert "vcp-2" in vc._platforms.get_platform_vip_identities()
assert len(vc._platforms.get_platform_list(None, None)) == 2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pwn import *
binary = "./stack-four"
context.terminal = ["gnome-terminal", "-e"]
binary = "/opt/phoenix/amd64/stack-four"
s = ssh(host="127.0.0.1", user="user", password="<PASSWORD>", port=2222)
p = s.process(binary)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import PackageDescription
let package = Package(
name: "SectionScrubber"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def compute_a(self, z):
return self.activation(z)
def compute_da(self, z, **kwargs):
return self.d_activation(z)
def compute_gradient(self, prev_delta, A, sigma_Z=None, dc_dw_l=None):
dc_db = prev_delta if sigma_Z is None else self.w.dot(prev_delta) * sigma_Z
dc_dw = np.outer(A, dc_db)
return dc_db, dc_dw
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Usage.parameters = {
chromatic: { viewports: [BREAKPOINTS.xs] },
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RecviceBuffer buffer = null;
UDPPackage package;
while (!recQueue.IsEmpty)
{
if (recQueue.TryDequeue(out buffer))
{
var p= UDPPack.UnPack(buffer.Data, buffer.Len);
if(p.PackNum==0)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.print_text("YOU WIN !!!")
def print_text(self, a_string):
"""
Inputs a string argument, prints the game result and the
number of tiles on each side.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<tr>
<td>{{ $loop->index + 1 }}</td>
<td>{{ $department->nama }}</td>
<td><a href="/department/{{ $department->id }}">Detail</a></td>
</tr>
@endforeach
@endslot
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
from .mobilenetv2 import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def setup():
print("setup")
def teardown():
print("teardown")
def test_file():
assert(file.WRITE == 'w')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from aiostar.middleware.middlewares.downloadMiddleware.RequestStatMiddleware import RequestStatMiddleware
from aiostar.middleware.middlewares.downloadMiddleware.ResponseFilterMiddleware import ResponseFilterMiddleware
from aiostar.middleware.middlewares.downloadMiddleware.RetryMiddleware import RetryMiddleware
from aiostar.middleware.middlewares.downloadMiddleware.UserAgentMiddleware import UserAgentMiddleware
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* the source code of SPMF, by reading a time series file and writing a time series file as output
*
* @author <NAME>, 2016.
*/
public class MainTestCumulativeMovingAverageFromFileToFile {
public static void main(String[] arg) throws IOException {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var_dump(getenv("foo"));
var_dump(getenv("bar"));
var_dump(getenv("thisvardoesnotexist"));
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
ckpt_uid = f"{p['uid']}_{uuid.uuid4().hex[:6]}"
xp.datapoints.append(hip.Datapoint(uid=ckpt_uid, from_uid=p['last_ckpt_uid'], values={**p['params'], **fake_metrics(task_idx)}))
p['last_ckpt_uid'] = ckpt_uid
# Randomly drop some
current_pop = [p for p in current_pop if random.random() > 0.3]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return logger
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd $srcDir
# 替换文件名
for files in `ls`
do
# 拷贝到指定目录
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not access_token:
raise HTTPException(status_code=401)
data = await validate_access_token(access_token=access_token)
if data is None:
raise HTTPException(status_code=401, detail="Invalid access token")
return uuid.UUID(data["user_id"])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not s: return True
stack = []
dic = {'{':'}','[':']','(':')'}
for char in s:
if not stack or char in dic: stack.append(char)
elif stack and dic.get(stack[-1])!=char: return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import html from "./html.ejs";
export default { form, html };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$table->enum('mukosa_mulut', ['Normal', 'Pigmentasi', 'Radang']);
$table->enum('karies', ['Ada', 'Tidak']);
$table->enum('karang_gigi', ['Ada', 'Tidak']);
$table->enum('gingiva', ['Normal', 'Radang']);
$table->enum('palatum', ['Normal', 'Radang']);
$table->string('rencana', 200);
$table->string('nip', 20)->index('nip');
});
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <functional> // plus
#include <numeric> // iota
| ise-uiuc/Magicoder-OSS-Instruct-75K |
physxPINVOKE.delete_PxContactPairPoint(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Kontrolka 5.: przycisk.
def btnOK_Clicked(): # Metoda wywoływana w chwili kliknięcia przycisku btnOK.
# Zmieniamy napis na etykiecie lblText.
# Metoda txtText.get() zwraca tekst wpisany do pola txtText.
lblText.configure(text = txtText.get())
# Wyświetlamy okno MessageBox.
messagebox.showinfo("Tkinter - przykład", txtText.get())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public ShadowHunterVoodooo(int newId): base(1685475137, newId)
{
}
public ShadowHunterVoodooo(string newRawcode): base(1685475137, newRawcode)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# transforming from the original GRIB1 or GRIB2 format to NetCDF format
# for the RegCM ICBC to prepare input for the RegCM model.
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif len(heads) == 2:
n_heads = [heads[0]] * (layers - 1) + [heads[1]]
elif len(heads) == layers:
n_heads = heads
residual = args.residue # False
nonlinearity = tf.nn.elu
model = SpHGAT
no_attn_reg = args.no_attn_reg
simple_inner = args.simple_inner
random.seed(seed) # random seed for random data split only
print('Dataset: ' + dataset)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
w.save()
class Migration(migrations.Migration):
dependencies = [
('main', '0081_v360_notify_on_start'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ls
cd fly/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser = argparse.ArgumentParser()
parser.add_argument("txt")
parser.add_argument("img")
args = parser.parse_args()
train = pd.DataFrame(columns = ["image" , "class"] , index = None)
test = pd.DataFrame(columns = ["image" , "class"] , index = None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ((nums[i] + nums[j]) == target) {
return new int[]{ i, j };
}
}
}
return new int[] {};
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from twiggy_goodies.django import LogMixin
from allmychanges.models import Changelog
| ise-uiuc/Magicoder-OSS-Instruct-75K |
str - a quote
"""
return "This is quote from latest master branch! Random quotes coming soon!"
if __name__ == "__main__":
character = get_character()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
continue
if state == 0:
parts = line.split(':')
ranges = parts[1].split('or')
rules[parts[0]] = []
for r in ranges:
nums = r.split('-')
rules[parts[0]].append((int(nums[0]), int(nums[1])))
if state == 1:
your_ticket = list(map(int, line.split(',')))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case synonym = "synonym"
}
/**
Initialize a `UpdateSynonym` with member variables.
- parameter synonym: The text of the synonym. This string must conform to the following restrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func numberOfSectionsInTableView(tableView: UITableView) -> Int
{
return 1
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FILES=`find ./generated -type f -name '*.js'`
for file in $FILES
do
yarn prettier --write --single-quote --tab-width 4 --print-width 100 "$file"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bfFile.write('{!s},{:.6f}\n'.format(row[0], row[1]))
print("result saved in:" + out_strFile)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#print('Title: \n', i, '\nBody: \n', j, '\n----------------------------------------')
#############################Phone Number Extraction###############################
#method that finds a phone number within title or description of ad
def find_phone(text):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"topic": blog_tag.text.strip().split(",")[0],
"date": blog_date.text.lstrip("-").rstrip("."),
"link": list(blog_link)[0],
}
data.append(blog_data)
except:
pass
return data
topics = [
"artificial-intelligence",
"career-advice",
"computer-vision",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[inline]
fn range(start: usize, end: usize, offset: usize) -> Range<usize> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in
// the documentation and/or other materials provided with the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = [ #Kari CSV_TO_TABLE Commit
path('csv_upload/', views.csv_table, name='csv_table'),
path('today/', views.today_table, name='today_table'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._families.add(f)
def create_body(self, master):
width = utility.scale_size(master, 600)
height = utility.scale_size(master, 500)
self._toplevel.geometry(f"{width}x{height}")
family_size_frame = ttk.Frame(master, padding=10)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[ 0 342591/320336 -695773/320336 -2360063/11211760 -10291875/2242352]
[ 0 -367393/640672 673091/640672 -888723/4484704 15889341/4484704]
[ 0 661457/3203360 -565971/3203360 13485411/22423520 -69159661/22423520]
[ 0 -4846439/3203360 7915157/3203360 -32420037/22423520 285914347/22423520]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
{
Console.WriteLine("Letters not provided.");
return;
}
var minLenghtOfDesiredWords = GetMinLenghtOfDesiredWords(args);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @return Response object
*/
public function commonColumnLeftReplace() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reporting', '0003_findingnote'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parallel --jobs 6 < ./results/exp_opennb/run-4/lustre_7n_6t_6d_1000f_617m_5i/jobs/jobs_n0.txt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let scale = (cross / (h.len() * (x2 - x0))).abs();
let mut k0 = curvature(x0);
let k2 = curvature(x2);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.util.CharsetUtil;
/**
* 类说明:
*
* <pre>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package io.github.mrblobman.spigotcommandlib.registry;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
btn2state = viewModel.btn2state
}){
Text("2번 세탁기 고장 신고")
.foregroundColor(.black)
.padding()
.frame(width: 180, height: 46)
.background(Color.red.opacity(0.7))
.border(Color.black)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = []
def run(self):
errno = subprocess.call([sys.executable, '-m', 'pytest', 'tests'])
raise SystemExit(errno)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
urlpatterns = [
url(r'^$', post_model_list_view, name='list'),
url(r'^create/$', post_model_create_view, name='create'),
url(r'^(?P<id>\d+)/$', post_model_detail_view, name='detail'),
url(r'^(?P<id>\d+)/delete/$', post_model_delete_view, name='delete'),
url(r'^(?P<id>\d+)/edit/$', post_model_update_view, name='update'),
#url(r'^admin/', admin.site.urls),
#url(r'^$', home, name='home'),
#url(r'^redirect/$', redirect_somewhere, name='home')
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Protocols h2 http/1.1
SSLOptions +StdEnvVars
AddHandler cgi-script .py
<Location \"/.well-known/h2/state\">
SetHandler http2-status
</Location>""")
self.add_proxies("cgi", proxy_self, h2proxy_self)
self.add(" <Location \"/h2test/echo\">")
self.add(" SetHandler h2test-echo")
self.add(" </Location>")
self.end_vhost()
self.start_vhost(self.env.http_port, "cgi", aliases=["cgi-alias"], doc_root="htdocs/cgi", with_ssl=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// start is inclusive, and the end is exclusive
///
/// The end is invalid for open zones, and both start and end are invalid
/// for empty zones.
txgs: Range<TxgT>
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./generateArchiveNames.py $AMOUT_OF_TEAMS
IFS=$'\n'
for line in `cat archives.txt`; do
i=`echo $line | grep -Po "^\d+"`
new_name=`echo $line | grep -Po "\S+$"`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if(isset($map['ResourceOwnerId'])){
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if(isset($map['ResourceType'])){
$model->resourceType = $map['ResourceType'];
}
if(isset($map['ResourceId'])){
$model->resourceId = $map['ResourceId'];
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .error import StoryError
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from nuplan.planning.simulation.simulation_time_controller.simulation_iteration import SimulationIteration
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
): Promise<IIamportCardPayment> {
/**
* 결제 요청 레코드 발행하기.
*
* 아임포트의 경우 {@link subscribe.payments.onetime} 을 이용하면, API 만을
* 가지고도 카드 결제를 진행할 수 있다. 그리고 이 때, *input* 값에서
* {@link IIamportSubscription.IOnetime.customer_uid} 를 빼 버리면, 해당 카드가
* 간편 결제용으로 등록되지도 아니함.
*
* 반대로 *input* 값에 {@link IIamportSubscription.IOnetime.customer_uid} 값을
* 채워넣으면, 결제가 완료됨과 동시에 해당 카드가간편 결제용으로 등록된다.
*/
const output: IIamportResponse<IIamportCardPayment> =
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for x in range(1, k+1):C[x]+=C[x-1]
B = [0 for x in range(len(A))]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Este chunk de código tiene como propósito...
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
XCTAssertEqual(body, "Basic CORS")
}
catch{
XCTFail("No response body")
}
expectation.fulfill()
}, headers: ["Origin" : "http://api.bob.com"])
}
}
func testPreflight() {
performServerTest(router) { expectation in
self.performRequest("options", path:"/cors", callback: {response in
XCTAssertNotNil(response, "ERROR!!! ClientRequest response object was nil")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Fanout channel
| ise-uiuc/Magicoder-OSS-Instruct-75K |
modelBuilder.Entity<VipCustomer>().ToTable("VipCustomers");
modelBuilder.Entity<SchoolCustomer>().ToTable("SchoolCustomers");
base.OnModelCreating(modelBuilder);
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
print("\n========== [Running - %s: %s] ==========" % (i, file))
command = "python %s" % (file)
os.system(command) | ise-uiuc/Magicoder-OSS-Instruct-75K |
/// value means
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.